* hppah-nat.c: Remove file.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2004-12-18  Mark Kettenis  <kettenis@gnu.org>
2
3         * hppah-nat.c: Remove file.
4         * infttrace.h: Remove file.
5         * infttrace.c: Remove file.
6         * Makefile.in (ALLDEPFILES): Remove hppah-nat.c
7         (infttrace_h): Remove variable.
8         (hppah-nat.o, infttrace.o): Remove dependencies.
9         * configure.host (hppa*64*-*-hpux11*): Remove.
10         * config/pa/hpux11w.mh: Remove file.
11         * config/pa/nm-hppah.h: Remove file.
12         * config/pa/nm-hppah11.h: Remove file.
13
14         * config/djgpp/fnchange.lst: Resolve name clash between
15         ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
16         i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
17         testsuite/gdb.base/bitfields.c and
18         testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
19         and testsuite/gdb.base/bitfields2.exp.  Remove entry for
20         config/m88k/xm-delta88v4.h.
21
22         * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
23         PA_SOM_ONLY isn't defined.
24
25         * somread.c: Include "solib-som.h".
26         (som_symfile_init, som_new_init, som_symfile_read,
27         som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
28         redudant prototypes.
29         * Makefile.in (somread.o): Update dependencies.
30
31 2004-12-17  Jim Blandy  <jimb@redhat.com>
32
33         * remote.c (fetch_register_using_p): Indentation cleanup.
34
35 2004-12-17  Randolph Chung  <tausq@debian.org>
36
37         * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
38         (find_stub_with_shl_get): Make static.
39
40 2004-12-17  Randolph Chung  <tausq@debian.org>
41
42         * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
43         (in_opd_section): New.
44         (hppa32_hpux_find_global_pointer): Rename from 
45         hppa_hpux_som_find_global_pointer.
46         (hppa64_hpux_find_global_pointer): New.
47         (ldsid_pattern): New.
48         (hppa_hpux_search_pattern): New.
49         (hppa32_hpux_search_dummy_call_sequence): New.
50         (hppa64_hpux_search_dummy_call_sequence): New.
51         (hppa_hpux_find_import_stub_for_addr): New.
52         (hppa_hpux_sr_for_addr): New.
53         (hppa_hpux_find_dummy_bpaddr): New.
54         (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
55         (hppa_hpux_som_init_abi): Set find_global_pointer method to
56         hppa32_hpux_find_global_pointer instead of
57         hppa_hpux_som_find_global_pointer.
58         (hppa_hpux_elf_init_abi): Set find_global_pointer method.
59         * hppa-tdep.c (hppa_init_objfile_priv_data): New.
60         (read_unwind_info): Use function to initialize objfile-private data.
61         (hppa32_push_dummy_call): Don't automatically set the RP if there is
62         a push_dummy_code method.
63         (hppa64_push_dummy_call): Retrieve and set the global pointer.
64         Don't automatically set the RP if there is a push_dummy_code method.
65         * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
66         dummy_call_sequence_addr members.
67         (hppa_init_objfile_priv_data): New prototype.
68
69 2004-12-17  Joel Brobecker  <brobecker@gnat.com>
70
71         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
72         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
73         * solib-som.c (som_solib_create_inferior_hook): Replace stub
74         msymbol search by call to hppa_lookup_stub_minimal_symbol. This
75         extends the search to all objfiles, not just shared libraries.
76         Remove unused variable.
77
78 2004-12-16  Michael Snyder  <msnyder@redhat.com>
79
80         * MAINTAINERS: Add myself as maintainer for mn10300.
81         * NEWS: Mention mn10300.
82
83 2004-12-15  Kevin Buettner  <kevinb@redhat.com>
84
85         * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
86         frame cache.
87
88 2004-12-14  Randolph Chung  <tausq@debian.org>
89
90         * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
91         (hppa_gdbarch_init): Set in_epilogue_p method.
92
93 2004-12-14  Corinna Vinschen  <vinschen@redhat.com>
94
95         * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
96         sh_default_extract_return_value.
97         (sh_extract_return_value_fpu): Rename from
98         sh3e_sh4_extract_return_value.
99         (sh_store_return_value_nofpu): Rename from
100         sh_default_store_return_value.
101         (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
102         (sh_return_value_nofpu): Accomodate above changes.
103         (sh_return_value_fpu): Ditto.
104
105 2004-12-13  Jerome Guitton  <guitton@gnat.com>
106
107         * stabsread.c (read_huge_number): Add support for reading octal
108         signed number in twos complement, based on the size of this
109         number.
110         (read_range_type): Add support for reading octal signed bounds
111         in twos complements, based on the size of the type.
112         (read_type_number, read_cpp_abbrev, read_member_functions,
113         read_cpp_abbrev, read_one_struct_field, read_baseclasses,
114         read_struct_type, read_array_type, read_enum_type,
115         read_sun_builtin_type, read_sun_floating_type): Update calls to
116         read_huge_number.
117         (read_type): Update call to read_range_type.
118
119 2004-12-13  Randolph Chung  <tausq@debian.org>
120
121         * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
122         solib_get_solib_by_pc method through target vector.
123         (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
124         method through target vector.
125
126 2004-12-13  Joel Brobecker  <brobecker@gnat.com>
127
128         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
129         parameter name to make it clear that we already have a next
130         frame.  Return the sigcontext from that next frame instead
131         of the frame following it.
132
133 2004-12-13  Randolph Chung  <tausq@debian.org>
134
135         * Makefile.in (pa64solib_h, somsolib_h): Delete.
136         (solib_pa64_h, solib_som_h): New.
137         (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
138         (hppa-hpux-tdep.o, hpread.o): Update dependencies.
139         (pa64solib.o, somsolib.o): Delete.
140         (solib-pa64.o, solib-som.o): New.
141         * hppa-hpux-tdep.c: Include new solib interfaces.
142         (hppa_hpux_som_init_abi): Attach to SOM solib interface.
143         (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
144         * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
145         is available, use it to determine the base of unwind records.
146         * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
147         * hpread.c: Replace somsolib.h with solib-som.h.
148         (hpread_process_one_debug_symbol): Use target vector to get thread 
149         start address.
150         * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
151         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
152         * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
153         * config/pa/tm-hppah.h: Use new solib interface.
154
155 2004-12-13  Randolph Chung  <tausq@debian.org>
156
157         * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or 
158         sections to be trampolines too.
159
160 2004-12-13  Ben Elliston  <bje@au.ibm.com>
161
162         * f-exp.y (typename): Remove unused nonterminal.
163         (name): Likewise.
164
165 2004-12-12  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
166
167         Committed by Andrew Cagney.
168         * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
169         markup.
170         
171 2004-12-12  Andrew Cagney  <cagney@gnu.org>
172
173         * frame.c (get_prev_frame): When unwinding normal frames, check
174         that the PC isn't zero.
175         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
176         zero PC.
177
178         * MAINTAINERS: Reword description of what "Target Instruction Set
179         Architectures" covers.
180
181 2004-12-12  Mark Kettenis  <kettenis@gnu.org>
182
183         * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
184
185 2004-12-11  Mark Kettenis  <kettenis@gnu.org>
186
187         * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
188         (hppa_hpux_save_state_offset): New function, replacing variable
189         with the same name.
190         (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
191         functions.
192         (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
193         Use new hppa_hpux_save_state_offset function.  Add special
194         handling for handling 64-bit "flags" register.
195         (hppa_hpux_store_register): Likewise.
196         (hppa_hpux_child_can_run): Tweak comment.
197
198         * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
199         (inf_ttrace_attach): Likewise.
200         (inf_ttrace_resume_callback): New function.
201         (inf_ttrace_resume): Don't use TT_PROC_CONTINUE.  Iterate over all
202         lwps and call inf_ttrace_resume_callback instead.
203         (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
204
205         * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
206
207 2004-12-10  Michael Snyder  <msnyder@redhat.com>
208
209         * mn10300-tdep.c: New file.  This is a re-implementation of
210         the mn10300 target back-end using the new frame api etc.
211         * mn10300-tdep.h: New file.
212         * config/mn10300/mn10300.mt: New file (or replace old file).
213         * configure.tgt: Add mn10300 target.
214
215 2004-12-10  Mark Kettenis  <kettenis@gnu.org>
216
217         * configure.host (hppa*-*-hpux11*): Remove.
218         * config/pa/hpux11.mh: Remove file.
219
220         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
221         typo.
222
223 2004-12-10  Kris Warkentin  <kewarken@qnx.com>
224
225         * nto-tdep.h: Include osabi.h.  Prototypes for generic Neutrino
226         osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
227         function and nto_set_target function.
228         (struct nto_target_ops): Put comments inline with struct.  Add osabi
229         sniffer hook.  Redefine macros to permit testing/assignment.  Remove
230         nto_ prefix from members.
231         * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
232         dynamically to support arbitrary root paths.  Check for basename of
233         lib in search path and then check for absolute.
234         (nto_in_dynsym_resolve_code): New function.
235         (nto_core_sniffer): New function.
236         (regset_core_fns): Register core sniffer.
237         (nto_initialize_signals): New function.
238         (_initialize_nto_tdep): Move signal initialization code to above to
239         avoid initialization race conditions.
240         (nto_set_target): New function.
241         * nto-procfs.c: Minor formatting/indenting changes.
242         (procfs_is_nto_target): New function.
243         (procfs_open): Set nto_is_nto_target.
244         (_initialize_procfs): Ditto.  Remove notice_signals() call to avoid
245         initialization race conditions.
246         (procfs_create_inferior): Resume inferior after creation.
247         * i386-nto-tdep.c: Declare i386_nto_target.
248         (init_i386nto_ops): Initialize i386_nto_target instead of
249         current_nto_target.
250         (i386nto_init_abi): Initialize signals.  Call nto_set_target.  Set
251         TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
252         (_initialize_i386nto_tdep): Call init_i386nto_ops.  Register osabi
253         sniffer.
254
255 2004-12-10  Mark Kettenis  <kettenis@gnu.org>
256
257         * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
258         (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
259         (hppa_hpux_init_abi): Reformat long line.
260
261 2004-12-09  Mark Kettenis  <kettenis@gnu.org>
262
263         * hppa-hpux-tdep.c: Include "regset.h".
264         (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
265         (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
266         (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
267         (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
268         (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
269         (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
270         functions.
271         (hppa_hpux_regset): New variable.
272         (hppa_hpux_regset_from_core_section): New function.
273         (hppa_hpux_init_abi): Set regset_from_core_section.
274         (hppa_hpux_core_osabi_sniffer): New function.
275         (_initialize_hppa_hpux_tdep): Register
276         hppa_hpux_core_osabi_sniffer.
277         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
278         * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
279
280 2004-12-09  Randolph Chung  <tausq@debian.org>
281
282         * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
283         text and data sections.
284         (pa64_current_sos): Also include the dld in the list of current shared
285         objects.
286         (pa64_solib_get_solib_by_pc): Update comments.
287         (pa64_solib_get_text_base): New function.
288         (pa64_solib_select): Set solib_get_text_base method.
289
290 2004-12-08  Daniel Jacobowitz  <dan@debian.org>
291
292         * linux-thread-db.c (BUILD_THREAD): Delete.
293         (thread_get_info_callback): Include LWP ID in thread ID.
294         (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
295         (lwp_from_thread): Use the LWP ID from the thread ID.
296
297 2004-12-07  Randolph Chung  <tausq@debian.org>
298
299         * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
300         register for both 32- and 64-bit targets.
301
302 2004-12-07  Randolph Chung  <tausq@debian.org>
303
304         * frame.c (get_prev_frame): Don't terminate unwinding at main if we
305         are unwinding through a dummy frame.
306
307 2004-12-07  Randolph Chung  <tausq@debian.org>
308
309         * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
310         * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
311         (hppa_hpux_init_abi) Set unwind_adjust_stub method.
312         * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
313         if defined.
314
315 2004-12-07  Randolph Chung  <tausq@debian.org>
316
317         * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if 
318         unwinding from a frame with pc == 0.
319         (hppa_stub_frame_this_id): Likewise.
320         (hppa_stub_frame_prev_register): Only provide real values if the frame
321         cache is not NULL.
322
323 2004-12-07  Randolph Chung  <tausq@debian.org>
324
325         * solib-som.c: New file.
326         * solib-som.h: New file.
327         * solib-pa64.c: New file.
328         * solib-pa64.h: New file.
329
330 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
331
332         * Makefile.in (inf-ttrace.o): Fix typo.
333
334 2004-12-07  Jim Blandy  <jimb@redhat.com>
335
336         * remote.c (remote_threads_info, remote_current_thread): Use
337         strtoul to parse thread ID numbers.
338
339 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
340
341         * inf-ttrace.c: Include "gdbthread.h".
342         (inf_ttrace_num_lwps): New variable.
343         (inf_ttrace_num_lwps_in_syscall): Renamed from
344         inf_ttrace_num_threads_in_syscall.
345         (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
346         TTEVT_LWP_TERMINATE events.
347         (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
348         zero.
349         (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
350         (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
351         Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
352         events.
353         (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
354         default.  Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
355         TTEVT_LWP_TERMINATE events.
356         (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
357         (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
358         * Makefile.in (inf-ttrace.o): Update dependencies.
359
360         * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
361         prototypes.
362         * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
363         Make global.  Remove HP-UX specific code.  Use
364         frame_unwind_register_unsigned instead of
365         frame_unwind_register_signed.
366         (hppa_write_pc): Rename from hppa_target_write_pc.  Make global.
367         Remove HP-UX specific code.
368         (hppa_unwind_pc): Make global.  Remove HP-UX specific code.
369         (hppa_frame_prev_register_helper): Set "flags" register to zero
370         for all unwound frames.
371         (hppa_gdbarch_init): Adjust.
372         * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
373         (hppa_hpux_read_pc, hppa_hpux_write_pc)
374         (hppa_hpux_unwind_pc): New functions.
375         (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
376
377 2004-12-07  Andreas Schwab  <schwab@suse.de>
378
379         * main.c (long_options): Add entry for "-l".
380         (print_gdb_help): Add line for -l option.
381         * NEWS: Mention it.
382
383 2004-12-05  Randolph Chung  <tausq@debian.org>
384
385         * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
386         DEPRECATED_REGISTER_BYTE.
387
388 2004-12-05  Randolph Chung  <tausq@debian.org>
389
390         * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
391         records.
392
393 2004-12-05  Mark Kettenis  <kettenis@gnu.org>
394
395         * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
396         * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
397
398         * hppa-hpux-tdep.c: Update copyright notice and year.
399
400 2004-12-05  Richard Earnshaw  <rearnsha@arm.com>
401
402         * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
403         (get_field, put_field): Assert that the format is one we can handle.
404         Simplify logic accordingly.
405         (floatformat_normalize_byteorder): New function.
406         (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
407         to normalize and select modified byte order. Pass modified byte order
408         to get_field.
409         (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa): 
410         Likewise.
411         (convert_doublest_to_floatformat): Select an appropriate intermediate
412         byte order if necessary.  Always convert to the final format before
413         returning.
414
415 2004-12-04  Daniel Jacobowitz  <dan@debian.org>
416
417         PR tui/1703
418         * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
419         Suggested by Joshua Neuheisel.
420
421 2004-12-03  Randolph Chung  <tausq@debian.org>
422
423         * gdbarch.sh (instruction_nullified): Delete.
424         * gdbarch.c: Regenerate.
425         * gdbarch.h: Regenerate.
426         * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
427         nullified.
428         (hppa_unwind_pc): Likewise. 
429         (hppa_instruction_nullified): Delete.
430         (hppa_gdbarch_init): Don't set instruction_nullified method.
431         * infrun.c (infwait_states): Remove infwait_nullified_state.
432         (handle_inferior_event): Remove handling of infwait_nullified_state.
433         Remove handling of nullified instructions.
434
435 2004-12-03  Mark Kettenis  <kettenis@gnu.org>
436
437         * inf-ttrace.c: Include <sys/mman.h>.
438         (struct inf_ttrace_page): New.
439         (struct inf_ttrace_page_dict): New.
440         (inf_ttrace_num_threads_in_syscall)
441         (inf_ttrace_reenable_page_protections): New variables.
442         (inf_ttrace_enable_syscall_events)
443         (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
444         (inf_ttrace_add_page, inf_ttrace_insert_page)
445         (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
446         (inf_ttrace_enable_page_protections)
447         (inf_ttrace_disable_page_protections)
448         (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
449         (inf_ttrace_can_use_hw_breakpoint)
450         (inf_ttrace_region_size_ok_for_hw_watchpoint)
451         (inf_ttrace_stopped_by_watchpoint): New functions.
452         (inf_ttrace_him): Remove unsused varaible `tts'.
453         (inf_ttrace_create_inferior): Add assertionts.
454         (inf_ttrace_mourn_inferior): Clear page dictionary.
455         (inf_ttrace_attach): Set initial event mask.
456         (inf_ttrace_detach): Reset number of threads in system call.
457         (inf_ttrace_wait): Deal with system call events.
458         (inf_ttrace_target): Initialize "hardware" watchpoint-related
459         parts of the target vector.
460         (_initialize_inf_ttrace): New prototype and function.
461
462         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
463         type of `gp' variable.
464
465 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
466
467         * README: Remove config.if from directory listing.
468
469 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
470
471         * alpha-tdep.c (alpha_register_name): Add comment.
472         (alpha_cannot_fetch_register): Exclude registers numbers which
473         are no longer used from the list of registers that can be fetched.
474         (alpha_cannot_store_register): Exclude registers numbers which
475         are no longer used from the list of registers that can be stored.
476         * alpha-nat.c (fetch_osf_core_registers): Add missing value in
477         core_reg_mapping array.
478
479 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
480
481         * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
482         the register value from the correct frame.
483
484 2004-11-30  Randolph Chung  <tausq@debian.org>
485
486         * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
487         (hppa_linux_in_dyncall): Check that we are inside the range of 
488         $$dyncall, not necessarily at the first insn.
489         (hppa_linux_in_solib_call_trampoline): Identify a trampoline 
490         even if the pc does not point to the first insn of the trampoline.
491
492 2004-11-30  Randolph Chung  <tausq@debian.org>
493
494         * breakpoint.c (break_at_finish_command): Delete.
495         (break_at_finish_command_1): Delete.
496         (break_at_finish_at_depth_command): Delete.
497         (break_at_finish_at_depth_command_1): Delete.
498         (tbreak_at_finish_command): Delete.
499         * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
500         and bx commands.
501
502 2004-11-30  Andrew Cagney  <cagney@gnu.org>
503
504         * config/nm-gnu.h: Delete file.
505         * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
506
507         * config/nm-sysv4.h: Delete file.
508         * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
509         * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
510         * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
511         * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
512         * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
513
514 2004-11-29  Andrew Cagney  <cagney@gnu.org>
515
516         * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
517         Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
518         as can-commit architecture developers.
519
520 2004-11-29  Mark Kettenis  <kettenis@gnu.org>
521
522         * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
523         (sparc32_skip_prologue): Skip instructions that store arguments in
524         registers into their corresponding stack slots.
525
526         * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
527         tm-solib.h.
528         * config/m68k/obsd.mh (NAT_FILE): Likewise.
529
530         * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
531         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
532         * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
533         sparc32nbsd_elf_init_abi.  Remove duplicate code.
534
535         * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
536         * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
537         * config/sparc/nm-nbsd.h: Remove file.
538         * config/sparc/nm-nbsdaout.h: Remove file.
539
540         * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
541         (sparc_xfer_partial): New function.
542         (sparc_target): Save value of to_xfer_partial from ptrace vector.
543         Set to_xfer_partial.
544
545         * fork-child.c (fork_inferior): Fork instead of vfork if
546         PRE_TRACE_FUN is non-null.
547
548 2004-11-24  Fred Fish  <fnf@specifixinc.com>
549
550         * rs6000-tdep.c (skip_prologue): Use line table info to skip over
551         compiler generated function calls made as part of a prologue.
552
553 2004-11-23  Mark Kettenis  <kettenis@gnu.org>
554
555         * inf-ttrace.c: New file.
556         * inf-ttrace.h: New file.
557         * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
558         Include "inf-ttrace.h".
559         (ss_mpsfu_high): Define to ss_tlsp if necessary.
560         (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
561         ptid_get_pid instead of PIDGET.  Modify to handle both ttrace and
562         ptrace systems.
563         (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
564         instead of inf_ptrace_target.
565         * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
566         * Makefile.in (inf_ttrace_h): New variable.
567         (hppa-hpux-nat.o): Update dependency.
568         (inf-ttrace.o): New dependency.
569         (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
570
571 2004-11-23  Randolph Chung  <tausq@debian.org>
572
573         * arch-utils.c (generic_instruction_nullified): New.
574         * arch-utils.h (generic_instruction_nullified): New.
575         * gdbarch.sh (instruction_nullified): New method.
576         * gdbarch.c: Regenerate.
577         * gdbarch.h: Regenerate.
578         * infrun.c (INSTRUCTION_NULLIFIED): Delete.
579         (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
580         new gdbarch method.
581         * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
582         * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
583         static.  Rewrite to work directly off the passed regcache.
584         (hppa_gdbarch_init): Set instruction_nullified method.
585
586 2004-11-23  Joel Brobecker  <brobecker@gnat.com>
587
588         * sparc-tdep.c (sparc_is_unimp_insn): New function.
589         (sparc32_frame_cache): For functions where there is no debugging
590         information to help us determine whether it's a struct-return
591         function or not, fallback on checking whether the instruction
592         at the return address is an "unimp" instruction or not.
593
594 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
595
596         * MAINTAINERS: Add myself to write after approval section.
597
598         * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
599         hpux-thread.c to suppress children from running.
600         (hppa_hpux_child_can_run): New function.
601         (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
602         * hpux-thread.c: Include string.h and hppa-tdep.h.
603         (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
604         HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
605         (hpux_thread_store_registers): Replace deprecated_registers with
606         calls to regcache_raw_read.
607         * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
608
609 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
610
611         * sparc64fbsd-nat.c: Update copyright year.
612         (_initialize_sparc64fbsd_nat): Construct and add target vector.
613         * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
614         inftarg.o.
615
616 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
617
618         * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
619
620 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
621
622         * linux-nat.c (my_waitpid): New function.
623         (linux_test_for_tracefork): Make more robust and verbose.  Take
624         an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
625         (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
626         argument.  Update calls to linux_test_for_tracefork.
627         (linux_enable_event_reporting, child_follow_fork)
628         (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
629         (child_insert_exec_catchpoint): Update calls to
630         linux_supports_tracefork and linux_supports_tracevforkdone.
631
632 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
633
634         * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
635         (value_subscripted_rvalue): Likewise.
636         * valops.c (search_struct_field, value_slice): Likewise.
637
638 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
639
640         * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
641         Reorder includes a bit.  Fix comment.
642         * Makefile.in (inf-ptrace.o): Update dependencies.
643
644 2004-11-21  Andreas Schwab  <schwab@suse.de>
645
646         * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
647         (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
648         svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
649         to glibc_skip_solib_resolver.
650         * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o.  Remove
651         solib-legacy.o.
652         * Makefile.in (m68klinux-tdep.o): Update dependencies.
653
654 2004-11-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
655
656         * infttrace.h (ttrace_write_reg_64): Add prototype.
657         * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
658         expression.  
659         (store_inferior_registers): Correct formatting.  Replace uses of
660         deprecated_registers with calls to regcache_raw_read,
661         regcache_raw_write_part and regcache_raw_read_part.
662
663 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
664
665         * config/pa/hppahpux.mh: Remove file.
666         * config/pa/hpux1020.mh: Remove file.
667
668 2004-11-20  Andreas Schwab  <schwab@suse.de>
669
670         * configure.host: Set host floatformat for m68k.
671
672 2004-11-20  Eli Zaretskii  <eliz@gnu.org>
673
674         * config/djgpp/fnchange.lst: Resolve file-name clash between
675         hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
676
677 2004-11-20  Mark Kettenis  <kettenis@gnu.org>
678
679         * hppa-hpux-nat.c: New file.
680         * config/pa/hpux.mh (NATDEPFILES): New file.
681         * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
682         (hppa-hpux-nat.o): New dependency.
683         * configure.host: Remove hppa*-*-hpux10.20.
684         (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
685
686         * inf-ptrace.c: Fix coding style.
687
688         * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
689         * infptrace.c (call_ptrace): Simply call ptrace with four
690         arguments.
691
692         * dbxread.c (process_one_symbol): Fix a few coding standard
693         issues.  Improve code formatting.
694
695         * dbxread.c: Include "gdb_string.h".
696         (record_minimal_symbol, read_ofile_symtab): Replace
697         DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
698         * Makefile.in (dbxread.o): Update dependencies.
699
700         * dwarf2-frame.c (read_encoded_value): Correctly calculate number
701         of bytes read for aligned LEB128 encodings.
702
703 2004-11-19  Mark Kettenis  <kettenis@gnu.org>
704
705         * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
706         parse_and_eval_address to u_long before converting it to a pointer
707         type.
708         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
709         ps_strings from int to u_long.
710         * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
711         u_long instead of CORE_ADDR.
712
713 2004-11-18  Mark Kettenis  <kettenis@gnu.org>
714
715         * dbxread.c (process_one_symbol): Do not adjust address of first
716         N_SLINE stab for a function for code generated by non-GCC
717         compilers.
718
719 2004-11-18  Kevin Buettner  <kevinb@redhat.com>
720
721         * solib-null.c: New file.
722
723 2004-11-17  Andrew Cagney  <cagney@gnu.org>
724
725         * MAINTAINERS: Drop MIPS and remote.
726
727 2004-11-15  Andrew Cagney  <cagney@gnu.org>
728
729         * findvar.c (value_of_register): Set the frame ID.
730         * value.c (value_primitive_field): Copy the frame ID.
731         * valops.c (value_assign): Simplify lval_register case, there's
732         always a frame.
733
734 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
735
736         * Makefile.in (mips-linux-tdep.o): Update dependencies.
737         * mips-linux-tdep.c: Include "regcache.h".
738         (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
739
740 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
741
742         * Makefile.in (linux-thread-db.o): Fix typo in last change.
743
744 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
745
746         * linux-thread-db.c: New file, renamed from thread-db.c.
747         * thread-db.c: Remove.
748         * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
749         * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
750         to linux-thread-db.o.
751         * config/arm/linux.mh (NATDEPFILES): Likewise.
752         * config/i386/linux.mh (NATDEPFILES): Likewise.
753         * config/i386/linux64.mh (NATDEPFILES): Likewise.
754         * config/ia64/linux.mh (NATDEPFILES): Likewise.
755         * config/m32r/linux.mh (NATDEPFILES): Likewise.
756         * config/m68k/linux.mh (NATDEPFILES): Likewise.
757         * config/mips/linux.mh (NATDEPFILES): Likewise.
758         * config/pa/linux.mh (NATDEPFILES): Likewise.
759         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
760         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
761         * config/s390/s390.mh (NATDEPFILES): Likewise.
762         * config/sparc/linux.mh (NATDEPFILES): Likewise.
763         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
764
765 2004-11-13  Andrew Cagney  <cagney@gnu.org>
766
767         * config/i386/i386lynx.mh: Delete file.
768         * config/i386/i386lynx.mt: Delete file.
769         * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
770         * i386ly-tdep.c: Delete.
771
772         * config/tm-lynx.h: Delete, inline contents ...
773         * config/rs6000/tm-rs6000ly.h: ... here.
774
775         * config/tm-sysv4.h: Delete file, inlining contents.
776         * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
777         * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
778         * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
779
780         * regcache.h (deprecated_register_valid): Delete.
781         (deprecated_registers): Delete.
782         * regcache.c (deprecated_register_valid): Delete.
783         (deprecated_registers): Delete.
784         (deprecated_read_register_byte, _initialize_regcache)
785         (deprecated_write_register_bytes, build_regcache): Update.
786         * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
787         remote-sds.o.
788         * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
789         * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
790
791         * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
792         v850-*-* under removed.
793         * configure.host: Delete ns32k-*-netbsd*.
794         * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
795         ns32k-*-netbsd*, and v850*-*-*.
796         * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
797         "Deleted"
798         * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
799         * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
800         * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
801         * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
802         * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
803         * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
804         * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
805         * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
806         * v850-tdep.c: Delete.
807         
808 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
809
810         * irix5-nat.c (fetch_core_registers): Replace use of
811         deprecated_registers by equivalent code.
812
813 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
814
815         * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
816         with equivalent code.
817         (fill_fpregset): Likewise.
818
819 2004-11-13  Andrew Cagney  <cagney@gnu.org>
820
821         * MAINTAINERS: Do not list "Deleted" architectures.
822
823         * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
824         m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
825         sparc-*-vxworks*.
826         * NEWS: Mention that vxworks was deleted.
827         * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
828         * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
829         * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
830         * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
831         * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
832         * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
833         * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
834         * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
835         * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
836         * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
837         * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
838         * remote-vxmips.c, remote-vx.c: Delete.
839         * remote-vx68.c: Delete.
840         * config/m68k/tm-os68k.h: Remove reference to VxWorks.
841         * config/m68k/os68k.mt, ada-lang.h: Ditto.
842         * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
843         (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
844
845 2004-11-13  Eli Zaretskii  <eliz@gnu.org>
846
847         * config/i386/xm-go32.h: Don't include fopen-bin.h.
848         Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
849
850         * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
851         branch that doesn't define CRLF_SOURCE_FILES; always use
852         binary-mode open.
853         (print_source_lines_base, forward_search_command)
854         (reverse_search_command): Enable the code that accepts DOS-style
855         CRLF line endings on all platforms (this removes the need for
856         CRLF_SOURCE_FILES).
857
858         * defs.h: Fix wording of the comment before FOPEN_RB.
859         (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
860
861         * config/djgpp/fnchange.lst: Group renames for opcode directory
862         together.
863
864         * config/djgpp/djconfig.sh: Replace file names that don't exist
865         anymore with existing files, for checking the unpacked
866         distribution.
867
868         * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
869         Export pre-cooked values in configure-* targets that begin with
870         "@test -f stage_last".
871
872 2004-11-12  Andrew Cagney  <cagney@gnu.org>
873
874         * defs.h (enum lval_type): Delete lval_reg_frame_relative.
875         * value.h (struct value): Update comment.
876         * valops.c (value_assign): Fold lval_reg_fame_relative into
877         lval_register.
878         * findvar.c (value_from_register, locate_var_value): Ditto.
879
880 2004-11-12  Randolph Chung  <tausq@debian.org>
881
882         * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
883         * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
884         (write_exp_msymbol): Remove conditional check for symbols starting 
885         with $.  Update comments.
886
887 2004-11-12  Randolph Chung  <tausq@debian.org>
888
889         * pa64solib.c (pa64_solib_thread_start_addr): Rename from 
890         so_lib_thread_start_addr.
891         * pa64solib.h (so_list): Forward declare.
892         (pa64_solib_thread_start_addr): Prototype.
893         * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
894         (no_shared_libraries): Remove.
895         (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
896         * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
897         * hpread.c (hpread_process_one_debug_symbol): Use either the som or
898         the elf solib handler to find the start address.
899
900         * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support 
901         files to the target makefile.
902         * config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
903         * config/pa/hpux11.mh (NATDEPFILES): Likewise.
904         * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
905
906         * config/pa/hppa64.mt (TDEPFILES): Put target-specific support 
907         files for symbol reading and shared library handling here.
908         * config/pa/hppahpux.mt (TDEPFILES): Likewise.  
909         (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target 
910         without bringing in 64-bit support.
911
912 2004-11-12  Andrew Cagney  <cagney@gnu.org>
913
914         * sparc-tdep.c: Replace VALUE_TYPE with value_type.
915         * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
916         * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
917         * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
918         * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
919         * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
920         * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
921
922         Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
923         * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
924         (VALUE_REGNUM): Define.
925         (struct value): Delete location.regnum, rename "regno" to
926         "regnum".
927         * value.c, valops.c, valarith.c, findvar.c: Update.
928
929         * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
930         (VALUE_BITPOS): Delete.
931         (value_type, value_offset, value_bitsize, value_bitpos): Declare.
932         * value.c (value_type, value_offset, value_bitpos)
933         (value_bitsize): New functions.  Update references.
934         * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
935         * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
936         * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
937         * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
938         * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
939         * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
940         * valops.c, eval.c, findvar.c, breakpoint.c: Update.
941         * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
942         * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
943
944 2004-11-12  Andrew Cagney  <cagney@gnu.org>
945
946         * cris-tdep.c (cris_register_offset): Delete, never called.
947         (cris_spec_reg_applicable): Delete cris_ver_sim.
948         * MAINTAINERS: List d10v as OBSOLETE.
949         * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
950         FOPEN_WB et.al., defined by "fopen-bin.h".
951
952 2004-11-12  Randolph Chung  <tausq@debian.org>
953
954         * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
955         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
956         * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
957         * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
958
959 2004-11-12  Mark Kettenis  <kettenis@jive.nl>
960
961         * tui/tui-io.c: Don't include "terminal.h".
962         * Makefile.in (tui-io.o): Update dependencies.
963
964 2004-11-12  Kei Sakamoto  <sakamoto.kei@renesas.com>
965
966         * Makefile.in (m32r-linux-tdep.o): Update dependencies.
967         * m32r-linux-tdep.c (m32r_linux_init_abi): Call
968         set_gdbarch_regset_from_core_section for core file support.
969         (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
970         New functions.
971
972 2004-11-11  Randolph Chung  <tausq@debian.org>
973
974         * hppa-tdep.c (skip_prologue_hard_way): Make static, add
975         stop_after_branch parameter and use it to determine if we should look
976         at the delay slot of the first branch insn to find prologue insns.
977         (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
978         (hppa_frame_cache): Likewise.
979
980 2004-11-11  Randolph Chung  <tausq@debian.org>
981
982         * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
983         register so that it can be unwound from anywhere in the prologue.
984
985 2004-11-10  msnyder  <msnyder@redhat.com>
986
987         * rs6000-tdep.c (skip_prologue): After saving lr_offset, 
988         must invalidate lr_reg (so we don't try to save it again).  
989         Ditto for cr_offset and cr_reg.
990
991 2004-11-05  Jon Beniston <jon@beniston.com>
992
993         Committed by Andrew Cagney.
994         * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK 
995         when an unexpected packet is received, as the target stubs 
996         continually retransmit the same packet until ACKed.
997         
998 2004-11-10  Randolph Chung  <tausq@debian.org>
999
1000         * frame.c (get_prev_frame): Use get_frame_type to retrieve the 
1001         frame's type.
1002
1003 2004-11-10  Randolph Chung  <tausq@debian.org>
1004
1005         * blockframe.c (inside_entry_func): Move to .....
1006         * frame.c (inside_entry_func): ... here, and make static.
1007         (backtrace_past_entry): New flag.
1008         (get_prev_frame): Stop backtrace at the entry function if enabled
1009         by flag.  Update comments.
1010         (_initialize_frame): Add command to set backtrace_past_entry flag.
1011         * defs.h (inside_entry_func): Remove prototype.
1012
1013 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
1014
1015         * dwarf2read.c: Fix formatting.
1016
1017 2004-11-10  Andrew Cagney  <cagney@gnu.org>
1018
1019         * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1020         (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1021         macros with function declarations.
1022         * value.c (coerce_ref, coerce_array, coerce_number)
1023         (coerce_enum): New functions.
1024         (value_as_long, value_as_address): Update.
1025         * ada-lang.c (ada_coerce_ref, ada_value_binop) 
1026         (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1027         * jv-lang.c (evaluate_subexp_java): Update.
1028         * valarith.c (value_less, value_neg, value_complement)
1029         (value_binop, value_add, value_subscript, value_x_binop) 
1030         (value_logical_not, value_sub): Update.
1031         * valops.c (check_field, value_struct_elt, value_ind)
1032         (value_find_oload_method_list, value_cast, value_assign): Update.
1033         * eval.c (evaluate_subexp_standard): Update.
1034
1035 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
1036
1037         * mips-tdep.c (mips32_relative_offset): Change return type to
1038         LONGEST, change argument type to ULONGEST.  Fix sign-extension.
1039
1040 2004-11-10  Randolph Chung  <tausq@debian.org>
1041
1042         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1043         (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1044         (hppa_fetch_pointer_argument): Likewise.
1045         (hppa_frame_cache): Use safe_frame_unwind_memory instead of 
1046         deprecated_read_memory_nobpt.
1047         (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1048         add_set_cmd sequence with add_setshow_boolean_cmd.
1049
1050 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1051
1052         GDB 6.3 released from GDB 6.3 branch.
1053
1054 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1055
1056         * values.c: Rename to ...
1057         * value.c: ..., new file.
1058         * Makefile.in: Update.
1059
1060 2004-11-09  Daniel Jacobowitz  <dan@debian.org>
1061
1062         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1063         size.
1064
1065 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1066
1067         * TODO: Delete.
1068
1069         * value.h (struct value): Delete field bfd_section.
1070         (VALUE_BFD_SECTION): Delete macro.
1071         (COERCE_REF): Update.
1072         (value_at, value_at_lazy): Delete asection parameter.
1073         * printcmd.c (print_formatted, x_command): Update.
1074         (do_examine): Delete asection parameter.
1075         (next_section): Delete variable.
1076         * valops.c (value_cast, value_at, value_at_lazy)
1077         (value_coerce_function, value_addr, value_ind, value_string) 
1078         (find_rt_vbase_offset, value_full_object): Update.
1079         * hpacc-abi.c (hpacc_virtual_fn_field)
1080         (hpacc_value_rtti_type): Update.
1081         * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field) 
1082         (gnuv3_baseclass_offset): Update.
1083         * f-valprint.c (f_val_print): Update.
1084         * c-valprint.c (c_val_print): Update.
1085         * p-valprint.c (pascal_val_print): Update.
1086         * jv-valprint.c (java_value_print): Update.
1087         * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1088         * ada-lang.c (ada_value_primitive_packed_val)
1089         (ada_evaluate_subexp): Update.
1090         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1091         * expprint.c (print_subexp_standard): Update.
1092         * infcall.c (call_function_by_hand): Update.
1093         * valarith.c (value_add): Update.
1094         * eval.c (evaluate_subexp_standard): Update.
1095         * values.c (allocate_value, value_copy, value_static_field): Update.
1096         * findvar.c (read_var_value, locate_var_value): Update.
1097         
1098 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1099
1100         * i386-linux-tdep.c: Include "dwarf2-frame.h".
1101         * Makefile.in: Update all dependencies.
1102
1103 2004-11-08  Andrew Cagney  <cagney@gnu.org>
1104
1105         * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1106         (sentinel_frame_unwinder): Add the prev_pc method.
1107         * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1108         available.  Do not handle the sentinel-frame case.
1109         * frame-unwind.h (frame_prev_register_ftype): Define.
1110         (struct frame_unwind): Add prev_pc;
1111
1112 2004-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1113
1114         * configure.in: Check for ncurses/term.h.
1115         * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1116         * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1117         * tui/tui.c: Don't include term.h.
1118         * configure, config.in: Rebuilt.
1119
1120 2004-11-08  Mark Kettenis  <kettenis@gnu.org>
1121
1122         * m68kbsd-nat.c: Include "inf-ptrace.h".
1123         (_initialize_m68kbsd_nat): Fix pasto.
1124         * Makefile.in (m68kbsd-nat.o): Update dependencies.
1125
1126 2004-11-08  Randolph Chung  <tausq@debian.org>
1127
1128         * infrun.c (debug_infrun): New variable.
1129         (resume, proceed, wait_for_inferior): Annotate with debug messages.
1130         (handle_inferior_event, keep_going): Likewise.
1131         (_initialize_infrun): Register "set debug infrun" command.
1132
1133 2004-11-08  Andreas Schwab  <schwab@suse.de>
1134
1135         * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1136         PTRACE_EVENT_VFORKDONE.
1137         (child_follow_fork): Adjust.
1138
1139 2004-11-08  Andrew Cagney  <cagney@gnu.org>
1140
1141         * README: Refer to 6.3, not 6.2, update directory listing droppng
1142         references to intl/ and mmalloc/.
1143         * PROBLEMS: Refer to 6.3 not 6.2.
1144
1145         * PROBLEMS: Delete no-longer applicable problems.
1146
1147 2004-11-07  Andrew Cagney  <cagney@redhat.com>
1148             Daniel Jacobowitz  <dan@debian.org>
1149             Roland McGrath  <roland@redhat.com>
1150
1151         * Makefile.in (symfile-mem.o): Update dependencies.
1152         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1153         (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1154         * inf-ptrace.c (inf_ptrace_attach): Call
1155         observer_notify_inferior_created.
1156         * inftarg.c (child_attach): Likewise.
1157         * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1158         (symbol_file_add_from_memory): Take NAME argument.  Use it for
1159         the new BFD's filename.
1160         (add_symbol_file_from_memory_command): Update call to
1161         symbol_file_add_from_memory.
1162         (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1163         (symbol_file_add_from_memory_wrapper): New.
1164         (_initialize_symfile_mem): Register add_vsyscall_page as an
1165         inferior_created observer.
1166
1167 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
1168
1169         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1170         fetch_inferior_registers.  Make static.
1171         (m68kbsd_store_inferior_registers): Rename from
1172         store_inferior_registers.  Make static.
1173         (_initialize_m68kbsd_nat): Construct and add target vector.
1174         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1175         inftarg.o.  Add inf-ptrace.o.
1176         (NAT_FILE): Set to tm-solib.h.
1177         (LOADLIBES): New variable.
1178         * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1179         inftarg.o.  Add inf-ptrace.o.
1180         (NAT_FILE): Delete variable.
1181         * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1182         inftarg.o.  Add inf-ptrace.o.
1183         (NAT_FILE): Set to tm-solib.h.
1184         * config/m68k/nm-nbsdaout.h: Remove file.
1185
1186 2004-11-07  Daniel Jacobowitz  <dan@debian.org>
1187
1188         * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1189         (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1190         (dwarf2_signal_frame_unwind): New.
1191         (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1192         * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1193
1194 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
1195
1196         * Makefile.in (mips64obsd-tdep.o): Fix typo.
1197
1198         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1199         from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets.  Trim sizes
1200         to only include the structure members we actually need.
1201         (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1202         mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets.  Trim sizes to
1203         only include the structure members we actually need.
1204         (mipsnbsd_init_abi): Update.
1205
1206         * mips64obsd-nat.c: Include "mips-tdep.h".
1207         (MIPS64OBSD_NUM_REGS): Remove define.
1208         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1209         (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1210         floating-point registers correctly.
1211         * Makefile.in (mips64obsd-nat.o): Update dependencies.
1212
1213         * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1214         "gdb_assert.h".
1215         (mips64obsd_sigframe_init): New function.
1216         (mips64obsd_sigframe): New variable.
1217         (mips64obsd_init_abi): Add comments.  Prepend mips64obsd_sigrame
1218         unwinder.
1219         * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1220
1221 2004-11-06  Joel Brobecker  <brobecker@gnat.com>
1222
1223         * alpha-mdebug-tdep.c: #include mdebugread.h.
1224         Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1225         * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1226
1227 2004-11-05  Andrew Cagney  <cagney@gnu.org>
1228
1229         * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1230         CFI and the init_reg method leave the register unspecified.
1231         Include the register name in the "Incomplete CFI data" complaint.
1232         Supress leading zeros in the address.
1233
1234 2004-11-05  Mark Kettenis  <kettenis@gnu.org>
1235
1236         * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1237         skipping a personality routine in a CIE augmentation.
1238
1239 2004-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1240
1241         * defs.h (fatal, vfatal): New function prototypes.
1242         * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1243         via catch_errors.
1244         (backtrace_command): Change to call backtrace_command_stub via
1245         catch_errors instead of calling backtrace_command_1 directly.
1246         (backtrace_full_command): Ditto.
1247         * utils.c (error_stream_1): New static function.
1248         (verror): Change to call error_stream_1 instead of error_stream.
1249         (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1250         (vfatal, fatal): New functions.
1251
1252 2004-11-05  Andrew Cagney  <cagney@gnu.org>
1253
1254         * stack.c (parse_frame_specification_1): Clear selected_frame_p
1255         when not using selected frame.
1256
1257 2004-11-05  Mark Kettenis  <kettenis@jive.nl>
1258
1259         * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1260         personality routine in a CIE augmentation.
1261
1262 2004-11-05  Felix Lee  <felix+log1@specifixinc.com>
1263
1264         * stack.c (set_current_sal_from_frame): New function.
1265         (print_args_stub): Use it.
1266         (print_frame_info): Don't set sal here.
1267
1268 2004-11-04  Mark Kettenis  <kettenis@gnu.org>
1269
1270         * dwarf2-frame.c (read_encoded_value): Change type of third
1271         argument to `unsigned char *'.  Add support for LEB128 encodings.
1272
1273 2004-11-04  Jim Blandy  <jimb@redhat.com>
1274
1275         * gdbtypes.c (make_qualified_type): Doc fix.  Add assertion to
1276         prevent cross-objfile references.
1277         (make_cv_type): Doc fix.  Don't create cross-objfile references,
1278         even for stub types.
1279         (replace_type): Add assertion to prevent cross-objfile references.
1280         (check_typedef): Never resolve a stub type by copying over a type
1281         from another file.
1282
1283 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1284
1285         * Makefile.in (m32r-tdep.o): Update dependencies.
1286         * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1287         ABI-specific overrides.
1288
1289 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1290
1291         * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1292         unnecessary parallel execution bit.
1293         (m32r_memory_remove_breakpoint): Ditto.
1294         (m32r_breakpoint_from_pc): Update.
1295
1296 2004-11-03  Randolph Chung  <tausq@debian.org>
1297
1298         * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1299         frame_func_unwind to locate the unwind entry.
1300         (hppa_frame_this_id): Likewise.
1301
1302 2004-11-03  Andrew Cagney  <cagney@gnu.org>
1303
1304         * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1305         packet, obsolete configurations, end-of-life deprecated_registers.
1306
1307 2004-11-02  Mark Kettenis  <kettenis@gnu.org>
1308
1309         * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1310         encodings as well as unsigned encodings.
1311
1312 2004-11-02  Andrew Cagney  <cagney@gnu.org>
1313
1314         * value.h (COERCE_VARYING_ARRAY): Delete.
1315         * valops.c (value_cast, value_slice): Delete use.
1316         * valarith.c (value_subscript, value_concat): Delete use.
1317
1318 2004-11-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
1319
1320         * NEWS: GDB understands GNAT Ada.
1321
1322 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1323
1324         * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1325         (amd64-sol2-tdep.o): Add dependencies.
1326         * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1327         config/i386/sol2-64.mt: New files.
1328         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1329         amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1330         (supply_gregset): Correct order of arguments to
1331         amd64_supply_native_gregset.
1332         (fill_gregset): Correct order of arguments to
1333         amd64_collect_native_gregset.
1334         * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1335         * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1336         * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1337         for definition of NEW_PROC_API.
1338         * configure: Regenerate.
1339
1340 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1341
1342         * MAINTAINERS (Write After Approval): Add myself.
1343
1344 2004-11-01  Andrew Cagney  <cagney@gnu.org>
1345
1346         * configure.tgt: Mark d10v-*-* as obsolete.
1347         * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1348
1349 2004-11-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
1350
1351         * values.c (modify_field): Correct handling of bit-fields that
1352         don't fit in 32 bits.  Use unsigned operations throughout and 
1353         simplify the code a bit.  Document preconditions.
1354
1355 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1356
1357         * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1358         * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1359         (in_plt_section): Delete.
1360
1361         * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1362         (mips_gdbarch_init): Do not set same.
1363
1364         * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1365         * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1366
1367         * gdbarch.sh (in_solib_call_trampoline): Delete.
1368         * gdbarch.h, gdbarch.c: Re-generate.
1369
1370         * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1371         IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1372         * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1373         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1374         * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1375
1376 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1377
1378         * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1379         (mipsnbsd_fetch_inferior_registers): Rename from
1380         fetch_inferior_registers.  Make static.
1381         (mipsnbsd_store_inferior_registers): Rename from
1382         store_inferior_registers.  Make static.
1383         (_initialize_mipsnbsd_nat): New function and prototype.
1384         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1385         * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1386         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
1387         inf-ptrace.o.
1388
1389 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1390
1391         * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1392         (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1393         delete corresponding unused function.
1394         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1395         in_solib_call_trampoline.
1396         * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1397         * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1398         * config/mips/tm-nbsd.h: Ditto.
1399         * config/arm/tm-linux.h: Ditto.
1400         * config/mips/tm-linux.h: Ditto.
1401
1402         * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1403         (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1404         in_solib_call_trampoline, delete corresponding unused function.
1405         * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline) 
1406         (vaxnbsd_aout_init_abi): Ditto.
1407         * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline) 
1408         (sparc32nbsd_aout_init_abi): Ditto.
1409         * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline) 
1410         (ppc_linux_init_abi): Ditto.
1411         * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline) 
1412         (ns32knbsd_init_abi_aout): Ditto.
1413         * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1414         * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1415         * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline) 
1416         (m68kbsd_aout_init_abi): Ditto.
1417         * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline) 
1418         (i386_cygwin_init_abi): Ditto.
1419         * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline) 
1420         (i386bsd_init_abi): Ditto.
1421
1422         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1423         in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1424         isn't used by this architecture.
1425         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1426         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1427         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1428         * s390-tdep.c (s390_gdbarch_init): Ditto.
1429         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1430         * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1431         * i386-tdep.c (i386_svr4_init_abi): Ditto.
1432         * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1433         * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1434         * amd64-tdep.c (amd64_init_abi): Ditto.
1435
1436         * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1437         in_solib_call_trampoline to its default value of
1438         generic_in_solib_call_trampoline.
1439         * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1440         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1441         * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1442         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1443         * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1444         * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1445
1446         * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1447
1448         * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1449
1450         * config/mips/tm-mips.h: Delete file.
1451         * remote-mips.c: Delete tm-mips.h from comment.
1452         * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1453         * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1454         * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1455         * config/mips/tm-linux.h: Don't include tm-mips.h.
1456         * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1457         * config/mips/irix5.mt (DEPRECATED_TM_FILE): 
1458         * config/mips/tm-wince.h: Don't include.
1459
1460         * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1461         * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1462         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1463         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1464
1465         * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1466         * mdebugread.c (ecoff_relocate_efi): Delete function.
1467         * objfiles.c (objfile_relocate): Delete #ifdef
1468         MDEBUG_EFI_SYMBOL_NAME code.
1469
1470 2004-10-31  Orjan Friberg <organ.friberg@axis.com>
1471             Andrew Cagney  <cagney@gnu.org>
1472
1473         * gdbarch.sh (single_step_through_delay): Add.
1474         * gdbarch.h, gdbarch.c: Re-generate.
1475         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1476         (mips_step_skips_delay): Delete.
1477         * mips-tdep.c (mips_single_step_through_delay): Replace
1478         mips_step_skips_delay.
1479         (mips_gdbarch_init): Set single_step_through_delay.
1480         (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1481         
1482 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1483
1484         * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1485         from TRAMP_FRAME frame type.
1486
1487 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1488
1489         * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1490
1491         * mips-tdep.c (mips_ignore_helper): Delete.
1492         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1493         * infrun.c (handle_inferior_event): Delete #ifdef
1494         DEPRECATED_IGNORE_HELPER_CALL code.
1495
1496         * config/mips/tm-mips.h (RA_REGNUM): Delete.
1497
1498 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1499
1500         * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1501         (fill_fpregset): Do not compile for 64-bit systems.
1502         * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1503         * Makefile.in (i386-sol2-nat.o): Update dependencies.
1504         * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1505
1506 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1507
1508         * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1509         (struct mdebug_extra_func_info): Define.
1510         * config/alpha/tm-alpha.h: Delete same.
1511         * config/mips/tm-mips.h: Delete same.
1512         * mdebugread.c: Delete same.
1513         * Makefile.in: Update dependencies.
1514         * mips-mdebug-tdep.c: Include "mdebugread.h".
1515
1516         * objfiles.c: Include "mdebugread.h".
1517         * mdebugread.c: Include "mdebugread.h".
1518         (ecoff_relocate_cfi): Delete.
1519         * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1520         * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1521         * mdebugread.h (ecoff_relocate_efi): New file.
1522         * Makefile.in: Update dependencies.
1523         
1524         * mips-tdep.c (struct frame_extra_info): Delete.
1525         (temp_proc_desc): Delete.
1526
1527         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1528         MIPS_EFI_SYMBOL_NAME.
1529         (mips_extra_func_info_t, mips_extra_func_info): Delete.
1530         (struct mdebug_extra_func_info): Replace struct
1531         alpha_extra_func_info and alpha_extra_func_info_t.
1532         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1533         MIPS_EFI_SYMBOL_NAME.
1534         (struct mdebug_extra_func_info): Replace struct
1535         alpha_extra_func_info and alpha_extra_func_info_t.
1536         * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1537         * mdebugread.c, alpha-mdebug-tdep.c: 
1538
1539         Suggested by Mark Kettenis.
1540         * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1541         fields frame_adjust and high_addr.
1542         * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1543         (non_heuristic_proc_desc): Delete references.
1544
1545         * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1546         * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1547         * mips-tdep.c: Update.
1548
1549         * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1550         (MIPS_LAST_EMBED_REGNUM): Add.
1551         * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1552         (LAST_EMBED_REGNUM): Delete.
1553         * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1554
1555         * config/mips/tm-mips.h (PS_REGNUM): Delete.
1556         * mips-tdep.h (MIPS_PS_REGNUM): Add.
1557         * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1558         * mips-linux-nat.c: Update.
1559
1560         * mips-tdep.h: Add comments on registers.
1561         (MIPS_UNUSED_REGNUM): Define.
1562         * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1563         (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1564         * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1565         * mips-linux-nat.c, remote-mips.c: Update.
1566
1567         * config/mips/tm-mips.h (t_insn): Delete.
1568         * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1569         Replace t_insn with ULONGEST.
1570
1571 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1572
1573         * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1574         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1575         (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1576         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1577         (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1578         (mipsnbsd_core_osabi_sniffer): New function.
1579         (mipsnbsd_init_abi): Set regset_from_core_section.
1580         (_initialize_mipsnbsd_tdep): Remove calls to
1581         deprecated_add_core_fns.
1582         (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1583         (mipsnbsd_regset_from_core_section): New functions.
1584         (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1585         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1586
1587         * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1588         Remove optimization for DEPRECATED_FP_REGNUM.
1589
1590 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1591
1592         * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1593         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1594         (alpha_setup_arbitrary_frame): Delete.
1595         * mips-tdep.c (setup_arbitrary_frame): Delete.
1596         * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1597         (setup_arbitrary_frame): Delete.
1598         * stack.c (parse_frame_specification_1): When specified, call
1599         create_new_frame with two parameters.  Delete #ifdef
1600         SETUP_ARBITRARY_FRAME.
1601
1602         * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1603         (MIPS_INSTLEN): Delete.
1604         * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1605         MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1606         * remote-mips.c, mips-tdep.c: Update.
1607
1608         * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1609         * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1610         * mips-tdep.c (mips_mdebug_frame_cache)
1611         (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1612         (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1613         (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1614         (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1615         (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1616         (mips_gdbarch_init): Do not append mdebug sniffers.
1617         (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET) 
1618         (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK) 
1619         (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG) 
1620         (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1621         * Makefile.in: Update dependencies.
1622
1623         * mips-tdep.h (mips_abi_regsize): Declare.
1624         * mips-tdep.c (mips_abi_regsize): Make non-static.
1625
1626         * mips-tdep.c (gdb_print_insn_mips): Simplify.
1627         (make_mips16_addr): Delete.
1628
1629 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1630
1631         * i386-sol2-nat.c: New file.
1632         * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1633         i386-sol2-tdep.c.
1634         (i386-sol2-nat.o): Update dependencies.
1635         * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1636         i386-sol2-nat.o.
1637
1638 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1639
1640         Total breakage identified by Joel Brobecker.
1641         * mips-tdep.c (after_prologue): Delete.
1642         (mips_skip_prologue): Use skip_prologue_using_sal.
1643         (heuristic_proc_desc): Delete, unused.
1644
1645 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1646
1647         * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1648         (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1649         Cleanup coding style.
1650
1651 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1652
1653         * mips-tdep.h (mips_pc_is_mips16): Declare.
1654         * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1655         non-static.  Update calls.
1656
1657         * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1658         * command.h (add_setshow_enum_cmd): Declare.
1659         * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1660
1661         * mips-tdep.c (_initialize_mips_tdep): Use
1662         add_setshow_zinteger_cmd.
1663         
1664         * mips-tdep.c (mips_eabi_extract_return_value)
1665         (mips_o64_extract_return_value, mips_o64_store_return_value)
1666         (return_value_location, mips_eabi_reg_struct_has_addr)
1667         (mips_eabi_use_struct_convention)
1668         (mips_eabi_store_return_value): Delete.
1669         (mips_eabi_store_return_value): New function.
1670         (mips_eabi_return_value): New function.
1671         (mips_gdbarch_init): For O64 and EABI, delete
1672         extract_return_value, store_return_value, use_struct_convention
1673         and reg_struct_has_addr, add return_value.
1674
1675         * mips-tdep.c (read_signed_register): Use
1676         regcache_cooked_read_signed.
1677
1678 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1679
1680         * mipsread.c: Cleanup coding style.
1681         (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1682         (mipscoff_symfile_finish): Remove prototypes.
1683
1684 2004-10-29  Mark Kettenis  <kettenis@gnu.org>
1685
1686         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1687         (mips_mdebug_frame_cache, mips16_scan_prologue)
1688         (mips32_scan_prologue, mips_stub_frame_cache)
1689         (heuristic_proc_start, heuristic_proc_desc)
1690         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1691         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1692         (mips_o32_return_value, mips_o64_push_dummy_call)
1693         (mips_step_skips_delay, mips_skip_trampoline_code)
1694         (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1695         MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1696         T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1697         instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1698         and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1699         (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1700         T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1701         MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
1702         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1703         (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1704         ZERO_REGNUM.
1705         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1706         (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1707         ZERO_REGNUM.
1708         (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1709         A0_REGNUM.
1710         * mipsnbsd-nat.c: Include "mips-tdep.h".
1711         (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1712         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1713
1714 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1715
1716         * stack.c (parse_frame_specification_1): New function based on
1717         parse_frame_specification.  Add message and selected_frame_p
1718         paramters.  Truely always return non-NULL.
1719         (parse_frame_specification): Call parse_frame_specification_1.
1720         (frame_info): Update.  Eliminate target_has_stack check.
1721         (select_frame_command): Update.
1722
1723 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1724
1725         * frame.h (get_selected_frame): Add message parameter.
1726         * frame.c (get_selected_frame): Add and use message parameter.
1727         * stack.c (current_frame_command, return_command, locals_info)
1728         (catch_info, args_info, up_silently_base, down_silently_base): Use
1729         get_selected_frame with an explicit message.
1730         * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1731         * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1732         * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1733         * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1734         * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1735         * breakpoint.c: Update.
1736
1737 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1738
1739         * trad-frame.c (trad_frame_get_prev_register): Use
1740         frame_unwind_register instead of frame_register_unwind, do not
1741         recurse the register's location.
1742         * xstormy16-tdep.c (xstormy16_frame_prev_register): 
1743         * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1744         * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1745         * sh-tdep.c (sh_frame_prev_register): Ditto.
1746         * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1747         * i386-tdep.c (i386_frame_prev_register): Ditto.
1748         * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1749         * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1750
1751 2004-10-28  Mark Kettenis  <kettenis@jive.nl>
1752
1753         * proc-events.c: Fix several coding-style issues.  Consistently
1754         use #ifdef instead of #if defined().
1755         (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1756         ARRAY_SIZE.
1757         (_initialize_proc_events): New prototype.
1758
1759         * proc-why.c: Fix several coding-style issues.
1760         (proc_prettyfprint_why): Use ARRAY_SIZE.
1761
1762 2004-10-27  Jim Blandy  <jimb@redhat.com>
1763
1764         * remote.c (fetch_register_using_p): Construct 'p' packet in a
1765         manner independent of the host byte order.
1766
1767 2004-10-27  Mark Kettenis  <kettenis@gnu.org>
1768
1769         * mips-tdep.c (id_delayed): Remove prototype.
1770
1771 2004-10-26  Mark Kettenis  <kettenis@gnu.org>
1772
1773         * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1774         MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1775         to enum with register numbers.
1776         (enum mips_insn_size): New enum.
1777
1778 2004-10-26  Andrew Cagney  <cagney@gnu.org>
1779
1780         * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1781         * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1782         (mips_gdbarch_init): Update.
1783         (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1784
1785         * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1786         * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1787         IN_SOLIB_RETURN_TRAMPOLINE.
1788         * mips-tdep.c (mips_dump_tdep): Do not print
1789         IN_SOLIB_RETURN_TRAMPOLINE.
1790         (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1791         (mips_gdbarch_init): Update.
1792
1793         * mips-tdep.h (mips_software_single_step): Move to here ...
1794         * config/mips/tm-mips.h: ... from here.
1795         * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) 
1796         (SOFTWARE_SINGLE_STEP): Delete.
1797         * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1798
1799 2004-10-25  Andrew Cagney  <cagney@gnu.org>
1800
1801         * NEWS: Add Changes since GDB 6.3 section.
1802
1803 2004-10-23  Andreas Schwab  <schwab@suse.de>
1804
1805         * ada-lang.c (grow_vect): Return the new array instead of
1806         expecting pointer to pointer to avoid violation of aliasing rules.
1807         * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1808
1809 2004-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1810
1811         * s390-tdep.c (enum pv_boolean): Remove.
1812         (pv_is_array_ref): Remove.
1813         (s390_on_stack): Remove.
1814         (S390_NUM_SPILL_SLOTS): Remove.
1815         (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1816         add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1817         (s390_store): Track all stores of orginal incoming registers to the
1818         stack constant offsets relative to the CFA, instead of only tracking
1819         stores into specific spill slots.
1820         (s390_load): Likewise.
1821         (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1822         (s390_prologue_frame_unwind_cache): Likewise.  Only track registers
1823         defined as call-saved by the ABI.
1824         (s390_push_dummy_call): Use bottom of dummy call argument save area
1825         as return value, not the top.  Do not store to the called function's
1826         register save area.
1827         (s390_unwind_dummy_id): Adapt accordingly.
1828
1829 2004-10-23  Andrew Cagney  <cagney@gnu.org>
1830
1831         * objfiles.h (struct objfile): Rename obj_private to
1832         deprecated_obj_private, sym_private to deprecated_sym_private, and
1833         sym_stab_info to deprecated_sym_stab_info.
1834         * gdb-stabs.h: Update.
1835         * elfread.c: Update.
1836         * dbxread.c: Update.
1837         * coffread.c: Update.
1838         * xcoffread.c: Update.
1839         * symfile.c: Update.
1840         * somread.c: Update.
1841         * nlmread.c: Update.
1842         * mdebugread.c: Update.
1843         * hpread.c: Update.
1844         * coffread.c: Update.
1845
1846 2004-10-23  Mark Kettenis  <kettenis@gnu.org>
1847
1848         * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1849         * configure.host: Add mips64*-*-openbsd*.
1850         * configure.tgt: Add mips64*-*-openbsd*.
1851         * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1852         mips64obsd-tdep.c.
1853         (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1854         * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1855
1856 2004-10-21  Joel Brobecker  <brobecker@gnat.com>
1857
1858         * symtab.c (symbol_search_name): Minor reformatting.
1859
1860 2004-10-20  Joel Brobecker  <brobecker@gnat.com>
1861
1862         * symtab.h: Fix typo in comment.
1863
1864 2004-10-19  Mark Kettenis  <kettenis@gnu.org>
1865
1866         * dwarf2read.c (struct comp_unit_head): Fix coding style.
1867         (dwarf_decode_line_header): Likewise.
1868
1869 2004-10-19  Michael Chastain  <mec.gnu@mindspring.com>
1870
1871         * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1872
1873 2004-10-19  Andrew Cagney  <cagney@gnu.org>
1874
1875         GDB 6.3 branch created.
1876         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1877
1878 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1879
1880         * dwarf2read.c (set_cu_language): Set language to Ada for
1881         DW_LANG_Ada83 and DW_LANG_Ada95.
1882
1883 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
1884
1885         From Andreas Schwab <schwab@suse.de>:
1886         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1887         for xmalloc and xrealloc.
1888
1889 2004-10-15  Andrew Cagney  <cagney@gnu.org>
1890
1891         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1892         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1893         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1894         Update dependencies.
1895
1896 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
1897
1898         * ada-lang.c (ada_lookup_symbol): Correct comment.
1899         (ada_evaluate_subexp): Change error message for
1900         OP_FUNCALL case so as not to indicate an internal error.
1901         
1902 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1903
1904         Committed by Paul Hilfinger.
1905         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1906         type sizes in XVE/XVU types, and emit a warning when that happens,
1907         instead of rounding up the size of the resulting type.
1908         Some minor reformatting.
1909         (ada_is_aligner_type): Do not consider a type as an aligner type 
1910         if there is a corresponding XVS type as well.
1911         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
1912         have several levels of pointer indirection to the array.
1913         
1914 2004-10-15  Jerome Guitton  <guitton@gnat.com>
1915
1916         Committed by Paul Hilfinger.
1917         * ada-lang.c (check_size): New function.
1918         (coerce_unspec_val_to_type): call check_size to make sure
1919         that the object size is reasonable.
1920         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1921         Implements the case when we get a reference when we evaluate
1922         the expression of one of the bounds of the slice.
1923         (ada_value_struct_elt): when a packed array field is
1924         a reference, use ada_coerce_ref to dereference it; use 
1925         ada_value_ind only if it is a pointer.
1926
1927 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1928
1929         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1930         a bit to avoid the necessity of an advance declaration. Remove
1931         declaration.
1932         (set_reg_offset): Move implemenation up.
1933         (mips16_get_imm): Likewise.
1934         (mips16_scan_prologue): Likewise.
1935         (reset_saved_regs): Likewise.
1936         (mips32_scan_prologue): Likewise.
1937
1938 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1939
1940         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1941         Remove sp as a parameter, compute it internally instead. Move
1942         prologue scanning limit from heuristic_proc_desc to here.
1943         (mips16_scan_prologue): Likewise.
1944         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1945         by call to mips16_scan_prologue.
1946         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1947         by call to mips32_scan_prologue.
1948         (heuristic_proc_desc): Remove code that's no longer necessary.
1949         Update calls to mips16_scan_prologue and mips32_scan_prologue.
1950         (mips_skip_prologue): Update calls to mips16_scan_prologue
1951         and mips32_scan_prologue.
1952
1953 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1954
1955         * mips-tdep.c (mips16_scan_prologue): Merge code from
1956         mips16_skip_prologue.  Now return the address of the first
1957         instruction past the function prologue.
1958         (mips16_skip_prologue): Remove, no longer necessary.
1959         (mips_skip_prologue): Replace call to mips16_skip_prologue
1960         by call to mips16_scan_prologue.
1961
1962 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1963
1964         * mips-tdep.c (mips32_scan_prologue): Merge code from
1965         mips32_skip_prologue.  Now return the address of the first
1966         instruction past the function prologue.
1967         (mips32_skip_prologue): Remove.  No longer necessary.
1968         (mips16_skip_prologue): Add parameter end_pc instead of
1969         computing it.
1970         (mips_skip_prologue): Compute the upper limit for the
1971         prologue scanning. Update call to mips16_skip_prologue.
1972         Replace call to mips32_skip_prologue by call to
1973         mips32_scan_prologue.
1974
1975 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
1976
1977         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1978         NetBSD system call stubs that store %rp in the ERP slot of the
1979         stack frame.
1980
1981         * source.c: Always define O_BINARY to 0 if not defined already.
1982         (openp): Unconditionally use O_BINARY.
1983
1984         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1985         * event-top.c (gdb_readline2): Likewise.
1986
1987 2004-10-14  Orjan Friberg  <orjanf@axis.com>
1988
1989         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1990         deprecated_add_core_fns which was removed by mistake.
1991
1992 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1993
1994         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1995         references to deprecated_registers[] with equivalent code.
1996
1997 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1998
1999         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
2000         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
2001         instead of explicit test and print statement.
2002
2003 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
2004
2005         * sparc-nat.c: Include "inf-ptrace.h".
2006         (sparc_target): New function.
2007         * sparc-nat.h: Update copyright year.
2008         (sparc_target): New prototype.
2009         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
2010         (_initialize_sparcnbsd_nat): Construct and add target vector.
2011         * sparc64nbsd-nat.c: Include "target.h".
2012         (_initialize_sparc64nbsd_nat): Construct and add target vector.
2013         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
2014         Update dependencies.
2015         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
2016         inftarg.o, add inf-ptrace.o.
2017         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2018         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2019         (NAT_FILE): Set to nm-bsd.h.
2020         (LOADLIBES): New variable.
2021         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2022         infarg.o, add inf-ptrace.o.
2023         * config/sparc/nm-nbsdaout.h: Remove file.
2024         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2025         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2026         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2027
2028         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2029         "fopen-same.h".  Update comment.
2030
2031 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
2032
2033         * i386gnu-nat.c: Include "gdb_string.h".
2034         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2035         registers when the floating-point state isn't initialized.
2036         * Makefile.in (i386gnu-nat.o): Update dependencies.
2037
2038 2004-10-11  David Anderson  <davea@sgi.com>
2039
2040         * regcache.c (regcache_raw_read): Comment was missing "to".
2041         Extraneous ' removed.
2042         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2043         comment now describes use.
2044
2045 2004-10-11  Orjan Friberg  <orjanf@axis.com>
2046
2047         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2048         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2049         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2050         (cris_sigtramp_frame_sniffer): New functions.
2051         (cris_gdbarch_init): Hook in signal trampoline unwinder.
2052         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2053         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2054         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2055         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2056         command.
2057         (cris_version_update): Remove, replace with ...
2058         (set_cris_version): New function.
2059         (struct gdbarch_tdep, cris_mode, cris_mode_update)
2060         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2061         (_initialize_cris_tdep): Remove CRIS mode command.
2062         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
2063         cris-fpless-backtrace command.
2064         (cris_scan_prologue): Fix prologue scanning limit.
2065         (cris_register_type): Update to reflect actual registers.
2066         (cris_register_bytes_ok) Remove.
2067         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2068         Remove set_gdbarch_deprecated_register_size,
2069         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2070         
2071 2004-10-10  Andrew Cagney  <cagney@gnu.org>
2072
2073         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2074         comment.
2075
2076 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2077
2078         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2079
2080 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2081
2082         * mips-tdep.c (mips16_scan_prologue): Renames
2083         mips16_heuristic_proc_desc. Update comment.
2084         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2085         (heuristic_proc_desc): Update calls to the 2 functions above.
2086
2087 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2088
2089         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2090         Update comments. Also immediately return empty cache when the start
2091         address of our function could not be found.
2092         (mips_insn32_frame_cache): Likewise.
2093
2094 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2095
2096         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2097         (mips_insn16_frame_cache): Pass frame cache in call to
2098         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2099         Remove code that became redundant as a consequence.
2100         (mips32_heuristic_proc_desc): No longer compute a fake
2101         procedure descriptor. Compute the full frame cache instead.
2102         Some minor comment reformatting.
2103
2104 2004-10-10  Jim Blandy  <jimb@redhat.com>
2105
2106         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2107         reader, tracing bytecode stuff): Remove self.
2108
2109 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
2110
2111         * sparc64-linux-tdep.c: Update copyright year.  Don't include
2112         "solib-svr4.h".
2113         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2114         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2115         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2116
2117         * sparc-linux-tdep.c: Update copyright year.
2118         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2119         to struct frame_info *.  Use safe_frame_unwind_memory instead of
2120         deprecated_read_memory_nobpt.
2121         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2122         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
2123         changed signature of sparc_linux_sigtramp_start.
2124         (sparc32_linux_pc_in_sigtramp): Remove function.
2125         (sparc32_linux_sigtramp_p): New function.
2126         (sparc32_linux_sigtramp_frame_sniffer): Use
2127         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2128
2129         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2130         Remove function.
2131         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2132
2133         * ada-lang.c (lim_warning): Re-implement as a varargs function.
2134         (decode_packed_array_type, value_subscript_packed)
2135         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2136         argument in call to lim_warning.
2137
2138         * configure.in: Really disable the TUI if an enhanced curses
2139         library isn't found.
2140         * configure: Regenerate.
2141
2142 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
2143
2144         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2145         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2146         * config/i386/nm-nbsdaout.h: Remove file.
2147         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2148         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2149         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2150         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2151         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2152         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2153         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2154         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2155         (ldd, ld_un, ld_2): Remove defines.
2156         * config/i386/nm-obsd.h: Likewise.
2157
2158 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
2159
2160         * ada-lex.l: Remove useless rule whose right-context clause
2161         causes unreferenced static function warning for yyrealloc.
2162         (ada_flex_use): Remove the artificial reference to yyrealloc.
2163
2164 2004-10-08  Andrew Cagney  <cagney@gnu.org>
2165
2166         * target.h (struct target_ops): Rename to_xfer_memory to
2167         deprecated_xfer_memory.
2168         * target.c: Update.
2169         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2170         * wince.c: Update.
2171         * win32-nat.c: Update.
2172         * v850ice.c: Update.
2173         * uw-thread.c: Update.
2174         * thread-db.c: Update.
2175         * sol-thread.c: Update.
2176         * remote.c: Update.
2177         * remote-vx.c: Update.
2178         * remote-st.c: Update.
2179         * remote-sim.c: Update.
2180         * remote-sds.c: Update.
2181         * remote-rdp.c: Update.
2182         * remote-rdi.c: Update.
2183         * remote-mips.c: Update.
2184         * remote-m32r-sdi.c: Update.
2185         * remote-e7000.c: Update.
2186         * procfs.c: Update.
2187         * ppc-bdm.c: Update.
2188         * nto-procfs.c: Update.
2189         * monitor.c: Update.
2190         * linux-nat.c: Update.
2191         * inftarg.c: Update.
2192         * hpux-thread.c: Update.
2193         * go32-nat.c: Update.
2194         * gnu-nat.c: Update.
2195         * exec.c: Update.
2196         * corelow.c: Update.
2197         * bsd-kvm.c: Update.
2198         * aix-thread.c: Update.
2199
2200 2004-10-08  Andrew Cagney  <cagney@gnu.org>
2201
2202         * target.c (debug_target): Move to near start of file.
2203         (target_stopped_data_address_p): Re-org logic, add casts.
2204
2205 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
2206
2207         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2208         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2209         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2210         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2211         New defines.
2212
2213 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2214
2215         * target.h (to_stopped_data_address): Change prototype to
2216         take a CORE_ADDR pointer and return an int.
2217         * target.c (update_current_target): Change to_stopped_data_address
2218         to match new prototype.
2219         (debug_to_stopped_data_address): Change appropriately.
2220         * breakpoint.c (bpstat_stop_status): Change call to
2221         target_stopped_data_address to use new prototype.
2222         * frv-tdep.c (frv_have_stopped_data_address): New function.
2223         (frv_stopped_data_address): Change to new prototype and
2224         functionality.
2225         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2226         prototype and functionality.
2227         (ia64_stopped_by_watchpoint): New function.
2228         * i386-nat.c (i386_stopped_data_address): Change to new
2229         prototype and functionality.
2230         (i386_stopped_by_watchpoint): New function.
2231         * remote.c (remote_stopped_data_address): Change to new prototype
2232         and functionality.
2233         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2234         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2235         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2236         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2237         new i386_stopped_by_watchpoint function.
2238         (i386_stopped_by_watchpoint): New prototype.
2239         (i386_stoppped_data_address): Change to new prototype.
2240         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2241         new ia64_stopped_by_watchpoint function.
2242         (ia64_stopped_by_watchpoint): New prototype.
2243         (ia64_stopped_data_address): Ditto.
2244
2245 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
2246
2247         * ada-typeprint.c (ada_print_type): Use int_string for printing
2248         modulus of modular type.
2249         * ada-lang.h (ada_modulus): Change return type to unsigned.
2250         * ada-lang.c (ada_language_arch_info): Correct type of 
2251         string_char_type.
2252         (ada_modulus): Return unsigned result.
2253         (ada_lookup_symbol): Remove user disambiguation and modify comment 
2254         accordingly.
2255         
2256 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
2257
2258         Committed by Paul Hilfinger.
2259         * ada-lang.c (decode_packed_array): On big-endian targets, 
2260         left-justify the value if it comes with a modular type.
2261
2262 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
2263
2264         Committed by Paul Hilfinger.
2265         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2266         (is_name_suffix): Add support for "___JM" suffixes.
2267         (ada_check_typedef): Renames ada_completed_type. 
2268         Update all users of CHECK_TYPEDEF, check_typedef, and 
2269         ada_complete_type to call ada_check_typedef.
2270         * ada-typeprint.c: Likewise.
2271         * ada-valprint.c: Likewise.
2272
2273 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
2274
2275         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2276
2277 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
2278
2279         * MAINTAINERS: Update e-mail address.
2280
2281 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
2282
2283         From Maciej W. Rozycki  <macro@mips.com>:
2284         * mips-tdep.c (mips32_next_pc): Check the register's contents,
2285         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2286
2287 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
2288
2289         * m32r-tdep.c (decode_prologue): Support functions written
2290         in assembler language. Recognize trap instructions as the
2291         end of prologue.
2292         (m32r_frame_unwind_cache): Ditto.
2293         (m32r_skip_prologue): Extend search limit. Quit analyzing
2294         prologue if pc's location is not readable.
2295
2296 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
2297
2298         * Makefile.in (.l.c): Do conversions of names of alloc and free 
2299         functions that are done for .y.c files, plus special one
2300         for yy_flex_realloc.  Also, correct missing-file tests here.
2301         * ada-lex.l (malloc, free): Remove macros.
2302         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2303         xrealloc.
2304         (ada_flex_use): Dummy definition to remove warnings about unused
2305         functions.
2306         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2307         to suppress warning.
2308         
2309 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2310
2311         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2312         RETURN_VALUE.
2313         (sh_return_value_fpu): Ditto for CPUs with FPU.
2314         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2315         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2316         Install sh_return_value_nofpu resp. sh_return_value_fpu as
2317         RETURN_VALUE functions.
2318
2319 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2320
2321         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
2322         (sh_pseudo_register_write): Ditto.
2323
2324 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2325
2326         * sh-tdep.c (IS_MACL_STS): New define.
2327         (IS_MOVI20): Ditto.
2328         (IS_MACL_LDS): Ditto.
2329         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2330         instructions in prologue.
2331         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2332         instructions in epilogue.
2333
2334 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2335
2336         * sh-tdep.c (SH_NUM_REGS): Define as 67.
2337         (sh_sh_register_name): Add eight empty register names.
2338         (sh_sh3_register_name): Ditto.
2339         (sh_sh3e_register_name): Ditto.
2340         (sh_sh2e_register_name): Ditto.
2341         (sh_sh2a_register_name): New function, defining SH2A register set.
2342         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2343         in nofpu case.
2344         (sh_sh_dsp_register_name): Add eight empty register names.
2345         (sh_sh3_dsp_register_name): Ditto.
2346         (sh_sh4_register_name): Ditto.
2347         (sh_sh4_nofpu_register_name): Ditto.
2348         (sh_sh4al_dsp_register_name): Ditto.
2349         (sh2a_show_regs): New function.
2350         (sh2a_nofpu_show_regs): New function.
2351         (sh_sh2a_register_type): New function.
2352         (do_bank_register_info): New function.
2353         (sh_print_pseudo_register): Call do_bank_register_info.
2354         Call sh_print_pseudo_register for valid "bank" register.
2355         (sh_sh2a_register_sim_regno): New function.
2356         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2357         Increment pseudo register count by one for all sh variants with
2358         pseudo registers to accomodate pseudo bank register.
2359         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2360         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2361         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
2362         Increment pseudo register numbers.
2363
2364 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2365
2366         * dwarf2read.c (read_subroutine_type): Call make_function_type
2367         instead of lookup_function_type.
2368
2369 2004-10-05  Jim Blandy  <jimb@redhat.com>
2370
2371         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2372         (Previous change missed some uses.)
2373
2374 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2375
2376         * target.h (deprecated_child_ops): Rename child_ops.
2377         * wince.c: Update copyright.  Rename child_ops.
2378         * win32-nat.c: Rename child_ops.
2379         * target.c: Rename child_ops.
2380         * rs6000-nat.c: Rename child_ops.
2381         * linux-nat.c: Rename child_ops.
2382         * infttrace.c: Rename child_ops.
2383         * inftarg.c: Rename child_ops.
2384         * infptrace.c: Rename child_ops.
2385         * hppah-nat.c: Update copyright.  Rename child_ops.
2386         * hpux-thread.c: Update copyright.  Rename child_ops.
2387
2388 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2389
2390         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2391
2392 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2393
2394         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2395
2396 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2397
2398         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2399         (die_ref_table): Remove.
2400         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2401         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
2402         the usage of this type.
2403         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2404         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2405         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2406         (dwarf2_create_include_psymtab): Update comment.
2407         (find_partial_die): Remove third argument.  Remove unreachable call
2408         to error ().
2409         (dwarf2_find_containing_comp_unit): Update comments.  Change one
2410         assertion to an error.  Remove an unreachable error.
2411         (dwarf2_find_comp_unit): Update comments.
2412         (type_at_offset): Remove dead code.
2413         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2414         (store_in_ref_table): Add CU argument.
2415         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
2416         inter-compilation-unit references.
2417         (load_full_comp_unit, process_full_comp_unit): New functions, based
2418         on psymtab_to_symtab_1.
2419         (psymtab_to_symtab_1): Use them.
2420         (dwarf2_add_dependence): New function.
2421         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
2422         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2423         (partial_die_parent_scope, guess_structure_name): Update for changes
2424         to find_partial_die.
2425         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2426         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2427         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2428         (read_die_and_children): Update call to store_in_ref_table.
2429         (do_free_die_list_cleanup): Remove.
2430         (fixup_partial_die): Update for changes to find_partial_die.
2431         (read_full_die): Handle queueing absolute references.
2432         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2433         (dwarf2_attr, die_specification, die_type)
2434         (die_containing_type, dwarf2_extension): Update calls to
2435         follow_die_ref.
2436         (dump_die): Update DW_FORM_ref* handling.
2437         (dwarf2_get_ref_die_offset): Likewise.
2438         (free_one_comp_unit): Release the dies list.
2439         (dwarf2_mark_helper): New function.
2440         (dwarf2_mark): Use it.
2441
2442 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
2443
2444         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2445         when writing to memory.
2446
2447 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
2448
2449         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2450         (m32r_extract_struct_value_address): Delete function.
2451         (m32r_return_value): New function.
2452         (m32r_gdbarch_init): Instead of store_return_value,
2453         extract_return_value, deprecated_extract_struct_value_address
2454         and deprecated_use_struct_convention, set return_value.
2455
2456 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
2457
2458         * dwarf2read.c (read_subrange_type): Add comment for variable
2459         sized arrays.
2460
2461 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
2462
2463         * Makefile.in (.l.c): Modify rule for compatibility with recent
2464         versions of flex, and remove most command-line options.
2465         * ada-lex.l: Add %options line in place of -I -i and -s command-line
2466         options.
2467
2468 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
2469
2470         Turn on initial Ada support (mainly expression evaluation).
2471         
2472         * Makefile.in (SFILES): Remove ada-tasks.c.
2473         (HFILES_NO_SRCDIR): Add ada-lang.h.
2474         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2475         (YYOBJ): Add ada-exp.o.
2476         (rule .l.c): Generalize to not mention ada.
2477         * symtab.c: Include ada-lang.h.
2478         (symbol_natural_name, symbol_demangled_name)
2479         (symbol_search_name): Add Ada case.
2480
2481 2004-10-01  Andrew Cagney  <cagney@gnu.org>
2482
2483         * Makefile.in (COMMON_OBS): Add inf-child.o.
2484         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2485         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2486         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2487         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2488         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2489         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2490         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2491         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2492         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2493         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2494         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2495         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2496         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2497
2498         * target.c (xfer_using_stratum): Change return type to LONGEST.
2499         On each iteration offset, readbuf and writebuf.
2500         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2501         partial_length, and read/modify/write predicate, update comments.
2502         Pass buffer.word to ptrace write.
2503
2504 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
2505
2506         * symfile.c (init_filename_language_table): Add extensions for
2507         Ada.
2508         * defs.h (enum language): Add language_ada.
2509         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2510         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2511         (add_symbols_from_enclosing_procs): Make a no-op for now.
2512         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2513         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2514         (find_line_in_linetable, find_next_line_in_linetable)
2515         (read_all_symtabs, is_plausible_func_for_line)
2516         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2517         (is_runtime_sym_defined, check_size): Remove declaration.
2518         (function_name_from_pc, ada_translate_error_message)
2519         (ada_lookup_minimal_symbol): Remove definition.
2520         (ada_add_block_symbols): Remove useless label.
2521         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
2522         useless declaration.
2523         (ada_is_exception_sym): Likewise.
2524
2525 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
2526
2527         Add m32r-linux support.
2528         * configure.tgt: Add m32r*-*-linux*.
2529         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2530         and m32r-linux-tdep.c.
2531         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2532         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2533         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2534         m32r-linux-tdep.c.
2535         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2536         config/m32r/linux.mh, config/m32r/linux.mt,
2537         config/m32r/nm-linux.h: New files.
2538
2539 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2540
2541         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2542         (mips32_fetch_instruction): Remove, unused.
2543
2544 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2545
2546         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2547         conditions that will always be true.
2548
2549 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
2550
2551         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2552         (vaxbsd_fetch_inferior_registers): Rename from
2553         fetch_inferior_registers.  Make static.
2554         (vaxbsd_store_inferior_registers): Rename from
2555         store_inferior_registers.  Make static.
2556         (_initialize_vaxbsd_nat): Construct and add target vector.
2557         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2558         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2559         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2560         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2561         (NAT_FILE): Remove.
2562         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2563         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2564         (NAT_FILE): Remove.
2565         * Makefile.in (vaxbsd-nat.o): Update dependencies.
2566
2567         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2568         (m88kbsd_fetch_inferior_registers): Rename from
2569         fetch_inferior_registers.  Make static.
2570         (m88kbsd_store_inferior_registers): Rename from
2571         store_inferior_registers.  Make static.
2572         (_initialize_m88kbsd_nat): New prototype and function.
2573         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2574         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2575         (NAT_FILE): Remove.
2576         * Makefile.in (m88kbsd-nat.o): Update dependencies.
2577
2578 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2579
2580         * target.c (target_xfer_partial): New function.
2581         (target_read_memory_partial, target_write_memory_partial) 
2582         (default_xfer_partial, target_read_partial, target_write_partial) 
2583         (xfer_using_stratum): Use.
2584         (debug_to_xfer_partial): Delete function.
2585         (setup_target_debug): Do not override to_xfer_partial.
2586
2587 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
2588
2589         * fork-child.c: Update copyright year.  Fix coding style.
2590
2591 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
2592
2593         * defs.h (msavestring, mstrsave): Remove prototypes.
2594         * utils.c (msavestring, mstrsave): Remove functions.
2595         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2596         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2597         of mstrsave.
2598         * source.c (find_and_open_source): Use xstrdup instead of
2599         mstrsave.
2600
2601 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2602
2603         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2604         (inf_ptrace_xfer_memory): Delete.
2605         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2606         (target_read_memory, target_write_memory): Use xfer_using_stratum
2607         when target_xfer_partial_p.
2608         (debug_target): Move to start of file.
2609         (target_read_memory_partial, target_write_memory_partial): Use
2610         to_xfer_partial when target_xfer_partial_p.
2611
2612         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2613         inf_ptrace_xfer_memory with equivalent code.
2614         * inftarg.c (child_xfer_partial): When performing a write, pass
2615         writebuf to child_xfer_memory.
2616
2617         * target.c (target_read_string): Use target_read_memory instead of
2618         target_xfer_memory.
2619
2620 2004-09-29  Andrew Cagney  <cagney@gnu.org>
2621
2622         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
2623         the address of status.
2624
2625         * infptrace.c (ptrace_wait): Mention problem with HPUX.
2626         (kill_inferior): Inline ptrace_wait call.
2627         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2628         * inftarg.c (child_wait): Inline ptrace_wait call.
2629
2630         * target.h (struct target_ops): Delete field to_post_wait.
2631         (target_post_wait): Delete macro.
2632         (child_post_wait): Delete declaration.
2633         * target.c (update_current_target, update_current_target)
2634         (debug_to_post_wait, setup_target_debug): Delete functions and
2635         references.
2636         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2637         * inftarg.c (child_post_wait): Delete.
2638         (init_child_ops): Do not set to_post_wait.
2639         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2640         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2641         * inf-child.c (inf_child_post_wait): Delete.
2642         (inf_child_target): Do not set to_post_wait.
2643         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2644         (inf_ptrace_target): Do not set to_post_wait.
2645
2646         * wince.c (child_ops): Delete.
2647         * win32-nat.c (child_ops): Delete.
2648
2649         * inftarg.c (inftarg_set_find_memory_regions) 
2650         (inftarg_set_make_corefile_notes): Delete functions.
2651         (_initialize_linux_nat): Inline calls.
2652
2653         * target.h (child_ops): Declare.
2654         * inftarg.c (child_ops): Move from here ...
2655         * target.c (child_ops): ... to here.
2656         * wince.c (child_ops): Delete extern declaration.
2657         * win32-nat.c (child_ops): Delete extern declaration.
2658         * linux-nat.c (child_ops): Delete extern declaration.
2659         * hpux-thread.c (child_ops): Delete extern declaration.
2660
2661 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2662
2663         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2664
2665 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2666
2667         * configure.in: Only set host_makefile_frag when building a native
2668         debugger.
2669         * configure: Regenerate.
2670
2671         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2672         for OpenBSD ELF.
2673
2674 2004-09-28  Andrew Cagney  <cagney@gnu.org>
2675
2676         Problem identified by Paul Hilfinger.
2677         * Makefile.in (ada_lex_c): Define.
2678         (ada-lex.o): Delete rule.
2679
2680         * linux-proc.c: Delete file.
2681         * Makefile.in: Update.
2682         * config/sparc/linux64.mh (NATDEPFILES): 
2683         * config/sparc/linux.mh (NATDEPFILES): Update.
2684         * config/s390/s390.mh (NATDEPFILES): Update.
2685         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2686         * config/powerpc/linux.mh (NATDEPFILES): Update.
2687         * config/pa/linux.mh (NATDEPFILES): Update.
2688         * config/mips/linux.mh (NATDEPFILES): Update.
2689         * config/m68k/linux.mh (NATDEPFILES): Update.
2690         * config/ia64/linux.mh (NATDEPFILES): Update.
2691         * config/i386/linux64.mh (NATDEPFILES): Update.
2692         * config/i386/linux.mh (NATDEPFILES): Update.
2693         * config/arm/linux.mh (NATDEPFILES): Update.
2694         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2695         * linux-nat.c: Update copyright.  Include <sys/param.h>,
2696         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2697         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2698         (O_LARGEFILE): Possibly define.
2699         (_initialize_linux_nat, linux_proc_pending_signals)
2700         (add_line_to_sigset, linux_proc_xfer_memory)
2701         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2702         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2703         (struct linux_corefile_thread_data)
2704         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2705         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2706
2707 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2708
2709         * lin-lwp.c: Delete file.
2710         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2711         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2712         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2713         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2714         (linux_nat_attach, detach_callback, linux_nat_detach)
2715         (resume_callback, resume_clear_callback, linux_nat_resume)
2716         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2717         (stop_wait_callback, linux_nat_has_pending, flush_callback)
2718         (status_callback, running_callback, count_events_callback)
2719         (select_singlestep_lwp_callback, select_event_lwp_callback)
2720         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2721         (child_wait, stop_and_resume_callback, linux_nat_wait)
2722         (kill_callback, kill_wait_callback, linux_nat_kill)
2723         (linux_nat_create_inferior, linux_nat_mourn_inferior)
2724         (linux_nat_xfer_memory, linux_nat_thread_alive)
2725         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2726         (_initialize_linux_nat): New functions.
2727         * Makefile.in: Update all dependencies.
2728         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2729         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2730         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2731         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2732         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2733         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2734         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2735         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2736         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2737         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2738         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2739         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2740         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2741
2742 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
2743
2744         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2745         config/i386/obsd64.mh (NAT_FILE): Remove variable.
2746
2747         * configure.in: Don't comment out NATDEPFILES in the generated
2748         Makefile if NAT_FILE is unset.
2749         * configure: Regenerate.
2750
2751 2004-09-27  Andrew Cagney  <cagney@gnu.org>
2752
2753         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2754         (insert_step_resume_breakpoint): Delete.
2755         (insert_step_resume_breakpoint_at_frame): New function.
2756         (insert_step_resume_breakpoint_at_sal): New function.
2757         (handle_inferior_event, step_into_function)
2758         (insert_step_resume_breakpoint): Simplify by using same.
2759
2760         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2761
2762 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2763
2764         * fbsd-proc.c: Remove file.
2765         * Makefile.in (fbsd-proc.o): Remove dependency.
2766
2767         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2768         code together.
2769
2770         * config/i386/nm-fbsd64.h: Remove file.
2771         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2772
2773 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2774
2775         * amd64-nat.h: Update copyright year.
2776         (amd64bsd_target): New prototype.
2777         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2778         (amd64bsd_target): New function.
2779         (amd64bsd_fetch_inferior_registers): Rename from
2780         fetch_inferior_registers.  Make static.
2781         (amd64bsd_store_inferior_registers): Rename from
2782         store_inferior_registers.  Make static.
2783         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2784         (_initialize_amd64fbsd_nat): Construct and add target vector.
2785         * amd64nbsd-nat.o: Include "target.h".
2786         (_initialize_amd64nbsd_nat): Construct and add target vector.
2787         * amd64obsd-nat.c: Include "target.h".
2788         (_initialize_amd64obsd_nat): Construct and add target vector.
2789         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2790         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2791         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
2792         fbsd-nat.o.
2793         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2794         Remove infptrace.o and inftarg.o.  Add inf-child.o and
2795         inf-ptrace.o.
2796         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2797         (amd64obsd-nat.o): Update dependencies.
2798
2799 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
2800
2801         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2802         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2803         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2804         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2805         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2806
2807         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2808         Inline attach call.
2809         (inf_ptrace_detach): Inline detach call.
2810
2811         * configure.in: Check for waddstr instead of mvwaddstr when
2812         searching for curses library.  Check for wborder.
2813         * configure, config.in: Regenerate.
2814         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2815         available.
2816
2817         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2818
2819 2004-09-24  Robert Picco <Robert.Picco@hp.com>
2820
2821         Committed by Andrew Cagney.
2822         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2823         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
2824         configuration.
2825         (fetch_register_using_p): Implement 'p' packet.  Based on code by
2826         Fernando Nasser.
2827         (remote_fetch_registers): Call fetch_register_using_p.
2828         (init_all_packet_configs, show_remote_cmd)
2829         (_initialize_remote): Add p-packet.
2830
2831 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
2832
2833         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2834         instead of call_ptrace.  Call wait directly instead of
2835         ptrace_wait.
2836         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2837         (inf_ptrace_wait): Inline ptrace_wait call.
2838
2839 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2840
2841         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
2842         rolled back instead.
2843
2844 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2845
2846         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2847         the new argument order.
2848
2849 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
2850
2851         * MAINTAINERS: Remove "broken" from XStormy16 entry.
2852         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2853         (struct gdbarch_tdep): Remove.
2854         (struct xstormy16_frame_cache): New frame cache structure.
2855         (xstormy16_register_byte, xstormy16_register_raw_size)
2856         (xstormy16_reg_virtual_type, xstormy16_register_type)
2857         (xstormy16_push_arguments, xstormy16_push_return_address)
2858         (xstormy16_pop_frame, xstormy16_store_struct_return)
2859         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2860         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2861         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2862         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2863         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2864         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2865         (xstormy16_use_struct_convention): Drop gcc_p parameter.
2866         (xstormy16_extract_return_value, xstormy16_store_return_value):
2867         Regcachify.  Drop useless struct convention handling.
2868         (xstormy16_register_type, xstormy16_return_value)
2869         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2870         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2871         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2872         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2873         (xstormy16_unwind_sp, xstormy16_unwind_pc)
2874         (xstormy16_unwind_dummy_id) : New functions.
2875         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2876         of xstormy16_scan_prologue.
2877         (xstormy16_frame_unwind): New frame_unwind structure.
2878         (xstormy16_frame_base): New frame_base structure.
2879         (xstormy16_gdbarch_init): Accomodate all of the above changes.
2880         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
2881
2882 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
2883
2884         * language.c (language_gdbarch_post_init): Fix off-by one error.
2885
2886 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
2887
2888         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2889         (struct dwarf2_offset_and_type): New.
2890         (set_die_type, reset_die_and_siblings_types, get_die_type)
2891         (offset_and_type_hash, offset_and_type_eq): New functions.
2892         (read_structure_type, read_enumeration_type, read_array_type)
2893         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2894         (read_tag_reference_type, read_tag_const_type)
2895         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2896         (read_typedef, read_base_type, read_subrange_type): Use
2897         set_die_type.
2898
2899 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2900
2901         * Makefile.in (dwarf2read.o): Update dependencies.
2902         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2903         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2904         and read_in_chain.
2905         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2906         mark, and has_form_ref_addr.
2907         (struct dwarf2_per_cu_data): New.
2908         (dwarf2_max_cache_age): New.
2909         (dwarf2_build_psymtabs_hard): Free cached compilation units
2910         after loading.  Create and manage the list of compilation units.
2911         Remove unnecessary NULL initialization.  Fix indentation.
2912         (psymtab_to_symtab_1): Initialize all of CU.
2913         (dwarf2_read_abbrevs): Set has_form_ref_addr.
2914         (find_partial_die): Use dwarf2_find_containing_comp_unit
2915         and load_comp_unit.
2916         (free_stack_comp_unit): Update comments.  Clear the per-cu
2917         pointer.  Handle aging.
2918         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2919         (age_cached_comp_units, free_one_cached_comp_unit)
2920         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2921         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2922         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2923         (show_dwarf2_cmd): New.
2924         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2925         and "maint show dwarf2 max-cache-age".
2926         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2927         externs.
2928         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2929         global.
2930
2931 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
2932
2933         * dwarf2read.c (typename_concat): Change prototype to accept obstack
2934         and dwarf2_cu struct pointer as arguments.  Change function to use
2935         obstack if provided and use dwarf2_cu to determine language-specific
2936         separator.
2937         (partial_die_parent_scope): Change comment to include java.  Use
2938         new version of typename_concat instead of obconcat.
2939         (partial_die_full_name): Use typename_concat.
2940         (read_namespace): Ditto.
2941         (read_enumeration_type): Use typename_concat instead of obconcat.
2942         (new_symbol): Ditto.
2943         (add_partial_symbol): Enhance tests for C++ to also test for Java.
2944         (guess_structure_name): Ditto.
2945         (read_subroutine_type): Ditto.
2946         (read_structure_type): Ditto.
2947         (is_vtable_name): Add Java support.
2948         (determine_class_name): Switch to new typename_concat call.
2949         (determine_prefix): Switch to new typename_concat call.
2950         * jv-exp.y (FuncStart): New pattern.
2951         (MethodInvocation): Add support for simple function calls.  Change
2952         warning message for other forms of inferior call currently not
2953         supported.
2954         * valarith.c (value_subscript): Treat an array with upper-bound
2955         of -1 as unknown size.
2956
2957 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2958
2959         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2960         (lookup_partial_symtab): Use symtab_to_fullname.
2961
2962 2004-09-19  Jim Blandy  <jimb@redhat.com>
2963
2964         * minsyms.c (lookup_minimal_symbol): Doc fix.
2965
2966 2004-09-20  Andrew Cagney  <cagney@gnu.org>
2967
2968         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2969         CHILD_RESUME.
2970         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2971         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2972         KILL_INFERIOR.
2973         * infptrace.c: Update.
2974
2975 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
2976
2977         * symtab.c (output_source_filename): Mark first argument as const.
2978         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2979         for "info sources" output.
2980
2981 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
2982
2983         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2984         <machine/vmparam.h>.
2985         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2986         (register_u_addr): Remove prototype.
2987
2988 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
2989
2990         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2991         (i386bsd_fetch_inferior_registers): Rename from
2992         fetch_inferior_registers.  Make static.
2993         (i386bsd_store_inferior_registers): Rename from
2994         store_inferior_registers.  Make static.
2995         (i386bsd_target): New function.
2996         * i386bsd-nat.h: New file.
2997         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2998         "i386bsd-nat.h".
2999         (i386fbsd_resume): Rename from child_resume.  Make static.
3000         (_initialize_i386fbsd_nat): Construct and add target vector.
3001         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
3002         (_initialize_i386nbsd_nat): Construct and add target vector.
3003         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
3004         Remove defines.
3005         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
3006         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
3007         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
3008         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
3009         (LOADLIBES): New variable.
3010         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
3011         inf-ptrace.o.  Remove inftarg.o.
3012         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
3013         inf-ptrace.o. Remove inftarg.o.
3014         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
3015         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
3016         (LOADLIBES): New variable.
3017         * Makefile.in (i386bsd_nat_h): New variable.
3018         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3019         dependencies.
3020
3021         * sparc64nbsd-tdep.c: Include "objfiles.h".
3022         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3023         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
3024         svr4_lp64_fetch_link_map_offsets.
3025         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
3026         "nbsd-tdep.h".
3027         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3028         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
3029         svr4_lp64_fetch_link_map_offsets.
3030         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3031         dependencies.
3032
3033         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3034         * fbsd-nat.h: New file.
3035         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3036         (fbsd_nat_h): New variable.
3037         (fbsd-nat.o): New dependency.
3038
3039         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3040         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3041
3042         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3043         comment.
3044
3045 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
3046         
3047         * ada-exp.y (type_int): New function to add layer of abstraction
3048         around references to expression types.
3049         (type_long): Ditto.
3050         (type_long_long): Ditto.
3051         (type_float): Ditto.
3052         (type_double): Ditto.
3053         (type_long_double): Ditto.
3054         (type_char): Ditto.
3055         (type_system_address): Ditto.
3056         (simple_exp): Use type_* functions in place of builtin_* 
3057         variables.
3058         (exp): Ditto.
3059         (write_var_from_name): Ditto.
3060         (write_object_renaming): Ditto.
3061         * ada-lang.c (ada_create_fundamental_type): Remove redundant
3062         declaration.
3063         (build_ada_types): Remove, replacing with...
3064         (ada_language_arch_info): New function to initialize primitive
3065         type vector in language_arch_info.
3066         (ada_array_length): Remove use of builtin_type_ada_int.
3067         (value_pos_atr): Ditto.
3068         (ada_evaluate_subexp): Ditto.
3069         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3070         builtin_type_ada_long_long, builtin_type_ada_char, 
3071         builtin_type_ada_float, builtin_type_ada_double, 
3072         builtin_type_ada_long_double, builtin_type_ada_natural,
3073         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3074         (ada_builtin_types): Remove.
3075         (ada_language_defn): Remove entries for la_builtin_type_vector and
3076         string_char_type and use ada_language_arch_info.
3077         (_initialize_ada_language): Do type-vector initialization along
3078         the lines of c-lang.c.
3079         (ada_create_fundamental_type): Break up line.
3080         (ada_dump_symtab): Remove unused function.
3081         (enum ada_primitive_types): Define.
3082         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
3083         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
3084         builtin_type_ada_float, builtin_type_ada_double, 
3085         builtin_type_ada_long_double, builtin_type_ada_natural,
3086         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3087         * ada-lex.l: Use type_* functions in place of builtin_* variables.
3088         (processInt): Ditto.
3089         (processReal): Ditto.
3090         (name_lookup): Ditto.
3091         * ada-typeprint.c (print_range): Use builtin_type_int, not
3092         builtin_type_ada_int.
3093         
3094 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
3095
3096         * i386-tdep.c (i386_register_name): Rename regno to regnum.
3097
3098         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3099         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3100         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3101         * configure.in: Improve checks for curses library by checking for
3102         mvwaddstr instead of initscr.  Drop HP curses in favour of
3103         standard curses on HP-UX.
3104         * configure: Regenerated.
3105
3106 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
3107
3108         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3109         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
3110         Minor formatting changes.
3111         (empty_array): Slight rewrite for formatting.
3112         (emit_char,parse,ada_language_defn,build_ada_types,
3113         ada_is_exception_sym, _initialize_ada_language): Move 
3114         definitions around.
3115         (ada_dump_symtab): Remove unused definition.
3116         (ada_maybe_exception_partial_symbol): Remove unused definition.
3117
3118 2004-09-16  Andrew Cagney  <cagney@gnu.org>
3119
3120         * inf-child.c: Include "gdb_string.h".
3121         (inf_child_core_file_to_sym_file): Delete.
3122         (inf_child_target): Set to_fetch_registers and to_store_registers.
3123         * inf-ptrace.c: Include "gdb_string.h".
3124         * Makefile.in: Update all dependencies.
3125
3126         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3127         problem.
3128
3129 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
3130
3131         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3132         call to heuristic_proc_desc. Remove code that became redundant
3133         as a consequence.
3134         (read_next_frame_reg): Remove special case for SP_REGNUM.
3135         (set_reg_offset): Fix small typo.
3136         (reset_saved_regs): New procedure.
3137         (mips32_heuristic_proc_desc): No longer compute a fake
3138         procedure descriptor. Compute the full frame cache instead.
3139         Some minor comment reformatting.
3140
3141 2004-09-14  Andrew Cagney  <cagney@gnu.org>
3142
3143         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3144         maintainer.
3145
3146         * thread-db.c (thread_db_new_objfile): Assume that there is a
3147         child process.
3148
3149 2004-09-13  Jim Blandy  <jimb@redhat.com>
3150
3151         * valops.c (value_assign): Move 'buffer' to the enclosing block,
3152         so that its storage isn't referenced after its lifetime ends.
3153
3154         * valops.c (value_assign): 'use_buffer' is initialized to zero,
3155         and never assigned to.   Delete it, and the 'if (use_buffer)'
3156         clauses.  Delete 'raw_buffer', since it is now unused.
3157
3158 2004-09-13  Andrew Cagney  <cagney@gnu.org>
3159
3160         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3161         * configure: Re-generate.
3162         * nlm/Makefile.in (TAGS): Update.
3163         * Makefile.in (TAGS): Update.
3164         * config/vax/nbsd.mt (TM_FILE): Update.
3165         * config/sparc/vxworks.mt (TM_FILE): Update.
3166         * config/sparc/sol2.mt (TM_FILE): Update.
3167         * config/sparc/sol2-64.mt (TM_FILE): Update.
3168         * config/sparc/obsd64.mt (TM_FILE): Update.
3169         * config/sparc/obsd.mt (TM_FILE): Update.
3170         * config/sparc/nbsd64.mt (TM_FILE): Update.
3171         * config/sparc/nbsd.mt (TM_FILE): Update.
3172         * config/sparc/linux64.mt (TM_FILE): Update.
3173         * config/sparc/linux.mt (TM_FILE): Update.
3174         * config/sparc/fbsd.mt (TM_FILE): Update.
3175         * config/sh/wince.mt (TM_FILE): Update.
3176         * config/sh/nbsd.mt (TM_FILE): Update.
3177         * config/sh/linux.mt (TM_FILE): Update.
3178         * config/sh/embed.mt (TM_FILE): Update.
3179         * config/s390/s390.mt (TM_FILE): Update.
3180         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3181         * config/rs6000/rs6000.mt (TM_FILE): Update.
3182         * config/rs6000/aix4.mt (TM_FILE): Update.
3183         * config/powerpc/vxworks.mt (TM_FILE): Update.
3184         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3185         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3186         * config/powerpc/obsd.mt (TM_FILE): Update.
3187         * config/powerpc/nbsd.mt (TM_FILE): Update.
3188         * config/powerpc/linux.mt (TM_FILE): Update.
3189         * config/powerpc/aix.mt (TM_FILE): Update.
3190         * config/pa/obsd.mt (TM_FILE): Update.
3191         * config/pa/linux.mt (TM_FILE): Update.
3192         * config/pa/hppahpux.mt (TM_FILE): Update.
3193         * config/pa/hppa64.mt (TM_FILE): Update.
3194         * config/pa/hppa.mt (TM_FILE): Update.
3195         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3196         * config/mips/wince.mt (TM_FILE): Update.
3197         * config/mips/vxmips.mt (TM_FILE): Update.
3198         * config/mips/nbsd.mt (TM_FILE): Update.
3199         * config/mips/linux.mt (TM_FILE): Update.
3200         * config/mips/irix6.mt (TM_FILE): Update.
3201         * config/mips/irix5.mt (TM_FILE): Update.
3202         * config/mips/embed.mt (TM_FILE): Update.
3203         * config/m68k/vxworks68.mt (TM_FILE): Update.
3204         * config/m68k/st2000.mt (TM_FILE): Update.
3205         * config/m68k/os68k.mt (TM_FILE): Update.
3206         * config/m68k/obsd.mt (TM_FILE): Update.
3207         * config/m68k/nbsd.mt (TM_FILE): Update.
3208         * config/m68k/monitor.mt (TM_FILE): Update.
3209         * config/m68k/linux.mt (TM_FILE): Update.
3210         * config/m68k/cisco.mt (TM_FILE): Update.
3211         * config/ia64/linux.mt (TM_FILE): Update.
3212         * config/ia64/aix.mt (TM_FILE): Update.
3213         * config/ia64/ia64.mt (TM_FILE): Update.
3214         * config/i386/vxworks.mt (TM_FILE): Update.
3215         * config/i386/obsd64.mt (TM_FILE): Update.
3216         * config/i386/obsd.mt (TM_FILE): Update.
3217         * config/i386/nto.mt (TM_FILE): Update.
3218         * config/i386/nbsd64.mt (TM_FILE): Update.
3219         * config/i386/nbsd.mt (TM_FILE): Update.
3220         * config/i386/linux64.mt (TM_FILE): Update.
3221         * config/i386/linux.mt (TM_FILE): Update.
3222         * config/i386/i386sol2.mt (TM_FILE): Update.
3223         * config/i386/i386lynx.mt (TM_FILE): Update.
3224         * config/i386/fbsd64.mt (TM_FILE): Update.
3225         * config/i386/fbsd.mt (TM_FILE): Update.
3226         * config/i386/cygwin.mt (TM_FILE): Update.
3227         * config/h8300/h8300.mt (TM_FILE): Update.
3228         * config/frv/frv.mt (TM_FILE): Update.
3229         * config/cris/cris.mt (TM_FILE): Update.
3230         * config/arm/wince.mt (TM_FILE): Update.
3231         * config/arm/nbsd.mt (TM_FILE): Update.
3232         * config/arm/linux.mt (TM_FILE): Update.
3233         * config/arm/embed.mt (TM_FILE): Update.
3234         * config/alpha/nbsd.mt (TM_FILE): Update.
3235         * config/alpha/fbsd.mt (TM_FILE): Update.
3236         * config/alpha/alpha.mt (TM_FILE): Update.
3237         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3238         * config/alpha/alpha-linux.mt (TM_FILE): Update.
3239
3240         Eliminate event_loop_p, always has the value 1.
3241         * defs.h (event_loop_p): Delete macro.
3242         * breakpoint.c (until_break_command): Simplify.
3243         * utils.c (prompt_for_continue): Simplify.
3244         * tracepoint.c (read_actions): Simplify.
3245         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
3246         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
3247         (set_prompt, init_main): Simplify.
3248         (init_signals, disconnect): Delete, unused.
3249         * remote.c (remote_async_resume) 
3250         (extended_remote_async_create_inferior): Simplify.
3251         * mi/mi-interp.c (mi_input): Delete, unused.
3252         (mi_interpreter_resume, mi_command_loop): Simplify.
3253         * interps.c (current_interp_command_loop): Simplify.
3254         * infrun.c (proceed): Simplify.
3255         * infcmd.c (run_command, continue_command, step_1, jump_command)
3256         (until_command, advance_command, finish_command)
3257         (interrupt_target_command): Simplify.
3258         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3259
3260         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3261         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3262         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3263         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3264         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3265         * mips-tdep.c (mips_dump_tdep): Do not print same.
3266
3267 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3268
3269         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
3270         const.
3271         * Makefile.in (valprint.o): Delete explict rule.
3272
3273         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
3274         reported by Dave Anderson.
3275
3276         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3277
3278         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3279
3280 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
3281             Andrew Cagney  <cagney@gnu.org>
3282
3283         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3284         (mi_cmd_data_list_register_values)
3285         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3286         the register number computation.
3287
3288 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3289
3290         * ppcnbsd-nat.c: Include "inf-ptrace.h".
3291         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3292         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3293         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3294         target.
3295         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3296         inf-ptrace.o and inf-child.o.
3297         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3298         * Makefile.in: Update dependencies.
3299         
3300 2004-09-11  Andrew Cagney  <cagney@gnu.org>
3301
3302         * language.c (hex_string, hex_string_custom): Move from here ...
3303         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3304         (CELLSIZE): Increase to 50.
3305         * language.h (hex_string, hex_string_custom): Move from here ...
3306         * defs.h: ... to here.
3307         * Makefile.in: Update all dependencies.
3308         
3309 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
3310
3311         * language.c (local_hex_format_custom): Remove.
3312         (local_hex_string): Rename to hex_string, use C format, and move to
3313         utils.c
3314         (local_hex_string_custom): Rename to hex_string_custom and change
3315         interface.  Now uses C format.  Move to utils.c
3316         (local_octal_format_custom): Remove.
3317         (local_decimal_format_custom): Remove.
3318         (unknown_language_defn): Remove language-specific number 
3319         formatting entries.
3320         (auto_language_defn): Ditto.
3321         (local_language_defn): Ditto.
3322         * language.h (struct language_format_info): Delete declaration.
3323         (struct language_defn): Remove language_format_info fields
3324         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3325         (local_binary_format): Remove macro.
3326         (local_binary_format_prefix): Remove macro.
3327         (local_binary_format_specifier): Remove macro.
3328         (local_binary_format_suffix): Remove macro.
3329         (local_octal_format): Remove macro.
3330         (local_octal_format_prefix): Remove macro.
3331         (local_octal_format_specifier): Remove macro.
3332         (local_octal_format_suffix): Remove macro.
3333         (local_decimal_format): Remove macro.
3334         (local_decimal_format_prefix): Remove macro.
3335         (local_decimal_format_specifier): Remove macro.
3336         (local_decimal_format_suffix): Remove macro.
3337         (local_hex_format): Remove macro.
3338         (local_hex_format_prefix): Remove macro.
3339         (local_hex_format_specifier): Remove macro.
3340         (local_hex_format_suffix): Remove macro.
3341         (local_decimal_format_custom): Remove.
3342         (local_octal_format_custom): Remove.
3343         (local_hex_format_custom): Remove.
3344         (local_hex_string): Rename to hex_string and move to defs.h.
3345         (local_hex_string_custom): Rename to hex_string_custom, change
3346         interface, and move to defs.h.
3347         * utils.c: (int_string): New function.
3348         (hex_string): New function (from language.c).
3349         (hex_string_custom): New function (from language.c).
3350         (octal2str): New function.
3351         (decimal2str): Add width parameter.
3352         (paddr_u): Use new decimal2str interface.
3353         (paddr_d): Ditto.
3354         * defs.h (hex_string): Declare.
3355         (hex_string_custom): Declare.
3356         (int_string): Declare.
3357         * printcmd.c (print_scalar_formatted): Remove localized binary
3358         formatting.
3359         * valprint.c (print_longest): Use int_string.
3360         (print_floating): Use C hex format.
3361         (print_hex_chars): Ditto.
3362         (print_binary_chars): Remove language-specific formatting.
3363         (print_octal_chars): Use C octal format.
3364         (print_decimal_chars): Delocalize format.
3365         (print_decimal): Remove.
3366         * ada-lang.c (ada_language_defn): Remove language-specific number 
3367         formatting entries.
3368         * p-lang.c (pascal_language_defn): Ditto.
3369         * c-lang.c (c_language_defn): Ditto.
3370         (cplus_language_defn): Ditto.
3371         (asm_language_defn): Ditto.
3372         (minimal_language_defn): Ditto.
3373         * f-lang.c (f_language_defn): Ditto.
3374         * jv-lang.c (java_language_defn): Ditto.
3375         * m2-lang.c (m2_language_defn): Ditto.
3376         * scm-lang.c (scm_language_defn): Ditto.
3377         * objc-lang.c (objc_language_defn): Ditto.
3378         * memattr.c (mem_info_command): Use renamed hex_string_custom with
3379         new interface.
3380         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3381         * ui-out.c (ui_out_field_core_addr): Ditto.
3382         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3383         * exec.c (print_section_info): Ditto.
3384         * i387-tdep.c (print_i387_status_word): Ditto.
3385         (print_i387_control_word): Ditto.
3386         (i387_print_float_info): Ditto.
3387         * maint.c (maint_print_section_info): Ditto.
3388         * solib.c (info_sharedlibrary_command): Ditto.
3389         * somsolib.c (som_sharedlibrary_info_command): Ditto.
3390         * symtab.c (print_msymbol_info): Ditto.
3391         * tracepoint.c (tracepoints_info): Ditto.
3392         * solib-frv.c (lm_base): Ditto.
3393         (frv_current_sos): Ditto.
3394         (enable_break2): Ditto.
3395         (enable_break): Ditto.
3396         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3397         (process_one_symbol): Ditto.
3398         * infcmd.c (program_info): Ditto.
3399         * mdebugread.c (parse_partial_symbols): Ditto.
3400         * symfile.c (add_symbol_file_command): Ditto.
3401         * cli/cli-cmds.c (edit_command): Ditto.
3402         (list_command): Ditto.
3403         * infcall.c (call_function_by_hand): Ditto.
3404         * remote-vx.c (vx_run_files_info): Ditto.
3405         (vx_wait): Ditto.
3406         (vx_attach): Ditto.
3407         (vx_detach): Ditto.
3408         (vx_kill): Ditto.
3409         * aix-thread.c (pdc_symbol_addrs): Ditto.
3410         (pdc_read_regs): Ditto.
3411         (pdc_write_regs): Ditto.
3412         (pdc_read_data): Ditto.
3413         (pdc_write_data): Ditto.
3414         * d10v-tdep.c (display_trace): Ditto.
3415         * rs6000-nat.c (find_toc_address): Ditto.
3416         * aix-thread.c: Don't include language.h.
3417         * buildsym.c: Ditto.
3418         * dbxread.c: Ditto.
3419         * mdebugread.c: Ditto.
3420         * rs6000-nat.c: Ditto.
3421         * buildsym.c (make_blockvector): Use renamed hex_string.
3422         
3423 2004-09-10  Jason Molenda  (jmolenda@apple.com)
3424
3425         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3426         chars after 'if' or 'while' commands in user-defined commands.
3427
3428 2004-09-08  Jim Blandy  <jimb@redhat.com>
3429
3430         Fix bug reported and analyzed by Olivier Crete:
3431         * symfile.c (copy_section_addr_info): New function.
3432         (symbol_file_add_with_addrs_or_offsets): Use it to save the
3433         original set of address arguments, instead of handwritten code
3434         that uses one length to allocate and a different length to
3435         initialize.  Use make_cleanup_free_section_addr_info.
3436         * symfile.h (copy_section_addr_info): New declaration.
3437         * utils.c: #include "symfile.h".
3438         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3439         New functions.
3440         * defs.h (make_cleanup_free_section_addr_info): New declaration.
3441         * Makefile.in (utils.o): Update dependencies.
3442
3443 2004-09-08  Andrew Cagney  <cagney@gnu.org>
3444
3445         * thread-db.c (keep_thread_db): Delete.
3446         (thread_db_new_objfile, thread_db_create_inferior)
3447         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3448
3449 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
3450
3451         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3452         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3453         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3454         (i386_frameless_signal_p): Remove prototype.
3455         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3456         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3457         I386_SSE_NUM_REGS.
3458         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3459         instead of FP0_REGNUM.
3460         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3461         of FP0_REGNUM and FPC_REGNUM.
3462
3463         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3464         (sunos_solib_create_inferior_hook): Don't call
3465         sunos_relocate_main_executable.
3466
3467         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3468         solib_svr4_fetch_link_map_offsets to
3469         svr4_ilp32_fetch_link_map_offsets.
3470         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3471         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3472         svr4_ilp32_fetch_link_map_offsets.
3473         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3474
3475 2004-09-07  Jim Blandy  <jimb@redhat.com>
3476
3477         * frame.h (frame_register): Doc fix.
3478
3479 2004-09-07  Andrew Cagney  <cagney@gnu.org>
3480
3481         * vx-share/wait.h: Delete #ifdef USG.
3482         * utils.c (request_quit): Ditto.
3483         * tui/tui.c (tui_reset): Ditto.
3484         * remote.c: Ditto.
3485         * remote-sds.c: Ditto.
3486         * remote-rdi.c: Ditto.
3487         * mdebugread.c: Ditto.
3488         * m68klinux-nat.c: Ditto.
3489         * infttrace.c: Ditto.
3490         * infptrace.c: Ditto.
3491         * i386v-nat.c: Ditto.
3492         * exec.c: Ditto.
3493         * dbxread.c: Ditto.
3494         * core-aout.c: Ditto.
3495
3496 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
3497
3498         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3499         heuristic_proc_desc.
3500         (mips_insn32_frame_cache): Likewise.
3501
3502 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3503
3504         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3505         left behind by error.
3506
3507 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3508
3509         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3510         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3511
3512 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3513
3514         * config/rs6000/xm-aix4.h: Remove this file.
3515         * config/rs6000/aix4.mh (XM_FILE): Delete.
3516
3517 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3518
3519         * config/rs6000/xm-rs6000.h: Remove this file.
3520         * config/rs6000/rs6000.mh (XM_FILE): Remove.
3521
3522 2004-09-03  Andrew Cagney  <cagney@gnu.org>
3523
3524         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3525         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3526         only use.
3527
3528         * mips-tdep.c (temp_saved_regs): Delete.
3529         (set_reg_offset): Replace saved_regs parameter with this_cache.
3530         (heuristic_proc_desc, mips16_heuristic_proc_desc)
3531         (mips32_heuristic_proc_desc): Add this_cache parameter.
3532         (mips_insn32_frame_cache, mips_insn16_frame_cache)
3533         (after_prologue): Pass a NULL this_cache.
3534
3535         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3536         non-kernel trap prologues.
3537
3538         * mips-tdep.c (find_proc_desc): Delete function.
3539         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3540         simplify.
3541         (mips_insn16_frame_cache): Replace find_proc_desc with code from
3542         mips_insn32_frame_cache.
3543
3544         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3545         Simplify as NEXT_FRAME is NULL.
3546         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3547
3548         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3549         local variable.
3550         (mips_skip_prologue): Update.
3551
3552         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3553         "cur_frame" parameter.
3554         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3555         (mips_insn32_frame_cache, find_proc_desc): Update
3556
3557         * config/vax/nm-obsd.h: Delete file.
3558         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3559         * config/vax/nm-nbsd.h: Delete file.
3560         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3561         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3562         * config/sh/nm-nbsd.h: Delete file.
3563         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3564         * config/rs6000/nm-rs6000ly.h: Delete file.
3565         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3566         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3567         * config/powerpc/nm-obsd.h: Delete file.
3568         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3569         * config/powerpc/nm-nbsd.h: Delete file.
3570         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3571         * config/pa/nm-obsd.h: Delete file.
3572         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3573         * config/mips/nm-nbsd.h: Delete file.
3574         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3575         * config/m88k/nm-obsd.h: Delete file.
3576         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3577         * config/m68k/nm-nbsd.h: Delete file.
3578         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3579         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3580         * config/i386/nm-nbsd.h: Delete file.
3581         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3582         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3583         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3584         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3585         * config/i386/nm-i386lynx.h: Delete file.
3586         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3587         * config/arm/nm-nbsd.h: Delete file.
3588         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3589         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3590
3591         * config/i386/tm-fbsd.h: Delete file.
3592         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3593         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3594
3595         * config/rs6000/tm-rs6000-aix4.h: Delete file.
3596         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3597         * config/rs6000/aix4.mt (TM_FILE): Set to
3598         config/rs6000/tm-rs6000.h.
3599         * config/powerpc/tm-ppc-aix.h: Delete file.
3600         * config/powerpc/aix.mt (TM_FILE): Set to
3601         config/rs6000/tm-rs6000.h.
3602         * config/m68k/tm-linux.h: Delete file.
3603         * config/m68k/linux.mt (TM_FILE): Set to solib.h
3604         * config/i386/tm-linux64.h: Delete file.
3605         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3606         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3607         
3608         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3609         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3610         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3611         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3612         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3613         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3614         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3615         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
3616         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3617
3618         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3619         gdb_host_cpu.
3620
3621 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
3622
3623         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3624         Minor reformatting. Some code factoring.
3625
3626 2004-09-02  Andrew Cagney  <cagney@gnu.org>
3627
3628         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3629         * config/vax/tm-nbsd.h: Delete file.
3630         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3631         * config/sparc/tm-vxworks.h: Delete file.
3632         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3633         * config/sparc/tm-nbsd.h: Delete file.
3634         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3635         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3636         * config/sparc/tm-linux.h: Delete file.
3637         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3638         * config/s390/tm-linux.h: Delete file.
3639         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3640         * config/pa/tm-bsd.h: Delete file.
3641         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3642         * config/m68k/tm-obsd.h: Delete file.
3643         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3644         * config/m68k/tm-nbsd.h: Delete file.
3645         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3646         * config/i386/tm-vxworks.h: Delete file.
3647         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3648         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3649         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3650         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3651         * config/i386/tm-nbsd.h: Delete file.
3652         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3653         * config/i386/tm-i386lynx.h: Delete file.
3654         * config/cris/cris.mt (TM_FILE): Set to solib.h.
3655         * config/cris/tm-cris.h: Delete file.
3656
3657         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3658         * configure: Re-generate.
3659         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3660         * config/arm/tm-nbsd.h: Delete file.
3661         
3662         * config/powerpc/tm-ppcle-sim.h: Delete.
3663         * config/powerpc/tm-ppcle-eabi.h: Delete.
3664         * config/powerpc/tm-nbsd.h: Delete.
3665         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3666         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3667         tm-ppcle-eabi.h.
3668
3669         * config/i386/nto.mh (NAT_FILE): Delete.
3670         * config/i386/nm-nto.h: Delete.
3671
3672         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3673         * config/m68k/tm-os68k.h: Ditto.
3674         * config/m68k/tm-monitor.h: Ditto.
3675         * config/m68k/tm-cisco.h: Ditto.
3676         * config/m68k/st2000.mt (TM_FILE): Delete.
3677         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3678         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3679         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3680         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3681
3682         * config/m68k/tm-st2000.h: Delete.
3683         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3684         * config/sparc/fbsd.mt (TM_FILE): Delete.
3685         * config/sparc/tm-fbsd.h: Delete.
3686
3687         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3688         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
3689         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3690
3691         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3692         GDB_TM_FILE and GDB_XM_FILE.
3693         * gdbarch.c: Re-generate.       
3694         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3695         quotes in macro definition.
3696         * configure.in: Re-generate.
3697
3698         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3699         validating architecture methods.
3700         * gdbarch.c: Re-generate.
3701         
3702         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3703         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
3704         GDB_MULTI_ARCH_PARTIAL.
3705         * gdbarch.h: Re-generate.
3706         
3707         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3708         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3709         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3710         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3711         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3712         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3713         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3714         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3715         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3716         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3717         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3718         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3719
3720 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3721
3722         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3723         and main_func_highpc.
3724         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3725         * objfiles.c (init_entry_point_info, objfile_relocate): Update
3726         * nlmread.c (nlm_symfile_read): Update.
3727
3728 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3729
3730         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3731         (mips_insn32_frame_cache): Inline call to find_proc_desc.
3732         (find_proc_desc): Remove dead code.
3733
3734 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3735
3736         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3737
3738 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
3739
3740         * observer.sh: Add struct so_list declaration.
3741         * Makefile.in: Add dependencies on observer.h for solib.c and
3742         breakpoint.c.
3743         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3744         function.
3745         (_initialize_breakpoint): Register 
3746         disable_breakpoints_in_unloaded_shlib as an observer of the 
3747         "solib unloaded" observation event.
3748         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3749         call decode_line_1 so unfound breakpoint errors are silent.
3750         * solib.c (update_solib_list): When a solib is discovered to have
3751         been unloaded by the program, notify all observers of the
3752         "solib unloaded" observation event.
3753
3754 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3755
3756         * frame.c: Include "objfiles.h".
3757         (inside_main_func): New function.
3758         (get_prev_frame): Use new inside_main_func.
3759         * Makefile.in (frame.o): Update dependencies.
3760         * defs.h (inside_main_func): Delete declaration.
3761         * blockframe.c (inside_main_func): Delete function.
3762
3763 2004-08-31  Jim Blandy  <jimb@redhat.com>
3764
3765         * dwarf2read.c (is_vtable_name): New function, based on logic from
3766         read_structure_type, but passing the correct length to strncmp,
3767         and using 'sizeof' instead of 'strlen'.
3768         (read_structure_type): Call it.
3769
3770 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
3771
3772         * config/powerpc/aix.mh: Add comment.
3773
3774 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
3775
3776         * MAINTAINERS: Add self to Write-After-Approval.
3777
3778 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
3779
3780         * MAINTAINERS: Add self to Write-After-Approval.
3781
3782 2004-08-30  Andrew Cagney  <cagney@gnu.org>
3783
3784         Fix PR breakpoints/1757.
3785         * infrun.c (struct execution_control_state): Replace
3786         remove_breakpoints_on_following_step with
3787         step_after_step_resume_breakpoint.
3788         (init_execution_control_state): Update.
3789         (handle_inferior_event): For signals, when stepping off a
3790         breakpoint, set step_after_step_resume_breakpoint.  When
3791         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3792         (keep_going): Delete code handling
3793         remove_breakpoints_on_following_step.
3794
3795 2004-08-29  David Lecomber  <david@streamline-computing.com>
3796         
3797         Fix PR gdb/648
3798         * language.h (enum array_ordering): New enum.
3799         * language.h (struct language_defn): New la_array_ordering 
3800         attribute.
3801         * language.c (unknown_language_defn, auto_language_defn)
3802         (local_language_defn): Ditto.
3803         * ada-lang.c (ada_language_defn): Ditto.
3804         * c-lang.c (c_language_defn, cplus_language_defn)
3805         (asm_language_defn, minimal_language_defn): Ditto.
3806         * f-lang.c (f_language_defn): Ditto.
3807         * jv-lang.c (java_language_defn): Ditto.
3808         * m2-lang.c (f_language_defn): Ditto.
3809         * objc-lang.c (objc_language_defn): Ditto.
3810         * p-lang.c (pascal_language_defn): Ditto.
3811         * scm-lang.c (scm_language_defn): Ditto.
3812         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3813         oriented large to small in type structure.
3814         * dwarf2read.c (read_array_order): New function.
3815         (read_array_type): Use read_array_order to check row/column
3816         major ordering.
3817
3818 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
3819
3820         * target.c (target_resize_to_sections): Check
3821         current_target.to_sections for an old value when updating.
3822
3823 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
3824
3825         * procfs.c (dbx_link_bpt_addr): New static global variable.
3826         (dbx_link_shadow_contents): New static global variable.
3827         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3828         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3829         if we just hit it.
3830         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3831         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3832         from run to run.
3833         (procfs_create_inferior): Remove syssgi syscall-exit notifications
3834         after the inferior has been forked.
3835         (remove_dbx_link_breakpoint): New function.
3836         (dbx_link_addr): New function.
3837         (insert_dbx_link_bpt_in_file): New function.
3838         (insert_dbx_link_bpt_in_region): New function.
3839         (insert_dbx_link_breakpoint): New function.
3840         (proc_trace_syscalls_1): New function, extracted from
3841         proc_trace_syscalls.
3842         (proc_trace_syscalls): Replace extract code by call to
3843         proc_trace_syscalls_1.
3844         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3845         is no longer valid.
3846
3847 2004-08-25  Jim Blandy  <jimb@redhat.com>
3848
3849         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3850
3851 2004-08-25  Andrew Cagney  <cagney@gnu.org>
3852
3853         * infrun.c (struct execution_control_state): Delete field
3854         "stepping_through_sigtramp".
3855         (init_execution_control_state): Do not set same.
3856         (context_switch): Do not pass same to save_infrun_state and
3857         load_infrun_state.
3858         * gdbthread.h (struct thread_info): Delete field
3859         stepping_through_sigtramp.
3860         (save_infrun_state, load_infrun_state): Delete parameter
3861         stepping_through_sigtramp.
3862         * thread.c (load_infrun_state, save_infrun_state): Update.
3863
3864         * infrun.c: Re-indent.  Move expression operators to the beginning
3865         of the line.  Remove long disabled #if 0 code.
3866
3867 2004-08-24  Andrew Cagney  <cagney@gnu.org>
3868
3869         * doublest.h (floatformat_ieee_quad): Rename
3870         floatformat_ia64_quad.
3871         * doublest.c (floatformat_ieee_quad): Rename
3872         floatformat_ia64_quad.
3873         (_initialize_doublest): Update.
3874
3875 2004-08-24  Jim Blandy  <jimb@redhat.com>
3876
3877         * dwarf2expr.h (struct dwarf_expr_context): New members
3878         'num_pieces' and 'pieces', for returning the result of an
3879         expression that uses DW_OP_piece.
3880         (struct dwarf_expr_piece): New struct type.
3881         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3882         pieces.
3883         (free_dwarf_expr_context): Free pieces, if any.
3884         (add_piece): New function.
3885         (execute_stack_op): Implement DW_OP_piece.
3886         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3887         expression is a list of pieces, print an error message.
3888         (dwarf2_loc_desc_needs_frame): If the expression yields
3889         pieces, and any piece is in a register, then we need a frame.
3890
3891         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3892         the stack until we've decided what sort of result the evaluation
3893         has produced.  Use separate variables, with more specific names.
3894
3895 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
3896
3897         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3898         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3899         (arm_netbsd_init_abi_common): Register them.
3900
3901 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
3902
3903         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3904
3905         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3906         safe_frame_unwind_memory instead of target_read_memory.
3907
3908         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3909         Reorder includes.
3910         (fetch_register, store_register): Remove prototypes.
3911         (child_resume): Reorganize code and comments such that it is
3912         grouped a bit more logically.
3913         (attach): Explicitly compare errno against 0.
3914         (detach): Likewise.  Use perror_with_name instead of
3915         print_sys_errmsg.
3916         * Makefile.in (infptrace.o): Update dependencies.
3917
3918         * ia64-linux-nat.c: Update copyright year.
3919         (fetch_debug_register, store_debug_register)
3920         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3921         PTRACE_TYPE_ARG3.
3922         * config/ia64/nm-linux.h: Update copyright year.
3923          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3924
3925         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3926         from CORE_ADDR to struct frame_info *.  Use
3927         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3928         (amd64_linux_sigtramp_p): Adjust for changed signature of
3929         and64_linux_sigtramp_start
3930
3931         * gdb_ptrace.h: GNU/Linux.
3932
3933         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3934         Remove defines.
3935
3936         * infptrace.c: Include "gdb_assert.h".
3937         (PTRACE_XFER_TYPE): Remove define.
3938         (offsetof): Only define if U_REGS_OFFSET isn't defined.
3939         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3940         Tweak comment.
3941         (fetch_inferior_registers, store_inferior_registers): Remove
3942         redundant culry braces.  Tweak comment.  s/regno/regnum.
3943         * Makefile.in (infptrace.o): Update dependencies.
3944
3945         * configure.in: Change test for return type of ptrace to default
3946         to `long' instead of `int'.
3947         * configure: Regenerate.        
3948
3949 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
3950
3951         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3952
3953         * configure.in: Check for ttrace function.
3954         * configure, config.in: Regenerate.     
3955
3956         * gdb_ptrace.h: New file.
3957         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3958         <sys/ptrace.h>.
3959         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3960         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3961         (attach): Don't define PT_ATTACH.
3962         (detach): Don't define PT_DETACH.
3963         * Makefile.in (gdb_ptrace_h): New variable.
3964         (infptrace.o): Update dependencies.
3965
3966 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
3967
3968         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3969         instead of `int' if not already defined.
3970         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3971         PTRACE_TYPE_ARG3.
3972         * infptrace.c (call_ptrace): Revert change that replaced
3973         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3974
3975 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
3976
3977         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3978         Remove defines.
3979
3980         * linux-nat.c (kill_inferior): Add missing third and fourth
3981         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
3982
3983         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3984         PTRACE_TYPE_RET.
3985
3986         * proc-why.c (proc_prettyfprint_why): Fix format string.
3987
3988         * solib-osf.c (osf_current_sos): Remove unsused label.
3989
3990         * configure.in: Add <ncurses/ncurses.h> to the list of possible
3991         curses headers.
3992         * configure, config.in: Regenerate.     
3993         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3994         <ncurses/ncurses.h>.
3995
3996         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3997         * config/nm-nbsd.h: Update copyright year.
3998         (PTRACE_ARG3_TYPE): Remove define.
3999
4000         * sparc-nat.c (fetch_inferior_registers)
4001         (store_inferior_registers, sparc_xfer_wcookie): 
4002         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4003
4004         * alphabsd-nat.c (fetch_inferior_registers):
4005         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4006         PTRACE_TYPE_ARG3.
4007         * amd64bsd-nat.c (fetch_inferior_registers)
4008         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4009         PTRACE_TYPE_ARG3.
4010         * armnbsd-nat.c: Update copyright year.
4011         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
4012         (store_register, store_regs, store_fp_register, store_fp_regs):
4013         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4014         * hppabsd-nat.c (fetch_inferior_registers)
4015         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4016         PTRACE_TYPE_ARG3.
4017         * i386bsd-nat.c (fetch_inferior_registers)
4018         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4019         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4020         * m68kbsd-nat.c (fetch_inferior_registers)
4021         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4022         PTRACE_TYPE_ARG3.
4023         * m88kbsd-nat.c (fetch_inferior_registers)
4024         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4025         PTRACE_TYPE_ARG3.
4026         * mipsnbsd-nat.c: Update copyright year.
4027         (fetch_inferior_registers, store_inferior_registers):
4028         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4029         * ns32knbsd-nat.c: Update copyright year.
4030         (fetch_inferior_registers, store_inferior_registers):
4031         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4032         * ppcnbsd-nat.c (fetch_inferior_registers):
4033         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4034         PTRACE_TYPE_ARG3.
4035         * ppcobsd-nat.c (fetch_inferior_registers):
4036         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4037         PTRACE_TYPE_ARG3.
4038         * shnbsd-nat.c: Update copyright year.
4039         (fetch_inferior_registers, store_inferior_registers):
4040         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4041         * vaxbsd-nat.c (fetch_inferior_registers)
4042         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4043         PTRACE_TYPE_ARG3.
4044         
4045         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4046         PTRACE_TYPE_ARG3.
4047         * infptrace.c (call_ptrace, child_resume, attach, detach)
4048         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4049         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4050         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4051         PTRACE_TYPE_ARG3.
4052
4053 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
4054
4055         * defs.h: Remove out-of-date comment.
4056         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4057         [!GETENV_PROVIDED] (getenv): Remove prototype.
4058
4059         * standalone.c: Remove file.
4060         * Makefile.in (standalone.o): Remove dependency.
4061
4062         * i386-linux-nat.c (dummy_sse_values): Remove function and
4063         prototype.
4064         (i386_linux_dr_get): Fix typo in comment.
4065         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4066
4067         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4068
4069         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4070         from declaration.
4071         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4072         from definition.
4073
4074 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
4075
4076         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4077         parenthesis in definition.
4078         * configure: Regenerated.
4079
4080 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
4081
4082         * PROBLEMS: Mention build/1411.
4083
4084 2004-08-09  Robert Millan  <robertmh@gnu.org>
4085
4086         Committed by Nathanael Nerode.
4087         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4088         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4089
4090 2004-08-12  Andrew Cagney  <cagney@gnu.org>
4091
4092         * NEWS: Mention fixes in GDB 6.2.1.
4093         * PROBLEMS: Remove mention of mips-irix.
4094
4095 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4096
4097         * config/powerpc/xm-aix.h: Delete.
4098         * config/powerpc/aix.mh (MH_FILE): Remove.
4099         * config/powerpc/aix432.mh (MH_FILE): Remove.
4100
4101 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4102
4103         * config/powerpc/aix.mh: Remove obsolete comment.
4104         * config/powerpc/aix432.mh: Likewise.
4105
4106 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4107
4108         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4109
4110 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4111
4112         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4113         this file is now empty.
4114         * config/xm-aix4.h: Remove, this file is no longer included
4115         anywhere.
4116
4117 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4118
4119         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4120         that file is now empty.
4121         (termdef): Remove prototype, function no longer used.
4122
4123 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4124
4125         * doc/gdbint.texinfo (Host Definition): Remove documentation
4126         for USE_O_NOCTTY, no longer used.
4127         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4128         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4129
4130 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4131
4132         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4133         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4134         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4135
4136 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
4137
4138         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4139         instead of FIVE_ARG_PTRACE.
4140
4141         * inflow.c (O_NOCTTY): Define to zero if not already defined.
4142         (new_tty): Use O_NOCTTY unconditionally.
4143
4144 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
4145
4146         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
4147         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
4148         fflush on stdout.
4149
4150 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
4151
4152         * xcoff_symfile_finish: Replace last call to xmfree by call
4153         to xfree.
4154
4155 2004-08-10  Andrew Cagney  <cagney@gnu.org>
4156
4157         * main.c (captured_main): Delete call to init_malloc.
4158         * defs.h (init_malloc): Delete declaration.
4159         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4160         (init_malloc): Delete functions.
4161
4162         * defs.h (xmfree): Delete.
4163         * utils.c (xmfree): Delete function.
4164         (xfree): Inline calls to xmfree and mfree.
4165         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4166         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4167         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4168         * somread.c (som_symfile_finish): Ditto.
4169         * objfiles.c (allocate_objfile, free_objfile): 
4170         * nlmread.c (nlm_symfile_finish): Ditto.
4171         * hpread.c (hpread_symfile_finish): Ditto.
4172         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4173         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4174         * coffread.c (coff_symfile_finish): Ditto.
4175
4176         * defs.h (xmcalloc): Delete declaration.
4177         * utils.c (xmcalloc): Delete.
4178         (xcalloc): Inline calls to xmcalloc and mcalloc.
4179         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4180         xcalloc and xfree.
4181         * symtab.c (create_demangled_names_hash): Ditto.
4182
4183         * defs.h (xmrealloc): Delete.
4184         * utils.c (xmrealloc): Delete.
4185         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4186         * symmisc.c (extend_psymbol_list): Use xrealloc.
4187         * source.c (find_source_lines): Ditto.
4188         * hpread.c (hpread_lookup_type): Ditto.
4189         * dbxread.c (add_bincl_to_list): Ditto.
4190
4191         * utils.c (xmmalloc): Delete.
4192         (xmalloc): Inline xmmalloc and mmalloc calls.
4193         (msavestring): Use xmalloc.
4194         * defs.h (xmmalloc): Delete declaration.
4195         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4196         xmmalloc.
4197         * symmisc.c (extend_psymbol_list): Ditto.
4198         * symfile.c (init_psymbol_list): Ditto.
4199         * source.c (find_source_lines): Ditto.
4200         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4201         * elfread.c (elf_symtab_read): Ditto.
4202         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4203         * coffread.c (coff_symfile_init): Ditto.
4204
4205 2004-08-10  David Carlton  <carlton@bactrian.org>
4206
4207         * MAINTAINERS: Remove David Carlton from c++ testsuite
4208         maintainers.
4209
4210 2004-08-10  Jerome Guitton  <guitton@gnat.com>
4211
4212         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4213         print a line feed before the prompt.
4214
4215 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
4216
4217         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4218
4219 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
4220
4221         General cleanup of the AIX xm include file:
4222         * config/xm-aix4.h (fd_set): Remove undefine.
4223         Remove include of <sys/select.h>.
4224         (HAVE_TERMIO): Remove define.
4225         (USG): Likewise.
4226         (NULL): Remove redefine.
4227         (alloca): Remove #pragma.
4228         (vfork): Remove define.
4229         (termdef): Remove.
4230         (SIGWINCH_HANDLER): Remove.
4231         (SIGWINCH_HANDLER_BODY): Remove.
4232
4233 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
4234
4235         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4236         GDB_OSABI_OPENBSD_ELF.
4237
4238 2004-08-07  Robert Millan  <robertmh@gnu.org>
4239
4240         * bsd-kvm.c: Check for nlist.h before including it.
4241
4242 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
4243
4244         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4245         sigcontext' offset consistency checks for ancient BSD.
4246
4247         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4248
4249         * configure.in: Check for <sys/types.h>.  Check return and
4250         argument types of ptrace.
4251         * configure, config.in: Regenerate.     
4252
4253 2004-08-09  Jim Blandy  <jimb@redhat.com>
4254
4255         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4256         rs6000_register_sim_regno): Doc fixes.
4257
4258 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
4259
4260         * mips-tdep.c: Include "floatformat.h".
4261         (n32n64_floatformat_always_valid): New function.
4262         (floatformat_n32n64_long_double_big): New constant.
4263         (mips_gdbarch_init): Set size and format of long double
4264         for N32 and N64 ABIs.
4265         * Makefile.in (mips-tdep.o): Update dependencies.
4266
4267 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4268
4269         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
4270         print.  Improve script's error messages.
4271         * gdbarch.h: Re-generate.
4272
4273         * gdbarch.sh (pformat): New function.
4274         (float_format, double_format, long_double_format): List with bit
4275         members.  Use pformat when printing.
4276         * gdbarch.c, gdbarch.h: Re-generate.
4277         
4278 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
4279
4280         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4281         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4282         (ppcnbsd_supply_pcb): New function.
4283         (_initialize_ppcnbsd_nat): New prototype and function.
4284         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4285         (LOADLIBES): New variable.
4286         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4287
4288 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4289
4290         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4291         (builtin_type_ieee_double, builtin_type_ia64_quad)
4292         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4293         BE/LE floating-point types.
4294         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4295         (builtin_type_ieee_double, builtin_type_ia64_quad)
4296         (builtin_type_ia64_spill): Declare.
4297         * doublest.c (_initialize_doublest, floatformat_ieee_single)
4298         (floatformat_ieee_double, floatformat_arm_ext)
4299         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4300         of LE/BE floatformats.  
4301         * doublest.h: (struct floatformat, floatformat_ieee_single)
4302         (floatformat_ieee_double, floatformat_arm_ext)
4303         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4304
4305 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
4306
4307         * i386gnu-nat.c (gnu_store_registers): Fix typo.
4308
4309         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4310         instead of regcache_raw_supply when storing the registers.
4311
4312         * i386gnu-nat.c: Update copyright year.
4313         (gnu_store_registers): Don't use deprecated_registers and
4314         deprecated_registers_valid.  Use regcache_valid_p and
4315         regcache_raw_supply instead.
4316
4317         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4318         frame_pc_unwind.
4319
4320         * procfs.c (procfs_pid_to_str): Remove redundant and unused
4321         variables.  Incapitalized "process".
4322
4323         * configure.in: Add cursesX to the list of possible curses libs.
4324         Add cursesX.h to the list of possible curses headers. 
4325         * configure, config.in: Regenerate.     
4326
4327 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4328
4329         * configure.in: Test for struct lwp in <sys/lwp.h>.
4330         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4331         the offset of l_addr in struct lwp.
4332
4333 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4334
4335         * bsd-kvm.c: Include "gdbcore.h"
4336         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4337
4338 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4339
4340         * gdbtypes.c (build_flt, build_complex): New functions.
4341         (gdbtypes_post_init): Use.
4342
4343         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4344
4345         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4346         through to builtin_type_uint128.
4347
4348         * c-exp.y: Use builtin_type function to obtain builtin types.
4349
4350         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4351         builtin_uint128.
4352         * gdbtypes.c (gdbtypes_post_init): Update.
4353         (build_gdbtypes): Move initialization of builtin_type_int0
4354         through to builtin_type_uint128 from here ...
4355         (_initialize_gdbtypes): ... to here.
4356         * d10v-tdep.c (d10v_register_type): Update.
4357
4358         * doublest.c: Update copyright.
4359         (floatformat_from_length): Call error when floatformat is NULL.
4360         (extract_floating_by_length): Remove NULL fmt check.
4361         (store_floating_by_length): Ditto.
4362
4363 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4364
4365         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4366         that the register is valid.
4367
4368 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
4369
4370         * i386-linux-tdep.c (i386_linux_sigtramp_start)
4371         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4372         struct frame_info *.  Use safe_frame_unwind_memory instead of
4373         deprecated_read_memory_nobpt.
4374         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4375         changed signature of i386_linux_sigtramp_start and
4376         i386_linux_rt_sigtramp_start.
4377
4378         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4379         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
4380         instead of deprecated_read_memory_nobpt.
4381         (i386nbsd_sigtramp_p): Adjust for changed signature of
4382         i386nbsd_sigtramp_offset.
4383
4384         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4385         safe_frame_unwind_memory instead of target_read_memory.
4386
4387         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4388         !NO_SYS_FILE.
4389         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4390         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4391         (_initialize_kernel_u_addr): Remove prototype and function.
4392         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4393         !NO_SYS_FILE.
4394         * xcoffread.c: Likewise.
4395
4396 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
4397
4398         * vax-nat.c: New file.
4399         * vaxbsd-nat.c: Tweak comment.
4400         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4401         vaxnbsd-tdep.c.
4402         (vax-nat.o): New dependency.
4403         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4404         (vax-*-ultrix2*): Remove.
4405         * config/vax/vax.mh: New file.
4406         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4407         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4408         (vax_register_u_addr): New prototype.
4409         (REGISTER_U_ADDR): Define using vax_register_u_addr.
4410         * config/vax/vaxult2.mh: Remove file.
4411         * config/vax/vaxult.mh: Remove file.
4412         * config/vax/vaxbsd.mh: Remove file.
4413         * config/vax/vax.mt (TM_FILE): Remove.
4414         * config/vax/tm-vaxbsd.h: Remove file.
4415
4416 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
4417
4418         * aix-thread.c (get_signaled_thread): New function.
4419         (iter_trap): Delete, no longer used.
4420         (iter_tid): New function.
4421         (pd_update): Find the thread that received the SIGTRAP signal
4422         by first locating the kernel thread, and then finding its
4423         associated thread.
4424
4425 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
4426
4427         * lin-lwp.c (child_wait): Continue inferior after processing
4428         PTRACE_EVENT_CLONE event.
4429
4430 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
4431
4432         * MAINTAINERS: Add self to Write-After-Approval.
4433
4434 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
4435
4436         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4437         libunwind-xxxx.so" where xxxx is UNW_TARGET.
4438
4439 2004-08-05  Andrew Cagney  <cagney@gnu.org>
4440
4441         * config/xm-sysv4.h: Delete file.
4442         * config/mips/xm-irix5.h: Delete file.
4443         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4444         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4445         * config/ia64/xm-aix.h: Delete file.
4446         * config/ia64/aix.mh (XM_FILE): Delete.
4447         * config/pa/xm-hppah.h: Delete file.
4448         * config/pa/hpux11w.mh (XM_FILE): Delete.
4449         * config/pa/hpux11.mh (XM_FILE): Delete.
4450         * config/pa/hpux1020.mh (XM_FILE): Delete.
4451         * config/pa/hppahpux.mh (XM_FILE): Delete.
4452
4453         * config/alpha/xm-alphalinux.h: Delete file.
4454         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4455         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4456         * config/alpha/xm-alphaosf.h: Delete file.
4457         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4458         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4459         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4460         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4461
4462         * config/i386/xm-i386v.h: Delete file.
4463         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4464         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4465         * config/i386/xm-i386sco.h: Delete file.
4466         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4467         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4468         * config/i386/xm-i386v4.h: Delete file.
4469         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4470         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4471         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4472         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4473
4474         * config/vax/xm-vax.h: Delete file.
4475         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4476         * config/vax/xm-vaxult2.h: Delete file.
4477         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4478         * config/vax/vaxult2.mh (XM_FILE): Delete.
4479         * config/vax/xm-vaxult.h: Delete file.
4480         * config/vax/vaxult.mh (XM_FILE): Delete.
4481         * config/vax/xm-vaxbsd.h: Delete file.
4482         * config/vax/vaxbsd.mh (XM_FILE): Delete.
4483
4484         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4485         * gdbarch.h, gdbarch.c: Re-generate.
4486         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4487         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4488         * frame.h: Delete deprecated_read_fp from comments.
4489         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4490         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4491
4492 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
4493
4494         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4495         trampoline in OpenBSD 3.5-current.
4496
4497         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4498         SSE registers.
4499
4500         * Makefile.in: Remove embedded page breaks.
4501
4502 2004-08-04  Jim Blandy  <jimb@redhat.com>
4503
4504         * regcache.c (regcache_raw_read): Assert that, after calling
4505         target_fetch_registers, the register we're reading is cached.
4506
4507         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4508         a call to 'internal_error', with a more helpful error message.
4509         * rs6000-tdep.c (e500_pseudo_register_read,
4510         e500_pseudo_register_write, rs6000_store_return_value): Same.
4511
4512 2004-08-04  Andrew Cagney  <cagney@gnu.org>
4513
4514         * Makefile.in: Update dependencies.
4515
4516 2004-08-04  Jim Blandy  <jimb@redhat.com>
4517
4518         Change the layout of the PowerPC E500 raw register cache to allow
4519         the lower 32-bit halves of the GPRS to be their own raw registers,
4520         not pseudoregisters.
4521         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4522         add ppc_ev0_upper_regnum flag.
4523         * rs6000-tdep.c: #include "reggroups.h".
4524         (spe_register_p): Recognize the ev upper half registers as SPE
4525         registers.
4526         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4527         registers.
4528         (e500_move_ev_register): New function.
4529         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4530         vector registers are the pseudo-registers now, formed by splicing
4531         together the gprs and the upper-half registers.
4532         (e500_register_reggroup_p): New function.
4533         (P): Macro deleted.
4534         (P8, A4): New macro.
4535         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4536         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4537         macros.
4538         (registers_e500): Rearrange register set so that the raw register
4539         set contains 32-bit GPRs and upper-half registers, and the SPE
4540         vector registers become pseudo-registers.
4541         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4542         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
4543         register numbers are now the same for the E500 as they are for
4544         other PowerPC variants.  Register e500_register_reggroup_p as the
4545         register group function for the E500.
4546         * Makefile.in (rs6000-tdep.o): Update dependencies.
4547
4548         Adapt PPC E500 native support to the new raw regcache layout.
4549         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4550         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4551         (fetch_spe_register, store_spe_register): Handle fetching/storing
4552         all the SPE registers at once, if regno == -1.  These now take
4553         over the job of fetch_spe_registers and store_spe_registers.
4554         (fetch_spe_registers, store_spe_registers): Deleted.
4555         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4556         unconditionally; they're always raw.  Fetch/store SPE upper half
4557         registers, if present, instead of ev registers.
4558         (fetch_register, store_register): Remove sanity checks: gprs are
4559         never pseudo-registers now, so we never need to even mention any
4560         registers that are ever pseudoregisters.
4561
4562         Use a fixed register numbering when communicating with the PowerPC
4563         simulator.
4564         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4565         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4566         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
4567         New functions.
4568         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
4569         init_sim_regno_table.
4570         * Makefile.in (gdb_sim_ppc_h): New variable.
4571         (rs6000-tdep.o): Update dependencies.
4572
4573 2004-08-02  Andrew Cagney  <cagney@gnu.org>
4574
4575         * cris-tdep.c (cris_register_size): Restore function, still used
4576         locally.
4577
4578         * gdbarch.sh (deprecated_target_read_fp)
4579         (deprecated_frame_locals_address, deprecated_frame_args_address)
4580         (deprecated_frame_chain_valid, deprecated_frame_chain)
4581         (deprecated_init_extra_frame_info, deprecated_pop_frame)
4582         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4583         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4584         * gdbarch.h, gdbarch.c: Re-generate.
4585         * regcache.c (deprecated_read_fp): Do not call
4586         DEPRECATED_TARGET_READ_FP_P.
4587         * infcmd.c (default_print_registers_info): Do not call
4588         DEPRECATED_DO_REGISTERS_INFO.
4589         * frame-base.c (default_frame_locals_address): Do not call
4590         DEPRECATED_FRAME_LOCALS_ADDRESS.
4591         (default_frame_args_address): Do not call
4592         DEPRECATED_FRAME_ARGS_ADDRESS.
4593
4594         * gdbarch.sh (deprecated_register_raw_size)
4595         (deprecated_register_virtual_size:int): Delete.
4596         * gdbarch.h, gdbarch.c: Re-generate.
4597         * cris-tdep.c (cris_register_size): Delete.
4598         (cris_gdbarch_init): Update.
4599         * alpha-tdep.c (alpha_register_raw_size)
4600         (alpha_register_virtual_size): Delete.
4601         (alpha_gdbarch_init): Update.
4602
4603         * gdbarch.sh (deprecated_register_virtual_type)
4604         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4605         (deprecated_dummy_write_sp): Delete.
4606         * gdbarch.h, gdbarch.c: Re-generate.
4607
4608         * gdbarch.sh (deprecated_register_bytes): Delete.
4609         * gdbarch.h, gdbarch.c: Re-generate.
4610         * regcache.c (deprecated_register_bytes): New function.
4611         * regcache.h (deprecated_register_bytes): Declare.
4612         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4613         * v850-tdep.c (v850_gdbarch_init): Update.
4614         * sh64-tdep.c (sh64_gdbarch_init): Update.
4615         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4616         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4617         * mcore-tdep.c (mcore_gdbarch_init): Update.
4618         * cris-tdep.c (cris_gdbarch_init): Update.
4619         * arm-tdep.c (arm_gdbarch_init): Update.
4620         * remote.c (init_remote_state): Update.
4621         * remote-vx.c (vx_prepare_to_store): Update.
4622         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4623         * irix5-nat.c (fetch_core_registers): Update.
4624         * cris-tdep.c (cris_register_bytes_ok): Update.
4625         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4626
4627         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4628         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4629         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4630         (mips_insn16_frame_base_address, mips_insn16_frame_base)
4631         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4632         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4633         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4634         (mips_insn32_frame_base_address, mips_insn32_frame_base)
4635         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4636         with mips_insn16 and mips_insn32.
4637
4638         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4639         * rs6000-tdep.c (rs6000_push_dummy_call)
4640         (rs6000_extract_return_value): Use register_size.
4641         * xstormy16-tdep.c (xstormy16_get_saved_register) 
4642         (xstormy16_extract_return_value): Ditto.
4643         * valops.c (value_assign): Ditto.
4644         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
4645         * v850-tdep.c (v850_extract_return_value): Ditto.
4646         * tracepoint.c (collect_symbol): Ditto.
4647         * target.c (debug_print_register): Ditto.
4648         * stack.c (frame_info): Ditto.
4649         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4650         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4651         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4652         (store_register_using_P): Ditto.
4653         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4654         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4655         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4656         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4657         * regcache.c (deprecated_read_register_bytes) 
4658         (deprecated_write_register_bytes, read_register) 
4659         (write_register): Ditto.
4660         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4661         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4662         * monitor.c (monitor_supply_register, monitor_fetch_register) 
4663         (monitor_store_register): Ditto.
4664         * mn10300-tdep.c (mn10300_pop_frame_regular) 
4665         (mn10300_print_register): Ditto.
4666         * mipsv4-nat.c (fill_fpregset): Ditto.
4667         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
4668         (mips64_fill_fpregset): Ditto.
4669         * mi/mi-main.c (register_changed_p, get_register)
4670         (mi_cmd_data_write_register_values): Ditto.
4671         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
4672         * irix5-nat.c (fill_gregset, fetch_core_registers): 
4673         * infrun.c (write_inferior_status_register): Ditto.
4674         * infptrace.c (fetch_register, store_register): Ditto.
4675         * infcmd.c (default_print_registers_info): Ditto.
4676         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4677         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4678         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4679         * hpux-thread.c (hpux_thread_fetch_registers)
4680         (hpux_thread_store_registers): Ditto.
4681         * hppah-nat.c (store_inferior_registers, fetch_register): 
4682         * findvar.c (value_from_register): Ditto.
4683         * dve3900-rom.c (fetch_bitmapped_register): 
4684         * cris-tdep.c (cris_gdbarch_init): Ditto.
4685         * alpha-tdep.h: Ditto.
4686         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4687
4688         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4689         DEPRECATED_REGISTER_RAW_SIZE from comments.
4690         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4691         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4692         DEPRECATED_REGISTER_RAW_SIZE.
4693         * findvar.c (value_of_register): Simplify by assuming that the
4694         registers raw and virtual sizes are identical.
4695         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4696         comment.
4697         * arch-utils.c (generic_register_size): Simplify by assuming
4698         register_type.
4699
4700         * regcache.c (legacy_read_register_gen, real_register) 
4701         (legacy_write_register_gen): Delete, not used.
4702
4703         * regcache.c (struct regcache_descr): Delete legacy_p.
4704         (init_legacy_regcache_descr): Delete function.
4705         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4706         Do not use deprecated register functions.
4707         (regcache_raw_read, deprecated_write_register_gen):
4708         (deprecated_read_register_gen, regcache_raw_write): Delete code
4709         predicated on legacy_p.
4710         (register_size): Delete check against register raw size.
4711
4712         * cris-tdep.c (cris_register_type): Replace
4713         cris_register_virtual_type.
4714         (cris_gdbarch_init): Update, set register_type.
4715
4716         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4717         * gdbarch.h, gdbarch.c: Re-generate.
4718         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
4719         (arm_gdbarch_init) Do not set frameless function invocation.
4720         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4721         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4722         * frv-tdep.c (frv_frameless_function_invocation): Delete.
4723         (frv_gdbarch_init): Do not set frameless function invocation.
4724         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4725         * sh-tdep.c (sh_gdbarch_init): Ditto.
4726         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4727         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4728         * avr-tdep.c (avr_gdbarch_init): Ditto.
4729
4730         * blockframe.c (legacy_frame_chain_valid): Delete function.
4731
4732         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4733         and pc.  Update comments.
4734         (pc_in_dummy_frame): Delete function.
4735         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4736         use the "id".
4737         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4738         call_hi, top and pc, use the id.
4739         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4740
4741         * dummy-frame.c: Include "gdb_string.h".
4742         (generic_save_call_dummy_addr, generic_push_dummy_frame)
4743         (generic_save_dummy_frame_tos): Delete.
4744         (dummy_frame_push): New function, replaces above.
4745         * dummy-frame.h: Update copyright.
4746         (dummy_frame_push): Declare.
4747         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4748         (generic_save_call_dummy_addr): Delete declarations.
4749         * infcall.c: Include "dummy-frame.h".
4750         (call_function_by_hand): Add locals caller_regcache,
4751         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
4752         with call to frame_save_as_regcache plus cleanup.  Delete calls to
4753         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4754         Move clear_proceed_status to just before the resume, add call to
4755         dummy_frame_push (discard cleanup).
4756         * Makefile.in (infcall.o): Add $(dummy_frame_h).
4757         (dummy-frame.o): Add $(gdb_string_h).
4758
4759 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4760
4761         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4762         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4763         * dummy-frame.c (find_dummy_frame): Delete.
4764         (struct dummy_frame_cache, dummy_frame_sniffer)
4765         (dummy_frame_prev_register, dummy_frame_this_id)
4766         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4767         frame unwinder using a dummy_frame_cache.
4768
4769 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4770
4771         * frame.h (frame_save_as_regcache): Declare.
4772         * frame.c (frame_save_as_regcache): New function.
4773         (do_frame_read_register): Replace do_frame_unwind_register.
4774         (frame_pop): Use frame_save_as_regcache.
4775         * dummy-frame.c (generic_push_dummy_frame): Use
4776         frame_save_as_regcache.
4777
4778 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
4779
4780         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4781         file as included until we record the first line in the linetable.
4782
4783 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4784
4785         * frame.h (deprecated_pop_dummy_frame)
4786         (deprecated_read_register_dummy)
4787         (deprecated_generic_find_dummy_frame): Delete.
4788         * dummy-frame.c (deprecated_generic_find_dummy_frame)
4789         (deprecated_read_register_dummy)
4790         (deprecated_find_dummy_frame_regcache)
4791         (discard_innermost_dummy)
4792         (deprecated_pop_dummy_frame): Delete.
4793         (dummy_frame_this_id): Simplify.
4794         (struct dummy_frame): Delete "fp" and "sp".
4795         (find_dummy_frame): Simplify.
4796         (generic_push_dummy_frame): Do not set "fp" or "sp".
4797         (fprint_dummy_frames): Do not print "fp" and "sp"
4798
4799 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
4800
4801         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4802         (struct i386_insn): New structure.
4803         (i386_match_insn): New function.
4804         (i386_frame_setup_skip_insns): New variable.
4805         (i386_analyze_frame_setup): Change to use i386_match_insn and the
4806         array i386_frame_setup_insns of instructions that should be
4807         skipped inside the frame setup sequence.
4808
4809 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4810
4811         * frame.h (deprecated_frame_xmalloc_with_cleanup)
4812         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4813         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4814         * stack.c (frame_info): Delete references to
4815         DEPRECATED_FRAME_INIT_SAVED_REGS and
4816         deprecated_get_frame_saved_regs.
4817         * frame.c (struct frame_info): Delete saved_regs and extra_info.
4818         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4819         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4820         (frame_unwind_register_signed)
4821         (frame_unwind_register_unsigned)
4822         (frame_unwind_unsigned_register): Use register_size.
4823         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4824         (deprecated_frame_xmalloc_with_cleanup)
4825         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4826         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4827
4828         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4829         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4830         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4831         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4832
4833         * infcall.c (call_function_by_hand): Do not use
4834         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4835         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4836         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4837         DEPRECATED_STACK_ALIGN.
4838
4839 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4840
4841         Committed by Andrew Cagney.
4842         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4843
4844 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4845
4846         * mips-tdep.c (mips16_frame_cache)
4847         (mips16_frame_this_id, mips16_frame_prev_register)
4848         (mips16_frame_unwind, mips16_frame_sniffer)
4849         (mips16_frame_base_address, mips16_frame_base)
4850         (mips16_frame_base_sniffer, mips32_frame_cache)
4851         (mips32_frame_this_id, mips32_frame_prev_register)
4852         (mips32_frame_unwind, mips32_frame_sniffer)
4853         (mips32_frame_base_address, mips32_frame_base)
4854         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4855         separate heuristic mips16 and mips32 unwinders.
4856         (mips_stub_frame_cache, mips_stub_frame_this_id)
4857         (mips_stub_frame_prev_register)
4858         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4859         (mips_stub_frame_base_address, mips_stub_frame_base)
4860         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4861         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4862         match true mdebug frames.
4863         (non_heuristic_proc_desc): Add forward declaration.
4864
4865 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4866
4867         * config/mips/tm-irix6.h: Delete file.
4868         * config/mips/tm-irix5.h: Delete file.
4869         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4870         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4871
4872         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4873         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4874         * config/nm-gnu.h (NO_CORE_OPS): Delete.
4875         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4876         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4877         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4878         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4879         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4880         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4881         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4882         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4883         (TARGET_SIGNAL_RAW_VALUES): Delete.
4884         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4885         Delete.
4886         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
4887         (TARGET_HW_WATCH_LIMIT): Delete.
4888         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4889         * minimon.h: Delete file.
4890
4891         * trad-frame.c (trad_frame_get_this_base)
4892         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4893         functions.
4894         * trad-frame.h (trad_frame_set_this_base)
4895         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4896
4897 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4898
4899         * trad-frame.c (trad_frame_get_prev_register): Rename
4900         trad_frame_get_prev_register.
4901         * vax-tdep.c (vax_frame_prev_register): Update.
4902         * trad-frame.h: Update.
4903         * trad-frame.c (trad_frame_get_register): Update.
4904         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4905         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4906         Update.
4907         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4908         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4909         Update.
4910         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4911         Update.
4912         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4913         Update.
4914         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4915         Update.
4916         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4917         Update.
4918         * s390-tdep.c (s390_frame_prev_register) 
4919         (s390_stub_frame_prev_register) 
4920         (s390_sigtramp_frame_prev_register): Update.
4921         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4922         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4923         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4924         * m88k-tdep.c (m88k_frame_prev_register) 
4925         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
4926         * m32r-tdep.c (m32r_frame_prev_register): Update.
4927         * hppa-tdep.c (hppa_frame_prev_register_helper) 
4928         * frv-tdep.c (frv_frame_prev_register): Update.
4929         * d10v-tdep.c (d10v_frame_prev_register): Update.
4930         * cris-tdep.c (cris_frame_prev_register): Update.
4931         * avr-tdep.c (avr_frame_prev_register): Update.
4932         * arm-tdep.c (arm_prologue_prev_register) 
4933         (arm_sigtramp_prev_register): Update.
4934
4935 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4936
4937         * frame.h (legacy_saved_regs_unwind)
4938         (legacy_frame_chain_valid, legacy_frame_p)
4939         (enum frame_type): Delete UNKNOWN_FRAME.
4940         * dummy-frame.c (dummy_frame_this_id): Simplify.
4941         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4942         * frame.c (struct frame_info): Delete the field "type".
4943         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4944         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4945         (legacy_saved_regs_unwind, legacy_frame_p)
4946         (frame_type_from_pc): Delete.
4947         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4948         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4949
4950 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
4951
4952         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4953         indentation.
4954
4955         * mips-nat.c: Remove file.
4956         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4957         (mips-nat.o): Remove dependency.
4958
4959         * infptrace.c: Update copyright year.
4960         (fetch_register): Pass NULL in regcache_raw_supply call instead of
4961         explicitly setting the buffer to all zeroes.
4962
4963         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4964         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4965
4966 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4967
4968         * GDB 6.2 released from gdb_6_2-branch.
4969
4970 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
4971
4972         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4973
4974         * exec.c (exec_file_attach):
4975         * nto-tdep.c (nto_find_and_open_solib):
4976         * pa64solib.c (pa64_solib_sizeof_symbol_table):
4977         * solib.c (solib_open):
4978         * somsolib.c (som_solib_sizeof_symbol_table):
4979         * source.c (is_regular_file, openp, open_source_file):
4980         * symfile.c (symfile_bfd_open):
4981         * wince.c (upload_to_device): Differentiate between the search for
4982         binary and source files.
4983
4984 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4985
4986         * complaints.c (_initialize_complaints): Pass NULL to
4987         add_setshow_zinteger_cmd for help_doc.
4988         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4989
4990 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4991
4992         Fix PR i18n/761.
4993         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4994         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4995         $(PACKAGE).pot and update-po.
4996         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4997         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4998         (update-po): New rules.
4999         (localedir): Define using autoconf.
5000         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
5001         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
5002         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
5003         * configure.in: Generate CATALOGS and LINGUAS from contents of
5004         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
5005         * configure: Re-generate.
5006         * po/gdbtext: New file
5007         
5008 2004-07-30  Jerome Guitton  <guitton@gnat.com>
5009
5010         * MAINTAINERS: Reorder Write After Approval list in alphabetical
5011         order.
5012
5013 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
5014
5015         * dwarf2read.c (read_file_scope): Set producer if attribute 
5016         present.
5017         (struct dwarf2_cu): Added new member producer.
5018
5019 2004-07-30  Jerome Guitton  <guitton@gnat.com>
5020
5021         * inflow.c (kill_command): release file handles in BFD.
5022         * exec.c (exec_file_attach): Ditto.
5023         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5024
5025 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5026
5027         * PROBLEMS (mips-irix): Note that it is broken.
5028
5029 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5030
5031         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5032         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5033
5034         * config/xm-nbsd.h: Delete file.
5035         * config/arm/xm-nbsd.h: Delete file.
5036         * config/i386/xm-nbsd.h: Delete file.
5037         * config/ns32k/xm-nbsd.h: Delete file.
5038         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5039         * config/i386/nbsdelf.mh (XM_FILE): Delete.
5040         * config/i386/nbsdaout.mh (XM_FILE): Delete.
5041         * config/arm/nbsdelf.mh (XM_FILE): Delete.
5042         * config/arm/nbsdaout.mh (XM_FILE): Delete.
5043
5044         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5045         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5046         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5047         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5048         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5049         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5050
5051         * config/powerpc/xm-linux.h: Delete empty file.
5052         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5053         * config/powerpc/linux.mh (XM_FILE): Delete.
5054         * config/m68k/xm-linux.h: Delete empty file.
5055         * config/m68k/linux.mh (XM_FILE): Delete.
5056         * config/ia64/xm-linux.h: Delete empty file.
5057         * config/ia64/linux.mh (XM_FILE): Delete.
5058         * config/arm/xm-linux.h: Delete empty file.
5059         * config/arm/linux.mh (XM_FILE): Delete.
5060         
5061         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5062         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5063         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5064         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5065         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5066         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5067         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5068         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5069
5070         * config/m68k/xm-m68k.h: Delete file.
5071         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
5072         copyright.
5073         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5074         * config/pa/xm-linux.h: Delete empty file.
5075         * config/pa/linux.mh (XM_FILE): Delete.
5076         * config/i386/xm-i386.h: Delete empty file.
5077         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5078         "i386/xm-i386.h".
5079         * config/i386/obsdaout.mh (XM_FILE): Delete.
5080         * config/i386/obsd64.mh (XM_FILE): Delete.
5081         * config/i386/fbsd64.mh (XM_FILE): Delete.
5082         * config/i386/nto.mh (XM_FILE): Delete.
5083         * config/i386/obsd.mh (XM_FILE): Delete.
5084         * config/i386/linux64.mh (XM_FILE): Delete.
5085         * config/i386/linux.mh (XM_FILE): Delete.
5086         * config/i386/i386sol2.mh (XM_FILE): Delete.
5087         * config/i386/i386gnu.mh (XM_FILE): Delete.
5088         * config/i386/fbsd.mh (XM_FILE): Delete.
5089         * config/i386/nbsd64.mh (XM_FILE): Delete.
5090
5091 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5092
5093         * config/pa/xm-linux.h: Do not include "floatformat.h".
5094         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5095         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5096         * config/i386/xm-i386.h: Do not include "floatformat.h".
5097         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
5098         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5099         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5100         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
5101         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5102         GDB_HOST_LONG_DOUBLE_FORMAT instead.
5103         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5104         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5105         * configure, config.in: Regenerate.     
5106         * configure.host (gdb_host_float_format, gdb_host_double_format)
5107         (gdb_host_long_double_format): Set according to the host.
5108         
5109 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5110
5111         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5112
5113 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5114
5115         * PROBLEMS: Mention threads/1650.
5116         * NEWS: Mention the NPTL fix.
5117
5118 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5119
5120         * cli/cli-decode.c (add_setshow_cmd): Delete function.
5121         (add_setshow_cmd_full): Make static.
5122         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5123         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5124         * cli/cli-decode.c (add_setshow_filename_cmd) 
5125         (add_setshow_string_cmd): New functions.
5126         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
5127         * mips-tdep.c (_initialize_mips_tdep): Update.
5128         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
5129         * cli/cli-logging.c (_initialize_cli_logging): Update.
5130         * complaints.c (_initialize_complaints): Update.
5131         * remote.c (_initialize_remote): Update.
5132         
5133 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5134
5135         * cli/cli-decode.c (add_setshow_zinteger_cmd)
5136         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5137         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5138         print parameters.  Make string parameters constant.
5139         * command.h: Update.  Update copyright.
5140         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5141         * observer.c (_initialize_observer): Ditto.
5142         * frame.c (_initialize_frame): Ditto.
5143         * complaints.c (_initialize_complaints): Ditto.
5144         * maint.c (_initialize_maint_cmds): Ditto.
5145         * target.c (initialize_targets): Ditto.
5146         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5147         * infcall.c (_initialize_infcall): Ditto.
5148         * arm-tdep.c (_initialize_arm_tdep): Ditto.
5149         * m32r-rom.c (_initialize_m32r_rom): Ditto.
5150         * remote-rdi.c (_initialize_remote_rdi): Ditto.
5151         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5152         * mips-tdep.c (_initialize_mips_tdep): Ditto.
5153
5154 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5155
5156         * gdbtypes.c (lookup_primitive_typename): Delete function.
5157         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5158         * ada-lex.l: Use language_lookup_primitive_type_by_name.
5159         * gdbtypes.c (lookup_typename): Ditto.
5160         * f-exp.y (yylex): Ditto.
5161         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5162
5163         * scm-lang.c (c_builtin_types): Delete extern declaration.
5164         (scm_language_defn): Replace
5165         string_char_type and primitive_type_vector with
5166         la_language_arch_info.
5167         * jv-lang.c (java_language_defn): Replace
5168         string_char_type and primitive_type_vector with
5169         la_language_arch_info.
5170         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5171         c_builtin_types in comment.
5172         * c-lang.h (struct language_arch_info): Declare opaque.
5173         (c_language_arch_info): Declare.
5174         (c_builtin_types): Delete declaration.
5175         * c-lang.c (c_language_arch_info): Set string_char_type to
5176         builtin_char, not builtin_true_char.  Make global.
5177         (c_builtin_types): Delete array.
5178         (asm_language_defn, minimal_language_defn): Replace
5179         string_char_type and primitive_type_vector with
5180         la_language_arch_info.
5181
5182 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5183
5184         * gdbtypes.h (struct builtin_type): Rename true_char to
5185         builtin_true_char.
5186         * gdbtypes.c (gdbtypes_post_init): Update.
5187         * c-lang.c (arch_info): New function.
5188         (enum c_primitive_types): New enum.
5189         (c_language_defn): Instead of string_char_type and
5190         primitive_type_vector set la_language_arch_info.
5191
5192 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5193
5194         * language.h (struct language_arch_info): Fix typo
5195         s/primative/primitive/.
5196         * gdbtypes.c (lookup_primitive_typename): Ditto.
5197         * language.c (language_lookup_primitive_type_by_name)
5198         (unknown_language_arch_info): Ditto.
5199
5200 2004-07-27  Andrew Cagney  <cagney@gnu.org>
5201
5202         * defs.h (enum language): Add nr_languages.
5203         * language.h (struct language_arch_info): Define.
5204         (struct language_defn): Add la_language_arch_info.
5205         (language_lookup_primative_type_by_name): Declare.
5206         (language_string_char_type): Declare.
5207         * language.c (_initialize_language, language_gdbarch_post_init)
5208         (struct language_gdbarch, language_gdbarch_data): Implement
5209         per-architecture language information.
5210         (unknown_language_arch_info, language_string_char_type)
5211         (language_lookup_primative_type_by_name): New functions.
5212         (unknown_language_defn, auto_language_defn)
5213         (local_language_defn): Set la_language_arch_info to
5214         unknown_language_arch_info.
5215         (unknown_builtin_types): Delete.
5216         * gdbtypes.c (lookup_primitive_typename): Use
5217         language_lookup_primative_type_by_name.
5218         (create_string_type): Use language_string_char_type.
5219         * values.c (value_from_string): Use language_string_char_type.
5220         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5221         * p-lang.c (pascal_language_defn): Ditto.
5222         * m2-lang.c (m2_language_defn): Ditto.
5223         * jv-lang.c (java_language_defn): Ditto.
5224         * objc-lang.c (objc_language_defn): Ditto.
5225         * f-lang.c (f_language_defn): Ditto.
5226         * c-lang.c (c_language_defn, cplus_language_defn) 
5227         (asm_language_defn, minimal_language_defn): Ditto.
5228         
5229 2004-07-27  Andrew Cagney  <cagney@gnu.org>
5230
5231         * gdbtypes.h (struct builtin_type): Declare.
5232         (builtin_type): Declare.
5233         * d10v-tdep.c (d10v_register_type): Use builtin_type.
5234         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5235         (gdbtypes_post_init): New function.
5236         (builtin_type): New function.
5237
5238 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
5239
5240         * remote-m32r-sdi.c: Fix breakpoint bug.
5241         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5242         recv_char_data, recv_long_data): New functions to replace communication
5243         sequences.
5244
5245 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
5246
5247         Document PR threads/1650.
5248         * PROBLEMS (Threads): Document problem with many threads
5249
5250 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5251
5252         * gdb-mi.el: Move from here ...
5253         * mi/gdb-mi.el: ... to here.
5254
5255 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5256
5257         Problem reported by Ashley Pittman <ashley@quadrics.com>.
5258         * main.c (captured_main): When in batch mode always detach.
5259
5260 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5261
5262         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5263         and h8300 as broken.
5264         * NEWS: END-OF-LIFE frame compatibility module.
5265         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5266         specific comments.
5267
5268 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5269
5270         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5271         * xcoffsolib.c (_initialize_xcoffsolib): Update.
5272         * wince.c (_initialize_wince): Update.
5273         * win32-nat.c (_initialize_win32_nat): Update.
5274         * varobj.c (_initialize_varobj): Update.
5275         * valops.c (_initialize_valops): Update.
5276         * utils.c (initialize_utils, initialize_utils): Update.
5277         * tui/tui-win.c (_initialize_tui_win): Update.
5278         * top.c (init_main): Update.
5279         * symfile.c (_initialize_symfile): Update.
5280         * source.c (_initialize_source): Update.
5281         * somsolib.c (_initialize_som_solib): Update.
5282         * solib.c (_initialize_solib): Update.
5283         * solib-frv.c (_initialize_frv_solib): Update.
5284         * serial.c (_initialize_serial): Update.
5285         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5286         * remote.c (_initialize_remote, _initialize_remote): Update.
5287         * remote-vx.c (_initialize_vx): Update.
5288         * remote-utils.c (_initialize_sr_support): Update.
5289         * remote-sds.c (_initialize_remote_sds): Update.
5290         * remote-mips.c (_initialize_remote_mips): Update.
5291         * remote-e7000.c (_initialize_remote_e7000): Update.
5292         * proc-api.c (_initialize_proc_api): Update.
5293         * printcmd.c: Update.
5294         * parse.c (_initialize_parse): Update.
5295         * pa64solib.c (_initialize_pa64_solib): Update.
5296         * p-valprint.c (_initialize_pascal_valprint): Update.
5297         * monitor.c (_initialize_remote_monitors): Update.
5298         * mips-tdep.c (_initialize_mips_tdep): Update.
5299         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5300         * maint.c (_initialize_maint_cmds): Update.
5301         * lin-lwp.c (_initialize_lin_lwp): Update.
5302         * language.c (_initialize_language): Update.
5303         * kod.c (_initialize_kod): Update.
5304         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5305         * i386-tdep.c (_initialize_i386_tdep): Update.
5306         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5307         * gdbarch.sh: Update.
5308         * gdbarch.c: Re-generate.
5309         * gdb-events.sh: Update.
5310         * gdb-events.c: Re-generate.
5311         * frame.c (_initialize_frame): Update.
5312         * exec.c: Update.
5313         * demangle.c (_initialize_demangler): Update.
5314         * dcache.c (_initialize_dcache): Update.
5315         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5316         * cp-valprint.c (_initialize_cp_valprint): Update.
5317         * corefile.c (_initialize_core): Update.
5318         * command.h: Update.
5319         * cli/cli-decode.h: Update.
5320         * cli/cli-cmds.c (init_cli_cmds): Update.
5321         * charset.c (_initialize_charset): Update.
5322         * breakpoint.c (_initialize_breakpoint): Update.
5323         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5324         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5325         * aix-thread.c (_initialize_aix_thread): Update.
5326
5327 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5328
5329         Partial fix for PR backtrace/1718.
5330         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5331         that GCC migrates into the prolugue.  Don't handle any
5332         instructions that clobber %ebx.
5333
5334 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5335
5336         Use regcache_raw_collect instead of regcache_collect.
5337         * regcache.h (regcache_collect): Delete declaration.
5338         * regcache.c (regcache_colect): Delete function.
5339         * win32-nat.c (do_child_store_inferior_registers): Update.
5340         * sol-thread.c (sol_thread_store_registers): Update.
5341         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5342         * rs6000-nat.c (store_register): Update.
5343         * remote.c (store_register_using_P, remote_store_registers): Update.
5344         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5345         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
5346         (fill_vrregset, store_spe_registers, fill_gregset)
5347         (fill_gregset): Update.
5348         * nto-procfs.c (procfs_store_registers): Update.
5349         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5350         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5351         * m68klinux-nat.c (store_register, fill_gregset): Update.
5352         * m68k-tdep.c (fill_gregset): Update.
5353         * infptrace.c (store_register): Update.
5354         * i386-nto-tdep.c (i386nto_regset_fill): Update.
5355         * i386-linux-nat.c (store_register, fill_gregset): Update.
5356         * hppa-linux-nat.c (fill_gregset): Update.
5357         * go32-nat.c (store_register): Update.
5358         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5359         (store_fp_regs): Update.
5360         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
5361         (store_nwfpe_extended, store_fpregister, store_fpregs) 
5362         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5363         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5364         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5365         (store_regs_user_thread, store_regs_kernel_thread): Update.
5366
5367 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5368
5369         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5370         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5371         encoding.
5372         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5373         member of `struct comp_unit'.
5374
5375 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5376
5377         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5378         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5379
5380 2004-07-23  Martin Hunt  <hunt@redhat.com>
5381         Kevin Buettner <kevinb@redhat.com>
5382
5383         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5384         alignment was being added to the offset instead of multiplied.
5385
5386 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
5387
5388         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5389         changed signal trampoline in OpenBSD 3.5-current.
5390
5391         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5392         <machine/pcb.h> and "bsd-kvm.h".
5393         (sparc64nbsd_supply_pcb): New function.
5394         (_initialize_sparc64nbsd_nat): Renamed from
5395         _initialize_sparcnbsd_nat.  Enable libkvm interface.
5396         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5397         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5398         (LOADLIBES): New variable.
5399
5400         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5401
5402         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5403
5404 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5405
5406         Use regcache_raw_supply instead of supply_register.
5407         * regcache.h (supply_register): Delete declaration.
5408         * regcache.c (supply_register): Delete function.
5409         * wince.c (do_child_fetch_inferior_registers): Update.
5410         * win32-nat.c (do_child_fetch_inferior_registers) 
5411         (fetch_elf_core_registers): Update.
5412         * v850ice.c (v850ice_fetch_registers): Update.
5413         * thread-db.c (thread_db_store_registers): Update.
5414         * sol-thread.c (sol_thread_store_registers): Update.
5415         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5416         * rs6000-nat.c (fetch_register): Update.
5417         * rom68k-rom.c (rom68k_supply_one_register): Update.
5418         * remote.c (remote_wait, remote_async_wait): Update.
5419         * remote-st.c (get_hex_regs): Update.
5420         * remote-sim.c (gdbsim_fetch_register): Update.
5421         * remote-sds.c (sds_fetch_registers): Update.
5422         * remote-rdp.c (remote_rdp_fetch_register): Update.
5423         * remote-rdi.c (arm_rdi_fetch_registers): Update.
5424         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5425         * remote-m32r-sdi.c (m32r_fetch_register): Update.
5426         * remote-hms.c (init_hms_cmds): Update.
5427         * remote-est.c (init_est_cmds): Update.
5428         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
5429         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5430         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5431         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
5432         (fetch_register, supply_vrregset, supply_vrregset)
5433         (fetch_spe_registers): Update.
5434         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5435         * monitor.c (monitor_supply_register): Update.
5436         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5437         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5438         (mipsnbsd_supply_fpreg): Update.
5439         * mips-nat.c (fetch_inferior_registers)
5440         (fetch_core_registers): Update.
5441         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
5442         (supply_fpregset, mips64_supply_gregset)
5443         (mips64_supply_fpregset): Update.
5444         * m68klinux-nat.c (fetch_register, supply_gregset)
5445         (supply_fpregset): Update.
5446         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5447         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5448         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5449         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5450         * infptrace.c (fetch_register): Update.
5451         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5452         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5453         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
5454         (gnu_fetch_registers, gnu_store_registers): Update.
5455         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5456         * i386-linux-nat.c (fetch_register, supply_gregset)
5457         (dummy_sse_values): Update.
5458         * hpux-thread.c (hpux_thread_fetch_registers): Update.
5459         * hppah-nat.c (fetch_register): Update.
5460         * hppa-linux-nat.c (fetch_register, supply_gregset) 
5461         (supply_fpregset): Update.
5462         * go32-nat.c (fetch_register): Update.
5463         * dve3900-rom.c (fetch_bitmapped_register)
5464         (_initialize_r3900_rom): Update.
5465         * cris-tdep.c (supply_gregset): Update.
5466         * abug-rom.c (init_abug_cmds): Update.
5467         * core-aout.c (fetch_core_registers): Update.
5468         * armnbsd-nat.c (supply_gregset, supply_fparegset)
5469         (fetch_register, fetch_fp_register): Update.
5470         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5471         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5472         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5473         * alphanbsd-tdep.c (fetch_core_registers): Update.
5474         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5475         * alpha-nat.c (fetch_osf_core_registers) 
5476         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5477         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
5478         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5479
5480 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5481
5482         * PROBLEMS: Mention breakpoints/1702.
5483         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5484         that is known to work.
5485
5486 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5487
5488         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5489         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5490         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5491         (handle_inferior_event): Wrap call to deprecated
5492         IGNORE_HELPER_CALL in #ifdef.
5493         * config/mips/tm-nbsd.h: Update.
5494
5495 2004-07-20  Jim Blandy  <jimb@redhat.com>
5496
5497         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5498         bfd_mach_ppc has no segment registers.
5499
5500         Include PowerPC SPR numbers for special-purpose registers.
5501         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5502         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5503         new member in initializer.
5504         (S, S4, SN4, S64): New macros for defining special-purpose
5505         registers.
5506         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5507         registers_403, registers_403GC, registers_505, registers_860,
5508         registers_601, registers_602, registers_603, registers_604,
5509         registers_750, registers_e500): Use them.
5510
5511         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5512         replace references with expression used to initialize variable.
5513
5514 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5515
5516         * breakpoint.c (deprecated_read_memory_nobpt): Rename
5517         read_memory_nobpt.
5518         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5519         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5520         (s390_sigtramp_frame_sniffer): Update.
5521         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5522         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5523         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
5524         (mips32_fetch_instruction): Update.
5525         * mcore-tdep.c (get_insn): Update.
5526         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5527         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5528         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5529         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
5530         (i386_linux_rt_sigtramp_start): Update.
5531         * i386-linux-nat.c (child_resume): Update.
5532         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5533         * hppa-linux-tdep.c (insns_match_pattern): Update.
5534         * gdbcore.h: Update.
5535         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5536         * frame.c (safe_frame_unwind_memory): Update.
5537         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5538         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5539         * alpha-tdep.c (alpha_read_insn): Update.
5540
5541 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5542
5543         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5544         containing both bytes and mask.  Add "frame_type".
5545         * tramp-frame.c (tramp_frame_start): Update.
5546         (tramp_frame_prepend_unwinder): Update.
5547         * mips-linux-tdep.c (mips_linux_o32_sigframe)
5548         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5549         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
5550         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5551
5552 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
5553
5554         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5555         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5556         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5557         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5558
5559 2004-07-17  Andrew Cagney  <cagney@gnu.org>
5560
5561         * NEWS, PROBLEMS: Update for 6.2.
5562
5563         * README: Update to 6.2.
5564
5565         * utils.c (xvasprintf): Call xstrvprintf.
5566
5567         * parse.c: Update copyright.
5568         (null_post_parser): Eliminate ARGSUSED.
5569
5570         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5571         * tui/tui-win.c (tui_get_cmd_list): Ditto.
5572         * symfile-mem.c (_initialize_symfile_mem): Ditto.
5573         
5574         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5575         * ppc-linux-nat.c: Use "Linux kernel".
5576         * hppa-linux-tdep.c: Use GNU/Linux.
5577         * hppa-linux-nat.c: Use GNU/Linux.
5578         * dwarfread.c: Add [sic] to use of Linux.
5579
5580         * hppa-linux-nat.c: Do not include <string.h>.
5581         (supply_fpregset): Remove "register" attribute.
5582
5583         * solib-frv.c (fetch_loadmap): Use xfree, not free.
5584
5585 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
5586
5587         * configure.in: Define _MSE_INT_H on Solaris 9 too.
5588         * configure, config.in: Regenerated.
5589
5590         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5591         "bsd-kvm.h".
5592         (vaxbsd_supply_pcb): New function.
5593         (_initialize_vaxbsd_nat): New prototype and function.
5594         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5595         solib-sunos.o.
5596         (LOADLIBES): New variable.
5597         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5598         (LOADLIBES): New variable.
5599         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5600         (LOADLIBES): New variable.
5601         * Makefile.in (vaxbsd-nat.o): Update dependencies.
5602
5603 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5604
5605         * defs.h (event_loop_p): Replace variable declaration with macro,
5606         always 1.
5607         * main.c (captured_main): Delete options "-async" and "-noasync".
5608         (event_loop_p): Delete variable.
5609         * NEWS: Mention that "-async" and "-noasync" were removed.
5610
5611 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5612
5613         * remote-m32r-sdi.c: Re-indent.
5614
5615 2004-07-16  Jim Blandy  <jimb@redhat.com>
5616
5617         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5618         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5619         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5620         missing MPC823 SPRs.
5621         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5622         incorrect.  (This was corrected in GDB's register name tables on
5623         2004-07-14.)
5624
5625         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5626         should be "esasrr" ("ESA Save and Restore Register").
5627
5628 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5629
5630         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5631         calls, no longer applicable.  Update comments and rename parameter
5632         "step_frame" to "return_frame".
5633
5634 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5635
5636         * frame.c (fprint_field): New function.
5637         (fprint_frame_id): Use fprint_field.
5638
5639 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
5640
5641         * ada-lang.c (ada_language_defn): Remove commented out code.
5642
5643 2004-07-15  Jim Blandy  <jimb@redhat.com>
5644
5645         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5646         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5647
5648 2004-07-14  Jim Blandy  <jimb@redhat.com>
5649
5650         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5651
5652         * ppc-tdep.h (ppc_num_vrs): New enum constant.
5653
5654         * ppc-tdep.h (ppc_num_srs): New enum constant.
5655
5656         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5657         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5658         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5659         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5660         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5661         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5662         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5663         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5664         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5665         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5666         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5667         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5668         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5669         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5670         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5671         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5672         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5673         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5674         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5675         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5676         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5677         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5678         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5679         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5680         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5681         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5682         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5683         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5684         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5685         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5686         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5687         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5688         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5689         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5690         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5691         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5692         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5693         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5694         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5695         special-purpose register numbers.
5696
5697         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
5698         manual mentions 'md_twb', but many mention 'm_twb', and at that
5699         point in the register list.)
5700
5701 2004-07-14  Andrew Cagney  <cagney@gnu.org>
5702
5703         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5704         instead of "internal-error".
5705
5706 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
5707
5708         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5709         that was inserted inside a comment.
5710
5711 2004-07-10  Randolph Chung  <tausq@debian.org>
5712
5713         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
5714         function.
5715         (hppa_hpux_push_dummy_code): New function.
5716         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5717         Set find_global_pointer method.
5718
5719 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
5720
5721         * NEWS: Mention BSD libkvm interface.
5722
5723 2004-07-10  Michael Snyder  <msnyder@redhat.com>
5724
5725         * symfile.c (generic_load): Comment typo.
5726         * stack.c (get_selected_block): Ditto.
5727         * regcache.c (regcache_cooked_read): Ditto.
5728         * monitor.c (monitor_debug): Ditto.
5729         * mips-tdep.c (mips_read_pc): Ditto.
5730         * i386-linux-nat.c (ps_get_thread_area): Ditto.
5731         * gdb_mbuild.sh: Ditto.
5732         * gdbarch.sh: Ditto.
5733         * gdbarch.h: Ditto.
5734
5735 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
5736
5737         * ada-tasks.c: Remove file.
5738         
5739         Remove ARI problems:
5740         
5741         * ada-exp.y (write_var_from_sym): Reformat to put operator at
5742         beginning of line.
5743
5744         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5745         Add comment.
5746         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5747         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
5748         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
5749         (UMIN_OF_SIZE): Remove.
5750         (max_of_type): New function to replace orphan macro in gdbtypes.h
5751         (min_of_type): Ditto.
5752         (discrete_type_high_bound): Use max_of_type.
5753         (discrete_type_low_bound): Use min_of_type.
5754         (possible_user_operator_p): Move operator to beginning of line.
5755         (ada_is_variant_part): Ditto.
5756         (ensure_lval): Rewrite to avoid deprecated operations.
5757         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5758         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5759         (ada_enum_name): Remove assignments in 'if' statements.
5760         (build_ada_types): Add gdbarch parameter.
5761         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5762         with gdbarch_data_register_post_init.
5763         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
5764         add_show_from_set.
5765
5766         * ada-valprint.c (inspect_it): Remove declaration.
5767         (repeat_count_threshold): Remove declaration.
5768         (ada_print_floating): Remove assignments in 'if' statements.
5769         (print_str): Move operator to beginning of line.
5770         
5771 2004-07-08  Jim Blandy  <jimb@redhat.com>
5772
5773         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5774
5775 2004-07-08  Bob Rossi  <bob@brasko.net>
5776
5777         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5778
5779 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
5780
5781         * language.h (struct_language_defn): Add new function pointer:
5782         la_class_name_from_physname.  Also add new prototype for
5783         language_class_name_from_physname.
5784         * language.c (language_class_name_from_physname): New function.
5785         (unk_lang_class_name): Ditto.
5786         (unknown_language_defn, auto_language_defn): Change
5787         to add unk_lang_class_name function pointer for
5788         la_class_name_from_physname.
5789         (local_language_defn): Ditto.
5790         * dwarf2read.c (guess_structure_name): Change to call
5791         language_class_name_from_physname.
5792         (determine_class_name): Ditto.
5793         * cp-support.c (class_name_from_physname): Renamed.
5794         (cp_class_name_from_physname): New name of function.
5795         * cp-support.h: Ditto.
5796         * c-lang.c (c_language_defn): Change to add NULL
5797         for class_name_from_physname function pointer.
5798         (cplus_language_defn): Change to add cp_class_name_from_physname.
5799         * jv-lang.c (java_class_name_physname): New function.
5800         (java_find_last_component): New static routine.
5801         (java_language_defn): Add java_class_name_from_physname pointer.
5802         * ada-lang.c (ada_language_defn): Change to add NULL
5803         for class_name_from_physname function pointer.
5804         * f-lang.c (f_language_defn): Ditto.
5805         * m2-lang.c (m2_language_defn): Ditto.
5806         * objc-lang.c (objc_language_defn): Ditto.
5807         * p-lang.c (pascal_language_defn): Ditto.
5808         * scm-lang.c (scm_language_defn): Ditto. 
5809
5810 2004-07-06  Andrew Cagney  <cagney@gnu.org>
5811
5812         Patch from Bart Robinson.
5813         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5814         (O_LARGEFILE): Define to 0, if not defined.
5815
5816 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5817
5818         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5819         <machine/pcb.h> and "bsd-kvm.h".
5820         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5821         (m68kbsd_supply_pcb): New function.
5822         (_initialize_m68kbsd_nat): New prototype and function.
5823         * Makefile.in (m68kbsd-nat.o): Update dependencies.
5824         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5825         (LOADLIBES): New variable.
5826         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5827         (LOADLIBES): New variable.
5828
5829         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5830
5831 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5832
5833         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5834         <sys/proc.h>.
5835         (bsd_kvm_cmdlist): New variable.
5836         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5837         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5838         command and "kvm proc" command.
5839         * Makefile.in (bsd-kvm.o): Update dependencies.
5840
5841 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
5842
5843         * osabi.c: Update copyright year.
5844         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
5845         notes if EI_OSABI is set to ELFOSABI_HPUX.
5846
5847 2004-07-01  Michael Snyder  <msnyder@redhat.com>
5848
5849         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5850         that seems to have gotten whacked out of line.
5851
5852 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
5853
5854         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5855         code.
5856
5857 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5858
5859         * ada-lang.c (decode_packed_array): Minor change to comment.
5860         (ada_value_slice_ptr): New function. 
5861         (ada_value_slice): New function. 
5862         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5863         test.  Don't know why it is there.
5864         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5865         to avoid dereferencing huge arrays from which one is slicing.  
5866         (empty_array): Correct to return an array rather than
5867         a subrange value.
5868         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5869         on empty arrays (let'em use 'FIRST instead).
5870
5871 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5872
5873         Address complaints from gdb_ari.sh:
5874         
5875         * ada-exp.y: Include gdb_string.h rather than string.h.
5876         (convert_char_literal): Reformat declaration.
5877         * ada-lang.h: Include opaque struct declaration for struct frame_info.
5878         * ada-lex.l: Change use of free to xfree (the macro would do so
5879         anyway, but this is harmless).
5880         Include gdb_string.h rather than string.h.
5881         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5882         
5883         * ada-lang.c (parse): Remove K&Rism in parameter list.
5884         (is_name_suffix): Correct Linux => GNU/Linux in comment.
5885         
5886 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5887
5888         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5889         dead code.
5890
5891 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5892
5893         * alphabsd-nat.c: Update copyright year.
5894         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5895
5896 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
5897
5898         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5899         (i386_cygwin_in_solib_call_trampoline): New function.
5900         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5901         and skip_trampoline_code gdbarch methods.
5902
5903 2004-06-29  Jim Blandy  <jimb@redhat.com>
5904
5905         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5906         name actually used in the dependency lists.
5907
5908 2004-06-29  Randolph Chung  <tausq@debian.org>
5909
5910         * NEWS (New native configurations): Mention GNU/Linux/hppa.
5911
5912 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5913
5914         * win32-nat.c (child_pid_to_exec_file): New function.
5915         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5916         functionality.
5917
5918 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5919
5920         * defs.h (xstrvprintf): Declare.
5921         * utils.c (xstrvprintf): New function.
5922         (internal_vproblem, xstrprintf, xasprintf) 
5923         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5924         * serial.c (serial_printf): Ditto.
5925         * complaints.c (vcomplaint): Ditto.
5926
5927 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5928
5929         * infcmd.c (attach_command): Move call to target_terminal_inferior
5930         behind loading symbol table.
5931
5932 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5933
5934         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5935         change - add back extern deprecated_ui_loop_hook declaration.
5936
5937 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5938
5939         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5940         xstrprintf.
5941         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5942         (c_value_of_variable): Ditto.
5943         * utils.c (internal_vproblem): Ditto.
5944         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5945         * remote.c (add_packet_config_cmd): Ditto.
5946         * remote-rdp.c (rdp_set_command_line): Ditto.
5947         * regcache.c (regcache_dump): Ditto.
5948         * frv-tdep.c (new_variant, new_variant): Ditto.
5949         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5950         (fbsd_find_memory_regions): Ditto.
5951         * breakpoint.c (create_thread_event_breakpoint) 
5952         (create_breakpoints): Ditto.
5953         * aix-thread.c (aix_thread_pid_to_str): Ditto.
5954         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
5955
5956 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
5957
5958         * ada-lang.c: Re-indent file, with some massaging to help indent
5959         a bit when the result is otherwise really too ugly.
5960
5961 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5962
5963         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
5964         code_addr_p and special_addr_p to 'unsigned int'.
5965
5966 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5967
5968         * i386v4-nat.c: Update copyright year and tweak comment.
5969         (regmap): Remove trailing comma.
5970         (supply_gregset): Rename local variable i to regnum.  Call
5971         regcache_raw_supply instead of supply_register.
5972         (fill_gregset): Rename argument regno to regnum.  Call
5973         regcache_raw_collect instead of regcache_collect.
5974
5975 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5976
5977         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5978         and special_addr_p.
5979         (frame_id_build, frame_id_build_special): Update comments.
5980         (frame_id_build_wild): New prototype.
5981         * frame.c (frame_id_build, frame_id_build_special): Fill in new
5982         struct frame_id fields.
5983         (frame_id_build_wild): New function.
5984         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5985
5986 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5987
5988         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5989         hppabsd-tdep.c.
5990
5991 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5992
5993         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5994
5995 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5996
5997         * ada-lang.c: Re-indent file.
5998
5999 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
6000
6001         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
6002         (no_symtab_msg): Likewise.
6003
6004 2004-06-27  Andreas Schwab  <schwab@suse.de>
6005
6006         * source.c: Fix whitespace.
6007
6008 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6009
6010         * configure.in: Include <sys/param.h> for td_pcb test.
6011         * configure: Regenerated.
6012
6013         * i386nbsd-nat.c: New file.
6014         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
6015         i386obsd-nat.c and i386obsd-tdep.c.
6016         (i386nbsd-nat.o): New dependency.
6017         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
6018         bsd-kvm.o.
6019         (LOADLIBES): New variable.
6020         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6021         bsd-kvm.o.
6022         (LOADLIBES): New variable.
6023
6024         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6025         (LOADLIBES): New variable.
6026
6027         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6028         fetching from BSD_KVM_PADDR.  Correctly lookup address for
6029         "_thread0".
6030
6031         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6032         "bsd-kvm.h".
6033         (amd64fbsd_supply_pcb): New funcion.
6034         (_initialize_amd64fbsd_nat): Enable libkvm interface.
6035
6036 2004-06-27    <david@streamline-computing.com>
6037
6038         Partial fix for PR cli/1056.
6039         * valarith.c: Check for zero in division and remainder 
6040         evaluation.
6041
6042 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6043
6044         * i387-tdep.c: Remove excessive whitespace.
6045
6046 2004-06-26  Andrew Cagney  <cagney@gnu.org>
6047
6048         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6049         * gdb-events.h, gdb-events.c: Re-generate.
6050         * tui/tui-hooks.c (tui_install_hooks): Update.
6051         (tui_remove_hooks): Update.
6052         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6053
6054 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
6055
6056         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6057         (gregset_t, fpregset_t): Remove typedefs.
6058         (REG_OFFSET): Rename argument.
6059         (amd64bsd_r_reg_offset): Rename from reg_offset.
6060         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6061         Remove functions.
6062         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6063         of reg_offset.
6064         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6065
6066         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6067
6068         * vax-tdep.c: Tweak comment.
6069
6070         Add OpenBSD/hppa support.
6071         * NEWS (New native configurations): Mention OpenBSD/hppa.
6072         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6073         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6074         files.
6075         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6076         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6077         * configure.host: Add hppa*-*-openbsd*.
6078         * configure.tgt: Add hppa*-*-openbsd*.
6079
6080 2004-06-25  Andrew Cagney  <cagney@gnu.org>
6081
6082         * defs.h (deprecated_ui_loop_hook): Deprecated.
6083         * wince.c (child_wait): Update.
6084         * win32-nat.c (child_wait): Update.
6085         * v850ice.c (v850ice_wait): Update.
6086         * top.c (deprecated_ui_loop_hook): Update.
6087         * serial.h: Update.
6088         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
6089         (do_unix_readchar): Update.
6090         * ser-tcp.c (net_open): Update.
6091         * remote-sim.c (gdb_os_poll_quit): Update.
6092         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6093
6094 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6095
6096         * defs.h (deprecated_pre_add_symbol_hook)
6097         (deprecated_post_add_symbol_hook): Deprecated.
6098         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
6099         (symbol_file_add_with_addrs_or_offsets): Update references.
6100
6101 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6102
6103         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6104         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6105         * wince.c (ui_loop_hook): Delete extern declaration.
6106         * win32-nat.c (ui_loop_hook): Delete extern declaration..
6107         * v850ice.c (ui_loop_hook): Delete extern declaration..
6108         * ser-unix.c (ui_loop_hook): Delete extern declaration..
6109         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6110         * remote-sim.c (ui_loop_hook): Delete extern declaration..
6111         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6112         ui_loop_hook declaration.
6113
6114 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6115
6116         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6117         entry_func_highpc fields.
6118         * objfiles.c (init_entry_point_info): Do not clear
6119         entry_func_lowpc and entry_func_highpc.
6120         (objfile_relocate): Do not relocate entry_func_lowpc and
6121         entry_func_highpc.
6122         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6123         entry_func_highpc.
6124         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6125         entry_func_highpc.
6126         * blockframe.c (legacy_frame_chain_valid): Replace tests against
6127         entry_func_lowpc and entry_func_highpc with call to
6128         inside_entry_func.
6129
6130 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
6131
6132         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6133         quad-precision floating point arguments in registers.
6134
6135 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
6136
6137         From Michael Mueller <m.mueller99@kay-mueller.de>:
6138         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6139         account.
6140
6141 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
6142
6143         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6144         to -1.
6145         * breakpoint.c (bpstat_stop_status): Move check for ignoring
6146         untriggered watchpoints to a separate if clause.  Update function
6147         comment regarding STOPPED_BY_WATCHPOINT argument.
6148
6149 2004-06-22  Jim Blandy  <jimb@redhat.com>
6150
6151         * gdbarch.sh: Doc fix.
6152
6153 2004-06-21  Martin Hunt  <hunt@redhat.com>
6154         Kevin Buettner <kevinb@redhat.com>
6155
6156         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6157         * mips-tdep.h (MIPS_SP_REGNUM): Define.
6158         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6159         to set_gdbarch_sp_regnum().  Use cooked register number.
6160         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6161
6162 2004-06-21  Andrew Cagney  <cagney@gnu.org>
6163
6164         * gdbarch.sh: When the macro field is empty, do not generate a
6165         macro definition.  When the macro field is "=", generate the macro
6166         name from the upper-case function name.
6167         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6168         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6169         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6170         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6171         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6172         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6173         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6174         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6175         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6176         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6177         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6178         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6179         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6180         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6181         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6182         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6183         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6184         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6185         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6186         (DEPRECATED_USE_STRUCT_CONVENTION)
6187         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6188         (DEPRECATED_FRAME_INIT_SAVED_REGS)
6189         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6190         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6191         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6192         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6193         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6194         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6195         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6196         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6197         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6198         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6199         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6200         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6201         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6202         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6203         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6204         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6205
6206 2004-06-21  Andrew Cagney  <cagney@gnu.org>
6207
6208         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6209         macro name, and the function rather than macro value.  Only wrap
6210         macro print statements in #ifdef.  Move format logic to where it
6211         is needed.
6212         * gdbarch.c: Re-generate.
6213         
6214         * gdbarch.sh (read): Delete "print_p" and "description", add
6215         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
6216         Delete references to print_p.
6217         (TARGET_ARCHITECTURE): Delete print predicate.
6218         * gdbarch.c: Re-generate.
6219         
6220         * gdbarch.sh: Check that multi-arch methods do not provide a
6221         macro.
6222         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6223         (print_registers_info, print_float_info, print_vector_info)
6224         (adjust_breakpoint_address, remote_translate_xfer_address)
6225         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6226         (address_class_type_flags_to_name, unwind_sp): Remove the macro
6227         name from the multi-arch definition.
6228         
6229 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6230
6231         * gdbarch.sh: Sort by the function, instead of macro name.
6232         * gdbarch.c: Re-generate.
6233         
6234 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6235
6236         * gdbarch.sh: Use the function, instead of macro name in
6237         errors and the log file.
6238         (return_value): Remove stray ":" in spec.
6239
6240         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6241         * gdbarch.h, gdbarch.c: Re-generate.
6242         * Makefile.in (arch-utils.o): Update dependencies.
6243         * values.c (using_struct_return): Move code calling
6244         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6245         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6246         to legacy_return_value, simplify.
6247         * infcmd.c (print_return_value): Move code calling
6248         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6249         to legacy_return_value, simplify.
6250         * infcall.c (call_function_by_hand): Move code calling
6251         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6252         * arch-utils.c: Update copyright.  Include "gdbcore.h".
6253         (legacy_return_value): New function.
6254         * arch-utils.h: Update copyright.
6255         (legacy_return_value): Declare.
6256         
6257 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6258
6259         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6260         * gdbarch.h, gdbarch.c: Re-generate.
6261         * values.c (using_struct_return): Update call.
6262         * mcore-tdep.c: Update comment.
6263         * infcall.c (call_function_by_hand): Update comment.
6264         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6265         * arch-utils.h (always_use_struct_convention): Update.
6266         * v850-tdep.c (v850_gdbarch_init): Update.
6267         * sh64-tdep.c (sh64_gdbarch_init): Update.
6268         * sh-tdep.c (sh_gdbarch_init): Update.
6269         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6270         * mips-tdep.c (mips_gdbarch_init): Update.
6271         * mcore-tdep.c (mcore_gdbarch_init): Update.
6272         * m32r-tdep.c (m32r_gdbarch_init): Update.
6273         * ia64-tdep.c (ia64_gdbarch_init): Update.
6274         * h8300-tdep.c (h8300_gdbarch_init): Update.
6275         * frv-tdep.c (frv_gdbarch_init): Update.
6276         * cris-tdep.c (cris_gdbarch_init): Update.
6277         * arm-tdep.c (arm_gdbarch_init): Update.
6278         * alpha-tdep.c (alpha_gdbarch_init): Update.
6279
6280 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
6281
6282         * PROBLEMS: Add more specific information, and a work-around,
6283         for PR gdb/1458.
6284
6285 2004-06-18  Andrew Cagney  <cagney@gnu.org>
6286
6287         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6288         * gdbarch.h, gdbarch.c: Re-generate.
6289         * ada-lang.c (ada_finish_decode_line_1): Update.
6290         * infrun.c (handle_inferior_event): Update.
6291         * infcall.c (find_function_addr): Update.
6292         * linespec.c (minsym_found): Update.
6293         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6294         Update.
6295         * blockframe.c (legacy_frameless_look_for_prologue): Update.
6296         * cli/cli-cmds.c (disassemble_command): Update.
6297         * vax-tdep.c (vax_gdbarch_init): Update.
6298
6299 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
6300
6301         * i386-tdep.c (i386_collect_fpregset): Fix comment.
6302
6303 2004-06-17  Andrew Cagney  <cagney@gnu.org>
6304
6305         GDB 6.1.1 released from the GDB 6.1 branch.
6306         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6307         * PROBLEMS: Ditto.
6308
6309 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
6310
6311         PR gdb/1658
6312         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6313         operation as a uleb128.  Found by Michael Coulter.
6314
6315 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
6316         
6317         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6318         make it non-static.
6319         * ada-lang.h (task_control_block): declaration moved from ada-task.c
6320         to ada-lang.h; this is needed to be able to implement the kill command
6321         in multi-task mode.
6322         (task_ptid): Ditto.
6323         (task_entry): Ditto.
6324         (task_list): Ditto.
6325         (ada_build_task_list): Ditto.
6326         
6327         * ada-lang.c: Conditionalize routines and data structures related 
6328         to breakpoints, exceptions, completion, and symbol caching on 
6329         GNAT_GDB, since these are not yet used in the submitted public sources.
6330         (ada_main_name): Editorial: Move definition out of exception-related 
6331         code.
6332
6333 2004-06-15  Andrew Cagney  <cagney@gnu.org>
6334
6335         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6336         deprecated_pc_in_call_dummy.
6337
6338 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
6339
6340         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6341         bfd_get_section_size_before_reloc or _raw_size.
6342         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6343         * dwarf2read.c (dwarf2_locate_sections): Likewise.
6344         (dwarf2_read_section): Likewise.
6345         * elfread.c (elf_locate_sections): Likewise.
6346         * gcore.c (derive_heap_segment): Likewise.
6347         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6348         * remote-e7000.c (e7000_load): Likewise.
6349         * remote-m32r-sdi.c (m32r_load): Likewise.
6350         * remote-mips.c (mips_load_srec): Likewise.
6351         (pmon_load_fast): Likewise.
6352         * remote.c (compare_sections_command): Likewise.
6353         * symfile.c (add_section_size_callback): Likewise.
6354         (load_section_callback): Likewise.
6355         (pc_in_unmapped_range): Likewise.
6356         (pc_in_mapped_range): Likewise.
6357         (sections_overlap): Likewise.
6358         (list_overlays_command): Likewise.
6359         (simple_overlay_update_1): Likewise.
6360         (simple_overlay_update): Likewise.
6361         * tracepoint.c (remote_set_transparent_ranges): Likewise.
6362         * win32-nat.c (core_section_load_dll_symbols): Likewise.
6363
6364 2004-06-14  Randolph Chung  <tausq@debian.org>
6365
6366         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6367         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
6368         static.
6369         (hppa_hpux_inferior_created): New function.
6370         (hppa_hpux_init_abi): Register observer.
6371         * symfile.c (hp_cxx_exception_support_initialized)
6372         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6373         (symbol_file_add_main_1, symbol_file_clear): Likewise.
6374
6375 2004-06-14  Randolph Chung  <tausq@debian.org>
6376
6377         * MAINTAINERS (Write After Approval): Alphabetize my entry
6378         correctly.
6379
6380 2004-06-14  Andrew Cagney  <cagney@gnu.org>
6381
6382         * MAINTAINERS (testsuite): List Michael Chastain as the lead
6383         testsuite maintainer.
6384
6385 2004-06-13  Andrew Cagney  <cagney@gnu.org>
6386
6387         * infcmd.c (print_return_value): Fix logic, allow
6388         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6389
6390         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6391         defining any macros.
6392         * gdbarch.h: Re-generate.
6393
6394         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
6395         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6396         * gdbarch.h: Re-generate.
6397
6398         * values.c (generic_use_struct_convention): Don't check gcc_p.
6399
6400         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6401         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6402         * gdbarch.h, gdbarch.c: Regenerate.
6403         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
6404         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6405         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6406         deprecated_max_register_raw_size and
6407         deprecated_max_register_virtual_size.
6408         * v850-tdep.c (v850_gdbarch_init): Ditto.
6409         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6410         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6411         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6412         * cris-tdep.c (cris_gdbarch_init): Ditto.
6413
6414         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6415         * gdbarch.h, gdbarch.c: Re-generate.
6416         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6417         (m68hc11_use_struct_convention): Delete function.
6418         (m68hc11_extract_struct_value_address): Delete function.
6419         (m68hc11_return_value): New function.
6420         (m68hc11_gdbarch_init): Instead of store_return_value,
6421         extract_return_value, return_value_on_stack,
6422         deprecated_extract_struct_value_address and use_struct_convention,
6423         set return_value.
6424         * values.c (using_struct_return): Do not call
6425         RETURN_VALUE_ON_STACK.
6426         * arch-utils.h (generic_return_value_on_stack_not): Delete
6427         declaration.
6428         * arch-utils.c (generic_return_value_on_stack_not): Delete
6429         function.
6430         
6431 2004-06-12  Andrew Cagney  <cagney@gnu.org>
6432
6433         * values.c (register_value_being_returned): Delete function.
6434         * infcmd.c (legacy_return_value): Delete function.
6435         * infcall.c (call_function_by_hand): Inline
6436         "register_value_being_returned", simplify.
6437         * values.c (using_struct_return): Update comment, refer to
6438         print_return_value instead of register_value_being_returned.
6439         * infcmd.c (print_return_value): Inline calls to
6440         register_value_being_returned and legacy_return_value.  Simplify.
6441
6442 2004-06-11  Randolph Chung  <tausq@debian.org>
6443
6444         * somread.c (som_symtab_read): Exclude gcc local symbols.
6445
6446 2004-06-11  Randolph Chung  <tausq@debian.org>
6447
6448         * infrun.c (handle_inferior_event): Handle the case when a
6449         trampoline ends up in the runtime resolver, and if the trampoline
6450         has no name.  Rearrange the code so that all the trampoline
6451         processing happens before other step-out-of-range handling.
6452
6453 2004-06-11  Martin Hunt  <hunt@redhat.com>
6454
6455         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6456         has no fpu.
6457
6458 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6459
6460         * blockframe.c (legacy_inside_entry_func): Delete.
6461         (legacy_frame_chain_valid): Inline call to
6462         legacy_inside_entry_func, simplify.
6463
6464 2004-06-10  Bob Rossi  <bob@brasko.net>
6465
6466         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6467         * dwarf2read.c (partial_die_info): Add dirname field.
6468         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6469         (read_partial_die): Save away DW_AT_comp_dir.
6470         * defs.h (symtab_to_filename): Removed.
6471         * source.c (find_and_open_source): Added.
6472         (open_source_file): Just calls find_and_open_source.
6473         (symtab_to_filename): Removed.
6474         (symtab_to_fullname, psymtab_to_fullname): Added.
6475         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6476         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6477         symtab_to_filename.
6478         * symtab.h (partial_symtab): Add dirname field.
6479         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6480         (mi_cmd_file_list_exec_source_file): Call new function
6481         symtab_to_fullname to find fullname.
6482         (mi_cmd_file_list_exec_source_files): Added.
6483         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6484         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6485
6486 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6487
6488         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6489         to generic_use_struct_convention, the default value.
6490
6491         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6492         of abort.
6493
6494         * ns32k-tdep.c (ns32k_push_arguments): New function.
6495         (ns32k_gdbarch_init): Set deprecated_push_arguments.
6496         * infcall.c (call_function_by_hand): Call error instead of
6497         legacy_push_arguments.
6498         * value.h (legacy_push_arguments): Delete declaration.
6499         * valops.c (legacy_push_arguments): Delete function.
6500         (value_push): Delete function.
6501
6502 2004-06-10  Brian Ford  <ford@vss.fsi.com>
6503
6504         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6505         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
6506         info.
6507         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6508
6509 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6510
6511         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6512         * gdbarch.h, gdbarch.c: Re-generate.
6513         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6514         parameters.
6515         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6516         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6517         deprecated_pc_in_call_dummy instead of
6518         DEPRECATED_PC_IN_CALL_DUMMY.
6519         (arm_skip_prologue): Ditto.
6520         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6521         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6522         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6523         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6524         Ditto.
6525         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
6526         (sh64_init_extra_frame_info, sh64_get_saved_register) 
6527         (sh64_pop_frame): Ditto.
6528         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6529         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
6530         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6531         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
6532         (h8300_pop_frame): Ditto.
6533         * blockframe.c (legacy_inside_entry_func) 
6534         (legacy_frame_chain_valid): Ditto.
6535         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6536         to deprecated_pc_in_call_dummy.
6537         
6538 2004-06-09  Andrew Cagney  <cagney@gnu.org>
6539
6540         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6541         provide a default value.
6542         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6543         * gdbarch.h, gdbarch.c: Re-generate.
6544         * arch-utils.c (generic_convert_register_p): Rename
6545         legacy_convert_register_p
6546         (legacy_register_to_value, legacy_value_to_register): Delete
6547         functions.
6548         * arch-utils.h (generic_convert_register_p): Rename
6549         legacy_convert_register_p.
6550         (legacy_register_to_value, legacy_value_to_register): Delete
6551         declarations.
6552
6553         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6554         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6555         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6556         * gdbarch.h, gdbarch.c: Re-generate.
6557         * infcmd.c (default_print_registers_info): Simplify.
6558         * findvar.c (value_of_register): Simplify.
6559         * mi/mi-main.c (get_register): Simplify.
6560         * arch-utils.c (legacy_convert_register_p): Always return 0.
6561         (legacy_register_to_value, legacy_value_to_register): Always call
6562         internal_error.
6563
6564         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6565         #ifdef CLEAR_INSN_CACHE code.
6566         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6567         Delete #ifdef CLEAR_DEFERRED_STORES code.
6568
6569         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6570
6571         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6572         copyright.
6573         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6574
6575         * config/mips/mipsv4.mh: Delete file.
6576
6577         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6578         unreferenced macro.
6579         (hpread_adjust_stack_address): Delete declaration.
6580
6581 2004-06-08  Andrew Cagney  <cagney@gnu.org>
6582
6583         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6584         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6585         PTRACE_ATTACH / PTRACE_DETACH available call error.
6586         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6587         * infttrace.c (update_thread_state_after_attach, attach, detach):
6588         Remove #ifdef wrappers.
6589         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6590         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6591         * config/nm-bsd.h (ATTACH_DETACH): Delete.
6592         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6593         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6594         * config/nm-linux.h (ATTACH_DETACH): Delete.
6595         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6596         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6597         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6598         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6599         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6600
6601 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
6602
6603         * configure.in: Set $configdir to the right OS specific value.
6604         Use value when setting $tcldir and $tkdir.
6605         * configure: Regenerate.
6606
6607 2004-06-06  Paul Brook  <paul@codesourcery.com>
6608
6609         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6610         records.
6611
6612 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
6613
6614         * ada-lang.c (lookup_symbol_in_language): New function to allow
6615         re-use of another language's symbol lookup code.  (Placed here
6616         temporarily while Ada support is being integrated into the public
6617         tree).  
6618         (restore_language): New auxiliary function for 
6619         lookup_symbol_in_language.
6620         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6621         temporarily while Ada support is being integrated into the public
6622         tree).
6623         
6624 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
6625
6626         * Makefile.in (check//%): New.
6627
6628         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6629         (mn10300_store_return_value): Rewrite.
6630         (mn10300_type_align): New.
6631         (mn10300_use_struct_convention): Rewrite.
6632         (mn10300_return_value): New, using all of the above.
6633         (mn10300_pop_frame_regular): Add saved_regs_size.
6634         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6635
6636         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6637         regs if PC is on movm.
6638
6639 2004-06-07  Jim Blandy  <jimb@redhat.com>
6640
6641         Add native Linux support for the PowerPC E500.
6642         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6643         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6644         all architectures except the E500.
6645         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6646         #definitions.
6647         (struct gdb_evrregset_t): New type.
6648         (have_ptrace_getsetevrregs): New variable.
6649         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
6650         fetch_spe_registers): New functions.
6651         (fetch_register): Call fetch_spe_register as appropriate.
6652         Assert that we're only passed raw register numbers.
6653         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6654         Don't fetch gprs if they're pseudoregisters.
6655         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6656         store_spe_registers): New functions.
6657         (store_register): Call store_spe_register as appropriate.
6658         Assert that we're only passed raw register numbers.
6659         (store_ppc_registers): Call store_spe_registers as appropriate.
6660         Don't store gprs if they're pseudoregisters.
6661         
6662 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
6663
6664         * thread-db.c (thread_get_info_callback): Fill in the thread_info
6665         struct if one exists, even if we are dealing with a zombie thread.
6666
6667 2004-06-07  Andrew Cagney  <cagney@gnu.org>
6668
6669         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6670         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6671         Rename PC_REQUIRES_RUN_BEFORE_USE.
6672         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
6673         #ifdef.
6674
6675 2004-06-07  Randolph Chung  <tausq@debian.org>
6676
6677         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6678         unwinding after sp has been saved to the stack but before the end
6679         of the prologue, and after the fp has been modified but before it has
6680         been saved to the stack.
6681         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
6682         Remove superfluous definitions.
6683         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6684
6685 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
6686
6687         Committed by Randolph Chung.
6688         * hppa-linux-nat.c: Include the correct version of the header file
6689         depending on the kernel version.
6690
6691 2004-06-06  Randolph Chung  <tausq@debian.org>
6692
6693         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6694         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6695
6696 2004-06-06  Randolph Chung  <tausq@debian.org>
6697
6698         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
6699         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6700         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6701         * hppa-tdep.c (hppa_symbol_address): New function definition.
6702         * hppa-tdep.h (hppa_symbol_address): New function declaration.
6703
6704 2004-06-06  Randolph Chung  <tausq@debian.org>
6705
6706         * hppa-tdep.h (struct value): Forward declaration.
6707         (gdbarch_tdep): Define tdep find_global_pointer method.
6708         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6709         associated with the function we are trying to call, and write it
6710         to the gp register.
6711         (hppa32_convert_from_funct_ptr_addr): New function.
6712         (hppa_find_global_pointer): New function.
6713         (hppa_gdbarch_init): Set default find_global_pointer method; set
6714         convert_from_func_ptr_addr method.
6715         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6716         (hppa_linux_init_abi): Set find_global_pointer method.
6717         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6718
6719 2004-06-06  Randolph Chung  <tausq@debian.org>
6720
6721         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6722         to struct value *function.
6723         * gdbarch.c: Regenerate.
6724         * gdbarch.h: Likewise.
6725         * infcall.c (call_function_by_hand): Pass entire function value
6726         to push_dummy_call.
6727
6728         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6729         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6730         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6731         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6732         * arm-tdep.c (arm_push_dummy_call): Likewise.
6733         * avr-tdep.c (avr_push_dummy_call): Likewise.
6734         * cris-tdep.c (cris_push_dummy_call): Likewise.
6735         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6736         * frv-tdep.c (frv_push_dummy_call): Likewise.
6737         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6738         * hppa-tdep.c (hppa32_push_dummy_call)
6739         (hppa64_push_dummy_call): Likewise.
6740         * i386-tdep.c (i386_push_dummy_call): Likewise.
6741         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6742         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6743         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6744         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6745         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6746         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6747         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6748         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6749         (ppc64_sysv_abi_push_dummy_call): Likewise.
6750         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6751         (ppc64_sysv_abi_push_dummy_call): Likewise.
6752         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6753         * s390-tdep.c (s390_push_dummy_call): Likewise.
6754         * sh-tdep.c (sh_push_dummy_call_fpu)
6755         (sh_push_dummy_call_nofpu): Likewise.
6756         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6757         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6758         * vax-tdep.c (vax_push_dummy_call): Likewise.
6759
6760 2004-06-04  Jim Blandy  <jimb@redhat.com>
6761
6762         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6763         gdbarch argument to register_size.
6764
6765         * rs6000-tdep.c (rs6000_store_return_value): Use
6766         regcache_cooked_write_part instead of
6767         deprecated_write_register_bytes.
6768         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6769         not gdbarch_deprecated_store_return_value.
6770
6771         * ppc-linux-nat.c (store_register, fetch_register): Remove
6772         incorrect assertions.  Simplify and generalize handling of
6773         transfers whose sizes are not multiples of, or less than, sizeof
6774         (PTRACE_XFER_TYPE).
6775
6776 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6777
6778         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6779         as a new thread event.
6780         * thread-db.c (thread_get_info_callback): If the thread is a
6781         zombie, return TD_THR_ZOMBIE.
6782         (thread_from_lwp): If thread_get_info_callback returns
6783         TD_THR_ZOMBIE, check if the thread is still on the thread list
6784         and return a -1 ptid if not found.
6785         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6786         change the status to TARGET_WAITKIND_SPURIOUS.
6787
6788 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
6789
6790         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6791         double values in little endian mode.
6792
6793 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
6794
6795         Committed by Andrew Cagney.
6796         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6797         after last enum constant to avoid error from IBM C
6798         compiler.
6799
6800 2004-06-02  Jim Blandy  <jimb@redhat.com>
6801
6802         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6803         to 'message', and make it local to the lone block that uses it.
6804
6805         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6806
6807 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
6808
6809         * ada-exp.y: Update copyright notice.
6810         Include block.h.
6811         
6812         Replace REGNAME, LAST, INTERNAL_VARIABLE with
6813         SPECIAL_VARIABLE and unify the treatment of these cases.
6814
6815         (write_attribute_call0): Remove.
6816         (write_attribute_call1): Remove.
6817         (write_attribute_calln): Remove.
6818         (save_qualifier): Add missing semicolon.
6819
6820         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
6821         temporarily disabled to allow compilation with FSF head version.
6822
6823         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
6824         use individual operators (OP_*) for all attributes.
6825         (exp syntax): Use write_int.
6826         Handle STRING literals with OP_STRING.
6827         (variable syntax): Add limit parameter to calls to 
6828         write_object_renaming.  
6829
6830         (temp_parse_space): New definition to hold entities that need
6831         only live until the next call to ada_parse.
6832         (string_to_operator): Rename fields of ada_opname_table entries.
6833
6834         (write_var_from_sym): Record block.
6835         (write_var_from_name): Minor reformatting.
6836         Make sure saved name is properly encoded in the case of multiple 
6837         matches, and set its language to Ada.
6838         Update comment.
6839         Modify to indicate unresolved name as symbol in the UNRESOLVED 
6840         namespace, allocated in temp_parse_space.
6841         (write_int): New function.
6842
6843         (write_object_renaming): Add max_depth parameter to limit
6844         chains of object renamings.
6845         Handle case where root of renaming expression is itself a renaming.
6846         Use temp_parse_space for temporary name buffer.
6847         Handle renamings to dereferenced pointers (___XEXA suffices).
6848         
6849         (ada_parse, yyerror, string_to_operator, 
6850         write_var_from_sym, write_var_from_name, write_attribute_call0, 
6851         write_attribute_call1, write_attribute_calln, 
6852         write_object_renaming): Protoize.
6853
6854         (_initialize_ada_exp): New function.
6855         
6856         * ada-lang.c: Update copyright notice.
6857         General terminology change to conform to GNAT compiler usage:
6858         mangle => encode, demangle => decode
6859         Include gdb_obstack.h.
6860         Include gdb_regex.h
6861         Include frame.h
6862         Include hashtab.h
6863         Include completer.h
6864         Include gdb_stat.h
6865         Include block.h
6866         Include infcall.h
6867         
6868         (ADA_RETAIN_DOTS): Make sure this is defined.
6869         (TRUNCATION_TOWARDS_ZERO): Define.
6870         (struct string_vector): Define.
6871         (unresolved_names): Remove definition.
6872         (xnew_string_vector): New function.
6873         (string_vector_append): New function.
6874         (extract_string): Make static.
6875         (ada_unqualified_name): New function.
6876         (add_angle_brackets): New function.
6877         (function_name_from_pc): New function.
6878         (place_on_stack): Rename to ensure_lval.
6879
6880         (ensure_lval): Renamed from place_on_stack.
6881         Make identity on lvals.
6882         Update comment.
6883         (is_nonfunction): New interface.
6884         Only symbols in LOC_CONST class can be enumerals.
6885         (fill_in_ada_prototype): Remove; now independent of language.
6886         (add_defn_to_vec): Add obstack and symtab arguments.
6887         Use obstack to hold collected definitions.
6888         (num_defns_collected): New function.
6889         (defns_collected): New function.
6890         (ada_resolve_subexp): Rename to resolve_subexp.
6891         (resolve_subexp): Renamed from ada_resolve_subexp.
6892         (ada_op_name): Return non-const result.
6893         (ada_decoded_op_name): Renamed from ada_op_name, now used for
6894         other purposes.
6895
6896         (to_fixed_array_type): Add declaration.
6897         (coerce_unspec_val_to_type): Remove offset parameter.
6898         (find_sal_from_funcs_and_line): New interface.
6899         (find_line_in_linetable): Ditto.
6900
6901         (all_sals_for_line): Rename to ada_sals_for_line and make
6902         global.
6903         Add new parameter. When set, do not ask the user to choose the 
6904         instance, but use the first one found instead.
6905         Use given line number in returned sals.
6906         Fix comment. 
6907         Skip the prologue if funfirstline is set.
6908         Correct for memory leak when 0 lines found.
6909
6910         (value_pos_atr): Use pos_atr.
6911         (pos_atr): New function.
6912         (standard_lookup): Add block parameter.
6913
6914         (makeTimeStart): Remove declaration and uses.
6915         (makeTimeStop): Remove declaration and uses.
6916
6917         (ada_completer_word_break_characters): Allow for VMS.
6918         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6919         (raise_sym_name): New constant.
6920         (raise_unhandled_sym_name): New constant.
6921         (raise_assert_sym_name): New constant.
6922         (process_raise_exception_name): New constant.
6923         (longest_exception_template): New constant.
6924         (warning_limit): New variable to limit warnings during expression
6925         evaluation.
6926         (warnings_issued): New variable to keep track of warnings issued.
6927         (known_runtime_file_name_patterns): New constant.
6928         (known_auxiliary_function_name_patterns): New constant.
6929         (symbol_list_obstack): New variable.
6930         
6931         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6932         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6933         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6934         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
6935         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
6936         ada_variant_discrim_name, field_alignment, dynamic_template_type,
6937         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
6938         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
6939         and strcmp. 
6940
6941         (ada_get_field_index): New function.
6942         (lim_warning): New function.
6943         (ada_translate_error_message): New function.
6944         (MAX_OF_SIZE): New function.
6945         (MIN_OF_SIZE): New function.
6946         (UMAX_OF_SIZE): New function.
6947         (UMIN_OF_SIZE): New function.
6948         (discrete_type_high_bound): New function.
6949         (discrete_type_low_bound): New function.
6950         (base_type): New function.
6951         (do_command): Remove.
6952         
6953         (ada_update_initial_language): Use language_ada, not language_unknown.
6954         (ada_encode): Renamed from ada_mangle.
6955         Obey ADA_RETAIN_DOTS.
6956         (ada_decode): Renamed from ada_demangle.
6957         Update coding conventions.
6958         (decoded_names_store): New hash table.
6959         (ada_decode_symbol): New function.
6960         (ada_la_decode): New function.
6961         
6962         (modify_general_field): Correct computations of offset and bit 
6963         position.
6964         (desc_base_type): Handle ref types, too.
6965         (ada_is_direct_array_type): New function.
6966
6967         (ada_is_simple_array): Rename to ada_is_simple_array_type.
6968         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6969         (ada_is_bogus_array_descriptor,ada_type_of_array,
6970         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6971         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
6972         ada_is_array_descriptor_type.
6973         
6974         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6975         (ada_is_packed_array_type): Handle pointers or 
6976         references to packed arrays as well.
6977         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6978         (decode_packed_array_type): Search for the packed array type 
6979         symbol in the currently selected block and associated 
6980         superblocks too.
6981         Use lookup_symbol again.
6982
6983         (decode_packed_array): Handle pointers and references.
6984         Update call to coerce_unspec_val_to_type.
6985         (decode_packed_array_type,value_subscript_packed): Limit warnings.
6986         (ada_value_primitive_packed_val): Improve comment.
6987         
6988         (ada_index_type): Substitute int type for "undefined".
6989         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6990         ada_array_langth, ada_is_string_type): Use renamed 
6991         ada_is_simple_array_type.
6992         (empty_array): New function.
6993
6994         (ada_resolve):  Rename to resolve.
6995         (resolve): Make static.
6996         Call renamed resolve_subexp.
6997         Update comment.
6998         (ada_resolve_subexp): Rename to resolve_subexp.
6999         (resolve_subexp): Update comment.
7000         Decomment disabled code.
7001         Add LOC_COMPUTED* cases.
7002         Modify to use temporary struct symbols (marked as being in 
7003         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
7004         OP_UNRESOLVED_VALUE.
7005         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
7006         Add OP_STRING case.
7007         Remove OP_ARRAY.
7008         Use SYMBOL_PRINT_NAME instead of ada_demangle.
7009         Use new ada_lookup_symbol_list interface.
7010         Use new ada_resolve_function interface.
7011         Remove OP_TYPE case.
7012
7013         (ada_args_match): Idiot proof against null actuals.
7014         Use intermediate variables to clarify.
7015         (ada_resolve_function): Update comment and interface.
7016         (mangled_ordered_before): Rename to encoded_ordered_before and
7017         update comment.
7018         (sort_choices): Update comment and interface.
7019         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7020         (user_select_syms): New interface.
7021         Use new sort_choices interface.
7022         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7023         (possible_user_operator_p): Idiot-proof against null values.
7024         (ada_simple_renamed_entity): Don't make cleanup; rely on 
7025         caller to free result string.
7026         Remove const from return type.
7027         (make_array_descriptor): Rename uses of place_on_stack to 
7028         ensure_lval.
7029         Make sure that arrays are on stack.
7030         
7031         (HASH_SIZE): Define.
7032         (struct cache_entry): Define.
7033         (cache_space): Define.
7034         (cache): Define.
7035         (clear_ada_sym_cache): New function.
7036         (find_entry): New function.
7037         (lookup_cached_symbol): New function.
7038         (defn_vector_size): Define.
7039         (cache_symbol): New function.
7040         (defn_symbols): Remove.
7041         
7042         (standard_lookup): Use lookup_symbol_in_language to get effect of
7043         C lookup.
7044         Cache results.
7045         
7046         (symbol_completion_match): New function.
7047         (symbol_completion_add): New function.
7048         (ada_make_symbol_completion_list): New function.
7049
7050         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
7051         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
7052         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
7053         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7054         
7055         (ada_lookup_simple_minsym): New function.
7056         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7057
7058         (add_symbols_from_enclosing_procs): New interface.
7059         Conditionalize more helpfully.
7060         Don't bother if program isn't running.
7061         Use new interface to get_frame_block.
7062         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7063         
7064         (remove_extra_symbols): New interface.
7065         (xget_renaming_scope): New function.
7066         (is_package_name): New function.
7067         (renaming_is_visible): New function.
7068         (remove_out_of_scope_renamings): New function.
7069
7070         (ada_lookup_symbol_list): New interface.
7071         Properly reinitialize the symbol list obstack.
7072         Don't call add_symbols_from_enclosing_procs if we start from a
7073         static or global block.
7074         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
7075         add_symbols_from_enclosing_procs.
7076         Add symtab data to cached entries.
7077         Handle symbols prefixed with
7078         "standard__" specially; strip prefix and don't look in local symbols.
7079         Do not include out of scope renaming symbols in list of 
7080         symbols returned.
7081         Add const to block parameter.
7082         Move check for non-local, non-global symbols earlier.  
7083         Remove timing stuff.
7084         (ada_lookup_symbol): New interface.
7085         Find symtab as well.
7086         (ada_lookup_symbol_nonlocal): New function.
7087
7088         (is_name_suffix): Enhance suffix detection to recognize
7089         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7090         (is_dot_digits_suffix): New function.
7091         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7092         
7093         (ada_add_block_symbols): New interface.  Use obstack to return results
7094         in a vector of struct ada_symbol_infos.  Add symtab argument.
7095         Use new interface to add_defn_to_vec.
7096         Remove calls to fill_in_ada_prototype.
7097         Use BLOCK_BUCKETS, BLOCK_BUCKET.
7098         
7099         (ada_finish_decode_line_1): Add const qualification to local to fix
7100         warning.
7101         Start looking in static block for functions to avoid attempts 
7102         to search frame chain for up-level variables.
7103         Adapt to new ada_sals_for_line interface.
7104         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7105         Handle quoting of the function name inside the spec string.
7106         Skip prologue when funfirstline is set and update the 
7107         function documentation to that effect.
7108
7109         (debug_print_lines, debug_print_block, debug_print_blocks, 
7110         debug_print_symtab): Remove.
7111
7112         (ada_main_name): New function.  
7113         (ada_exception_breakpoint_type): New function.
7114         (is_known_support_routine): New function.
7115         (ada_find_printable_frame): Renamed from find_printable_frame and made
7116         global.
7117         Remove level parameter.
7118         Use new interface to select_frame.
7119
7120         (begin_command): Remove.
7121         (ada_adjust_exception_stop): New function.
7122         (ada_print_exception_stop): New function.
7123         (exception_name_from_cond): New function.
7124         (ada_report_exception_break): Replace disabled code with 
7125         conditionalization on GNAT_GDB.
7126         Get the exception name from the condition string.
7127         Remove and move functionality into new functions 
7128         ada_print_exception_breakpoint_task and 
7129         ada_print_exception_breakpoint_nontask.
7130         (error_breakpoint_runtime_sym_not_found): New function.
7131         (is_runtime_sym_defined): New function.
7132         (ada_breakpoint_rewrite): Uncomment suppressed code.
7133         Use symbolic error-message and runtime-symbol names.
7134         Surround runtime symbol names in quotes.
7135         Allow non-specific breakpoints on exceptions and assertions before
7136         program starts.
7137         
7138         (ada_is_tagged_type): Add parameter.
7139         (ada_is_tag_type): New function.
7140         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7141         (ada_variant_discrim_type): Ditto.
7142         (value_tag_from_contents_and_address): New function.
7143         (type_from_tag): New function.
7144         (struct tag_args): New structure used to communicate with
7145         ada_tag_name_1.
7146         (ada_tag_name_1): New function.
7147         (ada_tag_name): New function.
7148
7149         (ada_scan_number): Update comment.
7150         (find_struct_field): New function.
7151         (ada_search_struct_field): Make static.
7152         (ada_value_struct_elt): New version that returns references when
7153         given pointers or references to structs.
7154         (ada_lookup_struct_elt_type): Add 'refok' parameter.
7155         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7156         interface.
7157         (ada_value_ind): Use new ada_to_fixed_value interface.
7158         (ada_coerce_ref): Ditto.
7159         (field_offset): Remove.
7160
7161         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7162         (ada_find_renaming_symbol): New function.
7163         (ada_prefer_type): Prefer named types over unnamed ones.
7164         (variant_field_index): New function.
7165         (contains_variant_part): Removed: subsumed by variant_field_index.
7166         (ada_template_to_fixed_record_type): New function, mostly from
7167         template_to_fixed_record_type.
7168         (template_to_fixed_record_type): 
7169         Do not scan the type fields beyond the last one; prevents a 
7170         potential SEGV.
7171         Handle case where variant field is listed BEFORE discriminant it 
7172         depends on.
7173         Fix calculation of record length when bit length is 
7174         not evenly divisible by char length.
7175         Move code to ada_template_to_fixed_record_type and call it.
7176
7177         (template_to_static_fixed_type): Revise comment.  
7178         Modify to work on ordinary record types as well as templates, 
7179         so as to handle fields that use ___XVE or ___XVU encodings. 
7180         (to_record_with_fixed_variant_part): Fill out comment.
7181         Initialize C++ stuff in right type.
7182         Allow case where DVAL is null.
7183         Handle case where variant field is not last.
7184         Fix typo concerning record length.
7185         (to_fixed_record_type): Decomment disabled code.
7186         (to_fixed_record_type): Use variant_field_index instead of 
7187         contains_variant_part.
7188         (to_fixed_variant_branch_type): Ditto.
7189         (to_fixed_array_type): Decomment disabled code.
7190         (ada_to_fixed_type): Convert tagged types to the specific type.
7191         Deactivate the size-check for array types in order to avoid 
7192         some false size alarms.
7193         (to_static_fixed_type): Decomment disabled code.
7194         Modify to call template_to_static_fixed_type
7195         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7196         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7197         Remove valaddr argument, as it is never really used.
7198         (ada_to_fixed_value): Change interface to act on single struct value*
7199         operand.
7200         (adjust_pc_past_prologue): New function.
7201         (ada_attribute_name): Modify to take enum exp_opcode argument.
7202                 
7203         (ada_enum_name): Recognize new homonym-distinguishing convention.
7204         Adjust local variable's type to remove compiler warning.
7205         Fix a small problem in the part that unqualifies the enumeration name.
7206         (ada_value_binop): New function.
7207         (ada_value_equal): New function.
7208
7209         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7210         Don't give error message when not doing normal evaluation 
7211         and a tagged type doesn't seem to contain a structure member.
7212         Give error message for packed arrays.
7213         For indexing arrays, handle pointers to packed arrays correctly.
7214         Handle case of 'first and 'last attributes of bare integral type 
7215         without encoded subtype info.  
7216         Remove some unnecessary casts.
7217         Fix uninitialized value of type in computing 'first, 'last, or 'length
7218         of array object.  
7219         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7220         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7221         calls.
7222         Attributes are now exp_opcode values.
7223         Correct treatment of 'modulus.
7224         Better error message for taking 'length of wrong kind of type; 
7225         improve comment.
7226         Change EVAL_NORMAL to noside for consistency.
7227         Use ada_value_binop for DIV, MOD, REM.
7228         Make special case out of array of length 0, since an argument 
7229         of 0 upsets some platforms' malloc.
7230         Use OP_STRING instead of OP_ARRAY.
7231         For slice, add check that we have an array type before extracting 
7232         a slice out of it.  Avoids a SEGV.
7233         When evaluating an array slice, if the array type is a reference to 
7234         an aligner type, then replace the aligner type by the actual type.
7235         Decomment disabled code.
7236         Remove some dead code.
7237         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
7238         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7239         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
7240         and UNOP_MBR to UNOP_IN_RANGE.
7241         If an array type has a parallel ___XVE type, then use it.
7242         Turn arrays into pointers for lvalue arrays.
7243         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7244         bounds error and handle 0-length slices.
7245         Use lim_warning.
7246         When selecting fields, apply ada_to_fixed_value (because the fields 
7247         might have ___XVU or ___XVE encodings even if not dynamic.)
7248         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7249         (ada_is_system_address_type): New function.
7250
7251         (get_var_value): Use new interface to ada_lookup_symbol_list.
7252         (get_int_var_value): New interface.
7253         (to_fixed_range_type): Allow unknown bound, with warning.
7254         (ada_is_modular_type): Decomment disabled code.
7255         (ADA_OPERATORS): New definition.
7256         (ada_operator_length): New function.
7257         (ada_expr_op_name): New function.
7258         (ada_forward_operator_length): New function.
7259         (ada_dump_subexp_body): New function.
7260         (ada_print_subexp): New function.
7261         (ada_exp_descriptor): New constant.
7262         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
7263         (ada_language_defn): Add ada_exp_descriptor entry.
7264         Change ada_parse => parse.
7265         Add post-parser entry.
7266         Use ada-specific non-local symbol lookup.
7267         Don't use C-style arrays. 
7268         String lower-bound is 1.
7269         Decomment disabled code.        
7270         (parse): New function.
7271         New fields ada_translate_error_message, ada_lookup_symbol, 
7272         ada_lookup_minimal_symbol.
7273         
7274         * ada-lang.h: Update copyright dates.
7275         Replace the mangle/demangle terminology throughout by the
7276         more appropriate encode/decode one. 
7277         Include breakpoint.h.
7278         Forward declare struct partial_symbol, struct block.
7279         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7280         (EXTRACT_ADDRESS): Remove.
7281         (EXTRACT_INT): Remove.
7282         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7283         (MAX_ENCLOSING_FRAME_LEVELS): Define.
7284         (MAX_RENAMING_CHAIN_LENGTH): Define.
7285         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7286
7287         (enum task_states): Remove.
7288         ada_task_states: Remove.
7289         (fat_string): Remove.
7290         (struct entry_call): Remove.
7291         (struct task_fields): Remove.
7292         (struct task_entry): Remove.
7293
7294         (struct ada_symbol_info): Define.
7295         (enum ada_attribute): Remove.
7296         (enum ada_operator): Define.
7297         
7298         (ada_get_field_index): Declare.
7299         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7300         (ada_is_simple_array): Rename to ada_is_simple_array_type.
7301         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7302         (ada_lookup_symbol_list): New interface.
7303         (ada_decode_symbol): Declare.
7304         (ada_decode): Declare.
7305         (ada_lookup_symbol): New interface.
7306         (ada_update_initial_language): Declare.
7307         (ada_lookup_simple_minsym): Declare.
7308         (user_select_syms): New interface.
7309         (ada_sals_for_line): Declare.
7310         (ada_is_tagged_type): New interface.
7311         (ada_tag_name): Declare.
7312         (ada_lookup_struct_elt_type): Remove declaration.
7313         (ada_search_struct_field): Remove declaration.
7314         (ada_attribute_name): New interface.
7315         (ada_is_system_address_type): Declare.
7316         (ada_to_fixed_value): Remove declaration.
7317         (ada_template_to_fixed_record_type_1): Declare.
7318         (get_int_var_value): New interface.
7319         (ada_find_any_symbol): Declare.
7320         (ada_find_renaming_symbol): Declare.
7321         (ada_mangle): Rename to ada_encode.
7322         (ada_simple_renamed_entity): Remove const.
7323         (ada_main_name): Declare.
7324         (get_current_task): Rename to ada_get_current_task.
7325         (get_entry_number): Remove declaration.
7326         (ada_report_exception_break): Remove declaration.
7327         (ada_print_exception_breakpoint_nontask): Declare.
7328         (ada_print_exception_breakpoint_task): Declare.
7329         (ada_find_printable_frame): Declare.
7330
7331         * ada-lex.l: Update copyright notices.
7332         Use xmalloc and xfree instead of malloc and free.
7333         Use new interface to name_lookup.
7334         Use new interface to 
7335         ada_mangle=>ada_encode.
7336         Redo handling of '$...' variable to parallel current treatment 
7337         in c-exp.y.  
7338         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7339         digit_to_int, strtoulst, processInt, processReal, processId, 
7340         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7341         yywrap): Protoize.
7342         
7343         (processInt): Use cast to remove harmless warning.
7344         (processReal): Modify to get rid of compiler warning on scan formats.
7345
7346         (processId): Replace xmalloc with obstack_alloc for name and remove
7347         call to ada_name_string_cleanup.
7348         Remove obsolete disabled code.
7349         (name_lookup): Ditto. 
7350         New interface.
7351         Use obsavestring on temp_parse_space instead of savestring 
7352         on name, and remove call to ada_name_string_cleanup.  
7353         Free string returned from ada_simple_renamed_entity.
7354         Use new interface to ada_lookup_symbol_list.
7355         Decomment disabled code.
7356         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
7357         not types.
7358         When a type name lookup succeeds as a result of 
7359         lookup_primitive_typename, check for regular type entry that has not 
7360         yet been read in.
7361         Limit length of chain of renamed symbols we are willing to follow.  
7362         Do not break names beginning with "standard__" into segments.  
7363         (block_lookup): Use new interface to ada_lookup_symbol_list.
7364         
7365         * ada-typeprint.c: Update copyright notice.
7366         (demangled_type_name): Rename to decoded_type_name.
7367         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7368         (print_range_bound):  Correct handling of negative
7369         bounds that make the index type looked unsigned under STABS.  
7370         (print_dynamic_range_bound): Use new interface to get_int_var_value.
7371         (print_range_type_named):  Use the builtin int type if no type 
7372         corresponding to the given type name could be found.
7373         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7374         Add some bullet-proofing.
7375         (print_variant_clauses): Allow for variant branches with ___XVU 
7376         encodings that are not dynamic fields.  
7377         Use new interface to ada_is_tagged_type.
7378         (print_record_type): Allow for fields with ___XVE encodings that 
7379         are not dynamic fields. 
7380         Use new interface to ada_is_tagged_type.
7381         (ada_print_type): ada_is_array_descriptor => 
7382         ada_is_array_descriptor_type.
7383
7384         * ada-valprint.c: Update copyright notice.
7385         Include gdb_string.h
7386         Include infcall.h
7387         (ui_memcpy): New function.
7388         (ada_print_floating): New function.
7389         (ada_print_str): Order arguments correctly.
7390         Correct handling of empty arrays and arrays of 0-length items. 
7391         ada_is_array_descriptor => ada_is_array_descriptor_type 
7392         Print values of type System.Address in hexadecimal format.
7393         Use ada_print_floating to print floating-point numbers in Ada format.
7394         Print class tag values with type names.  
7395         No longer print the address of reference values. Avoids 
7396         a potential confusion.  
7397         (ada_value_print): Stop printing the object type for reference
7398         values, but preserve that behavior for access types. Avoids
7399         a potential confusion.
7400         Simplify one conditional expression, as the first part is now
7401         necessarily true.
7402         ada_is_array_descriptor => ada_is_array_descriptor_type 
7403         Add check for arrays for null records, and print them by hand.
7404         
7405 2004-06-01  Jim Blandy  <jimb@redhat.com>
7406
7407         * ppc-tdep.h: Delete unused 'regoff' member.
7408         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7409
7410 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
7411
7412         Fix PR symtab/1661.
7413         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7414         (hpread_read_struct_type): Likewise.
7415
7416 2004-06-01  Andrew Cagney  <cagney@gnu.org>
7417
7418         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7419         instead of xasprintf.
7420         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
7421         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
7422         (mi_cmd_data_list_register_names) 
7423         (mi_cmd_data_list_changed_registers) 
7424         (mi_cmd_data_list_register_values) 
7425         (get_register, mi_cmd_data_write_register_values) 
7426         (mi_cmd_data_write_register_values) 
7427         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
7428         (mi_cmd_target_download, mi_cmd_target_select) 
7429         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
7430         (mi_execute_cli_command, mi_execute_async_cli_command) 
7431         (mi_execute_async_cli_command): Ditto.
7432         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7433         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7434
7435         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7436         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7437         error_last_message instead of mi_error_last_message.
7438         * mi/mi-main.c (mi_error_last_message): Delete function.
7439
7440         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7441         "invalid number of columns" error.  Delete redundant "out of
7442         memory" check.
7443
7444 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
7445
7446         * i386bsd-nat.c: Don't include <sys/procfs.h>.
7447         (gregset_t, fpregset_t): Remove typedefs.
7448         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7449         (REG_OFFSET): Rename argument.
7450         (i386bsd_r_reg_offset): Rename from reg_offset.
7451         (REG_ADDR): Remove macro.
7452         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7453         functions.
7454         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7455         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7456         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
7457         instead of supply_gregset.
7458         (store_inferior_registers): Use `struct reg' and `struct fpreg'
7459         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
7460         instead of fill_gregset.
7461         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7462
7463         * i386bsd-nat.c: Don't include "gregset.h".
7464         (supply_gregset, fill_gregset): Make static.
7465         (supply_fpregset, fill_fpregset): Remove.
7466         * Makefile.in (i386bsd-nat.o): Update dependencies.
7467
7468 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
7469
7470         * fbsd-proc.c: Include "regcache.h", "regset.h" and
7471         "gdb_assert.h".  Con't include "gregset.h".
7472         (fbsd_make_corefile_notes): Use regset-based core file support
7473         instead off fill_gregset and fill_fpregset.
7474         * Makefile.in (fbsd-proc.o): Update dependencies.
7475
7476         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7477         instructions.
7478         (m88k_frame_prev_register): Simplify code a bit.
7479
7480         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7481         (amd64_collect_fpregset): New function.
7482         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7483
7484         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7485
7486         * i386-tdep.c (i386_supply_gregset): Adjust comment.
7487         (i386_collect_gregset): New function.
7488         (i386_supply_fpregset): Adjust comment.
7489         (i386_collect_fpregset): New function.
7490         (i386_regset_from_core_section): Use i386_collect_gregset and
7491         i386_collect_fpregset.
7492
7493         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7494         handle VALUEP being null.
7495
7496         * regset.h (collect_regset_ftype): Unconstify fourth argument.
7497
7498 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
7499
7500         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
7501
7502         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7503         assembler in OpenBSD 3.5-current.
7504         (amd64obsd_sigcontext_addr): Likewise.
7505
7506 2004-05-28  Jim Blandy  <jimb@redhat.com>
7507
7508         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7509         register set, so our regcache isn't declared "legacy" and our E500
7510         pseudoregister read and write functions aren't ignored.
7511         (rs6000_register_byte, rs6000_register_raw_size,
7512         rs6000_register_virtual_type, rs6000_register_convertible,
7513         rs6000_register_convert_to_virtual,
7514         rs6000_register_convert_to_raw): Deleted.
7515         (rs6000_register_type, rs6000_convert_register_p,
7516         rs6000_register_to_value, rs6000_value_to_register): New
7517         functions.
7518         (rs6000_gdbarch_init): Don't register
7519         gdbarch_deprecated_register_size,
7520         gdbarch_deprecated_register_bytes,
7521         gdbarch_deprecated_register_byte,
7522         gdbarch_deprecated_register_raw_size,
7523         gdbarch_deprecated_register_virtual_type,
7524         gdbarch_deprecated_register_convertible,
7525         gdbarch_deprecated_register_convert_to_virtual, or
7526         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
7527         register gdbarch_register_type, gdbarch_convert_register_p,
7528         gdbarch_register_to_value, and gdbarch_value_to_register methods.
7529
7530 2004-05-26  Jim Blandy  <jimb@redhat.com>
7531
7532         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7533         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7534         functions, updated to match the register numberings used in GCC.
7535         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7536         rs6000_dwarf2_reg_to_regnum as register number conversions
7537         functions for STABS and Dwarf2.
7538
7539 2004-05-26  Randolph Chung  <tausq@debian.org>
7540
7541         * infttrace.h (target_waitkind): Forward declare type instead of pulling
7542         in header file.
7543
7544 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
7545
7546         * NEWS: Document new "start" command.
7547
7548 2004-05-25  Randolph Chung  <tausq@debian.org>
7549
7550         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7551         hppa-linux.
7552
7553 2004-05-25  Randolph Chung  <tausq@debian.org>
7554
7555         * hppa-hpux-tdep.c (offsetof): Define.
7556         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7557         (hppa32_hpux_frame_base_before_sigtramp)
7558         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7559         (hppa64_hpux_frame_saved_pc_in_sigtramp)
7560         (hppa64_hpux_frame_base_before_sigtramp)
7561         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
7562         functions.
7563         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7564         (hppa_hpux_sigtramp_frame_unwind_cache)
7565         (hppa_hpux_sigtramp_frame_this_id)
7566         (hppa_hpux_sigtramp_frame_prev_register)
7567         (hppa_hpux_sigtramp_frame_unwind)
7568         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7569         (hppa_hpux_init_abi): Register sigtramp unwinder.
7570         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7571
7572 2004-05-25  Randolph Chung  <tausq@debian.org>
7573
7574         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7575         and multiple stack unwinds.
7576         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7577
7578 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7579
7580         * symfile.h (symbol_file_add_from_memory): Delete declaration.
7581         * symfile-mem.h: Delete file.
7582         * symfile-mem.c: Do not include "symfile-mem.h".
7583         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7584         "struct bfd_section".  When an error do not bother returning NULL.
7585         (add_symbol_file_from_memory_command): Use "struct bfd" and
7586         "struct bfd_section".
7587         * Makefile.in (symfile_mem_h): Delete.
7588         (symfile-mem.o): Update dependencies.
7589
7590 2004-05-25  Nick Roberts  <nickrob@gnu.org>
7591
7592         * gdb-mi.el: New file.
7593
7594 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7595
7596         * inftarg.c: Include "observer.h".
7597         (child_attach, child_create_inferior): Notify inferior_created.
7598         * corelow.c: Include "observer.h".
7599         (core_open): Notify inferior_created.
7600         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7601
7602 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7603
7604         * target.h (struct target_ops): Add from_tty to
7605         to_create_inferior.
7606         (target_create_inferior, find_default_create_inferior): Update.
7607         * infcmd.c (run_command): Update.
7608         * wince.c (child_create_inferior): Update.
7609         * win32-nat.c (child_create_inferior): Update.
7610         * uw-thread.c (uw_thread_create_inferior): Update.
7611         * thread-db.c (thread_db_create_inferior): Update.
7612         * target.c (debug_to_create_inferior) 
7613         (find_default_create_inferior): Update.
7614         (maybe_kill_then_create_inferior): Update.
7615         * sol-thread.c (sol_thread_create_inferior): Update.
7616         * remote.c (extended_remote_async_create_inferior) 
7617         (extended_remote_create_inferior): Update.
7618         * remote-vx.c (vx_create_inferior): Update.
7619         * remote-st.c (st2000_create_inferior): Update.
7620         * remote-sim.c (gdbsim_create_inferior): Update.
7621         * remote-sds.c (sds_create_inferior): Update.
7622         * remote-rdp.c (remote_rdp_create_inferior): Update.
7623         * remote-rdi.c (arm_rdi_create_inferior): Update.
7624         * remote-m32r-sdi.c (m32r_create_inferior): Update.
7625         * remote-e7000.c (e7000_create_inferior): Update.
7626         * procfs.c (procfs_create_inferior): Update.
7627         * ocd.c (ocd_create_inferior): Update.
7628         * ocd.h (ocd_create_inferior): Update.
7629         * nto-procfs.c (procfs_create_inferior): Update.
7630         * monitor.c (monitor_create_inferior): Update.
7631         * lin-lwp.c (lin_lwp_create_inferior): Update.
7632         * inftarg.c (child_create_inferior): Update.
7633         * hpux-thread.c (hpux_thread_create_inferior): Update.
7634         * gnu-nat.c (gnu_create_inferior): Update.
7635
7636 2004-05-25  Andrew Cagney  <cagney@gnu.com>
7637
7638         * MAINTAINERS: Update e-mail address.
7639
7640 2004-05-24  Randolph Chung  <tausq@debian.org>
7641
7642         * thread.c (info_threads_command, thread_apply_all_command)
7643         (thread_apply_command, thread_command, do_captured_thread_select):
7644         Remove HPUXHPPA-specific code.
7645
7646 2004-05-24  Randolph Chung  <tausq@debian.org>
7647
7648         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7649         unused symbols.
7650         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7651         references.
7652
7653 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
7654
7655         * infcmd.c (kill_if_already_running): New function, extracted
7656         from run_command().
7657         (run_command): Replace extracted code by call to
7658         kill_if_already_running().
7659         (start_command): New function.
7660         (_initialize_infcmd): Add "start" command.
7661
7662 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7663
7664         Add OpenBSD/m88k support.
7665         * NEWS (New native configurations): Mention OpenBSD/m88k.
7666         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7667         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7668         * Makefile.in (m88k_tdep_h): New variable.
7669         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7670         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7671         * configure.host: Add m88*-*-openbsd*.
7672         * configure.tgt: Add m88*-*-openbsd*.
7673
7674 2004-05-24  Jim Blandy  <jimb@redhat.com>
7675
7676         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7677         to approve changes.
7678
7679 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
7680
7681         * symtab.c (fixup_section): Search section table when lookup by
7682         name fails.
7683
7684 2004-05-24  Randolph Chung  <tausq@debian.org>
7685
7686         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
7687         be "small_struct".
7688
7689 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7690
7691         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7692         register number in regcache_raw_collect call.
7693         (m68kbsd_collect_fpregset): Likewise.
7694         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7695
7696         * regset.h (struct regset): Add back `regset' member.
7697
7698 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
7699
7700         * configure.in: Check for td_pcb in `struct thread'.
7701         * configure, config.in: Regenerated.
7702
7703         * dpx2-nat.c: Remove file.
7704         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7705         (dpx2-nat.o): Remove dependencies.
7706
7707         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7708         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7709         (amd64obsd_supply_pcb): New function.
7710         (_initialize_amd64obsd_nat): Enable libkvm interface.
7711         * Makefile.in (amd64obsd-nat.o): Update dependencies.
7712         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7713         (LOADLIBES): New variable.
7714
7715         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7716         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7717         (sparc32nbsd_supply_pcb): New function.
7718         (_initialize_sparcnbsd_nat): Enable libkvm interface.
7719         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7720         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7721         (LOADLIBES): New variable.
7722
7723 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
7724
7725         * bsd-kvm.c, bsd-kvm.h: New files.
7726         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7727         "bsd-kvm.h".
7728         (i386fbsd_supply_pcb): New function.
7729         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7730         (i386fbsd-nat.o): Update dependencies.
7731         (bsd_kvm_h): New variable.
7732         (bsd-kvm.o): New dependency.
7733         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7734         (LOADLIBES): New variable.
7735
7736         * regset.c: Tweak comment.
7737         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
7738         macro.
7739         * regset.h: Update copyright year.
7740         (struct regset): Remove `descr' member, add `gdbarch' member.
7741         (regset_alloc): Adjust prototype and comment.
7742         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7743         (i386_supply_fpregset): Likewise.
7744         (i386_regset_from_core_section): Update call to regset_alloc.
7745         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7746         REGSET->arch.
7747         (i386obsd_aout_regset_from_core_section): Update call to
7748         regset_alloc.
7749         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7750         REGSET->arch.
7751         (i386nbsd_aout_regset_from_core_section): Update call to
7752         regset_alloc.
7753         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7754         REGSET->arch.
7755         (amd64_regset_from_core_section): Update call to regset_alloc.
7756         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7757         REGSET->arch.
7758         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7759         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7760         &sparc32nbsd_gregset in sparc32_supply_gregset call.
7761         (sparc32nbsd_init_abi): Update call to regset_alloc.
7762         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7763         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7764         (sparc64obsd_init_abi): Update call to regset_alloc.
7765         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7766         &sparc64nbsd_gregset in sparc64_supply_gregset call.
7767         (sparc64nbsd_init_abi): Update call to regset_alloc.
7768         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7769         &sparc64fbsd_gregset in sparc64_supply_gregset call.
7770         (sparc64fbsd_init_abi): Update call to regset_alloc.
7771
7772 2004-05-22  Jim Blandy  <jimb@redhat.com>
7773
7774         * ppc-tdep.h (spe_register_p): New declaration.
7775         (struct gdbarch_tdep): New members: ppc_acc_regnum and
7776         ppc_spefscr_regnum.
7777         * rs6000-tdep.c (spe_register_p): New function.
7778         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7779         spefscr.
7780         (rs6000_gdbarch_init): Initialize the new members of the tdep
7781         structure.
7782
7783 2004-05-21  Jim Blandy  <jimb@redhat.com>
7784
7785         * ppc-linux-nat.c (fetch_register): Move code back to be next
7786         to the comment that describes it.  (Moved code, instead of
7787         comment, for symmetry with store_register.)
7788
7789         Allocate regset structures in the gdbarch's obstack, not using
7790         xmalloc.
7791         * regset.c (regset_alloc): Renamed from regset_xmalloc.
7792         Add 'arch' argument.  Allocate the regset on arch's obstack, not
7793         using xmalloc.
7794         * regset.h (regset_alloc): Update declaration.
7795         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7796         gdbarch argument.
7797         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7798         * i386-tdep.c (i386_regset_from_core_section): Same.
7799         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7800         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7801         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7802         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7803         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7804         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7805
7806 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
7807
7808         * config/djgpp/fnchange.lst: Undo previous change, was useless.
7809
7810 2004-05-21  Jim Blandy  <jimb@redhat.com>
7811
7812         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7813         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
7814
7815 2004-05-20  Jim Blandy  <jimb@redhat.com>
7816
7817         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7818
7819 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
7820
7821         * regset.h: Make prototype const-correct.
7822         * regset.c (regset_xmalloc): Make const-correct.
7823
7824 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
7825
7826         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7827         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7828         (symbol_search_name): Declare.
7829         
7830         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7831         (iter_name_next_hashed): Ditto.
7832         (iter_name_next_linear): Ditto.
7833         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7834
7835         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
7836         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7837         (symbol_search_name): New function.
7838         
7839         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7840         
7841         * minsyms.c (build_minimal_symbol_hash_tables): Change
7842         test for adding to demangled hash table to check for difference
7843         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7844         
7845 2004-05-19  Jim Blandy  <jimb@redhat.com>
7846
7847         Use a constructor function to create regset structures.
7848         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7849         (struct regset): Use supply_regset_ftype.  Add new
7850         'collect_regset' member.
7851         (regset_xmalloc): New declaration.
7852         * regset.c: New file.
7853         * am64-tdep.c (amd64_regset_from_core_section): Use
7854         regset_xmalloc to construct regset structures.
7855         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7856         * i386-tdep.c (i386_regset_from_core_section): Same.
7857         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7858         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7859         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7860         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7861         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7862         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7863         * Makefile.in (COMMON_OBS): Add regset.o.
7864         (regset.o): New rule.
7865
7866 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
7867
7868         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7869         and pthread_cond_wait.c.
7870
7871 2004-05-18  Jim Blandy  <jimb@redhat.com>
7872
7873         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7874         before the mach-specific switch, and then let the individual cases
7875         override the defaults, rather than leaving them uninitialized
7876         until the switch and then setting them in each case.
7877
7878 2004-05-18  Randolph Chung  <tausq@debian.org>
7879
7880         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7881         millicode functions.
7882
7883 2004-05-18  Randolph Chung  <tausq@debian.org>
7884
7885         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7886         references to dld_flags_buffer consistent.
7887
7888 2004-05-18  Randolph Chung  <tausq@debian.org>
7889
7890         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7891         it for unwinding the stack.
7892
7893 2004-05-18  Randolph Chung  <tausq@debian.org>
7894
7895         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7896         Undefine these so we can overide them using gdbarch.
7897
7898 2004-05-18  Randolph Chung <tausq@debian.org>
7899
7900         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7901         handling for 64-bit HPUX (elf).
7902
7903 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
7904
7905         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7906         constants.
7907         * amd64-tdep.c (amd64_skip_prologue): Likewise.
7908         * ia64-tdep.c (examine_prologue): Likewise.
7909         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7910         * v850-tdep.c (v850_fix_call_dummy): Likewise.
7911
7912 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
7913
7914         * vax-tdep.c (vax_return_value): Implement
7915         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7916
7917 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7918
7919         * vax-tdep.c (vax_return_value): Fix typo.
7920
7921 2004-05-17  Andrew Cagney  <cagney@redhat.com>
7922
7923         * MAINTAINERS: Mark Salter was also responsible for
7924         testsuite/config/
7925
7926         * NEWS: Mention signal fixes.
7927
7928 2004-05-17  Randolph Chung  <tausq@debian.org>
7929
7930         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7931         check to see if we are unwinding an export stub.  Export stubs clobber
7932         the %rp in the call path and stores the original rp in a stack slot.
7933
7934 2004-05-17  Jim Blandy  <jimb@redhat.com>
7935
7936         * MAINTAINERS: Update address for J.T. Conklin.
7937
7938 2004-05-17  Randolph Chung  <tausq@debian.org>
7939
7940         * hppa-tdep.c: Remove superfluous #include's.
7941         * Makefile.in (hppa-tdep.o): Update dependencies.
7942
7943 2004-05-17  Randolph Chung  <tausq@debian.org>
7944
7945         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7946         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7947         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7948         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7949         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7950         Remove static function declarations.
7951
7952 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7953
7954         * alphabsd-nat.c: Update copyright year.
7955         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7956
7957         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7958         and M68K_A2_REGNUM.
7959
7960         * m68k-tdep.c (m68k_svr4_return_value): Implement
7961         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7962
7963 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
7964
7965         * sol-thread.c Update copyright year.  Fix various coding
7966         standards violations.  Tweak a few comments.
7967         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7968         Delete prototypes.
7969
7970 2004-05-15  Randolph Chung  <tausq@debian.org>
7971
7972         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7973         as pointer instead of array reference since HPUX compiler does
7974         not accept unsized array arguments.
7975         * somsolib.c (dld_flags_buffer): Use constant array size.
7976
7977 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
7978
7979         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7980         offset with decimal offset.
7981         (amd64obsd_sigcontext_addr): Return correct address for entire
7982         signal trampoline.
7983
7984         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7985         instead of get_frame_base.
7986
7987         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7988         (fill_gregset): Use regcache_raw_collect.
7989
7990         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7991         ppcobsd-tdep.c.
7992
7993         * config/sparc/tm-nbsd64.h: Remove file.
7994         * config/tm-sunos.h: Remove file.
7995
7996 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
7997
7998         * rs6000-tdep.c (store_param_on_stack_p): New function,
7999         an improved version of some code extracted from skip_prologue().
8000         (skip_prologue): Use store_param_on_stack_p() to detect
8001         instructions saving a parameter on the stack. Detect when r0
8002         is used to save a parameter.
8003         Do not mark "li rx, SIMM" instructions as part of the prologue,
8004         unless the following instruction is also part of the prologue.
8005
8006 2004-05-14  Andrew Cagney  <cagney@redhat.com>
8007
8008         * infrun.c (handle_inferior_event): Simplify
8009         STEP_OVER_UNDEBUGGABLE.
8010
8011         * infrun.c (handle_step_into_function): Delete function.
8012         (handle_inferior_event): Inline calls to
8013         handle_step_into_function.
8014
8015 2004-05-14  Jerome Guitton  <guitton@gnat.com>
8016
8017         * rs6000-nat.c: Fix a comment.
8018
8019 2004-05-12  David Anderson <davea@sgi.com>
8020
8021         Committed by Jim Blandy <jimb@redhat.com>:
8022         * regcache.c (struct regcache_descr): fix comment spelling.
8023
8024 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8025
8026         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8027         Fixes a link link failure.
8028
8029 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8030
8031         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8032         error that was causing the build to fail.
8033
8034 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8035
8036         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8037         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8038
8039 2004-05-13  Andrew Cagney  <cagney@redhat.com>
8040
8041         * infrun.c (handle_inferior_event): Check for
8042         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8043         calls.  Update comments.
8044
8045 2004-05-13  Jim Blandy  <jimb@redhat.com>
8046
8047         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8048         (fetch_regs_user_thread, fetch_regs_kernel_thread)
8049         (store_regs_user_thread, store_regs_kernel_thread): Use
8050         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8051         * ppc-linux-nat.c (fill_gregset): Same.
8052         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
8053         (ppc_linux_sigtramp_cache): Same.
8054         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
8055         (ppcnbsd_sigtramp_cache_init): Same.
8056         * rs6000-nat.c (fetch_core_registers): Same.
8057         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
8058         (rs6000_frame_cache): Same.
8059
8060         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8061         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8062         of assuming that the gprs are numbered starting with zero.
8063         * ppc-linux-nat.c (fill_gregset): Same.
8064         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8065         * ppcnbsd-nat.c (getregs_supplies): Same.
8066         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8067         * rs6000-nat.c (fetch_core_registers): Same.
8068         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8069
8070 2004-05-07  Michael Snyder  <msnyder@redhat.com>
8071
8072         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8073         LOC_COMPUTED_ARG, and LOC_INDIRECT.
8074
8075 2004-05-13  Andrew Cagney  <cagney@redhat.com>
8076
8077         * infrun.c (handle_inferior_event): Use frame_unwind_id.
8078
8079 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
8080
8081         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8082         base_address for shared libraries.
8083
8084 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
8085
8086         * MAINTAINERS (write after approval): Add myself.       
8087
8088 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8089
8090         * breakpoint.c (bpstat_stop_status): Add new argument
8091         STOPPED_BY_WATCHPOINT.  Use it instead of testing
8092         target_stopped_data_address agaist 0 to check whether
8093         or not we stopped due to a hardware watchpoint.
8094         * breakpoint.h (bpstat_stop_status): Adapt prototype.
8095         * infrun.c (handle_inferior_event): Call bpstat_stop_status
8096         with new argument.
8097
8098 2004-05-12  Jim Blandy  <jimb@redhat.com>
8099
8100         * configure.in: When checking whether we should use the -bbigtoc
8101         option, don't forget to restore the original value of LDFLAGS.
8102         * configure: Regenerated.
8103
8104 2004-05-12  Andrew Cagney  <cagney@redhat.com>
8105
8106         * thread.c (load_infrun_state): Delete step_sp.
8107         * infrun.c (context_switch): Ditto.
8108         * inferior.h (step_sp): Ditto.
8109         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8110         * gdbthread.h (struct thread_info, save_infrun_state)
8111         (restore_infrun_state): Ditto.
8112
8113 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
8114
8115         * MAINTAINERS (write after approval): Add myself.
8116
8117 2004-05-12  Andrew Cagney  <cagney@redhat.com>
8118
8119         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8120         eliminate reference to step_sp.
8121         (struct execution_control_state, init_execution_control_state)
8122         (handle_inferior_event, keep_going): Delete update_step_sp and
8123         step_sp.
8124         * infcmd.c (step_sp): Note that variable is unused.
8125
8126 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8127
8128         * infrun.c (step_over_function): Delete function.
8129         (handle_step_into_function): Use insert_step_resume_breakpoint.
8130         (insert_step_resume_breakpoint): Fix assertion.
8131
8132 2004-05-11  Nick Roberts  <nickrob@gnu.org>
8133
8134         * utils.c (defaulted_query): Just use the normal query input type
8135         when printing the annotations.
8136
8137 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8138
8139         * infrun.c (handle_inferior_event): Simplify code handling
8140         step-into or return-from a signal trampoline.
8141
8142 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8143
8144         * ppcnbsd-tdep.c: Include "gdb_assert.h".
8145         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8146
8147 2004-05-10  Jim Blandy  <jimb@redhat.com>
8148
8149         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8150         with a call to internal_error.
8151
8152         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8153         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8154         processor variant lacks those registers.
8155         (ppc_floating_point_unit_p): Change description to make it clear
8156         that this returns info about the ISA, not the ABI.
8157         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8158         return true or false by checking tdep->ppc_fp0_regnum and
8159         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
8160         arch/mach switching done in rs6000_gdbarch_init; it's better to
8161         keep that logic there, and just check the results here.
8162         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8163         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8164         floating-point registers.
8165         (ppc_supply_fpregset, ppc_collect_fpregset)
8166         (rs6000_push_dummy_call, rs6000_extract_return_value)
8167         (rs6000_store_return_value): Assert that we have floating-point
8168         registers.
8169         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8170         (rs6000_frame_cache): Don't note the locations at which
8171         floating-point registers were saved if we have no fprs.
8172         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8173         registers.
8174         (fetch_regs_user_thread, fetch_regs_kernel_thread)
8175         (store_regs_user_thread, store_regs_kernel_thread): Only call
8176         supply_fprs / fill_fprs if we actually have floating-point
8177         registers.
8178         (special_register_p): Check ppc_fpscr_regnum before matching
8179         against it.
8180         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8181         supply / collect fpscr if we don't have it.
8182         * ppc-bdm.c: #include "gdb_assert.h".
8183         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8184         have floating-point registers, since I can't test this code on
8185         FP-free systems to adapt it.
8186         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8187         fpscr and floating point register numbers if they don't exist.
8188         (fetch_register): Assert that we have floating-point registers
8189         before we reach the code that handles them.
8190         (store_register): Same.  And use tdep instead of calling
8191         gdbarch_tdep again.
8192         (fill_fpregset): Don't try to collect FP registers and fpscr if we
8193         don't have them.
8194         (ppc_linux_sigtramp_cache): Don't record the saved locations of
8195         fprs and fpscr if we don't have them.
8196         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8197         don't have them.
8198         * ppcnbsd-nat.c: #include "gdb_assert.h".
8199         (getfpregs_supplies): Assert that we have floating-point registers.
8200         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8201         * ppcobsd-tdep.c: #include "gdb_assert.h".
8202         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8203         have floating-point registers.
8204         * rs6000-nat.c (regmap): Don't match against the fpscr and
8205         floating point register numbers if they don't exist.
8206         (fetch_inferior_registers, store_inferior_registers,
8207         fetch_core_registers): Only fetch / store / supply the
8208         floating-point registers and the fpscr if we have them.
8209         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8210         (ppcobsd-tdep.o): Update dependencies.
8211         
8212 2004-05-10  Andrew Cagney  <cagney@redhat.com>
8213
8214         * infrun.c (through_sigtramp_breakpoint): Delete variable.
8215         (context_switch): Do not switch through_sigtramp_breakpoint.
8216         * gdbthread.h (save_infrun_state, load_infrun_state)
8217         (struct thread_info): Delete through_sigtramp_breakpoint parameter
8218         and structure member.
8219         * thread.c (load_infrun_state, save_infrun_state): Update.
8220
8221 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
8222
8223         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8224
8225 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8226
8227         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
8228         throughout.
8229         * aclocal.m4: Regenerate.
8230
8231 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
8232
8233         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8234
8235 2004-05-10  Andrew Cagney  <cagney@redhat.com>
8236
8237         * infrun.c (check_sigtramp2): Delete function.
8238         (handle_inferior_event): When single stepping, and taking a
8239         signal, set a breakpoint at the signal return address.  Delete
8240         redundant calls to check_sigtramp2.
8241         (insert_step_resume_breakpoint): New function.
8242         (through_sigtramp_breakpoint, handle_inferior_event)
8243         (follow_exec, wait_for_inferior, fetch_inferior_event)
8244         (currently_stepping, keep_going): Delete most uses of
8245         through_sigtramp_breakpoint, not that it should be deleted.
8246         (delete_breakpoint_current_contents): Delete function.
8247
8248 2004-05-10  Randolph Chung  <tausq@debian.org>
8249
8250         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8251         target.
8252         * config/pa/tm-linux.h: New file.
8253
8254 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
8255
8256         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8257         of prefixes.  Don't print the prefix twice in the CLI.
8258
8259 2004-05-10  Jim Blandy  <jimb@redhat.com>
8260
8261         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8262         collect all the gprs.
8263
8264         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8265         loop collecting gprs.
8266
8267 2004-05-09  Andrew Cagney  <cagney@redhat.com>
8268
8269         * remote-vx.c (net_step): Delete step-range code.
8270         * remote.c (remote_resume, init_all_packet_configs)
8271         (set_remote_protocol_E_packet_cmd)
8272         (show_remote_protocol_E_packet_cmd)
8273         (remote_protocol_E, show_remote_cmd, _initialize_remote)
8274         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8275         (show_remote_protocol_e_packet_cmd): Ditto.
8276
8277 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
8278
8279         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8280
8281         * hppa-tdep.h: Update copyright year.
8282         (struct trad_frame_saved_reg): Add opaque declaration.
8283
8284         * amd64-tdep.c (amd64_return_value): Implement
8285         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8286
8287         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8288         (m68k_value_to_register): New functions.
8289         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8290         value_to_register.
8291
8292         * defs.h (enum return_value_convention): Add
8293         RETURN_VALUE_ABI_RETURNS_ADDRESS and
8294         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8295         * infcmd.c (legacy_return_value): New function.
8296         (print_return_value): Rwerite to implement
8297         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8298         * values.c (using_struct_return): Check for inequality to
8299         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8300         RETURN_VALUE_STRUCT_CONVENTION.
8301         * i386-tdep.c (i386_return_value): Implement
8302         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8303
8304         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
8305         include "symtab.h", "opcode/vax.h" and "inferior.h".
8306         (vax_skip_prologue): Replace calls to read_memory_integer by calls
8307         to read_memory_unsigned_integer.
8308         (vax_gdbarch_init): Reorder.
8309         (_initialize_vax_tdep): Spell out prototype.
8310         * Makefile.in (vax-tdep.o): Update dependencies.
8311
8312 2004-05-08  Andrew Cagney  <cagney@redhat.com>
8313
8314         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8315         * target.c (target_detach, target_disconnect): Ditto.
8316
8317         * infcall.c (call_function_by_hand): When no
8318         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8319         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8320         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8321         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8322         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8323         
8324         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8325         * gdbarch.h, gdbarch.c: Re-generate.
8326         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8327         deprecated_fix_call_dummy.
8328         * v850-tdep.c (v850_gdbarch_init): Ditto.
8329         * infcall.c (call_function_by_hand): Do not call
8330         DEPRECATED_FIX_CALL_DUMMY.
8331
8332         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8333         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8334         * gdbarch.h, gdbarch.c: Re-generate.
8335         * arm-linux-tdep.c (arm_linux_call_dummy_words)
8336         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8337         deprecated_sizeof_call_dummy_words.
8338         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8339         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8340         * v850-tdep.c (v850_gdbarch_init): Ditto.
8341         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8342         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8343         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8344         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8345         * arch-utils.h (legacy_call_dummy_words)
8346         (legacy_sizeof_call_dummy_words): Delete declarations.
8347         * arch-utils.c (legacy_call_dummy_words)
8348         (legacy_sizeof_call_dummy_words): Delete variables.
8349
8350         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8351         * gdbarch.h, gdbarch.c: Re-generate.
8352         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8353         * infcall.c (call_function_by_hand): Eliminate call to
8354         DEPRECATED_PUSH_DUMMY_FRAME.
8355         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8356         push_dummy_frame.
8357         (ns32k_push_dummy_frame): Delete function.
8358
8359         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8360         deprecated_call_dummy_breakpoint_offset or
8361         deprecated_call_dummy_start_offset.
8362         * dummy-frame.c, arm-tdep.c: Update comments.
8363         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8364         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8365         * gdbarch.h, gdbarch.c: Re-generate.
8366         
8367         * infcall.c (legacy_push_dummy_code): Delete function.
8368         (push_dummy_code): Delete call.
8369
8370         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8371         * gdbarch.h, gdbarch.c: Re-generate.
8372         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8373         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8374         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8375         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8376
8377         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8378         (struct frame_info): Delete opaque declaration.
8379         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8380         * frame.c (get_frame_type): Delete call.
8381
8382         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8383         pc_in_call_dummy.
8384         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8385         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8386
8387 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8388
8389         * alphanbsd-tdep.c: Include "gdb_string.h".
8390         * armnbsd-tdep.c: Update copyright year.
8391         Include "gdb_string.h".
8392         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8393         dependencies.
8394
8395         * delta68-nat.c: Remove file.
8396         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8397         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8398         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8399         (delta68-nat.o): Remove dependency.
8400
8401         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8402         function.
8403         (m68k_gdbarch_init): Don't set
8404         deprecated_frameless_function_invocation.
8405
8406 2004-05-07  Randolph Chung  <tausq@debian.org>
8407
8408         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
8409         read_memory_nobpt for code reading when doing frame unwinding.
8410         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8411
8412 2004-05-07  Randolph Chung  <tausq@debian.org>
8413
8414         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8415         instead of sp, handle sigaltstack case.
8416         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
8417         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8418         signal handler and not that of the caller.
8419         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8420         hppa_linux_sigtramp_find_sigcontext.
8421
8422 2004-05-07  Randolph Chung  <tausq@debian.org>
8423
8424         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8425         hppa-linux-nat.c.
8426         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8427         * hppa-linux-nat.c (fetch_register, store_register): Define.
8428         (fetch_inferior_registers, store_inferior_registers): Define.
8429         (supply_gregset): Add comment and clean up some unneeded code.
8430         (fill_gregset): Add comment and fix so that it saves registers in
8431         the right place in the gregset.
8432         (fill_fpregset): Fix buffer overrun problem.
8433         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8434
8435 2004-05-07  Randolph Chung  <tausq@debian.org>
8436
8437         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
8438         do common handling of the pcoqt register.
8439         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8440         to use helper function.
8441         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8442         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8443         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8444         generic fallback unwinder when all else fails.
8445         (hppa_gdbarch_init): Add fallback sniffer.
8446         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8447         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8448         to use helper function.
8449
8450 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
8451
8452         * config/djgpp/fnchange.lst: Add translation rules for
8453         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8454
8455 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8456
8457         * frame.c (get_prev_frame_1): Work around GCC bug.
8458         * frame.h: Add comment about GCC bug.
8459
8460 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8461
8462         * observer.c: Include "commands.h" and "gdbcmd.h".
8463         (observer_debug, _initialize_observer): Add the
8464         command "set/show debug observer".
8465         * observer.sh: When observer debugging, log notify calls.
8466         * Makefile.in (observer.o): Update dependencies.
8467
8468 2004-05-07  Jason Molenda  (jmolenda@apple.com)
8469
8470         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8471
8472 2004-05-07  Jim Blandy  <jimb@redhat.com>
8473
8474         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8475         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8476         to recognize gpr regnums, instead of assuming that
8477         tdep->ppc_fp0_regnum marks the end of the general-purpose
8478         registers.
8479
8480         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8481         the given architecture has floating-point registers. 
8482
8483 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8484
8485         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8486         macro defined to 1.
8487         * gdbarch.h, gdbarch.c: Re-generate.
8488         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8489         deprecated_use_generic_dummy_frames.
8490
8491 2004-05-07  Brian Ford  <ford@vss.fsi.com>
8492
8493         * NEWS: Mention Cygwin DWARF 2 support.
8494
8495 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8496
8497         * objfiles.h (struct entry_info): Delete unused fields
8498         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8499         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8500         * mipsread.c (mipscoff_symfile_read): Update.
8501         * mdebugread.c (parse_partial_symbols): Update.
8502         * dwarfread.c (read_file_scope): Update.
8503         * dwarf2read.c (read_file_scope): Update.
8504         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8505         * coffread.c (complete_symtab): Update.
8506
8507 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
8508
8509         * infcall.c (_initialize_infcall): Fix typo.
8510
8511 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8512
8513         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8514         * command.h (add_setshow_zinteger_cmd): Declare.
8515
8516 2004-05-06  Randolph Chung  <tausq@debian.org>
8517
8518         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8519         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8520         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8521         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8522         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8523         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8524         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
8525         definitions ...
8526         * hppa-tdep.h: ... to here, with HPPA_ prefix.
8527         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8528         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8529         (hppa64_hpux_frame_find_saved_regs_in_sig)
8530         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8531         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8532         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8533         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8534         (hppa_linux_sigtramp_frame_prev_register): Likewise.
8535         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8536         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8537         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8538         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8539         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8540         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8541         (hppa32_register_type, hppa_cannot_store_register)
8542         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8543         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8544         * hpread.c (hpread_process_one_debug_symbol): Likewise.
8545         * pa64solib.c (pa64_solib_have_load_event)
8546         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8547         (pa64_solib_unloaded_library_pathname): Likewise.
8548         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8549         (som_solib_library_pathname): Likewise.
8550
8551 2004-05-05  Jim Ingham  <jingham@apple.com>
8552         
8553         * breakpoint.c (create_breakpoints): Copy the ignore count and
8554         thread id over from the pended breakpoint to the actual
8555         breakpoint.
8556         
8557 2004-05-05  Andrew Cagney  <cagney@redhat.com>
8558
8559         * gdbarch.sh (PARM_BOUNDARY): Delete.
8560         gdbarch.h, gdbarch.c: Re-generate.
8561         * valops.c (PARM_BOUNDARY): Delete macro.
8562         (value_push): Delete PARM_BOUNDARY code.
8563         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8564
8565 2004-05-04  Jim Blandy  <jimb@redhat.com>
8566
8567         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8568         Don't assume that the gprs, fprs, and UISA sprs are
8569         contiguous, start at register number zero, and end with fpscr.
8570         Instead, use the numbers from the tdep structure.
8571
8572         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8573         should no longer be used in code specific to the RS6000 and its
8574         derivatives.
8575         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8576         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8577         tdep->ppc_fp0_regnum.
8578         (ppc_supply_fpregset, ppc_collect_fpregset)
8579         (rs6000_push_dummy_call, rs6000_extract_return_value)
8580         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8581         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8582         FP0_REGNUM. 
8583         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8584         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8585         Same.
8586         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8587         bdm_ppc_store_registers): Same.
8588         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
8589         (store_register, fill_fpregset): Same.
8590         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
8591         (ppc_linux_supply_fpregset): Same.
8592         * ppcnbsd-nat.c (getfpregs_supplies): Same.
8593         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8594         Same.
8595         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8596         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8597         ppc64_sysv_abi_return_value): Same.
8598         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8599         (store_inferior_registers, fetch_core_registers): Same.
8600
8601 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8602
8603         * m68knbsd-nat.c: Remove file.
8604         * m68knbsd-tdep.c: Remove file.
8605         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8606         dependencies.
8607         * configure.host: Add m68k-*-netbsdelf*.
8608         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8609         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8610         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
8611         (XM_FILE): Remove.
8612         * config/m68k/nbsdelf.mh: New file.
8613         * config/m68k/nbsd.mt: New file.
8614         * config/m68k/nbsdaout.mt: Remove file.
8615         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8616         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
8617         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8618         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8619         (use_struct_convention): Remove prototype.
8620         (USE_STRUCT_CONVENTION): Remove define.
8621         * config/m68k/xm-nbsd.h: Remove file.
8622
8623 2004-05-04  Michael Snyder  <msnyder@redhat.com>
8624
8625         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
8626         reg_struct_return method (as gcc usually does for cross targets).
8627
8628 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8629
8630         Committed by Andrew Cagney.
8631         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8632         alignment padding when accessing ucontext struct members.
8633
8634 2004-05-04  Jim Blandy  <jimb@redhat.com>
8635
8636         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8637         'ppc_gplast_regnum' member.
8638         (ppc_num_gprs): New enum constant.
8639         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8640         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8641         * rs6000-nat.c (regmap, fetch_inferior_registers,
8642         store_inferior_registers): Same.
8643         * rs6000-tdep.c (e500_pseudo_register_read)
8644         (e500_pseudo_register_write): Same.
8645         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8646
8647         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8648         * ppc-tdep.h (ppc_num_fprs): New enum constant.
8649         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8650         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8651         FPLAST_REGNUM.
8652         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8653         Same.
8654         * ppc-linux-nat.c (ppc_register_u_addr): Same.
8655         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8656         (store_inferior_registers): Same.
8657
8658         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8659         with FPLAST_REGNUM.
8660
8661 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
8662
8663         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8664         failure detected by recent versions of GCC.
8665         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8666         to be consistent with the usage in dwarf2_create_include_psymtab.
8667
8668 2004-05-03  Michael Snyder  <msnyder@redhat.com>
8669
8670         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8671         (heuristic_proc_start): Whitespace cleanup.
8672
8673 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
8674
8675         * sun3-nat.c: Remove file.
8676         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8677         dependencies.
8678         (ALLDEPFILES): Remove sun3-nat.c.
8679         (sun3-nat.o): Remove dependencies.
8680
8681         * i386-interix-nat.c, i386-interix-tdep.c,
8682         config/i386/nm-interix.h, config/i386/interix.mh,
8683         config/i386/interix.mt: Remove files.
8684         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8685         dependencies.
8686
8687 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
8688
8689         * m68k-tdep.h (struct gdbarch_tdep): Add member
8690         struct_value_regnum.
8691         (m68k_svr4_init_abi): New prototype.
8692         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
8693         different calling conventions.
8694         (m68k_extract_return_value): Remove code dealing with single-field
8695         structs.
8696         (m68k_store_return_value): Remove code dealing with single-field
8697         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
8698         (m68k_extract_struct_value_address): Remove function.
8699         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8700         (m68k_reg_struct_return_p, m68k_return_value)
8701         (m68k_svr4_return_value): New functions.
8702         (m68k_use_struct_convention): Remove function.
8703         (m68k_push_dummy_call): Use new struct_value_regnum member of
8704         `struct gdbarch_tdep' instead of hardcoded register number to
8705         store STRUCT_ADDR.
8706         (m68k_svr4_init_abi): New function.
8707         (m68k_gdbarch_init): Don't set extract_return_value,
8708         store_return_values, deprecated_extract_struct_value_address and
8709         use_struct_convention.  Set return_value instead.  Initialize new
8710         struct_value_regnum member of `struct gdbarch_tdep'.
8711         * m68klinux-tdep.c: Update copyright year.
8712         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8713         (m68k_linux_extract_struct_value_address): Remove function.
8714         (m68k_linux_init_abi): Don't set extract_return_value,
8715         store_return_values, deprecated_extract_struct_value_address and
8716         use_struct_convention.  Call m68k_svr4_init_abi but override the
8717         new struct_value_regnum member of `struct gdbarch_tdep'.
8718         * Makefile.in (m68k-tdep.o): Update dependencies.
8719
8720 2004-05-03  J. Brobecker  <brobecker@gnat.com>
8721
8722         * dwarf2read.c (line_header): Add new included_p field in
8723         field file_names.
8724         (partial_die_info): New field has_stmt_list. New field line_offset.
8725         (dwarf2_create_include_psymtab): New function.
8726         (dwarf2_build_include_psymtabs): New function.
8727         (add_file_name): Add forward declaration. Initialize new field.
8728         (dwarf_decode_lines): Add new parameter. Enhance this procedure
8729         to be able to determine the list of files included by the
8730         given unit, and build their associated psymtabs.
8731         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8732         files as well.
8733         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8734         (read_file_scope): Update call to dwarf_decode_lines.
8735         (read_partial_die): Handle DW_AT_stmt_list attributes.
8736
8737 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
8738
8739         Unfix PR gdb/1626.
8740         * configure.in: Revert special case for osf5.*.
8741         * configure: Regenerate.
8742
8743 2004-05-02  Jim Blandy  <jimb@redhat.com>
8744
8745         Move the symbol-file-from-memory functions into their own file.
8746         * symfile-mem.c, symfile-mem.h: New files.
8747         * symfile.c (symbol_file_add_from_bfd): New function.
8748         (symbol_file_add): Call symbol_file_add_from_bfd.
8749         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8750         Moved to symfile-mem.c.
8751         (_initialize_symfile): Move definition of
8752         add-symbol-file-from-memory command to symfile-mem.c.
8753         * symfile.h (symbol_file_add_from_bfd): New declaration.
8754         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8755         * config/powerpc/linux.mt (TDEPFILES): Same.
8756         * Makefile.in (SFILES): Add symfile-mem.c.
8757         (symfile_mem_h): New variable.
8758         (HFILES_NO_SRCDIR): Add symfile-mem.h.
8759         (symfile-mem.o): New rule.
8760
8761 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8762
8763         * breakpoint.c (insert_bp_location): Use get_frame_id, and
8764         frame_find_by_id instead of frame_relative_level.
8765         (do_enable_breakpoint): Ditto.
8766         * thread.c: Update copyright.
8767         (info_threads_command): Ditto, simplify.
8768
8769         * frame.c (deprecated_generic_get_saved_register): Delete
8770         function, moved to "xstormy16-tdep.c".
8771         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8772         deprecated_generic_get_saved_register from "frame.c".
8773         (xstormy16_frame_saved_register): Call
8774         xstormy16_get_saved_register.
8775         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8776         static.
8777         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8778         * frame.h (deprecated_generic_get_saved_register): Delete.
8779
8780 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
8781
8782         * dwarfread.c: Update documentation on the state of dwarf-1.
8783
8784 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8785
8786         * stack.c (select_frame_command): Delete call to
8787         frame_relative_level.
8788         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8789         Delete #if0 code.
8790         (frame_info): Do not print FRAMELESS.
8791         (print_block_frame_labels): Replace DEPRECATED_STREQ.
8792         (catch_info): Delete #if0 code.
8793
8794         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8795         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8796         of frame_relative_level.
8797         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8798         to SENTINEL_FRAME.
8799         * frame.h (enum frame_type): Add SENTINEL_FRAME.
8800         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8801         frame_relative_level.
8802
8803         * frame.h (deprecated_set_frame_type): Delete declaration.
8804         * frame.c (deprecated_set_frame_type): Delete function, update
8805         comments.
8806
8807         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8808         * gdbarch.h, gdbarch.c: Re-generate.
8809         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8810         (shnbsd_pc_in_sigtramp): Delete.
8811         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8812         pc_in_sigtramp.
8813         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8814         pc_in_sigtramp.
8815         * frame.h: Update comments.
8816         * ppc-linux-tdep.c: Update comments.
8817         * breakpoint.c (bpstat_what): Update comments.
8818
8819         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8820         m68klinux-tdep.o's dependencies, were previously added to
8821         m68klinux-nat.o.
8822
8823         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8824         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8825         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8826         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8827         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8828
8829         * Makefile.in (m68klinux-nat.o): Update dependencies.
8830         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8831         (m68k_linux_sigtramp_frame_cache)
8832         (m68k_linux_sigtramp_frame_this_id)
8833         (m68k_linux_sigtramp_frame_prev_register)
8834         (m68k_linux_sigtramp_frame_unwind)
8835         (m68k_linux_sigtramp_frame_sniffer)
8836         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8837         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8838         names, use trad-frame.h.
8839         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8840         (struct m68k_sigtramp_info): Delete.
8841         * m68k-tdep.c (m68k_sigtramp_frame_cache)
8842         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8843         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8844         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8845         "m68klinux-tdep.c".
8846
8847         * infrun.c (check_sigtramp2): Delete check for
8848         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8849
8850 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8851
8852         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8853
8854 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8855
8856         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8857         (frv_linux_sigtramp_frame_cache)
8858         (frv_linux_sigtramp_frame_this_id)
8859         (frv_linux_sigtramp_frame_prev_register)
8860         (frv_linux_sigtramp_frame_unwind)
8861         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8862         include "linux" in function and variable names, directly call
8863         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8864         the latest trad-frame code.
8865         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8866         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8867         * Makefile.in (frv-linux-tdep.o): Update dependencies.
8868         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8869         * frv-tdep.c (frv_sigtramp_frame_cache)
8870         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8871         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8872         frv-linux-tdep.c.
8873         (frv_gdbarch_init): Do not append a sigtramp sniffer.
8874         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8875         (frv_set_sigcontext_reg_addr): Delete function.
8876
8877         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8878         (DEPRECATED_SIGTRAMP_END): Delete.
8879         * gdbarch.h, gdbarch.c: Re-generate.
8880         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8881         * config/vax/tm-vaxbsd.h: Update copyright.
8882         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8883         (DEPRECATED_IN_SIGTRAMP): Define.
8884         * config/m68k/tm-nbsd.h: Update copyright.
8885         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8886         (DEPRECATED_IN_SIGTRAMP): Define.
8887
8888 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8889
8890         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8891         encondings.  Fixes PR gdb/1628.
8892
8893         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8894         DW_CFA_restore state without a matching DW_CFA_remember_state
8895         instead of aborting.  Fixes PR backtrace/1589.
8896
8897 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
8898
8899         * MAINTAINERS: Add self as AIX maintainer.
8900         Update my e-mail address in write-after-approval section.
8901
8902 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8903
8904         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8905         (legacy_get_prev_frame): Ditto.
8906
8907         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8908         (mips_gdbarch_init): Do not set pc_in_sigtramp.
8909         * mipsread.c (sigtramp_address): Delete extern variable.
8910         (mipscoff_new_init): Delete reference.
8911         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8912         (fixup_sigtramp): Delete function.
8913         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8914         (fixup_sigtramp): Delete declarations.
8915
8916         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8917         deprecated_pc_in_sigtramp.
8918         (ppcnbsd_pc_in_sigtramp): Delete function.
8919
8920 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8921
8922         * config/m68k/nm-nbsd.h: Tweak comments.
8923         * config/m68k/nm-nbsdaout.h: Likewise.
8924
8925 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8926
8927         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8928         legacy_pc_in_sigtramp.
8929         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8930
8931 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8932
8933         Add OpenBSD/m68k support.
8934         * NEWS (New native configurations): Mention OpenBSD/m68k.
8935         * m68kbsd-tdep.c: New file.
8936         * m68kbsd-nat.c: New file.
8937         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8938         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8939         * configure.host: Add m68k-*-openbsd.
8940         * configure.tgt: Add m68k-*-openbsd.
8941         * config/m68k/tm-obsd.h: New file.
8942         * config/m68k/obsd.mt: New file.
8943         * config/m68k/obsd.mh: New file.
8944         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8945         m68kbsd-tdep.c.
8946
8947 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8948
8949         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8950         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8951
8952 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
8953
8954         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8955         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8956
8957 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8958
8959         Revert 2004-04-16 change.
8960         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8961         (i386_coff_init_abi): Remove.
8962         * i386-tdep.h (i386_coff_init_abi): Remove.
8963         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8964
8965 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8966
8967         * blockframe.c (find_pc_partial_function): Delete use of
8968         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8969         DEPRECATED_SIGTRAMP_END.
8970
8971         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8972         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8973         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8974         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8975         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8976
8977         * defs.h (deprecated_inside_entry_file): Delete declaration.
8978         * blockframe.c (deprecated_inside_entry_file): Delete function.
8979         (legacy_frame_chain_valid): Delete call.
8980         * sh64-tdep.c (sh64_frame_chain): Delete call.
8981         * objfiles.h: Update comments.
8982         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8983         call.
8984         * frame.c (get_prev_frame): Delete call, update comments.
8985
8986 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8987
8988         * MAINTAINERS (Write After Approval): Add myself.
8989
8990 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8991
8992         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8993         * gdbarch.h, gdbarch.c: Re-generate.
8994         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8995         code.
8996
8997 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8998
8999         * gdb-events.sh (selected_thread_changed)
9000         (selected_frame_level_changed, target_changed): Delete.
9001         * gdb-events.h, gdb-events.c: Re-generate.
9002         * valops.c (value_assign): Update.
9003         * stack.c (select_frame_command, up_silently_base)
9004         (down_silently_base): Update.
9005
9006 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9007
9008         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
9009         registers correctly.
9010         (print_gp_register_row, mips32_heuristic_proc_desc)
9011         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
9012         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
9013         references to mips_isa_regsize.
9014
9015 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9016
9017         * mips-tdep.c (struct gdbarch_tdep): Delete
9018         mips_fp_register_double.
9019         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9020         mips_abi_regsize.
9021         (mips_gdbarch_init): Do not set mips_fp_register_double.
9022         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9023
9024 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
9025
9026         Committed by Andrew Cagney.
9027         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9028         function calls.
9029
9030 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9031
9032         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9033         gdbarch, use mips_abi, update callers.
9034         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9035         mips_abi_regsize, update callers.
9036         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9037         mips_default_abi_regsize.
9038         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9039         mips_default_abi_regsize.
9040
9041 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9042
9043         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9044         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9045         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9046         mips_default_abi_regsize.
9047         (mips_isa_regsize): Rename mips_regisze.
9048         * mipsnbsd-tdep.c: Update.
9049         * mips-linux-tdep.c: Update.
9050         * irix5-nat.c: Update.
9051         * mips-tdep.h (mips_isa_regsize): Update.
9052
9053         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9054         Delete all disabled code.
9055         * gdb-events.h, gdb-events.c: Re-generate.
9056         
9057 2004-04-19  Jerome Guitton  <guitton@gnat.com>
9058             Mark Kettenis  <kettenis@gnu.org>
9059
9060         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9061         the function begins with a branch instruction.
9062
9063 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
9064
9065         * i386-tdep.c: Fix spelling mistakes.
9066
9067 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9068             Andrew Cagney  <cagney@redhat.com>
9069
9070         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9071         <sys/proc.h>.
9072         * acconfig.h: Provide default _KMEMUSER value.
9073         * config.in, configure: Re-generate.
9074         * NEWS: Mention fix.
9075
9076 2004-04-24  Randolph Chung  <tausq@debian.org>
9077
9078         * configure.host (hppa*-*-linux*): New target.
9079         * configure.tgt (hppa*-*-linux*): Likewise.
9080         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9081         gdbarch_init_osabi() call earlier so that osabi-specific frame
9082         unwinders can be registered first.
9083         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9084         hppa-linux-nat.c.
9085         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9086         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9087         * config/pa/linux.mh: New file.
9088         * config/pa/linux.mt: New file.
9089         * config/pa/nm-linux.h: New file.
9090         * config/pa/xm-linux.h: New file.
9091         * hppa-linux-nat.c: New file.
9092         * hppa-linux-tdep.c: New file.
9093
9094 2004-04-28  Randolph Chung  <tausq@debian.org>
9095
9096         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9097         return values.
9098         (hppa32_push_dummy_call): Fix small struct and floating point argument 
9099         passing, and make sure the stack frame is properly aligned.
9100
9101 2004-04-28  Andrew Cagney  <cagney@redhat.com>
9102
9103         * stack.c (print_stack_frame): Fix description.
9104
9105         * NEWS: Mention gdb/gdbserver/configure execute permission
9106         changed.  PR server/519.
9107
9108 2004-04-28  Andrew Cagney  <cagney@redhat.com>
9109
9110         * stack.c (print_stack_frame_stub): Delete declaration.
9111         (struct print_stack_frame_args, print_stack_frame)
9112         (print_frame_info, print_frame): Replace "source" with print what.
9113         Replace "print" with "print_level".  Replace "args" with
9114         "print_args".
9115         * frame.h (show_and_print_stack_frame, print_stack_frame)
9116         (print_frame_info): Update declarations.
9117         * stack.c (select_and_print_frame, frame_command)
9118         (current_frame_command, up_command, down_command): Update calls -
9119         use get_selected_frame, pass "enum print_what" for source, do not
9120         call frame_relative_level.
9121         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9122         * remote-rdp.c (remote_rdp_open): Ditto.
9123         * remote-mips.c (common_open): Ditto.
9124         * remote-e7000.c (e7000_start_remote): Ditto.
9125         * ocd.c (ocd_start_remote): Ditto.
9126         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9127         * infrun.c (normal_stop): Ditto.
9128         * inflow.c (kill_command): Ditto.
9129         * infcmd.c (finish_command): Ditto.
9130         * corelow.c (core_open): Ditto.
9131         * tracepoint.c (finish_tfind_command): Ditto.
9132         * thread.c (info_threads_command, info_threads_command) 
9133         (restore_current_thread, do_captured_thread_select): Ditto.
9134         * ada-tasks.c (task_command): Ditto.
9135
9136 2004-04-26  Orjan Friberg <orjanf@axis.com>
9137
9138         * frame.c: Include "observer.h".
9139         (frame_observer_target_changed): New function.
9140         (_initialize_frame): Attach target_changed observer.
9141         * regcache.c: Include "observer.h".
9142         (regcache_observer_target_changed): New function.
9143         (_initialize_regcache): Attach target_changed observer.
9144         * valops.c: Include "observer.h".
9145         (value_assign): Notify target_changed event when modifying register.
9146         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9147
9148 2004-04-26  Orjan Friberg <orjanf@axis.com>
9149
9150         From Paul Koning <pkoning@equallogic.com>:
9151         * breakpoint.c (free_valchain): New function.
9152         (insert_bp_location, delete_breakpoint): Use free_valchain.
9153         (remove_breakpoint): Do not remove the valchain.
9154         (bpstat_stop_status): If not stopped by watchpoint, skip
9155         watchpoints when generating stop status list.
9156         * infrun.c (handle_inferior_event): Make
9157         stepped_after_stopped_by_watchpoint a global variable.
9158         * remote.c (remote_stopped_data_address): Return watch data
9159         address rather than zero if stepped_after_stopped_by_watchpoint is
9160         set.
9161
9162 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
9163
9164         Fix PR gdb/1626.
9165         * configure.in: Check for curses after termcap.
9166         On osf5.*, do not check for ncurses.
9167         * configure: Regenerate.
9168
9169 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
9170
9171         * ppcobsd-nat.c: Include "ppc-tdep.h".
9172         * Makefile.in (ppcobsd-nat.o): Update dependencies.
9173
9174         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9175         Fixes PR tdep/1623 and PR tdep/1624.
9176
9177 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
9178
9179         * xmodem.h, xmodem.c: Remove files.
9180         * Makefile.in: Remove references to xmodem.h, xmodem.c.
9181
9182 2004-04-23  Randolph Chung  <tausq@debian.org>
9183
9184         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9185         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9186         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9187         for handling stackless frames.
9188         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
9189
9190 2004-04-23  Randolph Chung  <tausq@debian.org>
9191
9192         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9193         starts at a pc before the frame is created.
9194
9195 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
9196
9197         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9198
9199 2004-04-23  Jerome Guitton  <guitton@gnat.com>
9200
9201         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9202         use convert_typed_floating to get the appropriate format.
9203
9204 2004-04-22  Randolph Chung  <tausq@debian.org>
9205
9206         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9207         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9208         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9209         (hppa_sign_extend): Add prototype.
9210         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9211         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9212         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
9213         hppa targets will also use these functions.
9214         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9215         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9216         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9217         (hppa_gdbarch_init): Remove gdbarch setting of 
9218         skip_trampoline_code, in_solib_call_trampoline and
9219         in_solib_return_trampoline.
9220         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9221         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9222         hppa_in_solib_call_trampoline.
9223         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9224         Moved from hppa-tdep.c.
9225         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
9226         in_solib_call_trampoline and in_solib_return_trampoline.
9227
9228 2004-04-22  Randolph Chung  <tausq@debian.org>
9229
9230         * hppa-tdep.c (hppa_debug): New variable.
9231         (find_unwind_entry, hppa_frame_cache): Add debug output.
9232         (_initialize_hppa_tdep): Add command to set debug flag.
9233
9234 2004-04-22  Andrew Cagney  <cagney@redhat.com>
9235
9236         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
9237         "trad-frame.h".
9238         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9239         signal trampoline unwinder.
9240         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9241
9242 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
9243
9244         Add OpenBSD/powerpc support.
9245         * NEWS (New native configurations): Mention OpenBSD/powerpc.
9246         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9247         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9248         (ppc_collect_fpregset): New prototypes.
9249         * ppcobsd-nat.c: New file.
9250         * ppcobsd-tdep.c: New file.
9251         * ppcobsd-tdep.h: New file.
9252         * rs6000-tdep.c: Include "regset.h".
9253         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9254         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9255         New functions.
9256         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9257         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9258         (rs6000-tdep.o): Update dependencies.
9259         * configure.host: Add powerpc-*-openbsd.
9260         * configure.tgt: Add powerpc-*-openbsd.
9261         * config/powerpc/obsd.mh: New file.
9262         * config/powerpc/nm-obsd.h: New file.
9263         * config/powerpc/obsd.mt: New file.
9264
9265 2004-04-22  Andrew Cagney  <cagney@redhat.com>
9266
9267         * frame.h (show_frame_info): Delete declaration.
9268
9269         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9270         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9271         * m32r-tdep.c (m32r_frame_this_id): Ditto.
9272         * frv-tdep.c (frv_frame_this_id): Ditto.
9273         * avr-tdep.c (avr_frame_this_id): Ditto.
9274
9275 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
9276
9277         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9278
9279 2004-04-22  Jim Blandy  <jimb@redhat.com>
9280
9281         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9282         register number zero.
9283
9284 2004-04-21  Michael Snyder  <msnyder@redhat.com>
9285
9286         * mips-tdep.c (heuristic_proc_start): 
9287         Warning() already prefixes "Warning: ".
9288
9289 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9290
9291         * annotate.h (deprecated_annotate_starting_hook)
9292         (deprecated_annotate_stopped_hook)
9293         (deprecated_annotate_exited_hook)
9294         (deprecated_annotate_signal_hook)
9295         (deprecated_annotate_signalled_hook): Deprecate.
9296         * tracepoint.h (deprecated_create_tracepoint_hook)
9297         (deprecated_delete_tracepoint_hook)
9298         (deprecated_modify_tracepoint_hook)
9299         (deprecated_trace_find_hook)
9300         (deprecated_trace_start_stop_hook): Deprecate.
9301         * target.h (deprecated_target_new_objfile_hook): Deprecate.
9302         * remote.h (deprecated_target_resume_hook)
9303         (deprecated_target_wait_loop_hook): Deprecate.
9304         * gdbcore.h (deprecated_exec_file_display_hook)
9305         (deprecated_file_changed_hook): Deprecate.
9306         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9307         * defs.h (deprecated_modify_breakpoint_hook)
9308         (deprecated_command_loop_hook, deprecated_show_load_progress)
9309         (deprecated_print_frame_info_listing_hook)
9310         (deprecated_query_hook, deprecated_warning_hook)
9311         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9312         (deprecated_delete_breakpoint_hook)
9313         (deprecated_interactive_hook, deprecated_registers_changed_hook)
9314         (deprecated_readline_begin_hook, deprecated_readline_hook)
9315         (deprecated_readline_end_hook, deprecated_register_changed_hook)
9316         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9317         (deprecated_context_hook, deprecated_target_wait_hook)
9318         (deprecated_attach_hook, deprecated_detach_hook)
9319         (deprecated_call_command_hook, deprecated_set_hook)
9320         (deprecated_error_hook, deprecated_error_begin_hook)
9321         (deprecated_ui_load_progress_hook): Deprecate.
9322         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9323         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9324         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9325         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9326         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9327         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9328         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9329         * annotate.c, aix-thread.c: Update.
9330
9331 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9332
9333         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9334         * vaxnbsd-tdep.c: Include "gdb_string.h".
9335
9336         * symfile.c (symbol_file_add_from_memory): #if 0 function.
9337         (add_symbol_file_from_memory_command): #if 0 function body, call
9338         error instead.
9339
9340 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9341
9342         * gdbcore.h: Update copyright.
9343         (deprecated_add_core_fns): Rename add_core_fns.
9344         * win32-nat.c (_initialize_core_win32): Update.
9345         * sun3-nat.c (_initialize_core_sun3): Update.
9346         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9347         * rs6000-nat.c (_initialize_core_rs6000): Update.
9348         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9349         * nto-tdep.c (_initialize_nto_tdep): Update.
9350         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9351         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9352         * mips-nat.c (_initialize_core_mips): Update.
9353         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9354         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9355         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9356         * lynx-nat.c (_initialize_core_lynx): Update.
9357         * irix5-nat.c (_initialize_core_irix5): Update.
9358         * i386-interix-nat.c (_initialize_core_interix): Update.
9359         * cris-tdep.c (_initialize_cris_tdep): Update.
9360         * corelow.c (deprecated_add_core_fns): Update.
9361         * core-regset.c (_initialize_core_regset): Update.
9362         * core-aout.c (_initialize_core_aout): Update.
9363         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9364         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9365         * alpha-nat.c (_initialize_core_alpha): Update.
9366
9367 2004-04-21  Jim Blandy  <jimb@redhat.com>
9368
9369         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9370
9371 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
9372
9373         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9374         Delete.
9375         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
9376         (read_attribute_value): Update calls to dwarf_alloc_block.
9377         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9378         dwarf2_tmp_obstack.
9379         (psymtab_to_symtab_1): Likewise.  Clean up using
9380         free_stack_comp_unit.
9381         (add_to_cu_func_list): Use the comp_unit_obstack.
9382
9383 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
9384
9385         * dwarf2read.c (dwarf2_flag_true_p): New function.
9386         (die_is_declaration): Use the function above. Add some comments.
9387
9388 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
9389
9390         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9391         architecture when registering sparcnbsd_core_osabi_sniffer.
9392         Adjust comment.
9393
9394 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
9395
9396         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9397         return value.
9398
9399         Based on a patch from Brian Ford <ford@vss.fsi.com>:
9400         * i386-tdep.c: Correct register numbering scheme comments
9401         throughout.
9402         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9403         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9404         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9405         (i386_gdb_arch_init): Likewise.
9406
9407         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9408         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9409         ppcnbsd-tdep.o.
9410
9411         * m68k-tdep.h: Tweak comments.
9412         * m68k-tdep.c: Tweak comment.
9413
9414 2004-04-17  Randolph Chung  <tausq@debian.org>
9415
9416         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9417         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9418         (hppa_hpux_som_init_abi): Set is_elf to 0.
9419         (hppa_hpux_elf_init_abi): Set is_elf to 1.
9420         * hppa-tdep.c (low_text_segment_address): Remove global.
9421         (record_text_segment_lowaddr): Pass in low address as parameter. Use
9422         section offset to calculate segment address.
9423         (internalize_unwinds): Define low_text_segment_address as local and
9424         pass to record_text_segment_lowaddr for ELF targets.
9425         (hppa_gdbarch_init): Zero fill tdep structure.
9426         (hppa_dump_tdep): Print tdep structure.
9427         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9428
9429 2004-04-17  Randolph Chung  <tausq@debian.org>
9430
9431         * hppa-tdep.c (hppa_pseudo_register_read): Define.
9432         (hppa_gdbarch_init): Set pseudo_register_read.
9433         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9434         * regcache.c (supply_register): Remove check for
9435         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9436
9437 2004-04-17  Randolph Chung  <tausq@debian.org>
9438
9439         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9440         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9441         (hpread_adjust_stack_address): Move to hpread.c.
9442         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9443         obj_private_struct): Move from tm-hppa.h.
9444         * hpread.c (hppa-tdep.h): Include.
9445         (hpread_adjust_stack_address): Move from hppa-tdep.c.
9446         (hpread_read_function_type, hpread_read_doc_function_type)
9447         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
9448         directly.
9449         * pa64solib.c (hppa-tdep.h): Include.
9450         * somsolib.c (hppa-tdep.h): Include.
9451         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9452         inferior_status): Remove unused forward declarations.
9453         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9454         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
9455         obj_private_struct): Move to hppa-tdep.h.
9456         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9457
9458 2004-04-17  Randolph Chung  <tausq@debian.org>
9459
9460         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9461         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9462         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9463         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9464         Remove forward declaration and make static.
9465         (hppa_reg_struct_has_addr): Remove.
9466
9467 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9468
9469         * observer.sh: Move comments in sed command to first column.
9470
9471 2004-04-16  Jason Molenda  (jmolenda@apple.com)
9472
9473         * frame.c: Minor typeo corrections in comments.
9474
9475 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9476
9477         * observer.c (observer_test_first_notification_function): Update
9478         function profile.
9479         (observer_test_second_notification_function): Likewise.
9480         (observer_test_third_notification_function): Likewise.
9481
9482 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
9483
9484         From Brian Ford <ford@vss.fsi.com>:
9485         * i386-tdep.c (i386_coff_init_abi): New function.
9486         * i386-tdep.h (i386_coff_init_abi): New prototype.      
9487         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
9488         register number translation functions for DWARF and DWARF 2.
9489
9490 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9491
9492         * dwarf2read.c: Back out my previous change, it was incorrect.
9493
9494 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
9495
9496         * dwarf2read.c: Include "hashtab.h".
9497         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9498         has_namespace_info.
9499         (struct partial_die_info): Add comments.  Use bitfields to reduce
9500         memory footprint.  Add scope, scope_set, has_specification,
9501         spec_offset, die_parent, die_child, and die_sibling.
9502         (peek_die_abbrev): Add prototype.
9503         (partial_read_comp_unit_head): New function, broken out from
9504         dwarf2_build_psymtabs_hard.
9505         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9506         Use partial_read_comp_unit_head.  Initialize the CU and
9507         comp_unit_obstack.  Update calls to read_partial_die and
9508         scan_partial_symbols.  Use free_stack_comp_unit and
9509         load_partial_dies.
9510         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
9511         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
9512         Update calls to helper functions.  Remove NAMESPACE argument.
9513         Update comments.
9514         (partial_die_parent_scope, partial_die_full_name): New functions.
9515         (add_partial_symbol): Remove namespace argument.  Update call to
9516         pdi_needs_namespace.  Use partial_die_full_name.  Handle
9517         DW_TAG_namespace.  Check has_namespace_info flag.
9518         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
9519         tag.  Handle namespaces.
9520         (add_partial_namespace, add_partial_enumeration): Simplify.
9521         (guess_structure_name): New function, derived from
9522         add_partial_structure.
9523         (add_partial_structure): Remove.
9524         (determine_class_name): Update comment.
9525         (dwarf2_read_abbrevs): Set has_namespace_info flag.
9526         (is_type_tag_for_partial, load_partial_dies): New functions.
9527         (read_partial_die): Pass abbrev and abbrev_len as arguments.
9528         Record specifications instead of following them immediately.
9529         (find_partial_die_in_comp_unit, find_partial_die)
9530         (fixup_partial_die, free_stack_comp_unit)
9531         (hashtab_obstack_allocate, dummy_obstack_deallocate)
9532         (partial_die_hash, partial_die_eq): New functions.
9533         * Makefile.in (hashtab_h): Define.
9534         (dwarf2read.o): Update dependencies.
9535         (observer_inc, observer_h): Move to the correct section.
9536
9537 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9538
9539         * dwarf2read.c (dwarf2_attribute_true_p): New function.
9540         (die_is_declaration): Use the function above. Add comment.
9541
9542 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9543
9544         * dwarf2read.c (read_structure_scope): Identify stub types
9545         using die_is_declaration() only.
9546
9547 2004-04-15  Roland McGrath  <roland@redhat.com>
9548
9549         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9550         argument instead of NAME.
9551         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9552         in call to symbol_file_add_with_addrs_or_offsets.
9553         (build_addr_info): New function, helper for ...
9554         (symbol_file_add_from_memory): New function.
9555         (add_symbol_file_from_memory_command): New function using that.
9556         (_initialize_symfile): Register it for add-symbol-file-from-memory.
9557         (pre_add_symbol_hook): Add const to argument type.
9558         * symfile.h (symbol_file_add_from_memory): Declare it.
9559
9560 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9561
9562         * NEWS (New native configurations): Mention OpenBSD/vax.
9563         * configure.host: Add vax-*-openbsd*.
9564         * config/vax/obsd.mh: New file.
9565         * config/vax/nm-obsd.h: New file.
9566
9567         * vax-tdep.c: Include "regset.h".
9568         (vax_supply_gregset): New function.
9569         (vax_gregset): New variable.
9570         (vax_regset_from_core_section): New function.
9571         (vax_gdbarch_init): Set regset_from_core_section.
9572         * Makefile.in (vax-tdep.o): Update dependencies.
9573
9574 2004-04-15  Andrew Cagney  <cagney@redhat.com>
9575
9576         * observer.c (normal_stop_subject, observer_notify_normal_stop)
9577         (observer_normal_stop_notification_stub)
9578         (observer_attach_normal_stop, observer_detach_normal_stop):
9579         Delete, replaced by #include "observer.inc".
9580         * infrun.c (normal_stop): Pass "stop_bpstat" to
9581         observer_notify_normal_stop.
9582         * Makefile.in (observer_inc): Define.
9583         (observer.o): Update dependencies.
9584         (observer.h, observer.inc): New rules.
9585         * observer.h: Delete file.
9586         * observer.sh: New file.
9587
9588 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9589
9590         * vax-tdep.c (vax_frame_cache): Fix typo.
9591
9592 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9593
9594         * NEWS (New native configurations): Mention NetBSD/vax.
9595         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9596         * config/vax/nbsdelf.mh: New file.
9597         * config/vax/nbsdaout.mh: New file.
9598         * config/vax/nm-nbsd.h: New file.
9599         * config/vax/nm-nbsdaout.h: New file.
9600
9601         * vaxnbsd-tdep.c: New file.
9602         * Makefile.in (vaxnbsd-tdep.o): New dependency.
9603         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9604         * config/vax/nbsd.mt: New file.
9605         * config/vax/tm-nbsd.h: New file.
9606
9607         * Makefile.in (vaxbsd-nat.o): New dependency.
9608
9609         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9610         * vax-tdep.c (vax_store_arguments): Remove struct_return and
9611         struct_addr arguments.  Don't push return value address.
9612         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9613         arguments to vax_store_arguments.  Store return value address in
9614         R1.
9615         (vax_store_struct_return, vax_extract_return_value)
9616         (vax_store_return_value): Remove functions.
9617         (vax_return_value): New function.
9618         (vax_gdbarch_init): Set return value.  Don't set
9619         deprecated_store_struct_return, deprecated_extract_struct_return
9620         and deprecated_store_return_value.
9621
9622 2004-04-14  Andreas Schwab  <schwab@suse.de>
9623
9624         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9625         value buffer.
9626         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9627
9628 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9629
9630         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9631         (vax_unwind_dummy_id): New functions.
9632         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9633         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9634         variables.
9635         (vax_fix_call_dummy): Remove function.
9636         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9637         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9638         call_dummy_location, deprecated_call_dummy_words,
9639         deprecated_sizeof_call_dummy_words,
9640         deprecated_call_dummy_breakpoint_offset,
9641         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9642         and deprecated_dummy_write_sp.
9643
9644 2004-04-13  David Carlton  <carlton@kealia.com>
9645
9646         * MAINTAINERS: Move myself to "paper trail" section.
9647
9648 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
9649
9650         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9651         "trad-frame.h".
9652         (vax_frame_init_saved_regs): Remove function.
9653         (vax_sigtramp_saved_pc): Remove function.
9654         (vax_frame_saved_pc): Remove function.
9655         (vax_frame_args_address): Remove function.
9656         (vax_frame_num_args): Rewrite.
9657         (vax_frame_chain): Remove function.
9658         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9659         VAX_FP_REGNUM.
9660         (vax_pop_frame): Likewise.
9661         (vax_saved_pc_after_call): Remove function.
9662         (struct vax_frame_cache): New structure.
9663         (vax_frame_cache): New function.
9664         (vax_frame_this_id): New function.
9665         (vax_frame_prev_register): New function.
9666         (vax_frame_unwind): New variable.
9667         (vax_frame_sniffer): New function.
9668         (vax_frame_base_address): New function.
9669         (vax_frame_args_address): New function.
9670         (vax_frame_base): New variable.
9671         (vax_unwind_pc): New function.
9672         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9673         deprecated_fp_regnum, deprecated_saved_pc_after_call,
9674         deprecated_frame_chain, deprecated_frame_saved_pc,
9675         deprecated_frame_args_address and
9676         deprecated_frame_init_saved_regs.
9677         * Makefile.in (vax-tdep.o): Update dependencies.
9678
9679         * vaxbsd-nat.c: New file.
9680
9681         * vax-tdep.h: Update copyright year.  Adjust comments.
9682         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9683         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9684         (vax_regnum): New enum.  Replacing...
9685         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9686         (VAX_PS_REGNUM): ... these removed macros.
9687         * vax-tdep.c (vax_register_name): Remove prototype.
9688         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
9689         (vax_register_byte, vax_register_raw_size,
9690         vax_register_virtual_size, vax_register_virtual_type): Remove
9691         functions.
9692         (vax_register_type): New function.
9693         (vax_breakpoint_from_pc): Reorganize.
9694         (vax_gdbarch_init): Set register_type.  Don't set
9695         deprecated_register_size, deprecated_register_bytes,
9696         deprecated_register_byte, deprecated_register_raw_size,
9697         deprecated_max_register_raw_size,
9698         deprecated_register_virtual_size,
9699         deprecated_max_register_virtual_size and
9700         deprecated_register_virtual_type.  Add comment on stack direction.
9701
9702 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
9703
9704         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9705         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9706         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9707
9708 2004-04-10  Randolph Chung  <tausq@debian.org>
9709
9710         * MAINTAINERS (write after approval): Add myself.
9711
9712 2004-04-07  Randolph Chung  <tausq@debian.org>
9713
9714         * hppa-tdep.c (hppa_inner_than): Remove.
9715         (is_pa_2): Remove unused static variable.
9716         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9717
9718 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
9719
9720         * language.h (language_defn): Add new la_post_parser field.
9721         * parser-defs.h (null_post_parser): New declaration (default for
9722         la_post_parser).
9723
9724         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9725         insert call to that function.
9726         (parse_exp_in_context): New function, including code formerly in
9727         parse_exp_1.  Calls language-dependent post-parser after
9728         prefixification.
9729         (parse_expression_in_context): New exported function.
9730         (null_post_parser): New definition.
9731         * expression.h (parse_expression_in_context): Add declaration.
9732
9733         * p-lang.c (pascal_language_defn): Add trivial post-parser.
9734         * c-lang.c (c_language_defn): Ditto.
9735         (cplus_language_defn): Ditto.
9736         (asm_language_defn): Ditto.
9737         (minimal_language_defn): Ditto.
9738         * f-lang.c (f_language_defn): Ditto.
9739         * jv-lang.c (java_language_defn): Ditto.
9740         * language.c (unknown_language_defn): Ditto.
9741         (auto_language_defn): Ditto.
9742         (local_language_defn): Ditto.
9743         * m2-lang.c (m2_language_defn): Ditto.
9744         * scm-lang.c (scm_language_defn): Ditto.
9745         * obj-lang.c (objc_language_defn): Ditto.
9746
9747 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9748
9749         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9750         (amd64nbsd_mcontext_addr): New function.
9751         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9752         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
9753         with amd64nbsd_r_reg_offset, instead of building it on the fly.
9754
9755         * corelow.c (core_xfer_partial): Fix coding standards violation.
9756         Add support for TARGET_OBJECT_WCOOKIE.
9757
9758         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9759         deprecated_pc_in_sigtramp.
9760         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9761         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9762         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9763         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9764         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9765         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9766         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9767
9768         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9769         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9770         Fix typo.
9771
9772         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9773         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9774         (amd64_collect_fxsave): Likewise.
9775
9776         * i386-sol2-tdep.c: Include "gdb_string.h".
9777         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9778         name.
9779         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9780
9781 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9782
9783         * i386-sol2-tdep.c: Include "solib-svr4.h".
9784         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9785         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9786         * config/i386/tm-i386sol2.h: Include :solib.h".
9787         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9788         solib-svr4.o and solib-legacy.o.
9789         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9790         solib-svr4.o.
9791
9792 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
9793
9794         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9795         whether a register is supplied by PTRACE_GETFPREGS.
9796         (store_inferior_registers): Likewise.
9797         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9798         whether a register is supplied by PT_GETFPREGS.
9799         (store_inferior_registers): Likewise.
9800
9801         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9802         * config/i386/linux64.mt (TDEPFILES): Likewise.
9803
9804         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
9805
9806         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9807         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9808         the program counter is in the range specified by `struct
9809         gdbarch_tdep'.
9810         * amd64-linux-tdep.c: Include "symtab.h".
9811         (amd64_linux_pc_in_sigtramp): Remove function.
9812         (amd64_linux_sigtramp_p): New function.
9813         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9814         deprecated_pc_in_sigtramp.
9815         * amd64nbsd-tdep.c: Include "symtab.h".
9816         (amd64nbsd_sigtramp_p): New function.
9817         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9818         deprecated_pc_in_sigtramp.
9819         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
9820         few comments.
9821         (amd64obsd_pc_in_sigtramp): Remove function.
9822         (amd64obsd_sigtramp_p): New function.
9823         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9824         deprecated_pc_in_sigtramp.
9825         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9826         (i386bsd_pc_ins_sigtramp): Remove prototype.
9827         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9828         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9829         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9830         the program counter is in the range specified by `struct
9831         gdbarch_tdep'.
9832         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9833         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9834         (i386_go32_pc_in_sigtramp): Remove function.
9835         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9836         Initialize TDEP->sigtramp_p.
9837         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9838         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
9839         deprecated_pc_in_sigtramp.
9840         * i386-linux-tdep.c: Adjust comments.
9841         (i386_linux_pc_in_sigtramp): Remove function.
9842         (i386_linux_sigtramp_p): New function.
9843         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9844         deprecated_pc_in_sigtramp.
9845         * i386-nto-tdep.c: Update copyright year.
9846         (i386nto_pc_in_sigtramp): Remove function.
9847         (i386nto_sigtramp_p): New function.
9848         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9849         SP_REGNUM.
9850         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9851         deprecated_pc_in_sigtramp.
9852         * i386-sol2-tdep.c: Update copyright year.
9853         (i386_sol2_pc_in_sigtramp): Remove function.
9854         (i386_sol2_sigtramp_p): New function.
9855         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9856         deprecated_pc_in_sigtramp.
9857         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9858         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9859         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9860         deprecated_sigtramp_start and deprecated_sigtramp_end.
9861         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9862         (i386nbsd_pc_in_sigtramp): Remove function.
9863         (i386nbsd_sigtramp_p): New function.
9864         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9865         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9866         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9867         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9868         (i386obsd_pc_in_sigtramp): Remove function.
9869         (i386obsd_sigtramp_p): New function.
9870         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9871         functions.
9872         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9873         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9874         TDEP->sigtramp_p.
9875         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9876         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9877         dependencies.
9878
9879         * config/i386/i386aout.mt: Remove file.
9880
9881         * configure.tgt: Remove i[34567]86-*-go32*,
9882         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9883         and i[34567]86-*-isc*.  Set gdb_target to i386 for
9884         i[34567]86-*-netware* and i[34567]86-*-*.
9885         * config/i386/i386.mt: New file.
9886         * config/i386/embed.mt: Remove file.
9887         * config/i386/go32.mt: Remove file.
9888         * config/i386/i386nw.mt: Remove file.
9889         * config/i386/i386v.mt: Remove file.
9890         * config/i386/tm-go32.h: Remove file.
9891
9892         * tui/tui-hooks.c: Include "readline/readline.h" after
9893         "gdb_curses.h" instead of before.
9894         * tui/tui-io.c: Likewise.
9895
9896         * tui/tui.c: Fix typo in comment.
9897
9898         * sparc64-tdep.c (sparc_address_from_register): Remove function.
9899
9900 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9901
9902         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9903         (deprecated_exception_support_initialized): Declare.
9904         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9905         (initialize_hp_cxx_exception_support)
9906         (child_enable_exception_callback): Update.
9907         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9908         (deprecated_exception_support_initialized): Rename
9909         deprecated_exception_catchpoints_are_fragile and
9910         deprecated_exception_support_initialized.
9911         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9912
9913         * symtab.c (deprecated_hp_som_som_object_present): Rename
9914         hp_som_som_object_present.
9915         * symtab.h (deprecated_hp_som_som_object_present): Declare.
9916         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9917         Update.  Delete extern declaration.
9918         * valops.c (hp_som_som_object_present): Ditto.
9919         * parse.c (deprecated_hp_som_som_object_present)
9920         (parse_nested_classes_for_hpacc): Ditto.
9921         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9922         * hppa-hpux-tdep.c (hp_som_som_object_present)
9923         (initialize_hp_cxx_exception_support): Ditto.
9924         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9925         * cp-valprint.c (hp_som_som_object_present)
9926         (cp_print_class_method): Ditto.
9927         * c-typeprint.c (hp_som_som_object_present):
9928         (c_type_print_base): Ditto.
9929         * c-exp.y (hp_som_som_object_present): Ditto.
9930
9931 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9932
9933         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9934         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9935         (frame_unwind_find_by_frame): Re-implement the unwind code so
9936         that it can both prepend and append sniffers.  Replace
9937         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9938         * tramp-frame.c (tramp_frame_append): Use
9939         frame_unwind_prepend_unwinder.
9940         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9941         frame_unwind_register_unwinder.
9942         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9943         tramp_frame_append.
9944         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9945         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9946         (mips_linux_init_abi): Update.
9947
9948 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
9949
9950         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9951         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
9952         file support.
9953
9954 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
9955
9956         * ia64-tdep.c (elf.h): Don't include.
9957         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9958
9959 2004-04-07  Jason Molenda  (jmolenda@apple.com)
9960
9961         * frame.h: Typeo corrections in comments.
9962
9963 2004-04-07  Jim Blandy  <jimb@redhat.com>
9964
9965         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9966         %esp and %ebp
9967
9968 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
9969
9970         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9971         * config/sparc/linux64.mt (TDEPFILES): Likewise.
9972         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9973         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9974         and solib-legacy.o.
9975         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9976         solib-svr4.o.
9977         * config/sparc/tm-sol2.h: Update copyright year.  Include
9978         "solib.h".
9979
9980         * sparc-sol2-tdep.c: Update copyright year.  Include
9981         "solib-svr4.h".
9982         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9983         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9984         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9985         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9986         dependencies.
9987
9988 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9989
9990         * infttrace.c: Include "infttrace.h".
9991         * infttrace.h: Include "target.h".
9992         * Makefile.in (infttrace_h): Update.
9993         (infttrace.o): Update.
9994
9995 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9996
9997         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9998         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9999         move extern declarations from here ...
10000         * infttrace.h: ... to here.
10001         * Makefile.in (hppah-nat.o): Update dependencies.
10002
10003         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
10004         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
10005         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
10006         (hppa_breakpoint_from_pc): Delete.
10007
10008         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
10009
10010 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10011
10012         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
10013         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
10014         <sys/file.h>.
10015
10016 2004-04-06  Randolph Chung  <tausq@debian.org>
10017
10018         Committed by Andrew Cagney (mechanical change).
10019         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10020         exception_catchpoints_are_fragile, find_stub_with_shl_get,
10021         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10022         child_enable_exception_callback, current_ex_event,
10023         null_symtab_and_line, child_get_current_exception_event,
10024         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10025         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10026         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10027         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10028         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10029         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10030         Move hpux-specific definitions ...
10031         * hppa-hpux-tdep.c: ... to here.
10032
10033 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10034
10035         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10036         skip_prologue_using_sal.
10037
10038 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10039
10040         * config/i386/tm-i386.h: Delete file.
10041         * config/i386/tm-vxworks.h: Update copyright, do not include
10042         "tm-i386.h".
10043         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10044         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10045         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10046         * config/i386/ncr3000.mt (TM_FILE): Delete.
10047         * config/i386/interix.mt (TM_FILE): Delete.
10048         * config/i386/i386v.mt (TM_FILE): Delete.
10049         * config/i386/i386nw.mt (TM_FILE): Delete.
10050         * config/i386/i386gnu.mt (TM_FILE): Delete.
10051         * config/i386/i386aout.mt (TM_FILE): Delete.
10052         * config/i386/embed.mt (TM_FILE): Delete.
10053
10054 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
10055
10056         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10057         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10058         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10059         (accg7_regnum): New constants.
10060         (last_spr_regnum, last_pseudo_regnum): Update.
10061         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10062         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10063         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10064         for accg registers.
10065         (frv_register_sim_regno): Update spr_map[].
10066
10067 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10068
10069         * config/mips/xm-riscos.h: Delete.
10070         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10071         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10072         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10073         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10074         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10075         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10076         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10077         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10078         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10079         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10080         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10081         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10082         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10083         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10084         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10085         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10086         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10087         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10088         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10089         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10090         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10091         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10092         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10093         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10094         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10095         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10096
10097         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10098         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10099         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10100         * configure.host: Remove m680[01]0-sun-sunos3*,
10101         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10102         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10103         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10104         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10105         mips-*-riscos*.
10106         * NEWS: Mention removed systems.
10107
10108 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10109
10110         GDB 6.1 release created from 6.1 branch.
10111
10112 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10113
10114         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10115         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10116         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10117
10118         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10119         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10120         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10121
10122 2004-04-03  Jim Blandy  <jimb@redhat.com>
10123
10124         * MAINTAINERS: Chris Faylor has changed employers; add him to
10125         "paper trail" section, and update his E-mail address.
10126
10127 2004-04-03  Andrew Cagney  <cagney@redhat.com>
10128
10129         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10130         generic dummy frames.
10131         * dummy-frame.c: Update copyright.
10132         (dummy_frame_sniffer): Delete check for generic dummy frames.
10133
10134         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10135         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10136         (REG_PARM_STACK_SPACE): Delete.
10137         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10138         Inline reference to REG_PARM_STACK_SPACE.
10139
10140         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10141         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10142         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10143         (FRAME_BASE_BEFORE_SIGTRAMP)
10144         (hppa32_hpux_frame_base_before_sigtramp)
10145         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10146         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10147         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10148         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10149         (FRAME_BASE_BEFORE_SIGTRAMP)
10150         (hppa64_hpux_frame_base_before_sigtramp)
10151         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10152
10153 2004-04-03  Andrew Cagney  <cagney@redhat.com>
10154
10155         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10156
10157 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10158
10159         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10160         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10161         * dummy-frame.h: Delete out-of-date comments.
10162         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10163         * gdbarch.h, gdbarch.c: Re-generate.
10164
10165 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
10166
10167         Committed by Andrew Cagney <cagney@redhat.com>.
10168         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10169         into account an instruction saving a register if we have already
10170         seen an earlier instruction saving that same register.
10171
10172 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10173
10174         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10175         * gdbarch.h, gdbarch.c: Re-generate.
10176         * frame.c (legacy_get_prev_frame): Delete references to
10177         DEPRECATED_INIT_FRAME_PC_FIRST.
10178
10179         * infrun.c (pc_in_sigtramp): Delete function.
10180         (check_sigtramp2): Inline call to pc_in_sigtramp, use
10181         get_frame_type.
10182
10183 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10184
10185         * infrun.c (handle_step_into_function): Delete code conditional on
10186         legacy_frame_p.
10187         (handle_inferior_event, step_over_function): Ditto.
10188
10189 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10190
10191         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10192         "previous frame inner to this frame" test.
10193
10194 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10195
10196         * frame.c (safe_frame_unwind_memory): New function.
10197         * frame.h (safe_frame_unwind_memory): Declare.  Update description
10198         of /safe_/ methods.
10199         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10200         "next_frame".  Use safe_frame_unwind_memory.
10201         (tramp_frame_sniffer): Update call to tramp_frame_start.
10202
10203 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
10204
10205         * dwarf2read.c (dwarf2_objfile_data_key): New.
10206         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10207         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10208         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10209         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10210         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10211         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10212         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10213         Remove variables.
10214         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
10215         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10216         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10217         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10218         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10219         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10220         Remove macros.
10221         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
10222         data.
10223         (dwarf2_locate_sections, dwarf2_build_psymtabs)
10224         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10225         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10226         (read_partial_die, read_full_die, read_indirect_string)
10227         (dwarf_decode_line_header, dwarf_decode_macros)
10228         (dwarf2_symbol_mark_computed): Remove use of removed macros.
10229         Update uses of removed variables.
10230         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
10231         of removed macros.
10232         (_initialize_dwarf2_read): New function.
10233         * symfile.h (dwarf2_has_info): Update prototype.
10234         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10235         * elfread.c (elf_symfile_read): Likewise.
10236
10237 2004-04-01  Jim Blandy  <jimb@redhat.com>
10238
10239         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10240         function for register numbers on all the rs6000-derived targets.
10241         (rs6000_gdbarch_init): Don't register a separate
10242         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
10243         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10244         variants.
10245
10246         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10247         numbering.
10248
10249 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
10250
10251         * valarith.c: Update copyright notice.
10252         (value_add): Handle range types.
10253         (value_sub): Ditto.
10254         (value_equal): Ditto.
10255         (value_less): Ditto.
10256         (value_neg): Ditto.
10257         (value_complement): Ditto.
10258         (value_binop): Simplify slightly by using is_integral_type and
10259         eliminiating unnecessary COERCE_ENUMs.
10260
10261 2004-03-31  Andrew Cagney  <cagney@redhat.com>
10262
10263         * frame.h (frame_unwind_id): Declare.
10264         * frame.c (frame_unwind_id): New function.
10265         (get_prev_frame_1): New function.
10266         (frame_debug_got_null_frame): New function.
10267         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
10268         code proper to prev_frame, update description.
10269         * infrun.c (step_over_function): Use frame_unwind_id.
10270
10271 2004-04-31  J. Brobecker  <brobecker@gnat.com>
10272
10273         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10274         (hppa64_push_dummy_call): Likewise.
10275
10276 2004-03-30  Jim Blandy  <jimb@redhat.com>
10277
10278         From Ulrich Weigand:
10279         * utils.c (query): Do not use a va_list variable multiple times.
10280
10281 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10282
10283         * Makefile.in (linux_nat_h): Update dependencies.
10284         * configure.in: Check for <gnu/libc-version.h>.
10285         * configure: Regenerate.
10286         * config.in: Regenerate.
10287         * linux-nat.h: Include "target.h".  Add waitstatus field to
10288         struct lwp_info.
10289         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10290         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10291         to.
10292         (lin_lwp_handle_extended): New function.  Handle clone events.
10293         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
10294         thread exit events.
10295         (child_wait): Handle clone events.
10296         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10297         * linux-nat.c (linux_enable_event_reporting): Turn on
10298         PTRACE_O_TRACECLONE.
10299         (linux_handle_extended_wait): Handle clone events.
10300         * thread-db.c: Include <gnu/libc-version.h>.
10301         (struct private_thread_info): Add dying flag.
10302         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10303         higher.
10304         (attach_thread): Update comments.  Handle dying threads.
10305         (detach_thread): Set the dying flag.
10306         (check_event): Always call attach_thread.
10307
10308 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10309
10310         * mips-tdep.c (mips_pdr_data): New.
10311         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10312         (_initialize_mips_tdep): Initialize mips_pdr_data.
10313
10314 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
10315
10316         * minsyms.c (install_minimal_symbols): Move dropping leading
10317         char from linkage name from here...
10318         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
10319         test for "__gnu_compiled*" symbols.
10320
10321 2004-03-28  Jim Blandy  <jimb@redhat.com>
10322
10323         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10324         registers to temp register r0 and byte stores as prologue
10325         instructions.
10326
10327 2004-03-28  Andrew Cagney  <cagney@redhat.com>
10328
10329         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
10330         arm*-*-*.
10331
10332 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
10333
10334         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10335         and switch the layout to force a display of register window.
10336
10337 2004-02-26  J. Brobecker  <brobecker@gnat.com>
10338
10339         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10340         of the INTEGER class.
10341
10342 2004-03-26  Jim Blandy  <jimb@redhat.com>
10343
10344         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10345         bytes long on PPC GNU/Linux.
10346
10347 2004-03-26  David Carlton  <carlton@kealia.com>
10348
10349         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10350
10351 2004-03-25  Andrew Cagney  <cagney@redhat.com>
10352
10353         * PROBLEMS: Add general section titles, remove references to
10354         specific releases.
10355
10356 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
10357
10358         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10359         INT_REGISTER_SIZE.
10360         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10361         FP_REGISTER_VIRTUAL_SIZE.
10362         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10363         of DEPRECATED_REGISTER_RAW_SIZE.
10364         (arm_register_type): Add gdbarch argument.
10365         (arm_register_raw_size, arm_register_virtual_size): Delete.
10366         (arm_register_byte, arm_extract_return_value)
10367         (arm_store_return_value, arm_get_longjmp_target): Update references
10368         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10369         (arm_gdbarch_init): Likewise.  Don't set
10370         deprecated_register_raw_size, deprecated_register_virtual_size,
10371         deprecated_max_register_raw_size,
10372         deprecated_max_register_virtual_size, or
10373         deprecated_max_register_virtual_type.  Do set register_type.
10374         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10375         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10376         (FP_REGISTER_VIRTUAL_SIZE): Delete.
10377         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10378         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10379         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10380         INT_REGISTER_SIZE.
10381         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10382         (remote_rdp_store_register): Likewise.
10383
10384 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
10385
10386         * Makefile.in (mips-linux-tdep.o): Update dependencies.
10387         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10388         to after osabi initialization.
10389         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10390         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10391         functions.
10392         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10393         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10394         variables.
10395         (mips_linux_init_abi): Append signal trampoline unwinders.
10396
10397 2004-03-24  Andrew Cagney  <cagney@redhat.com>
10398
10399         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10400         * tramp-frame.c: Include "gdb_assert.h".
10401         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
10402         correct sizeof.
10403         (tramp_frame_append): Validate the tramp frame's instructions.
10404         * Makefile.in (tramp-frame.o): Update dependencies.
10405
10406 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10407
10408         * trad-frame.h (trad_frame_set_reg_addr): Declare.
10409
10410 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10411
10412         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10413         Nasser as past testsuite/lib/ (and other) maintainers.
10414
10415 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10416
10417         * infcmd.c (attach_command): Reread symbols if we already have
10418         an exec file.
10419
10420 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10421
10422         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10423
10424 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10425
10426         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10427         * gdbarch.h, gdbarch.c: Re-generate.
10428         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10429         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10430         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10431         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10432         (DEPRECATED_SIGTRAMP_START): Update.
10433         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10434         (DEPRECATED_SIGTRAMP_START): Update.
10435         * blockframe.c (find_pc_sect_partial_function): Update.
10436         * arch-utils.c (legacy_pc_in_sigtramp): Update.
10437
10438 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10439
10440         * remote.c (remote_open_1): Reopen the exec file and reread symbols
10441         if necessary.
10442
10443 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10444
10445         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10446         predicate, deprecate.
10447         * gdbarch.h, gdbarch.c: Re-generate.
10448         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10449         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10450         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10451         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10452         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10453         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10454         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10455         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10456         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10457         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10458         * blockframe.c (find_pc_partial_function): Update.
10459         * breakpoint.c (bpstat_what): Update.
10460         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10461         * frv-linux-tdep.c (frv_linux_init_abi): Update.
10462         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10463         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10464         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10465         * i386-linux-tdep.c (i386_linux_init_abi): Update.
10466         * i386-nto-tdep.c (i386nto_init_abi): Update.
10467         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10468         * i386-tdep.c (i386_sigtramp_frame_sniffer)
10469         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10470         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10471         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10472         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10473         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10474         * infrun.c (pc_in_sigtramp): Update.
10475         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10476         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10477         * mips-tdep.c (mips_gdbarch_init): Update.
10478         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10479         * ppc-linux-tdep.c: Update comment.
10480         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10481         * shnbsd-tdep.c (shnbsd_init_abi): Update.
10482         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10483         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10484         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10485         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10486         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10487         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10488         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10489         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10490
10491 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10492
10493         * tramp-frame.h, tramp-frame.h: New files.
10494         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10495         Update rules to include "tramp-frame.h" and "tramp-frame.c".
10496
10497         * Makefile.in: Update all dependencies.
10498
10499 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10500
10501         * Makefile.in (trad_frame_h): Add $(frame_h).
10502         * trad-frame.h: Update copyright.  Include "frame.h".
10503         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10504         (trad_frame_set_id, trad_frame_get_id): Declare.
10505         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10506         * trad-frame.c: Update copyright.
10507         (struct trad_frame_cache): Define.
10508         (trad_frame_cache_zalloc): New function.
10509         (trad_frame_set_id, trad_frame_get_id): New functions.
10510         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10511
10512 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10513
10514         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10515         s390_pltstub_unwind_cache.
10516         (s390_stub_frame_unwind_cache): Rename
10517         s390_pltstub_frame_unwind_cache.
10518         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10519         (s390_stub_frame_prev_register): Rename
10520         s390_pltstub_frame_prev_register.
10521         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10522         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10523
10524         From Ulrich Weigand:
10525         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10526         pointer calls like PLT calls.
10527
10528 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10529
10530         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10531         PC rather than the partial function start address.  Use the start
10532         address to sanity check the found PDR.
10533
10534 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10535
10536         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10537         linux_handle_extended_wait.
10538
10539 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10540
10541         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10542         function.
10543
10544         * frame.h (generic_pop_current_frame): Delete declaration.
10545         (deprecate_pop_dummy_frame): Deprecate
10546         generic_pop_dummy_frame.
10547         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10548         (generic_pop_current_frame): Delete function.
10549         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10550         generic_pop_current_frame.
10551         * v850-tdep.c (v850_pop_frame): Update.
10552         * mcore-tdep.c (mcore_pop_frame): Update.
10553         * sh64-tdep.c (sh64_pop_frame): Update.
10554         * h8300-tdep.c (h8300_pop_frame): Update.
10555
10556 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10557
10558         * frame.h (deprecated_pc_in_call_dummy): Rename
10559         generic_pc_in_call_dummy.
10560         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10561         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10562         generic_pc_in_call_dummy.
10563         (pc_in_dummy_frame): Make static.
10564         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10565         * gdbarch.h, gdbarch.c: Re-generate.
10566         * dummy-frame.c (dummy_frame_sniffer): Simplify.
10567         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10568         (legacy_get_prev_frame): Ditto.
10569         * inferior.h: Delete reference to generic_pc_in_call_dummy in
10570         comment.
10571
10572 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10573
10574         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10575         declaration and out-of-date comment.
10576         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10577         Delete function.
10578         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10579         deprecated_pc_in_call_dummy.
10580
10581         * infrun.c (handle_inferior_event): For non legacy frames, use the
10582         frame ID and frame type to identify a signal trampoline.  Update
10583         comments.
10584
10585 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
10586
10587         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10588         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10589
10590 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10591
10592         * frame-unwind.h: Update copyright.
10593         (struct frame_data): Add opaque declaration.
10594         (frame_sniffer_ftype): Declare.
10595         (struct frame_unwind): Add "unwind_data" and "sniffer".
10596         (frame_unwind_register_unwinder): Declare.
10597         (frame_unwind_find_by_frame): Add parameter "this_cache".
10598         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10599         (legacy_get_prev_frame, legacy_get_prev_frame)
10600         (get_frame_type): Pass the prologue_cache to
10601         frame_unwind_find_by_frame.
10602         * frame-unwind.c (struct frame_unwind_table_entry): Add field
10603         "unwinder".
10604         (frame_unwind_register_unwinder): New function.
10605         (frame_unwind_find_by_frame): Handle an unwind sniffer.
10606
10607 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
10608
10609         * bcache.c (print_percentage): Use floating point to avoid
10610         incorrect results when portion*100 overflows.
10611
10612 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10613
10614         * ppc_tdep.h (ppc_linux_frame_saved_pc)
10615         (ppc_linux_init_extra_frame_info)
10616         (ppc_linux_frameless_function_invocation)
10617         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10618         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10619         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10620         (rs6000_frame_chain): Delete declarations.
10621         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10622         (ppc_linux_init_extra_frame_info)
10623         (ppc_linux_frameless_function_invocation)
10624         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10625         (ppc_linux_init_abi): Remove registration of above deleted functions.
10626         * rs6000-tdep.c (rs6000_init_extra_frame_info)
10627         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10628         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10629         (rs6000_pop_frame, rs6000_frameless_function_invocation)
10630         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10631         (rs6000_gdbarch_init): Remove registration of above deleted functions.
10632         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10633         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10634         frame management for all OSABIs.
10635
10636 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10637
10638         Committed by Kevin Buettner <kevinb@redhat.com>.
10639
10640         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10641         Update copyright.
10642         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10643         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10644         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10645         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10646         unwinders.  #ifdef legacy frame code.
10647         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10648         "frame-base.h".
10649         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10650         (struct rs6000_frame_cache, rs6000_frame_cache)
10651         (rs6000_frame_this_id, rs6000_frame_prev_register)
10652         (rs6000_frame_sniffer, rs6000_frame_unwind)
10653         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10654         (rs6000_frame_base): Implement a traditional frame unwinder.
10655         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10656         frame unwinder.
10657
10658 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10659
10660         * breakpoint.c (adjust_breakpoint_address): Don't adjust
10661         breakpoint address for watchpoints or the catch eventpoints.
10662         Add new paramter ``bptype''.  Adjust all callers.
10663
10664 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10665
10666         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10667
10668         * PROBLEMS: Delete note that ARM does not use frame code, problem
10669         fixed.
10670
10671 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10672
10673         * stack.c (return_command): Delete code wrapped in #ifdef
10674         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10675
10676         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10677
10678 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10679
10680         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10681         DEPRECATED_IN_SIGTRAMP.
10682         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10683         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10684         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10685         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10686         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10687         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10688         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10689         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10690         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10691         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10692
10693 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10694
10695         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
10696         (struct frame_base_table_entry): Define.
10697         (struct frame_base_table): Re-implement as a linked list.
10698         (frame_base_init): Re-implement.
10699         (frame_base_table): Delete function.
10700         (append_predicate): Delete function.
10701         (frame_base_append_sniffer): Update.
10702         (frame_base_set_default): Update.
10703         (frame_base_find_by_frame): Update.
10704         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10705         * Makefile.in (frame-base.o): Update dependencies.
10706
10707 2004-03-17  Andrew Cagney  <cagney@redhat.com>
10708
10709         * frame.c (legacy_get_prev_frame): Pass correct frame to
10710         frame_unwind_find_by_frame.
10711
10712 2004-03-17  David Carlton  <carlton@kealia.com>
10713
10714         * NEWS: Mention C++ nested types and namespaces
10715
10716 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
10717
10718         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10719         and "Regressions since gdb 5.3.".  Add known regressions since
10720         gdb 6.0.
10721
10722 2004-03-16  David Carlton  <carlton@kealia.com>
10723
10724         * dwarf2read.c (process_structure_scope): Process children even
10725         when we're a declaration.
10726
10727 2004-03-16  Andrew Cagney  <cagney@redhat.com>
10728
10729         * symtab.h (find_pc_sect_partial_function): Delete declaration.
10730         * blockframe.c (find_pc_partial_function)
10731         (find_pc_sect_partial_function): Merge into a single
10732         find_pc_partial_function.
10733
10734 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10735
10736         * i386bsd-nat.c: s/regno/regnum/g.
10737         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10738         FP0_REGNUM.
10739         (store_inferior_registers): Likewise.
10740
10741 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10742
10743         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10744         of i387_fill_fsave.
10745         (store_inferior_registers): Call i387_collect_fsave and
10746         i387_collect_fxsave instead of i387_fill_fsave and
10747         i387_fill_fxsave.
10748
10749 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10750
10751         * Makefile.in (frame-unwind.o): Update dependencies.
10752         * frame-unwind.c: Include "gdb_obstack.h".
10753         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10754         parameter.
10755         (append_predicate): Delete function.
10756         (struct frame_unwind_table_entry): New structure.
10757         (struct frame_unwind_table): Replace "sniffer" with "head" and
10758         "tail".
10759         (frame_unwind_append_sniffer): Update.
10760         (frame_unwind_find_by_frame): Update.
10761         (_initialize_frame_unwind): Registe frame_unwind_init using
10762         gdbarch_data_register_pre_init.
10763
10764 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10765
10766         * i386bsd-nat.c: Update copyright year.
10767         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10768         define unconditionally.
10769
10770 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10771
10772         * i387-tdep.h (i387_collect_fsave): New prototype.
10773         * i387-tdep.c (i387_collect_fsave): New function containing most
10774         of the code from i387_fill_fsave.
10775         (i387_fill_fsave): Call i387_collect_fsave.
10776
10777 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10778
10779         * i386-linux-tdep.c: Update copyright year.
10780         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10781         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10782         svr4_ilp32_link_map_offsets instead of
10783         i386_linux_svr4_fetch_link_map_offsets.
10784
10785 2004-03-15  David Carlton  <carlton@kealia.com>
10786
10787         Fix for PR c++/1553:
10788         * dwarf2read.c (read_structure_type): Determine type name by
10789         calling determine_class_name.
10790         (determine_class_name): New.
10791         (determine_prefix): Look at TYPE_TAG_NAME and call
10792         determine_class_name when appropriate.
10793         (determine_prefix_aux, class_name): Delete.
10794         (read_namespace): Set die->type.
10795
10796 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10797
10798         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10799         unused macro definition.  The definition in target.h (or perhaps
10800         elsewhere) takes precedence.
10801
10802 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10803
10804         * ppc-tdep.h: Update copyright.
10805         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10806         function signatures to match "regsets.h".
10807         * ppc-linux-tdep.c: Include "regset.h".
10808         (ELF_GREGSET_SIZE): Delete.
10809         (right_supply_register): New function.
10810         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10811         using right_supply_register.
10812         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10813         functions.
10814         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10815         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10816         (_initialize_ppc_linux_tdep): Do not register
10817         ppc_linux_regset_core_fns.
10818         (ppc_linux_regset_from_core_section): Replace
10819         fetch_core_registers.
10820         (ppc_linux_regset_core_fns): Delete.
10821         * ppc-linux-nat.c: (right_fill_reg): New function.
10822         (supply_gregset): Update call to ppc_linux_supply_gregset.
10823         (fill_gregset): Clear the register set, use right_fill_reg.
10824         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10825         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10826
10827         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10828         unsigned.
10829
10830 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10831
10832         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10833         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10834         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10835         and register_gdbarch_data.
10836         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10837         (struct gdbarch_data): Replace "init" by "pre_init" and
10838         "post_init".
10839         * gdbarch.h, gdbarch.c: Re-generate.
10840         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10841         with"obstack", use OBSTACK_ZALLOC.
10842         (dwarf2_frame_ops): Delete.
10843         (dwarf2_frame_set_init_reg): Use gdbarch_data.
10844         (dwarf2_frame_init_reg): Use gdbarch_data.
10845         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10846         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10847         (_initialize_svr4_solib): Update.
10848         * user-regs.c (_initialize_user_regs): Update.
10849         * reggroups.c (_initialize_reggroup): Update.
10850         * regcache.c (_initialize_regcache): Update.
10851         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10852         * libunwind-frame.c (_initialize_libunwind_frame): Update.
10853         * gnu-v3-abi.c (init_gnuv3_ops): Update.
10854         * frame-unwind.c (_initialize_frame_unwind): Update.
10855         * frame-base.c (_initialize_frame_base): Update.
10856         * user-regs.c (user_reg_add): Update.
10857         * reggroups.c (reggroup_add): Update.
10858         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10859         * libunwind-frame.c (libunwind_frame_set_descr): Update.
10860         * frame-unwind.c (frame_unwind_append_sniffer): Update.
10861         * frame-base.c (frame_base_table): Update.
10862         * remote.c (_initialize_remote): Update.
10863         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10864
10865 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10866
10867         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10868
10869 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10870
10871         * Makefile.in (frv-linux-tdep.o): Add dependencies.
10872         * frv-linux-tdep.c: New file.
10873         * frv-tdep.c (struct gdbarch_tdep): Add new field
10874         ``sigcontext_reg_addr''.
10875         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10876         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10877         (frv_sigramp_frame_sniffer): New functions.
10878         (frv_sigtramp_frame_unwind): New static global.
10879         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
10880         sniffers.
10881         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10882         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10883
10884 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10885
10886         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10887         but not via a call to error(), when unable to read memory.
10888
10889 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10890
10891         * frv-tdep.c (frv_call_dummy_words): Delete.
10892         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10893
10894 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10895
10896         * infrun.c (handle_step_into_function, step_over_function): Only
10897         update and use STEP_FRAME_ID when the system is using legacy
10898         frames.  Update comments.
10899
10900 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
10901
10902         * amd64-linux-tdep.h: Remove file.
10903         * amd64-linux-tdep.c: Don't include "inferior.h" and
10904         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
10905         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10906         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10907         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10908         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10909         macros.
10910         (user_to_gdb_regmap): Remove variable.
10911         (amd64_linux_gregset_reg_offset): New variable.
10912         (amd64_core_fns): Remove variable.
10913         (fetch_core_registers): Remove function.
10914         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10915         functions.
10916         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10917         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10918         * Makefile.in (amd64_linux_tdep_h): Remove.
10919         (amd64-linux-nat.o): Update dependencies.
10920         (amd64-linux-tdep.o): Update dependencies.
10921
10922         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10923         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10924         functions.
10925         (fetch_inferior_registers, store_inferior_registers): Rewrite.
10926
10927         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10928         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10929
10930 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
10931
10932         * dwarf2read.c (read_structure_type): Rename from
10933         read_structure_scope.  Don't create a symbol or call process_die.
10934         Return immediately if die->type is set.  Call read_type_die before
10935         dwarf2_add_member_fn.
10936         (process_structure_scope): New function.
10937         (read_enumeration_type, process_enumeration_scope): New functions,
10938         broken out from read_enumeration.  Don't create the enumeration
10939         type if it has already been created.
10940         (read_enumeration): Removed.
10941         (process_die): Call read_structure_type, process_structure_scope,
10942         read_enumeration_type, and process_enumeration_scope.  Just call
10943         new_symbol for base and subrange types.  Add a comment about other
10944         type dies.
10945         (read_type_die): Call read_enumeration_type.
10946         (add_partial_structure, new_symbol): Update comments.
10947
10948 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10949
10950         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10951
10952 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10953
10954         * tui/tui-win.h (tui_get_cmd_list): Declare.
10955         * tui/tui-win.c (tui_command): New function.
10956         (tui_get_cmd_list): New function.
10957         (_initialize_tui_win): Moved initialization of tui command in
10958         tui_get_cmd_list.
10959
10960         * tui/tui-data.c (init_content_element): Setup new data members.
10961         (init_win_info): Likewise.
10962         (free_content_elements): Free it.
10963         * tui/tui-data.h (struct tui_data_element): Store the register
10964         content to print.
10965         (struct tui_data_info): Keep the current register group.
10966
10967         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10968
10969         * tui/tui-regs.h (tui_show_registers): Update prototype.
10970         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10971         (tui_resize_all): No need to calculate anything for register window.
10972         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10973         (tui_set_register_element, tui_set_general_regs_content): Remove.
10974         (tui_set_special_regs_content): Remove.
10975         (tui_set_general_and_special_regs_content): Remove.
10976         (tui_set_float_regs_content): Remove.
10977         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10978         (tui_set_regs_content): Remove.
10979         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10980         (tui_v_show_registers_command_support): Remove.
10981         (tui_show_registers): Use a reggroup to specify the registers to show.
10982         (tui_show_register_group): New function.
10983         (tui_display_registers_from): Compute the layout of register window
10984         and refresh with new API; be sure to delete old register windows.
10985         (tui_check_register_values): Update to use tui_get_register and
10986         tui_display_data.
10987         (tui_display_register): Just refresh the register window part.
10988         (tui_register_format): Format registers and save in tui_data_element.
10989         (tui_get_register): New to combine tui_reg_value_has_changed and
10990         tui_get_register_raw_value; fix to use the new gdb API.
10991         (tui_show_float_command): Renamed tui_reg_float_command.
10992         (tui_show_general_command): Renamed tui_reg_general_command.
10993         (tui_show_special_command): Renamed tui_reg_system_command.
10994         (_initialize_tui_regs): Remove unused commands.
10995
10996 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
10997
10998         * NEWS (New native configurations): Mention OpenBSD/amd64.
10999
11000         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
11001         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
11002         Remove defines.
11003         * config/i386/nm-fbsd64.h: Likewise.
11004         * config/i386/nm-obsd.h: Likewise.
11005         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
11006         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
11007
11008 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11009
11010         * frv-tdep.c (set_variant_scratch_registers): New function.
11011         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
11012         New constants.
11013
11014         From Richard Sandiford  <rsandifo@redhat.com>:
11015         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
11016
11017 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11018
11019         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
11020         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11021         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11022         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11023         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11024         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11025         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11026         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11027         definitions from frv-tdep.c to frv-tdep.h.
11028
11029 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11030
11031         Add shared library support for FR-V FDPIC ABI:
11032         * Makefile.in (solib-frv.o): Add dependencies.
11033         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11034         New functions.
11035         (frv_push_dummy_call): Add support for FDPIC ABI.
11036         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11037         for FDPIC ABI.
11038         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11039         (frv_fdpic_find_canonical_descriptor): Declare.
11040         * solib-frv.c: New file.
11041         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11042         * config/frv/tm-frv.h (solib.h): Include.
11043
11044 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11045
11046         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11047         (frv-tdep.o): Update dependencies.
11048         * frv-tdep.h: New file.
11049         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11050         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11051         constants.
11052         (struct gdbarch_tdep): Add new member ``frv_abi''.
11053         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11054         functions.
11055         (new_variant): Set ``frv_abi'' field.
11056         (gdb_arch_init): Detect FDPIC executables.
11057
11058 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
11059
11060         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11061         wrapper.
11062
11063 2004-03-11  Andrew Cagney  <cagney@redhat.com>
11064
11065         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11066
11067 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
11068
11069         * solist.h (master_so_list): New function.
11070         * solib.c (master_so_list): Likewise.
11071         * solib-svr4.c (enable_break): Iterate over so_list entries
11072         obtained from master list instead of entries obtained directly
11073         via svr4_current_sos().
11074
11075 2004-03-10  Ben Elliston  <bje@gnu.org>
11076
11077         * MAINTAINERS: Update my mail address.
11078
11079 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
11080
11081         * remote-m32r-sdi.c: Support hardware watchpoint.
11082
11083 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11084
11085         * user-regs.c: Update copyright years.
11086         (struct user_regs): Rename to gdb_user_regs.
11087         (append_user_reg, builtin_user_regs, user_regs_init)
11088         (user_reg_add, user_reg_map_name_to_regnum)
11089         (usernum_to_user_reg): Update.
11090
11091 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11092
11093         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11094         (skip_children): New functions.
11095         (locate_pdi_sibling): Call skip_children.
11096
11097 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11098
11099         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11100         * gdbtypes.c (check_typedef): Update comments.
11101
11102 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11103
11104         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11105         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11106         pointer.  Update comment about comp_unit_head.
11107         (struct abbrev_info): Shorten two int flags.
11108         (dwarf_alloc_abbrev): Take a CU argument.
11109         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11110         each time through the loop.  Update cleanup argument.
11111         (psymtab_to_symtab_1): Update cleanup call.
11112         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11113         abbrev_obstack.
11114         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11115         Just call obstack_free and clear the pointer.
11116
11117 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11118
11119         * infrun.c (handle_inferior_event): Remove short-circuit code for
11120         events in a different thread.
11121
11122 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11123
11124         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11125         print the whole transfer.
11126         (initialize_targets): Update description of "set debug target".
11127
11128 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11129
11130         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11131
11132 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
11133
11134         * MAINTAINERS (write after approval): Add myself.
11135
11136 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
11137
11138         * sh-tdep.c (sh_print_registers_info): Use for loop.
11139         Don't skip multiple registers when a float register is encountered.
11140
11141 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
11142
11143         Fix PR tdep/1291.
11144         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11145         to official SH documentation.
11146
11147 2004-03-07  Andrew Cagney  <cagney@redhat.com>
11148
11149         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11150         unused function.
11151
11152 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
11153
11154         * arm-tdep.c (thumb_get_next_pc): Handle BX.
11155         (arm_get_next_pc): Handle BX and BLX.
11156
11157 2004-03-07  Andrew Cagney  <cagney@redhat.com>
11158
11159         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11160         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11161         HPPA_SP_REGNUM.
11162         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11163         (hppa_target_read_fp): Delete.
11164         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11165         register_virtual_size, max_register_raw_size,
11166         max_register_virtual_size, register_byte, register_size,
11167         target_read_fp, fp_regnum, and register_bytes.  Set register_type
11168         instead of register_virtual_type.
11169         (hppa32_register_type, hppa64_register_type): Replace
11170         hppa32_register_virtual_type and hppa64_register_virtual_type.
11171         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11172         (HPPA_FP_REGNUM): Define.
11173
11174         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11175
11176         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11177         (pa_do_registers_info): Delete.
11178         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11179         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11180         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11181
11182         * infcall.c (legacy_push_dummy_code): Delete #ifdef
11183         GDB_TARGET_IS_HPPA code.
11184         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11185         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11186         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11187         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11188         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11189         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11190         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11191         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11192         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11193         (hppa_frameless_function_invocation, hppa64_store_return_value)
11194         (hppa_store_struct_return, hppa64_extract_return_value)
11195         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11196         (hppa32_call_dummy_length, hppa64_call_dummy_length)
11197         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11198         (find_proc_framesize, deposit_21, restore_pc_queue)
11199         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11200         (rp_saved, pc_in_linker_stub): Delete.
11201
11202         Unconditionally enable 64-bit frame and ABI code.
11203         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11204         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11205         push_dummy_frame, fix_call_dummy, push_arguments,
11206         call_dummy_location, extract_return_value, use_struct_convention,
11207         store_return_value, store_struct_return, saved_pc_after_call,
11208         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11209         frame_chain, frame_chain_valid, frameless_function_invocation,
11210         frame_saved_pc, and pop_frame.
11211
11212         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11213         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11214         (hppa_gdbarch_init): Do not set PC_REGNUM.
11215
11216 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
11217
11218         * config/alpha/tm-fbsd.h: Remove file.
11219         * config/alpha/fbsd.mt: Tweak comment.
11220         (TM_FILE): Set to tm-alpha.h.
11221
11222 2004-03-05  Andrew Cagney  <cagney@redhat.com>
11223
11224         * infrun.c (step_over_function): When non-legacy code, and no
11225         step_frame_id, use the unwinder to get the caller's frame ID.
11226
11227 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
11228
11229         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11230         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11231         bfd_arch_unknown.  Adjust comment.
11232
11233         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
11234         * i386obsd-tdep.c: Correct spelling in comment.
11235         * i386nbsd-tdep.c: Correct spelling in comment.
11236         * sparc-tdep.c: Correct spelling in comments.
11237
11238 2004-03-05  David Carlton  <carlton@kealia.com>
11239
11240         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11241         bug.
11242
11243 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
11244
11245         * sparc-tdep.c: Fix typo in comment.
11246
11247 2004-03-04  J. Brobecker  <brobecker@gnat.com>
11248
11249         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11250
11251 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
11252
11253         * dwarf2read.c: Add comment describing memory lifetimes.
11254         (struct dwarf2_pinfo): Update comment.
11255         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11256         (read_enumeration, new_symbol): Don't use obsavestring.
11257
11258 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
11259
11260         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11261         instead of amd64_fill_fxsave.
11262         * amd64bsd-nat.c (store_inferior_registers): Likewise.
11263         * amd64fbsd-nat.c (fill_fpregset): Likewise.
11264
11265         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11266         Reorganize code a bit.
11267
11268 2004-03-04  Orjan Friberg  <orjanf@axis.com>
11269
11270         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11271         when the frame pointer is pushed.  Don't set the frame pointer's
11272         address on the stack unless it's actually located there.
11273         Set the SRP's address on the stack correctly when the PC is still in
11274         the prologue.
11275         (cris_return_value): New function.
11276         (cris_gdbarch_init): Clear deprecated store_return_value,
11277         extract_return_value.
11278
11279 2004-03-02  Jim Blandy  <jimb@redhat.com>
11280
11281         * stabsread.c (reg_value_complaint): The maximum register number
11282         is one less than the number of registers.
11283
11284 2004-03-02  Andrew Cagney  <cagney@redhat.com>
11285
11286         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11287         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
11288         trailing comma and redundant assignment of I386_ST0_REGNUM.
11289         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11290         32-bit segment registers.
11291
11292 2004-03-01  Andrew Cagney  <cagney@redhat.com>
11293
11294         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11295         use frame_relative_level and get_next_frame.
11296
11297 2004-02-29  Andrew Cagney  <cagney@redhat.com>
11298
11299         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11300         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11301         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11302         Delete macro.
11303
11304 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11305
11306         * inflow.c (terminal_inferior): Don't give up the terminal if we
11307         previously couldn't get the inferior's terminal state.
11308
11309 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11310
11311         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11312         PC_REGNUM.
11313
11314 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11315
11316         * NEWS: Refer to GDB 6.1.
11317         * README: Refer to GDB 6.1.
11318         * PROBLEMS: Refer to GDB 6.1.
11319
11320 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
11321
11322         * thread-db.c (disable_thread_signals): Remove unused function.
11323
11324 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11325
11326         * amd64-nat.c: Include "gdb_string.h".
11327         (amd64_collect_native_gregset): Zero-extend the 32-bit
11328         general-purpose registers and %eip.
11329
11330         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11331         * amd64-tdep.c (amd64_collect_fxsave): New function.
11332         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11333
11334         * i387-tdep.h: Update copyright year.
11335         (i387_collect_fxsave): New prototype.
11336         * i387-tdep.c: Update copyright year.
11337         (i387_collect_fxsave): New function containing most of the code
11338         from i387_fill_fxsave.
11339         (i387_fill_fxsave): Call i387_collect_fxsave.
11340
11341 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11342
11343         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11344         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
11345
11346 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11347
11348         * amd64-tdep.c (amd64_frame_cache): Fix comment.
11349
11350 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11351
11352         * utils.c: Use "", instead of <>, to include readline.
11353         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11354         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11355         * source.c, solib.c, exec.c, event-top.c: Ditto.
11356         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11357         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11358         * Makefile.in: Update all dependencies.
11359         (readline_tilde_h, readline_history_h): Define.
11360         (readline_headers): Delete.
11361
11362 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11363
11364         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11365         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11366         "config/i386/tm-lx64.h".
11367
11368         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11369         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
11370         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11371
11372 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11373
11374         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11375
11376         * breakpoint.c (_initialize_breakpoint): Use
11377         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
11378         Add help to show command.
11379
11380 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11381
11382         * i386-nat.c: Reformat to be closer to coding standards.
11383         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11384         `retval'.  Make variables `align' and `size' local to while-loop.
11385         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11386         (_initialize_i386_nat): New prototype.
11387
11388         * tui/tui.c: Include <readline/readline.h> instead of
11389         "readline/readline.h".  Include it after <term.h> and
11390         "gdb_curses.h".
11391
11392 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11393
11394         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11395         the new frame unwind code.
11396         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11397         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11398         PCOQ_HEAD_REGNUM.
11399
11400         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11401         "return_value" and "push_dummy_call".
11402         (hppa32_use_struct_convention): Delete unused function.
11403         (hppa32_store_return_value): Delete unused function.
11404         (hppa32_extract_return_value): Delete unused function.
11405         (hppa32_stack_align): Delete function.
11406
11407 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
11408
11409         * coffread.c (enter_linenos): Don't let rawptr reference memory
11410         outside linetab[]'s limits.
11411
11412 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11413
11414         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11415         inferior stack space - the stack needs to grow upwards.
11416         (hppa32_frame_align): New function.
11417         (hppa64_frame_align): Replace hppa_frame_align.
11418         (hppa_gdbarch_init): Update.
11419
11420 2004-02-26  Orjan Friberg  <orjanf@axis.com>
11421
11422         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11423         (dwarf2-frame.h): Include.
11424         (enum cris_regnums): New enum CRIS_FP_REGNUM.
11425         Remove static variables related to ABI setting.
11426         (struct gdbarch_tdep): Remove cris_abi member.
11427         (struct frame_extra_info): Remove.
11428         (cris_unwind_cache, stack_item): New structs.
11429         (cris_frame_unwind, cris_frame_base): New variables.
11430         (push_stack_item, pop_stack_item)
11431         (cris_frame_unwind_cache, cris_frame_this_id)
11432         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11433         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11434         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11435         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11436         (cris_reg_struct_has_addr): New functions.
11437         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11438         (cris_frame_saved_pc, cris_saved_pc_after_call,
11439         (cris_store_struct_return, cris_frameless_function_invocation)
11440         (cris_pop_frame, cris_skip_prologue_main)
11441         (cris_abi_original_store_return_value)
11442         (cris_abi_v2_store_return_value)
11443         (cris_abi_original_extract_return_value)
11444         (cris_abi_v2_extract_return_value)
11445         (cris_abi_original_reg_struct_has_addr)
11446         (cris_abi_v2_reg_struct_has_addr)
11447         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11448         (cris_push_return_address, cris_abi_update): Remove.
11449         (_initialize_cris_tdep): Remove ABI command.
11450         (cris_dump_tdep): Ditto.
11451         (cris_gdbarch_init): Remove ABI command.
11452         Set store_return_value, extract_return_value, push_dummy_code,
11453         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11454         frame_unwind_append_sniffer, frame_base_set_default.
11455         Clear deprecated init_frame_pc, push_arguments, store_return_value,
11456         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11457         sizeof_call_dummy_words, get_saved_register, push_return_address,
11458         pop_frame, store_struct_return, frame_init_saved_regs,
11459         init_extra_frame_info, frameless_function_invocation, frame_chain,
11460         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11461         dummy_write_sp.
11462
11463 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11464
11465         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11466         * valprint.c (print_hex_chars): Change from static to external.
11467         (print_char_chars): New function.
11468         * printcmd.c (print_scalar_formatted): For integer and enum types
11469         that are longer than LONGEST, perform processing via appropriate
11470         print_*_chars routines.
11471
11472 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11473
11474         * Makefile.in: Update dependencies.
11475         Changes from Ulrich Weigand,
11476         * s390-tdep.c: Include "dwarf2-frame.h".
11477         (s390_dwarf2_frame_init_reg): New function.
11478         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11479         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
11480
11481 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11482
11483         * breakpoint.c (pending_break_support): New setting variable.
11484         (break_command_1): Account for pending_break_support setting
11485         when creating pending breakpoints.
11486         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11487         (_initialize_breakpoint): Add "set breakpoint pending" and
11488         "show breakpoint pending" commands.
11489
11490 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11491
11492         Fix PR i18n/1570.
11493         * charset.c (backslashable, backslashed, represented): Remove 'e'
11494         from list of escaped characters, not part of ISO-C.
11495
11496 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11497
11498         From Peter Schauer <schauer@pdf.de>:
11499         * tui/tui.c: Move system header includes after local includes.
11500         Fixes a build failure on solaris systems.
11501
11502 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11503
11504         * configure.in: Refine the previous change.
11505         * configure: Regenerate.
11506
11507 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11508
11509         * amd64-tdep.h: Renamed from x86-64-tdep.h.
11510         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
11511         "amd64-tdep.h" instead of "x86-64-tdep.h".
11512         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11513         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11514         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
11515         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11516         and "x86-64-tdep.c".
11517         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
11518         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11519         and "x86-64-tdep.c".
11520         * amd64bsd-nat.c: Update copyright year.
11521         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11522         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11523         "x86-64-tdep.h".
11524         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11525         "x86-64-tdep.h".
11526         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11527         "x86-64-tdep.h".
11528         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11529         "x86-64-tdep.h".
11530         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11531         "x86-64-tdep.h".
11532         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11533         "x86-64-tdep.h".
11534         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11535         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11536         * Makefile.in (amd64_linux_tdep_h): Renamed from
11537         x86_64_linux_tdep_h.
11538         (amd64_tdep_h): Renamed from x86_64_tdep_h.
11539         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11540         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11541         (amd64obsd-tdep.o): Update dependencies.
11542         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11543         dependencies.
11544         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11545         dependencies.
11546         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11547         amd64-linux-nat.c amd64-linux-tdep.c.
11548         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11549         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11550         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11551         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11552         amd64-tdep.o and amd64-linux-tdep.o.
11553         (TM_FILE): Set to tm-linux64.h.
11554         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11555         (NAT_FILE): Set to nm-linux64.h.
11556         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11557         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11558         amd64-tdep.o.
11559         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11560         amd64-tdep.o.
11561         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11562         amd64-tdep.o.
11563
11564 2004-02-25  Roland McGrath  <roland@redhat.com>
11565
11566         * remote.c (remote_protocol_qPart_auxv): New variable.
11567         (init_all_packet_configs): Initialize it.
11568         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11569         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11570         (show_remote_cmd): Call it.
11571         (_initialize_remote): Initialize commands.
11572         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11573         service TARGET_OBJECT_AUXV requests.
11574
11575 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11576
11577         * configure.in: Make sure that the wborder function is available.
11578         Otherwise, search for it in the cur_colr library.
11579         * configure: Regenerate.
11580
11581 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11582
11583         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11584
11585 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11586
11587         * config/i386/tm-x86-64linux.h: Tweak comments.
11588
11589 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
11590
11591         * MAINTAINERS: Add self to write-after-approval list.
11592
11593 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11594
11595         PR cli/1566.  Problem found, and fix suggested by David Allan.
11596         * cli/cli-script.c (execute_control_command): Unconditionally
11597         install a cleanup.  Default "ret" to "invalid_control".  Use
11598         "break" instead of "return" to escape from the switch.
11599
11600 2004-02-24  J. Brobecker  <brobecker@gnat.com>
11601
11602         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11603         with the lines macro defined in term.h on AiX.
11604         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11605         a collision with the label_width macro defined in term.h on AiX.
11606
11607 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
11608
11609         Committed by Kevin Buettner <kevinb@redhat.com>.
11610
11611         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11612         * ia64-tdep.c (ia64_write_pc): Make it a global function.
11613         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11614         instead of ia64_write_pc().
11615         * ia64-linux-tdep.c (regcache.h): Include.
11616         (ia64_linux_write_pc): New function.
11617
11618 2004-02-23  Roland McGrath  <roland@redhat.com>
11619
11620         * auxv.c (info_auxv_command): Fix typos in error messages.
11621
11622 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
11623
11624         * x86-64-tdep.h: Tweak comment.
11625         (enum amd64_regnum): New.
11626         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11627         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11628         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11629         (X86_64_XMM1_REGNUM): Removed.
11630         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11631         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11632         prototypes for renamed functions.
11633         * x86-64-tdep.c: Fix typo.
11634         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11635         register numbers.
11636         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11637         Use constants from `enum amd64_regnum' for register numbers.
11638         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11639         (amd64_analyze_prologue, amd64_frame_cache,
11640         amd64_sigtramp_frame_cache): Use constants from `enum
11641         amd64_regnum' for register numbers.
11642         (amd64_supply_fpregset): Adjust for renamed functions.
11643         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
11644         `enum amd64_regnum' for register numbers.
11645         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11646         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11647         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11648         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11649         (amd64_linux_fill_gregset): Adjust for renamed macros.
11650         (fetch_core_registers): Adjust for renamed functions.
11651         (amd64_linux_init_abi): Adjust for renamed functions.
11652         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11653         renamed functions.
11654         * amd64-nat.c: Adjust for renamed macros.
11655         * amd64bsd-nat.c (fetch_inferior_registers)
11656         (store_inferior_registers): Use constants from `enum amd64_regnum'
11657         for register numbers.  Adjust for renamed variables.
11658         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11659         renamed variables.
11660         (_initialize_amd64fbsd_nat): Use constants from `enum
11661         amd64_regnum' for register numbers.
11662         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11663         `enum amd64_regnum' for register numbers.
11664         (amd64fbsd_init_abi): Adjust for renamed functions.
11665         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11666         `enum amd64_regnum' for register numbers.
11667         (amd64nbsd_init_abi): Adjust for renamed functions.
11668         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11669         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11670         `enum amd64_regnum' for register numbers.
11671         (amd64obsd_init_abi): Adjust for renamed functions.
11672         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11673
11674 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11675
11676         * breakpoint.c (print_one_breakpoint): Do not output spaces
11677         after printing <PENDING> for a pending breakpoint.
11678
11679 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11680
11681         * printcmd.c (print_scalar_formatted): Initialize val_long
11682         to remove compiler warning message.
11683
11684 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11685
11686         * defs.h (nquery, yquery): New prototypes.
11687         * breakpoint.c (break_command_1): Use new nquery interface.
11688         * utils.c (defaulted_query, nquery, yquery): New functions.
11689
11690 2004-02-23  Andrew Cagney  <cagney@redhat.com>
11691
11692         * hppa-tdep.c (hppa_frame_align): New function.
11693         (hppa32_push_dummy_call): New function.
11694         (hppa64_push_dummy_call): New function.
11695         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11696         disabled.
11697
11698         * infcall.c (legacy_push_dummy_code): Don't call deprecated
11699         FIX_CALL_DUMMY when push_dummy_call is available.
11700         (call_function_by_hand, push_dummy_code): Ditto.
11701
11702 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11703
11704         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11705         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11706         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11707         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11708         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11709         call_dummy_location to ON_STACK.
11710
11711 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11712
11713         * x86-64-linux-tdep.c: Tweak comment.
11714         (amd64_linux_supply_gregset): Renamed from
11715         x86_64_linux_supply_gresget.
11716         (amd64_linux_fill_gregset): Renamed from
11717         x86_64_linux_fill_gregset.
11718         (fetch_core_registers): Adjust for renamed functions.
11719         (amd64_core_fns): Renamed from x86_64_core_fns.
11720         (amd64_linux_sigtramp_start): Renamed from
11721         x86_64_linux_sigtramp_start.
11722         (amd64_linux_pc_in_sigtramp): Renamed from
11723         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
11724         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11725         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11726         (amd64_linux_sigcontext_addr): Renamed from
11727         x86_64_linux_sigcontext_addr.
11728         (amd64_linux_sc_reg_offset): Renamed from
11729         x86_64_linux_sc_reg_offset.
11730         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11731         Adjust for renamed functions and variables.
11732         (_initialize_amd64_linux_tdep): Renamed from
11733         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
11734         variables.
11735         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
11736         Adjust for renamed functions.
11737
11738         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11739         from x86_64_linux_gregset64_reg_offset.
11740         (amd64_linux_gregset32_reg_offset): Rename from
11741         x86_64_linux_gregset64_reg_offset.
11742         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11743         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11744         (amd64_linux_dr_set_control): Renamed from
11745         x86_64_linux_dr_set_control.  Adjust for renamed functions.
11746         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11747         Adjust for renamed functions.
11748         (amd64_linux_dr_reset_addr): Renamed from
11749         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11750         (amd64_linux_dr_get_status): Renamed from
11751         x86_64_linux_dr_get_status.  Adjust for renamed functions.
11752         (_initialize_amd64_linux_nat): Renamed from
11753         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
11754         functions.
11755         * config/i386/nm-x86-64linux.h: Update copyright year.
11756         Adjust for renamed functions.
11757
11758         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11759         amd64fbsd_sigtramp_start.
11760         (amd64fbsd_sigtramp_end_addr): Renamed from
11761         amd64fbsd_sigtramp_end.
11762         (amd64fbsd_init_abi): Adjust for renamed variables.
11763         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11764         variables.
11765         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11766         amd64fbsd_sigtramp_start.
11767         (amd64fbsd_sigtramp_end_addr): Renamed from
11768         amd64fbsd_sigtramp_end.
11769
11770 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11771
11772         * hppa-tdep.c (hppa32_return_value): New function.
11773         (hppa64_return_value): New function.
11774         (hppa_gdbarch_init): Set return_value; keep disabled.
11775
11776         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11777         struct-return and inferior function call methods.
11778
11779         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11780         "frame-base.h".
11781         (struct hppa_frame_cache): Define.
11782         (hppa_frame_cache, hppa_frame_this_id): New functions.
11783         (hppa_frame_prev_register): New function.
11784         (hppa_frame_unwind, hppa_frame_base): New variables.
11785         (hppa_frame_unwind_sniffer): New function.
11786         (hppa_frame_base_address, hppa_unwind_pc): New function.
11787         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11788         sniffer, and frame base sniffer; keep disabled.
11789         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11790         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11791
11792         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11793         to predicates for "seriously old code".
11794
11795         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11796         runtime if(0).
11797
11798         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11799         unsigned.
11800         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11801
11802         * config/pa/tm-hppa.h: Update copyright.
11803         (DEPRECATED_INIT_FRAME_PC): Delete macro.
11804         (deprecated_init_frame_pc_default): Delete declaration.
11805         (hppa_frame_init_saved_regs): Delete declaration.
11806         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11807         * hppa-tdep.c: Include "arch-utils.h".
11808         (hppa_gdbarch_init): Set deprecated init_frame_pc
11809         and deprecated frame_init_saved_regs.
11810         (hppa_frame_init_saved_regs): Make static.
11811
11812 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11813
11814         Remove old 386BSD support.
11815         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11816         * configure.host: Remove i[34567]86-*-bsd*.
11817         * configure.tgt: Remove i[34567]86-*-bsd*.
11818         * i386b-nat.c: Removed.
11819         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11820         (i386b-nat.o): Remove dependencies.
11821
11822         * config/i386/i386bsd.mh: Removed.
11823         * config/i386/i386bsd.mt: Removed.
11824         * config/i386/nm-i386bsd.h: Removed.
11825         * config/i386/tm-i386bsd.h: Removed.
11826         * config/i386/xm-i386bsd.h: Removed.
11827
11828         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11829
11830         * amd64fbsd-tdep.c: Include "solib-svr4.h".
11831         (amd64fbsd_init_abi): Set link map offsets.
11832         * amd64nbsd-tdep.c: Include "slib-svr4.h".
11833         (amd64nbsd_init_abi): Set link map offsets.
11834         * amd64obsd-tdep.c: Include "solib-svr4.h".
11835         (amd64obsd_init_abi): Set link map offsets.
11836         * i386fbsd-tdep.c: Include "solib-svr4.h".
11837         (i386fbsd_init_abi): Set link map offsets.
11838         * i386nbsd-tdep.c: Include "solib-svr4.h".
11839         (i386nbsdelf_init_abi): Set link map offsets.
11840         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11841         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11842         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11843         solib-legacy.o and core-aout.o. Reformat.
11844         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11845         solib-svr4.o, solib-legacy.o.  Reformat.
11846         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
11847         * config/i386/nbsdelf.mh: Reformat.
11848         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11849         solib-svr4.o, solib-legacy.o and corelow.o.
11850         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11851         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11852         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
11853         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11854         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11855         (TM_FILE): Set to tm-fbsd.h.
11856         * config/i386/nbsd.mt (TDEPFILES): Reformat.
11857         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11858         solib-svr4.o.
11859         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11860         solib-svr4.o.
11861         (TM_FILE): Set to nm-nbsd.h.
11862         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
11863         Simplify shared library support.  Don't include "elf/common.h".
11864         (SVR4_SHARED_LIBS): Don't define.
11865         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
11866         "solib.h".
11867         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11868         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
11869         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
11870         Don't include "i386/tm-i386.h".  Include "solib.h".
11871         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
11872         Don't include "i386/tm-i386.h".
11873         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
11874         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
11875         Include "i386/xm-i386.h".
11876         (HOST_LONG_DOUBLE_FORMAT): Remove.
11877
11878         Fix OpenBSD/i386 sigtramp recognition.
11879         * i386-tdep.h: Update copyright year.
11880         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11881         (i386bsd_sigtramp_end): New prototypes.
11882         (i386fbsd_sigtramp_start_addr): Renamed from
11883         i386fbsd_sigtramp_start.
11884         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11885         (i386obsd_sigtramp_start_addr): Renamed from
11886         i386obsd_sigtramp_start.
11887         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11888         * i386bsd-tdep.c: Update copyright year.
11889         (i386bsd_pc_in_sigtramp): Make public.
11890         * i386fbsd-nat.c: Update copyright year.
11891         (_initialize_i386fbsd_nat): Adjust for renamed variables.
11892         * i386fbsd-tdep.c: Update copyright year.
11893         (i386fbsd_sigtramp_start_addr): Renamed from
11894         i386fbsd_sigtramp_start.
11895         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11896         (i386fbsdaout_init_abi): Adjust for renamed variables.
11897         * i386obsd-nat.c: Update copyright year.
11898         (_initialize_i386obsd_nat): Adjust for renamed variables.
11899         * i386obsd-tdep.c: Include "target.h".
11900         (i386obsd_page_size): New variable.
11901         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11902         (i386obsd_sigtramp_end): New functions.
11903         (i386obsd_sigtramp_start_addr): Renamed from
11904         i386obsd_sigtramp_start.
11905         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11906         (i386obsd_init_abi): Adjust for renamed variables.  Set
11907         pc_in_sigtramp, sigtramp_start and sigtramp_end.
11908         * Makefile.in (i386obsd-tdep.o): Update dependencies.
11909
11910         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11911         trampoline change in OpenBSD kernel.
11912
11913         * amd64-nat.c: Update copyright year.
11914         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11915         architecture from REGCACHE.
11916
11917         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11918         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11919
11920 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
11921
11922         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11923         i[34567]86-*-openbsd3.[0-3].
11924         * config/i386/obsdaout.mh: New file.
11925
11926         * config/i386/obsd.mh (MH_FLAGS): Remove.
11927
11928         Fix PR build/1549.
11929         * i386obsd-tdep.c: Update copyright years.  Include
11930         "solib-svr4.h".
11931         (i386obsd_init_abi): Don't set regset_from_core_section here.
11932         (i386obsd_aout_init_abi): New function.  Set
11933         regset_from_core_section here.
11934         (i386obsd_elf_init_abi): New function.
11935         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11936         * Makefile.in (i386obsd-tdep.o): Update dependecies.
11937         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11938         (TM_FILE): Set to tm-nbsd.h.
11939
11940         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11941         solib-sunos.o.
11942
11943         * solib-svr4.h: Update copyright year.
11944         (svr4_ilp32_fetch_link_map_offsets)
11945         (svr4_lp64_fetch_link_map_offsets): New prototype.
11946         * solib-svr4.c: Update copyright year.
11947         (svr4_ilp32_fetch_link_map_offsets)
11948         (svr4_lp64_fetch_link_map_offsets): New function.
11949
11950 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
11951
11952         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11953         to the partial symbol table.
11954
11955 2004-02-20  J. brobecker  <brobecker@gnat.com>
11956
11957         * PROBLEMS: Add description of problem documented under gdb/1560.
11958
11959 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
11960
11961         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
11962         comments.
11963         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11964         functions.
11965         (amd64obsd_init_abi): Reorder initializations.  Use
11966         amd64obsd_r_reg_offset to initialize the general-purpose register
11967         set details.  Set regset_from_core_section.
11968         (_initialize_amd64obsd_tdep): Rename from
11969         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
11970         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11971         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11972
11973         * NEWS (New native configurations): Mention OpenBSD/alpha.
11974         * configure.tgt: Add alpha*-*-openbsd*.
11975         * configure.host: Add alpha*-*-openbsd*.
11976         * alphanbsd-tdep.c: Update copyright year.
11977         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11978
11979 2004-02-20  Andrew Cagney  <cagney@redhat.com>
11980
11981         Fix PR tdep/1372.
11982         * configure.tgt: Delete target "none-*-*".
11983         * configure.host: Delete host "none-*-*".
11984         * config/none/none.mh: Delete file.
11985         * config/none/none.mt: Delete file.
11986         * config/none/xm-none.h: Delete file.
11987         * config/none/tm-none.h: Delete file.
11988         * config/none/nm-none.h: Delete file.
11989
11990 2004-02-19  Fred Fish  <fnf@redhat.com>
11991
11992         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11993         cache->uses_fp prior to setting it.
11994
11995 2004-02-19  Fred Fish  <fnf@redhat.com>
11996
11997         Fix for PR breakpoint/1558.
11998         * sh-tdep.c (IS_JSR): New macro.
11999         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
12000
12001 2004-02-19  Jim Blandy  <jimb@redhat.com>
12002
12003         * findvar.c (value_from_register): Doc fix.
12004
12005 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
12006
12007         * printcmd.c (print_scalar_formatted): Do not check for sizeof
12008         type being greater than sizeof of host's LONGEST.  Always use
12009         unpack_long() unless format 'f' chosen.
12010
12011 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
12012
12013         Committed by Elena Zannoni  <ezannoni@redhat.com>
12014
12015         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
12016         contains a symbol wich is the best, non-exact match for the given
12017         pc.  Update comments.
12018
12019 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
12020
12021         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12022         macro, which was part of the now removed Mach 3 port.
12023         * utils.c (request_quit): Ditto.
12024
12025 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
12026
12027         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12028         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12029
12030 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12031
12032         Committed by Mark Kettenis  <kettenis@gnu.org>.
12033
12034         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12035         Define.
12036
12037 2004-02-18  Andrew Cagney  <cagney@redhat.com>
12038
12039         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12040         CONFIG_INSTALL and CONFIG_UNINSTALL.
12041         * configure: Re-generate.
12042         * interps.h (INTERP_TUI): Define.
12043         * Makefile.in: Update dependencies.
12044         (TUI): New macro.
12045         (tui-main.o): Specify dependencies.
12046         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12047         * tui/tui-main.c: New file.
12048
12049 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
12050
12051         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12052         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12053         dependencies.
12054         * configure.host: Add x86_64-*-openbsd*.
12055         * configure.tgt: Add x86_64-*-openbsd*.
12056         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12057
12058         * tui/tui.c: Don't include <malloc.h>.
12059
12060         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12061         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12062         amd64nbsd-tdep.c.
12063
12064         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12065         static.  Remove extraneous whitespace.
12066         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12067         static.
12068
12069 2004-02-17  Jim Blandy  <jimb@redhat.com>
12070
12071         * findvar.c (value_from_register): Doc fix.
12072
12073 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12074
12075         Committed by Jim Blandy  <jimb@redhat.com>.
12076
12077         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12078         CORE_ADDR as type for selectors.  Correct types for GNU run time
12079         message lookup function to use double indirection.
12080         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12081         * objc-lang.h (lookup_child_selector): Adapt prototype.
12082
12083         * s390-nat.c (SUBOFF): New macro.
12084         (supply_gregset, fill_gregset): Use it to handle debugging
12085         of 32-bit exectuables running under a 64-bit kernel.
12086         * s390-tdep.c: Include "solib-svr4.h".
12087         (s390_svr4_fetch_link_map_offset): New function.
12088         (s390x_svr_fetch_link_map_offset): Likewise.
12089         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12090         * Makefile.in (s390-tdep.o): Update dependencies.
12091
12092         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12093         "frame-unwind.h".
12094         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
12095         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12096         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12097         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12098         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12099         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12100         S390_SIGNAL_FRAMESIZE,
12101         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12102         (struct frame_extra_info): Remove.
12103         (s390_memset_extra_info): Remove.
12104         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12105         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12106         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12107         (is_rse): Renamed to ...
12108         (is_rsy): ... this.  Support long displacements.
12109         (is_rxe): Renamed to ...
12110         (is_rxy): ... this.  Support long displacements.
12111         (compute_x_addr): Support long displacements.
12112         (struct s390_prologue_data): New data type.
12113         (s390_on_stack): Change API to use struct s390_prologue_data.
12114         (s390_store): Reimplement.
12115         (s390_load): New function.
12116         (s390_get_signal_frame_info): Remove.
12117         (s390_get_frame_info): Remove, replace by ...
12118         (s390_analyze_prolog): ... this new function.
12119         (s390_check_function_end): Remove.
12120         (s390_function_start): Remove.
12121         (s390_frameless_function_invokation): Remove.
12122         (s390_is_sigreturn): Remove.
12123         (s390_init_frame_pc_first): Remove.
12124         (s390_init_frame_extra_info): Remove.
12125         (s390_frame_init_saved_regs): Remove.
12126         (s390_frame_saved_pc_nofix): Remove.
12127         (s390_frame_saved_pc): Remove.
12128         (s390_frame_chain): Remove.
12129         (s390_fp_regnum, s390_read_fp): Remove.
12130         (s390_pop_frame_regular, s390_pop_frame): Remove.
12131         (s390_saved_pc_after_call): Remove.
12132         (s390_skip_prologue): Reimplement.
12133         (s390_in_function_epilogue_p): Support long displacements.
12134         (struct s390_unwind_cache): New data structure.
12135         (s390_frame_unwind_cache): New function.
12136         (s390_prologue_frame_unwind_cache): Likewise.
12137         (s390_backchain_frame_unwind_cache): Likewise.
12138         (s390_frame_this_id, s390_frame_prev_register): Likewise.
12139         (s390_frame_unwind): Define.
12140         (s390_frame_sniffer): New function.
12141         (struct s390_pltstub_unwind_cache): New data structure.
12142         (s390_pltstub_frame_unwind_cache): New function.
12143         (s390_pltstub_frame_this_id): Likewise.
12144         (s390_pltstub_frame_prev_register): Likewise.
12145         (s390_pltstub_frame_unwind): Define.
12146         (s390_pltstub_frame_sniffer): New function.
12147         (struct s390_sigtramp_unwind_cache): New data structure.
12148         (s390_sigtramp_frame_unwind_cache): New function.
12149         (s390_sigtramp_frame_this_id): Likewise.
12150         (s390_sigtramp_frame_prev_register): Likewise.
12151         (s390_sigtramp_frame_unwind): Define.
12152         (s390_sigtramp_frame_sniffer): New function.
12153         (s390_frame_base_address, s390_local_base_address): New functions.
12154         (s390_frame_base): Define.
12155         (s390_unwind_pc, s390_unwind_sp): New function.
12156         (s390_push_dummy_call): Use new frame base location.
12157         (s390_unwind_dummy_id): Likewise.
12158         (s390_gdbarch_init): Remove calls to:
12159         set_gdbarch_frameless_function_invocation,
12160         set_gdbarch_deprecated_init_frame_pc,
12161         set_gdbarch_deprecated_frame_chain,
12162         set_gdbarch_deprecated_frame_init_saved_regs,
12163         set_gdbarch_deprecated_pop_frame,
12164         set_gdbarch_deprecated_init_extra_frame_info,
12165         set_gdbarch_deprecated_init_frame_pc_first,
12166         set_gdbarch_deprecated_target_read_fp,
12167         set_gdbarch_deprecated_frame_saved_pc,
12168         set_gdbarch_deprecated_saved_pc_after_call,
12169         set_gdbarch_deprecated_fp_regnum.
12170         Add calls to:
12171         set_gdbarch_in_solib_call_trampoline,
12172         frame_unwind_append_sniffer,
12173         frame_base_set_default,
12174         set_gdbarch_unwind_pc,
12175         set_gdbarch_unwind_sp.
12176         * Makefile.in (s390-tdep.o): Update dependencies.
12177
12178         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12179         (S390_STACK_FRAME_OVERHEAD): Remove.
12180         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12181         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12182         (s390_promote_integer_argument): Remove.
12183         (s390_cannot_extract_struct_value_address): Remove.
12184         (s390_use_struct_convention, s390_store_struct_return): Remove.
12185         (s390_extract_return_value, s390_store_return_value): Remove.
12186         (s390_return_value_convention, s390_return_value): New functions.
12187         (is_float_singleton): Handle typedefs.
12188         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12189         Remove, replace by ...
12190         (s390_function_arg_pass_by_reference, s390_function_arg_float,
12191         s390_function_arg_integer): ... these new functions.
12192         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12193         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12194         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12195         Fill in tdep->abi.
12196         Remove calls to:
12197         set_gdbarch_deprecated_store_struct_return,
12198         set_gdbarch_deprecated_extract_return_value,
12199         set_gdbarch_deprecated_store_return_value,
12200         set_gdbarch_use_struct_convention,
12201         set_gdbarch_extract_struct_value_address,
12202         set_gdbarch_deprecated_pc_in_call_dummy,
12203         set_gdbarch_deprecated_push_arguments,
12204         set_gdbarch_deprecated_save_dummy_frame_tos,
12205         set_gdbarch_deprecated_push_return_address,
12206         set_gdbarch_deprecated_sizeof_call_dummy_words,
12207         set_gdbarch_deprecated_call_dummy_words,
12208         set_gdbarch_deprecated_dummy_write_sp.
12209         Add calls to:
12210         set_gdbarch_push_dummy_call,
12211         set_gdbarch_unwind_dummy_id,
12212         set_gdbarch_return_value.
12213
12214         * config/s390/nm-linux.h: Update comments.
12215         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12216         (STOPPED_BY_WATCHPOINT): Redefine.
12217         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12218         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12219         (s390_stopped_by_watchpoint): Likewise.
12220         (watch_area_cnt): Remove.
12221         * s390-nat.c: Update comments.
12222         (watch_area): Remove typedef.
12223         Global replace watch_area by struct watch_area.
12224         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12225         (s390_stopped_by_watchpoint): Remove pid argument,
12226         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
12227         (s390_fix_watch_points): Remove pid argument,
12228         use s390_inferior_tid.  Recompute area spanned by watchpoints.
12229         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12230         argument.  Reimplement.
12231
12232         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
12233         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12234         (FETCH_INFERIOR_REGISTERS): Define.
12235         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12236         core-regset.o.
12237         * config/s390/s390x.mt: Remove.
12238         * config/s390/tm-s390.h: Remove.
12239         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12240         (TARGET_ELF64): Remove.
12241         (SKIP_TRAMPOLINE_CODE): Do not undefine.
12242         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12243         s390*-*-* case; always set gdb_target to s390.
12244         * regformats/reg-s390.dat: Remove control registers.
12245         * regformats/reg-s390x.dat: Likewise.
12246         * s390-tdep.h: New file.
12247         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12248         Include "inferior.h" and "s390-tdep.h".
12249         Remove private definition of offsetof.
12250         (s390_register_u_addr): Remove.
12251         (regmap_gregset, regmap_fpregset): Define.
12252         (supply_gregset, fill_gregset): Reimplement.
12253         (supply_fpregset, fill_fpregset): Likewise.
12254         (s390_inferior_tid): New function.
12255         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12256         (fetch_inferior_registers, store_inferior_registers): Likewise.
12257         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
12258         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
12259         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12260         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12261         (struct gdbarch_tdep): Define.
12262         (struct s390_register_info): Define.
12263         (s390_register_info): New variable.
12264         (s390_register_name): Reimplement.
12265         (s390_register_type): New function.
12266         (s390_register_raw_size, s390x_register_raw_size): Remove.
12267         (s390_cannot_fetch_register): Remove.
12268         (s390_register_byte): Remove.
12269         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12270         (s390_dwarf_regmap): New variable.
12271         (s390_dwarf_reg_to_regnum): New function.
12272         (s390_stab_reg_to_regnum): Remove.
12273         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12274         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12275         (s390_convert_register_p): Likewise.
12276         (s390_register_to_value, s390_value_to_register): Likewise.
12277         (s390_register_reggroup_p): Likewise.
12278         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12279         s390_gregset, s390x_gregset, s390_fpregset): New variables.
12280         (s390_supply_regset, s390_regset_from_core_section): New functions.
12281         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12282         (S390_FPR_SIZE): Likewise.
12283         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
12284         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12285         (S390_NUM_GPRS): Move here from tm-s390.h.
12286         (S390_NUM_FPRS): Likewise.
12287         (s390_in_function_epilogue_p): New function.
12288         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12289         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12290         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12291         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12292         Replace S390_FP_REGNUM by S390_SP_REGNUM.
12293         Remove calls to:
12294         set_gdbarch_deprecated_max_register_raw_size,
12295         set_gdbarch_deprecated_max_register_virtual_size,
12296         set_gdbarch_deprecated_register_byte,
12297         set_gdbarch_cannot_fetch_register,
12298         set_gdbarch_cannot_store_register,
12299         set_gdbarch_deprecated_register_size,
12300         set_gdbarch_deprecated_register_raw_size,
12301         set_gdbarch_deprecated_register_virtual_size,
12302         set_gdbarch_deprecated_register_virtual_type,
12303         set_gdbarch_deprecated_register_bytes.
12304         Add calls to:
12305         set_gdbarch_num_pseudo_regs,
12306         set_gdbarch_register_type,
12307         set_gdbarch_convert_register_p,
12308         set_gdbarch_register_to_value,
12309         set_gdbarch_value_to_register,
12310         set_gdbarch_register_reggroup_p,
12311         set_gdbarch_regset_from_core_section,
12312         set_gdbarch_pseudo_register_read,
12313         set_gdbarch_pseudo_register_write,
12314         set_gdbarch_in_function_epilogue_p.
12315         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12316         (s390_tdep_h): New variable.
12317
12318 2004-02-17  Jim Blandy  <jimb@redhat.com>
12319
12320         * findvar.c (value_from_register): If the type has no length, just
12321         return an acceptable value --- don't report an internal error.
12322
12323         * stabsread.c (read_type): If we find any type numbers that are
12324         forward references, complain if the references aren't resolved by
12325         the time we're finished reading.
12326         (cleanup_undefined_types): Make error message more appropriate for
12327         a complaint.
12328
12329 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12330
12331         * Makefile.in (defs_h): Remove dependency on progress_h.
12332         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12333         progress.h.
12334         * main.c (captured_main): Delete use of START_PROGRESS and
12335         END_PROGRESS.
12336
12337 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12338
12339         * objfiles.c (terminate_minimal_symbol_table): Add back
12340         initialization of MSYMBOL_TYPE.
12341
12342 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
12343
12344         Committed by Andrew Cagney.
12345         * Makefile.in (ia64_tdep_h): New macro.
12346         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12347         (ia64-tdep.o): Likewise.
12348         * ia64-tdep.h: New file.
12349         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
12350         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12351         (ia64_aix_sigcontext_register_address): Likewise.
12352         (ia64_linux_getunwind_table): Delete declaration.
12353         * ia64-linux-tdep.c: Likewise.
12354
12355 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
12356
12357         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12358         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12359         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12360
12361 2004-02-17  Andrew Cagney  <cagney@redhat.com>
12362
12363         * symtab.c (skip_prologue_using_sal): New function.
12364         * symtab.h (skip_prologue_using_sal): Declare.
12365         * frv-tdep.c: Include "symtab.h".
12366         (skip_prologue_using_sal): Delete function.
12367         * mips-tdep.c (skip_prologue_using_sal): Delete function.
12368         * rs6000-tdep.c (refine_prologue_limit): Mention
12369         skip_prologue_using_sal.
12370         * ia64-tdep.c (refine_prologue_limit): Ditto.
12371         * Makefile.in: Update dependencies.
12372
12373 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12374
12375         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12376         START_INFERIOR_TRAPS_EXPECTED.
12377         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12378         START_INFERIOR_TRAPS_EXPECTED.
12379         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12380         Delete macro.
12381         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12382         macro, moved to "nm-osf.h".  Update copyright.
12383         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12384         update copyright.
12385
12386         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12387         and function replacing FRAMELESS_FUNCTION_INVOCATION.
12388         * blockframe.c (legacy_frameless_look_for_prologue): Rename
12389         frameless_look_for_prologue.
12390         * frame.h (legacy_frameless_look_for_prologue): Rename
12391         frameless_look_for_prologue.
12392         * gdbarch.h, gdbarch.c: Re-generate.
12393         * sh64-tdep.c (sh64_gdbarch_init): Update.
12394         * sh-tdep.c (sh_gdbarch_init): Update.
12395         * s390-tdep.c (s390_gdbarch_init): Update.
12396         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12397         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12398         * m68k-tdep.c (m68k_gdbarch_init): Update.
12399         (delta68_frame_args_address): Update.
12400         * m32r-tdep.c (m32r_gdbarch_init): Update.
12401         * hppa-tdep.c (hppa_gdbarch_init): Update.
12402         * h8300-tdep.c (h8300_gdbarch_init): Update.
12403         * frv-tdep.c (frv_gdbarch_init): Update.
12404         (frv_frameless_function_invocation): Update.
12405         * cris-tdep.c (cris_gdbarch_init): Update.
12406         (cris_frameless_function_invocation): Update.
12407         * avr-tdep.c (avr_gdbarch_init): Update.
12408         * arm-tdep.c (arm_gdbarch_init): Update.
12409         * stack.c (frame_info): Update, call predicate.
12410         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12411         * frame.c (legacy_get_prev_frame): Update, call predicate..
12412         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12413         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12414         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12415         invocation.
12416         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12417         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12418         * vax-tdep.c (vax_gdbarch_init): Ditto.
12419
12420         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12421         function.
12422
12423 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12424
12425         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12426         initializations.
12427
12428 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12429
12430         * tui/tui-windata.c: Include "gdb_string.h".
12431         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12432         * tui/tui-layout.c, tui/tui-command.c: Ditto.
12433         * Makefile.in: Update dependencies.
12434
12435 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12436
12437         * Makefile.in (infrun.o): Add $(gdb_assert_h).
12438         * infrun.c: Include "gdb_assert.h".
12439         (singlestep_ptid, saved_singlestep_ptid)
12440         (stepping_past_singlestep_breakpoint): New variables.
12441         (resume): Set singlestep_ptid.  Check for singlestep thread
12442         hop.
12443         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12444         (handle_inferior_event): Handle singlestep thread hop.
12445
12446 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12447
12448         * dwarf2-frame.c (dwarf2_frame_ops): New function.
12449         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12450         (dwarf2_frame_init_reg): Ditto.
12451
12452         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
12453         suggested by Joshua Neuheisel
12454
12455         * configure.in: Always check for curses, including pdcurses.
12456         Warn, instead of error, when no curses are found.  Enable TUI when
12457         curses is available.
12458         * configure: Re-generate.
12459
12460 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12461
12462         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12463         sh_sh4_register_convert_to_virtual.
12464         (sh_register_convert_to_raw): Rename from
12465         sh_sh4_register_convert_to_raw.
12466         (sh_pseudo_register_read): Accomodate above name change.
12467         (sh_pseudo_register_write): Ditto.
12468
12469 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12470
12471         * sh-tdep.c (sh_generic_register_name): Remove.
12472         (sh_gdbarch_init): Use sh_sh_register_name in default case.
12473
12474 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12475
12476         * configure.in (build_warnings): Add -Wunused-function.
12477         * configure: Re-generate.
12478
12479         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12480         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12481
12482         * procfs.c (procfs_init_inferior): Assume that
12483         START_INFERIOR_TRAPS_EXPECTED is defined.
12484         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12485         * config/ns32k/tm-nbsd.h: Delete file,
12486         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12487
12488         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12489         * config/vax/tm-vax.h: Delete file.
12490
12491         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12492         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12493         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12494         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12495         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12496         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12497         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12498
12499 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
12500
12501         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12502         * dwarf2-frame.c (dwarf2_frame_data): New variable.
12503         (struct dwarf2_frame_ops): New.
12504         (dwarf2_frame_default_init_reg): New function, based on
12505         dwarf2_frame_init_reg.
12506         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12507         (dwarf2_frame_init_reg): Call architecture-specific function.
12508         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12509         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12510         instead of dwarf2_frame_data.
12511         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12512         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12513
12514 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12515
12516         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12517         register_gdbarch_swap.
12518         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12519         * f-lang.c (_initialize_f_language): Update, use
12520         DEPRECATED_REGISTER_GDBARCH_SWAP.
12521         * remote.c (_initialize_remote): Ditto.
12522         * regcache.c (_initialize_regcache): Ditto.
12523         * parse.c (_initialize_parse): Ditto.
12524         * infrun.c (_initialize_infrun): Ditto.
12525         * mi/mi-main.c (_initialize_mi_main): Ditto.
12526         * gdbtypes.c (_initialize_gdbtypes): Ditto.
12527
12528         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12529         poking .cacheable directly.
12530         * symfile.c (symfile_bfd_open): Ditto.
12531
12532         * Makefile.in: Update all dependencies.
12533
12534         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12535         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
12536         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
12537         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12538         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12539
12540 2004-02-14  Andrew Cagney  <cagney@redhat.com>
12541
12542         * arch-utils.c (legacy_convert_register_p): Check
12543         DEPRECATED_REGISTER_CONVERTIBLE_P.
12544         * findvar.c (value_of_register): Ditto.
12545
12546         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12547         * gdbarch.h, gdbarch.c: Re-generate.
12548         * arch-utils.c (deprecated_register_convertible_not): Delete.
12549         * arch-utils.h (deprecated_register_convertible_not): Delete.
12550         * mi/mi-main.c (get_register): Update.  Update copyright.
12551         * infcmd.c (default_print_registers_info): Update.
12552
12553         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12554         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12555         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12556         * gdbarch.h, gdbarch.c: Re-generate.
12557         * frame.c (deprecated_get_next_frame_hack): Delete function.
12558         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12559         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12560         Update.
12561         * infcall.c (call_function_by_hand): Update.
12562
12563 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
12564
12565         * symfile.c (init_entry_point_info, entry_point_address): Move
12566         from here...
12567         * objfiles.c (init_entry_point_info, entry_point_address):..to
12568         here.
12569         * symfile.h (init_entry_point_info, entry_point_address): Remove
12570         prototypes.
12571         * objfiles.h (init_entry_point_info, entry_point_address):Add
12572         prototypes.
12573         * cris-tdep.c: Remove include of symfile.h. Add include of
12574         objfiles.h.
12575         * infcall.c: Ditto.
12576         * mcore-tdep.c: Ditto.
12577         * mn10300-tdep.c: Ditto.
12578         * sh64-tdep.c: Ditto.
12579         * v850-tdep.c: Ditto.
12580         * arm-tdep.c: Remove include of symfile.h.
12581         * blockframe.c: Ditto.
12582         * coffread.c: Ditto.
12583         * dbxread.c: Ditto.
12584         * dwarf2read.c: Ditto.
12585         * dwarfread.c: Ditto.
12586         * frv-tdep.c: Ditto.
12587         * ia64-tdep.c: Ditto.
12588         * mdebugread.c: Ditto.
12589         * mipsread.c: Ditto.
12590         * rs6000-tdep.c: Ditto.
12591         * s390-tdep.c: Ditto.
12592         * sh-tdep.c: Ditto.
12593         * xstormy16-tdep.c: Ditto.
12594         * gdbarch.sh: Remove include of symfile.h.
12595         * gdbarch.c: Regenerate.
12596         * solib-irix.c (enable_break): Use entry_point_address().
12597         Add comment about include file.
12598         * xcoffread.c: Add comment about include file.
12599         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12600         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12601         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12602         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12603         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12604
12605 2004-02-13  Andrew Cagney  <cagney@redhat.com>
12606
12607         * corelow.c (core_xfer_partial): Use "struct bfd_section".
12608         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12609         copyright.
12610         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12611
12612 2004-02-12  Fred Fish  <fnf@redhat.com>
12613
12614         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12615          set_gdbarch_store_return_value.
12616
12617 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12618
12619         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12620         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12621         (interrupt_query): Ditto.
12622         (ofunc): Delete unused variable.
12623         * cris-tdep.c (cris_abi): Delete unused function.
12624         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12625         (cris_get_wide_opcode, cris_get_short_size): Ditto.
12626         (cris_get_asr_quick_shift_steps): Ditto.
12627         (cris_skip_prologue_frameless_p): Ditto.
12628         * arm-tdep.c (arm_push_return_address): Delete unused function.
12629         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12630         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12631         * s390-tdep.c (s390_function_start): Delete unused function.
12632
12633 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12634
12635         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12636         gdbarch.h, gdbarch.c: Re-generate.
12637         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12638         to generic_prologue_frameless_p.
12639         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12640         * arch-utils.c (generic_prologue_frameless_p): Delete function.
12641
12642 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
12643
12644         * mips-linux-tdep.c: Include "frame.h".
12645         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12646         (mips_linux_skip_resolver): New functions.
12647         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12648         and set_gdbarch_in_solib_call_trampoline.
12649         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12650         to after set_gdbarch_in_solib_return_trampoline.  Only set the
12651         solib hooks to mips16 functions if the OS ABI is unknown.
12652         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12653         including "config/tm-linux.h".
12654         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12655         * Makefile.in (mips-linux-tdep.o): Update.
12656
12657 2004-02-11  David Carlton  <carlton@kealia.com>
12658
12659         * linespec.c (decode_compound): Only look for a class symbol when
12660         considering all but the rightmost component.
12661
12662 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12663
12664         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12665         abi code are are separatly grouped.
12666
12667 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12668
12669         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12670         * gdbarch.h, gdbarch.c: Re-generate.
12671         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12672         * v850-tdep.c (v850_gdbarch_init): Update.
12673         * sh64-tdep.c (sh64_gdbarch_init): Update.
12674         * sh-tdep.c (sh_gdbarch_init): Update.
12675         * s390-tdep.c (s390_gdbarch_init): Update.
12676         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12677         * mips-tdep.c (mips_gdbarch_init): Update.
12678         * mcore-tdep.c (mcore_gdbarch_init): Update.
12679         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12680         * m32r-tdep.c (m32r_gdbarch_init): Update.
12681         * ia64-tdep.c (ia64_gdbarch_init): Update.
12682         * hppa-tdep.c (hppa_gdbarch_init): Update.
12683         * h8300-tdep.c (h8300_gdbarch_init): Update.
12684         * frv-tdep.c (frv_gdbarch_init): Update.
12685         * d10v-tdep.c (d10v_gdbarch_init): Update.
12686         * cris-tdep.c (cris_gdbarch_init): Update.
12687         * avr-tdep.c (avr_gdbarch_init): Update.
12688         * arm-tdep.c (arm_gdbarch_init): Update.
12689         * alpha-tdep.c (alpha_gdbarch_init): Update.
12690
12691 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
12692
12693         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12694         comma.
12695         (sh_sh4al_dsp_register_name): Ditto.
12696
12697 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12698
12699         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12700         (mips_init_frame_pc_first): Delete function.
12701         (mips_frame_saved_pc): Delete function.
12702         (mips_frame_chain): Delete function.
12703         (mips_init_extra_frame_info): Delete function.
12704         (mips_xfer_register): Delete unused variable "reg".
12705         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12706         (mips_n32n64_return_value): Delete unused variable "reg".
12707         (mips_n32n64_return_value): Delete unused variable "pos".
12708         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12709         (mips_o32_return_value): Delete unused variable "pos".
12710         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12711         (mips_print_fp_register): Delete unused variable "namelen"
12712         (mips_print_fp_register): Delete unused variable "flt2"
12713         (get_frame_pointer): Delete function.
12714         (cached_proc_desc): Delete static variable.
12715         (mips_pop_frame): Delete function.
12716         (mips_find_saved_regs): Delete function.
12717         (mips_get_saved_register): Delete function.
12718         (mips_saved_pc_after_call): Delete function.
12719         (SIGFRAME_BASE): Delete macro.
12720         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12721         (SIGFRAME_PC_OFF): Delete macro.
12722         (SIGFRAME_REGSAVE_OFF): Delete macro.
12723         (mips_dump_tdep): Do not print deleted macro definitions.
12724
12725 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12726
12727         * Makefile.in (SFILES): Remove explictly listed tui files.
12728         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12729
12730 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
12731
12732         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12733         to use paddr functions to format ia64 addresses and long values.
12734         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12735         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12736         (get_kernel_table, ia64_find_proc_info_x): Ditto.
12737         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12738         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12739
12740 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12741
12742         * defs.h: Do not include "tui.h".
12743         * gdb_curses.h: New file.
12744         * tui/tui-hooks.h: New file.
12745         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12746         (tui_install_hooks, tui_remove_hooks): Delete declarations.
12747         (tui_initialize_io): Delete declaration.
12748         (tui_initialize_readline: Delete redundant declaration.
12749         (struct tui_point): Delete definition.
12750         * tui/tui-data.h (struct tui_point): Define.
12751         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12752         * utils.c: Include "tui/tui.h".
12753         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12754         * printcmd.c [TUI]: Include "tui/tui.h".
12755         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12756         * tui/tui-command.c: Include "gdb_curses.h".
12757         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12758         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12759         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12760         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12761         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12762         * Makefile.in: Update all dependencies.
12763         (tui_hooks_h, gdb_curses_h): Define.
12764         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12765
12766 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
12767
12768         * objfiles.h (struct objfile): Remove unused fields auxf1 and
12769         auxf2. Add comments about some other rarely used fields.
12770
12771 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12772
12773         * Makefile.in (init.c): Fix script removing duplicates. Problem
12774         reported by Peter Schauer.
12775
12776 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12777
12778         * bcache.c (bcache_xmalloc): Use obstack_init instead of
12779         obstack_specify_allocation.
12780         * objfiles.c (allocate_objfile): Ditto.
12781         * solib-sunos.c (solib_add_common_symbols)
12782         (allocate_rt_common_objfile): Ditto.
12783         * symfile.c (reread_symbols): Ditto.
12784         * gdb_obstack.h: Add comment.
12785
12786 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12787
12788         * linespec.c (decode_line_1, locate_first_half)
12789         (decode_compound, lookup_prefix_sym): Update comments. Delete old
12790         commented out code.
12791
12792 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
12793
12794         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12795         obstack_free.
12796
12797 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12798
12799         * blockframe.c (find_pc_partial_function): If find_pc_overlay
12800         fails, try find_pc_section.  Fix PR c++/1267.
12801         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12802         instead of find_pc_mapped_section.
12803         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12804         not default to the section containing PC.  Fix PR symtab/1519.
12805
12806 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12807
12808         * Makefile.in (mips-tdep.o): Update dependencies.
12809         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12810         "trad-frame.h".
12811         (mips_unwind_pc): Return the pseudo PC register.
12812         (mips_unwind_dummy_id): New function.
12813         (mips16_fetch_instruction): New function.
12814         (mips32_fetch_instruction): New function.
12815         (struct mips_frame_cache): Define.
12816         (mips_mdebug_frame_cache): New function.
12817         (mips_mdebug_frame_this_id): New function.
12818         (mips_mdebug_frame_prev_register): New function.
12819         (mips_mdebug_frame_unwind): Define.
12820         (mips_mdebug_frame_sniffer): New function.
12821         (mips_mdebug_frame_base_address): New function.
12822         (mips_mdebug_frame_base): Define.
12823         (mips_mdebug_frame_base_sniffer): New function.
12824         (mips_gdbarch_init): Append unwind and base sniffers.  Set
12825         unwind_dummy_id.
12826
12827 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12828
12829         * frame.c: Print both the register number and name.
12830
12831         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
12832         and a sed into a single sed.  Make .c and .o patterns more robust.
12833         (OBS): Delete.
12834         (INIT_FILES): Replace OBS with COMMON_OBS.
12835         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12836
12837 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
12838
12839         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12840         the PT_WCOOKIE request.
12841
12842 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12843
12844         * mips-tdep.c (mips_unwind_pc): New function.
12845         (mips_gdbarch_init): Set mips_unwind_pc.
12846
12847         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12848         (get_frame_id): Allow the UNKNOWN_FRAME.
12849         (frame_register_unwind, get_frame_type): Ditto.
12850
12851         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12852         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
12853         unwind_dummy_id indicates a legacy frame.
12854
12855         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12856         * configure: Re-generate.
12857
12858         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12859         methods.
12860
12861 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12862
12863         * configure.in (CONFIG_ALL): Set to Makefile target, and not
12864         makefile macro.
12865         * configure: Re-generate.
12866         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12867         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12868         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12869         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12870         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12871         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12872         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12873         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12874         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12875         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12876
12877 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12878
12879         * Makefile.in: Update all dependencies.
12880
12881         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12882         * configure: Re-generate.
12883         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12884         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12885         (COMMON_OBS): Add "main.o" and "annotate.o".
12886         (ANNOTATE_OBS): Delete.
12887         (OBS): Remove ANNOTATE_OBS.
12888         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12889         CONFIG_INITS.
12890         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12891         against CONFIG_OBS and "main.o".
12892         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12893         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12894
12895         * tui/tui-command.c: Include "gdb_string.h", delete register
12896         attribute, use ISO-C function signatures.
12897         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12898         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12899         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12900         * tui/tui.c: Ditto.
12901
12902         * tui/tui-command.c: Change variable and function names to lower
12903         case.
12904         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12905         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12906         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12907         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12908         * tui/tui-winsource.c, tui/tui.c: Ditto.
12909
12910 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12911
12912         * buildsym.c (free_pending_blocks, finish_block)
12913         (record_pending_block, make_blockvector, end_symtab): Replace
12914         symbol_obstack with objfile_obstack.
12915         * coffread.c (process_coff_symbol, coff_read_struct_type)
12916         (coff_read_enum_type): Ditto.
12917         * cp-namespace.c (initialize_namespace_symtab)
12918         (check_one_possible_namespace_symbol): Ditto.
12919         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12920         (dwarf2_symbol_mark_computed): Ditto.
12921         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12922         * elfread.c (elf_symtab_read): Ditto.
12923         * hpread.c (hpread_symfile_init, hpread_symfile_init)
12924         (hpread_read_enum_type, hpread_read_function_type)
12925         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12926         Ditto.
12927         * jv-lang.c (get_java_class_symtab, add_class_symbol)
12928         (java_link_class_type): Ditto.
12929         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12930         (new_symbol): Ditto.
12931         * minsyms.c (install_minimal_symbols): Ditto.
12932         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12933         (terminate_minimal_symbol_table): Replace symbol_obstack with
12934         objfile_obstack.
12935         (free_objfile): Remove freeing of symbol_obstack.
12936         * objfiles.h: Remove symbol_obstack field.
12937         * pa64solib.c (add_to_solist): Replace symbol_obstack with
12938         objfile_obstack.
12939         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12940         symbol_obstack.
12941         (solib_add_common_symbols): Replace symbol_obstack with
12942         objfile_obstack.
12943         * somsolib.c (som_solib_add): Ditto.
12944         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12945         (common_block_start, common_block_end): Ditto.
12946         * symfile.c (reread_symbols): Remove freeing and init of
12947         symbol_obstack.
12948         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12949         * symfile.h: Update comment.
12950         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12951         stats printing.
12952         * symtab.c (symbol_set_names): Replace symbol_obstack with
12953         objfile_obstack.
12954         * symtab.h (struct general_symbol_info, struct minimal_symbol):
12955         Update comments.
12956         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12957         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12958         objfile_obstack.
12959
12960 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12961
12962         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12963         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
12964         fields and variables.
12965         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12966         (m_beInvisible): Delete macro.
12967         * tui/tui-data.h: Fix case case fields and variables.
12968         (m_genWinPtrIsNull): Delete macro.
12969         (tui_win_list): Rename winList.
12970         (TUI_SRC_WIN): Rename srcWin.
12971         (TUI_DISASM_WIN): Rename disassemWin.
12972         (TUI_DATA_WIN): Rename dataWin.
12973         (TUI_CMD_WIN): Rename cmdWin.
12974         (m_genWinPtrNotNull): Delete macro.
12975         (m_winPtrIsNull): Delete macro.
12976         (m_winPtrNotNull): Delete macro.
12977         (tui_win_is_source_type): Replace m_winIsSourceType
12978         (tui_win_is_auxillary): Replace m_winIsAuzillary.
12979         (tui_win_has_locator): Replace m_hasLocator.
12980         (tui_set_win_highlight): Replace m_setWinHighlightOn and
12981         m_setWinHighlightOff.
12982         * tui/tui-data.c: Update references.
12983         (tui_win_is_source_type, tui_set_win_highlight): New functions.
12984         (tui_win_has_locator, tui_win_is_auxillary): New functions.
12985         * tui/tui-command.c, tui/tui-disasm.c: Update references.
12986         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12987         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12988         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12989         * tui/tui-winsource.c, tui/tui.c: Ditto.
12990
12991 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
12992
12993         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12994         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12995         StackGhost.
12996
12997         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12998         variable `i6' to `i7'.
12999         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13000
13001 2004-02-07  Andrew Cagney  <cagney@redhat.com>
13002
13003         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
13004         (TuiPoint, TuiPointPtr): Ditto.
13005         (TuiStatus, TuiStatusPtr): Ditto.
13006         (TuiWinType, TuiWinTypePtr): Ditto.
13007         (struct tui_point): Rename _TuiPoint.
13008         (tui_get_low_disassembly_address): Rename
13009         tuiGetLowDisassemblyAddress.
13010         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
13011         (tuiFree): Delete declaration.
13012         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
13013         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
13014         * tui/tui.c (tuiFree): Delete function.
13015         * cli/cli-cmds.c (disassemble_command): Update references.
13016         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
13017         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
13018         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13019         * tui/tui-winsource.c: Ditto.
13020
13021 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
13022
13023         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13024         coffstab_build_psymtabs, elfstab_build_psymtabs)
13025         (stabsect_build_psymtabs): Replace psymbol_obstack with
13026         objfile_obstack.
13027         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13028         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13029         Ditto.
13030         * dwarfread.c (scan_compilation_units): Ditto.
13031         * elfread.c (elfstab_offset_sections): Ditto.
13032         * hppa-tdep.c (read_unwind_info): Ditto.
13033         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13034         (hpread_end_psymtab): Ditto.
13035         * mdebugread.c (mdebug_build_psymtabs, add_pending)
13036         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13037         Ditto.
13038         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13039         * objfiles.c (add_to_objfile_sections)
13040         (build_objfile_section_table): Ditto.
13041         (allocate_objfile): Remove init of psymbol_obstack.
13042         (free_objfile): Remove freeing of psymbol_obstack.
13043         * objfiles.h (struct objfile): Remove field
13044         psymbol_obstack. Update comments.
13045         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13046         psymbol_obstack with objfile_obstack.
13047         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13048         psymbol_obstack.
13049         * somread.c (som_symfile_offsets, init_import_symbols)
13050         (init_export_symbols): Replace psymbol_obstack with
13051         objfile_obstack.
13052         * somsolib.c (som_solib_add_solib_objfile): Ditto.
13053         * symfile.c (default_symfile_offsets, syms_from_objfile)
13054         (reread_symbols): Remove freeing and init of psymbol_obstack.
13055         (cashier_psymtab): Update comment.
13056         * symmisc.c (print_objfile_statistics): Don't report stats for
13057         psymbol obstack.
13058         * symtab.h (struct general_symbol_info, struct partial_symtab):
13059         Update comments.
13060         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13061         (xcoff_symfile_offsets): Replace psymbol_obstack with
13062         objfile_obstack.
13063
13064 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
13065
13066         * objfiles.h (struct objfile): Add objfile_obstack field.
13067         Remove type_obstack field.
13068
13069         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13070         read_structure_scope read_enumeration, new_symbol): Replace
13071         type_obstack with objfile_obstack.
13072         * dwarfread.c (struct_type, enum_type): Ditto.
13073         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13074         (lookup_fundamental_type): Ditto.
13075         * gdbtypes.h (TYPE_ALLOC): Ditto.
13076         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13077         (hpread_read_doc_function_type, hpread_read_struct_type)
13078         (fix_static_member_physnames, hpread_read_array_type)
13079         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13080         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13081         (java_link_class_type): Ditto.
13082         * mdebugread.c (parse_type): Ditto.
13083         * objfiles.c (allocate_objfile, free_objfile): Ditto.
13084         * solib-sunos.c (solib_add_common_symbols): Ditto.
13085         * stabsread.c (define_symbol, read_type, read_member_functions,
13086         read_cpp_abbrev, read_one_struct_field): Ditto.
13087         * symfile.c (reread_symbols): Ditto.
13088         * symmisc.c (print_objfile_statistics): Ditto.
13089
13090 2004-02-07  Andrew Cagney  <cagney@redhat.com>
13091
13092         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13093         (tui_exec_info_content): Rename TuiExecInfoContent.
13094         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13095         (TuiWinInfo, TuiWinInfoPtr): Ditto.
13096         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13097         (TuiList, TuiListPtr): Ditto.
13098         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13099         (TuiDataType, TuiDataTypePtr): Ditto.
13100         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13101         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13102         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13103         (TuiSourceElement, TuiSourceElementPtr): Ditto.
13104         (TuiDataElement, TuiDataElementPtr): Ditto.
13105         (TuiWinElement, TuiWinElementPtr): Ditto.
13106         (TuiDataInfo, TuiDataInfoPtr): Ditto.
13107         (TuiCommandElement, TuiCommandElementPtr): Ditto.
13108         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13109         (TuiWhichElement, TuiWhichElementPtr): Ditto.
13110         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13111         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13112         * tui/tui-command.c, tui/tui-data.c: Update references.
13113         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13114         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13115         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13116         * tui/tui-winsource.c, tui/tui.c: Ditto.
13117
13118 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
13119
13120         * dwarf2-frame.h: Update copyright.
13121         (enum dwarf2_frame_reg_rule): New.
13122         (struct dwarf2_frame_state_reg): New.
13123         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13124         * dwarf2-frame.c: Update copyright.
13125         (enum dwarf2_reg_rule): Remove.
13126         (struct dwarf2_frame_state): Remove defenition of `struct
13127         dwarf2_frame_state_reg'.
13128         (read_reg): Call get_frame_arch to get the architecture instead of
13129         using CURRENT_GDBARCH.
13130         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13131         DWARF2_FRAME_.
13132         (dwarf2_frame_init_reg): New function.
13133         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13134         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
13135         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
13136         tags with DWARF2_FRAME_.
13137         (dwarf2_frame_prev_register): Call get_frame_arch to get the
13138         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
13139         dwarf2_reg_rule' tags with DWARF2_FRAME_.
13140
13141 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13142
13143         * tui/tui-data.h (struct tui_list): Rename _TuiList.
13144         (enum tui_data_type): Rename _TuiDataType.
13145         (struct tui_layout_def): Rename _TuiLayoutDef.
13146         (struct tui_source_element): Rename _TuiSourceElement.
13147         (struct tui_data_element): Rename _TuiDataElement.
13148         (struct tui_command_element): Rename _TuiCommandElement.
13149         (struct tui_locator_element): Rename _TuiLocatorElement.
13150         (union tui_which_element): Define.
13151         (struct tui_win_element): Rename _TuiWinElement.
13152         (struct tui_data_info): Rename _TuiDataInfo.
13153         (struct tui_source_info): Rename _TuiSourceInfo.
13154         (struct tui_command_info): Rename _TuiCommandInfo.
13155         (tui_initialize_static_data): Rename initializeStaticData.
13156         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13157         (tui_alloc_win_info): Rename allocWinInfo.
13158         (tui_init_generic_part): Rename initGenericPart.
13159         (tui_init_win_info): Rename initWinInfo.
13160         (tui_alloc_content): Rename allocContent.
13161         (tui_add_content_elements): Rename addContentElements.
13162         (tui_init_content_element): Rename initContentElement.
13163         (tui_free_window): Rename freeWindow.
13164         (tui_free_win_content): Rename freeWinContent.
13165         (tui_free_data_content): Rename freeDataContent.
13166         (tui_free_all_source_wins_content): Rename
13167         freeAllSourceWinsContent.
13168         (tui_del_window): Rename tuiDelWindow.
13169         (tui_del_data_windows): Rename tuiDelDataWindows.
13170         (tui_partial_win_by_name): Rename partialWinByName.
13171         (tui_win_name): Rename winName.
13172         (tui_current_layout): Rename currentLayout.
13173         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13174         (tui_term_height): Rename termHeight.
13175         (tui_set_term_height_to): Rename setTermHeightTo.
13176         (tui_term_width): Rename termWidth.
13177         (tui_set_term_width_to): Rename setTermWidthTo.
13178         (tui_set_gen_win_origin): Rename setGenWinOrigin.
13179         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13180         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13181         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13182         (tui_source_windows): Rename sourceWindows.
13183         (tui_clear_source_windows): Rename clearSourceWindows.
13184         (tui_clear_source_windows_detail): Rename
13185         clearSourceWindowsDetail.
13186         (tui_clear_win_detail): Rename clearWinDetail.
13187         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13188         (tui_default_tab_len): Rename tuiDefaultTabLen.
13189         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13190         (tui_win_with_focus): Rename tuiWinWithFocus.
13191         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13192         (tui_layout_def): Rename tuiLayoutDef.
13193         (tui_win_resized): Rename tuiWinResized.
13194         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13195         (tui_next_win): Rename tuiNextWin.
13196         (tui_prev_win): Rename tuiPrevWin.
13197         (tui_add_to_source_windows): Rename addToSourceWindows.
13198         * tui/tui-winsource.c, tui/tui-win.c: Update references.
13199         * tui/tui-layout.c, tui/tui-source.c: Ditto.
13200         * tui/tui-stack.c, tui/tui-io.c: Ditto.
13201         * tui/tui.c, tui/tui-data.c: Ditto.
13202         * tui/tui-interp.c, tui/tui-data.c: Ditto.
13203         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13204
13205         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
13206         (struct symtab): Declare.
13207         (tui_set_source_content): Rename tuiSetSourceContent.
13208         (tui_show_symtab_source): Rename tuiShowSource.
13209         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13210         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13211         * tui/tui-source.c: Update copyright.  Update references.
13212         * tui/tui-win.c, tui/tui-winsource.c: Update references.
13213         * tui/tui-stack.c: Update references.
13214
13215         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
13216         (struct tui_win_info): Declare.
13217         (tui_scroll_forward): Rename tuiScrollForward.
13218         (tui_scroll_backward): Rename tuiScrollBackward.
13219         (tui_scroll_left): Rename tuiScrollLeft.
13220         (tui_scroll_right): Rename tuiScrollRight.
13221         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13222         (tui_resize_all): Rename tuiResizeAll.
13223         (tui_refresh_all_win): Rename tuiRefreshAll.
13224         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13225         * tui/tui-layout.c, * tui/tui-io.c: Update references.
13226         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13227         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13228
13229         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
13230         (tui_erase_data_content): Rename tuiEraseDataContent.
13231         (tui_display_all_data): Rename tuiDisplayAllData.
13232         (tui_check_data_values): Rename tuiCheckDataValues.
13233         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13234         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13235         (tui_first_data_element_no_in_line): Rename
13236         tuiFirstDataElementNoInLine.
13237         (tui_delete_data_content_windows): Rename
13238         tuiDeleteDataContentWindows.
13239         (tui_refresh_data_win): Rename tuiRefreshDataWin.
13240         (tui_display_data_from): Rename tuiDisplayDataFrom.
13241         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13242         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13243         * tui/tui-win.c, tui/tui-regs.c: Update references.
13244         * tui/tui-layout.c, tui/tui.c: Update references.
13245
13246         * tui/tui-wingeneral.h: Update copyright.
13247         (m_allBeVisible): Delete macro.
13248         (m_allBeInvisible): Delete macro.
13249         (struct tui_gen_win_info): Declare.
13250         (struct tui_win_info): Declare.
13251         (tui_unhighlight_win): Rename unhighlightWin.
13252         (tui_make_visible, tui_make_invisible): Replace makeVisible.
13253         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13254         (tui_make_window): Rename makeWindow.
13255         (tui_copy_win): Rename copyWin.
13256         (tui_box_win): Rename boxWin.
13257         (tui_highlight_win): Rename highlightWin.
13258         (tui_check_and_display_highlight_if_needed): Rename
13259         checkAndDisplayHighlightIfNeeded.
13260         (tui_refresh_all): Rename refreshAll.
13261         (tui_delete_win): Rename tuiDelwin.
13262         (tui_refresh_win): Rename tuiRefreshWin.
13263         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13264         (tui_make_visible, tui_make_invisible): New functions.
13265         (tui_make_all_visible, tui_make_all_invisible): New functions.
13266         (make_all_visible): Rename makeAllVisible.
13267         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13268         * tui/tui-data.c, tui/tui-winsource.c: Update references.
13269         * tui/tui-windata.c, tui/tui-win.c: Update references.
13270         * tui/tui-regs.c, tui/tui-layout.c: Update references.
13271         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13272
13273 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13274
13275         * proc-api.c (write_with_trace): Initialize local variable to
13276         silence compiler warning.
13277
13278 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13279
13280         * tui/tui-source.h: Do not include "defs.h".
13281         (struct tui_win_info): Declare.
13282         (tui_set_source_content_nil): Declare.
13283         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13284         (union tui_line_or_address): Rename _TuiLineOrAddress.
13285         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
13286         (tui_update_source_window): Rename tuiUpdateSourceWindow.
13287         (tui_update_source_window_as_is): Rename
13288         tuiUpdateSourceWindowAsIs.
13289         (tui_update_source_windows_with_addr): Rename
13290         tuiUpdateSourceWindowsWithAddr.
13291         (tui_update_source_windows_with_line): Rename
13292         tuiUpdateSourceWindowsWithLine.
13293         (tui_clear_source_content): Rename tuiClearSourceContent.
13294         (tui_erase_source_content): Rename tuiEraseSourceContent.
13295         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13296         (tui_show_source_content): Rename tuiShowSourceContent.
13297         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13298         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13299         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13300         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13301         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13302         (tui_update_exec_info): Rename tuiUpdateExecInfo.
13303         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13304         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13305         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13306         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13307         (struct tui_win_info): Declare.
13308         * tui/tui-stack.c: Update references.
13309         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13310         * tui/tui-win.c, tui/tui-source.c: Ditto.
13311         * tui/tui.c, tui/tui-disasm.c: Ditto.
13312
13313 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13314
13315         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13316         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
13317
13318 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
13319
13320         * infrun.c (handle_inferior_event): Allow for breakpoint
13321         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13322         and SIGEMT.  Update comments.
13323         * NEWS (Revised SPARC target): Mention support for non-executable
13324         stack.
13325
13326 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
13327
13328         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13329         * inftarg.c: Update copyright year.
13330         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13331         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13332         (sparc_xfer_wcookie): New function.
13333         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13334         * Makefile.in (sparc-nat.o): Update dependencies.
13335         * config/sparc/nm-nbsd.h: Include "target.h".
13336         (NATIVE_XFER_WCOOKIE): New define.
13337         (sparc_xfer_wcookie): New prototype.
13338
13339 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13340
13341         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13342         SYSCALL_TRAP function.
13343         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13344
13345 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13346             Daniel Jacobowitz  <drow@mvista.com>
13347
13348         * objfiles.h: Delete comments refering to inside_entry_func and
13349         DEPRECATED_FRAME_CHAIN_VALID.
13350         * defs.h (inside_entry_func): Update prototype..
13351         * blockframe.c (inside_entry_func): Rename to
13352         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
13353         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13354
13355 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
13356
13357         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
13358         outside of #ifdef SOLIB_ADD region.
13359         (do_restore_lang_radix_cleanup): Ditto.
13360         (resolve_pending_breakpoint): Ditto.
13361
13362 2004-02-03  Andrew Cagney  <cagney@redhat.com>
13363
13364         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13365         (process_note_abi_tag_sections): Delete unused function.
13366         (ia64_read_fp): Delete unused function.
13367         (gdbarch_extract_struct_value_address): Delete declaration.
13368
13369 2004-02-02  Andrew Cagney  <cagney@redhat.com>
13370
13371         * vax-tdep.c (vax_frame_chain): Delete call to
13372         deprecated_inside_entry_file.
13373         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13374
13375 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
13376
13377         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13378         column that's "empty" or "same value" when eliminating REG_RA
13379         rules.
13380
13381 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13382
13383         * NEWS: Add information about new pending breakpoint support.
13384
13385 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13386
13387         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13388         and pending fields for pending breakpoint support.
13389         * breakpoint.c (breakpoint_enabled): Add check for not pending.
13390         (condition_command): Only parse condition if not a pending
13391         breakpoint.
13392         (print_one_breakpoint): Add support for pending breakpoints.
13393         (describe_other_breakpoints): Add checks to verify we are not
13394         dealing with pending breakpoints.
13395         (check_duplicates): Don't check pending breakpoints.
13396         (set_raw_breakpoint): Initialize pending flag.
13397         (do_restore_lang_radix_cleanup): New cleanup routine.
13398         (resolve_pending_breakpoint): New function.
13399         (re_enable_breakpoints_in_shlibs): Try and resolve any
13400         pending breakpoints via resolve_pending_breakpoint.
13401         (mention): Add pending breakpoint support.
13402         (parse_breakpoint_sals): Add new parameter to pass to
13403         decode_line_1 to indicate silent errors when files or functions
13404         are not found.  Change all callers.
13405         (do_captured_parse_breakpoint): New function.
13406         (break_command_1): Change prototype to return an rc value and to
13407         take an optional pending breakpoint pointer.  Support creating
13408         a pending breakpoint if a "not found" form of error occurs when
13409         parsing the breakpoint.  Also support resolving an existing pending
13410         breakpoint and be silent if the resolution fails.
13411         (create_breakpoints): Change prototype to take pending breakpoint
13412         pointer.  When resolving a pending breakpoint, use the new pointer
13413         to provide a conditional or commands added by the end-user.
13414         (delete_breakpoint): Add appropriate check for pending.
13415         (breakpoint_re_set_one): Ditto.
13416         (do_enable_breakpoint): Ditto.
13417
13418 2004-02-02  David Carlton  <carlton@kealia.com>
13419
13420         * valops.c (enum oload_classification): New.
13421         (find_overload_match): Break implementation into separate
13422         functions; delete #if 0'd code; look for symbols within
13423         namespaces.
13424         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13425         (find_oload_champ,oload_method_static,classify_oload_match): New.
13426         * cp-support.h: Add declaration for cp_func_name; update
13427         declaration for make_symbol_overload_list.
13428         * cp-support.c (cp_func_name): New.
13429         (overload_list_add_symbol): Fix comment, use
13430         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13431         (make_symbol_overload_list): Take a function name and a namespace
13432         instead of a symbol; change implementation.
13433         (make_symbol_overload_list_using): New.
13434         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13435
13436 2004-02-02  Fred Fish  <fnf@redhat.com>
13437
13438         * main.c (gdb_stdtarg): Move definition to group with other
13439         gdb_stdtarg definitions and update copyright years.
13440         * remote-sim.c (gdb_os_write_stderr): Write output to
13441         gdb_stdtargerr stream instead of gdb_stdtarg stream.
13442         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13443         gdb_stderr stream and update copyright years.
13444
13445 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13446
13447         * Makefile.in (mips-linux-nat.o): Update dependencies.
13448         * mips-linux-nat.c: Include mips-tdep.h.
13449
13450 2004-02-01  Roland McGrath  <roland@redhat.com>
13451
13452         * sol-thread.c (sol_thread_xfer_partial): New function.
13453         (init_sol_thread_ops): Use that for to_xfer_partial hook.
13454         (init_sol_core_ops): Likewise.
13455
13456         * procfs.c (procfs_xfer_partial): New function.
13457         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13458         * Makefile.in (procfs.o): Add $(auxv_h) dep.
13459
13460         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13461         procfs_xfer_auxv function.
13462
13463         * procfs.c (procfs_make_note_section): If we can read
13464         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13465         * linux-proc.c (linux_make_note_section): Likewise.
13466
13467         * auxv.h: New file.
13468         * auxv.c: New file.
13469         * Makefile.in (auxv_h): New variable.
13470         (COMMON_OBS): Add auxv.o here.
13471         (auxv.o): New target.
13472
13473         * corelow.c (core_xfer_partial): New function.
13474         (init_core_ops): Use it for core_ops.to_xfer_partial.
13475
13476         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13477         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13478         macro if that is defined.
13479
13480 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13481
13482         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13483         and check the specified thread for each breakpoint.
13484         * breakpoint.h (bpstat_stop_status): Update prototype.
13485         * infrun.c (handle_inferior_event): Update calls to
13486         bpstat_stop_status.
13487
13488 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13489
13490         * Makefile.in (cli-cmds.o): Add $(readline_h).
13491
13492 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13493
13494         * cli/cli-cmds.c: Include readline.h.
13495         (complete_command): Pass the start of the last word to
13496         complete_line.
13497
13498 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13499
13500         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13501         argument, and change first argument to a CORE_ADDR.
13502         * breakpoint.h (bpstat_stop_status): Update prototype.
13503         * infrun.c (adjust_pc_after_break): Add a new comment.
13504         (handle_inferior_event): Update calls to bpstat_stop_status.
13505
13506 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13507
13508         * breakpoint.h: Update copyright years.
13509
13510 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13511
13512         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13513         (bpstat_stop_status): Don't decrement PC.
13514         * breakpoint.h (software_breakpoint_inserted_here_p): Add
13515         prototype.
13516         * infrun.c (adjust_pc_after_break): New function.
13517         (handle_inferior_event): Call it, early.  Remove later references
13518         to DECR_PC_AFTER_BREAK.
13519         (normal_stop): Add commentary.
13520
13521 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13522
13523         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13524         2004-01-27 double-free fix.
13525
13526 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
13527
13528         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13529         (sparc32_frame_prev_register): Handle StackGhost.
13530         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13531
13532 2004-01-29  Roland McGrath  <roland@redhat.com>
13533
13534         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13535         * configure: Regenerated.
13536
13537         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13538         * Makefile.in (procfs.o): Add dep.
13539
13540 2004-01-28  Andrew Cagney  <cagney@redhat.com>
13541
13542         * tui/tui-stack.h: Update copyright.
13543         (struct frame_info): Add opaque declaration.
13544         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13545         (tui_show_locator_content): Rename tuiShowLocatorContent.
13546         (tui_show_frame_info): Rename tuiShowFrameInfo.
13547         * tui/tui-stack.c: Update copyright.  Update references.
13548         * tui/tui-winsource.c: Update references.
13549         * tui/tui-win.c: Update references.
13550         * tui/tui-layout.c: Update references.
13551         * tui/tui-hooks.c: Update copyright, update references.
13552         * tui/tui.c: Update copyright, update references.
13553         * tui/tui-disasm.c: Update references.
13554
13555 2004-01-28  David Carlton  <carlton@kealia.com>
13556
13557         * dwarf2read.c (add_partial_structure): Use demangled name if
13558         namespace equals "".
13559
13560 2004-01-27  Jim Blandy  <jimb@redhat.com>
13561
13562         Clean up misapplied patch:
13563         * dwarf2read.c (determine_prefix): Change one of the two forward
13564         declarations for 'determine_prefix_aux' to a declaration for this.
13565         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
13566         argument to 'die_specification'.
13567
13568         * dwarf2read.c (read_func_scope): Re-indent comment.
13569
13570 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
13571
13572         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13573         b->exp to NULL after freeing so that error during re-parsing or
13574         evaluation of expressions associated with breakpoint don't
13575         eventually lead to re-freeing of storage.
13576         Committed by Andrew Cagney.
13577
13578 2004-01-27  Andrew Cagney  <cagney@redhat.com>
13579
13580         * source.c (ambiguous_line_spec): Delete undefined declaration.
13581         * m32r-rom.c (m32r_set_board_address): Delete unused function.
13582         (m32r_set_server_address, m32r_set_download_path): Ditto.
13583         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13584
13585 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
13586
13587         * dwarf2read.c: Update calls to changed and renamed functions, and
13588         references to moved variables.
13589
13590         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13591         language, language_defn, list_in_scope, and ftypes members.
13592         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13593         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13594         (baseaddr): Remove globals.
13595
13596         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
13597         (set_cu_language, die_is_declaration, die_specification)
13598         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13599         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13600         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13601         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13602
13603         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
13604         cu.list_in_scope.  Don't initialize cu_header_offset.
13605         (add_partial_symbol): Add local baseaddr.
13606         (psymtab_to_symtab_1): Add local baseaddr.  Use
13607         objfile->section_offsets for consistency.  Don't initialize
13608         cu_header_offset; do initialize cu.header.offset and
13609         cu.list_in_scope.
13610         (read_file_scope, read_func_scope, read_lexical_block_scope)
13611         (dwarf_decode_lines, new_symbol): Add local baseaddr.
13612
13613 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
13614
13615         * PROBLEMS: Add gdb/1516.
13616
13617 2003-12-29  Robert Millan  <robertmh@gnu.org>
13618
13619         Patch committed by Andrw Cagney.
13620         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13621         * configure.tgt: Match knetbsd*-gnu.
13622
13623 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13624
13625         * breakpoint.c (catch_command_1): Delete #ifdef code.
13626         (catch_fork_command_1): Delete #ifdef wrapper.
13627         (catch_exec_command_1): Ditto.
13628         (catch_load_command_1): Ditto.
13629         (catch_unload_command_1): Ditto.
13630
13631         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13632         (catch_breakpoint): Delete #if0ed function.
13633         (disable_catch_breakpoint): Ditto.
13634         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13635         (disable_catch, enable_catch, delete_catch): Ditto.
13636
13637 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13638
13639         * remote.c (echo_check, quit_flag): Delete variables.
13640         (cisco_kernel_mode): Delete variable.
13641         (minitelnet_return, tty_input, escape_count): Delete variables.
13642         (remote_cisco_mode): Delete variable.
13643         (remote_cisco_open, remote_cisco_close): Delete function.
13644         (remote_cisco_mourn, remote_cisco_wait): Delete function.
13645         (init_remote_cisco_ops): Delete function.
13646         (_initialize_remote): Do not install "remote cisco" code.
13647         (read_frame): Delete cisco specific code.
13648         (remote_info_process): Delete function.
13649         (remote_wait): Delete cisco specific code.
13650         (remote_cisco_section_offsets): Delete function.
13651         (remote_cisco_objfile_relocate): Delete function.
13652         (remote_async_wait): Delete cisco specific code.
13653         (minitelnet, readtty, readsocket): Delete function.
13654
13655 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13656
13657         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
13658         comments mentioning extract_returned_value_address.
13659         * infcmd.c (print_return_value): Update.  Add comments on
13660         extract_returned_value_address.
13661         * stack.c (return_command): Add comments on
13662         extract_returned_value_address.
13663         * values.c: Update comment.
13664         * m32r-tdep.c: Update comment.
13665         * sparc-tdep.c: Update comment.
13666         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13667         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13668         * sh64-tdep.c (sh64_gdbarch_init): Update.
13669         * sh-tdep.c (sh_gdbarch_init): Update.
13670         * s390-tdep.c (s390_gdbarch_init): Update.
13671         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13672         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13673         * m68k-tdep.c (m68k_gdbarch_init): Update.
13674         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13675         * m32r-tdep.c (m32r_gdbarch_init): Update.
13676         * ia64-tdep.c (ia64_gdbarch_init): Update.
13677         * h8300-tdep.c (h8300_gdbarch_init): Update.
13678         * frv-tdep.c (frv_gdbarch_init): Update.
13679         * arm-tdep.c (arm_gdbarch_init): Update.
13680         * alpha-tdep.c (alpha_gdbarch_init): Update.
13681
13682 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13683
13684         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13685         SYMBOL_LOCATION_FUNCS
13686         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13687         "struct symbol_ops".
13688         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13689         type to "struct symbol_ops".
13690         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13691         (struct symbol): Replace ".aux_value.loc.funcs" and
13692         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13693         (SYMBOL_OBJFILE): Delete macro.
13694         (SYMBOL_LOCATION_FUNCS): Delete macro.
13695         (SYMBOL_LOCATION_BATON): Update.
13696         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13697         intead of SYMBOL_LOCATION_FUNCS.
13698         * ax-gdb.c (gen_var_ref): Ditto.
13699         * printcmd.c (address_info): Ditto.
13700         * findvar.c (read_var_value): Ditto.
13701         (symbol_read_needs_frame): Ditto.
13702
13703 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13704
13705         * dwarf2read.c (read_func_scope): Document frame-base hack.
13706
13707 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13708
13709         * infcmd.c (print_return_value): Plug memory leak; delete
13710         ui_stream object.  Rename argument `structure_return' to
13711         `struct_return'.
13712
13713 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13714
13715         * infcmd.c (print_return_value): Wrap long lines.
13716         (finish_command_continuation, finish_command): Remove unused
13717         variable `funcaddr'.  Fix some coding-standards problems.
13718
13719         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13720         SECT_SIZE is large enough, not whether it's exactly the right size.
13721         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13722         TDEP->fpregset to zero.
13723
13724         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13725         floating-point registers for traditional NetBSD core files.
13726         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13727         TDEP->sizeof_fpregset here.
13728
13729 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13730
13731         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13732         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13733         function with code split out from
13734         sparc32nbsd_sigcontext_frame_cache.
13735         (sparc32nbsd_sigcontext_frame_cache): Use
13736         sparc32nbsd_sigcontext_saved_regs.
13737         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13738         OpenBSD.
13739         * sparcobsd-tdep.c: New file.
13740         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13741         (sparcobsd-tdep.o): New dependency.
13742         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13743         * config/sparc/obsd.mt: New file.
13744
13745         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13746         TDEP->fpregset to be initialized to enable core file register
13747         sets.
13748
13749 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
13750
13751         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13752         Add opaque declarations.
13753         (sparc64nbsd_sigcontext_saved_regs): New prototype.
13754         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13755         function with code split out from
13756         sparc64nbsd_sigcontext_frame_cache.
13757         (sparc64nbsd_sigcontext_frame_cache): Use
13758         sparc64nbsd_sigcontext_saved_regs.
13759         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13760         OpenBSD.
13761         * sparc64obsd-tdep.c: New file.
13762         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13763         (sparc64obsd-tdep.o): New dependency.
13764         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13765         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13766         * config/sparc/obsd64.mt: New file.
13767
13768         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13769         read the instruction at PC.
13770
13771         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13772         value of GDB_OSABI_DEFAULT.
13773         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13774         instead of GDB_OSABI_NETBSD_AOUT.
13775
13776 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
13777
13778         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13779         copyright.
13780
13781 2004-01-23  Andrew Cagney  <cagney@redhat.com>
13782
13783         * printcmd.c (display_command): Replace tui_set_display call with
13784         tui_set_layout_for_display_command.
13785         * tui/tui.h (enum tui_win_type): Define.
13786         (tui_set_layout): Delete declaration.
13787         (tui_set_layout_for_display_command): Rename set_tui_layout.
13788         * tui/tui-data.h (enum tui_layout_type): Define.
13789         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
13790         "tui.h".
13791         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13792         (tui_default_win_height): Rename tuiDefaultWinHeight.
13793         (tui_default_win_viewport_height): Rename
13794         tuiDefaultWinViewportHeight.
13795         (tui_set_layout): RenametuiSetLayout.
13796         * tui/tui-layout.c: Update references.
13797         * tui/tui.c: Update references.
13798         * tui/tui-disasm.c: Update references.
13799
13800 2004-01-23  David Carlton  <carlton@kealia.com>
13801
13802         Partial workaround for PR c++/1511:
13803         * cp-namespace.c: Include frame.h.
13804         (cp_lookup_transparent_type): New
13805         (cp_lookup_transparent_type_loop): New.
13806         * cp-support.h: Declare cp_lookup_transparent_type.
13807         * symtab.c (basic_lookup_transparent_type): Renamed from
13808         lookup_transparent_type.
13809         (lookup_transparent_type): Replace old body by a call to
13810         current_language->la_lookup_transparent_type.
13811         * symtab.h: Update copyright.  Declare
13812         basic_lookup_transparent_type.
13813         * language.h: Update copyright.
13814         (struct language_defn): Add la_lookup_transparent_type.
13815         * language.c: Update copyright.
13816         (unknown_language_defn): Add basic_lookup_transparent_type.
13817         (auto_language_defn): Add basic_lookup_transparent_type.
13818         (local_language_defn): Add basic_lookup_transparent_type.
13819         * ada-lang.c: Update copyright.
13820         (ada_language_defn): Add basic_lookup_transparent_type.
13821         * c-lang.c: Update copyright.
13822         (c_language_defn): Add basic_lookup_transparent_type.
13823         (cplus_language_defn): Add basic_lookup_transparent_type.
13824         (asm_language_defn): Add basic_lookup_transparent_type.
13825         (minimal_language_defn): Add basic_lookup_transparent_type.
13826         * f-lang.c: Update copyright.
13827         (f_language_defn): Add basic_lookup_transparent_type.
13828         * jv-lang.c: Update copyright.
13829         (java_language_defn): Add basic_lookup_transparent_type.
13830         * m2-lang.c: Update copyright.
13831         (m2_language_defn): Add basic_lookup_transparent_type.
13832         * objc-lang.c: Update copyright.
13833         (objc_language_defn): Add basic_lookup_transparent_type.
13834         * p-lang.c: Update copyright.
13835         (p_language_defn): Add basic_lookup_transparent_type.
13836         * scm-lang.c: Update copyright.
13837         (scm_language_defn): Add basic_lookup_transparent_type.
13838         * Makefile.in (cp-namespace.o): Depend on frame.h.
13839
13840 2004-01-23  David Carlton  <carlton@kealia.com>
13841
13842         Patch for PR c++/1520:
13843         * dwarf2read.c (read_func_scope): Set processing_current_prefix
13844         properly if we have a specification die.
13845         (determine_prefix_aux): Rename from determine_prefix.
13846         (determine_prefix): Like the old determine_prefix, but never
13847         returns NULL.
13848
13849 2004-01-23  Theodore A. Roth  <troth@openavr.org>
13850
13851         * avr-tdep.c: Update copyright.
13852         (avr_iaddr_p): Delete unused function.
13853         (avr_saddr_p): Delete unused function.
13854
13855 2004-01-23  David Carlton  <carlton@kealia.com>
13856
13857         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13858         Fix for PR symtab/1534.
13859
13860 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
13861
13862         * NEWS (New native configurations): Mention OpenBSD/sparc and
13863         OpenBSD/sparc64.
13864         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13865         * configure.host: Likewise.
13866         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13867         handler for OpenBSD.
13868         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13869
13870 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13871
13872         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13873         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13874
13875         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13876         * cli/cli-cmds.c (shell_escape): Likewise.
13877
13878         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13879         OpenBSD .note.openbsd.ident sections.
13880
13881 2004-01-22  David Carlton  <carlton@kealia.com>
13882
13883         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13884         get_scope_pc_bounds.
13885         (read_file_scope): Ditto.
13886         (get_scope_pc_bounds): New function, produced by extracting code
13887         from the above two functions, consolidating it, and adding support
13888         for DW_TAG_namespace.
13889
13890 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13891
13892         * osabi.c (MAX_NOTESZ): New define.
13893         (check_note): New function.
13894         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13895         check_note.
13896
13897 2004-01-21  Roland McGrath  <roland@redhat.com>
13898
13899         * MAINTAINERS (write after approval): Add myself.
13900
13901 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
13902
13903         * utils.c (init_page_info): Move declarations of `rows' and
13904         `cols' before the __GO32__-specific code.  Move the closing brace
13905         outside the #ifdef __GO32__..#endif block.
13906         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13907
13908 2004-01-21  Paul Brook  <paul@codesourcery.com>
13909
13910         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13911         BPSTAT_WHAT_CHECK_SHLIBS.
13912
13913 2004-01-21  Paul Brook  <paul@codesourcery.com>
13914
13915         * MAINTAINERS: Add myself to write-after-approval.
13916
13917 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13918
13919         * ax-gdb.c (print_axs_value): Delete unused function.
13920         * jv-lang.c (java_lookup_type): Delete unused function.
13921         * cli/cli-dump.c (dump_filetype): Delete unused function.
13922         * remote-mips.c (remote_mips_insert_hw_breakpoint)
13923         (remote_mips_remove_hw_breakpoint): Delete unused functions.
13924         (mips_getstring): Delete unused function.
13925         (pmon_insert_breakpoint): Delete #if0ed function.
13926         (PMON_MAX_BP): Delete #if0ed MACRO.
13927         (mips_pmon_bp_info): Delete #if0ed variable.
13928         (pmon_remove_breakpoint): Delete #if0ed function.
13929         * monitor.c (monitor_write_even_block): Delete unused function.
13930         (monitor_write_memory_block): Delete #if0ed code.
13931         * dink32-rom.c (dink32_load): Delete unused function.
13932         (_initialize_dink32_rom): Delete #if0ed code.
13933         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13934
13935         * tui/tui-command.c: Update references.
13936         * tui/tui-io.c: Update references.
13937         * tui/tui-command.h: Update copyright.
13938         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13939
13940         * source.c (ambiguous_line_spec): Delete never-defined function.
13941         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13942         * gdbtypes.c (add_name, add_mangled_type): Ditto.
13943         * cli/cli-cmds.c (validate_comname): Ditto.
13944
13945         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
13946         "tui-data.h".
13947         (tui_set_disassem_content): Rename tuiSetDisassemContent.
13948         (tui_show_disassem): Rename tuiShowDisassem.
13949         (tui_show_disassem_and_update_source): Rename
13950         tuiVerticalDisassemScroll.
13951         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13952         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13953         * tui/tui.h: Update copyright.
13954         (enum tui_status): Define.
13955         * tui/tui-data.h (enum tui_scroll_direction): Define.
13956         * tui/tui-disasm.c: Update copyright.  Update references.
13957         * tui/tui-winsource.c:  Update copyright.  Update references.
13958         * tui/tui-win.c: Update references.
13959         * tui/tui-layout.c: Update references.
13960
13961 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13962
13963         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13964         sym2 to start of block.
13965
13966 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
13967
13968         * MAINTAINERS: Delete mmalloc.
13969         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13970         * NEWS: Mention removal of --with-malloc.
13971         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13972         * config.in: Regenerate.
13973         * configure: Regenerate.
13974         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13975         USE_MMALLOC, MMCHECK_FORCE.
13976         * gdbinit.in: Remove mmalloc.
13977         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13978         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13979         * config/i386/go32.mh: Likewise.
13980         * config/i386/interix.mh: Likewise.
13981         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13982
13983 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
13984
13985         * linespec.c (decode_variable, symtab_from_filename):  Call
13986         error_silent with error message instead of throwing an exception
13987         directly.
13988         * defs.h (error_silent, error_output_message): Add prototypes.
13989         (catch_exceptions_with_msg): Ditto.
13990         * utils.c (error_silent, error_output_message): New functions.
13991         * top.c (catch_exceptions_with_msg): New function.
13992
13993 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
13994
13995         * mi/mi-cmds.h (enum print_values): Add definition.
13996
13997         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13998         type and value for simple data types and just the name and type
13999         for complex ones, if required.
14000
14001         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
14002         children, if required.
14003
14004 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14005
14006         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
14007         unused declarations.
14008
14009 2004-01-19  Andrew Cagney  <cagney@redhat.com>
14010
14011         * top.h (mapped_symbol_files): Delete declaration.
14012         * main.c (captured_main): Delete option "m" and "mapped".
14013         * objfiles.c (mapped_symbol_files): Delete variable.
14014         * symfile.c (symbol_file_command): Delete mmap code.
14015         (symbol_file_add_with_addrs_or_offsets): Ditto.
14016         (add_symbol_file_command, reread_separate_symbols): Ditto.
14017         * objfiles.h (OBJF_MAPPED): Delete.
14018         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14019         (free_objfile) [USE_MMALLOC]: Ditto.
14020         (open_existing_mapped_file): Delete function.
14021         (open_mapped_file): Delete function.
14022         (map_to_file): Delete function.
14023
14024 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14025
14026         * infrun.c (step_into_function): Account for possible breakpoint
14027         adjustment when computing ``stop_func_start''.
14028
14029 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14030
14031         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14032         the region size against the size of a pointer, not the size of
14033         a register as given by DEPRECATED_REGISTER_SIZE.
14034
14035 2004-01-19  Andrew Cagney  <cagney@redhat.com>
14036
14037         * tui/tui-regs.h: Include "tui-data.h".
14038         (tuiFirstRegElementNoInLine): Delete declaration.
14039         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14040         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14041         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14042         (tui_calculate_regs_column_count): Rename
14043         tuiCalculateRegsColumnCount.
14044         (tui_check_register_values): Rename tuiCheckRegisterValues.
14045         (tui_show_registers): Rename tuiShowRegisters.
14046         (tui_display_registers_from_line): Rename
14047         tuiDisplayRegistersFromLine.
14048         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14049         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14050         (tui_first_reg_element_no_inline): Rename
14051         tuiFirstRegElementNoInLine.
14052         * tui/tui-data.h: Update copyright.
14053         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14054         * tui/tui-windata.c: Update copyright, update references.
14055         * tui/tui-regs.c: Update copyright, update references.
14056         * tui/tui-win.c: Update copyright, update references.
14057         * tui/tui-layout.c: Update copyright, update references.
14058
14059 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14060
14061         * tui/tui-io.c: Update copyright.
14062         (key_is_end_sequence, key_is_backspace): New functions.
14063         (key_is_command_char, key_is_start_sequence): New function.
14064         (tui_getc): Update references.
14065         * tui/tui-io.h: Update copyright.
14066         (m_tuiStartNewLine): Delete macro.
14067         (m_isBackspace, m_isDeleteChar): Delete macros.
14068         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14069         (m_isNextPage, m_isPrevPage): Delete macros.
14070         (m_isLeftArrow, m_isRightArrow): Delete macros.
14071         (m_isXdbStyleCommandChar): Delete macro.
14072         (key_is_start_sequence): Declare, replace m_isStartSequence.
14073         (key_is_end_sequence): Declare, replace m_isEndSequence.
14074         (key_is_backspace): Declare ,replace m_isBackspace.
14075         (key_is_command_char): Declare, replace m_isCommandChar.
14076         * tui/tui-command.c: Update copyright.
14077         (tuiDispatchCtrlChar): Update references.
14078
14079         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14080         tuiSourceWin.h.
14081
14082         * tui/tui-command.c: Rename tui/tuiCommand.c.
14083         * tui/tui-command.h: Rename tui/tuiCommand.h.
14084         * tui/tui-data.c: Rename tui/tuiData.c.
14085         * tui/tui-data.h: Rename tui/tuiData.h.
14086         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14087         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14088         * tui/tui-io.c: Rename tui/tuiIO.c.
14089         * tui/tui-io.h: Rename tui/tuiIO.h.
14090         * tui/tui-layout.c: Rename tui/tuiLayout.c.
14091         * tui/tui-layout.h: Rename tui/tuiLayout.h.
14092         * tui/tui-regs.c: Rename tui/tuiRegs.c.
14093         * tui/tui-regs.h: Rename tui/tuiRegs.h.
14094         * tui/tui-source.c: Rename tui/tuiSource.c.
14095         * tui/tui-source.h: Rename tui/tuiSource.h.
14096         * tui/tui-stack.c: Rename tui/tuiStack.c.
14097         * tui/tui-stack.h: Rename tui/tuiStack.h.
14098         * tui/tui-win.c: Rename tui/tuiWin.c.
14099         * tui/tui-win.h: Rename tui/tuiWin.h.
14100         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14101         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14102         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14103         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14104         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14105         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14106         * tui/tui-file.c: Update includes.
14107         * tui/tui-hooks.c: Update includes.
14108         * tui/tui-interp.c: Update includes.
14109         * tui/tui.c: Update includes.
14110         * Makefile.in: Update all tui/ dependencies.
14111         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14112
14113         * Makefile.in: Update copyright.  Update dependencies.
14114
14115         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14116         problem.
14117
14118 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14119
14120         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14121         instead of register_gdbarch_init.
14122
14123         * remote-sds.c (tohex): Delete unused function.  Update copyright.
14124         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14125         * v850-tdep.c (v850_register_virtual_size): Ditto.
14126         * target.c (normal_target_post_startup_inferior): Ditto.
14127         * source.c (ambiguous_line_spec): Ditto.
14128         * remote.c (adapt_remote_get_threadinfo): Ditto.
14129         * mi/mi-out.c (out_field_fmt): Ditto.
14130         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14131         (output_control_change_notification): Ditto.
14132         * m68k-tdep.c (m68k_register_byte): Ditto.
14133         (m68k_remote_breakpoint_from_pc): Ditto.
14134         * ui-out.c (init_ui_out_state): Delete unused declaration.
14135         * stabsread.c (search_value): Ditto.
14136         * mi/mi-cmd-env.c (env_cli_command): Ditto.
14137         * maint.c (print_section_table): Ditto.
14138         * infrun.c (set_follow_fork_mode_command): Ditto.
14139
14140 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
14141
14142         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14143         DW_CFA_def_cfa_exporession.  Add support for
14144         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14145         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
14146
14147 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14148
14149         * ocd.c: Update copyright.
14150         (bdm_read_register_command): Delete unused function.
14151         (_initialize_remote_ocd): Delete commented out reference.
14152         (get_quoted_char, reset_packet): Delete #if0ed function.
14153         (output_packet, put_quoted_char): Delete #if0ed function.
14154         (stu_put_packet, stu_get_packet): Delete #if0ed function.
14155         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14156         (BDM_BREAKPOINT): Delete #if0ed macro.
14157         (remote_timeout): Delete #if0ed variable.
14158
14159 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
14160
14161         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14162         (core-sol2.o): Remove dependency.
14163         * core-sol2.c: Remove file.
14164
14165 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14166
14167         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14168         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14169         enums.
14170
14171 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14172
14173         * remote.c: Update copyright years.
14174
14175 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14176
14177         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14178
14179 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14180
14181         * mdebugread.c: Update copyright.
14182         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14183         (parse_type, parse_procedure): Ditto.
14184         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14185
14186         * cris-tdep.c (cris_store_struct_return): Put back accidently
14187         deleted function.
14188
14189         * gdbarch.sh: Update copyright year.
14190         * gdbarch.h, gdbarch.c: Re-generate.
14191
14192 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14193
14194         Suggested by George Anzinger.
14195         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14196         correct stack offset.  Include unknown opcode numbers in the error
14197         message.
14198
14199 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14200
14201         * x86-64-tdep.c (x86_64_init_abi): No need to clear
14202         extract_struct_value_address, i386 does not set it.
14203         * sparc64-tdep.c (sparc64_init_abi): Do not set
14204         extract_struct_value_address, never called.
14205         (sparc64_extract_struct_value_address): Delete function.
14206         * m68hc11-tdep.c: Update copyright.
14207         (m68hc11_gdbarch_init): Delete redundant assignment of
14208         extract_struct_value_address.
14209         * i386-tdep.c: Update copyright.
14210         (i386_gdbarch_init): Do not set extract_struct_value_address,
14211         never called.
14212         (i386_extract_struct_value_address): Delete function.
14213         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14214         extract_struct_value_address, never called.
14215         (sparc32_extract_struct_value_address): #if 0 function.  Add
14216         comments explaining its future.
14217
14218 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14219
14220         * arm-tdep.c (arm_write_pc): New function.
14221         (arm_gdbarch_init): Call set_gdbarch_write_pc.
14222
14223 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14224
14225         * breakpoint.c (must_shift_inst_regs): Delete.
14226         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14227         and SHIFT_INST_REGS.
14228         * infcmd.c (step_1, step_1_continuation): Delete references to
14229         SHIFT_INST_REGS.
14230         * infrun.c (keep_going): Likewise.
14231         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14232         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14233
14234 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14235
14236         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14237         * gdbarch.h, gdbarch.c: Re-generate.
14238         * infcmd.c (print_return_value): Delete reference to
14239         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14240
14241         * cris-tdep.c (cris_gdbarch_init): Do not set
14242         deprecated_extract_struct_value_address.
14243
14244         * xstormy16-tdep.c: Update copyright.
14245         (xstormy16_extract_struct_value_address): Update to current
14246         extract struct value address interface.
14247         (xstormy16_gdbarch_init): Set extract_struct_value_address.
14248         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14249         current extract struct value address interface.
14250         (sh64_gdbarch_init): Set extract_struct_value_address.
14251
14252         * cris-tdep.c: Update copyright.
14253         (cris_extract_struct_value_address): Delete function.
14254         (struct_return_address): Delete variable.
14255         (cris_store_struct_return): Do not set struct_return_address.
14256
14257         * mcore-tdep.c: Update copyright.
14258         (mcore_extract_struct_value_address): Delete function.  Update
14259         comments.
14260         (mcore_gdbarch_init): Update.
14261         * mn10300-tdep.c: Update copyright.
14262         (mn10300_extract_struct_value_address): Delete function.
14263         (mn10300_gdbarch_init): Update.
14264         * v850-tdep.c: Update copyright.
14265         (v850_extract_struct_value_address): Delete.
14266         (v850_gdbarch_init): Update.
14267         * ns32k-tdep.c: Update copyright.
14268         (ns32k_extract_struct_value_address): Delete.
14269         (ns32k_gdbarch_init): Update.
14270         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14271         (hppa_gdbarch_init): Update.
14272         * vax-tdep.c: Update copyright.
14273         (vax_extract_struct_value_address): Delete.
14274         (vax_gdbarch_init): Update.
14275
14276         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14277         * gdbarch.h, gdbarch.c: Re-generate.
14278         * procfs.c (procfs_fetch_registers): Delete reference to
14279         DEPRECATED_NPC_REGNUM.
14280         (procfs_store_registers): Ditto.
14281         * regcache.c (generic_target_write_pc): Simplify.
14282         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
14283
14284         * core-sol2.c (fetch_core_registers): Replace
14285         DEPRECATED_NPC_REGNUM with equivalent tdep value.
14286
14287         * hppa-tdep.c: Update copyright year.
14288         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14289         NPC_REGNUM.
14290         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14291
14292         * mips-tdep.c (mips_write_pc): New function.
14293         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14294         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14295         (mips_find_saved_regs, mips_software_single_step: Ditto.
14296         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14297         mips_init_extra_frame_info, mips_pop_frame): Ditto.
14298
14299 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14300
14301         * mips-tdep.c: Re-indent.  Group functions by ABI.
14302
14303 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14304
14305         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14306         * gdbarch.c: Re-generate.
14307         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14308         DECR_PC_AFTER_BREAK to zero.
14309         * vax-tdep.c (vax_gdbarch_init): Ditto.
14310         * v850-tdep.c (v850_gdbarch_init): Ditto.
14311         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14312         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14313         * sh-tdep.c (sh_gdbarch_init): Ditto.
14314         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14315         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14316         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14317         * mips-tdep.c (mips_gdbarch_init): Ditto.
14318         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14319         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14320         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14321         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14322         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14323         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14324         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14325         * frv-tdep.c (frv_gdbarch_init): Ditto.
14326         * cris-tdep.c (cris_gdbarch_init): Ditto.
14327         * avr-tdep.c (avr_gdbarch_init): Ditto.
14328         * arm-tdep.c (arm_gdbarch_init): Ditto.
14329         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14330
14331 2004-01-17  J. Brobecker  <brobecker@gnat.com>
14332
14333         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14334         Delete, no longer used.
14335         (read_subrange_type): New function, mostly extracted from
14336         read_array_type().
14337         (read_array_type): Replace extracted code by call to
14338         read_subrange_type().
14339         (dwarf2_get_attr_constant_value): New function.
14340         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14341         (add_partial_symbol): Likewise.
14342         (process_die): Likewise.
14343         (new_symbol): Likewise.
14344         (read_type_die): Likewise.
14345
14346 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14347
14348         * symfile.c: Update copyright year.
14349         (compare_symbols): Delete unused function.
14350         * stabsread.c: Update copyright year.
14351         (lrs_general_complaint): Delete unused function.
14352         (ref_search_value): Ditto.
14353         (get_substring): Delete declaration.
14354         * sh64-tdep.c: Update copyright year.
14355         (sh64_get_gdb_regnum): Delete unused function.
14356         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14357         Delete unused function.
14358
14359 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
14360
14361         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14362         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14363
14364 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14365
14366         Changes from Peter Schauer.
14367         * rs6000-tdep.c: Update copyright year.
14368         (rs6000_push_dummy_call): Update the stack pointer before
14369         accessing the corresponding stack region.
14370         * rs6000-nat.c: Update copyright year.
14371         (set_host_arch): Set "info.abfd" to "exec_bfd".
14372
14373 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
14374
14375         * blockframe.c: Update copyright year.
14376         (inside_entry_func): Don't treat a zero PC specially.
14377
14378 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
14379
14380         * gcore.c (gcore_copy_callback): Use paddr_d to print size
14381         variable.
14382         (gcore_create_callback): Ditto.  Skip any memory segment that has
14383         no permissions set.
14384
14385 2004-01-14  David Carlton  <carlton@kealia.com>
14386
14387         Change symbols for C++ nested types to contain the fully qualified
14388         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
14389         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14390         c++/895.
14391         * c-exp.y (qualified_type): Handle types nested within classes.
14392         * cp-namespace.c: Update comments.
14393         (cp_set_block_scope): Delete #if 0.
14394         (cp_lookup_nested_type): Handle types nested within classes.
14395         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14396         when appropriate.
14397         (add_partial_symbol): Add the name of the enclosing namespace to
14398         types.
14399         (pdi_needs_namespace): New.
14400         (add_partial_namespace): Tweak comment.
14401         (add_partial_structure): New.
14402         (psymtab_to_symtab_1): Initialize processing_current_prefix
14403         here...
14404         (process_die): instead of here.
14405         (read_structure_scope): Try to figure out the name of the class or
14406         namespace that the structure might be defined within.
14407         (read_enumeration): Generate fully-qualified names, if possible.
14408         (read_namespace): Don't set name to NULL.
14409         (die_specification): New.
14410         (new_symbol): Generate fully-qualified names for types.
14411         (read_type_die): Determine appropriate prefix.
14412         (determine_prefix): New.
14413         (typename_concat): New.
14414         (class_name): New.
14415         * valops.c (value_aggregate_elt): Pass NOSIDE to
14416         value_struct_elt_for_reference.
14417         (value_struct_elt_for_reference): Make static, add NOSIDE
14418         parameter, call value_maybe_namespace_elt as a last resort.
14419         (value_namespace_elt): Break out code into
14420         value_maybe_namespace_elt.
14421         (value_maybe_namespace_elt): New.
14422
14423 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14424
14425         * mips-tdep.c (mips_convert_register_p): Handle both raw and
14426         cooked floating-point registers.
14427         (mips_gdbarch_init): Set convert_register_p, register_to_value,
14428         and value_to_register.
14429
14430 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14431
14432         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14433         * gdbarch.c: Re-generate.
14434         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14435         FUNCTION_START_OFFSET.
14436         * v850-tdep.c (v850_gdbarch_init): Ditto.
14437         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14438         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14439         * sh-tdep.c (sh_gdbarch_init): Ditto.
14440         * s390-tdep.c (s390_gdbarch_init): Ditto.
14441         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14442         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14443         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14444         * mips-tdep.c (mips_gdbarch_init): Ditto.
14445         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14446         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14447         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14448         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14449         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14450         * i386-tdep.c (i386_gdbarch_init): Ditto.
14451         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14452         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14453         * frv-tdep.c (frv_gdbarch_init): Ditto.
14454         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14455         * cris-tdep.c (cris_gdbarch_init): Ditto.
14456         * avr-tdep.c (avr_gdbarch_init): Ditto.
14457         * arm-tdep.c (arm_gdbarch_init): Ditto.
14458         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14459
14460 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
14461
14462         * infrun.c (follow_fork_mode_ask): Remove.
14463         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14464         (follow_fork): Simplify and remove internal error for
14465         follow_fork_mode_ask.
14466         (_initialize_infrun): Update "set follow-fork-mode" help text.
14467
14468 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14469
14470         * configure.in: Update copyright year.
14471         (build_warnings): Add -Wunused-label.
14472         * configure: Re-generate.
14473
14474 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14475
14476         * exec.h (exec_ops): Make "extern".
14477
14478         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14479         the function is void.
14480         (mips_pseudo_register_write): Ditto.
14481
14482 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14483
14484         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14485         call.  Never defined.
14486         * sparc-tdep.h (struct frame_info): Add opaque declaration.
14487         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14488         (struct sparc_gregset, struct regcache): Ditto.
14489         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
14490
14491 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14492
14493         * mi/ChangeLog: Delete file.  Renamed to ...
14494         * mi/ChangeLog-1999-2003: New file.
14495         * tui/ChangeLog: Delete file.  Renamed to ...
14496         * tui/ChangeLog-1998-2003: New file.
14497
14498 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
14499
14500         * sparc64nbsd-tdep.c: Include "regset.h".
14501         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14502         Remove variables.
14503         (fetch_core_registers): Remove function.
14504         (sparc64nbsd_core_fns): Remove variable.
14505         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14506         functions.
14507         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14508         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14509         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14510
14511         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14512         sparc_extract_struct_value_address.
14513         (sparc32_gdbarch_init): Set extract_struct_value_address.
14514         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14515         function.
14516         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
14517         return_value_on_stack.
14518
14519         * NEWS: Mention that %cs and %ss have been added to the AMD64
14520         configurations
14521
14522         * frame.c: Update copyright year.
14523         (get_prev_frame): Improve comment.
14524
14525         * sparc64fbsd-tdep.c: Include "regset.h".
14526         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14527         Remove variables.
14528         (fetch_core_registers): Remove function.
14529         (sparc64fbsd_core_fns): Remove variable.
14530         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14531         functions.
14532         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14533         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14534         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14535
14536         * sparcnbsd-tdep.c: Include "regset.h".
14537         (fetch_core_registers): Remove function.
14538         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14539         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14540         functions.
14541         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14542         TDEP->fpregset.
14543         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14544
14545         * sparc-tdep.h (struct regset): Provide opaque declaration.
14546         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14547         fpregset and sizeof_fpregset members.
14548         * sparc-tdep.c (struct regset): Provide opaque declaration.
14549         (sparc_regset_from_core_section): New function.
14550         (sparc32_gdbarch_init): Initialize TDEP->gregset,
14551         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14552         Set regset_from_core_section when appropriate.
14553
14554 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
14555
14556         * x86-64-tdep.c (amd64_non_pod_p): New function.
14557         (amd64_classify_aggregate): Return class memory for non-POD
14558         C++ structure types.
14559
14560         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14561         argument.  Use it to reserve a register if necessary.
14562         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14563         amd64_push_arguments.
14564
14565         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14566
14567         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
14568         register numbers in comments.
14569         * x86-64-tdep.h: Update copyright year.
14570         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14571         Adjust for addition of %cs and %ss.
14572         * amd64fbsd-nat.c: Update copyright year.
14573         (reg_offset): Add register offsets for %cs and %ss.
14574         * amd64fbsd-tdep.c: Update copyright year.
14575         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14576         (amd64fbsd_sc_reg_offset): Likewise.
14577         * x86-64-linux-nat.c: Update copyright year.
14578         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14579         and %ss.
14580         * amd64nbsd-nat.c: Update copyright year.
14581         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14582         * amd64nbsd-tdep.c: Update copyright year.
14583         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14584         * x86-64-linux-tdep.c: Update copyright year.
14585         (user_to_gdb_regmap): Add mapping for %cs and %ss.
14586         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14587         * regformats/reg-x86-64.dat: Add %cs and %ss.
14588
14589         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
14590         variables to prevent long lines.  Update comments to reflect
14591         reality.
14592
14593 2004-01-09  David Carlton  <carlton@kealia.com>
14594
14595         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
14596         * dwarf2read.c (read_namespace): Pull out name-generating code
14597         into namespace_name. Rename previous_namespace to previous_prefix
14598         and processing_current_namespace to processing_current_prefix..
14599         (namespace_name): New function.
14600         (add_partial_symbol): Substitute uses of pdi->name with
14601         actual_name.
14602         * cp-support.h: Rename processing_current_namespace to
14603         processing_current_prefix.
14604         Update copyright year.
14605         * cp-namespace.c: Rename processing_current_namespace to
14606         processing_current_prefix.
14607         Update copyright year.
14608
14609 2004-01-09  Andrew Cagney  <cagney@redhat.com>
14610
14611         * jv-valprint.c, ser-unix.c: Add missing copyright years.
14612
14613 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
14614
14615         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14616         complaining.
14617         (process_one_symbol): Deal with N_PATCH stabs.
14618
14619 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
14620
14621         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14622         ifdeffed code.
14623         Update copyright year.
14624
14625 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14626
14627         * config/pa/tm-hppa.h: Update extern declarations for
14628         hppa32_hpux_frame_saved_pc_in_sigtramp,
14629         hppa32_hpux_frame_base_before_sigtramp, and
14630         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14631
14632 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14633
14634         * config/pa/tm-hppah.h: Update copyright years.
14635
14636 2004-01-08  Andrew Cagney  <cagney@redhat.com>
14637
14638         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14639         (mips_o32_reg_struct_has_addr): Delete function.
14640         (mips_gdbarch_init): Update.
14641         (mips_extract_struct_value_address): Delete function.
14642
14643 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
14644
14645         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14646         reality.
14647
14648 2004-01-07  Andrew Cagney  <cagney@redhat.com>
14649
14650         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14651         architecture's elf flags (when available).
14652
14653         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14654         FPU to the start, check the MIPS FPU when looking for an old
14655         architecture.
14656         (set_mipsfpu_single_command): Update the architecture.
14657         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14658
14659         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14660         (mips_mask_address_p): Add "tdep" parameter.
14661         (show_mask_address, mips_addr_bits_remove): Update.
14662         (mips_dump_tdep): Update.
14663         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14664         (MIPS_STACK_ARGSIZE): Delete macro.
14665         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14666         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14667         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14668         (mips_dump_tdep): Update.
14669         (MIPS_SAVED_REGSIZE): Delete macro.
14670         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14671         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14672         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14673         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14674         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14675         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14676         (mips_pop_frame, return_value_location): Update.
14677         (mips_n32n64_return_value, mips_dump_tdep): Update.
14678
14679         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14680         MIPS ABI.
14681
14682         * mips-tdep.c: Update copyright.
14683         (mips_gdbarch_init): Merge two code blocks handling the register
14684         name and number layout.
14685
14686 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
14687
14688         * tracepoint.c (validate_actionline): Fix segv at EOF
14689
14690 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
14691
14692         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14693         properly for static fields.
14694
14695 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
14696             Jason Molenda  <jmolenda@apple.com>
14697
14698         * disasm.c: Update copyright to include 2004.
14699         (do_mixed_source_and_assembly): For uiout asm list
14700         and tuple cleanups, initialize to null_cleanup instead of
14701         NULL and do so prior to loop.  Only reset when we close off
14702         the tuple/list.  Move check for whether to close off the
14703         asm tuple/list to after dump_insns call where it will be run
14704         on each loop iteration.
14705
14706 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14707
14708         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14709         should be a switch case and not a label.
14710         * mips-tdep.c (mips32_next_pc): Delete unused labels
14711         "greater_equal_branch" and "less_zero_branch".
14712         * jv-valprint.c (java_print_value_fields): Delete unused label
14713         "flush_it".
14714
14715         * target.c (unpush_target): Only close a target that is in the
14716         target stack.
14717
14718 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
14719
14720         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14721         address from [sp + 64] instead of %o2.
14722
14723         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
14724         fixes PR backtrace/1476.
14725
14726 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14727
14728         * libunwind-frame.h (struct frame_id): Add opaque declaration,
14729         move to start of file.
14730         * i386-tdep.h (struct regcache): Add opaque declaration.
14731         * config/ia64/nm-linux.h (struct target_ops): Add opaque
14732         declaration.
14733         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14734         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14735         * win32-nat.c (fake_create_process): Use ISO C style definition.
14736         * stabsread.c (define_symbol): Delete #ifndef
14737         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14738         stabs_argument_has_addr call, macro never defined.
14739
14740 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
14741
14742         * op50-rom.c: Delete.
14743         * w89k-rom.c: Delete.
14744         * Makefile.in: Remove references.
14745
14746 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14747
14748         * x86-64-tdep.c: Update copyright year.
14749         (struct amd64_register_info): Rename from x86_64_register_info.
14750         (amd64_register_info): Rename from x86_64_register_info.
14751         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14752         (amd64_register_name): Rename from x86_64_register_name.
14753         (amd64_register_type): Rename from x86_64_register_type.
14754         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14755         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14756         (amd64_dwarf_reg_to_regnum): Rename from
14757         x86_64_dwarf_reg_to_regnum.
14758         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14759         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14760         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14761         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14762         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14763         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14764         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14765         (amd64_frame_cache): Rename from x86_64_frame_cache.
14766         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14767         (amd64_frame_prev_register): Rename from
14768         x86_64_frame_prev_register.
14769         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14770         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14771         (amd64_sigtramp_frame_cache): Rename from
14772         x86_64_sigtramp_frame_cache.
14773         (amd64_sigtramp_frame_prev_register): Rename from
14774         x86_64_sigtramp_frame_prev_register.
14775         (amd64_sigtramp_frame_unwind): Rename from
14776         x86_64_sigtramp_frame_unwind.
14777         (amd64_sigtramp_frame_sniffer): Rename from
14778         x86_64_sigtramp_frame_sniffer.
14779         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14780         (amd64_frame_base): Rename from x86_64_frame_base.
14781         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14782         (amd64_frame_align): Rename from x86_64_frame_align.
14783         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14784         (amd64_regset_from_core_section): Rename from
14785         x86_64_regset_from_core_section.
14786         (x86_64_init_abi): Update comments.
14787
14788 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
14789
14790         * MAINTAINERS (write after approval): Add myself.
14791
14792 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14793
14794         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14795         `float' arguments.
14796
14797 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14798
14799         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14800         such that it mentions a specific version of GCC that exhibits this
14801         bug.
14802
14803 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14804
14805         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14806         structure that has a single `float' member, store it in %f1 in
14807         addition to %f0.
14808
14809         * sparc-sol2-nat.c: Add missing '\'.
14810
14811         * sparc-tdep.c (sparc32_return_value): New function.
14812          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14813         Remove functions.
14814         (sparc32_gdbarch_init): Set return_value, don't set
14815         extract_return_value, store_return_value, use_struct_convention
14816         and return_value_on_stack.
14817
14818         * sparc-sol2-nat.c: Add missing ')'.
14819
14820 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14821
14822         * infrun.c (handle_step_into_function): New function.
14823         (handle_inferior_event): Extract out some code into the new
14824         function above.
14825
14826 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14827
14828         * infrun.c (handle_inferior_event): Move the declaration of
14829         real_stop_pc inside the if blocks where it is used.
14830
14831 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14832
14833         * sparc64-tdep.c (sparc64_16_byte_align_p)
14834         (sparc64_store_floating_fields, sparc64_store_floating_fields):
14835         Use check_typedef to get subtypes of structures and unions.
14836         (sparc64_store_return_value): Fix calculation of the appropriate
14837         offset into VALBUF when storing a structure or union.
14838         (sparc64_return_value): New function.
14839         (sparc64_use_struct_convention): Remove function.
14840         (sparc64_init_abi): Set return_value, don't set
14841         extract_return_value, store_return_value and
14842         use_struct_convention.
14843
14844 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
14845
14846         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14847         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14848         gdb/config/alpha/xm-alphaosf.h,
14849         gdb/config/powerpc/tm-ppcle-eabi.h,
14850         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14851         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14852         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14853         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14854         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14855         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14856         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14857         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14858         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14859         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14860         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14861         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14862         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14863         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14864         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14865         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14866         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14867         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14868         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14869         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14870         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14871         Remove lines for .cvsignore files.
14872
14873 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14874
14875         * infrun.c: Back out the previous change.
14876
14877 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14878
14879         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
14880         sparc-*-sunos4* to the list of REMOVED configurations.
14881
14882         * configure.tgt: Add back sparc-*-vxworks*.
14883         * remote-vxsparc.c: Remove all includes except for "defs.h",
14884         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14885         Include "sparc-tdep.h".
14886         (SPARC_R_G1): New define.
14887         (vxsparc_gregset): New variable.
14888         (ext_format_sparc): Remove extern declaration.
14889         (vx_read_register): Rewrite to use sparc32_supply_gregset and
14890         sparc32_supply_fpregset.
14891         (vx_write_register): Rewrite to use sparc32_collect_gregset,
14892         sparc_collect_rwindow and sparc32_collect_fpregset.
14893         * config/sparc/tm-vxworks.h: New file, based on recently removed
14894         tm-vxsparc.h.
14895         * config/sparc/vxworks.mt: New file, based on recently removed
14896         vxworks.mt.
14897
14898 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14899
14900         * infrun.c (handle_step_into_function): New function.
14901         (handle_inferior_event): Extract out some code into the new
14902         function above.
14903
14904 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14905
14906         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14907         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14908         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14909         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14910         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14911         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14912         (sparc_nat_h): New variable.
14913         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14914         (tm-sun4os4.h): Remove dependency.
14915         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14916         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14917         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14918         sparc-tdep.o): Update dependencies.
14919         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14920         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14921         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14922         dependencies.
14923         * configure.host: Remove existing sparc-*-lynxos*,
14924         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14925         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14926         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
14927         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14928         triplets.
14929         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14930         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14931         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14932         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
14933         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14934         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14935         sparc64-*-solaris2* and sparc64-*-* triplets.
14936         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
14937         "symtab.h" and "objfiles.h".
14938         (BIAS): Remove define.
14939         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14940         (X_DISP19): Remove macros.
14941         (sparc_fetch_instruction): Remove function.
14942         (struct gdbarch_tdep): Remove definition.
14943         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14944         (sparc_breakpoint_from_pc): Remove function.
14945         (struct sparc64_frame_cache): Remove definition.
14946         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14947         sparc64_unwind_pc): Remove functions.
14948         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14949         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
14950         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
14951         (sparc64_frame_cache): Change return type to `struct
14952         sparc_frame_cache *'.  Simply call sparc_frame_cache.
14953         (sparc64_frame_this_id, sparc64_frame_prev_register,
14954         sparc64_frame_base_address): Use `struct sparc_frame_cache'
14955         instead of `struct sparc64_frame_cache.
14956         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14957         sparc_analyze_control_transfer, sparc_software_single_step,
14958         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14959         _initialize_sparc64_tdep): Remove functions.
14960         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14961         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14962         macros.
14963         (sparc64_supply_gregset, sparc64_collect_gregset,
14964         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14965         (sparc64_init_abi): New function.
14966         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
14967         inclusion guard.  Include "sparc-tdep.h".
14968         (BIAS): Define.
14969         (r_tstate_offset, r_fprs_offset): New defines.
14970         (enum sparc_regnum): Remove defenition.
14971         (enum sparc64_regnum): Reformat.
14972         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14973         (sparc64_init_abi, sparc64_supply_gregset,
14974         sparc64_collect_gregset, sparc64_supply_fpregset,
14975         sparc64_collect_fpregset): New prototypes.
14976         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14977         Add extern declarations.
14978         (sparc64_sol2_init_abi): New prototype.
14979         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14980         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14981         prototypes.
14982         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14983         "sparnbsd-nat.h".
14984         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14985         functions.
14986         (_initialize_sparc64fbsd_nat): Remove initialization of
14987         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14988         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14989         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
14990         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
14991         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14992         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14993         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14994         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14995         (sparc64fbsd_r_y_offset): Remove variables.
14996         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14997         Make static and const.
14998         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14999         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15000         functions.
15001         (sparc64fbsd_gregset): New variable.
15002         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
15003         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
15004         and sparc64_supply_fpregset.
15005         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
15006         (sparc64fbsd_sigtramp_frame_this_id)
15007         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
15008         (sparc64fbsd_sigtramp_frame_unwind): New variable.
15009         (sparc64fbsd_sigtramp_frame_sniffer): New function.
15010         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
15011         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
15012         * sparcnbsd-tdep.c: Update copyright year.  Include
15013         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
15014         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
15015         "value.h" and "sparcnbsd-tdep.h".
15016         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
15017         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
15018         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15019         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15020         defines.
15021         (sparcnbsd_gregset): New variable.
15022         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15023         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15024         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15025         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15026         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15027         variables.
15028         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15029         (sparc32nbsd_sigcontext_frame_this_id)
15030         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15031         (sparc32nbsd_sigcontext_frame_unwind): New variable.
15032         (sparc32nbsd_sigtramp_frame_sniffer): New function.
15033         (sparcnbsd_get_longjmp_target_32,
15034         sparcnbsd_get_longjmp_target_64): Remove functions.
15035         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15036         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15037         sparcnbsd_init_elf): Remove.
15038         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15039         (sparcnbsd_elf_init_abi): New functions.
15040         (_initialize_sparcnbsd_tdep): New prototype.
15041         (_initialize_sparnbsd_tdep): Update.
15042         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15043         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
15044         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15045         * config/sparc/linux.mh: Update comment.
15046         (XM_FILE, HOST_IPC): Remove variables.
15047         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
15048         sparc-linux-nat.o.
15049         * config/sparc/linux.mt: Update comment.
15050         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15051         * config/sparc/nbsd.mt: Reformat.
15052         * config/sparc/nbsd64.mh: Update comment.
15053         (NATDEPFILES): Add sparc-nat.o.
15054         * config/sparc/nbsd64.mt: Update comment.
15055         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15056         (TM_FILE): Set to tm-nbsd.h.
15057         * config/sparc/nbsdelf.mh: Update comment.
15058         (NATDEPFILES): Add sparc-nat.o.
15059         (XM_FILE): Delete.
15060         * config/sparc/nbsdaout.mh: Update comment.
15061         (NATDEPFILES): Add sparc-nat.o
15062         (XM_FILE): Delete.
15063         * config/sparc/nm-linux.h: Update copyright year.  Don't include
15064         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
15065         inclusion.
15066         (KERNEL_U_SIZE): Remove define.
15067         (kernel_u_size): Remove prototype.
15068         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15069         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
15070         "regcache.h".
15071         (CHILD_PREPARE_TO_STORE): Remove define.
15072         * config/sparc/nm-nbsdaout.h: Tweak some comments.
15073         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15074         sparcnbsd-nat.c: Rewrite files.
15075         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15076         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15077         sparcnbsd-tdep.h: Remove files.
15078         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15079         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15080         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15081         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15082         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15083         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15084         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15085         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15086         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15087         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15088         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15089         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15090         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15091         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15092         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15093         * config/sparc/linux64.mh, config/sparc/linux64.mt,
15094         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15095         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15096         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15097
15098 2004-01-02  Andrew Cagney  <cagney@redhat.com>
15099
15100         From 2003-12-18 Kazuhiro Inaoka:
15101         * configure.host: Add m32r-linux target.
15102
15103 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
15104
15105         * top.c (print_gdb_version): Update year to 2004.
15106
15107 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
15108
15109         * MAINTAINERS: Add myself to the write-after-approval category.
15110
15111 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
15112
15113         From Bernardo Innocenti <bernie@develer.com>:
15114         * configure.tgt: Add uClinux target.
15115
15116 2004-01-02  Andrew Cagney  <cagney@redhat.com>
15117
15118         * utils.c (do_my_cleanups): Make static, add forward declaration.
15119         * defs.h (do_my_cleanups): Delete declaration.
15120
15121 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
15122
15123         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15124         bfd/ChangeLog-0203.
15125
15126 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
15127
15128         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
15129         in <machine/reg.h>.
15130         * configure, config.in: Regenerate.
15131
15132 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15133 tui/ChangeLog-1998-2003.
15134 \f
15135 Local Variables:
15136 mode: change-log
15137 left-margin: 8
15138 fill-column: 74
15139 version-control: never
15140 End: