* config/djgpp/fnchange.lst: Resolve name clash between
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2004-12-18  Mark Kettenis  <kettenis@gnu.org>
2
3         * config/djgpp/fnchange.lst: Resolve name clash between
4         ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
5         i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
6         testsuite/gdb.base/bitfields.c and
7         testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
8         and testsuite/gdb.base/bitfields2.exp.  Remove entry for
9         config/m88k/xm-delta88v4.h.
10
11         * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
12         PA_SOM_ONLY isn't defined.
13
14         * somread.c: Include "solib-som.h".
15         (som_symfile_init, som_new_init, som_symfile_read,
16         som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
17         redudant prototypes.
18         * Makefile.in (somread.o): Update dependencies.
19
20 2004-12-17  Jim Blandy  <jimb@redhat.com>
21
22         * remote.c (fetch_register_using_p): Indentation cleanup.
23
24 2004-12-17  Randolph Chung  <tausq@debian.org>
25
26         * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
27         (find_stub_with_shl_get): Make static.
28
29 2004-12-17  Randolph Chung  <tausq@debian.org>
30
31         * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
32         (in_opd_section): New.
33         (hppa32_hpux_find_global_pointer): Rename from 
34         hppa_hpux_som_find_global_pointer.
35         (hppa64_hpux_find_global_pointer): New.
36         (ldsid_pattern): New.
37         (hppa_hpux_search_pattern): New.
38         (hppa32_hpux_search_dummy_call_sequence): New.
39         (hppa64_hpux_search_dummy_call_sequence): New.
40         (hppa_hpux_find_import_stub_for_addr): New.
41         (hppa_hpux_sr_for_addr): New.
42         (hppa_hpux_find_dummy_bpaddr): New.
43         (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
44         (hppa_hpux_som_init_abi): Set find_global_pointer method to
45         hppa32_hpux_find_global_pointer instead of
46         hppa_hpux_som_find_global_pointer.
47         (hppa_hpux_elf_init_abi): Set find_global_pointer method.
48         * hppa-tdep.c (hppa_init_objfile_priv_data): New.
49         (read_unwind_info): Use function to initialize objfile-private data.
50         (hppa32_push_dummy_call): Don't automatically set the RP if there is
51         a push_dummy_code method.
52         (hppa64_push_dummy_call): Retrieve and set the global pointer.
53         Don't automatically set the RP if there is a push_dummy_code method.
54         * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
55         dummy_call_sequence_addr members.
56         (hppa_init_objfile_priv_data): New prototype.
57
58 2004-12-17  Joel Brobecker  <brobecker@gnat.com>
59
60         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
61         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
62         * solib-som.c (som_solib_create_inferior_hook): Replace stub
63         msymbol search by call to hppa_lookup_stub_minimal_symbol. This
64         extends the search to all objfiles, not just shared libraries.
65         Remove unused variable.
66
67 2004-12-16  Michael Snyder  <msnyder@redhat.com>
68
69         * MAINTAINERS: Add myself as maintainer for mn10300.
70         * NEWS: Mention mn10300.
71
72 2004-12-15  Kevin Buettner  <kevinb@redhat.com>
73
74         * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
75         frame cache.
76
77 2004-12-14  Randolph Chung  <tausq@debian.org>
78
79         * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
80         (hppa_gdbarch_init): Set in_epilogue_p method.
81
82 2004-12-14  Corinna Vinschen  <vinschen@redhat.com>
83
84         * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
85         sh_default_extract_return_value.
86         (sh_extract_return_value_fpu): Rename from
87         sh3e_sh4_extract_return_value.
88         (sh_store_return_value_nofpu): Rename from
89         sh_default_store_return_value.
90         (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
91         (sh_return_value_nofpu): Accomodate above changes.
92         (sh_return_value_fpu): Ditto.
93
94 2004-12-13  Jerome Guitton  <guitton@gnat.com>
95
96         * stabsread.c (read_huge_number): Add support for reading octal
97         signed number in twos complement, based on the size of this
98         number.
99         (read_range_type): Add support for reading octal signed bounds
100         in twos complements, based on the size of the type.
101         (read_type_number, read_cpp_abbrev, read_member_functions,
102         read_cpp_abbrev, read_one_struct_field, read_baseclasses,
103         read_struct_type, read_array_type, read_enum_type,
104         read_sun_builtin_type, read_sun_floating_type): Update calls to
105         read_huge_number.
106         (read_type): Update call to read_range_type.
107
108 2004-12-13  Randolph Chung  <tausq@debian.org>
109
110         * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
111         solib_get_solib_by_pc method through target vector.
112         (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
113         method through target vector.
114
115 2004-12-13  Joel Brobecker  <brobecker@gnat.com>
116
117         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
118         parameter name to make it clear that we already have a next
119         frame.  Return the sigcontext from that next frame instead
120         of the frame following it.
121
122 2004-12-13  Randolph Chung  <tausq@debian.org>
123
124         * Makefile.in (pa64solib_h, somsolib_h): Delete.
125         (solib_pa64_h, solib_som_h): New.
126         (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
127         (hppa-hpux-tdep.o, hpread.o): Update dependencies.
128         (pa64solib.o, somsolib.o): Delete.
129         (solib-pa64.o, solib-som.o): New.
130         * hppa-hpux-tdep.c: Include new solib interfaces.
131         (hppa_hpux_som_init_abi): Attach to SOM solib interface.
132         (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
133         * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
134         is available, use it to determine the base of unwind records.
135         * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
136         * hpread.c: Replace somsolib.h with solib-som.h.
137         (hpread_process_one_debug_symbol): Use target vector to get thread 
138         start address.
139         * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
140         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
141         * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
142         * config/pa/tm-hppah.h: Use new solib interface.
143
144 2004-12-13  Randolph Chung  <tausq@debian.org>
145
146         * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or 
147         sections to be trampolines too.
148
149 2004-12-13  Ben Elliston  <bje@au.ibm.com>
150
151         * f-exp.y (typename): Remove unused nonterminal.
152         (name): Likewise.
153
154 2004-12-12  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
155
156         Committed by Andrew Cagney.
157         * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
158         markup.
159         
160 2004-12-12  Andrew Cagney  <cagney@gnu.org>
161
162         * frame.c (get_prev_frame): When unwinding normal frames, check
163         that the PC isn't zero.
164         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
165         zero PC.
166
167         * MAINTAINERS: Reword description of what "Target Instruction Set
168         Architectures" covers.
169
170 2004-12-12  Mark Kettenis  <kettenis@gnu.org>
171
172         * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
173
174 2004-12-11  Mark Kettenis  <kettenis@gnu.org>
175
176         * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
177         (hppa_hpux_save_state_offset): New function, replacing variable
178         with the same name.
179         (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
180         functions.
181         (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
182         Use new hppa_hpux_save_state_offset function.  Add special
183         handling for handling 64-bit "flags" register.
184         (hppa_hpux_store_register): Likewise.
185         (hppa_hpux_child_can_run): Tweak comment.
186
187         * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
188         (inf_ttrace_attach): Likewise.
189         (inf_ttrace_resume_callback): New function.
190         (inf_ttrace_resume): Don't use TT_PROC_CONTINUE.  Iterate over all
191         lwps and call inf_ttrace_resume_callback instead.
192         (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
193
194         * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
195
196 2004-12-10  Michael Snyder  <msnyder@redhat.com>
197
198         * mn10300-tdep.c: New file.  This is a re-implementation of
199         the mn10300 target back-end using the new frame api etc.
200         * mn10300-tdep.h: New file.
201         * config/mn10300/mn10300.mt: New file (or replace old file).
202         * configure.tgt: Add mn10300 target.
203
204 2004-12-10  Mark Kettenis  <kettenis@gnu.org>
205
206         * configure.host (hppa*-*-hpux11*): Remove.
207         * config/pa/hpux11.mh: Remove file.
208
209         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
210         typo.
211
212 2004-12-10  Kris Warkentin  <kewarken@qnx.com>
213
214         * nto-tdep.h: Include osabi.h.  Prototypes for generic Neutrino
215         osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
216         function and nto_set_target function.
217         (struct nto_target_ops): Put comments inline with struct.  Add osabi
218         sniffer hook.  Redefine macros to permit testing/assignment.  Remove
219         nto_ prefix from members.
220         * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
221         dynamically to support arbitrary root paths.  Check for basename of
222         lib in search path and then check for absolute.
223         (nto_in_dynsym_resolve_code): New function.
224         (nto_core_sniffer): New function.
225         (regset_core_fns): Register core sniffer.
226         (nto_initialize_signals): New function.
227         (_initialize_nto_tdep): Move signal initialization code to above to
228         avoid initialization race conditions.
229         (nto_set_target): New function.
230         * nto-procfs.c: Minor formatting/indenting changes.
231         (procfs_is_nto_target): New function.
232         (procfs_open): Set nto_is_nto_target.
233         (_initialize_procfs): Ditto.  Remove notice_signals() call to avoid
234         initialization race conditions.
235         (procfs_create_inferior): Resume inferior after creation.
236         * i386-nto-tdep.c: Declare i386_nto_target.
237         (init_i386nto_ops): Initialize i386_nto_target instead of
238         current_nto_target.
239         (i386nto_init_abi): Initialize signals.  Call nto_set_target.  Set
240         TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
241         (_initialize_i386nto_tdep): Call init_i386nto_ops.  Register osabi
242         sniffer.
243
244 2004-12-10  Mark Kettenis  <kettenis@gnu.org>
245
246         * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
247         (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
248         (hppa_hpux_init_abi): Reformat long line.
249
250 2004-12-09  Mark Kettenis  <kettenis@gnu.org>
251
252         * hppa-hpux-tdep.c: Include "regset.h".
253         (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
254         (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
255         (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
256         (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
257         (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
258         (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
259         functions.
260         (hppa_hpux_regset): New variable.
261         (hppa_hpux_regset_from_core_section): New function.
262         (hppa_hpux_init_abi): Set regset_from_core_section.
263         (hppa_hpux_core_osabi_sniffer): New function.
264         (_initialize_hppa_hpux_tdep): Register
265         hppa_hpux_core_osabi_sniffer.
266         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
267         * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
268
269 2004-12-09  Randolph Chung  <tausq@debian.org>
270
271         * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
272         text and data sections.
273         (pa64_current_sos): Also include the dld in the list of current shared
274         objects.
275         (pa64_solib_get_solib_by_pc): Update comments.
276         (pa64_solib_get_text_base): New function.
277         (pa64_solib_select): Set solib_get_text_base method.
278
279 2004-12-08  Daniel Jacobowitz  <dan@debian.org>
280
281         * linux-thread-db.c (BUILD_THREAD): Delete.
282         (thread_get_info_callback): Include LWP ID in thread ID.
283         (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
284         (lwp_from_thread): Use the LWP ID from the thread ID.
285
286 2004-12-07  Randolph Chung  <tausq@debian.org>
287
288         * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
289         register for both 32- and 64-bit targets.
290
291 2004-12-07  Randolph Chung  <tausq@debian.org>
292
293         * frame.c (get_prev_frame): Don't terminate unwinding at main if we
294         are unwinding through a dummy frame.
295
296 2004-12-07  Randolph Chung  <tausq@debian.org>
297
298         * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
299         * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
300         (hppa_hpux_init_abi) Set unwind_adjust_stub method.
301         * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
302         if defined.
303
304 2004-12-07  Randolph Chung  <tausq@debian.org>
305
306         * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if 
307         unwinding from a frame with pc == 0.
308         (hppa_stub_frame_this_id): Likewise.
309         (hppa_stub_frame_prev_register): Only provide real values if the frame
310         cache is not NULL.
311
312 2004-12-07  Randolph Chung  <tausq@debian.org>
313
314         * solib-som.c: New file.
315         * solib-som.h: New file.
316         * solib-pa64.c: New file.
317         * solib-pa64.h: New file.
318
319 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
320
321         * Makefile.in (inf-ttrace.o): Fix typo.
322
323 2004-12-07  Jim Blandy  <jimb@redhat.com>
324
325         * remote.c (remote_threads_info, remote_current_thread): Use
326         strtoul to parse thread ID numbers.
327
328 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
329
330         * inf-ttrace.c: Include "gdbthread.h".
331         (inf_ttrace_num_lwps): New variable.
332         (inf_ttrace_num_lwps_in_syscall): Renamed from
333         inf_ttrace_num_threads_in_syscall.
334         (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
335         TTEVT_LWP_TERMINATE events.
336         (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
337         zero.
338         (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
339         (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
340         Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
341         events.
342         (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
343         default.  Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
344         TTEVT_LWP_TERMINATE events.
345         (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
346         (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
347         * Makefile.in (inf-ttrace.o): Update dependencies.
348
349         * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
350         prototypes.
351         * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
352         Make global.  Remove HP-UX specific code.  Use
353         frame_unwind_register_unsigned instead of
354         frame_unwind_register_signed.
355         (hppa_write_pc): Rename from hppa_target_write_pc.  Make global.
356         Remove HP-UX specific code.
357         (hppa_unwind_pc): Make global.  Remove HP-UX specific code.
358         (hppa_frame_prev_register_helper): Set "flags" register to zero
359         for all unwound frames.
360         (hppa_gdbarch_init): Adjust.
361         * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
362         (hppa_hpux_read_pc, hppa_hpux_write_pc)
363         (hppa_hpux_unwind_pc): New functions.
364         (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
365
366 2004-12-07  Andreas Schwab  <schwab@suse.de>
367
368         * main.c (long_options): Add entry for "-l".
369         (print_gdb_help): Add line for -l option.
370         * NEWS: Mention it.
371
372 2004-12-05  Randolph Chung  <tausq@debian.org>
373
374         * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
375         DEPRECATED_REGISTER_BYTE.
376
377 2004-12-05  Randolph Chung  <tausq@debian.org>
378
379         * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
380         records.
381
382 2004-12-05  Mark Kettenis  <kettenis@gnu.org>
383
384         * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
385         * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
386
387         * hppa-hpux-tdep.c: Update copyright notice and year.
388
389 2004-12-05  Richard Earnshaw  <rearnsha@arm.com>
390
391         * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
392         (get_field, put_field): Assert that the format is one we can handle.
393         Simplify logic accordingly.
394         (floatformat_normalize_byteorder): New function.
395         (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
396         to normalize and select modified byte order. Pass modified byte order
397         to get_field.
398         (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa): 
399         Likewise.
400         (convert_doublest_to_floatformat): Select an appropriate intermediate
401         byte order if necessary.  Always convert to the final format before
402         returning.
403
404 2004-12-04  Daniel Jacobowitz  <dan@debian.org>
405
406         PR tui/1703
407         * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
408         Suggested by Joshua Neuheisel.
409
410 2004-12-03  Randolph Chung  <tausq@debian.org>
411
412         * gdbarch.sh (instruction_nullified): Delete.
413         * gdbarch.c: Regenerate.
414         * gdbarch.h: Regenerate.
415         * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
416         nullified.
417         (hppa_unwind_pc): Likewise. 
418         (hppa_instruction_nullified): Delete.
419         (hppa_gdbarch_init): Don't set instruction_nullified method.
420         * infrun.c (infwait_states): Remove infwait_nullified_state.
421         (handle_inferior_event): Remove handling of infwait_nullified_state.
422         Remove handling of nullified instructions.
423
424 2004-12-03  Mark Kettenis  <kettenis@gnu.org>
425
426         * inf-ttrace.c: Include <sys/mman.h>.
427         (struct inf_ttrace_page): New.
428         (struct inf_ttrace_page_dict): New.
429         (inf_ttrace_num_threads_in_syscall)
430         (inf_ttrace_reenable_page_protections): New variables.
431         (inf_ttrace_enable_syscall_events)
432         (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
433         (inf_ttrace_add_page, inf_ttrace_insert_page)
434         (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
435         (inf_ttrace_enable_page_protections)
436         (inf_ttrace_disable_page_protections)
437         (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
438         (inf_ttrace_can_use_hw_breakpoint)
439         (inf_ttrace_region_size_ok_for_hw_watchpoint)
440         (inf_ttrace_stopped_by_watchpoint): New functions.
441         (inf_ttrace_him): Remove unsused varaible `tts'.
442         (inf_ttrace_create_inferior): Add assertionts.
443         (inf_ttrace_mourn_inferior): Clear page dictionary.
444         (inf_ttrace_attach): Set initial event mask.
445         (inf_ttrace_detach): Reset number of threads in system call.
446         (inf_ttrace_wait): Deal with system call events.
447         (inf_ttrace_target): Initialize "hardware" watchpoint-related
448         parts of the target vector.
449         (_initialize_inf_ttrace): New prototype and function.
450
451         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
452         type of `gp' variable.
453
454 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
455
456         * README: Remove config.if from directory listing.
457
458 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
459
460         * alpha-tdep.c (alpha_register_name): Add comment.
461         (alpha_cannot_fetch_register): Exclude registers numbers which
462         are no longer used from the list of registers that can be fetched.
463         (alpha_cannot_store_register): Exclude registers numbers which
464         are no longer used from the list of registers that can be stored.
465         * alpha-nat.c (fetch_osf_core_registers): Add missing value in
466         core_reg_mapping array.
467
468 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
469
470         * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
471         the register value from the correct frame.
472
473 2004-11-30  Randolph Chung  <tausq@debian.org>
474
475         * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
476         (hppa_linux_in_dyncall): Check that we are inside the range of 
477         $$dyncall, not necessarily at the first insn.
478         (hppa_linux_in_solib_call_trampoline): Identify a trampoline 
479         even if the pc does not point to the first insn of the trampoline.
480
481 2004-11-30  Randolph Chung  <tausq@debian.org>
482
483         * breakpoint.c (break_at_finish_command): Delete.
484         (break_at_finish_command_1): Delete.
485         (break_at_finish_at_depth_command): Delete.
486         (break_at_finish_at_depth_command_1): Delete.
487         (tbreak_at_finish_command): Delete.
488         * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
489         and bx commands.
490
491 2004-11-30  Andrew Cagney  <cagney@gnu.org>
492
493         * config/nm-gnu.h: Delete file.
494         * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
495
496         * config/nm-sysv4.h: Delete file.
497         * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
498         * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
499         * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
500         * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
501         * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
502
503 2004-11-29  Andrew Cagney  <cagney@gnu.org>
504
505         * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
506         Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
507         as can-commit architecture developers.
508
509 2004-11-29  Mark Kettenis  <kettenis@gnu.org>
510
511         * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
512         (sparc32_skip_prologue): Skip instructions that store arguments in
513         registers into their corresponding stack slots.
514
515         * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
516         tm-solib.h.
517         * config/m68k/obsd.mh (NAT_FILE): Likewise.
518
519         * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
520         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
521         * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
522         sparc32nbsd_elf_init_abi.  Remove duplicate code.
523
524         * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
525         * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
526         * config/sparc/nm-nbsd.h: Remove file.
527         * config/sparc/nm-nbsdaout.h: Remove file.
528
529         * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
530         (sparc_xfer_partial): New function.
531         (sparc_target): Save value of to_xfer_partial from ptrace vector.
532         Set to_xfer_partial.
533
534         * fork-child.c (fork_inferior): Fork instead of vfork if
535         PRE_TRACE_FUN is non-null.
536
537 2004-11-24  Fred Fish  <fnf@specifixinc.com>
538
539         * rs6000-tdep.c (skip_prologue): Use line table info to skip over
540         compiler generated function calls made as part of a prologue.
541
542 2004-11-23  Mark Kettenis  <kettenis@gnu.org>
543
544         * inf-ttrace.c: New file.
545         * inf-ttrace.h: New file.
546         * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
547         Include "inf-ttrace.h".
548         (ss_mpsfu_high): Define to ss_tlsp if necessary.
549         (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
550         ptid_get_pid instead of PIDGET.  Modify to handle both ttrace and
551         ptrace systems.
552         (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
553         instead of inf_ptrace_target.
554         * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
555         * Makefile.in (inf_ttrace_h): New variable.
556         (hppa-hpux-nat.o): Update dependency.
557         (inf-ttrace.o): New dependency.
558         (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
559
560 2004-11-23  Randolph Chung  <tausq@debian.org>
561
562         * arch-utils.c (generic_instruction_nullified): New.
563         * arch-utils.h (generic_instruction_nullified): New.
564         * gdbarch.sh (instruction_nullified): New method.
565         * gdbarch.c: Regenerate.
566         * gdbarch.h: Regenerate.
567         * infrun.c (INSTRUCTION_NULLIFIED): Delete.
568         (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
569         new gdbarch method.
570         * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
571         * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
572         static.  Rewrite to work directly off the passed regcache.
573         (hppa_gdbarch_init): Set instruction_nullified method.
574
575 2004-11-23  Joel Brobecker  <brobecker@gnat.com>
576
577         * sparc-tdep.c (sparc_is_unimp_insn): New function.
578         (sparc32_frame_cache): For functions where there is no debugging
579         information to help us determine whether it's a struct-return
580         function or not, fallback on checking whether the instruction
581         at the return address is an "unimp" instruction or not.
582
583 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
584
585         * MAINTAINERS: Add myself to write after approval section.
586
587         * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
588         hpux-thread.c to suppress children from running.
589         (hppa_hpux_child_can_run): New function.
590         (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
591         * hpux-thread.c: Include string.h and hppa-tdep.h.
592         (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
593         HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
594         (hpux_thread_store_registers): Replace deprecated_registers with
595         calls to regcache_raw_read.
596         * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
597
598 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
599
600         * sparc64fbsd-nat.c: Update copyright year.
601         (_initialize_sparc64fbsd_nat): Construct and add target vector.
602         * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
603         inftarg.o.
604
605 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
606
607         * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
608
609 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
610
611         * linux-nat.c (my_waitpid): New function.
612         (linux_test_for_tracefork): Make more robust and verbose.  Take
613         an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
614         (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
615         argument.  Update calls to linux_test_for_tracefork.
616         (linux_enable_event_reporting, child_follow_fork)
617         (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
618         (child_insert_exec_catchpoint): Update calls to
619         linux_supports_tracefork and linux_supports_tracevforkdone.
620
621 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
622
623         * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
624         (value_subscripted_rvalue): Likewise.
625         * valops.c (search_struct_field, value_slice): Likewise.
626
627 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
628
629         * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
630         Reorder includes a bit.  Fix comment.
631         * Makefile.in (inf-ptrace.o): Update dependencies.
632
633 2004-11-21  Andreas Schwab  <schwab@suse.de>
634
635         * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
636         (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
637         svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
638         to glibc_skip_solib_resolver.
639         * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o.  Remove
640         solib-legacy.o.
641         * Makefile.in (m68klinux-tdep.o): Update dependencies.
642
643 2004-11-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
644
645         * infttrace.h (ttrace_write_reg_64): Add prototype.
646         * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
647         expression.  
648         (store_inferior_registers): Correct formatting.  Replace uses of
649         deprecated_registers with calls to regcache_raw_read,
650         regcache_raw_write_part and regcache_raw_read_part.
651
652 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
653
654         * config/pa/hppahpux.mh: Remove file.
655         * config/pa/hpux1020.mh: Remove file.
656
657 2004-11-20  Andreas Schwab  <schwab@suse.de>
658
659         * configure.host: Set host floatformat for m68k.
660
661 2004-11-20  Eli Zaretskii  <eliz@gnu.org>
662
663         * config/djgpp/fnchange.lst: Resolve file-name clash between
664         hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
665
666 2004-11-20  Mark Kettenis  <kettenis@gnu.org>
667
668         * hppa-hpux-nat.c: New file.
669         * config/pa/hpux.mh (NATDEPFILES): New file.
670         * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
671         (hppa-hpux-nat.o): New dependency.
672         * configure.host: Remove hppa*-*-hpux10.20.
673         (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
674
675         * inf-ptrace.c: Fix coding style.
676
677         * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
678         * infptrace.c (call_ptrace): Simply call ptrace with four
679         arguments.
680
681         * dbxread.c (process_one_symbol): Fix a few coding standard
682         issues.  Improve code formatting.
683
684         * dbxread.c: Include "gdb_string.h".
685         (record_minimal_symbol, read_ofile_symtab): Replace
686         DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
687         * Makefile.in (dbxread.o): Update dependencies.
688
689         * dwarf2-frame.c (read_encoded_value): Correctly calculate number
690         of bytes read for aligned LEB128 encodings.
691
692 2004-11-19  Mark Kettenis  <kettenis@gnu.org>
693
694         * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
695         parse_and_eval_address to u_long before converting it to a pointer
696         type.
697         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
698         ps_strings from int to u_long.
699         * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
700         u_long instead of CORE_ADDR.
701
702 2004-11-18  Mark Kettenis  <kettenis@gnu.org>
703
704         * dbxread.c (process_one_symbol): Do not adjust address of first
705         N_SLINE stab for a function for code generated by non-GCC
706         compilers.
707
708 2004-11-18  Kevin Buettner  <kevinb@redhat.com>
709
710         * solib-null.c: New file.
711
712 2004-11-17  Andrew Cagney  <cagney@gnu.org>
713
714         * MAINTAINERS: Drop MIPS and remote.
715
716 2004-11-15  Andrew Cagney  <cagney@gnu.org>
717
718         * findvar.c (value_of_register): Set the frame ID.
719         * value.c (value_primitive_field): Copy the frame ID.
720         * valops.c (value_assign): Simplify lval_register case, there's
721         always a frame.
722
723 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
724
725         * Makefile.in (mips-linux-tdep.o): Update dependencies.
726         * mips-linux-tdep.c: Include "regcache.h".
727         (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
728
729 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
730
731         * Makefile.in (linux-thread-db.o): Fix typo in last change.
732
733 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
734
735         * linux-thread-db.c: New file, renamed from thread-db.c.
736         * thread-db.c: Remove.
737         * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
738         * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
739         to linux-thread-db.o.
740         * config/arm/linux.mh (NATDEPFILES): Likewise.
741         * config/i386/linux.mh (NATDEPFILES): Likewise.
742         * config/i386/linux64.mh (NATDEPFILES): Likewise.
743         * config/ia64/linux.mh (NATDEPFILES): Likewise.
744         * config/m32r/linux.mh (NATDEPFILES): Likewise.
745         * config/m68k/linux.mh (NATDEPFILES): Likewise.
746         * config/mips/linux.mh (NATDEPFILES): Likewise.
747         * config/pa/linux.mh (NATDEPFILES): Likewise.
748         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
749         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
750         * config/s390/s390.mh (NATDEPFILES): Likewise.
751         * config/sparc/linux.mh (NATDEPFILES): Likewise.
752         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
753
754 2004-11-13  Andrew Cagney  <cagney@gnu.org>
755
756         * config/i386/i386lynx.mh: Delete file.
757         * config/i386/i386lynx.mt: Delete file.
758         * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
759         * i386ly-tdep.c: Delete.
760
761         * config/tm-lynx.h: Delete, inline contents ...
762         * config/rs6000/tm-rs6000ly.h: ... here.
763
764         * config/tm-sysv4.h: Delete file, inlining contents.
765         * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
766         * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
767         * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
768
769         * regcache.h (deprecated_register_valid): Delete.
770         (deprecated_registers): Delete.
771         * regcache.c (deprecated_register_valid): Delete.
772         (deprecated_registers): Delete.
773         (deprecated_read_register_byte, _initialize_regcache)
774         (deprecated_write_register_bytes, build_regcache): Update.
775         * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
776         remote-sds.o.
777         * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
778         * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
779
780         * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
781         v850-*-* under removed.
782         * configure.host: Delete ns32k-*-netbsd*.
783         * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
784         ns32k-*-netbsd*, and v850*-*-*.
785         * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
786         "Deleted"
787         * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
788         * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
789         * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
790         * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
791         * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
792         * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
793         * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
794         * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
795         * v850-tdep.c: Delete.
796         
797 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
798
799         * irix5-nat.c (fetch_core_registers): Replace use of
800         deprecated_registers by equivalent code.
801
802 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
803
804         * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
805         with equivalent code.
806         (fill_fpregset): Likewise.
807
808 2004-11-13  Andrew Cagney  <cagney@gnu.org>
809
810         * MAINTAINERS: Do not list "Deleted" architectures.
811
812         * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
813         m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
814         sparc-*-vxworks*.
815         * NEWS: Mention that vxworks was deleted.
816         * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
817         * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
818         * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
819         * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
820         * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
821         * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
822         * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
823         * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
824         * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
825         * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
826         * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
827         * remote-vxmips.c, remote-vx.c: Delete.
828         * remote-vx68.c: Delete.
829         * config/m68k/tm-os68k.h: Remove reference to VxWorks.
830         * config/m68k/os68k.mt, ada-lang.h: Ditto.
831         * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
832         (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
833
834 2004-11-13  Eli Zaretskii  <eliz@gnu.org>
835
836         * config/i386/xm-go32.h: Don't include fopen-bin.h.
837         Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
838
839         * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
840         branch that doesn't define CRLF_SOURCE_FILES; always use
841         binary-mode open.
842         (print_source_lines_base, forward_search_command)
843         (reverse_search_command): Enable the code that accepts DOS-style
844         CRLF line endings on all platforms (this removes the need for
845         CRLF_SOURCE_FILES).
846
847         * defs.h: Fix wording of the comment before FOPEN_RB.
848         (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
849
850         * config/djgpp/fnchange.lst: Group renames for opcode directory
851         together.
852
853         * config/djgpp/djconfig.sh: Replace file names that don't exist
854         anymore with existing files, for checking the unpacked
855         distribution.
856
857         * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
858         Export pre-cooked values in configure-* targets that begin with
859         "@test -f stage_last".
860
861 2004-11-12  Andrew Cagney  <cagney@gnu.org>
862
863         * defs.h (enum lval_type): Delete lval_reg_frame_relative.
864         * value.h (struct value): Update comment.
865         * valops.c (value_assign): Fold lval_reg_fame_relative into
866         lval_register.
867         * findvar.c (value_from_register, locate_var_value): Ditto.
868
869 2004-11-12  Randolph Chung  <tausq@debian.org>
870
871         * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
872         * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
873         (write_exp_msymbol): Remove conditional check for symbols starting 
874         with $.  Update comments.
875
876 2004-11-12  Randolph Chung  <tausq@debian.org>
877
878         * pa64solib.c (pa64_solib_thread_start_addr): Rename from 
879         so_lib_thread_start_addr.
880         * pa64solib.h (so_list): Forward declare.
881         (pa64_solib_thread_start_addr): Prototype.
882         * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
883         (no_shared_libraries): Remove.
884         (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
885         * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
886         * hpread.c (hpread_process_one_debug_symbol): Use either the som or
887         the elf solib handler to find the start address.
888
889         * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support 
890         files to the target makefile.
891         * config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
892         * config/pa/hpux11.mh (NATDEPFILES): Likewise.
893         * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
894
895         * config/pa/hppa64.mt (TDEPFILES): Put target-specific support 
896         files for symbol reading and shared library handling here.
897         * config/pa/hppahpux.mt (TDEPFILES): Likewise.  
898         (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target 
899         without bringing in 64-bit support.
900
901 2004-11-12  Andrew Cagney  <cagney@gnu.org>
902
903         * sparc-tdep.c: Replace VALUE_TYPE with value_type.
904         * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
905         * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
906         * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
907         * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
908         * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
909         * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
910
911         Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
912         * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
913         (VALUE_REGNUM): Define.
914         (struct value): Delete location.regnum, rename "regno" to
915         "regnum".
916         * value.c, valops.c, valarith.c, findvar.c: Update.
917
918         * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
919         (VALUE_BITPOS): Delete.
920         (value_type, value_offset, value_bitsize, value_bitpos): Declare.
921         * value.c (value_type, value_offset, value_bitpos)
922         (value_bitsize): New functions.  Update references.
923         * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
924         * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
925         * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
926         * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
927         * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
928         * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
929         * valops.c, eval.c, findvar.c, breakpoint.c: Update.
930         * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
931         * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
932
933 2004-11-12  Andrew Cagney  <cagney@gnu.org>
934
935         * cris-tdep.c (cris_register_offset): Delete, never called.
936         (cris_spec_reg_applicable): Delete cris_ver_sim.
937         * MAINTAINERS: List d10v as OBSOLETE.
938         * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
939         FOPEN_WB et.al., defined by "fopen-bin.h".
940
941 2004-11-12  Randolph Chung  <tausq@debian.org>
942
943         * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
944         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
945         * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
946         * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
947
948 2004-11-12  Mark Kettenis  <kettenis@jive.nl>
949
950         * tui/tui-io.c: Don't include "terminal.h".
951         * Makefile.in (tui-io.o): Update dependencies.
952
953 2004-11-12  Kei Sakamoto  <sakamoto.kei@renesas.com>
954
955         * Makefile.in (m32r-linux-tdep.o): Update dependencies.
956         * m32r-linux-tdep.c (m32r_linux_init_abi): Call
957         set_gdbarch_regset_from_core_section for core file support.
958         (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
959         New functions.
960
961 2004-11-11  Randolph Chung  <tausq@debian.org>
962
963         * hppa-tdep.c (skip_prologue_hard_way): Make static, add
964         stop_after_branch parameter and use it to determine if we should look
965         at the delay slot of the first branch insn to find prologue insns.
966         (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
967         (hppa_frame_cache): Likewise.
968
969 2004-11-11  Randolph Chung  <tausq@debian.org>
970
971         * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
972         register so that it can be unwound from anywhere in the prologue.
973
974 2004-11-10  msnyder  <msnyder@redhat.com>
975
976         * rs6000-tdep.c (skip_prologue): After saving lr_offset, 
977         must invalidate lr_reg (so we don't try to save it again).  
978         Ditto for cr_offset and cr_reg.
979
980 2004-11-05  Jon Beniston <jon@beniston.com>
981
982         Committed by Andrew Cagney.
983         * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK 
984         when an unexpected packet is received, as the target stubs 
985         continually retransmit the same packet until ACKed.
986         
987 2004-11-10  Randolph Chung  <tausq@debian.org>
988
989         * frame.c (get_prev_frame): Use get_frame_type to retrieve the 
990         frame's type.
991
992 2004-11-10  Randolph Chung  <tausq@debian.org>
993
994         * blockframe.c (inside_entry_func): Move to .....
995         * frame.c (inside_entry_func): ... here, and make static.
996         (backtrace_past_entry): New flag.
997         (get_prev_frame): Stop backtrace at the entry function if enabled
998         by flag.  Update comments.
999         (_initialize_frame): Add command to set backtrace_past_entry flag.
1000         * defs.h (inside_entry_func): Remove prototype.
1001
1002 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
1003
1004         * dwarf2read.c: Fix formatting.
1005
1006 2004-11-10  Andrew Cagney  <cagney@gnu.org>
1007
1008         * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1009         (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1010         macros with function declarations.
1011         * value.c (coerce_ref, coerce_array, coerce_number)
1012         (coerce_enum): New functions.
1013         (value_as_long, value_as_address): Update.
1014         * ada-lang.c (ada_coerce_ref, ada_value_binop) 
1015         (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1016         * jv-lang.c (evaluate_subexp_java): Update.
1017         * valarith.c (value_less, value_neg, value_complement)
1018         (value_binop, value_add, value_subscript, value_x_binop) 
1019         (value_logical_not, value_sub): Update.
1020         * valops.c (check_field, value_struct_elt, value_ind)
1021         (value_find_oload_method_list, value_cast, value_assign): Update.
1022         * eval.c (evaluate_subexp_standard): Update.
1023
1024 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
1025
1026         * mips-tdep.c (mips32_relative_offset): Change return type to
1027         LONGEST, change argument type to ULONGEST.  Fix sign-extension.
1028
1029 2004-11-10  Randolph Chung  <tausq@debian.org>
1030
1031         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1032         (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1033         (hppa_fetch_pointer_argument): Likewise.
1034         (hppa_frame_cache): Use safe_frame_unwind_memory instead of 
1035         deprecated_read_memory_nobpt.
1036         (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1037         add_set_cmd sequence with add_setshow_boolean_cmd.
1038
1039 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1040
1041         GDB 6.3 released from GDB 6.3 branch.
1042
1043 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1044
1045         * values.c: Rename to ...
1046         * value.c: ..., new file.
1047         * Makefile.in: Update.
1048
1049 2004-11-09  Daniel Jacobowitz  <dan@debian.org>
1050
1051         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1052         size.
1053
1054 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1055
1056         * TODO: Delete.
1057
1058         * value.h (struct value): Delete field bfd_section.
1059         (VALUE_BFD_SECTION): Delete macro.
1060         (COERCE_REF): Update.
1061         (value_at, value_at_lazy): Delete asection parameter.
1062         * printcmd.c (print_formatted, x_command): Update.
1063         (do_examine): Delete asection parameter.
1064         (next_section): Delete variable.
1065         * valops.c (value_cast, value_at, value_at_lazy)
1066         (value_coerce_function, value_addr, value_ind, value_string) 
1067         (find_rt_vbase_offset, value_full_object): Update.
1068         * hpacc-abi.c (hpacc_virtual_fn_field)
1069         (hpacc_value_rtti_type): Update.
1070         * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field) 
1071         (gnuv3_baseclass_offset): Update.
1072         * f-valprint.c (f_val_print): Update.
1073         * c-valprint.c (c_val_print): Update.
1074         * p-valprint.c (pascal_val_print): Update.
1075         * jv-valprint.c (java_value_print): Update.
1076         * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1077         * ada-lang.c (ada_value_primitive_packed_val)
1078         (ada_evaluate_subexp): Update.
1079         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1080         * expprint.c (print_subexp_standard): Update.
1081         * infcall.c (call_function_by_hand): Update.
1082         * valarith.c (value_add): Update.
1083         * eval.c (evaluate_subexp_standard): Update.
1084         * values.c (allocate_value, value_copy, value_static_field): Update.
1085         * findvar.c (read_var_value, locate_var_value): Update.
1086         
1087 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1088
1089         * i386-linux-tdep.c: Include "dwarf2-frame.h".
1090         * Makefile.in: Update all dependencies.
1091
1092 2004-11-08  Andrew Cagney  <cagney@gnu.org>
1093
1094         * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1095         (sentinel_frame_unwinder): Add the prev_pc method.
1096         * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1097         available.  Do not handle the sentinel-frame case.
1098         * frame-unwind.h (frame_prev_register_ftype): Define.
1099         (struct frame_unwind): Add prev_pc;
1100
1101 2004-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1102
1103         * configure.in: Check for ncurses/term.h.
1104         * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1105         * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1106         * tui/tui.c: Don't include term.h.
1107         * configure, config.in: Rebuilt.
1108
1109 2004-11-08  Mark Kettenis  <kettenis@gnu.org>
1110
1111         * m68kbsd-nat.c: Include "inf-ptrace.h".
1112         (_initialize_m68kbsd_nat): Fix pasto.
1113         * Makefile.in (m68kbsd-nat.o): Update dependencies.
1114
1115 2004-11-08  Randolph Chung  <tausq@debian.org>
1116
1117         * infrun.c (debug_infrun): New variable.
1118         (resume, proceed, wait_for_inferior): Annotate with debug messages.
1119         (handle_inferior_event, keep_going): Likewise.
1120         (_initialize_infrun): Register "set debug infrun" command.
1121
1122 2004-11-08  Andreas Schwab  <schwab@suse.de>
1123
1124         * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1125         PTRACE_EVENT_VFORKDONE.
1126         (child_follow_fork): Adjust.
1127
1128 2004-11-08  Andrew Cagney  <cagney@gnu.org>
1129
1130         * README: Refer to 6.3, not 6.2, update directory listing droppng
1131         references to intl/ and mmalloc/.
1132         * PROBLEMS: Refer to 6.3 not 6.2.
1133
1134         * PROBLEMS: Delete no-longer applicable problems.
1135
1136 2004-11-07  Andrew Cagney  <cagney@redhat.com>
1137             Daniel Jacobowitz  <dan@debian.org>
1138             Roland McGrath  <roland@redhat.com>
1139
1140         * Makefile.in (symfile-mem.o): Update dependencies.
1141         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1142         (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1143         * inf-ptrace.c (inf_ptrace_attach): Call
1144         observer_notify_inferior_created.
1145         * inftarg.c (child_attach): Likewise.
1146         * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1147         (symbol_file_add_from_memory): Take NAME argument.  Use it for
1148         the new BFD's filename.
1149         (add_symbol_file_from_memory_command): Update call to
1150         symbol_file_add_from_memory.
1151         (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1152         (symbol_file_add_from_memory_wrapper): New.
1153         (_initialize_symfile_mem): Register add_vsyscall_page as an
1154         inferior_created observer.
1155
1156 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
1157
1158         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1159         fetch_inferior_registers.  Make static.
1160         (m68kbsd_store_inferior_registers): Rename from
1161         store_inferior_registers.  Make static.
1162         (_initialize_m68kbsd_nat): Construct and add target vector.
1163         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1164         inftarg.o.  Add inf-ptrace.o.
1165         (NAT_FILE): Set to tm-solib.h.
1166         (LOADLIBES): New variable.
1167         * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1168         inftarg.o.  Add inf-ptrace.o.
1169         (NAT_FILE): Delete variable.
1170         * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1171         inftarg.o.  Add inf-ptrace.o.
1172         (NAT_FILE): Set to tm-solib.h.
1173         * config/m68k/nm-nbsdaout.h: Remove file.
1174
1175 2004-11-07  Daniel Jacobowitz  <dan@debian.org>
1176
1177         * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1178         (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1179         (dwarf2_signal_frame_unwind): New.
1180         (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1181         * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1182
1183 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
1184
1185         * Makefile.in (mips64obsd-tdep.o): Fix typo.
1186
1187         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1188         from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets.  Trim sizes
1189         to only include the structure members we actually need.
1190         (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1191         mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets.  Trim sizes to
1192         only include the structure members we actually need.
1193         (mipsnbsd_init_abi): Update.
1194
1195         * mips64obsd-nat.c: Include "mips-tdep.h".
1196         (MIPS64OBSD_NUM_REGS): Remove define.
1197         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1198         (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1199         floating-point registers correctly.
1200         * Makefile.in (mips64obsd-nat.o): Update dependencies.
1201
1202         * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1203         "gdb_assert.h".
1204         (mips64obsd_sigframe_init): New function.
1205         (mips64obsd_sigframe): New variable.
1206         (mips64obsd_init_abi): Add comments.  Prepend mips64obsd_sigrame
1207         unwinder.
1208         * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1209
1210 2004-11-06  Joel Brobecker  <brobecker@gnat.com>
1211
1212         * alpha-mdebug-tdep.c: #include mdebugread.h.
1213         Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1214         * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1215
1216 2004-11-05  Andrew Cagney  <cagney@gnu.org>
1217
1218         * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1219         CFI and the init_reg method leave the register unspecified.
1220         Include the register name in the "Incomplete CFI data" complaint.
1221         Supress leading zeros in the address.
1222
1223 2004-11-05  Mark Kettenis  <kettenis@gnu.org>
1224
1225         * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1226         skipping a personality routine in a CIE augmentation.
1227
1228 2004-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1229
1230         * defs.h (fatal, vfatal): New function prototypes.
1231         * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1232         via catch_errors.
1233         (backtrace_command): Change to call backtrace_command_stub via
1234         catch_errors instead of calling backtrace_command_1 directly.
1235         (backtrace_full_command): Ditto.
1236         * utils.c (error_stream_1): New static function.
1237         (verror): Change to call error_stream_1 instead of error_stream.
1238         (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1239         (vfatal, fatal): New functions.
1240
1241 2004-11-05  Andrew Cagney  <cagney@gnu.org>
1242
1243         * stack.c (parse_frame_specification_1): Clear selected_frame_p
1244         when not using selected frame.
1245
1246 2004-11-05  Mark Kettenis  <kettenis@jive.nl>
1247
1248         * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1249         personality routine in a CIE augmentation.
1250
1251 2004-11-05  Felix Lee  <felix+log1@specifixinc.com>
1252
1253         * stack.c (set_current_sal_from_frame): New function.
1254         (print_args_stub): Use it.
1255         (print_frame_info): Don't set sal here.
1256
1257 2004-11-04  Mark Kettenis  <kettenis@gnu.org>
1258
1259         * dwarf2-frame.c (read_encoded_value): Change type of third
1260         argument to `unsigned char *'.  Add support for LEB128 encodings.
1261
1262 2004-11-04  Jim Blandy  <jimb@redhat.com>
1263
1264         * gdbtypes.c (make_qualified_type): Doc fix.  Add assertion to
1265         prevent cross-objfile references.
1266         (make_cv_type): Doc fix.  Don't create cross-objfile references,
1267         even for stub types.
1268         (replace_type): Add assertion to prevent cross-objfile references.
1269         (check_typedef): Never resolve a stub type by copying over a type
1270         from another file.
1271
1272 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1273
1274         * Makefile.in (m32r-tdep.o): Update dependencies.
1275         * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1276         ABI-specific overrides.
1277
1278 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1279
1280         * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1281         unnecessary parallel execution bit.
1282         (m32r_memory_remove_breakpoint): Ditto.
1283         (m32r_breakpoint_from_pc): Update.
1284
1285 2004-11-03  Randolph Chung  <tausq@debian.org>
1286
1287         * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1288         frame_func_unwind to locate the unwind entry.
1289         (hppa_frame_this_id): Likewise.
1290
1291 2004-11-03  Andrew Cagney  <cagney@gnu.org>
1292
1293         * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1294         packet, obsolete configurations, end-of-life deprecated_registers.
1295
1296 2004-11-02  Mark Kettenis  <kettenis@gnu.org>
1297
1298         * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1299         encodings as well as unsigned encodings.
1300
1301 2004-11-02  Andrew Cagney  <cagney@gnu.org>
1302
1303         * value.h (COERCE_VARYING_ARRAY): Delete.
1304         * valops.c (value_cast, value_slice): Delete use.
1305         * valarith.c (value_subscript, value_concat): Delete use.
1306
1307 2004-11-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
1308
1309         * NEWS: GDB understands GNAT Ada.
1310
1311 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1312
1313         * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1314         (amd64-sol2-tdep.o): Add dependencies.
1315         * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1316         config/i386/sol2-64.mt: New files.
1317         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1318         amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1319         (supply_gregset): Correct order of arguments to
1320         amd64_supply_native_gregset.
1321         (fill_gregset): Correct order of arguments to
1322         amd64_collect_native_gregset.
1323         * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1324         * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1325         * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1326         for definition of NEW_PROC_API.
1327         * configure: Regenerate.
1328
1329 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1330
1331         * MAINTAINERS (Write After Approval): Add myself.
1332
1333 2004-11-01  Andrew Cagney  <cagney@gnu.org>
1334
1335         * configure.tgt: Mark d10v-*-* as obsolete.
1336         * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1337
1338 2004-11-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
1339
1340         * values.c (modify_field): Correct handling of bit-fields that
1341         don't fit in 32 bits.  Use unsigned operations throughout and 
1342         simplify the code a bit.  Document preconditions.
1343
1344 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1345
1346         * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1347         * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1348         (in_plt_section): Delete.
1349
1350         * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1351         (mips_gdbarch_init): Do not set same.
1352
1353         * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1354         * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1355
1356         * gdbarch.sh (in_solib_call_trampoline): Delete.
1357         * gdbarch.h, gdbarch.c: Re-generate.
1358
1359         * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1360         IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1361         * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1362         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1363         * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1364
1365 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1366
1367         * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1368         (mipsnbsd_fetch_inferior_registers): Rename from
1369         fetch_inferior_registers.  Make static.
1370         (mipsnbsd_store_inferior_registers): Rename from
1371         store_inferior_registers.  Make static.
1372         (_initialize_mipsnbsd_nat): New function and prototype.
1373         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1374         * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1375         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
1376         inf-ptrace.o.
1377
1378 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1379
1380         * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1381         (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1382         delete corresponding unused function.
1383         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1384         in_solib_call_trampoline.
1385         * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1386         * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1387         * config/mips/tm-nbsd.h: Ditto.
1388         * config/arm/tm-linux.h: Ditto.
1389         * config/mips/tm-linux.h: Ditto.
1390
1391         * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1392         (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1393         in_solib_call_trampoline, delete corresponding unused function.
1394         * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline) 
1395         (vaxnbsd_aout_init_abi): Ditto.
1396         * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline) 
1397         (sparc32nbsd_aout_init_abi): Ditto.
1398         * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline) 
1399         (ppc_linux_init_abi): Ditto.
1400         * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline) 
1401         (ns32knbsd_init_abi_aout): Ditto.
1402         * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1403         * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1404         * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline) 
1405         (m68kbsd_aout_init_abi): Ditto.
1406         * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline) 
1407         (i386_cygwin_init_abi): Ditto.
1408         * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline) 
1409         (i386bsd_init_abi): Ditto.
1410
1411         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1412         in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1413         isn't used by this architecture.
1414         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1415         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1416         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1417         * s390-tdep.c (s390_gdbarch_init): Ditto.
1418         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1419         * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1420         * i386-tdep.c (i386_svr4_init_abi): Ditto.
1421         * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1422         * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1423         * amd64-tdep.c (amd64_init_abi): Ditto.
1424
1425         * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1426         in_solib_call_trampoline to its default value of
1427         generic_in_solib_call_trampoline.
1428         * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1429         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1430         * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1431         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1432         * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1433         * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1434
1435         * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1436
1437         * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1438
1439         * config/mips/tm-mips.h: Delete file.
1440         * remote-mips.c: Delete tm-mips.h from comment.
1441         * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1442         * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1443         * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1444         * config/mips/tm-linux.h: Don't include tm-mips.h.
1445         * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1446         * config/mips/irix5.mt (DEPRECATED_TM_FILE): 
1447         * config/mips/tm-wince.h: Don't include.
1448
1449         * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1450         * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1451         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1452         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1453
1454         * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1455         * mdebugread.c (ecoff_relocate_efi): Delete function.
1456         * objfiles.c (objfile_relocate): Delete #ifdef
1457         MDEBUG_EFI_SYMBOL_NAME code.
1458
1459 2004-10-31  Orjan Friberg <organ.friberg@axis.com>
1460             Andrew Cagney  <cagney@gnu.org>
1461
1462         * gdbarch.sh (single_step_through_delay): Add.
1463         * gdbarch.h, gdbarch.c: Re-generate.
1464         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1465         (mips_step_skips_delay): Delete.
1466         * mips-tdep.c (mips_single_step_through_delay): Replace
1467         mips_step_skips_delay.
1468         (mips_gdbarch_init): Set single_step_through_delay.
1469         (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1470         
1471 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1472
1473         * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1474         from TRAMP_FRAME frame type.
1475
1476 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1477
1478         * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1479
1480         * mips-tdep.c (mips_ignore_helper): Delete.
1481         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1482         * infrun.c (handle_inferior_event): Delete #ifdef
1483         DEPRECATED_IGNORE_HELPER_CALL code.
1484
1485         * config/mips/tm-mips.h (RA_REGNUM): Delete.
1486
1487 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1488
1489         * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1490         (fill_fpregset): Do not compile for 64-bit systems.
1491         * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1492         * Makefile.in (i386-sol2-nat.o): Update dependencies.
1493         * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1494
1495 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1496
1497         * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1498         (struct mdebug_extra_func_info): Define.
1499         * config/alpha/tm-alpha.h: Delete same.
1500         * config/mips/tm-mips.h: Delete same.
1501         * mdebugread.c: Delete same.
1502         * Makefile.in: Update dependencies.
1503         * mips-mdebug-tdep.c: Include "mdebugread.h".
1504
1505         * objfiles.c: Include "mdebugread.h".
1506         * mdebugread.c: Include "mdebugread.h".
1507         (ecoff_relocate_cfi): Delete.
1508         * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1509         * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1510         * mdebugread.h (ecoff_relocate_efi): New file.
1511         * Makefile.in: Update dependencies.
1512         
1513         * mips-tdep.c (struct frame_extra_info): Delete.
1514         (temp_proc_desc): Delete.
1515
1516         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1517         MIPS_EFI_SYMBOL_NAME.
1518         (mips_extra_func_info_t, mips_extra_func_info): Delete.
1519         (struct mdebug_extra_func_info): Replace struct
1520         alpha_extra_func_info and alpha_extra_func_info_t.
1521         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1522         MIPS_EFI_SYMBOL_NAME.
1523         (struct mdebug_extra_func_info): Replace struct
1524         alpha_extra_func_info and alpha_extra_func_info_t.
1525         * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1526         * mdebugread.c, alpha-mdebug-tdep.c: 
1527
1528         Suggested by Mark Kettenis.
1529         * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1530         fields frame_adjust and high_addr.
1531         * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1532         (non_heuristic_proc_desc): Delete references.
1533
1534         * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1535         * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1536         * mips-tdep.c: Update.
1537
1538         * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1539         (MIPS_LAST_EMBED_REGNUM): Add.
1540         * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1541         (LAST_EMBED_REGNUM): Delete.
1542         * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1543
1544         * config/mips/tm-mips.h (PS_REGNUM): Delete.
1545         * mips-tdep.h (MIPS_PS_REGNUM): Add.
1546         * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1547         * mips-linux-nat.c: Update.
1548
1549         * mips-tdep.h: Add comments on registers.
1550         (MIPS_UNUSED_REGNUM): Define.
1551         * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1552         (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1553         * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1554         * mips-linux-nat.c, remote-mips.c: Update.
1555
1556         * config/mips/tm-mips.h (t_insn): Delete.
1557         * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1558         Replace t_insn with ULONGEST.
1559
1560 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1561
1562         * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1563         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1564         (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1565         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1566         (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1567         (mipsnbsd_core_osabi_sniffer): New function.
1568         (mipsnbsd_init_abi): Set regset_from_core_section.
1569         (_initialize_mipsnbsd_tdep): Remove calls to
1570         deprecated_add_core_fns.
1571         (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1572         (mipsnbsd_regset_from_core_section): New functions.
1573         (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1574         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1575
1576         * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1577         Remove optimization for DEPRECATED_FP_REGNUM.
1578
1579 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1580
1581         * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1582         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1583         (alpha_setup_arbitrary_frame): Delete.
1584         * mips-tdep.c (setup_arbitrary_frame): Delete.
1585         * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1586         (setup_arbitrary_frame): Delete.
1587         * stack.c (parse_frame_specification_1): When specified, call
1588         create_new_frame with two parameters.  Delete #ifdef
1589         SETUP_ARBITRARY_FRAME.
1590
1591         * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1592         (MIPS_INSTLEN): Delete.
1593         * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1594         MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1595         * remote-mips.c, mips-tdep.c: Update.
1596
1597         * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1598         * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1599         * mips-tdep.c (mips_mdebug_frame_cache)
1600         (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1601         (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1602         (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1603         (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1604         (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1605         (mips_gdbarch_init): Do not append mdebug sniffers.
1606         (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET) 
1607         (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK) 
1608         (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG) 
1609         (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1610         * Makefile.in: Update dependencies.
1611
1612         * mips-tdep.h (mips_abi_regsize): Declare.
1613         * mips-tdep.c (mips_abi_regsize): Make non-static.
1614
1615         * mips-tdep.c (gdb_print_insn_mips): Simplify.
1616         (make_mips16_addr): Delete.
1617
1618 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1619
1620         * i386-sol2-nat.c: New file.
1621         * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1622         i386-sol2-tdep.c.
1623         (i386-sol2-nat.o): Update dependencies.
1624         * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1625         i386-sol2-nat.o.
1626
1627 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1628
1629         Total breakage identified by Joel Brobecker.
1630         * mips-tdep.c (after_prologue): Delete.
1631         (mips_skip_prologue): Use skip_prologue_using_sal.
1632         (heuristic_proc_desc): Delete, unused.
1633
1634 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1635
1636         * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1637         (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1638         Cleanup coding style.
1639
1640 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1641
1642         * mips-tdep.h (mips_pc_is_mips16): Declare.
1643         * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1644         non-static.  Update calls.
1645
1646         * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1647         * command.h (add_setshow_enum_cmd): Declare.
1648         * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1649
1650         * mips-tdep.c (_initialize_mips_tdep): Use
1651         add_setshow_zinteger_cmd.
1652         
1653         * mips-tdep.c (mips_eabi_extract_return_value)
1654         (mips_o64_extract_return_value, mips_o64_store_return_value)
1655         (return_value_location, mips_eabi_reg_struct_has_addr)
1656         (mips_eabi_use_struct_convention)
1657         (mips_eabi_store_return_value): Delete.
1658         (mips_eabi_store_return_value): New function.
1659         (mips_eabi_return_value): New function.
1660         (mips_gdbarch_init): For O64 and EABI, delete
1661         extract_return_value, store_return_value, use_struct_convention
1662         and reg_struct_has_addr, add return_value.
1663
1664         * mips-tdep.c (read_signed_register): Use
1665         regcache_cooked_read_signed.
1666
1667 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1668
1669         * mipsread.c: Cleanup coding style.
1670         (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1671         (mipscoff_symfile_finish): Remove prototypes.
1672
1673 2004-10-29  Mark Kettenis  <kettenis@gnu.org>
1674
1675         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1676         (mips_mdebug_frame_cache, mips16_scan_prologue)
1677         (mips32_scan_prologue, mips_stub_frame_cache)
1678         (heuristic_proc_start, heuristic_proc_desc)
1679         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1680         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1681         (mips_o32_return_value, mips_o64_push_dummy_call)
1682         (mips_step_skips_delay, mips_skip_trampoline_code)
1683         (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1684         MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1685         T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1686         instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1687         and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1688         (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1689         T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1690         MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
1691         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1692         (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1693         ZERO_REGNUM.
1694         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1695         (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1696         ZERO_REGNUM.
1697         (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1698         A0_REGNUM.
1699         * mipsnbsd-nat.c: Include "mips-tdep.h".
1700         (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1701         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1702
1703 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1704
1705         * stack.c (parse_frame_specification_1): New function based on
1706         parse_frame_specification.  Add message and selected_frame_p
1707         paramters.  Truely always return non-NULL.
1708         (parse_frame_specification): Call parse_frame_specification_1.
1709         (frame_info): Update.  Eliminate target_has_stack check.
1710         (select_frame_command): Update.
1711
1712 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1713
1714         * frame.h (get_selected_frame): Add message parameter.
1715         * frame.c (get_selected_frame): Add and use message parameter.
1716         * stack.c (current_frame_command, return_command, locals_info)
1717         (catch_info, args_info, up_silently_base, down_silently_base): Use
1718         get_selected_frame with an explicit message.
1719         * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1720         * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1721         * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1722         * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1723         * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1724         * breakpoint.c: Update.
1725
1726 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1727
1728         * trad-frame.c (trad_frame_get_prev_register): Use
1729         frame_unwind_register instead of frame_register_unwind, do not
1730         recurse the register's location.
1731         * xstormy16-tdep.c (xstormy16_frame_prev_register): 
1732         * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1733         * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1734         * sh-tdep.c (sh_frame_prev_register): Ditto.
1735         * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1736         * i386-tdep.c (i386_frame_prev_register): Ditto.
1737         * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1738         * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1739
1740 2004-10-28  Mark Kettenis  <kettenis@jive.nl>
1741
1742         * proc-events.c: Fix several coding-style issues.  Consistently
1743         use #ifdef instead of #if defined().
1744         (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1745         ARRAY_SIZE.
1746         (_initialize_proc_events): New prototype.
1747
1748         * proc-why.c: Fix several coding-style issues.
1749         (proc_prettyfprint_why): Use ARRAY_SIZE.
1750
1751 2004-10-27  Jim Blandy  <jimb@redhat.com>
1752
1753         * remote.c (fetch_register_using_p): Construct 'p' packet in a
1754         manner independent of the host byte order.
1755
1756 2004-10-27  Mark Kettenis  <kettenis@gnu.org>
1757
1758         * mips-tdep.c (id_delayed): Remove prototype.
1759
1760 2004-10-26  Mark Kettenis  <kettenis@gnu.org>
1761
1762         * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1763         MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1764         to enum with register numbers.
1765         (enum mips_insn_size): New enum.
1766
1767 2004-10-26  Andrew Cagney  <cagney@gnu.org>
1768
1769         * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1770         * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1771         (mips_gdbarch_init): Update.
1772         (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1773
1774         * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1775         * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1776         IN_SOLIB_RETURN_TRAMPOLINE.
1777         * mips-tdep.c (mips_dump_tdep): Do not print
1778         IN_SOLIB_RETURN_TRAMPOLINE.
1779         (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1780         (mips_gdbarch_init): Update.
1781
1782         * mips-tdep.h (mips_software_single_step): Move to here ...
1783         * config/mips/tm-mips.h: ... from here.
1784         * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) 
1785         (SOFTWARE_SINGLE_STEP): Delete.
1786         * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1787
1788 2004-10-25  Andrew Cagney  <cagney@gnu.org>
1789
1790         * NEWS: Add Changes since GDB 6.3 section.
1791
1792 2004-10-23  Andreas Schwab  <schwab@suse.de>
1793
1794         * ada-lang.c (grow_vect): Return the new array instead of
1795         expecting pointer to pointer to avoid violation of aliasing rules.
1796         * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1797
1798 2004-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1799
1800         * s390-tdep.c (enum pv_boolean): Remove.
1801         (pv_is_array_ref): Remove.
1802         (s390_on_stack): Remove.
1803         (S390_NUM_SPILL_SLOTS): Remove.
1804         (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1805         add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1806         (s390_store): Track all stores of orginal incoming registers to the
1807         stack constant offsets relative to the CFA, instead of only tracking
1808         stores into specific spill slots.
1809         (s390_load): Likewise.
1810         (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1811         (s390_prologue_frame_unwind_cache): Likewise.  Only track registers
1812         defined as call-saved by the ABI.
1813         (s390_push_dummy_call): Use bottom of dummy call argument save area
1814         as return value, not the top.  Do not store to the called function's
1815         register save area.
1816         (s390_unwind_dummy_id): Adapt accordingly.
1817
1818 2004-10-23  Andrew Cagney  <cagney@gnu.org>
1819
1820         * objfiles.h (struct objfile): Rename obj_private to
1821         deprecated_obj_private, sym_private to deprecated_sym_private, and
1822         sym_stab_info to deprecated_sym_stab_info.
1823         * gdb-stabs.h: Update.
1824         * elfread.c: Update.
1825         * dbxread.c: Update.
1826         * coffread.c: Update.
1827         * xcoffread.c: Update.
1828         * symfile.c: Update.
1829         * somread.c: Update.
1830         * nlmread.c: Update.
1831         * mdebugread.c: Update.
1832         * hpread.c: Update.
1833         * coffread.c: Update.
1834
1835 2004-10-23  Mark Kettenis  <kettenis@gnu.org>
1836
1837         * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1838         * configure.host: Add mips64*-*-openbsd*.
1839         * configure.tgt: Add mips64*-*-openbsd*.
1840         * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1841         mips64obsd-tdep.c.
1842         (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1843         * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1844
1845 2004-10-21  Joel Brobecker  <brobecker@gnat.com>
1846
1847         * symtab.c (symbol_search_name): Minor reformatting.
1848
1849 2004-10-20  Joel Brobecker  <brobecker@gnat.com>
1850
1851         * symtab.h: Fix typo in comment.
1852
1853 2004-10-19  Mark Kettenis  <kettenis@gnu.org>
1854
1855         * dwarf2read.c (struct comp_unit_head): Fix coding style.
1856         (dwarf_decode_line_header): Likewise.
1857
1858 2004-10-19  Michael Chastain  <mec.gnu@mindspring.com>
1859
1860         * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1861
1862 2004-10-19  Andrew Cagney  <cagney@gnu.org>
1863
1864         GDB 6.3 branch created.
1865         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1866
1867 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1868
1869         * dwarf2read.c (set_cu_language): Set language to Ada for
1870         DW_LANG_Ada83 and DW_LANG_Ada95.
1871
1872 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
1873
1874         From Andreas Schwab <schwab@suse.de>:
1875         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1876         for xmalloc and xrealloc.
1877
1878 2004-10-15  Andrew Cagney  <cagney@gnu.org>
1879
1880         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1881         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1882         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1883         Update dependencies.
1884
1885 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
1886
1887         * ada-lang.c (ada_lookup_symbol): Correct comment.
1888         (ada_evaluate_subexp): Change error message for
1889         OP_FUNCALL case so as not to indicate an internal error.
1890         
1891 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1892
1893         Committed by Paul Hilfinger.
1894         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1895         type sizes in XVE/XVU types, and emit a warning when that happens,
1896         instead of rounding up the size of the resulting type.
1897         Some minor reformatting.
1898         (ada_is_aligner_type): Do not consider a type as an aligner type 
1899         if there is a corresponding XVS type as well.
1900         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
1901         have several levels of pointer indirection to the array.
1902         
1903 2004-10-15  Jerome Guitton  <guitton@gnat.com>
1904
1905         Committed by Paul Hilfinger.
1906         * ada-lang.c (check_size): New function.
1907         (coerce_unspec_val_to_type): call check_size to make sure
1908         that the object size is reasonable.
1909         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1910         Implements the case when we get a reference when we evaluate
1911         the expression of one of the bounds of the slice.
1912         (ada_value_struct_elt): when a packed array field is
1913         a reference, use ada_coerce_ref to dereference it; use 
1914         ada_value_ind only if it is a pointer.
1915
1916 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1917
1918         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1919         a bit to avoid the necessity of an advance declaration. Remove
1920         declaration.
1921         (set_reg_offset): Move implemenation up.
1922         (mips16_get_imm): Likewise.
1923         (mips16_scan_prologue): Likewise.
1924         (reset_saved_regs): Likewise.
1925         (mips32_scan_prologue): Likewise.
1926
1927 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1928
1929         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1930         Remove sp as a parameter, compute it internally instead. Move
1931         prologue scanning limit from heuristic_proc_desc to here.
1932         (mips16_scan_prologue): Likewise.
1933         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1934         by call to mips16_scan_prologue.
1935         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1936         by call to mips32_scan_prologue.
1937         (heuristic_proc_desc): Remove code that's no longer necessary.
1938         Update calls to mips16_scan_prologue and mips32_scan_prologue.
1939         (mips_skip_prologue): Update calls to mips16_scan_prologue
1940         and mips32_scan_prologue.
1941
1942 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1943
1944         * mips-tdep.c (mips16_scan_prologue): Merge code from
1945         mips16_skip_prologue.  Now return the address of the first
1946         instruction past the function prologue.
1947         (mips16_skip_prologue): Remove, no longer necessary.
1948         (mips_skip_prologue): Replace call to mips16_skip_prologue
1949         by call to mips16_scan_prologue.
1950
1951 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1952
1953         * mips-tdep.c (mips32_scan_prologue): Merge code from
1954         mips32_skip_prologue.  Now return the address of the first
1955         instruction past the function prologue.
1956         (mips32_skip_prologue): Remove.  No longer necessary.
1957         (mips16_skip_prologue): Add parameter end_pc instead of
1958         computing it.
1959         (mips_skip_prologue): Compute the upper limit for the
1960         prologue scanning. Update call to mips16_skip_prologue.
1961         Replace call to mips32_skip_prologue by call to
1962         mips32_scan_prologue.
1963
1964 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
1965
1966         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1967         NetBSD system call stubs that store %rp in the ERP slot of the
1968         stack frame.
1969
1970         * source.c: Always define O_BINARY to 0 if not defined already.
1971         (openp): Unconditionally use O_BINARY.
1972
1973         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1974         * event-top.c (gdb_readline2): Likewise.
1975
1976 2004-10-14  Orjan Friberg  <orjanf@axis.com>
1977
1978         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1979         deprecated_add_core_fns which was removed by mistake.
1980
1981 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1982
1983         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1984         references to deprecated_registers[] with equivalent code.
1985
1986 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1987
1988         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1989         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
1990         instead of explicit test and print statement.
1991
1992 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
1993
1994         * sparc-nat.c: Include "inf-ptrace.h".
1995         (sparc_target): New function.
1996         * sparc-nat.h: Update copyright year.
1997         (sparc_target): New prototype.
1998         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1999         (_initialize_sparcnbsd_nat): Construct and add target vector.
2000         * sparc64nbsd-nat.c: Include "target.h".
2001         (_initialize_sparc64nbsd_nat): Construct and add target vector.
2002         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
2003         Update dependencies.
2004         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
2005         inftarg.o, add inf-ptrace.o.
2006         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2007         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2008         (NAT_FILE): Set to nm-bsd.h.
2009         (LOADLIBES): New variable.
2010         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2011         infarg.o, add inf-ptrace.o.
2012         * config/sparc/nm-nbsdaout.h: Remove file.
2013         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2014         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2015         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2016
2017         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2018         "fopen-same.h".  Update comment.
2019
2020 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
2021
2022         * i386gnu-nat.c: Include "gdb_string.h".
2023         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2024         registers when the floating-point state isn't initialized.
2025         * Makefile.in (i386gnu-nat.o): Update dependencies.
2026
2027 2004-10-11  David Anderson  <davea@sgi.com>
2028
2029         * regcache.c (regcache_raw_read): Comment was missing "to".
2030         Extraneous ' removed.
2031         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2032         comment now describes use.
2033
2034 2004-10-11  Orjan Friberg  <orjanf@axis.com>
2035
2036         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2037         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2038         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2039         (cris_sigtramp_frame_sniffer): New functions.
2040         (cris_gdbarch_init): Hook in signal trampoline unwinder.
2041         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2042         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2043         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2044         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2045         command.
2046         (cris_version_update): Remove, replace with ...
2047         (set_cris_version): New function.
2048         (struct gdbarch_tdep, cris_mode, cris_mode_update)
2049         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2050         (_initialize_cris_tdep): Remove CRIS mode command.
2051         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
2052         cris-fpless-backtrace command.
2053         (cris_scan_prologue): Fix prologue scanning limit.
2054         (cris_register_type): Update to reflect actual registers.
2055         (cris_register_bytes_ok) Remove.
2056         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2057         Remove set_gdbarch_deprecated_register_size,
2058         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2059         
2060 2004-10-10  Andrew Cagney  <cagney@gnu.org>
2061
2062         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2063         comment.
2064
2065 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2066
2067         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2068
2069 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2070
2071         * mips-tdep.c (mips16_scan_prologue): Renames
2072         mips16_heuristic_proc_desc. Update comment.
2073         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2074         (heuristic_proc_desc): Update calls to the 2 functions above.
2075
2076 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2077
2078         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2079         Update comments. Also immediately return empty cache when the start
2080         address of our function could not be found.
2081         (mips_insn32_frame_cache): Likewise.
2082
2083 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2084
2085         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2086         (mips_insn16_frame_cache): Pass frame cache in call to
2087         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2088         Remove code that became redundant as a consequence.
2089         (mips32_heuristic_proc_desc): No longer compute a fake
2090         procedure descriptor. Compute the full frame cache instead.
2091         Some minor comment reformatting.
2092
2093 2004-10-10  Jim Blandy  <jimb@redhat.com>
2094
2095         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2096         reader, tracing bytecode stuff): Remove self.
2097
2098 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
2099
2100         * sparc64-linux-tdep.c: Update copyright year.  Don't include
2101         "solib-svr4.h".
2102         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2103         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2104         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2105
2106         * sparc-linux-tdep.c: Update copyright year.
2107         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2108         to struct frame_info *.  Use safe_frame_unwind_memory instead of
2109         deprecated_read_memory_nobpt.
2110         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2111         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
2112         changed signature of sparc_linux_sigtramp_start.
2113         (sparc32_linux_pc_in_sigtramp): Remove function.
2114         (sparc32_linux_sigtramp_p): New function.
2115         (sparc32_linux_sigtramp_frame_sniffer): Use
2116         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2117
2118         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2119         Remove function.
2120         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2121
2122         * ada-lang.c (lim_warning): Re-implement as a varargs function.
2123         (decode_packed_array_type, value_subscript_packed)
2124         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2125         argument in call to lim_warning.
2126
2127         * configure.in: Really disable the TUI if an enhanced curses
2128         library isn't found.
2129         * configure: Regenerate.
2130
2131 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
2132
2133         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2134         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2135         * config/i386/nm-nbsdaout.h: Remove file.
2136         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2137         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2138         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2139         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2140         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2141         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2142         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2143         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2144         (ldd, ld_un, ld_2): Remove defines.
2145         * config/i386/nm-obsd.h: Likewise.
2146
2147 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
2148
2149         * ada-lex.l: Remove useless rule whose right-context clause
2150         causes unreferenced static function warning for yyrealloc.
2151         (ada_flex_use): Remove the artificial reference to yyrealloc.
2152
2153 2004-10-08  Andrew Cagney  <cagney@gnu.org>
2154
2155         * target.h (struct target_ops): Rename to_xfer_memory to
2156         deprecated_xfer_memory.
2157         * target.c: Update.
2158         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2159         * wince.c: Update.
2160         * win32-nat.c: Update.
2161         * v850ice.c: Update.
2162         * uw-thread.c: Update.
2163         * thread-db.c: Update.
2164         * sol-thread.c: Update.
2165         * remote.c: Update.
2166         * remote-vx.c: Update.
2167         * remote-st.c: Update.
2168         * remote-sim.c: Update.
2169         * remote-sds.c: Update.
2170         * remote-rdp.c: Update.
2171         * remote-rdi.c: Update.
2172         * remote-mips.c: Update.
2173         * remote-m32r-sdi.c: Update.
2174         * remote-e7000.c: Update.
2175         * procfs.c: Update.
2176         * ppc-bdm.c: Update.
2177         * nto-procfs.c: Update.
2178         * monitor.c: Update.
2179         * linux-nat.c: Update.
2180         * inftarg.c: Update.
2181         * hpux-thread.c: Update.
2182         * go32-nat.c: Update.
2183         * gnu-nat.c: Update.
2184         * exec.c: Update.
2185         * corelow.c: Update.
2186         * bsd-kvm.c: Update.
2187         * aix-thread.c: Update.
2188
2189 2004-10-08  Andrew Cagney  <cagney@gnu.org>
2190
2191         * target.c (debug_target): Move to near start of file.
2192         (target_stopped_data_address_p): Re-org logic, add casts.
2193
2194 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
2195
2196         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2197         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2198         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2199         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2200         New defines.
2201
2202 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2203
2204         * target.h (to_stopped_data_address): Change prototype to
2205         take a CORE_ADDR pointer and return an int.
2206         * target.c (update_current_target): Change to_stopped_data_address
2207         to match new prototype.
2208         (debug_to_stopped_data_address): Change appropriately.
2209         * breakpoint.c (bpstat_stop_status): Change call to
2210         target_stopped_data_address to use new prototype.
2211         * frv-tdep.c (frv_have_stopped_data_address): New function.
2212         (frv_stopped_data_address): Change to new prototype and
2213         functionality.
2214         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2215         prototype and functionality.
2216         (ia64_stopped_by_watchpoint): New function.
2217         * i386-nat.c (i386_stopped_data_address): Change to new
2218         prototype and functionality.
2219         (i386_stopped_by_watchpoint): New function.
2220         * remote.c (remote_stopped_data_address): Change to new prototype
2221         and functionality.
2222         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2223         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2224         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2225         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2226         new i386_stopped_by_watchpoint function.
2227         (i386_stopped_by_watchpoint): New prototype.
2228         (i386_stoppped_data_address): Change to new prototype.
2229         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2230         new ia64_stopped_by_watchpoint function.
2231         (ia64_stopped_by_watchpoint): New prototype.
2232         (ia64_stopped_data_address): Ditto.
2233
2234 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
2235
2236         * ada-typeprint.c (ada_print_type): Use int_string for printing
2237         modulus of modular type.
2238         * ada-lang.h (ada_modulus): Change return type to unsigned.
2239         * ada-lang.c (ada_language_arch_info): Correct type of 
2240         string_char_type.
2241         (ada_modulus): Return unsigned result.
2242         (ada_lookup_symbol): Remove user disambiguation and modify comment 
2243         accordingly.
2244         
2245 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
2246
2247         Committed by Paul Hilfinger.
2248         * ada-lang.c (decode_packed_array): On big-endian targets, 
2249         left-justify the value if it comes with a modular type.
2250
2251 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
2252
2253         Committed by Paul Hilfinger.
2254         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2255         (is_name_suffix): Add support for "___JM" suffixes.
2256         (ada_check_typedef): Renames ada_completed_type. 
2257         Update all users of CHECK_TYPEDEF, check_typedef, and 
2258         ada_complete_type to call ada_check_typedef.
2259         * ada-typeprint.c: Likewise.
2260         * ada-valprint.c: Likewise.
2261
2262 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
2263
2264         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2265
2266 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
2267
2268         * MAINTAINERS: Update e-mail address.
2269
2270 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
2271
2272         From Maciej W. Rozycki  <macro@mips.com>:
2273         * mips-tdep.c (mips32_next_pc): Check the register's contents,
2274         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2275
2276 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
2277
2278         * m32r-tdep.c (decode_prologue): Support functions written
2279         in assembler language. Recognize trap instructions as the
2280         end of prologue.
2281         (m32r_frame_unwind_cache): Ditto.
2282         (m32r_skip_prologue): Extend search limit. Quit analyzing
2283         prologue if pc's location is not readable.
2284
2285 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
2286
2287         * Makefile.in (.l.c): Do conversions of names of alloc and free 
2288         functions that are done for .y.c files, plus special one
2289         for yy_flex_realloc.  Also, correct missing-file tests here.
2290         * ada-lex.l (malloc, free): Remove macros.
2291         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2292         xrealloc.
2293         (ada_flex_use): Dummy definition to remove warnings about unused
2294         functions.
2295         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2296         to suppress warning.
2297         
2298 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2299
2300         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2301         RETURN_VALUE.
2302         (sh_return_value_fpu): Ditto for CPUs with FPU.
2303         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2304         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2305         Install sh_return_value_nofpu resp. sh_return_value_fpu as
2306         RETURN_VALUE functions.
2307
2308 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2309
2310         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
2311         (sh_pseudo_register_write): Ditto.
2312
2313 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2314
2315         * sh-tdep.c (IS_MACL_STS): New define.
2316         (IS_MOVI20): Ditto.
2317         (IS_MACL_LDS): Ditto.
2318         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2319         instructions in prologue.
2320         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2321         instructions in epilogue.
2322
2323 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2324
2325         * sh-tdep.c (SH_NUM_REGS): Define as 67.
2326         (sh_sh_register_name): Add eight empty register names.
2327         (sh_sh3_register_name): Ditto.
2328         (sh_sh3e_register_name): Ditto.
2329         (sh_sh2e_register_name): Ditto.
2330         (sh_sh2a_register_name): New function, defining SH2A register set.
2331         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2332         in nofpu case.
2333         (sh_sh_dsp_register_name): Add eight empty register names.
2334         (sh_sh3_dsp_register_name): Ditto.
2335         (sh_sh4_register_name): Ditto.
2336         (sh_sh4_nofpu_register_name): Ditto.
2337         (sh_sh4al_dsp_register_name): Ditto.
2338         (sh2a_show_regs): New function.
2339         (sh2a_nofpu_show_regs): New function.
2340         (sh_sh2a_register_type): New function.
2341         (do_bank_register_info): New function.
2342         (sh_print_pseudo_register): Call do_bank_register_info.
2343         Call sh_print_pseudo_register for valid "bank" register.
2344         (sh_sh2a_register_sim_regno): New function.
2345         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2346         Increment pseudo register count by one for all sh variants with
2347         pseudo registers to accomodate pseudo bank register.
2348         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2349         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2350         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
2351         Increment pseudo register numbers.
2352
2353 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2354
2355         * dwarf2read.c (read_subroutine_type): Call make_function_type
2356         instead of lookup_function_type.
2357
2358 2004-10-05  Jim Blandy  <jimb@redhat.com>
2359
2360         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2361         (Previous change missed some uses.)
2362
2363 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2364
2365         * target.h (deprecated_child_ops): Rename child_ops.
2366         * wince.c: Update copyright.  Rename child_ops.
2367         * win32-nat.c: Rename child_ops.
2368         * target.c: Rename child_ops.
2369         * rs6000-nat.c: Rename child_ops.
2370         * linux-nat.c: Rename child_ops.
2371         * infttrace.c: Rename child_ops.
2372         * inftarg.c: Rename child_ops.
2373         * infptrace.c: Rename child_ops.
2374         * hppah-nat.c: Update copyright.  Rename child_ops.
2375         * hpux-thread.c: Update copyright.  Rename child_ops.
2376
2377 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2378
2379         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2380
2381 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2382
2383         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2384
2385 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2386
2387         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2388         (die_ref_table): Remove.
2389         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2390         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
2391         the usage of this type.
2392         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2393         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2394         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2395         (dwarf2_create_include_psymtab): Update comment.
2396         (find_partial_die): Remove third argument.  Remove unreachable call
2397         to error ().
2398         (dwarf2_find_containing_comp_unit): Update comments.  Change one
2399         assertion to an error.  Remove an unreachable error.
2400         (dwarf2_find_comp_unit): Update comments.
2401         (type_at_offset): Remove dead code.
2402         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2403         (store_in_ref_table): Add CU argument.
2404         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
2405         inter-compilation-unit references.
2406         (load_full_comp_unit, process_full_comp_unit): New functions, based
2407         on psymtab_to_symtab_1.
2408         (psymtab_to_symtab_1): Use them.
2409         (dwarf2_add_dependence): New function.
2410         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
2411         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2412         (partial_die_parent_scope, guess_structure_name): Update for changes
2413         to find_partial_die.
2414         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2415         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2416         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2417         (read_die_and_children): Update call to store_in_ref_table.
2418         (do_free_die_list_cleanup): Remove.
2419         (fixup_partial_die): Update for changes to find_partial_die.
2420         (read_full_die): Handle queueing absolute references.
2421         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2422         (dwarf2_attr, die_specification, die_type)
2423         (die_containing_type, dwarf2_extension): Update calls to
2424         follow_die_ref.
2425         (dump_die): Update DW_FORM_ref* handling.
2426         (dwarf2_get_ref_die_offset): Likewise.
2427         (free_one_comp_unit): Release the dies list.
2428         (dwarf2_mark_helper): New function.
2429         (dwarf2_mark): Use it.
2430
2431 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
2432
2433         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2434         when writing to memory.
2435
2436 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
2437
2438         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2439         (m32r_extract_struct_value_address): Delete function.
2440         (m32r_return_value): New function.
2441         (m32r_gdbarch_init): Instead of store_return_value,
2442         extract_return_value, deprecated_extract_struct_value_address
2443         and deprecated_use_struct_convention, set return_value.
2444
2445 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
2446
2447         * dwarf2read.c (read_subrange_type): Add comment for variable
2448         sized arrays.
2449
2450 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
2451
2452         * Makefile.in (.l.c): Modify rule for compatibility with recent
2453         versions of flex, and remove most command-line options.
2454         * ada-lex.l: Add %options line in place of -I -i and -s command-line
2455         options.
2456
2457 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
2458
2459         Turn on initial Ada support (mainly expression evaluation).
2460         
2461         * Makefile.in (SFILES): Remove ada-tasks.c.
2462         (HFILES_NO_SRCDIR): Add ada-lang.h.
2463         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2464         (YYOBJ): Add ada-exp.o.
2465         (rule .l.c): Generalize to not mention ada.
2466         * symtab.c: Include ada-lang.h.
2467         (symbol_natural_name, symbol_demangled_name)
2468         (symbol_search_name): Add Ada case.
2469
2470 2004-10-01  Andrew Cagney  <cagney@gnu.org>
2471
2472         * Makefile.in (COMMON_OBS): Add inf-child.o.
2473         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2474         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2475         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2476         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2477         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2478         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2479         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2480         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2481         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2482         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2483         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2484         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2485         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2486
2487         * target.c (xfer_using_stratum): Change return type to LONGEST.
2488         On each iteration offset, readbuf and writebuf.
2489         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2490         partial_length, and read/modify/write predicate, update comments.
2491         Pass buffer.word to ptrace write.
2492
2493 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
2494
2495         * symfile.c (init_filename_language_table): Add extensions for
2496         Ada.
2497         * defs.h (enum language): Add language_ada.
2498         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2499         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2500         (add_symbols_from_enclosing_procs): Make a no-op for now.
2501         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2502         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2503         (find_line_in_linetable, find_next_line_in_linetable)
2504         (read_all_symtabs, is_plausible_func_for_line)
2505         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2506         (is_runtime_sym_defined, check_size): Remove declaration.
2507         (function_name_from_pc, ada_translate_error_message)
2508         (ada_lookup_minimal_symbol): Remove definition.
2509         (ada_add_block_symbols): Remove useless label.
2510         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
2511         useless declaration.
2512         (ada_is_exception_sym): Likewise.
2513
2514 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
2515
2516         Add m32r-linux support.
2517         * configure.tgt: Add m32r*-*-linux*.
2518         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2519         and m32r-linux-tdep.c.
2520         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2521         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2522         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2523         m32r-linux-tdep.c.
2524         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2525         config/m32r/linux.mh, config/m32r/linux.mt,
2526         config/m32r/nm-linux.h: New files.
2527
2528 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2529
2530         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2531         (mips32_fetch_instruction): Remove, unused.
2532
2533 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2534
2535         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2536         conditions that will always be true.
2537
2538 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
2539
2540         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2541         (vaxbsd_fetch_inferior_registers): Rename from
2542         fetch_inferior_registers.  Make static.
2543         (vaxbsd_store_inferior_registers): Rename from
2544         store_inferior_registers.  Make static.
2545         (_initialize_vaxbsd_nat): Construct and add target vector.
2546         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2547         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2548         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2549         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2550         (NAT_FILE): Remove.
2551         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2552         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2553         (NAT_FILE): Remove.
2554         * Makefile.in (vaxbsd-nat.o): Update dependencies.
2555
2556         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2557         (m88kbsd_fetch_inferior_registers): Rename from
2558         fetch_inferior_registers.  Make static.
2559         (m88kbsd_store_inferior_registers): Rename from
2560         store_inferior_registers.  Make static.
2561         (_initialize_m88kbsd_nat): New prototype and function.
2562         * config/m88k/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 (m88kbsd-nat.o): Update dependencies.
2566
2567 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2568
2569         * target.c (target_xfer_partial): New function.
2570         (target_read_memory_partial, target_write_memory_partial) 
2571         (default_xfer_partial, target_read_partial, target_write_partial) 
2572         (xfer_using_stratum): Use.
2573         (debug_to_xfer_partial): Delete function.
2574         (setup_target_debug): Do not override to_xfer_partial.
2575
2576 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
2577
2578         * fork-child.c: Update copyright year.  Fix coding style.
2579
2580 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
2581
2582         * defs.h (msavestring, mstrsave): Remove prototypes.
2583         * utils.c (msavestring, mstrsave): Remove functions.
2584         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2585         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2586         of mstrsave.
2587         * source.c (find_and_open_source): Use xstrdup instead of
2588         mstrsave.
2589
2590 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2591
2592         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2593         (inf_ptrace_xfer_memory): Delete.
2594         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2595         (target_read_memory, target_write_memory): Use xfer_using_stratum
2596         when target_xfer_partial_p.
2597         (debug_target): Move to start of file.
2598         (target_read_memory_partial, target_write_memory_partial): Use
2599         to_xfer_partial when target_xfer_partial_p.
2600
2601         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2602         inf_ptrace_xfer_memory with equivalent code.
2603         * inftarg.c (child_xfer_partial): When performing a write, pass
2604         writebuf to child_xfer_memory.
2605
2606         * target.c (target_read_string): Use target_read_memory instead of
2607         target_xfer_memory.
2608
2609 2004-09-29  Andrew Cagney  <cagney@gnu.org>
2610
2611         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
2612         the address of status.
2613
2614         * infptrace.c (ptrace_wait): Mention problem with HPUX.
2615         (kill_inferior): Inline ptrace_wait call.
2616         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2617         * inftarg.c (child_wait): Inline ptrace_wait call.
2618
2619         * target.h (struct target_ops): Delete field to_post_wait.
2620         (target_post_wait): Delete macro.
2621         (child_post_wait): Delete declaration.
2622         * target.c (update_current_target, update_current_target)
2623         (debug_to_post_wait, setup_target_debug): Delete functions and
2624         references.
2625         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2626         * inftarg.c (child_post_wait): Delete.
2627         (init_child_ops): Do not set to_post_wait.
2628         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2629         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2630         * inf-child.c (inf_child_post_wait): Delete.
2631         (inf_child_target): Do not set to_post_wait.
2632         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2633         (inf_ptrace_target): Do not set to_post_wait.
2634
2635         * wince.c (child_ops): Delete.
2636         * win32-nat.c (child_ops): Delete.
2637
2638         * inftarg.c (inftarg_set_find_memory_regions) 
2639         (inftarg_set_make_corefile_notes): Delete functions.
2640         (_initialize_linux_nat): Inline calls.
2641
2642         * target.h (child_ops): Declare.
2643         * inftarg.c (child_ops): Move from here ...
2644         * target.c (child_ops): ... to here.
2645         * wince.c (child_ops): Delete extern declaration.
2646         * win32-nat.c (child_ops): Delete extern declaration.
2647         * linux-nat.c (child_ops): Delete extern declaration.
2648         * hpux-thread.c (child_ops): Delete extern declaration.
2649
2650 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2651
2652         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2653
2654 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2655
2656         * configure.in: Only set host_makefile_frag when building a native
2657         debugger.
2658         * configure: Regenerate.
2659
2660         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2661         for OpenBSD ELF.
2662
2663 2004-09-28  Andrew Cagney  <cagney@gnu.org>
2664
2665         Problem identified by Paul Hilfinger.
2666         * Makefile.in (ada_lex_c): Define.
2667         (ada-lex.o): Delete rule.
2668
2669         * linux-proc.c: Delete file.
2670         * Makefile.in: Update.
2671         * config/sparc/linux64.mh (NATDEPFILES): 
2672         * config/sparc/linux.mh (NATDEPFILES): Update.
2673         * config/s390/s390.mh (NATDEPFILES): Update.
2674         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2675         * config/powerpc/linux.mh (NATDEPFILES): Update.
2676         * config/pa/linux.mh (NATDEPFILES): Update.
2677         * config/mips/linux.mh (NATDEPFILES): Update.
2678         * config/m68k/linux.mh (NATDEPFILES): Update.
2679         * config/ia64/linux.mh (NATDEPFILES): Update.
2680         * config/i386/linux64.mh (NATDEPFILES): Update.
2681         * config/i386/linux.mh (NATDEPFILES): Update.
2682         * config/arm/linux.mh (NATDEPFILES): Update.
2683         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2684         * linux-nat.c: Update copyright.  Include <sys/param.h>,
2685         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2686         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2687         (O_LARGEFILE): Possibly define.
2688         (_initialize_linux_nat, linux_proc_pending_signals)
2689         (add_line_to_sigset, linux_proc_xfer_memory)
2690         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2691         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2692         (struct linux_corefile_thread_data)
2693         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2694         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2695
2696 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2697
2698         * lin-lwp.c: Delete file.
2699         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2700         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2701         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2702         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2703         (linux_nat_attach, detach_callback, linux_nat_detach)
2704         (resume_callback, resume_clear_callback, linux_nat_resume)
2705         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2706         (stop_wait_callback, linux_nat_has_pending, flush_callback)
2707         (status_callback, running_callback, count_events_callback)
2708         (select_singlestep_lwp_callback, select_event_lwp_callback)
2709         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2710         (child_wait, stop_and_resume_callback, linux_nat_wait)
2711         (kill_callback, kill_wait_callback, linux_nat_kill)
2712         (linux_nat_create_inferior, linux_nat_mourn_inferior)
2713         (linux_nat_xfer_memory, linux_nat_thread_alive)
2714         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2715         (_initialize_linux_nat): New functions.
2716         * Makefile.in: Update all dependencies.
2717         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2718         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2719         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2720         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2721         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2722         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2723         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2724         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2725         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2726         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2727         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2728         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2729         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2730
2731 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
2732
2733         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2734         config/i386/obsd64.mh (NAT_FILE): Remove variable.
2735
2736         * configure.in: Don't comment out NATDEPFILES in the generated
2737         Makefile if NAT_FILE is unset.
2738         * configure: Regenerate.
2739
2740 2004-09-27  Andrew Cagney  <cagney@gnu.org>
2741
2742         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2743         (insert_step_resume_breakpoint): Delete.
2744         (insert_step_resume_breakpoint_at_frame): New function.
2745         (insert_step_resume_breakpoint_at_sal): New function.
2746         (handle_inferior_event, step_into_function)
2747         (insert_step_resume_breakpoint): Simplify by using same.
2748
2749         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2750
2751 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2752
2753         * fbsd-proc.c: Remove file.
2754         * Makefile.in (fbsd-proc.o): Remove dependency.
2755
2756         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2757         code together.
2758
2759         * config/i386/nm-fbsd64.h: Remove file.
2760         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2761
2762 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2763
2764         * amd64-nat.h: Update copyright year.
2765         (amd64bsd_target): New prototype.
2766         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2767         (amd64bsd_target): New function.
2768         (amd64bsd_fetch_inferior_registers): Rename from
2769         fetch_inferior_registers.  Make static.
2770         (amd64bsd_store_inferior_registers): Rename from
2771         store_inferior_registers.  Make static.
2772         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2773         (_initialize_amd64fbsd_nat): Construct and add target vector.
2774         * amd64nbsd-nat.o: Include "target.h".
2775         (_initialize_amd64nbsd_nat): Construct and add target vector.
2776         * amd64obsd-nat.c: Include "target.h".
2777         (_initialize_amd64obsd_nat): Construct and add target vector.
2778         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2779         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2780         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
2781         fbsd-nat.o.
2782         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2783         Remove infptrace.o and inftarg.o.  Add inf-child.o and
2784         inf-ptrace.o.
2785         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2786         (amd64obsd-nat.o): Update dependencies.
2787
2788 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
2789
2790         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2791         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2792         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2793         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2794         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2795
2796         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2797         Inline attach call.
2798         (inf_ptrace_detach): Inline detach call.
2799
2800         * configure.in: Check for waddstr instead of mvwaddstr when
2801         searching for curses library.  Check for wborder.
2802         * configure, config.in: Regenerate.
2803         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2804         available.
2805
2806         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2807
2808 2004-09-24  Robert Picco <Robert.Picco@hp.com>
2809
2810         Committed by Andrew Cagney.
2811         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2812         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
2813         configuration.
2814         (fetch_register_using_p): Implement 'p' packet.  Based on code by
2815         Fernando Nasser.
2816         (remote_fetch_registers): Call fetch_register_using_p.
2817         (init_all_packet_configs, show_remote_cmd)
2818         (_initialize_remote): Add p-packet.
2819
2820 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
2821
2822         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2823         instead of call_ptrace.  Call wait directly instead of
2824         ptrace_wait.
2825         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2826         (inf_ptrace_wait): Inline ptrace_wait call.
2827
2828 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2829
2830         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
2831         rolled back instead.
2832
2833 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2834
2835         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2836         the new argument order.
2837
2838 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
2839
2840         * MAINTAINERS: Remove "broken" from XStormy16 entry.
2841         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2842         (struct gdbarch_tdep): Remove.
2843         (struct xstormy16_frame_cache): New frame cache structure.
2844         (xstormy16_register_byte, xstormy16_register_raw_size)
2845         (xstormy16_reg_virtual_type, xstormy16_register_type)
2846         (xstormy16_push_arguments, xstormy16_push_return_address)
2847         (xstormy16_pop_frame, xstormy16_store_struct_return)
2848         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2849         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2850         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2851         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2852         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2853         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2854         (xstormy16_use_struct_convention): Drop gcc_p parameter.
2855         (xstormy16_extract_return_value, xstormy16_store_return_value):
2856         Regcachify.  Drop useless struct convention handling.
2857         (xstormy16_register_type, xstormy16_return_value)
2858         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2859         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2860         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2861         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2862         (xstormy16_unwind_sp, xstormy16_unwind_pc)
2863         (xstormy16_unwind_dummy_id) : New functions.
2864         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2865         of xstormy16_scan_prologue.
2866         (xstormy16_frame_unwind): New frame_unwind structure.
2867         (xstormy16_frame_base): New frame_base structure.
2868         (xstormy16_gdbarch_init): Accomodate all of the above changes.
2869         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
2870
2871 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
2872
2873         * language.c (language_gdbarch_post_init): Fix off-by one error.
2874
2875 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
2876
2877         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2878         (struct dwarf2_offset_and_type): New.
2879         (set_die_type, reset_die_and_siblings_types, get_die_type)
2880         (offset_and_type_hash, offset_and_type_eq): New functions.
2881         (read_structure_type, read_enumeration_type, read_array_type)
2882         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2883         (read_tag_reference_type, read_tag_const_type)
2884         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2885         (read_typedef, read_base_type, read_subrange_type): Use
2886         set_die_type.
2887
2888 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2889
2890         * Makefile.in (dwarf2read.o): Update dependencies.
2891         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2892         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2893         and read_in_chain.
2894         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2895         mark, and has_form_ref_addr.
2896         (struct dwarf2_per_cu_data): New.
2897         (dwarf2_max_cache_age): New.
2898         (dwarf2_build_psymtabs_hard): Free cached compilation units
2899         after loading.  Create and manage the list of compilation units.
2900         Remove unnecessary NULL initialization.  Fix indentation.
2901         (psymtab_to_symtab_1): Initialize all of CU.
2902         (dwarf2_read_abbrevs): Set has_form_ref_addr.
2903         (find_partial_die): Use dwarf2_find_containing_comp_unit
2904         and load_comp_unit.
2905         (free_stack_comp_unit): Update comments.  Clear the per-cu
2906         pointer.  Handle aging.
2907         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2908         (age_cached_comp_units, free_one_cached_comp_unit)
2909         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2910         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2911         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2912         (show_dwarf2_cmd): New.
2913         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2914         and "maint show dwarf2 max-cache-age".
2915         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2916         externs.
2917         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2918         global.
2919
2920 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
2921
2922         * dwarf2read.c (typename_concat): Change prototype to accept obstack
2923         and dwarf2_cu struct pointer as arguments.  Change function to use
2924         obstack if provided and use dwarf2_cu to determine language-specific
2925         separator.
2926         (partial_die_parent_scope): Change comment to include java.  Use
2927         new version of typename_concat instead of obconcat.
2928         (partial_die_full_name): Use typename_concat.
2929         (read_namespace): Ditto.
2930         (read_enumeration_type): Use typename_concat instead of obconcat.
2931         (new_symbol): Ditto.
2932         (add_partial_symbol): Enhance tests for C++ to also test for Java.
2933         (guess_structure_name): Ditto.
2934         (read_subroutine_type): Ditto.
2935         (read_structure_type): Ditto.
2936         (is_vtable_name): Add Java support.
2937         (determine_class_name): Switch to new typename_concat call.
2938         (determine_prefix): Switch to new typename_concat call.
2939         * jv-exp.y (FuncStart): New pattern.
2940         (MethodInvocation): Add support for simple function calls.  Change
2941         warning message for other forms of inferior call currently not
2942         supported.
2943         * valarith.c (value_subscript): Treat an array with upper-bound
2944         of -1 as unknown size.
2945
2946 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2947
2948         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2949         (lookup_partial_symtab): Use symtab_to_fullname.
2950
2951 2004-09-19  Jim Blandy  <jimb@redhat.com>
2952
2953         * minsyms.c (lookup_minimal_symbol): Doc fix.
2954
2955 2004-09-20  Andrew Cagney  <cagney@gnu.org>
2956
2957         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2958         CHILD_RESUME.
2959         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2960         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2961         KILL_INFERIOR.
2962         * infptrace.c: Update.
2963
2964 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
2965
2966         * symtab.c (output_source_filename): Mark first argument as const.
2967         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2968         for "info sources" output.
2969
2970 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
2971
2972         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2973         <machine/vmparam.h>.
2974         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2975         (register_u_addr): Remove prototype.
2976
2977 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
2978
2979         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2980         (i386bsd_fetch_inferior_registers): Rename from
2981         fetch_inferior_registers.  Make static.
2982         (i386bsd_store_inferior_registers): Rename from
2983         store_inferior_registers.  Make static.
2984         (i386bsd_target): New function.
2985         * i386bsd-nat.h: New file.
2986         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2987         "i386bsd-nat.h".
2988         (i386fbsd_resume): Rename from child_resume.  Make static.
2989         (_initialize_i386fbsd_nat): Construct and add target vector.
2990         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2991         (_initialize_i386nbsd_nat): Construct and add target vector.
2992         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2993         Remove defines.
2994         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2995         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
2996         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2997         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
2998         (LOADLIBES): New variable.
2999         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
3000         inf-ptrace.o.  Remove inftarg.o.
3001         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
3002         inf-ptrace.o. Remove inftarg.o.
3003         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
3004         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
3005         (LOADLIBES): New variable.
3006         * Makefile.in (i386bsd_nat_h): New variable.
3007         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3008         dependencies.
3009
3010         * sparc64nbsd-tdep.c: Include "objfiles.h".
3011         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3012         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
3013         svr4_lp64_fetch_link_map_offsets.
3014         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
3015         "nbsd-tdep.h".
3016         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3017         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
3018         svr4_lp64_fetch_link_map_offsets.
3019         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3020         dependencies.
3021
3022         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3023         * fbsd-nat.h: New file.
3024         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3025         (fbsd_nat_h): New variable.
3026         (fbsd-nat.o): New dependency.
3027
3028         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3029         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3030
3031         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3032         comment.
3033
3034 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
3035         
3036         * ada-exp.y (type_int): New function to add layer of abstraction
3037         around references to expression types.
3038         (type_long): Ditto.
3039         (type_long_long): Ditto.
3040         (type_float): Ditto.
3041         (type_double): Ditto.
3042         (type_long_double): Ditto.
3043         (type_char): Ditto.
3044         (type_system_address): Ditto.
3045         (simple_exp): Use type_* functions in place of builtin_* 
3046         variables.
3047         (exp): Ditto.
3048         (write_var_from_name): Ditto.
3049         (write_object_renaming): Ditto.
3050         * ada-lang.c (ada_create_fundamental_type): Remove redundant
3051         declaration.
3052         (build_ada_types): Remove, replacing with...
3053         (ada_language_arch_info): New function to initialize primitive
3054         type vector in language_arch_info.
3055         (ada_array_length): Remove use of builtin_type_ada_int.
3056         (value_pos_atr): Ditto.
3057         (ada_evaluate_subexp): Ditto.
3058         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3059         builtin_type_ada_long_long, builtin_type_ada_char, 
3060         builtin_type_ada_float, builtin_type_ada_double, 
3061         builtin_type_ada_long_double, builtin_type_ada_natural,
3062         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3063         (ada_builtin_types): Remove.
3064         (ada_language_defn): Remove entries for la_builtin_type_vector and
3065         string_char_type and use ada_language_arch_info.
3066         (_initialize_ada_language): Do type-vector initialization along
3067         the lines of c-lang.c.
3068         (ada_create_fundamental_type): Break up line.
3069         (ada_dump_symtab): Remove unused function.
3070         (enum ada_primitive_types): Define.
3071         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
3072         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
3073         builtin_type_ada_float, builtin_type_ada_double, 
3074         builtin_type_ada_long_double, builtin_type_ada_natural,
3075         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3076         * ada-lex.l: Use type_* functions in place of builtin_* variables.
3077         (processInt): Ditto.
3078         (processReal): Ditto.
3079         (name_lookup): Ditto.
3080         * ada-typeprint.c (print_range): Use builtin_type_int, not
3081         builtin_type_ada_int.
3082         
3083 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
3084
3085         * i386-tdep.c (i386_register_name): Rename regno to regnum.
3086
3087         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3088         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3089         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3090         * configure.in: Improve checks for curses library by checking for
3091         mvwaddstr instead of initscr.  Drop HP curses in favour of
3092         standard curses on HP-UX.
3093         * configure: Regenerated.
3094
3095 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
3096
3097         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3098         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
3099         Minor formatting changes.
3100         (empty_array): Slight rewrite for formatting.
3101         (emit_char,parse,ada_language_defn,build_ada_types,
3102         ada_is_exception_sym, _initialize_ada_language): Move 
3103         definitions around.
3104         (ada_dump_symtab): Remove unused definition.
3105         (ada_maybe_exception_partial_symbol): Remove unused definition.
3106
3107 2004-09-16  Andrew Cagney  <cagney@gnu.org>
3108
3109         * inf-child.c: Include "gdb_string.h".
3110         (inf_child_core_file_to_sym_file): Delete.
3111         (inf_child_target): Set to_fetch_registers and to_store_registers.
3112         * inf-ptrace.c: Include "gdb_string.h".
3113         * Makefile.in: Update all dependencies.
3114
3115         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3116         problem.
3117
3118 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
3119
3120         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3121         call to heuristic_proc_desc. Remove code that became redundant
3122         as a consequence.
3123         (read_next_frame_reg): Remove special case for SP_REGNUM.
3124         (set_reg_offset): Fix small typo.
3125         (reset_saved_regs): New procedure.
3126         (mips32_heuristic_proc_desc): No longer compute a fake
3127         procedure descriptor. Compute the full frame cache instead.
3128         Some minor comment reformatting.
3129
3130 2004-09-14  Andrew Cagney  <cagney@gnu.org>
3131
3132         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3133         maintainer.
3134
3135         * thread-db.c (thread_db_new_objfile): Assume that there is a
3136         child process.
3137
3138 2004-09-13  Jim Blandy  <jimb@redhat.com>
3139
3140         * valops.c (value_assign): Move 'buffer' to the enclosing block,
3141         so that its storage isn't referenced after its lifetime ends.
3142
3143         * valops.c (value_assign): 'use_buffer' is initialized to zero,
3144         and never assigned to.   Delete it, and the 'if (use_buffer)'
3145         clauses.  Delete 'raw_buffer', since it is now unused.
3146
3147 2004-09-13  Andrew Cagney  <cagney@gnu.org>
3148
3149         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3150         * configure: Re-generate.
3151         * nlm/Makefile.in (TAGS): Update.
3152         * Makefile.in (TAGS): Update.
3153         * config/vax/nbsd.mt (TM_FILE): Update.
3154         * config/sparc/vxworks.mt (TM_FILE): Update.
3155         * config/sparc/sol2.mt (TM_FILE): Update.
3156         * config/sparc/sol2-64.mt (TM_FILE): Update.
3157         * config/sparc/obsd64.mt (TM_FILE): Update.
3158         * config/sparc/obsd.mt (TM_FILE): Update.
3159         * config/sparc/nbsd64.mt (TM_FILE): Update.
3160         * config/sparc/nbsd.mt (TM_FILE): Update.
3161         * config/sparc/linux64.mt (TM_FILE): Update.
3162         * config/sparc/linux.mt (TM_FILE): Update.
3163         * config/sparc/fbsd.mt (TM_FILE): Update.
3164         * config/sh/wince.mt (TM_FILE): Update.
3165         * config/sh/nbsd.mt (TM_FILE): Update.
3166         * config/sh/linux.mt (TM_FILE): Update.
3167         * config/sh/embed.mt (TM_FILE): Update.
3168         * config/s390/s390.mt (TM_FILE): Update.
3169         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3170         * config/rs6000/rs6000.mt (TM_FILE): Update.
3171         * config/rs6000/aix4.mt (TM_FILE): Update.
3172         * config/powerpc/vxworks.mt (TM_FILE): Update.
3173         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3174         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3175         * config/powerpc/obsd.mt (TM_FILE): Update.
3176         * config/powerpc/nbsd.mt (TM_FILE): Update.
3177         * config/powerpc/linux.mt (TM_FILE): Update.
3178         * config/powerpc/aix.mt (TM_FILE): Update.
3179         * config/pa/obsd.mt (TM_FILE): Update.
3180         * config/pa/linux.mt (TM_FILE): Update.
3181         * config/pa/hppahpux.mt (TM_FILE): Update.
3182         * config/pa/hppa64.mt (TM_FILE): Update.
3183         * config/pa/hppa.mt (TM_FILE): Update.
3184         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3185         * config/mips/wince.mt (TM_FILE): Update.
3186         * config/mips/vxmips.mt (TM_FILE): Update.
3187         * config/mips/nbsd.mt (TM_FILE): Update.
3188         * config/mips/linux.mt (TM_FILE): Update.
3189         * config/mips/irix6.mt (TM_FILE): Update.
3190         * config/mips/irix5.mt (TM_FILE): Update.
3191         * config/mips/embed.mt (TM_FILE): Update.
3192         * config/m68k/vxworks68.mt (TM_FILE): Update.
3193         * config/m68k/st2000.mt (TM_FILE): Update.
3194         * config/m68k/os68k.mt (TM_FILE): Update.
3195         * config/m68k/obsd.mt (TM_FILE): Update.
3196         * config/m68k/nbsd.mt (TM_FILE): Update.
3197         * config/m68k/monitor.mt (TM_FILE): Update.
3198         * config/m68k/linux.mt (TM_FILE): Update.
3199         * config/m68k/cisco.mt (TM_FILE): Update.
3200         * config/ia64/linux.mt (TM_FILE): Update.
3201         * config/ia64/aix.mt (TM_FILE): Update.
3202         * config/ia64/ia64.mt (TM_FILE): Update.
3203         * config/i386/vxworks.mt (TM_FILE): Update.
3204         * config/i386/obsd64.mt (TM_FILE): Update.
3205         * config/i386/obsd.mt (TM_FILE): Update.
3206         * config/i386/nto.mt (TM_FILE): Update.
3207         * config/i386/nbsd64.mt (TM_FILE): Update.
3208         * config/i386/nbsd.mt (TM_FILE): Update.
3209         * config/i386/linux64.mt (TM_FILE): Update.
3210         * config/i386/linux.mt (TM_FILE): Update.
3211         * config/i386/i386sol2.mt (TM_FILE): Update.
3212         * config/i386/i386lynx.mt (TM_FILE): Update.
3213         * config/i386/fbsd64.mt (TM_FILE): Update.
3214         * config/i386/fbsd.mt (TM_FILE): Update.
3215         * config/i386/cygwin.mt (TM_FILE): Update.
3216         * config/h8300/h8300.mt (TM_FILE): Update.
3217         * config/frv/frv.mt (TM_FILE): Update.
3218         * config/cris/cris.mt (TM_FILE): Update.
3219         * config/arm/wince.mt (TM_FILE): Update.
3220         * config/arm/nbsd.mt (TM_FILE): Update.
3221         * config/arm/linux.mt (TM_FILE): Update.
3222         * config/arm/embed.mt (TM_FILE): Update.
3223         * config/alpha/nbsd.mt (TM_FILE): Update.
3224         * config/alpha/fbsd.mt (TM_FILE): Update.
3225         * config/alpha/alpha.mt (TM_FILE): Update.
3226         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3227         * config/alpha/alpha-linux.mt (TM_FILE): Update.
3228
3229         Eliminate event_loop_p, always has the value 1.
3230         * defs.h (event_loop_p): Delete macro.
3231         * breakpoint.c (until_break_command): Simplify.
3232         * utils.c (prompt_for_continue): Simplify.
3233         * tracepoint.c (read_actions): Simplify.
3234         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
3235         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
3236         (set_prompt, init_main): Simplify.
3237         (init_signals, disconnect): Delete, unused.
3238         * remote.c (remote_async_resume) 
3239         (extended_remote_async_create_inferior): Simplify.
3240         * mi/mi-interp.c (mi_input): Delete, unused.
3241         (mi_interpreter_resume, mi_command_loop): Simplify.
3242         * interps.c (current_interp_command_loop): Simplify.
3243         * infrun.c (proceed): Simplify.
3244         * infcmd.c (run_command, continue_command, step_1, jump_command)
3245         (until_command, advance_command, finish_command)
3246         (interrupt_target_command): Simplify.
3247         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3248
3249         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3250         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3251         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3252         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3253         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3254         * mips-tdep.c (mips_dump_tdep): Do not print same.
3255
3256 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3257
3258         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
3259         const.
3260         * Makefile.in (valprint.o): Delete explict rule.
3261
3262         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
3263         reported by Dave Anderson.
3264
3265         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3266
3267         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3268
3269 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
3270             Andrew Cagney  <cagney@gnu.org>
3271
3272         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3273         (mi_cmd_data_list_register_values)
3274         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3275         the register number computation.
3276
3277 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3278
3279         * ppcnbsd-nat.c: Include "inf-ptrace.h".
3280         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3281         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3282         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3283         target.
3284         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3285         inf-ptrace.o and inf-child.o.
3286         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3287         * Makefile.in: Update dependencies.
3288         
3289 2004-09-11  Andrew Cagney  <cagney@gnu.org>
3290
3291         * language.c (hex_string, hex_string_custom): Move from here ...
3292         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3293         (CELLSIZE): Increase to 50.
3294         * language.h (hex_string, hex_string_custom): Move from here ...
3295         * defs.h: ... to here.
3296         * Makefile.in: Update all dependencies.
3297         
3298 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
3299
3300         * language.c (local_hex_format_custom): Remove.
3301         (local_hex_string): Rename to hex_string, use C format, and move to
3302         utils.c
3303         (local_hex_string_custom): Rename to hex_string_custom and change
3304         interface.  Now uses C format.  Move to utils.c
3305         (local_octal_format_custom): Remove.
3306         (local_decimal_format_custom): Remove.
3307         (unknown_language_defn): Remove language-specific number 
3308         formatting entries.
3309         (auto_language_defn): Ditto.
3310         (local_language_defn): Ditto.
3311         * language.h (struct language_format_info): Delete declaration.
3312         (struct language_defn): Remove language_format_info fields
3313         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3314         (local_binary_format): Remove macro.
3315         (local_binary_format_prefix): Remove macro.
3316         (local_binary_format_specifier): Remove macro.
3317         (local_binary_format_suffix): Remove macro.
3318         (local_octal_format): Remove macro.
3319         (local_octal_format_prefix): Remove macro.
3320         (local_octal_format_specifier): Remove macro.
3321         (local_octal_format_suffix): Remove macro.
3322         (local_decimal_format): Remove macro.
3323         (local_decimal_format_prefix): Remove macro.
3324         (local_decimal_format_specifier): Remove macro.
3325         (local_decimal_format_suffix): Remove macro.
3326         (local_hex_format): Remove macro.
3327         (local_hex_format_prefix): Remove macro.
3328         (local_hex_format_specifier): Remove macro.
3329         (local_hex_format_suffix): Remove macro.
3330         (local_decimal_format_custom): Remove.
3331         (local_octal_format_custom): Remove.
3332         (local_hex_format_custom): Remove.
3333         (local_hex_string): Rename to hex_string and move to defs.h.
3334         (local_hex_string_custom): Rename to hex_string_custom, change
3335         interface, and move to defs.h.
3336         * utils.c: (int_string): New function.
3337         (hex_string): New function (from language.c).
3338         (hex_string_custom): New function (from language.c).
3339         (octal2str): New function.
3340         (decimal2str): Add width parameter.
3341         (paddr_u): Use new decimal2str interface.
3342         (paddr_d): Ditto.
3343         * defs.h (hex_string): Declare.
3344         (hex_string_custom): Declare.
3345         (int_string): Declare.
3346         * printcmd.c (print_scalar_formatted): Remove localized binary
3347         formatting.
3348         * valprint.c (print_longest): Use int_string.
3349         (print_floating): Use C hex format.
3350         (print_hex_chars): Ditto.
3351         (print_binary_chars): Remove language-specific formatting.
3352         (print_octal_chars): Use C octal format.
3353         (print_decimal_chars): Delocalize format.
3354         (print_decimal): Remove.
3355         * ada-lang.c (ada_language_defn): Remove language-specific number 
3356         formatting entries.
3357         * p-lang.c (pascal_language_defn): Ditto.
3358         * c-lang.c (c_language_defn): Ditto.
3359         (cplus_language_defn): Ditto.
3360         (asm_language_defn): Ditto.
3361         (minimal_language_defn): Ditto.
3362         * f-lang.c (f_language_defn): Ditto.
3363         * jv-lang.c (java_language_defn): Ditto.
3364         * m2-lang.c (m2_language_defn): Ditto.
3365         * scm-lang.c (scm_language_defn): Ditto.
3366         * objc-lang.c (objc_language_defn): Ditto.
3367         * memattr.c (mem_info_command): Use renamed hex_string_custom with
3368         new interface.
3369         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3370         * ui-out.c (ui_out_field_core_addr): Ditto.
3371         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3372         * exec.c (print_section_info): Ditto.
3373         * i387-tdep.c (print_i387_status_word): Ditto.
3374         (print_i387_control_word): Ditto.
3375         (i387_print_float_info): Ditto.
3376         * maint.c (maint_print_section_info): Ditto.
3377         * solib.c (info_sharedlibrary_command): Ditto.
3378         * somsolib.c (som_sharedlibrary_info_command): Ditto.
3379         * symtab.c (print_msymbol_info): Ditto.
3380         * tracepoint.c (tracepoints_info): Ditto.
3381         * solib-frv.c (lm_base): Ditto.
3382         (frv_current_sos): Ditto.
3383         (enable_break2): Ditto.
3384         (enable_break): Ditto.
3385         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3386         (process_one_symbol): Ditto.
3387         * infcmd.c (program_info): Ditto.
3388         * mdebugread.c (parse_partial_symbols): Ditto.
3389         * symfile.c (add_symbol_file_command): Ditto.
3390         * cli/cli-cmds.c (edit_command): Ditto.
3391         (list_command): Ditto.
3392         * infcall.c (call_function_by_hand): Ditto.
3393         * remote-vx.c (vx_run_files_info): Ditto.
3394         (vx_wait): Ditto.
3395         (vx_attach): Ditto.
3396         (vx_detach): Ditto.
3397         (vx_kill): Ditto.
3398         * aix-thread.c (pdc_symbol_addrs): Ditto.
3399         (pdc_read_regs): Ditto.
3400         (pdc_write_regs): Ditto.
3401         (pdc_read_data): Ditto.
3402         (pdc_write_data): Ditto.
3403         * d10v-tdep.c (display_trace): Ditto.
3404         * rs6000-nat.c (find_toc_address): Ditto.
3405         * aix-thread.c: Don't include language.h.
3406         * buildsym.c: Ditto.
3407         * dbxread.c: Ditto.
3408         * mdebugread.c: Ditto.
3409         * rs6000-nat.c: Ditto.
3410         * buildsym.c (make_blockvector): Use renamed hex_string.
3411         
3412 2004-09-10  Jason Molenda  (jmolenda@apple.com)
3413
3414         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3415         chars after 'if' or 'while' commands in user-defined commands.
3416
3417 2004-09-08  Jim Blandy  <jimb@redhat.com>
3418
3419         Fix bug reported and analyzed by Olivier Crete:
3420         * symfile.c (copy_section_addr_info): New function.
3421         (symbol_file_add_with_addrs_or_offsets): Use it to save the
3422         original set of address arguments, instead of handwritten code
3423         that uses one length to allocate and a different length to
3424         initialize.  Use make_cleanup_free_section_addr_info.
3425         * symfile.h (copy_section_addr_info): New declaration.
3426         * utils.c: #include "symfile.h".
3427         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3428         New functions.
3429         * defs.h (make_cleanup_free_section_addr_info): New declaration.
3430         * Makefile.in (utils.o): Update dependencies.
3431
3432 2004-09-08  Andrew Cagney  <cagney@gnu.org>
3433
3434         * thread-db.c (keep_thread_db): Delete.
3435         (thread_db_new_objfile, thread_db_create_inferior)
3436         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3437
3438 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
3439
3440         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3441         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3442         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3443         (i386_frameless_signal_p): Remove prototype.
3444         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3445         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3446         I386_SSE_NUM_REGS.
3447         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3448         instead of FP0_REGNUM.
3449         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3450         of FP0_REGNUM and FPC_REGNUM.
3451
3452         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3453         (sunos_solib_create_inferior_hook): Don't call
3454         sunos_relocate_main_executable.
3455
3456         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3457         solib_svr4_fetch_link_map_offsets to
3458         svr4_ilp32_fetch_link_map_offsets.
3459         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3460         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3461         svr4_ilp32_fetch_link_map_offsets.
3462         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3463
3464 2004-09-07  Jim Blandy  <jimb@redhat.com>
3465
3466         * frame.h (frame_register): Doc fix.
3467
3468 2004-09-07  Andrew Cagney  <cagney@gnu.org>
3469
3470         * vx-share/wait.h: Delete #ifdef USG.
3471         * utils.c (request_quit): Ditto.
3472         * tui/tui.c (tui_reset): Ditto.
3473         * remote.c: Ditto.
3474         * remote-sds.c: Ditto.
3475         * remote-rdi.c: Ditto.
3476         * mdebugread.c: Ditto.
3477         * m68klinux-nat.c: Ditto.
3478         * infttrace.c: Ditto.
3479         * infptrace.c: Ditto.
3480         * i386v-nat.c: Ditto.
3481         * exec.c: Ditto.
3482         * dbxread.c: Ditto.
3483         * core-aout.c: Ditto.
3484
3485 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
3486
3487         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3488         heuristic_proc_desc.
3489         (mips_insn32_frame_cache): Likewise.
3490
3491 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3492
3493         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3494         left behind by error.
3495
3496 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3497
3498         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3499         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3500
3501 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3502
3503         * config/rs6000/xm-aix4.h: Remove this file.
3504         * config/rs6000/aix4.mh (XM_FILE): Delete.
3505
3506 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3507
3508         * config/rs6000/xm-rs6000.h: Remove this file.
3509         * config/rs6000/rs6000.mh (XM_FILE): Remove.
3510
3511 2004-09-03  Andrew Cagney  <cagney@gnu.org>
3512
3513         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3514         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3515         only use.
3516
3517         * mips-tdep.c (temp_saved_regs): Delete.
3518         (set_reg_offset): Replace saved_regs parameter with this_cache.
3519         (heuristic_proc_desc, mips16_heuristic_proc_desc)
3520         (mips32_heuristic_proc_desc): Add this_cache parameter.
3521         (mips_insn32_frame_cache, mips_insn16_frame_cache)
3522         (after_prologue): Pass a NULL this_cache.
3523
3524         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3525         non-kernel trap prologues.
3526
3527         * mips-tdep.c (find_proc_desc): Delete function.
3528         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3529         simplify.
3530         (mips_insn16_frame_cache): Replace find_proc_desc with code from
3531         mips_insn32_frame_cache.
3532
3533         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3534         Simplify as NEXT_FRAME is NULL.
3535         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3536
3537         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3538         local variable.
3539         (mips_skip_prologue): Update.
3540
3541         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3542         "cur_frame" parameter.
3543         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3544         (mips_insn32_frame_cache, find_proc_desc): Update
3545
3546         * config/vax/nm-obsd.h: Delete file.
3547         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3548         * config/vax/nm-nbsd.h: Delete file.
3549         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3550         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3551         * config/sh/nm-nbsd.h: Delete file.
3552         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3553         * config/rs6000/nm-rs6000ly.h: Delete file.
3554         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3555         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3556         * config/powerpc/nm-obsd.h: Delete file.
3557         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3558         * config/powerpc/nm-nbsd.h: Delete file.
3559         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3560         * config/pa/nm-obsd.h: Delete file.
3561         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3562         * config/mips/nm-nbsd.h: Delete file.
3563         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3564         * config/m88k/nm-obsd.h: Delete file.
3565         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3566         * config/m68k/nm-nbsd.h: Delete file.
3567         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3568         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3569         * config/i386/nm-nbsd.h: Delete file.
3570         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3571         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3572         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3573         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3574         * config/i386/nm-i386lynx.h: Delete file.
3575         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3576         * config/arm/nm-nbsd.h: Delete file.
3577         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3578         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3579
3580         * config/i386/tm-fbsd.h: Delete file.
3581         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3582         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3583
3584         * config/rs6000/tm-rs6000-aix4.h: Delete file.
3585         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3586         * config/rs6000/aix4.mt (TM_FILE): Set to
3587         config/rs6000/tm-rs6000.h.
3588         * config/powerpc/tm-ppc-aix.h: Delete file.
3589         * config/powerpc/aix.mt (TM_FILE): Set to
3590         config/rs6000/tm-rs6000.h.
3591         * config/m68k/tm-linux.h: Delete file.
3592         * config/m68k/linux.mt (TM_FILE): Set to solib.h
3593         * config/i386/tm-linux64.h: Delete file.
3594         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3595         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3596         
3597         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3598         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3599         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3600         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3601         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3602         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3603         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3604         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
3605         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3606
3607         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3608         gdb_host_cpu.
3609
3610 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
3611
3612         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3613         Minor reformatting. Some code factoring.
3614
3615 2004-09-02  Andrew Cagney  <cagney@gnu.org>
3616
3617         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3618         * config/vax/tm-nbsd.h: Delete file.
3619         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3620         * config/sparc/tm-vxworks.h: Delete file.
3621         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3622         * config/sparc/tm-nbsd.h: Delete file.
3623         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3624         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3625         * config/sparc/tm-linux.h: Delete file.
3626         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3627         * config/s390/tm-linux.h: Delete file.
3628         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3629         * config/pa/tm-bsd.h: Delete file.
3630         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3631         * config/m68k/tm-obsd.h: Delete file.
3632         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3633         * config/m68k/tm-nbsd.h: Delete file.
3634         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3635         * config/i386/tm-vxworks.h: Delete file.
3636         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3637         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3638         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3639         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3640         * config/i386/tm-nbsd.h: Delete file.
3641         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3642         * config/i386/tm-i386lynx.h: Delete file.
3643         * config/cris/cris.mt (TM_FILE): Set to solib.h.
3644         * config/cris/tm-cris.h: Delete file.
3645
3646         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3647         * configure: Re-generate.
3648         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3649         * config/arm/tm-nbsd.h: Delete file.
3650         
3651         * config/powerpc/tm-ppcle-sim.h: Delete.
3652         * config/powerpc/tm-ppcle-eabi.h: Delete.
3653         * config/powerpc/tm-nbsd.h: Delete.
3654         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3655         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3656         tm-ppcle-eabi.h.
3657
3658         * config/i386/nto.mh (NAT_FILE): Delete.
3659         * config/i386/nm-nto.h: Delete.
3660
3661         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3662         * config/m68k/tm-os68k.h: Ditto.
3663         * config/m68k/tm-monitor.h: Ditto.
3664         * config/m68k/tm-cisco.h: Ditto.
3665         * config/m68k/st2000.mt (TM_FILE): Delete.
3666         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3667         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3668         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3669         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3670
3671         * config/m68k/tm-st2000.h: Delete.
3672         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3673         * config/sparc/fbsd.mt (TM_FILE): Delete.
3674         * config/sparc/tm-fbsd.h: Delete.
3675
3676         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3677         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
3678         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3679
3680         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3681         GDB_TM_FILE and GDB_XM_FILE.
3682         * gdbarch.c: Re-generate.       
3683         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3684         quotes in macro definition.
3685         * configure.in: Re-generate.
3686
3687         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3688         validating architecture methods.
3689         * gdbarch.c: Re-generate.
3690         
3691         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3692         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
3693         GDB_MULTI_ARCH_PARTIAL.
3694         * gdbarch.h: Re-generate.
3695         
3696         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3697         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3698         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3699         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3700         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3701         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3702         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3703         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3704         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3705         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3706         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3707         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3708
3709 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3710
3711         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3712         and main_func_highpc.
3713         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3714         * objfiles.c (init_entry_point_info, objfile_relocate): Update
3715         * nlmread.c (nlm_symfile_read): Update.
3716
3717 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3718
3719         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3720         (mips_insn32_frame_cache): Inline call to find_proc_desc.
3721         (find_proc_desc): Remove dead code.
3722
3723 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3724
3725         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3726
3727 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
3728
3729         * observer.sh: Add struct so_list declaration.
3730         * Makefile.in: Add dependencies on observer.h for solib.c and
3731         breakpoint.c.
3732         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3733         function.
3734         (_initialize_breakpoint): Register 
3735         disable_breakpoints_in_unloaded_shlib as an observer of the 
3736         "solib unloaded" observation event.
3737         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3738         call decode_line_1 so unfound breakpoint errors are silent.
3739         * solib.c (update_solib_list): When a solib is discovered to have
3740         been unloaded by the program, notify all observers of the
3741         "solib unloaded" observation event.
3742
3743 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3744
3745         * frame.c: Include "objfiles.h".
3746         (inside_main_func): New function.
3747         (get_prev_frame): Use new inside_main_func.
3748         * Makefile.in (frame.o): Update dependencies.
3749         * defs.h (inside_main_func): Delete declaration.
3750         * blockframe.c (inside_main_func): Delete function.
3751
3752 2004-08-31  Jim Blandy  <jimb@redhat.com>
3753
3754         * dwarf2read.c (is_vtable_name): New function, based on logic from
3755         read_structure_type, but passing the correct length to strncmp,
3756         and using 'sizeof' instead of 'strlen'.
3757         (read_structure_type): Call it.
3758
3759 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
3760
3761         * config/powerpc/aix.mh: Add comment.
3762
3763 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
3764
3765         * MAINTAINERS: Add self to Write-After-Approval.
3766
3767 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
3768
3769         * MAINTAINERS: Add self to Write-After-Approval.
3770
3771 2004-08-30  Andrew Cagney  <cagney@gnu.org>
3772
3773         Fix PR breakpoints/1757.
3774         * infrun.c (struct execution_control_state): Replace
3775         remove_breakpoints_on_following_step with
3776         step_after_step_resume_breakpoint.
3777         (init_execution_control_state): Update.
3778         (handle_inferior_event): For signals, when stepping off a
3779         breakpoint, set step_after_step_resume_breakpoint.  When
3780         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3781         (keep_going): Delete code handling
3782         remove_breakpoints_on_following_step.
3783
3784 2004-08-29  David Lecomber  <david@streamline-computing.com>
3785         
3786         Fix PR gdb/648
3787         * language.h (enum array_ordering): New enum.
3788         * language.h (struct language_defn): New la_array_ordering 
3789         attribute.
3790         * language.c (unknown_language_defn, auto_language_defn)
3791         (local_language_defn): Ditto.
3792         * ada-lang.c (ada_language_defn): Ditto.
3793         * c-lang.c (c_language_defn, cplus_language_defn)
3794         (asm_language_defn, minimal_language_defn): Ditto.
3795         * f-lang.c (f_language_defn): Ditto.
3796         * jv-lang.c (java_language_defn): Ditto.
3797         * m2-lang.c (f_language_defn): Ditto.
3798         * objc-lang.c (objc_language_defn): Ditto.
3799         * p-lang.c (pascal_language_defn): Ditto.
3800         * scm-lang.c (scm_language_defn): Ditto.
3801         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3802         oriented large to small in type structure.
3803         * dwarf2read.c (read_array_order): New function.
3804         (read_array_type): Use read_array_order to check row/column
3805         major ordering.
3806
3807 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
3808
3809         * target.c (target_resize_to_sections): Check
3810         current_target.to_sections for an old value when updating.
3811
3812 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
3813
3814         * procfs.c (dbx_link_bpt_addr): New static global variable.
3815         (dbx_link_shadow_contents): New static global variable.
3816         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3817         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3818         if we just hit it.
3819         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3820         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3821         from run to run.
3822         (procfs_create_inferior): Remove syssgi syscall-exit notifications
3823         after the inferior has been forked.
3824         (remove_dbx_link_breakpoint): New function.
3825         (dbx_link_addr): New function.
3826         (insert_dbx_link_bpt_in_file): New function.
3827         (insert_dbx_link_bpt_in_region): New function.
3828         (insert_dbx_link_breakpoint): New function.
3829         (proc_trace_syscalls_1): New function, extracted from
3830         proc_trace_syscalls.
3831         (proc_trace_syscalls): Replace extract code by call to
3832         proc_trace_syscalls_1.
3833         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3834         is no longer valid.
3835
3836 2004-08-25  Jim Blandy  <jimb@redhat.com>
3837
3838         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3839
3840 2004-08-25  Andrew Cagney  <cagney@gnu.org>
3841
3842         * infrun.c (struct execution_control_state): Delete field
3843         "stepping_through_sigtramp".
3844         (init_execution_control_state): Do not set same.
3845         (context_switch): Do not pass same to save_infrun_state and
3846         load_infrun_state.
3847         * gdbthread.h (struct thread_info): Delete field
3848         stepping_through_sigtramp.
3849         (save_infrun_state, load_infrun_state): Delete parameter
3850         stepping_through_sigtramp.
3851         * thread.c (load_infrun_state, save_infrun_state): Update.
3852
3853         * infrun.c: Re-indent.  Move expression operators to the beginning
3854         of the line.  Remove long disabled #if 0 code.
3855
3856 2004-08-24  Andrew Cagney  <cagney@gnu.org>
3857
3858         * doublest.h (floatformat_ieee_quad): Rename
3859         floatformat_ia64_quad.
3860         * doublest.c (floatformat_ieee_quad): Rename
3861         floatformat_ia64_quad.
3862         (_initialize_doublest): Update.
3863
3864 2004-08-24  Jim Blandy  <jimb@redhat.com>
3865
3866         * dwarf2expr.h (struct dwarf_expr_context): New members
3867         'num_pieces' and 'pieces', for returning the result of an
3868         expression that uses DW_OP_piece.
3869         (struct dwarf_expr_piece): New struct type.
3870         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3871         pieces.
3872         (free_dwarf_expr_context): Free pieces, if any.
3873         (add_piece): New function.
3874         (execute_stack_op): Implement DW_OP_piece.
3875         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3876         expression is a list of pieces, print an error message.
3877         (dwarf2_loc_desc_needs_frame): If the expression yields
3878         pieces, and any piece is in a register, then we need a frame.
3879
3880         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3881         the stack until we've decided what sort of result the evaluation
3882         has produced.  Use separate variables, with more specific names.
3883
3884 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
3885
3886         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3887         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3888         (arm_netbsd_init_abi_common): Register them.
3889
3890 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
3891
3892         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3893
3894         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3895         safe_frame_unwind_memory instead of target_read_memory.
3896
3897         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3898         Reorder includes.
3899         (fetch_register, store_register): Remove prototypes.
3900         (child_resume): Reorganize code and comments such that it is
3901         grouped a bit more logically.
3902         (attach): Explicitly compare errno against 0.
3903         (detach): Likewise.  Use perror_with_name instead of
3904         print_sys_errmsg.
3905         * Makefile.in (infptrace.o): Update dependencies.
3906
3907         * ia64-linux-nat.c: Update copyright year.
3908         (fetch_debug_register, store_debug_register)
3909         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3910         PTRACE_TYPE_ARG3.
3911         * config/ia64/nm-linux.h: Update copyright year.
3912          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3913
3914         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3915         from CORE_ADDR to struct frame_info *.  Use
3916         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3917         (amd64_linux_sigtramp_p): Adjust for changed signature of
3918         and64_linux_sigtramp_start
3919
3920         * gdb_ptrace.h: GNU/Linux.
3921
3922         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3923         Remove defines.
3924
3925         * infptrace.c: Include "gdb_assert.h".
3926         (PTRACE_XFER_TYPE): Remove define.
3927         (offsetof): Only define if U_REGS_OFFSET isn't defined.
3928         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3929         Tweak comment.
3930         (fetch_inferior_registers, store_inferior_registers): Remove
3931         redundant culry braces.  Tweak comment.  s/regno/regnum.
3932         * Makefile.in (infptrace.o): Update dependencies.
3933
3934         * configure.in: Change test for return type of ptrace to default
3935         to `long' instead of `int'.
3936         * configure: Regenerate.        
3937
3938 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
3939
3940         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3941
3942         * configure.in: Check for ttrace function.
3943         * configure, config.in: Regenerate.     
3944
3945         * gdb_ptrace.h: New file.
3946         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3947         <sys/ptrace.h>.
3948         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3949         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3950         (attach): Don't define PT_ATTACH.
3951         (detach): Don't define PT_DETACH.
3952         * Makefile.in (gdb_ptrace_h): New variable.
3953         (infptrace.o): Update dependencies.
3954
3955 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
3956
3957         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3958         instead of `int' if not already defined.
3959         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3960         PTRACE_TYPE_ARG3.
3961         * infptrace.c (call_ptrace): Revert change that replaced
3962         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3963
3964 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
3965
3966         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3967         Remove defines.
3968
3969         * linux-nat.c (kill_inferior): Add missing third and fourth
3970         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
3971
3972         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3973         PTRACE_TYPE_RET.
3974
3975         * proc-why.c (proc_prettyfprint_why): Fix format string.
3976
3977         * solib-osf.c (osf_current_sos): Remove unsused label.
3978
3979         * configure.in: Add <ncurses/ncurses.h> to the list of possible
3980         curses headers.
3981         * configure, config.in: Regenerate.     
3982         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3983         <ncurses/ncurses.h>.
3984
3985         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3986         * config/nm-nbsd.h: Update copyright year.
3987         (PTRACE_ARG3_TYPE): Remove define.
3988
3989         * sparc-nat.c (fetch_inferior_registers)
3990         (store_inferior_registers, sparc_xfer_wcookie): 
3991         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3992
3993         * alphabsd-nat.c (fetch_inferior_registers):
3994         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3995         PTRACE_TYPE_ARG3.
3996         * amd64bsd-nat.c (fetch_inferior_registers)
3997         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3998         PTRACE_TYPE_ARG3.
3999         * armnbsd-nat.c: Update copyright year.
4000         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
4001         (store_register, store_regs, store_fp_register, store_fp_regs):
4002         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4003         * hppabsd-nat.c (fetch_inferior_registers)
4004         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4005         PTRACE_TYPE_ARG3.
4006         * i386bsd-nat.c (fetch_inferior_registers)
4007         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4008         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4009         * m68kbsd-nat.c (fetch_inferior_registers)
4010         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4011         PTRACE_TYPE_ARG3.
4012         * m88kbsd-nat.c (fetch_inferior_registers)
4013         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4014         PTRACE_TYPE_ARG3.
4015         * mipsnbsd-nat.c: Update copyright year.
4016         (fetch_inferior_registers, store_inferior_registers):
4017         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4018         * ns32knbsd-nat.c: Update copyright year.
4019         (fetch_inferior_registers, store_inferior_registers):
4020         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4021         * ppcnbsd-nat.c (fetch_inferior_registers):
4022         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4023         PTRACE_TYPE_ARG3.
4024         * ppcobsd-nat.c (fetch_inferior_registers):
4025         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4026         PTRACE_TYPE_ARG3.
4027         * shnbsd-nat.c: Update copyright year.
4028         (fetch_inferior_registers, store_inferior_registers):
4029         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4030         * vaxbsd-nat.c (fetch_inferior_registers)
4031         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4032         PTRACE_TYPE_ARG3.
4033         
4034         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4035         PTRACE_TYPE_ARG3.
4036         * infptrace.c (call_ptrace, child_resume, attach, detach)
4037         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4038         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4039         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4040         PTRACE_TYPE_ARG3.
4041
4042 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
4043
4044         * defs.h: Remove out-of-date comment.
4045         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4046         [!GETENV_PROVIDED] (getenv): Remove prototype.
4047
4048         * standalone.c: Remove file.
4049         * Makefile.in (standalone.o): Remove dependency.
4050
4051         * i386-linux-nat.c (dummy_sse_values): Remove function and
4052         prototype.
4053         (i386_linux_dr_get): Fix typo in comment.
4054         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4055
4056         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4057
4058         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4059         from declaration.
4060         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4061         from definition.
4062
4063 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
4064
4065         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4066         parenthesis in definition.
4067         * configure: Regenerated.
4068
4069 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
4070
4071         * PROBLEMS: Mention build/1411.
4072
4073 2004-08-09  Robert Millan  <robertmh@gnu.org>
4074
4075         Committed by Nathanael Nerode.
4076         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4077         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4078
4079 2004-08-12  Andrew Cagney  <cagney@gnu.org>
4080
4081         * NEWS: Mention fixes in GDB 6.2.1.
4082         * PROBLEMS: Remove mention of mips-irix.
4083
4084 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4085
4086         * config/powerpc/xm-aix.h: Delete.
4087         * config/powerpc/aix.mh (MH_FILE): Remove.
4088         * config/powerpc/aix432.mh (MH_FILE): Remove.
4089
4090 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4091
4092         * config/powerpc/aix.mh: Remove obsolete comment.
4093         * config/powerpc/aix432.mh: Likewise.
4094
4095 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4096
4097         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4098
4099 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4100
4101         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4102         this file is now empty.
4103         * config/xm-aix4.h: Remove, this file is no longer included
4104         anywhere.
4105
4106 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4107
4108         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4109         that file is now empty.
4110         (termdef): Remove prototype, function no longer used.
4111
4112 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4113
4114         * doc/gdbint.texinfo (Host Definition): Remove documentation
4115         for USE_O_NOCTTY, no longer used.
4116         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4117         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4118
4119 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4120
4121         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4122         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4123         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4124
4125 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
4126
4127         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4128         instead of FIVE_ARG_PTRACE.
4129
4130         * inflow.c (O_NOCTTY): Define to zero if not already defined.
4131         (new_tty): Use O_NOCTTY unconditionally.
4132
4133 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
4134
4135         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
4136         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
4137         fflush on stdout.
4138
4139 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
4140
4141         * xcoff_symfile_finish: Replace last call to xmfree by call
4142         to xfree.
4143
4144 2004-08-10  Andrew Cagney  <cagney@gnu.org>
4145
4146         * main.c (captured_main): Delete call to init_malloc.
4147         * defs.h (init_malloc): Delete declaration.
4148         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4149         (init_malloc): Delete functions.
4150
4151         * defs.h (xmfree): Delete.
4152         * utils.c (xmfree): Delete function.
4153         (xfree): Inline calls to xmfree and mfree.
4154         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4155         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4156         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4157         * somread.c (som_symfile_finish): Ditto.
4158         * objfiles.c (allocate_objfile, free_objfile): 
4159         * nlmread.c (nlm_symfile_finish): Ditto.
4160         * hpread.c (hpread_symfile_finish): Ditto.
4161         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4162         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4163         * coffread.c (coff_symfile_finish): Ditto.
4164
4165         * defs.h (xmcalloc): Delete declaration.
4166         * utils.c (xmcalloc): Delete.
4167         (xcalloc): Inline calls to xmcalloc and mcalloc.
4168         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4169         xcalloc and xfree.
4170         * symtab.c (create_demangled_names_hash): Ditto.
4171
4172         * defs.h (xmrealloc): Delete.
4173         * utils.c (xmrealloc): Delete.
4174         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4175         * symmisc.c (extend_psymbol_list): Use xrealloc.
4176         * source.c (find_source_lines): Ditto.
4177         * hpread.c (hpread_lookup_type): Ditto.
4178         * dbxread.c (add_bincl_to_list): Ditto.
4179
4180         * utils.c (xmmalloc): Delete.
4181         (xmalloc): Inline xmmalloc and mmalloc calls.
4182         (msavestring): Use xmalloc.
4183         * defs.h (xmmalloc): Delete declaration.
4184         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4185         xmmalloc.
4186         * symmisc.c (extend_psymbol_list): Ditto.
4187         * symfile.c (init_psymbol_list): Ditto.
4188         * source.c (find_source_lines): Ditto.
4189         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4190         * elfread.c (elf_symtab_read): Ditto.
4191         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4192         * coffread.c (coff_symfile_init): Ditto.
4193
4194 2004-08-10  David Carlton  <carlton@bactrian.org>
4195
4196         * MAINTAINERS: Remove David Carlton from c++ testsuite
4197         maintainers.
4198
4199 2004-08-10  Jerome Guitton  <guitton@gnat.com>
4200
4201         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4202         print a line feed before the prompt.
4203
4204 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
4205
4206         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4207
4208 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
4209
4210         General cleanup of the AIX xm include file:
4211         * config/xm-aix4.h (fd_set): Remove undefine.
4212         Remove include of <sys/select.h>.
4213         (HAVE_TERMIO): Remove define.
4214         (USG): Likewise.
4215         (NULL): Remove redefine.
4216         (alloca): Remove #pragma.
4217         (vfork): Remove define.
4218         (termdef): Remove.
4219         (SIGWINCH_HANDLER): Remove.
4220         (SIGWINCH_HANDLER_BODY): Remove.
4221
4222 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
4223
4224         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4225         GDB_OSABI_OPENBSD_ELF.
4226
4227 2004-08-07  Robert Millan  <robertmh@gnu.org>
4228
4229         * bsd-kvm.c: Check for nlist.h before including it.
4230
4231 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
4232
4233         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4234         sigcontext' offset consistency checks for ancient BSD.
4235
4236         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4237
4238         * configure.in: Check for <sys/types.h>.  Check return and
4239         argument types of ptrace.
4240         * configure, config.in: Regenerate.     
4241
4242 2004-08-09  Jim Blandy  <jimb@redhat.com>
4243
4244         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4245         rs6000_register_sim_regno): Doc fixes.
4246
4247 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
4248
4249         * mips-tdep.c: Include "floatformat.h".
4250         (n32n64_floatformat_always_valid): New function.
4251         (floatformat_n32n64_long_double_big): New constant.
4252         (mips_gdbarch_init): Set size and format of long double
4253         for N32 and N64 ABIs.
4254         * Makefile.in (mips-tdep.o): Update dependencies.
4255
4256 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4257
4258         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
4259         print.  Improve script's error messages.
4260         * gdbarch.h: Re-generate.
4261
4262         * gdbarch.sh (pformat): New function.
4263         (float_format, double_format, long_double_format): List with bit
4264         members.  Use pformat when printing.
4265         * gdbarch.c, gdbarch.h: Re-generate.
4266         
4267 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
4268
4269         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4270         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4271         (ppcnbsd_supply_pcb): New function.
4272         (_initialize_ppcnbsd_nat): New prototype and function.
4273         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4274         (LOADLIBES): New variable.
4275         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4276
4277 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4278
4279         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4280         (builtin_type_ieee_double, builtin_type_ia64_quad)
4281         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4282         BE/LE floating-point types.
4283         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4284         (builtin_type_ieee_double, builtin_type_ia64_quad)
4285         (builtin_type_ia64_spill): Declare.
4286         * doublest.c (_initialize_doublest, floatformat_ieee_single)
4287         (floatformat_ieee_double, floatformat_arm_ext)
4288         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4289         of LE/BE floatformats.  
4290         * doublest.h: (struct floatformat, floatformat_ieee_single)
4291         (floatformat_ieee_double, floatformat_arm_ext)
4292         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4293
4294 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
4295
4296         * i386gnu-nat.c (gnu_store_registers): Fix typo.
4297
4298         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4299         instead of regcache_raw_supply when storing the registers.
4300
4301         * i386gnu-nat.c: Update copyright year.
4302         (gnu_store_registers): Don't use deprecated_registers and
4303         deprecated_registers_valid.  Use regcache_valid_p and
4304         regcache_raw_supply instead.
4305
4306         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4307         frame_pc_unwind.
4308
4309         * procfs.c (procfs_pid_to_str): Remove redundant and unused
4310         variables.  Incapitalized "process".
4311
4312         * configure.in: Add cursesX to the list of possible curses libs.
4313         Add cursesX.h to the list of possible curses headers. 
4314         * configure, config.in: Regenerate.     
4315
4316 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4317
4318         * configure.in: Test for struct lwp in <sys/lwp.h>.
4319         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4320         the offset of l_addr in struct lwp.
4321
4322 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4323
4324         * bsd-kvm.c: Include "gdbcore.h"
4325         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4326
4327 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4328
4329         * gdbtypes.c (build_flt, build_complex): New functions.
4330         (gdbtypes_post_init): Use.
4331
4332         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4333
4334         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4335         through to builtin_type_uint128.
4336
4337         * c-exp.y: Use builtin_type function to obtain builtin types.
4338
4339         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4340         builtin_uint128.
4341         * gdbtypes.c (gdbtypes_post_init): Update.
4342         (build_gdbtypes): Move initialization of builtin_type_int0
4343         through to builtin_type_uint128 from here ...
4344         (_initialize_gdbtypes): ... to here.
4345         * d10v-tdep.c (d10v_register_type): Update.
4346
4347         * doublest.c: Update copyright.
4348         (floatformat_from_length): Call error when floatformat is NULL.
4349         (extract_floating_by_length): Remove NULL fmt check.
4350         (store_floating_by_length): Ditto.
4351
4352 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4353
4354         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4355         that the register is valid.
4356
4357 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
4358
4359         * i386-linux-tdep.c (i386_linux_sigtramp_start)
4360         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4361         struct frame_info *.  Use safe_frame_unwind_memory instead of
4362         deprecated_read_memory_nobpt.
4363         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4364         changed signature of i386_linux_sigtramp_start and
4365         i386_linux_rt_sigtramp_start.
4366
4367         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4368         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
4369         instead of deprecated_read_memory_nobpt.
4370         (i386nbsd_sigtramp_p): Adjust for changed signature of
4371         i386nbsd_sigtramp_offset.
4372
4373         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4374         safe_frame_unwind_memory instead of target_read_memory.
4375
4376         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4377         !NO_SYS_FILE.
4378         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4379         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4380         (_initialize_kernel_u_addr): Remove prototype and function.
4381         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4382         !NO_SYS_FILE.
4383         * xcoffread.c: Likewise.
4384
4385 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
4386
4387         * vax-nat.c: New file.
4388         * vaxbsd-nat.c: Tweak comment.
4389         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4390         vaxnbsd-tdep.c.
4391         (vax-nat.o): New dependency.
4392         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4393         (vax-*-ultrix2*): Remove.
4394         * config/vax/vax.mh: New file.
4395         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4396         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4397         (vax_register_u_addr): New prototype.
4398         (REGISTER_U_ADDR): Define using vax_register_u_addr.
4399         * config/vax/vaxult2.mh: Remove file.
4400         * config/vax/vaxult.mh: Remove file.
4401         * config/vax/vaxbsd.mh: Remove file.
4402         * config/vax/vax.mt (TM_FILE): Remove.
4403         * config/vax/tm-vaxbsd.h: Remove file.
4404
4405 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
4406
4407         * aix-thread.c (get_signaled_thread): New function.
4408         (iter_trap): Delete, no longer used.
4409         (iter_tid): New function.
4410         (pd_update): Find the thread that received the SIGTRAP signal
4411         by first locating the kernel thread, and then finding its
4412         associated thread.
4413
4414 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
4415
4416         * lin-lwp.c (child_wait): Continue inferior after processing
4417         PTRACE_EVENT_CLONE event.
4418
4419 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
4420
4421         * MAINTAINERS: Add self to Write-After-Approval.
4422
4423 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
4424
4425         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4426         libunwind-xxxx.so" where xxxx is UNW_TARGET.
4427
4428 2004-08-05  Andrew Cagney  <cagney@gnu.org>
4429
4430         * config/xm-sysv4.h: Delete file.
4431         * config/mips/xm-irix5.h: Delete file.
4432         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4433         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4434         * config/ia64/xm-aix.h: Delete file.
4435         * config/ia64/aix.mh (XM_FILE): Delete.
4436         * config/pa/xm-hppah.h: Delete file.
4437         * config/pa/hpux11w.mh (XM_FILE): Delete.
4438         * config/pa/hpux11.mh (XM_FILE): Delete.
4439         * config/pa/hpux1020.mh (XM_FILE): Delete.
4440         * config/pa/hppahpux.mh (XM_FILE): Delete.
4441
4442         * config/alpha/xm-alphalinux.h: Delete file.
4443         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4444         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4445         * config/alpha/xm-alphaosf.h: Delete file.
4446         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4447         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4448         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4449         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4450
4451         * config/i386/xm-i386v.h: Delete file.
4452         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4453         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4454         * config/i386/xm-i386sco.h: Delete file.
4455         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4456         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4457         * config/i386/xm-i386v4.h: Delete file.
4458         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4459         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4460         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4461         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4462
4463         * config/vax/xm-vax.h: Delete file.
4464         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4465         * config/vax/xm-vaxult2.h: Delete file.
4466         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4467         * config/vax/vaxult2.mh (XM_FILE): Delete.
4468         * config/vax/xm-vaxult.h: Delete file.
4469         * config/vax/vaxult.mh (XM_FILE): Delete.
4470         * config/vax/xm-vaxbsd.h: Delete file.
4471         * config/vax/vaxbsd.mh (XM_FILE): Delete.
4472
4473         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4474         * gdbarch.h, gdbarch.c: Re-generate.
4475         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4476         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4477         * frame.h: Delete deprecated_read_fp from comments.
4478         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4479         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4480
4481 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
4482
4483         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4484         trampoline in OpenBSD 3.5-current.
4485
4486         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4487         SSE registers.
4488
4489         * Makefile.in: Remove embedded page breaks.
4490
4491 2004-08-04  Jim Blandy  <jimb@redhat.com>
4492
4493         * regcache.c (regcache_raw_read): Assert that, after calling
4494         target_fetch_registers, the register we're reading is cached.
4495
4496         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4497         a call to 'internal_error', with a more helpful error message.
4498         * rs6000-tdep.c (e500_pseudo_register_read,
4499         e500_pseudo_register_write, rs6000_store_return_value): Same.
4500
4501 2004-08-04  Andrew Cagney  <cagney@gnu.org>
4502
4503         * Makefile.in: Update dependencies.
4504
4505 2004-08-04  Jim Blandy  <jimb@redhat.com>
4506
4507         Change the layout of the PowerPC E500 raw register cache to allow
4508         the lower 32-bit halves of the GPRS to be their own raw registers,
4509         not pseudoregisters.
4510         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4511         add ppc_ev0_upper_regnum flag.
4512         * rs6000-tdep.c: #include "reggroups.h".
4513         (spe_register_p): Recognize the ev upper half registers as SPE
4514         registers.
4515         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4516         registers.
4517         (e500_move_ev_register): New function.
4518         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4519         vector registers are the pseudo-registers now, formed by splicing
4520         together the gprs and the upper-half registers.
4521         (e500_register_reggroup_p): New function.
4522         (P): Macro deleted.
4523         (P8, A4): New macro.
4524         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4525         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4526         macros.
4527         (registers_e500): Rearrange register set so that the raw register
4528         set contains 32-bit GPRs and upper-half registers, and the SPE
4529         vector registers become pseudo-registers.
4530         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4531         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
4532         register numbers are now the same for the E500 as they are for
4533         other PowerPC variants.  Register e500_register_reggroup_p as the
4534         register group function for the E500.
4535         * Makefile.in (rs6000-tdep.o): Update dependencies.
4536
4537         Adapt PPC E500 native support to the new raw regcache layout.
4538         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4539         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4540         (fetch_spe_register, store_spe_register): Handle fetching/storing
4541         all the SPE registers at once, if regno == -1.  These now take
4542         over the job of fetch_spe_registers and store_spe_registers.
4543         (fetch_spe_registers, store_spe_registers): Deleted.
4544         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4545         unconditionally; they're always raw.  Fetch/store SPE upper half
4546         registers, if present, instead of ev registers.
4547         (fetch_register, store_register): Remove sanity checks: gprs are
4548         never pseudo-registers now, so we never need to even mention any
4549         registers that are ever pseudoregisters.
4550
4551         Use a fixed register numbering when communicating with the PowerPC
4552         simulator.
4553         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4554         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4555         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
4556         New functions.
4557         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
4558         init_sim_regno_table.
4559         * Makefile.in (gdb_sim_ppc_h): New variable.
4560         (rs6000-tdep.o): Update dependencies.
4561
4562 2004-08-02  Andrew Cagney  <cagney@gnu.org>
4563
4564         * cris-tdep.c (cris_register_size): Restore function, still used
4565         locally.
4566
4567         * gdbarch.sh (deprecated_target_read_fp)
4568         (deprecated_frame_locals_address, deprecated_frame_args_address)
4569         (deprecated_frame_chain_valid, deprecated_frame_chain)
4570         (deprecated_init_extra_frame_info, deprecated_pop_frame)
4571         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4572         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4573         * gdbarch.h, gdbarch.c: Re-generate.
4574         * regcache.c (deprecated_read_fp): Do not call
4575         DEPRECATED_TARGET_READ_FP_P.
4576         * infcmd.c (default_print_registers_info): Do not call
4577         DEPRECATED_DO_REGISTERS_INFO.
4578         * frame-base.c (default_frame_locals_address): Do not call
4579         DEPRECATED_FRAME_LOCALS_ADDRESS.
4580         (default_frame_args_address): Do not call
4581         DEPRECATED_FRAME_ARGS_ADDRESS.
4582
4583         * gdbarch.sh (deprecated_register_raw_size)
4584         (deprecated_register_virtual_size:int): Delete.
4585         * gdbarch.h, gdbarch.c: Re-generate.
4586         * cris-tdep.c (cris_register_size): Delete.
4587         (cris_gdbarch_init): Update.
4588         * alpha-tdep.c (alpha_register_raw_size)
4589         (alpha_register_virtual_size): Delete.
4590         (alpha_gdbarch_init): Update.
4591
4592         * gdbarch.sh (deprecated_register_virtual_type)
4593         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4594         (deprecated_dummy_write_sp): Delete.
4595         * gdbarch.h, gdbarch.c: Re-generate.
4596
4597         * gdbarch.sh (deprecated_register_bytes): Delete.
4598         * gdbarch.h, gdbarch.c: Re-generate.
4599         * regcache.c (deprecated_register_bytes): New function.
4600         * regcache.h (deprecated_register_bytes): Declare.
4601         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4602         * v850-tdep.c (v850_gdbarch_init): Update.
4603         * sh64-tdep.c (sh64_gdbarch_init): Update.
4604         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4605         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4606         * mcore-tdep.c (mcore_gdbarch_init): Update.
4607         * cris-tdep.c (cris_gdbarch_init): Update.
4608         * arm-tdep.c (arm_gdbarch_init): Update.
4609         * remote.c (init_remote_state): Update.
4610         * remote-vx.c (vx_prepare_to_store): Update.
4611         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4612         * irix5-nat.c (fetch_core_registers): Update.
4613         * cris-tdep.c (cris_register_bytes_ok): Update.
4614         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4615
4616         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4617         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4618         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4619         (mips_insn16_frame_base_address, mips_insn16_frame_base)
4620         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4621         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4622         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4623         (mips_insn32_frame_base_address, mips_insn32_frame_base)
4624         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4625         with mips_insn16 and mips_insn32.
4626
4627         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4628         * rs6000-tdep.c (rs6000_push_dummy_call)
4629         (rs6000_extract_return_value): Use register_size.
4630         * xstormy16-tdep.c (xstormy16_get_saved_register) 
4631         (xstormy16_extract_return_value): Ditto.
4632         * valops.c (value_assign): Ditto.
4633         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
4634         * v850-tdep.c (v850_extract_return_value): Ditto.
4635         * tracepoint.c (collect_symbol): Ditto.
4636         * target.c (debug_print_register): Ditto.
4637         * stack.c (frame_info): Ditto.
4638         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4639         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4640         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4641         (store_register_using_P): Ditto.
4642         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4643         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4644         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4645         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4646         * regcache.c (deprecated_read_register_bytes) 
4647         (deprecated_write_register_bytes, read_register) 
4648         (write_register): Ditto.
4649         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4650         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4651         * monitor.c (monitor_supply_register, monitor_fetch_register) 
4652         (monitor_store_register): Ditto.
4653         * mn10300-tdep.c (mn10300_pop_frame_regular) 
4654         (mn10300_print_register): Ditto.
4655         * mipsv4-nat.c (fill_fpregset): Ditto.
4656         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
4657         (mips64_fill_fpregset): Ditto.
4658         * mi/mi-main.c (register_changed_p, get_register)
4659         (mi_cmd_data_write_register_values): Ditto.
4660         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
4661         * irix5-nat.c (fill_gregset, fetch_core_registers): 
4662         * infrun.c (write_inferior_status_register): Ditto.
4663         * infptrace.c (fetch_register, store_register): Ditto.
4664         * infcmd.c (default_print_registers_info): Ditto.
4665         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4666         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4667         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4668         * hpux-thread.c (hpux_thread_fetch_registers)
4669         (hpux_thread_store_registers): Ditto.
4670         * hppah-nat.c (store_inferior_registers, fetch_register): 
4671         * findvar.c (value_from_register): Ditto.
4672         * dve3900-rom.c (fetch_bitmapped_register): 
4673         * cris-tdep.c (cris_gdbarch_init): Ditto.
4674         * alpha-tdep.h: Ditto.
4675         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4676
4677         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4678         DEPRECATED_REGISTER_RAW_SIZE from comments.
4679         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4680         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4681         DEPRECATED_REGISTER_RAW_SIZE.
4682         * findvar.c (value_of_register): Simplify by assuming that the
4683         registers raw and virtual sizes are identical.
4684         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4685         comment.
4686         * arch-utils.c (generic_register_size): Simplify by assuming
4687         register_type.
4688
4689         * regcache.c (legacy_read_register_gen, real_register) 
4690         (legacy_write_register_gen): Delete, not used.
4691
4692         * regcache.c (struct regcache_descr): Delete legacy_p.
4693         (init_legacy_regcache_descr): Delete function.
4694         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4695         Do not use deprecated register functions.
4696         (regcache_raw_read, deprecated_write_register_gen):
4697         (deprecated_read_register_gen, regcache_raw_write): Delete code
4698         predicated on legacy_p.
4699         (register_size): Delete check against register raw size.
4700
4701         * cris-tdep.c (cris_register_type): Replace
4702         cris_register_virtual_type.
4703         (cris_gdbarch_init): Update, set register_type.
4704
4705         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4706         * gdbarch.h, gdbarch.c: Re-generate.
4707         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
4708         (arm_gdbarch_init) Do not set frameless function invocation.
4709         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4710         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4711         * frv-tdep.c (frv_frameless_function_invocation): Delete.
4712         (frv_gdbarch_init): Do not set frameless function invocation.
4713         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4714         * sh-tdep.c (sh_gdbarch_init): Ditto.
4715         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4716         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4717         * avr-tdep.c (avr_gdbarch_init): Ditto.
4718
4719         * blockframe.c (legacy_frame_chain_valid): Delete function.
4720
4721         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4722         and pc.  Update comments.
4723         (pc_in_dummy_frame): Delete function.
4724         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4725         use the "id".
4726         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4727         call_hi, top and pc, use the id.
4728         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4729
4730         * dummy-frame.c: Include "gdb_string.h".
4731         (generic_save_call_dummy_addr, generic_push_dummy_frame)
4732         (generic_save_dummy_frame_tos): Delete.
4733         (dummy_frame_push): New function, replaces above.
4734         * dummy-frame.h: Update copyright.
4735         (dummy_frame_push): Declare.
4736         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4737         (generic_save_call_dummy_addr): Delete declarations.
4738         * infcall.c: Include "dummy-frame.h".
4739         (call_function_by_hand): Add locals caller_regcache,
4740         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
4741         with call to frame_save_as_regcache plus cleanup.  Delete calls to
4742         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4743         Move clear_proceed_status to just before the resume, add call to
4744         dummy_frame_push (discard cleanup).
4745         * Makefile.in (infcall.o): Add $(dummy_frame_h).
4746         (dummy-frame.o): Add $(gdb_string_h).
4747
4748 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4749
4750         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4751         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4752         * dummy-frame.c (find_dummy_frame): Delete.
4753         (struct dummy_frame_cache, dummy_frame_sniffer)
4754         (dummy_frame_prev_register, dummy_frame_this_id)
4755         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4756         frame unwinder using a dummy_frame_cache.
4757
4758 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4759
4760         * frame.h (frame_save_as_regcache): Declare.
4761         * frame.c (frame_save_as_regcache): New function.
4762         (do_frame_read_register): Replace do_frame_unwind_register.
4763         (frame_pop): Use frame_save_as_regcache.
4764         * dummy-frame.c (generic_push_dummy_frame): Use
4765         frame_save_as_regcache.
4766
4767 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
4768
4769         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4770         file as included until we record the first line in the linetable.
4771
4772 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4773
4774         * frame.h (deprecated_pop_dummy_frame)
4775         (deprecated_read_register_dummy)
4776         (deprecated_generic_find_dummy_frame): Delete.
4777         * dummy-frame.c (deprecated_generic_find_dummy_frame)
4778         (deprecated_read_register_dummy)
4779         (deprecated_find_dummy_frame_regcache)
4780         (discard_innermost_dummy)
4781         (deprecated_pop_dummy_frame): Delete.
4782         (dummy_frame_this_id): Simplify.
4783         (struct dummy_frame): Delete "fp" and "sp".
4784         (find_dummy_frame): Simplify.
4785         (generic_push_dummy_frame): Do not set "fp" or "sp".
4786         (fprint_dummy_frames): Do not print "fp" and "sp"
4787
4788 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
4789
4790         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4791         (struct i386_insn): New structure.
4792         (i386_match_insn): New function.
4793         (i386_frame_setup_skip_insns): New variable.
4794         (i386_analyze_frame_setup): Change to use i386_match_insn and the
4795         array i386_frame_setup_insns of instructions that should be
4796         skipped inside the frame setup sequence.
4797
4798 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4799
4800         * frame.h (deprecated_frame_xmalloc_with_cleanup)
4801         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4802         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4803         * stack.c (frame_info): Delete references to
4804         DEPRECATED_FRAME_INIT_SAVED_REGS and
4805         deprecated_get_frame_saved_regs.
4806         * frame.c (struct frame_info): Delete saved_regs and extra_info.
4807         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4808         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4809         (frame_unwind_register_signed)
4810         (frame_unwind_register_unsigned)
4811         (frame_unwind_unsigned_register): Use register_size.
4812         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4813         (deprecated_frame_xmalloc_with_cleanup)
4814         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4815         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4816
4817         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4818         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4819         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4820         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4821
4822         * infcall.c (call_function_by_hand): Do not use
4823         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4824         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4825         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4826         DEPRECATED_STACK_ALIGN.
4827
4828 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4829
4830         Committed by Andrew Cagney.
4831         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4832
4833 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4834
4835         * mips-tdep.c (mips16_frame_cache)
4836         (mips16_frame_this_id, mips16_frame_prev_register)
4837         (mips16_frame_unwind, mips16_frame_sniffer)
4838         (mips16_frame_base_address, mips16_frame_base)
4839         (mips16_frame_base_sniffer, mips32_frame_cache)
4840         (mips32_frame_this_id, mips32_frame_prev_register)
4841         (mips32_frame_unwind, mips32_frame_sniffer)
4842         (mips32_frame_base_address, mips32_frame_base)
4843         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4844         separate heuristic mips16 and mips32 unwinders.
4845         (mips_stub_frame_cache, mips_stub_frame_this_id)
4846         (mips_stub_frame_prev_register)
4847         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4848         (mips_stub_frame_base_address, mips_stub_frame_base)
4849         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4850         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4851         match true mdebug frames.
4852         (non_heuristic_proc_desc): Add forward declaration.
4853
4854 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4855
4856         * config/mips/tm-irix6.h: Delete file.
4857         * config/mips/tm-irix5.h: Delete file.
4858         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4859         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4860
4861         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4862         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4863         * config/nm-gnu.h (NO_CORE_OPS): Delete.
4864         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4865         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4866         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4867         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4868         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4869         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4870         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4871         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4872         (TARGET_SIGNAL_RAW_VALUES): Delete.
4873         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4874         Delete.
4875         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
4876         (TARGET_HW_WATCH_LIMIT): Delete.
4877         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4878         * minimon.h: Delete file.
4879
4880         * trad-frame.c (trad_frame_get_this_base)
4881         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4882         functions.
4883         * trad-frame.h (trad_frame_set_this_base)
4884         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4885
4886 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4887
4888         * trad-frame.c (trad_frame_get_prev_register): Rename
4889         trad_frame_get_prev_register.
4890         * vax-tdep.c (vax_frame_prev_register): Update.
4891         * trad-frame.h: Update.
4892         * trad-frame.c (trad_frame_get_register): Update.
4893         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4894         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4895         Update.
4896         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4897         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4898         Update.
4899         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4900         Update.
4901         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4902         Update.
4903         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4904         Update.
4905         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4906         Update.
4907         * s390-tdep.c (s390_frame_prev_register) 
4908         (s390_stub_frame_prev_register) 
4909         (s390_sigtramp_frame_prev_register): Update.
4910         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4911         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4912         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4913         * m88k-tdep.c (m88k_frame_prev_register) 
4914         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
4915         * m32r-tdep.c (m32r_frame_prev_register): Update.
4916         * hppa-tdep.c (hppa_frame_prev_register_helper) 
4917         * frv-tdep.c (frv_frame_prev_register): Update.
4918         * d10v-tdep.c (d10v_frame_prev_register): Update.
4919         * cris-tdep.c (cris_frame_prev_register): Update.
4920         * avr-tdep.c (avr_frame_prev_register): Update.
4921         * arm-tdep.c (arm_prologue_prev_register) 
4922         (arm_sigtramp_prev_register): Update.
4923
4924 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4925
4926         * frame.h (legacy_saved_regs_unwind)
4927         (legacy_frame_chain_valid, legacy_frame_p)
4928         (enum frame_type): Delete UNKNOWN_FRAME.
4929         * dummy-frame.c (dummy_frame_this_id): Simplify.
4930         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4931         * frame.c (struct frame_info): Delete the field "type".
4932         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4933         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4934         (legacy_saved_regs_unwind, legacy_frame_p)
4935         (frame_type_from_pc): Delete.
4936         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4937         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4938
4939 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
4940
4941         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4942         indentation.
4943
4944         * mips-nat.c: Remove file.
4945         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4946         (mips-nat.o): Remove dependency.
4947
4948         * infptrace.c: Update copyright year.
4949         (fetch_register): Pass NULL in regcache_raw_supply call instead of
4950         explicitly setting the buffer to all zeroes.
4951
4952         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4953         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4954
4955 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4956
4957         * GDB 6.2 released from gdb_6_2-branch.
4958
4959 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
4960
4961         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4962
4963         * exec.c (exec_file_attach):
4964         * nto-tdep.c (nto_find_and_open_solib):
4965         * pa64solib.c (pa64_solib_sizeof_symbol_table):
4966         * solib.c (solib_open):
4967         * somsolib.c (som_solib_sizeof_symbol_table):
4968         * source.c (is_regular_file, openp, open_source_file):
4969         * symfile.c (symfile_bfd_open):
4970         * wince.c (upload_to_device): Differentiate between the search for
4971         binary and source files.
4972
4973 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4974
4975         * complaints.c (_initialize_complaints): Pass NULL to
4976         add_setshow_zinteger_cmd for help_doc.
4977         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4978
4979 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4980
4981         Fix PR i18n/761.
4982         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4983         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4984         $(PACKAGE).pot and update-po.
4985         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4986         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4987         (update-po): New rules.
4988         (localedir): Define using autoconf.
4989         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4990         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4991         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4992         * configure.in: Generate CATALOGS and LINGUAS from contents of
4993         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
4994         * configure: Re-generate.
4995         * po/gdbtext: New file
4996         
4997 2004-07-30  Jerome Guitton  <guitton@gnat.com>
4998
4999         * MAINTAINERS: Reorder Write After Approval list in alphabetical
5000         order.
5001
5002 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
5003
5004         * dwarf2read.c (read_file_scope): Set producer if attribute 
5005         present.
5006         (struct dwarf2_cu): Added new member producer.
5007
5008 2004-07-30  Jerome Guitton  <guitton@gnat.com>
5009
5010         * inflow.c (kill_command): release file handles in BFD.
5011         * exec.c (exec_file_attach): Ditto.
5012         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5013
5014 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5015
5016         * PROBLEMS (mips-irix): Note that it is broken.
5017
5018 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5019
5020         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5021         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5022
5023         * config/xm-nbsd.h: Delete file.
5024         * config/arm/xm-nbsd.h: Delete file.
5025         * config/i386/xm-nbsd.h: Delete file.
5026         * config/ns32k/xm-nbsd.h: Delete file.
5027         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5028         * config/i386/nbsdelf.mh (XM_FILE): Delete.
5029         * config/i386/nbsdaout.mh (XM_FILE): Delete.
5030         * config/arm/nbsdelf.mh (XM_FILE): Delete.
5031         * config/arm/nbsdaout.mh (XM_FILE): Delete.
5032
5033         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5034         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5035         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5036         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5037         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5038         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5039
5040         * config/powerpc/xm-linux.h: Delete empty file.
5041         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5042         * config/powerpc/linux.mh (XM_FILE): Delete.
5043         * config/m68k/xm-linux.h: Delete empty file.
5044         * config/m68k/linux.mh (XM_FILE): Delete.
5045         * config/ia64/xm-linux.h: Delete empty file.
5046         * config/ia64/linux.mh (XM_FILE): Delete.
5047         * config/arm/xm-linux.h: Delete empty file.
5048         * config/arm/linux.mh (XM_FILE): Delete.
5049         
5050         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5051         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5052         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5053         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5054         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5055         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5056         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5057         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5058
5059         * config/m68k/xm-m68k.h: Delete file.
5060         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
5061         copyright.
5062         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5063         * config/pa/xm-linux.h: Delete empty file.
5064         * config/pa/linux.mh (XM_FILE): Delete.
5065         * config/i386/xm-i386.h: Delete empty file.
5066         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5067         "i386/xm-i386.h".
5068         * config/i386/obsdaout.mh (XM_FILE): Delete.
5069         * config/i386/obsd64.mh (XM_FILE): Delete.
5070         * config/i386/fbsd64.mh (XM_FILE): Delete.
5071         * config/i386/nto.mh (XM_FILE): Delete.
5072         * config/i386/obsd.mh (XM_FILE): Delete.
5073         * config/i386/linux64.mh (XM_FILE): Delete.
5074         * config/i386/linux.mh (XM_FILE): Delete.
5075         * config/i386/i386sol2.mh (XM_FILE): Delete.
5076         * config/i386/i386gnu.mh (XM_FILE): Delete.
5077         * config/i386/fbsd.mh (XM_FILE): Delete.
5078         * config/i386/nbsd64.mh (XM_FILE): Delete.
5079
5080 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5081
5082         * config/pa/xm-linux.h: Do not include "floatformat.h".
5083         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5084         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5085         * config/i386/xm-i386.h: Do not include "floatformat.h".
5086         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
5087         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5088         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5089         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
5090         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5091         GDB_HOST_LONG_DOUBLE_FORMAT instead.
5092         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5093         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5094         * configure, config.in: Regenerate.     
5095         * configure.host (gdb_host_float_format, gdb_host_double_format)
5096         (gdb_host_long_double_format): Set according to the host.
5097         
5098 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5099
5100         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5101
5102 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5103
5104         * PROBLEMS: Mention threads/1650.
5105         * NEWS: Mention the NPTL fix.
5106
5107 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5108
5109         * cli/cli-decode.c (add_setshow_cmd): Delete function.
5110         (add_setshow_cmd_full): Make static.
5111         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5112         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5113         * cli/cli-decode.c (add_setshow_filename_cmd) 
5114         (add_setshow_string_cmd): New functions.
5115         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
5116         * mips-tdep.c (_initialize_mips_tdep): Update.
5117         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
5118         * cli/cli-logging.c (_initialize_cli_logging): Update.
5119         * complaints.c (_initialize_complaints): Update.
5120         * remote.c (_initialize_remote): Update.
5121         
5122 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5123
5124         * cli/cli-decode.c (add_setshow_zinteger_cmd)
5125         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5126         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5127         print parameters.  Make string parameters constant.
5128         * command.h: Update.  Update copyright.
5129         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5130         * observer.c (_initialize_observer): Ditto.
5131         * frame.c (_initialize_frame): Ditto.
5132         * complaints.c (_initialize_complaints): Ditto.
5133         * maint.c (_initialize_maint_cmds): Ditto.
5134         * target.c (initialize_targets): Ditto.
5135         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5136         * infcall.c (_initialize_infcall): Ditto.
5137         * arm-tdep.c (_initialize_arm_tdep): Ditto.
5138         * m32r-rom.c (_initialize_m32r_rom): Ditto.
5139         * remote-rdi.c (_initialize_remote_rdi): Ditto.
5140         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5141         * mips-tdep.c (_initialize_mips_tdep): Ditto.
5142
5143 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5144
5145         * gdbtypes.c (lookup_primitive_typename): Delete function.
5146         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5147         * ada-lex.l: Use language_lookup_primitive_type_by_name.
5148         * gdbtypes.c (lookup_typename): Ditto.
5149         * f-exp.y (yylex): Ditto.
5150         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5151
5152         * scm-lang.c (c_builtin_types): Delete extern declaration.
5153         (scm_language_defn): Replace
5154         string_char_type and primitive_type_vector with
5155         la_language_arch_info.
5156         * jv-lang.c (java_language_defn): Replace
5157         string_char_type and primitive_type_vector with
5158         la_language_arch_info.
5159         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5160         c_builtin_types in comment.
5161         * c-lang.h (struct language_arch_info): Declare opaque.
5162         (c_language_arch_info): Declare.
5163         (c_builtin_types): Delete declaration.
5164         * c-lang.c (c_language_arch_info): Set string_char_type to
5165         builtin_char, not builtin_true_char.  Make global.
5166         (c_builtin_types): Delete array.
5167         (asm_language_defn, minimal_language_defn): Replace
5168         string_char_type and primitive_type_vector with
5169         la_language_arch_info.
5170
5171 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5172
5173         * gdbtypes.h (struct builtin_type): Rename true_char to
5174         builtin_true_char.
5175         * gdbtypes.c (gdbtypes_post_init): Update.
5176         * c-lang.c (arch_info): New function.
5177         (enum c_primitive_types): New enum.
5178         (c_language_defn): Instead of string_char_type and
5179         primitive_type_vector set la_language_arch_info.
5180
5181 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5182
5183         * language.h (struct language_arch_info): Fix typo
5184         s/primative/primitive/.
5185         * gdbtypes.c (lookup_primitive_typename): Ditto.
5186         * language.c (language_lookup_primitive_type_by_name)
5187         (unknown_language_arch_info): Ditto.
5188
5189 2004-07-27  Andrew Cagney  <cagney@gnu.org>
5190
5191         * defs.h (enum language): Add nr_languages.
5192         * language.h (struct language_arch_info): Define.
5193         (struct language_defn): Add la_language_arch_info.
5194         (language_lookup_primative_type_by_name): Declare.
5195         (language_string_char_type): Declare.
5196         * language.c (_initialize_language, language_gdbarch_post_init)
5197         (struct language_gdbarch, language_gdbarch_data): Implement
5198         per-architecture language information.
5199         (unknown_language_arch_info, language_string_char_type)
5200         (language_lookup_primative_type_by_name): New functions.
5201         (unknown_language_defn, auto_language_defn)
5202         (local_language_defn): Set la_language_arch_info to
5203         unknown_language_arch_info.
5204         (unknown_builtin_types): Delete.
5205         * gdbtypes.c (lookup_primitive_typename): Use
5206         language_lookup_primative_type_by_name.
5207         (create_string_type): Use language_string_char_type.
5208         * values.c (value_from_string): Use language_string_char_type.
5209         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5210         * p-lang.c (pascal_language_defn): Ditto.
5211         * m2-lang.c (m2_language_defn): Ditto.
5212         * jv-lang.c (java_language_defn): Ditto.
5213         * objc-lang.c (objc_language_defn): Ditto.
5214         * f-lang.c (f_language_defn): Ditto.
5215         * c-lang.c (c_language_defn, cplus_language_defn) 
5216         (asm_language_defn, minimal_language_defn): Ditto.
5217         
5218 2004-07-27  Andrew Cagney  <cagney@gnu.org>
5219
5220         * gdbtypes.h (struct builtin_type): Declare.
5221         (builtin_type): Declare.
5222         * d10v-tdep.c (d10v_register_type): Use builtin_type.
5223         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5224         (gdbtypes_post_init): New function.
5225         (builtin_type): New function.
5226
5227 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
5228
5229         * remote-m32r-sdi.c: Fix breakpoint bug.
5230         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5231         recv_char_data, recv_long_data): New functions to replace communication
5232         sequences.
5233
5234 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
5235
5236         Document PR threads/1650.
5237         * PROBLEMS (Threads): Document problem with many threads
5238
5239 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5240
5241         * gdb-mi.el: Move from here ...
5242         * mi/gdb-mi.el: ... to here.
5243
5244 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5245
5246         Problem reported by Ashley Pittman <ashley@quadrics.com>.
5247         * main.c (captured_main): When in batch mode always detach.
5248
5249 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5250
5251         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5252         and h8300 as broken.
5253         * NEWS: END-OF-LIFE frame compatibility module.
5254         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5255         specific comments.
5256
5257 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5258
5259         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5260         * xcoffsolib.c (_initialize_xcoffsolib): Update.
5261         * wince.c (_initialize_wince): Update.
5262         * win32-nat.c (_initialize_win32_nat): Update.
5263         * varobj.c (_initialize_varobj): Update.
5264         * valops.c (_initialize_valops): Update.
5265         * utils.c (initialize_utils, initialize_utils): Update.
5266         * tui/tui-win.c (_initialize_tui_win): Update.
5267         * top.c (init_main): Update.
5268         * symfile.c (_initialize_symfile): Update.
5269         * source.c (_initialize_source): Update.
5270         * somsolib.c (_initialize_som_solib): Update.
5271         * solib.c (_initialize_solib): Update.
5272         * solib-frv.c (_initialize_frv_solib): Update.
5273         * serial.c (_initialize_serial): Update.
5274         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5275         * remote.c (_initialize_remote, _initialize_remote): Update.
5276         * remote-vx.c (_initialize_vx): Update.
5277         * remote-utils.c (_initialize_sr_support): Update.
5278         * remote-sds.c (_initialize_remote_sds): Update.
5279         * remote-mips.c (_initialize_remote_mips): Update.
5280         * remote-e7000.c (_initialize_remote_e7000): Update.
5281         * proc-api.c (_initialize_proc_api): Update.
5282         * printcmd.c: Update.
5283         * parse.c (_initialize_parse): Update.
5284         * pa64solib.c (_initialize_pa64_solib): Update.
5285         * p-valprint.c (_initialize_pascal_valprint): Update.
5286         * monitor.c (_initialize_remote_monitors): Update.
5287         * mips-tdep.c (_initialize_mips_tdep): Update.
5288         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5289         * maint.c (_initialize_maint_cmds): Update.
5290         * lin-lwp.c (_initialize_lin_lwp): Update.
5291         * language.c (_initialize_language): Update.
5292         * kod.c (_initialize_kod): Update.
5293         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5294         * i386-tdep.c (_initialize_i386_tdep): Update.
5295         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5296         * gdbarch.sh: Update.
5297         * gdbarch.c: Re-generate.
5298         * gdb-events.sh: Update.
5299         * gdb-events.c: Re-generate.
5300         * frame.c (_initialize_frame): Update.
5301         * exec.c: Update.
5302         * demangle.c (_initialize_demangler): Update.
5303         * dcache.c (_initialize_dcache): Update.
5304         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5305         * cp-valprint.c (_initialize_cp_valprint): Update.
5306         * corefile.c (_initialize_core): Update.
5307         * command.h: Update.
5308         * cli/cli-decode.h: Update.
5309         * cli/cli-cmds.c (init_cli_cmds): Update.
5310         * charset.c (_initialize_charset): Update.
5311         * breakpoint.c (_initialize_breakpoint): Update.
5312         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5313         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5314         * aix-thread.c (_initialize_aix_thread): Update.
5315
5316 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5317
5318         Partial fix for PR backtrace/1718.
5319         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5320         that GCC migrates into the prolugue.  Don't handle any
5321         instructions that clobber %ebx.
5322
5323 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5324
5325         Use regcache_raw_collect instead of regcache_collect.
5326         * regcache.h (regcache_collect): Delete declaration.
5327         * regcache.c (regcache_colect): Delete function.
5328         * win32-nat.c (do_child_store_inferior_registers): Update.
5329         * sol-thread.c (sol_thread_store_registers): Update.
5330         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5331         * rs6000-nat.c (store_register): Update.
5332         * remote.c (store_register_using_P, remote_store_registers): Update.
5333         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5334         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
5335         (fill_vrregset, store_spe_registers, fill_gregset)
5336         (fill_gregset): Update.
5337         * nto-procfs.c (procfs_store_registers): Update.
5338         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5339         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5340         * m68klinux-nat.c (store_register, fill_gregset): Update.
5341         * m68k-tdep.c (fill_gregset): Update.
5342         * infptrace.c (store_register): Update.
5343         * i386-nto-tdep.c (i386nto_regset_fill): Update.
5344         * i386-linux-nat.c (store_register, fill_gregset): Update.
5345         * hppa-linux-nat.c (fill_gregset): Update.
5346         * go32-nat.c (store_register): Update.
5347         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5348         (store_fp_regs): Update.
5349         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
5350         (store_nwfpe_extended, store_fpregister, store_fpregs) 
5351         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5352         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5353         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5354         (store_regs_user_thread, store_regs_kernel_thread): Update.
5355
5356 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5357
5358         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5359         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5360         encoding.
5361         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5362         member of `struct comp_unit'.
5363
5364 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5365
5366         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5367         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5368
5369 2004-07-23  Martin Hunt  <hunt@redhat.com>
5370         Kevin Buettner <kevinb@redhat.com>
5371
5372         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5373         alignment was being added to the offset instead of multiplied.
5374
5375 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
5376
5377         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5378         changed signal trampoline in OpenBSD 3.5-current.
5379
5380         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5381         <machine/pcb.h> and "bsd-kvm.h".
5382         (sparc64nbsd_supply_pcb): New function.
5383         (_initialize_sparc64nbsd_nat): Renamed from
5384         _initialize_sparcnbsd_nat.  Enable libkvm interface.
5385         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5386         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5387         (LOADLIBES): New variable.
5388
5389         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5390
5391         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5392
5393 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5394
5395         Use regcache_raw_supply instead of supply_register.
5396         * regcache.h (supply_register): Delete declaration.
5397         * regcache.c (supply_register): Delete function.
5398         * wince.c (do_child_fetch_inferior_registers): Update.
5399         * win32-nat.c (do_child_fetch_inferior_registers) 
5400         (fetch_elf_core_registers): Update.
5401         * v850ice.c (v850ice_fetch_registers): Update.
5402         * thread-db.c (thread_db_store_registers): Update.
5403         * sol-thread.c (sol_thread_store_registers): Update.
5404         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5405         * rs6000-nat.c (fetch_register): Update.
5406         * rom68k-rom.c (rom68k_supply_one_register): Update.
5407         * remote.c (remote_wait, remote_async_wait): Update.
5408         * remote-st.c (get_hex_regs): Update.
5409         * remote-sim.c (gdbsim_fetch_register): Update.
5410         * remote-sds.c (sds_fetch_registers): Update.
5411         * remote-rdp.c (remote_rdp_fetch_register): Update.
5412         * remote-rdi.c (arm_rdi_fetch_registers): Update.
5413         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5414         * remote-m32r-sdi.c (m32r_fetch_register): Update.
5415         * remote-hms.c (init_hms_cmds): Update.
5416         * remote-est.c (init_est_cmds): Update.
5417         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
5418         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5419         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5420         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
5421         (fetch_register, supply_vrregset, supply_vrregset)
5422         (fetch_spe_registers): Update.
5423         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5424         * monitor.c (monitor_supply_register): Update.
5425         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5426         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5427         (mipsnbsd_supply_fpreg): Update.
5428         * mips-nat.c (fetch_inferior_registers)
5429         (fetch_core_registers): Update.
5430         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
5431         (supply_fpregset, mips64_supply_gregset)
5432         (mips64_supply_fpregset): Update.
5433         * m68klinux-nat.c (fetch_register, supply_gregset)
5434         (supply_fpregset): Update.
5435         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5436         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5437         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5438         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5439         * infptrace.c (fetch_register): Update.
5440         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5441         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5442         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
5443         (gnu_fetch_registers, gnu_store_registers): Update.
5444         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5445         * i386-linux-nat.c (fetch_register, supply_gregset)
5446         (dummy_sse_values): Update.
5447         * hpux-thread.c (hpux_thread_fetch_registers): Update.
5448         * hppah-nat.c (fetch_register): Update.
5449         * hppa-linux-nat.c (fetch_register, supply_gregset) 
5450         (supply_fpregset): Update.
5451         * go32-nat.c (fetch_register): Update.
5452         * dve3900-rom.c (fetch_bitmapped_register)
5453         (_initialize_r3900_rom): Update.
5454         * cris-tdep.c (supply_gregset): Update.
5455         * abug-rom.c (init_abug_cmds): Update.
5456         * core-aout.c (fetch_core_registers): Update.
5457         * armnbsd-nat.c (supply_gregset, supply_fparegset)
5458         (fetch_register, fetch_fp_register): Update.
5459         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5460         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5461         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5462         * alphanbsd-tdep.c (fetch_core_registers): Update.
5463         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5464         * alpha-nat.c (fetch_osf_core_registers) 
5465         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5466         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
5467         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5468
5469 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5470
5471         * PROBLEMS: Mention breakpoints/1702.
5472         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5473         that is known to work.
5474
5475 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5476
5477         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5478         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5479         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5480         (handle_inferior_event): Wrap call to deprecated
5481         IGNORE_HELPER_CALL in #ifdef.
5482         * config/mips/tm-nbsd.h: Update.
5483
5484 2004-07-20  Jim Blandy  <jimb@redhat.com>
5485
5486         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5487         bfd_mach_ppc has no segment registers.
5488
5489         Include PowerPC SPR numbers for special-purpose registers.
5490         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5491         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5492         new member in initializer.
5493         (S, S4, SN4, S64): New macros for defining special-purpose
5494         registers.
5495         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5496         registers_403, registers_403GC, registers_505, registers_860,
5497         registers_601, registers_602, registers_603, registers_604,
5498         registers_750, registers_e500): Use them.
5499
5500         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5501         replace references with expression used to initialize variable.
5502
5503 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5504
5505         * breakpoint.c (deprecated_read_memory_nobpt): Rename
5506         read_memory_nobpt.
5507         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5508         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5509         (s390_sigtramp_frame_sniffer): Update.
5510         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5511         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5512         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
5513         (mips32_fetch_instruction): Update.
5514         * mcore-tdep.c (get_insn): Update.
5515         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5516         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5517         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5518         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
5519         (i386_linux_rt_sigtramp_start): Update.
5520         * i386-linux-nat.c (child_resume): Update.
5521         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5522         * hppa-linux-tdep.c (insns_match_pattern): Update.
5523         * gdbcore.h: Update.
5524         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5525         * frame.c (safe_frame_unwind_memory): Update.
5526         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5527         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5528         * alpha-tdep.c (alpha_read_insn): Update.
5529
5530 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5531
5532         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5533         containing both bytes and mask.  Add "frame_type".
5534         * tramp-frame.c (tramp_frame_start): Update.
5535         (tramp_frame_prepend_unwinder): Update.
5536         * mips-linux-tdep.c (mips_linux_o32_sigframe)
5537         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5538         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
5539         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5540
5541 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
5542
5543         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5544         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5545         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5546         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5547
5548 2004-07-17  Andrew Cagney  <cagney@gnu.org>
5549
5550         * NEWS, PROBLEMS: Update for 6.2.
5551
5552         * README: Update to 6.2.
5553
5554         * utils.c (xvasprintf): Call xstrvprintf.
5555
5556         * parse.c: Update copyright.
5557         (null_post_parser): Eliminate ARGSUSED.
5558
5559         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5560         * tui/tui-win.c (tui_get_cmd_list): Ditto.
5561         * symfile-mem.c (_initialize_symfile_mem): Ditto.
5562         
5563         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5564         * ppc-linux-nat.c: Use "Linux kernel".
5565         * hppa-linux-tdep.c: Use GNU/Linux.
5566         * hppa-linux-nat.c: Use GNU/Linux.
5567         * dwarfread.c: Add [sic] to use of Linux.
5568
5569         * hppa-linux-nat.c: Do not include <string.h>.
5570         (supply_fpregset): Remove "register" attribute.
5571
5572         * solib-frv.c (fetch_loadmap): Use xfree, not free.
5573
5574 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
5575
5576         * configure.in: Define _MSE_INT_H on Solaris 9 too.
5577         * configure, config.in: Regenerated.
5578
5579         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5580         "bsd-kvm.h".
5581         (vaxbsd_supply_pcb): New function.
5582         (_initialize_vaxbsd_nat): New prototype and function.
5583         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5584         solib-sunos.o.
5585         (LOADLIBES): New variable.
5586         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5587         (LOADLIBES): New variable.
5588         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5589         (LOADLIBES): New variable.
5590         * Makefile.in (vaxbsd-nat.o): Update dependencies.
5591
5592 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5593
5594         * defs.h (event_loop_p): Replace variable declaration with macro,
5595         always 1.
5596         * main.c (captured_main): Delete options "-async" and "-noasync".
5597         (event_loop_p): Delete variable.
5598         * NEWS: Mention that "-async" and "-noasync" were removed.
5599
5600 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5601
5602         * remote-m32r-sdi.c: Re-indent.
5603
5604 2004-07-16  Jim Blandy  <jimb@redhat.com>
5605
5606         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5607         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5608         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5609         missing MPC823 SPRs.
5610         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5611         incorrect.  (This was corrected in GDB's register name tables on
5612         2004-07-14.)
5613
5614         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5615         should be "esasrr" ("ESA Save and Restore Register").
5616
5617 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5618
5619         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5620         calls, no longer applicable.  Update comments and rename parameter
5621         "step_frame" to "return_frame".
5622
5623 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5624
5625         * frame.c (fprint_field): New function.
5626         (fprint_frame_id): Use fprint_field.
5627
5628 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
5629
5630         * ada-lang.c (ada_language_defn): Remove commented out code.
5631
5632 2004-07-15  Jim Blandy  <jimb@redhat.com>
5633
5634         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5635         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5636
5637 2004-07-14  Jim Blandy  <jimb@redhat.com>
5638
5639         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5640
5641         * ppc-tdep.h (ppc_num_vrs): New enum constant.
5642
5643         * ppc-tdep.h (ppc_num_srs): New enum constant.
5644
5645         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5646         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5647         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5648         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5649         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5650         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5651         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5652         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5653         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5654         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5655         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5656         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5657         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5658         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5659         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5660         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5661         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5662         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5663         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5664         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5665         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5666         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5667         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5668         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5669         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5670         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5671         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5672         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5673         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5674         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5675         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5676         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5677         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5678         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5679         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5680         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5681         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5682         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5683         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5684         special-purpose register numbers.
5685
5686         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
5687         manual mentions 'md_twb', but many mention 'm_twb', and at that
5688         point in the register list.)
5689
5690 2004-07-14  Andrew Cagney  <cagney@gnu.org>
5691
5692         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5693         instead of "internal-error".
5694
5695 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
5696
5697         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5698         that was inserted inside a comment.
5699
5700 2004-07-10  Randolph Chung  <tausq@debian.org>
5701
5702         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
5703         function.
5704         (hppa_hpux_push_dummy_code): New function.
5705         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5706         Set find_global_pointer method.
5707
5708 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
5709
5710         * NEWS: Mention BSD libkvm interface.
5711
5712 2004-07-10  Michael Snyder  <msnyder@redhat.com>
5713
5714         * symfile.c (generic_load): Comment typo.
5715         * stack.c (get_selected_block): Ditto.
5716         * regcache.c (regcache_cooked_read): Ditto.
5717         * monitor.c (monitor_debug): Ditto.
5718         * mips-tdep.c (mips_read_pc): Ditto.
5719         * i386-linux-nat.c (ps_get_thread_area): Ditto.
5720         * gdb_mbuild.sh: Ditto.
5721         * gdbarch.sh: Ditto.
5722         * gdbarch.h: Ditto.
5723
5724 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
5725
5726         * ada-tasks.c: Remove file.
5727         
5728         Remove ARI problems:
5729         
5730         * ada-exp.y (write_var_from_sym): Reformat to put operator at
5731         beginning of line.
5732
5733         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5734         Add comment.
5735         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5736         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
5737         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
5738         (UMIN_OF_SIZE): Remove.
5739         (max_of_type): New function to replace orphan macro in gdbtypes.h
5740         (min_of_type): Ditto.
5741         (discrete_type_high_bound): Use max_of_type.
5742         (discrete_type_low_bound): Use min_of_type.
5743         (possible_user_operator_p): Move operator to beginning of line.
5744         (ada_is_variant_part): Ditto.
5745         (ensure_lval): Rewrite to avoid deprecated operations.
5746         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5747         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5748         (ada_enum_name): Remove assignments in 'if' statements.
5749         (build_ada_types): Add gdbarch parameter.
5750         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5751         with gdbarch_data_register_post_init.
5752         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
5753         add_show_from_set.
5754
5755         * ada-valprint.c (inspect_it): Remove declaration.
5756         (repeat_count_threshold): Remove declaration.
5757         (ada_print_floating): Remove assignments in 'if' statements.
5758         (print_str): Move operator to beginning of line.
5759         
5760 2004-07-08  Jim Blandy  <jimb@redhat.com>
5761
5762         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5763
5764 2004-07-08  Bob Rossi  <bob@brasko.net>
5765
5766         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5767
5768 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
5769
5770         * language.h (struct_language_defn): Add new function pointer:
5771         la_class_name_from_physname.  Also add new prototype for
5772         language_class_name_from_physname.
5773         * language.c (language_class_name_from_physname): New function.
5774         (unk_lang_class_name): Ditto.
5775         (unknown_language_defn, auto_language_defn): Change
5776         to add unk_lang_class_name function pointer for
5777         la_class_name_from_physname.
5778         (local_language_defn): Ditto.
5779         * dwarf2read.c (guess_structure_name): Change to call
5780         language_class_name_from_physname.
5781         (determine_class_name): Ditto.
5782         * cp-support.c (class_name_from_physname): Renamed.
5783         (cp_class_name_from_physname): New name of function.
5784         * cp-support.h: Ditto.
5785         * c-lang.c (c_language_defn): Change to add NULL
5786         for class_name_from_physname function pointer.
5787         (cplus_language_defn): Change to add cp_class_name_from_physname.
5788         * jv-lang.c (java_class_name_physname): New function.
5789         (java_find_last_component): New static routine.
5790         (java_language_defn): Add java_class_name_from_physname pointer.
5791         * ada-lang.c (ada_language_defn): Change to add NULL
5792         for class_name_from_physname function pointer.
5793         * f-lang.c (f_language_defn): Ditto.
5794         * m2-lang.c (m2_language_defn): Ditto.
5795         * objc-lang.c (objc_language_defn): Ditto.
5796         * p-lang.c (pascal_language_defn): Ditto.
5797         * scm-lang.c (scm_language_defn): Ditto. 
5798
5799 2004-07-06  Andrew Cagney  <cagney@gnu.org>
5800
5801         Patch from Bart Robinson.
5802         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5803         (O_LARGEFILE): Define to 0, if not defined.
5804
5805 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5806
5807         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5808         <machine/pcb.h> and "bsd-kvm.h".
5809         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5810         (m68kbsd_supply_pcb): New function.
5811         (_initialize_m68kbsd_nat): New prototype and function.
5812         * Makefile.in (m68kbsd-nat.o): Update dependencies.
5813         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5814         (LOADLIBES): New variable.
5815         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5816         (LOADLIBES): New variable.
5817
5818         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5819
5820 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5821
5822         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5823         <sys/proc.h>.
5824         (bsd_kvm_cmdlist): New variable.
5825         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5826         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5827         command and "kvm proc" command.
5828         * Makefile.in (bsd-kvm.o): Update dependencies.
5829
5830 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
5831
5832         * osabi.c: Update copyright year.
5833         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
5834         notes if EI_OSABI is set to ELFOSABI_HPUX.
5835
5836 2004-07-01  Michael Snyder  <msnyder@redhat.com>
5837
5838         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5839         that seems to have gotten whacked out of line.
5840
5841 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
5842
5843         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5844         code.
5845
5846 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5847
5848         * ada-lang.c (decode_packed_array): Minor change to comment.
5849         (ada_value_slice_ptr): New function. 
5850         (ada_value_slice): New function. 
5851         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5852         test.  Don't know why it is there.
5853         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5854         to avoid dereferencing huge arrays from which one is slicing.  
5855         (empty_array): Correct to return an array rather than
5856         a subrange value.
5857         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5858         on empty arrays (let'em use 'FIRST instead).
5859
5860 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5861
5862         Address complaints from gdb_ari.sh:
5863         
5864         * ada-exp.y: Include gdb_string.h rather than string.h.
5865         (convert_char_literal): Reformat declaration.
5866         * ada-lang.h: Include opaque struct declaration for struct frame_info.
5867         * ada-lex.l: Change use of free to xfree (the macro would do so
5868         anyway, but this is harmless).
5869         Include gdb_string.h rather than string.h.
5870         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5871         
5872         * ada-lang.c (parse): Remove K&Rism in parameter list.
5873         (is_name_suffix): Correct Linux => GNU/Linux in comment.
5874         
5875 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5876
5877         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5878         dead code.
5879
5880 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5881
5882         * alphabsd-nat.c: Update copyright year.
5883         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5884
5885 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
5886
5887         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5888         (i386_cygwin_in_solib_call_trampoline): New function.
5889         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5890         and skip_trampoline_code gdbarch methods.
5891
5892 2004-06-29  Jim Blandy  <jimb@redhat.com>
5893
5894         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5895         name actually used in the dependency lists.
5896
5897 2004-06-29  Randolph Chung  <tausq@debian.org>
5898
5899         * NEWS (New native configurations): Mention GNU/Linux/hppa.
5900
5901 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5902
5903         * win32-nat.c (child_pid_to_exec_file): New function.
5904         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5905         functionality.
5906
5907 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5908
5909         * defs.h (xstrvprintf): Declare.
5910         * utils.c (xstrvprintf): New function.
5911         (internal_vproblem, xstrprintf, xasprintf) 
5912         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5913         * serial.c (serial_printf): Ditto.
5914         * complaints.c (vcomplaint): Ditto.
5915
5916 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5917
5918         * infcmd.c (attach_command): Move call to target_terminal_inferior
5919         behind loading symbol table.
5920
5921 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5922
5923         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5924         change - add back extern deprecated_ui_loop_hook declaration.
5925
5926 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5927
5928         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5929         xstrprintf.
5930         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5931         (c_value_of_variable): Ditto.
5932         * utils.c (internal_vproblem): Ditto.
5933         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5934         * remote.c (add_packet_config_cmd): Ditto.
5935         * remote-rdp.c (rdp_set_command_line): Ditto.
5936         * regcache.c (regcache_dump): Ditto.
5937         * frv-tdep.c (new_variant, new_variant): Ditto.
5938         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5939         (fbsd_find_memory_regions): Ditto.
5940         * breakpoint.c (create_thread_event_breakpoint) 
5941         (create_breakpoints): Ditto.
5942         * aix-thread.c (aix_thread_pid_to_str): Ditto.
5943         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
5944
5945 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
5946
5947         * ada-lang.c: Re-indent file, with some massaging to help indent
5948         a bit when the result is otherwise really too ugly.
5949
5950 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5951
5952         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
5953         code_addr_p and special_addr_p to 'unsigned int'.
5954
5955 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5956
5957         * i386v4-nat.c: Update copyright year and tweak comment.
5958         (regmap): Remove trailing comma.
5959         (supply_gregset): Rename local variable i to regnum.  Call
5960         regcache_raw_supply instead of supply_register.
5961         (fill_gregset): Rename argument regno to regnum.  Call
5962         regcache_raw_collect instead of regcache_collect.
5963
5964 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5965
5966         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5967         and special_addr_p.
5968         (frame_id_build, frame_id_build_special): Update comments.
5969         (frame_id_build_wild): New prototype.
5970         * frame.c (frame_id_build, frame_id_build_special): Fill in new
5971         struct frame_id fields.
5972         (frame_id_build_wild): New function.
5973         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5974
5975 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5976
5977         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5978         hppabsd-tdep.c.
5979
5980 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5981
5982         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5983
5984 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5985
5986         * ada-lang.c: Re-indent file.
5987
5988 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5989
5990         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5991         (no_symtab_msg): Likewise.
5992
5993 2004-06-27  Andreas Schwab  <schwab@suse.de>
5994
5995         * source.c: Fix whitespace.
5996
5997 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5998
5999         * configure.in: Include <sys/param.h> for td_pcb test.
6000         * configure: Regenerated.
6001
6002         * i386nbsd-nat.c: New file.
6003         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
6004         i386obsd-nat.c and i386obsd-tdep.c.
6005         (i386nbsd-nat.o): New dependency.
6006         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
6007         bsd-kvm.o.
6008         (LOADLIBES): New variable.
6009         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6010         bsd-kvm.o.
6011         (LOADLIBES): New variable.
6012
6013         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6014         (LOADLIBES): New variable.
6015
6016         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6017         fetching from BSD_KVM_PADDR.  Correctly lookup address for
6018         "_thread0".
6019
6020         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6021         "bsd-kvm.h".
6022         (amd64fbsd_supply_pcb): New funcion.
6023         (_initialize_amd64fbsd_nat): Enable libkvm interface.
6024
6025 2004-06-27    <david@streamline-computing.com>
6026
6027         Partial fix for PR cli/1056.
6028         * valarith.c: Check for zero in division and remainder 
6029         evaluation.
6030
6031 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6032
6033         * i387-tdep.c: Remove excessive whitespace.
6034
6035 2004-06-26  Andrew Cagney  <cagney@gnu.org>
6036
6037         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6038         * gdb-events.h, gdb-events.c: Re-generate.
6039         * tui/tui-hooks.c (tui_install_hooks): Update.
6040         (tui_remove_hooks): Update.
6041         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6042
6043 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
6044
6045         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6046         (gregset_t, fpregset_t): Remove typedefs.
6047         (REG_OFFSET): Rename argument.
6048         (amd64bsd_r_reg_offset): Rename from reg_offset.
6049         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6050         Remove functions.
6051         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6052         of reg_offset.
6053         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6054
6055         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6056
6057         * vax-tdep.c: Tweak comment.
6058
6059         Add OpenBSD/hppa support.
6060         * NEWS (New native configurations): Mention OpenBSD/hppa.
6061         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6062         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6063         files.
6064         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6065         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6066         * configure.host: Add hppa*-*-openbsd*.
6067         * configure.tgt: Add hppa*-*-openbsd*.
6068
6069 2004-06-25  Andrew Cagney  <cagney@gnu.org>
6070
6071         * defs.h (deprecated_ui_loop_hook): Deprecated.
6072         * wince.c (child_wait): Update.
6073         * win32-nat.c (child_wait): Update.
6074         * v850ice.c (v850ice_wait): Update.
6075         * top.c (deprecated_ui_loop_hook): Update.
6076         * serial.h: Update.
6077         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
6078         (do_unix_readchar): Update.
6079         * ser-tcp.c (net_open): Update.
6080         * remote-sim.c (gdb_os_poll_quit): Update.
6081         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6082
6083 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6084
6085         * defs.h (deprecated_pre_add_symbol_hook)
6086         (deprecated_post_add_symbol_hook): Deprecated.
6087         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
6088         (symbol_file_add_with_addrs_or_offsets): Update references.
6089
6090 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6091
6092         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6093         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6094         * wince.c (ui_loop_hook): Delete extern declaration.
6095         * win32-nat.c (ui_loop_hook): Delete extern declaration..
6096         * v850ice.c (ui_loop_hook): Delete extern declaration..
6097         * ser-unix.c (ui_loop_hook): Delete extern declaration..
6098         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6099         * remote-sim.c (ui_loop_hook): Delete extern declaration..
6100         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6101         ui_loop_hook declaration.
6102
6103 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6104
6105         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6106         entry_func_highpc fields.
6107         * objfiles.c (init_entry_point_info): Do not clear
6108         entry_func_lowpc and entry_func_highpc.
6109         (objfile_relocate): Do not relocate entry_func_lowpc and
6110         entry_func_highpc.
6111         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6112         entry_func_highpc.
6113         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6114         entry_func_highpc.
6115         * blockframe.c (legacy_frame_chain_valid): Replace tests against
6116         entry_func_lowpc and entry_func_highpc with call to
6117         inside_entry_func.
6118
6119 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
6120
6121         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6122         quad-precision floating point arguments in registers.
6123
6124 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
6125
6126         From Michael Mueller <m.mueller99@kay-mueller.de>:
6127         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6128         account.
6129
6130 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
6131
6132         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6133         to -1.
6134         * breakpoint.c (bpstat_stop_status): Move check for ignoring
6135         untriggered watchpoints to a separate if clause.  Update function
6136         comment regarding STOPPED_BY_WATCHPOINT argument.
6137
6138 2004-06-22  Jim Blandy  <jimb@redhat.com>
6139
6140         * gdbarch.sh: Doc fix.
6141
6142 2004-06-21  Martin Hunt  <hunt@redhat.com>
6143         Kevin Buettner <kevinb@redhat.com>
6144
6145         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6146         * mips-tdep.h (MIPS_SP_REGNUM): Define.
6147         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6148         to set_gdbarch_sp_regnum().  Use cooked register number.
6149         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6150
6151 2004-06-21  Andrew Cagney  <cagney@gnu.org>
6152
6153         * gdbarch.sh: When the macro field is empty, do not generate a
6154         macro definition.  When the macro field is "=", generate the macro
6155         name from the upper-case function name.
6156         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6157         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6158         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6159         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6160         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6161         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6162         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6163         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6164         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6165         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6166         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6167         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6168         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6169         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6170         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6171         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6172         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6173         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6174         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6175         (DEPRECATED_USE_STRUCT_CONVENTION)
6176         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6177         (DEPRECATED_FRAME_INIT_SAVED_REGS)
6178         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6179         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6180         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6181         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6182         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6183         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6184         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6185         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6186         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6187         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6188         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6189         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6190         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6191         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6192         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6193         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6194
6195 2004-06-21  Andrew Cagney  <cagney@gnu.org>
6196
6197         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6198         macro name, and the function rather than macro value.  Only wrap
6199         macro print statements in #ifdef.  Move format logic to where it
6200         is needed.
6201         * gdbarch.c: Re-generate.
6202         
6203         * gdbarch.sh (read): Delete "print_p" and "description", add
6204         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
6205         Delete references to print_p.
6206         (TARGET_ARCHITECTURE): Delete print predicate.
6207         * gdbarch.c: Re-generate.
6208         
6209         * gdbarch.sh: Check that multi-arch methods do not provide a
6210         macro.
6211         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6212         (print_registers_info, print_float_info, print_vector_info)
6213         (adjust_breakpoint_address, remote_translate_xfer_address)
6214         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6215         (address_class_type_flags_to_name, unwind_sp): Remove the macro
6216         name from the multi-arch definition.
6217         
6218 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6219
6220         * gdbarch.sh: Sort by the function, instead of macro name.
6221         * gdbarch.c: Re-generate.
6222         
6223 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6224
6225         * gdbarch.sh: Use the function, instead of macro name in
6226         errors and the log file.
6227         (return_value): Remove stray ":" in spec.
6228
6229         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6230         * gdbarch.h, gdbarch.c: Re-generate.
6231         * Makefile.in (arch-utils.o): Update dependencies.
6232         * values.c (using_struct_return): Move code calling
6233         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6234         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6235         to legacy_return_value, simplify.
6236         * infcmd.c (print_return_value): Move code calling
6237         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6238         to legacy_return_value, simplify.
6239         * infcall.c (call_function_by_hand): Move code calling
6240         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6241         * arch-utils.c: Update copyright.  Include "gdbcore.h".
6242         (legacy_return_value): New function.
6243         * arch-utils.h: Update copyright.
6244         (legacy_return_value): Declare.
6245         
6246 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6247
6248         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6249         * gdbarch.h, gdbarch.c: Re-generate.
6250         * values.c (using_struct_return): Update call.
6251         * mcore-tdep.c: Update comment.
6252         * infcall.c (call_function_by_hand): Update comment.
6253         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6254         * arch-utils.h (always_use_struct_convention): Update.
6255         * v850-tdep.c (v850_gdbarch_init): Update.
6256         * sh64-tdep.c (sh64_gdbarch_init): Update.
6257         * sh-tdep.c (sh_gdbarch_init): Update.
6258         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6259         * mips-tdep.c (mips_gdbarch_init): Update.
6260         * mcore-tdep.c (mcore_gdbarch_init): Update.
6261         * m32r-tdep.c (m32r_gdbarch_init): Update.
6262         * ia64-tdep.c (ia64_gdbarch_init): Update.
6263         * h8300-tdep.c (h8300_gdbarch_init): Update.
6264         * frv-tdep.c (frv_gdbarch_init): Update.
6265         * cris-tdep.c (cris_gdbarch_init): Update.
6266         * arm-tdep.c (arm_gdbarch_init): Update.
6267         * alpha-tdep.c (alpha_gdbarch_init): Update.
6268
6269 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
6270
6271         * PROBLEMS: Add more specific information, and a work-around,
6272         for PR gdb/1458.
6273
6274 2004-06-18  Andrew Cagney  <cagney@gnu.org>
6275
6276         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6277         * gdbarch.h, gdbarch.c: Re-generate.
6278         * ada-lang.c (ada_finish_decode_line_1): Update.
6279         * infrun.c (handle_inferior_event): Update.
6280         * infcall.c (find_function_addr): Update.
6281         * linespec.c (minsym_found): Update.
6282         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6283         Update.
6284         * blockframe.c (legacy_frameless_look_for_prologue): Update.
6285         * cli/cli-cmds.c (disassemble_command): Update.
6286         * vax-tdep.c (vax_gdbarch_init): Update.
6287
6288 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
6289
6290         * i386-tdep.c (i386_collect_fpregset): Fix comment.
6291
6292 2004-06-17  Andrew Cagney  <cagney@gnu.org>
6293
6294         GDB 6.1.1 released from the GDB 6.1 branch.
6295         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6296         * PROBLEMS: Ditto.
6297
6298 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
6299
6300         PR gdb/1658
6301         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6302         operation as a uleb128.  Found by Michael Coulter.
6303
6304 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
6305         
6306         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6307         make it non-static.
6308         * ada-lang.h (task_control_block): declaration moved from ada-task.c
6309         to ada-lang.h; this is needed to be able to implement the kill command
6310         in multi-task mode.
6311         (task_ptid): Ditto.
6312         (task_entry): Ditto.
6313         (task_list): Ditto.
6314         (ada_build_task_list): Ditto.
6315         
6316         * ada-lang.c: Conditionalize routines and data structures related 
6317         to breakpoints, exceptions, completion, and symbol caching on 
6318         GNAT_GDB, since these are not yet used in the submitted public sources.
6319         (ada_main_name): Editorial: Move definition out of exception-related 
6320         code.
6321
6322 2004-06-15  Andrew Cagney  <cagney@gnu.org>
6323
6324         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6325         deprecated_pc_in_call_dummy.
6326
6327 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
6328
6329         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6330         bfd_get_section_size_before_reloc or _raw_size.
6331         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6332         * dwarf2read.c (dwarf2_locate_sections): Likewise.
6333         (dwarf2_read_section): Likewise.
6334         * elfread.c (elf_locate_sections): Likewise.
6335         * gcore.c (derive_heap_segment): Likewise.
6336         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6337         * remote-e7000.c (e7000_load): Likewise.
6338         * remote-m32r-sdi.c (m32r_load): Likewise.
6339         * remote-mips.c (mips_load_srec): Likewise.
6340         (pmon_load_fast): Likewise.
6341         * remote.c (compare_sections_command): Likewise.
6342         * symfile.c (add_section_size_callback): Likewise.
6343         (load_section_callback): Likewise.
6344         (pc_in_unmapped_range): Likewise.
6345         (pc_in_mapped_range): Likewise.
6346         (sections_overlap): Likewise.
6347         (list_overlays_command): Likewise.
6348         (simple_overlay_update_1): Likewise.
6349         (simple_overlay_update): Likewise.
6350         * tracepoint.c (remote_set_transparent_ranges): Likewise.
6351         * win32-nat.c (core_section_load_dll_symbols): Likewise.
6352
6353 2004-06-14  Randolph Chung  <tausq@debian.org>
6354
6355         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6356         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
6357         static.
6358         (hppa_hpux_inferior_created): New function.
6359         (hppa_hpux_init_abi): Register observer.
6360         * symfile.c (hp_cxx_exception_support_initialized)
6361         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6362         (symbol_file_add_main_1, symbol_file_clear): Likewise.
6363
6364 2004-06-14  Randolph Chung  <tausq@debian.org>
6365
6366         * MAINTAINERS (Write After Approval): Alphabetize my entry
6367         correctly.
6368
6369 2004-06-14  Andrew Cagney  <cagney@gnu.org>
6370
6371         * MAINTAINERS (testsuite): List Michael Chastain as the lead
6372         testsuite maintainer.
6373
6374 2004-06-13  Andrew Cagney  <cagney@gnu.org>
6375
6376         * infcmd.c (print_return_value): Fix logic, allow
6377         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6378
6379         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6380         defining any macros.
6381         * gdbarch.h: Re-generate.
6382
6383         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
6384         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6385         * gdbarch.h: Re-generate.
6386
6387         * values.c (generic_use_struct_convention): Don't check gcc_p.
6388
6389         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6390         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6391         * gdbarch.h, gdbarch.c: Regenerate.
6392         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
6393         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6394         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6395         deprecated_max_register_raw_size and
6396         deprecated_max_register_virtual_size.
6397         * v850-tdep.c (v850_gdbarch_init): Ditto.
6398         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6399         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6400         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6401         * cris-tdep.c (cris_gdbarch_init): Ditto.
6402
6403         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6404         * gdbarch.h, gdbarch.c: Re-generate.
6405         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6406         (m68hc11_use_struct_convention): Delete function.
6407         (m68hc11_extract_struct_value_address): Delete function.
6408         (m68hc11_return_value): New function.
6409         (m68hc11_gdbarch_init): Instead of store_return_value,
6410         extract_return_value, return_value_on_stack,
6411         deprecated_extract_struct_value_address and use_struct_convention,
6412         set return_value.
6413         * values.c (using_struct_return): Do not call
6414         RETURN_VALUE_ON_STACK.
6415         * arch-utils.h (generic_return_value_on_stack_not): Delete
6416         declaration.
6417         * arch-utils.c (generic_return_value_on_stack_not): Delete
6418         function.
6419         
6420 2004-06-12  Andrew Cagney  <cagney@gnu.org>
6421
6422         * values.c (register_value_being_returned): Delete function.
6423         * infcmd.c (legacy_return_value): Delete function.
6424         * infcall.c (call_function_by_hand): Inline
6425         "register_value_being_returned", simplify.
6426         * values.c (using_struct_return): Update comment, refer to
6427         print_return_value instead of register_value_being_returned.
6428         * infcmd.c (print_return_value): Inline calls to
6429         register_value_being_returned and legacy_return_value.  Simplify.
6430
6431 2004-06-11  Randolph Chung  <tausq@debian.org>
6432
6433         * somread.c (som_symtab_read): Exclude gcc local symbols.
6434
6435 2004-06-11  Randolph Chung  <tausq@debian.org>
6436
6437         * infrun.c (handle_inferior_event): Handle the case when a
6438         trampoline ends up in the runtime resolver, and if the trampoline
6439         has no name.  Rearrange the code so that all the trampoline
6440         processing happens before other step-out-of-range handling.
6441
6442 2004-06-11  Martin Hunt  <hunt@redhat.com>
6443
6444         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6445         has no fpu.
6446
6447 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6448
6449         * blockframe.c (legacy_inside_entry_func): Delete.
6450         (legacy_frame_chain_valid): Inline call to
6451         legacy_inside_entry_func, simplify.
6452
6453 2004-06-10  Bob Rossi  <bob@brasko.net>
6454
6455         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6456         * dwarf2read.c (partial_die_info): Add dirname field.
6457         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6458         (read_partial_die): Save away DW_AT_comp_dir.
6459         * defs.h (symtab_to_filename): Removed.
6460         * source.c (find_and_open_source): Added.
6461         (open_source_file): Just calls find_and_open_source.
6462         (symtab_to_filename): Removed.
6463         (symtab_to_fullname, psymtab_to_fullname): Added.
6464         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6465         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6466         symtab_to_filename.
6467         * symtab.h (partial_symtab): Add dirname field.
6468         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6469         (mi_cmd_file_list_exec_source_file): Call new function
6470         symtab_to_fullname to find fullname.
6471         (mi_cmd_file_list_exec_source_files): Added.
6472         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6473         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6474
6475 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6476
6477         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6478         to generic_use_struct_convention, the default value.
6479
6480         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6481         of abort.
6482
6483         * ns32k-tdep.c (ns32k_push_arguments): New function.
6484         (ns32k_gdbarch_init): Set deprecated_push_arguments.
6485         * infcall.c (call_function_by_hand): Call error instead of
6486         legacy_push_arguments.
6487         * value.h (legacy_push_arguments): Delete declaration.
6488         * valops.c (legacy_push_arguments): Delete function.
6489         (value_push): Delete function.
6490
6491 2004-06-10  Brian Ford  <ford@vss.fsi.com>
6492
6493         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6494         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
6495         info.
6496         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6497
6498 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6499
6500         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6501         * gdbarch.h, gdbarch.c: Re-generate.
6502         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6503         parameters.
6504         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6505         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6506         deprecated_pc_in_call_dummy instead of
6507         DEPRECATED_PC_IN_CALL_DUMMY.
6508         (arm_skip_prologue): Ditto.
6509         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6510         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6511         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6512         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6513         Ditto.
6514         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
6515         (sh64_init_extra_frame_info, sh64_get_saved_register) 
6516         (sh64_pop_frame): Ditto.
6517         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6518         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
6519         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6520         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
6521         (h8300_pop_frame): Ditto.
6522         * blockframe.c (legacy_inside_entry_func) 
6523         (legacy_frame_chain_valid): Ditto.
6524         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6525         to deprecated_pc_in_call_dummy.
6526         
6527 2004-06-09  Andrew Cagney  <cagney@gnu.org>
6528
6529         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6530         provide a default value.
6531         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6532         * gdbarch.h, gdbarch.c: Re-generate.
6533         * arch-utils.c (generic_convert_register_p): Rename
6534         legacy_convert_register_p
6535         (legacy_register_to_value, legacy_value_to_register): Delete
6536         functions.
6537         * arch-utils.h (generic_convert_register_p): Rename
6538         legacy_convert_register_p.
6539         (legacy_register_to_value, legacy_value_to_register): Delete
6540         declarations.
6541
6542         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6543         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6544         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6545         * gdbarch.h, gdbarch.c: Re-generate.
6546         * infcmd.c (default_print_registers_info): Simplify.
6547         * findvar.c (value_of_register): Simplify.
6548         * mi/mi-main.c (get_register): Simplify.
6549         * arch-utils.c (legacy_convert_register_p): Always return 0.
6550         (legacy_register_to_value, legacy_value_to_register): Always call
6551         internal_error.
6552
6553         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6554         #ifdef CLEAR_INSN_CACHE code.
6555         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6556         Delete #ifdef CLEAR_DEFERRED_STORES code.
6557
6558         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6559
6560         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6561         copyright.
6562         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6563
6564         * config/mips/mipsv4.mh: Delete file.
6565
6566         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6567         unreferenced macro.
6568         (hpread_adjust_stack_address): Delete declaration.
6569
6570 2004-06-08  Andrew Cagney  <cagney@gnu.org>
6571
6572         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6573         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6574         PTRACE_ATTACH / PTRACE_DETACH available call error.
6575         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6576         * infttrace.c (update_thread_state_after_attach, attach, detach):
6577         Remove #ifdef wrappers.
6578         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6579         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6580         * config/nm-bsd.h (ATTACH_DETACH): Delete.
6581         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6582         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6583         * config/nm-linux.h (ATTACH_DETACH): Delete.
6584         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6585         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6586         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6587         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6588         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6589
6590 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
6591
6592         * configure.in: Set $configdir to the right OS specific value.
6593         Use value when setting $tcldir and $tkdir.
6594         * configure: Regenerate.
6595
6596 2004-06-06  Paul Brook  <paul@codesourcery.com>
6597
6598         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6599         records.
6600
6601 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
6602
6603         * ada-lang.c (lookup_symbol_in_language): New function to allow
6604         re-use of another language's symbol lookup code.  (Placed here
6605         temporarily while Ada support is being integrated into the public
6606         tree).  
6607         (restore_language): New auxiliary function for 
6608         lookup_symbol_in_language.
6609         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6610         temporarily while Ada support is being integrated into the public
6611         tree).
6612         
6613 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
6614
6615         * Makefile.in (check//%): New.
6616
6617         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6618         (mn10300_store_return_value): Rewrite.
6619         (mn10300_type_align): New.
6620         (mn10300_use_struct_convention): Rewrite.
6621         (mn10300_return_value): New, using all of the above.
6622         (mn10300_pop_frame_regular): Add saved_regs_size.
6623         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6624
6625         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6626         regs if PC is on movm.
6627
6628 2004-06-07  Jim Blandy  <jimb@redhat.com>
6629
6630         Add native Linux support for the PowerPC E500.
6631         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6632         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6633         all architectures except the E500.
6634         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6635         #definitions.
6636         (struct gdb_evrregset_t): New type.
6637         (have_ptrace_getsetevrregs): New variable.
6638         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
6639         fetch_spe_registers): New functions.
6640         (fetch_register): Call fetch_spe_register as appropriate.
6641         Assert that we're only passed raw register numbers.
6642         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6643         Don't fetch gprs if they're pseudoregisters.
6644         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6645         store_spe_registers): New functions.
6646         (store_register): Call store_spe_register as appropriate.
6647         Assert that we're only passed raw register numbers.
6648         (store_ppc_registers): Call store_spe_registers as appropriate.
6649         Don't store gprs if they're pseudoregisters.
6650         
6651 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
6652
6653         * thread-db.c (thread_get_info_callback): Fill in the thread_info
6654         struct if one exists, even if we are dealing with a zombie thread.
6655
6656 2004-06-07  Andrew Cagney  <cagney@gnu.org>
6657
6658         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6659         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6660         Rename PC_REQUIRES_RUN_BEFORE_USE.
6661         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
6662         #ifdef.
6663
6664 2004-06-07  Randolph Chung  <tausq@debian.org>
6665
6666         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6667         unwinding after sp has been saved to the stack but before the end
6668         of the prologue, and after the fp has been modified but before it has
6669         been saved to the stack.
6670         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
6671         Remove superfluous definitions.
6672         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6673
6674 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
6675
6676         Committed by Randolph Chung.
6677         * hppa-linux-nat.c: Include the correct version of the header file
6678         depending on the kernel version.
6679
6680 2004-06-06  Randolph Chung  <tausq@debian.org>
6681
6682         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6683         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6684
6685 2004-06-06  Randolph Chung  <tausq@debian.org>
6686
6687         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
6688         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6689         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6690         * hppa-tdep.c (hppa_symbol_address): New function definition.
6691         * hppa-tdep.h (hppa_symbol_address): New function declaration.
6692
6693 2004-06-06  Randolph Chung  <tausq@debian.org>
6694
6695         * hppa-tdep.h (struct value): Forward declaration.
6696         (gdbarch_tdep): Define tdep find_global_pointer method.
6697         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6698         associated with the function we are trying to call, and write it
6699         to the gp register.
6700         (hppa32_convert_from_funct_ptr_addr): New function.
6701         (hppa_find_global_pointer): New function.
6702         (hppa_gdbarch_init): Set default find_global_pointer method; set
6703         convert_from_func_ptr_addr method.
6704         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6705         (hppa_linux_init_abi): Set find_global_pointer method.
6706         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6707
6708 2004-06-06  Randolph Chung  <tausq@debian.org>
6709
6710         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6711         to struct value *function.
6712         * gdbarch.c: Regenerate.
6713         * gdbarch.h: Likewise.
6714         * infcall.c (call_function_by_hand): Pass entire function value
6715         to push_dummy_call.
6716
6717         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6718         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6719         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6720         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6721         * arm-tdep.c (arm_push_dummy_call): Likewise.
6722         * avr-tdep.c (avr_push_dummy_call): Likewise.
6723         * cris-tdep.c (cris_push_dummy_call): Likewise.
6724         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6725         * frv-tdep.c (frv_push_dummy_call): Likewise.
6726         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6727         * hppa-tdep.c (hppa32_push_dummy_call)
6728         (hppa64_push_dummy_call): Likewise.
6729         * i386-tdep.c (i386_push_dummy_call): Likewise.
6730         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6731         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6732         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6733         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6734         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6735         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6736         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6737         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6738         (ppc64_sysv_abi_push_dummy_call): Likewise.
6739         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6740         (ppc64_sysv_abi_push_dummy_call): Likewise.
6741         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6742         * s390-tdep.c (s390_push_dummy_call): Likewise.
6743         * sh-tdep.c (sh_push_dummy_call_fpu)
6744         (sh_push_dummy_call_nofpu): Likewise.
6745         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6746         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6747         * vax-tdep.c (vax_push_dummy_call): Likewise.
6748
6749 2004-06-04  Jim Blandy  <jimb@redhat.com>
6750
6751         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6752         gdbarch argument to register_size.
6753
6754         * rs6000-tdep.c (rs6000_store_return_value): Use
6755         regcache_cooked_write_part instead of
6756         deprecated_write_register_bytes.
6757         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6758         not gdbarch_deprecated_store_return_value.
6759
6760         * ppc-linux-nat.c (store_register, fetch_register): Remove
6761         incorrect assertions.  Simplify and generalize handling of
6762         transfers whose sizes are not multiples of, or less than, sizeof
6763         (PTRACE_XFER_TYPE).
6764
6765 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6766
6767         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6768         as a new thread event.
6769         * thread-db.c (thread_get_info_callback): If the thread is a
6770         zombie, return TD_THR_ZOMBIE.
6771         (thread_from_lwp): If thread_get_info_callback returns
6772         TD_THR_ZOMBIE, check if the thread is still on the thread list
6773         and return a -1 ptid if not found.
6774         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6775         change the status to TARGET_WAITKIND_SPURIOUS.
6776
6777 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
6778
6779         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6780         double values in little endian mode.
6781
6782 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
6783
6784         Committed by Andrew Cagney.
6785         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6786         after last enum constant to avoid error from IBM C
6787         compiler.
6788
6789 2004-06-02  Jim Blandy  <jimb@redhat.com>
6790
6791         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6792         to 'message', and make it local to the lone block that uses it.
6793
6794         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6795
6796 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
6797
6798         * ada-exp.y: Update copyright notice.
6799         Include block.h.
6800         
6801         Replace REGNAME, LAST, INTERNAL_VARIABLE with
6802         SPECIAL_VARIABLE and unify the treatment of these cases.
6803
6804         (write_attribute_call0): Remove.
6805         (write_attribute_call1): Remove.
6806         (write_attribute_calln): Remove.
6807         (save_qualifier): Add missing semicolon.
6808
6809         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
6810         temporarily disabled to allow compilation with FSF head version.
6811
6812         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
6813         use individual operators (OP_*) for all attributes.
6814         (exp syntax): Use write_int.
6815         Handle STRING literals with OP_STRING.
6816         (variable syntax): Add limit parameter to calls to 
6817         write_object_renaming.  
6818
6819         (temp_parse_space): New definition to hold entities that need
6820         only live until the next call to ada_parse.
6821         (string_to_operator): Rename fields of ada_opname_table entries.
6822
6823         (write_var_from_sym): Record block.
6824         (write_var_from_name): Minor reformatting.
6825         Make sure saved name is properly encoded in the case of multiple 
6826         matches, and set its language to Ada.
6827         Update comment.
6828         Modify to indicate unresolved name as symbol in the UNRESOLVED 
6829         namespace, allocated in temp_parse_space.
6830         (write_int): New function.
6831
6832         (write_object_renaming): Add max_depth parameter to limit
6833         chains of object renamings.
6834         Handle case where root of renaming expression is itself a renaming.
6835         Use temp_parse_space for temporary name buffer.
6836         Handle renamings to dereferenced pointers (___XEXA suffices).
6837         
6838         (ada_parse, yyerror, string_to_operator, 
6839         write_var_from_sym, write_var_from_name, write_attribute_call0, 
6840         write_attribute_call1, write_attribute_calln, 
6841         write_object_renaming): Protoize.
6842
6843         (_initialize_ada_exp): New function.
6844         
6845         * ada-lang.c: Update copyright notice.
6846         General terminology change to conform to GNAT compiler usage:
6847         mangle => encode, demangle => decode
6848         Include gdb_obstack.h.
6849         Include gdb_regex.h
6850         Include frame.h
6851         Include hashtab.h
6852         Include completer.h
6853         Include gdb_stat.h
6854         Include block.h
6855         Include infcall.h
6856         
6857         (ADA_RETAIN_DOTS): Make sure this is defined.
6858         (TRUNCATION_TOWARDS_ZERO): Define.
6859         (struct string_vector): Define.
6860         (unresolved_names): Remove definition.
6861         (xnew_string_vector): New function.
6862         (string_vector_append): New function.
6863         (extract_string): Make static.
6864         (ada_unqualified_name): New function.
6865         (add_angle_brackets): New function.
6866         (function_name_from_pc): New function.
6867         (place_on_stack): Rename to ensure_lval.
6868
6869         (ensure_lval): Renamed from place_on_stack.
6870         Make identity on lvals.
6871         Update comment.
6872         (is_nonfunction): New interface.
6873         Only symbols in LOC_CONST class can be enumerals.
6874         (fill_in_ada_prototype): Remove; now independent of language.
6875         (add_defn_to_vec): Add obstack and symtab arguments.
6876         Use obstack to hold collected definitions.
6877         (num_defns_collected): New function.
6878         (defns_collected): New function.
6879         (ada_resolve_subexp): Rename to resolve_subexp.
6880         (resolve_subexp): Renamed from ada_resolve_subexp.
6881         (ada_op_name): Return non-const result.
6882         (ada_decoded_op_name): Renamed from ada_op_name, now used for
6883         other purposes.
6884
6885         (to_fixed_array_type): Add declaration.
6886         (coerce_unspec_val_to_type): Remove offset parameter.
6887         (find_sal_from_funcs_and_line): New interface.
6888         (find_line_in_linetable): Ditto.
6889
6890         (all_sals_for_line): Rename to ada_sals_for_line and make
6891         global.
6892         Add new parameter. When set, do not ask the user to choose the 
6893         instance, but use the first one found instead.
6894         Use given line number in returned sals.
6895         Fix comment. 
6896         Skip the prologue if funfirstline is set.
6897         Correct for memory leak when 0 lines found.
6898
6899         (value_pos_atr): Use pos_atr.
6900         (pos_atr): New function.
6901         (standard_lookup): Add block parameter.
6902
6903         (makeTimeStart): Remove declaration and uses.
6904         (makeTimeStop): Remove declaration and uses.
6905
6906         (ada_completer_word_break_characters): Allow for VMS.
6907         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6908         (raise_sym_name): New constant.
6909         (raise_unhandled_sym_name): New constant.
6910         (raise_assert_sym_name): New constant.
6911         (process_raise_exception_name): New constant.
6912         (longest_exception_template): New constant.
6913         (warning_limit): New variable to limit warnings during expression
6914         evaluation.
6915         (warnings_issued): New variable to keep track of warnings issued.
6916         (known_runtime_file_name_patterns): New constant.
6917         (known_auxiliary_function_name_patterns): New constant.
6918         (symbol_list_obstack): New variable.
6919         
6920         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6921         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6922         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6923         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
6924         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
6925         ada_variant_discrim_name, field_alignment, dynamic_template_type,
6926         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
6927         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
6928         and strcmp. 
6929
6930         (ada_get_field_index): New function.
6931         (lim_warning): New function.
6932         (ada_translate_error_message): New function.
6933         (MAX_OF_SIZE): New function.
6934         (MIN_OF_SIZE): New function.
6935         (UMAX_OF_SIZE): New function.
6936         (UMIN_OF_SIZE): New function.
6937         (discrete_type_high_bound): New function.
6938         (discrete_type_low_bound): New function.
6939         (base_type): New function.
6940         (do_command): Remove.
6941         
6942         (ada_update_initial_language): Use language_ada, not language_unknown.
6943         (ada_encode): Renamed from ada_mangle.
6944         Obey ADA_RETAIN_DOTS.
6945         (ada_decode): Renamed from ada_demangle.
6946         Update coding conventions.
6947         (decoded_names_store): New hash table.
6948         (ada_decode_symbol): New function.
6949         (ada_la_decode): New function.
6950         
6951         (modify_general_field): Correct computations of offset and bit 
6952         position.
6953         (desc_base_type): Handle ref types, too.
6954         (ada_is_direct_array_type): New function.
6955
6956         (ada_is_simple_array): Rename to ada_is_simple_array_type.
6957         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6958         (ada_is_bogus_array_descriptor,ada_type_of_array,
6959         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6960         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
6961         ada_is_array_descriptor_type.
6962         
6963         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6964         (ada_is_packed_array_type): Handle pointers or 
6965         references to packed arrays as well.
6966         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6967         (decode_packed_array_type): Search for the packed array type 
6968         symbol in the currently selected block and associated 
6969         superblocks too.
6970         Use lookup_symbol again.
6971
6972         (decode_packed_array): Handle pointers and references.
6973         Update call to coerce_unspec_val_to_type.
6974         (decode_packed_array_type,value_subscript_packed): Limit warnings.
6975         (ada_value_primitive_packed_val): Improve comment.
6976         
6977         (ada_index_type): Substitute int type for "undefined".
6978         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6979         ada_array_langth, ada_is_string_type): Use renamed 
6980         ada_is_simple_array_type.
6981         (empty_array): New function.
6982
6983         (ada_resolve):  Rename to resolve.
6984         (resolve): Make static.
6985         Call renamed resolve_subexp.
6986         Update comment.
6987         (ada_resolve_subexp): Rename to resolve_subexp.
6988         (resolve_subexp): Update comment.
6989         Decomment disabled code.
6990         Add LOC_COMPUTED* cases.
6991         Modify to use temporary struct symbols (marked as being in 
6992         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
6993         OP_UNRESOLVED_VALUE.
6994         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
6995         Add OP_STRING case.
6996         Remove OP_ARRAY.
6997         Use SYMBOL_PRINT_NAME instead of ada_demangle.
6998         Use new ada_lookup_symbol_list interface.
6999         Use new ada_resolve_function interface.
7000         Remove OP_TYPE case.
7001
7002         (ada_args_match): Idiot proof against null actuals.
7003         Use intermediate variables to clarify.
7004         (ada_resolve_function): Update comment and interface.
7005         (mangled_ordered_before): Rename to encoded_ordered_before and
7006         update comment.
7007         (sort_choices): Update comment and interface.
7008         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7009         (user_select_syms): New interface.
7010         Use new sort_choices interface.
7011         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7012         (possible_user_operator_p): Idiot-proof against null values.
7013         (ada_simple_renamed_entity): Don't make cleanup; rely on 
7014         caller to free result string.
7015         Remove const from return type.
7016         (make_array_descriptor): Rename uses of place_on_stack to 
7017         ensure_lval.
7018         Make sure that arrays are on stack.
7019         
7020         (HASH_SIZE): Define.
7021         (struct cache_entry): Define.
7022         (cache_space): Define.
7023         (cache): Define.
7024         (clear_ada_sym_cache): New function.
7025         (find_entry): New function.
7026         (lookup_cached_symbol): New function.
7027         (defn_vector_size): Define.
7028         (cache_symbol): New function.
7029         (defn_symbols): Remove.
7030         
7031         (standard_lookup): Use lookup_symbol_in_language to get effect of
7032         C lookup.
7033         Cache results.
7034         
7035         (symbol_completion_match): New function.
7036         (symbol_completion_add): New function.
7037         (ada_make_symbol_completion_list): New function.
7038
7039         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
7040         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
7041         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
7042         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7043         
7044         (ada_lookup_simple_minsym): New function.
7045         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7046
7047         (add_symbols_from_enclosing_procs): New interface.
7048         Conditionalize more helpfully.
7049         Don't bother if program isn't running.
7050         Use new interface to get_frame_block.
7051         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7052         
7053         (remove_extra_symbols): New interface.
7054         (xget_renaming_scope): New function.
7055         (is_package_name): New function.
7056         (renaming_is_visible): New function.
7057         (remove_out_of_scope_renamings): New function.
7058
7059         (ada_lookup_symbol_list): New interface.
7060         Properly reinitialize the symbol list obstack.
7061         Don't call add_symbols_from_enclosing_procs if we start from a
7062         static or global block.
7063         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
7064         add_symbols_from_enclosing_procs.
7065         Add symtab data to cached entries.
7066         Handle symbols prefixed with
7067         "standard__" specially; strip prefix and don't look in local symbols.
7068         Do not include out of scope renaming symbols in list of 
7069         symbols returned.
7070         Add const to block parameter.
7071         Move check for non-local, non-global symbols earlier.  
7072         Remove timing stuff.
7073         (ada_lookup_symbol): New interface.
7074         Find symtab as well.
7075         (ada_lookup_symbol_nonlocal): New function.
7076
7077         (is_name_suffix): Enhance suffix detection to recognize
7078         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7079         (is_dot_digits_suffix): New function.
7080         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7081         
7082         (ada_add_block_symbols): New interface.  Use obstack to return results
7083         in a vector of struct ada_symbol_infos.  Add symtab argument.
7084         Use new interface to add_defn_to_vec.
7085         Remove calls to fill_in_ada_prototype.
7086         Use BLOCK_BUCKETS, BLOCK_BUCKET.
7087         
7088         (ada_finish_decode_line_1): Add const qualification to local to fix
7089         warning.
7090         Start looking in static block for functions to avoid attempts 
7091         to search frame chain for up-level variables.
7092         Adapt to new ada_sals_for_line interface.
7093         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7094         Handle quoting of the function name inside the spec string.
7095         Skip prologue when funfirstline is set and update the 
7096         function documentation to that effect.
7097
7098         (debug_print_lines, debug_print_block, debug_print_blocks, 
7099         debug_print_symtab): Remove.
7100
7101         (ada_main_name): New function.  
7102         (ada_exception_breakpoint_type): New function.
7103         (is_known_support_routine): New function.
7104         (ada_find_printable_frame): Renamed from find_printable_frame and made
7105         global.
7106         Remove level parameter.
7107         Use new interface to select_frame.
7108
7109         (begin_command): Remove.
7110         (ada_adjust_exception_stop): New function.
7111         (ada_print_exception_stop): New function.
7112         (exception_name_from_cond): New function.
7113         (ada_report_exception_break): Replace disabled code with 
7114         conditionalization on GNAT_GDB.
7115         Get the exception name from the condition string.
7116         Remove and move functionality into new functions 
7117         ada_print_exception_breakpoint_task and 
7118         ada_print_exception_breakpoint_nontask.
7119         (error_breakpoint_runtime_sym_not_found): New function.
7120         (is_runtime_sym_defined): New function.
7121         (ada_breakpoint_rewrite): Uncomment suppressed code.
7122         Use symbolic error-message and runtime-symbol names.
7123         Surround runtime symbol names in quotes.
7124         Allow non-specific breakpoints on exceptions and assertions before
7125         program starts.
7126         
7127         (ada_is_tagged_type): Add parameter.
7128         (ada_is_tag_type): New function.
7129         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7130         (ada_variant_discrim_type): Ditto.
7131         (value_tag_from_contents_and_address): New function.
7132         (type_from_tag): New function.
7133         (struct tag_args): New structure used to communicate with
7134         ada_tag_name_1.
7135         (ada_tag_name_1): New function.
7136         (ada_tag_name): New function.
7137
7138         (ada_scan_number): Update comment.
7139         (find_struct_field): New function.
7140         (ada_search_struct_field): Make static.
7141         (ada_value_struct_elt): New version that returns references when
7142         given pointers or references to structs.
7143         (ada_lookup_struct_elt_type): Add 'refok' parameter.
7144         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7145         interface.
7146         (ada_value_ind): Use new ada_to_fixed_value interface.
7147         (ada_coerce_ref): Ditto.
7148         (field_offset): Remove.
7149
7150         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7151         (ada_find_renaming_symbol): New function.
7152         (ada_prefer_type): Prefer named types over unnamed ones.
7153         (variant_field_index): New function.
7154         (contains_variant_part): Removed: subsumed by variant_field_index.
7155         (ada_template_to_fixed_record_type): New function, mostly from
7156         template_to_fixed_record_type.
7157         (template_to_fixed_record_type): 
7158         Do not scan the type fields beyond the last one; prevents a 
7159         potential SEGV.
7160         Handle case where variant field is listed BEFORE discriminant it 
7161         depends on.
7162         Fix calculation of record length when bit length is 
7163         not evenly divisible by char length.
7164         Move code to ada_template_to_fixed_record_type and call it.
7165
7166         (template_to_static_fixed_type): Revise comment.  
7167         Modify to work on ordinary record types as well as templates, 
7168         so as to handle fields that use ___XVE or ___XVU encodings. 
7169         (to_record_with_fixed_variant_part): Fill out comment.
7170         Initialize C++ stuff in right type.
7171         Allow case where DVAL is null.
7172         Handle case where variant field is not last.
7173         Fix typo concerning record length.
7174         (to_fixed_record_type): Decomment disabled code.
7175         (to_fixed_record_type): Use variant_field_index instead of 
7176         contains_variant_part.
7177         (to_fixed_variant_branch_type): Ditto.
7178         (to_fixed_array_type): Decomment disabled code.
7179         (ada_to_fixed_type): Convert tagged types to the specific type.
7180         Deactivate the size-check for array types in order to avoid 
7181         some false size alarms.
7182         (to_static_fixed_type): Decomment disabled code.
7183         Modify to call template_to_static_fixed_type
7184         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7185         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7186         Remove valaddr argument, as it is never really used.
7187         (ada_to_fixed_value): Change interface to act on single struct value*
7188         operand.
7189         (adjust_pc_past_prologue): New function.
7190         (ada_attribute_name): Modify to take enum exp_opcode argument.
7191                 
7192         (ada_enum_name): Recognize new homonym-distinguishing convention.
7193         Adjust local variable's type to remove compiler warning.
7194         Fix a small problem in the part that unqualifies the enumeration name.
7195         (ada_value_binop): New function.
7196         (ada_value_equal): New function.
7197
7198         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7199         Don't give error message when not doing normal evaluation 
7200         and a tagged type doesn't seem to contain a structure member.
7201         Give error message for packed arrays.
7202         For indexing arrays, handle pointers to packed arrays correctly.
7203         Handle case of 'first and 'last attributes of bare integral type 
7204         without encoded subtype info.  
7205         Remove some unnecessary casts.
7206         Fix uninitialized value of type in computing 'first, 'last, or 'length
7207         of array object.  
7208         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7209         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7210         calls.
7211         Attributes are now exp_opcode values.
7212         Correct treatment of 'modulus.
7213         Better error message for taking 'length of wrong kind of type; 
7214         improve comment.
7215         Change EVAL_NORMAL to noside for consistency.
7216         Use ada_value_binop for DIV, MOD, REM.
7217         Make special case out of array of length 0, since an argument 
7218         of 0 upsets some platforms' malloc.
7219         Use OP_STRING instead of OP_ARRAY.
7220         For slice, add check that we have an array type before extracting 
7221         a slice out of it.  Avoids a SEGV.
7222         When evaluating an array slice, if the array type is a reference to 
7223         an aligner type, then replace the aligner type by the actual type.
7224         Decomment disabled code.
7225         Remove some dead code.
7226         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
7227         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7228         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
7229         and UNOP_MBR to UNOP_IN_RANGE.
7230         If an array type has a parallel ___XVE type, then use it.
7231         Turn arrays into pointers for lvalue arrays.
7232         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7233         bounds error and handle 0-length slices.
7234         Use lim_warning.
7235         When selecting fields, apply ada_to_fixed_value (because the fields 
7236         might have ___XVU or ___XVE encodings even if not dynamic.)
7237         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7238         (ada_is_system_address_type): New function.
7239
7240         (get_var_value): Use new interface to ada_lookup_symbol_list.
7241         (get_int_var_value): New interface.
7242         (to_fixed_range_type): Allow unknown bound, with warning.
7243         (ada_is_modular_type): Decomment disabled code.
7244         (ADA_OPERATORS): New definition.
7245         (ada_operator_length): New function.
7246         (ada_expr_op_name): New function.
7247         (ada_forward_operator_length): New function.
7248         (ada_dump_subexp_body): New function.
7249         (ada_print_subexp): New function.
7250         (ada_exp_descriptor): New constant.
7251         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
7252         (ada_language_defn): Add ada_exp_descriptor entry.
7253         Change ada_parse => parse.
7254         Add post-parser entry.
7255         Use ada-specific non-local symbol lookup.
7256         Don't use C-style arrays. 
7257         String lower-bound is 1.
7258         Decomment disabled code.        
7259         (parse): New function.
7260         New fields ada_translate_error_message, ada_lookup_symbol, 
7261         ada_lookup_minimal_symbol.
7262         
7263         * ada-lang.h: Update copyright dates.
7264         Replace the mangle/demangle terminology throughout by the
7265         more appropriate encode/decode one. 
7266         Include breakpoint.h.
7267         Forward declare struct partial_symbol, struct block.
7268         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7269         (EXTRACT_ADDRESS): Remove.
7270         (EXTRACT_INT): Remove.
7271         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7272         (MAX_ENCLOSING_FRAME_LEVELS): Define.
7273         (MAX_RENAMING_CHAIN_LENGTH): Define.
7274         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7275
7276         (enum task_states): Remove.
7277         ada_task_states: Remove.
7278         (fat_string): Remove.
7279         (struct entry_call): Remove.
7280         (struct task_fields): Remove.
7281         (struct task_entry): Remove.
7282
7283         (struct ada_symbol_info): Define.
7284         (enum ada_attribute): Remove.
7285         (enum ada_operator): Define.
7286         
7287         (ada_get_field_index): Declare.
7288         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7289         (ada_is_simple_array): Rename to ada_is_simple_array_type.
7290         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7291         (ada_lookup_symbol_list): New interface.
7292         (ada_decode_symbol): Declare.
7293         (ada_decode): Declare.
7294         (ada_lookup_symbol): New interface.
7295         (ada_update_initial_language): Declare.
7296         (ada_lookup_simple_minsym): Declare.
7297         (user_select_syms): New interface.
7298         (ada_sals_for_line): Declare.
7299         (ada_is_tagged_type): New interface.
7300         (ada_tag_name): Declare.
7301         (ada_lookup_struct_elt_type): Remove declaration.
7302         (ada_search_struct_field): Remove declaration.
7303         (ada_attribute_name): New interface.
7304         (ada_is_system_address_type): Declare.
7305         (ada_to_fixed_value): Remove declaration.
7306         (ada_template_to_fixed_record_type_1): Declare.
7307         (get_int_var_value): New interface.
7308         (ada_find_any_symbol): Declare.
7309         (ada_find_renaming_symbol): Declare.
7310         (ada_mangle): Rename to ada_encode.
7311         (ada_simple_renamed_entity): Remove const.
7312         (ada_main_name): Declare.
7313         (get_current_task): Rename to ada_get_current_task.
7314         (get_entry_number): Remove declaration.
7315         (ada_report_exception_break): Remove declaration.
7316         (ada_print_exception_breakpoint_nontask): Declare.
7317         (ada_print_exception_breakpoint_task): Declare.
7318         (ada_find_printable_frame): Declare.
7319
7320         * ada-lex.l: Update copyright notices.
7321         Use xmalloc and xfree instead of malloc and free.
7322         Use new interface to name_lookup.
7323         Use new interface to 
7324         ada_mangle=>ada_encode.
7325         Redo handling of '$...' variable to parallel current treatment 
7326         in c-exp.y.  
7327         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7328         digit_to_int, strtoulst, processInt, processReal, processId, 
7329         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7330         yywrap): Protoize.
7331         
7332         (processInt): Use cast to remove harmless warning.
7333         (processReal): Modify to get rid of compiler warning on scan formats.
7334
7335         (processId): Replace xmalloc with obstack_alloc for name and remove
7336         call to ada_name_string_cleanup.
7337         Remove obsolete disabled code.
7338         (name_lookup): Ditto. 
7339         New interface.
7340         Use obsavestring on temp_parse_space instead of savestring 
7341         on name, and remove call to ada_name_string_cleanup.  
7342         Free string returned from ada_simple_renamed_entity.
7343         Use new interface to ada_lookup_symbol_list.
7344         Decomment disabled code.
7345         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
7346         not types.
7347         When a type name lookup succeeds as a result of 
7348         lookup_primitive_typename, check for regular type entry that has not 
7349         yet been read in.
7350         Limit length of chain of renamed symbols we are willing to follow.  
7351         Do not break names beginning with "standard__" into segments.  
7352         (block_lookup): Use new interface to ada_lookup_symbol_list.
7353         
7354         * ada-typeprint.c: Update copyright notice.
7355         (demangled_type_name): Rename to decoded_type_name.
7356         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7357         (print_range_bound):  Correct handling of negative
7358         bounds that make the index type looked unsigned under STABS.  
7359         (print_dynamic_range_bound): Use new interface to get_int_var_value.
7360         (print_range_type_named):  Use the builtin int type if no type 
7361         corresponding to the given type name could be found.
7362         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7363         Add some bullet-proofing.
7364         (print_variant_clauses): Allow for variant branches with ___XVU 
7365         encodings that are not dynamic fields.  
7366         Use new interface to ada_is_tagged_type.
7367         (print_record_type): Allow for fields with ___XVE encodings that 
7368         are not dynamic fields. 
7369         Use new interface to ada_is_tagged_type.
7370         (ada_print_type): ada_is_array_descriptor => 
7371         ada_is_array_descriptor_type.
7372
7373         * ada-valprint.c: Update copyright notice.
7374         Include gdb_string.h
7375         Include infcall.h
7376         (ui_memcpy): New function.
7377         (ada_print_floating): New function.
7378         (ada_print_str): Order arguments correctly.
7379         Correct handling of empty arrays and arrays of 0-length items. 
7380         ada_is_array_descriptor => ada_is_array_descriptor_type 
7381         Print values of type System.Address in hexadecimal format.
7382         Use ada_print_floating to print floating-point numbers in Ada format.
7383         Print class tag values with type names.  
7384         No longer print the address of reference values. Avoids 
7385         a potential confusion.  
7386         (ada_value_print): Stop printing the object type for reference
7387         values, but preserve that behavior for access types. Avoids
7388         a potential confusion.
7389         Simplify one conditional expression, as the first part is now
7390         necessarily true.
7391         ada_is_array_descriptor => ada_is_array_descriptor_type 
7392         Add check for arrays for null records, and print them by hand.
7393         
7394 2004-06-01  Jim Blandy  <jimb@redhat.com>
7395
7396         * ppc-tdep.h: Delete unused 'regoff' member.
7397         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7398
7399 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
7400
7401         Fix PR symtab/1661.
7402         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7403         (hpread_read_struct_type): Likewise.
7404
7405 2004-06-01  Andrew Cagney  <cagney@gnu.org>
7406
7407         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7408         instead of xasprintf.
7409         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
7410         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
7411         (mi_cmd_data_list_register_names) 
7412         (mi_cmd_data_list_changed_registers) 
7413         (mi_cmd_data_list_register_values) 
7414         (get_register, mi_cmd_data_write_register_values) 
7415         (mi_cmd_data_write_register_values) 
7416         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
7417         (mi_cmd_target_download, mi_cmd_target_select) 
7418         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
7419         (mi_execute_cli_command, mi_execute_async_cli_command) 
7420         (mi_execute_async_cli_command): Ditto.
7421         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7422         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7423
7424         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7425         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7426         error_last_message instead of mi_error_last_message.
7427         * mi/mi-main.c (mi_error_last_message): Delete function.
7428
7429         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7430         "invalid number of columns" error.  Delete redundant "out of
7431         memory" check.
7432
7433 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
7434
7435         * i386bsd-nat.c: Don't include <sys/procfs.h>.
7436         (gregset_t, fpregset_t): Remove typedefs.
7437         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7438         (REG_OFFSET): Rename argument.
7439         (i386bsd_r_reg_offset): Rename from reg_offset.
7440         (REG_ADDR): Remove macro.
7441         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7442         functions.
7443         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7444         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7445         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
7446         instead of supply_gregset.
7447         (store_inferior_registers): Use `struct reg' and `struct fpreg'
7448         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
7449         instead of fill_gregset.
7450         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7451
7452         * i386bsd-nat.c: Don't include "gregset.h".
7453         (supply_gregset, fill_gregset): Make static.
7454         (supply_fpregset, fill_fpregset): Remove.
7455         * Makefile.in (i386bsd-nat.o): Update dependencies.
7456
7457 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
7458
7459         * fbsd-proc.c: Include "regcache.h", "regset.h" and
7460         "gdb_assert.h".  Con't include "gregset.h".
7461         (fbsd_make_corefile_notes): Use regset-based core file support
7462         instead off fill_gregset and fill_fpregset.
7463         * Makefile.in (fbsd-proc.o): Update dependencies.
7464
7465         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7466         instructions.
7467         (m88k_frame_prev_register): Simplify code a bit.
7468
7469         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7470         (amd64_collect_fpregset): New function.
7471         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7472
7473         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7474
7475         * i386-tdep.c (i386_supply_gregset): Adjust comment.
7476         (i386_collect_gregset): New function.
7477         (i386_supply_fpregset): Adjust comment.
7478         (i386_collect_fpregset): New function.
7479         (i386_regset_from_core_section): Use i386_collect_gregset and
7480         i386_collect_fpregset.
7481
7482         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7483         handle VALUEP being null.
7484
7485         * regset.h (collect_regset_ftype): Unconstify fourth argument.
7486
7487 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
7488
7489         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
7490
7491         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7492         assembler in OpenBSD 3.5-current.
7493         (amd64obsd_sigcontext_addr): Likewise.
7494
7495 2004-05-28  Jim Blandy  <jimb@redhat.com>
7496
7497         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7498         register set, so our regcache isn't declared "legacy" and our E500
7499         pseudoregister read and write functions aren't ignored.
7500         (rs6000_register_byte, rs6000_register_raw_size,
7501         rs6000_register_virtual_type, rs6000_register_convertible,
7502         rs6000_register_convert_to_virtual,
7503         rs6000_register_convert_to_raw): Deleted.
7504         (rs6000_register_type, rs6000_convert_register_p,
7505         rs6000_register_to_value, rs6000_value_to_register): New
7506         functions.
7507         (rs6000_gdbarch_init): Don't register
7508         gdbarch_deprecated_register_size,
7509         gdbarch_deprecated_register_bytes,
7510         gdbarch_deprecated_register_byte,
7511         gdbarch_deprecated_register_raw_size,
7512         gdbarch_deprecated_register_virtual_type,
7513         gdbarch_deprecated_register_convertible,
7514         gdbarch_deprecated_register_convert_to_virtual, or
7515         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
7516         register gdbarch_register_type, gdbarch_convert_register_p,
7517         gdbarch_register_to_value, and gdbarch_value_to_register methods.
7518
7519 2004-05-26  Jim Blandy  <jimb@redhat.com>
7520
7521         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7522         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7523         functions, updated to match the register numberings used in GCC.
7524         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7525         rs6000_dwarf2_reg_to_regnum as register number conversions
7526         functions for STABS and Dwarf2.
7527
7528 2004-05-26  Randolph Chung  <tausq@debian.org>
7529
7530         * infttrace.h (target_waitkind): Forward declare type instead of pulling
7531         in header file.
7532
7533 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
7534
7535         * NEWS: Document new "start" command.
7536
7537 2004-05-25  Randolph Chung  <tausq@debian.org>
7538
7539         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7540         hppa-linux.
7541
7542 2004-05-25  Randolph Chung  <tausq@debian.org>
7543
7544         * hppa-hpux-tdep.c (offsetof): Define.
7545         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7546         (hppa32_hpux_frame_base_before_sigtramp)
7547         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7548         (hppa64_hpux_frame_saved_pc_in_sigtramp)
7549         (hppa64_hpux_frame_base_before_sigtramp)
7550         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
7551         functions.
7552         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7553         (hppa_hpux_sigtramp_frame_unwind_cache)
7554         (hppa_hpux_sigtramp_frame_this_id)
7555         (hppa_hpux_sigtramp_frame_prev_register)
7556         (hppa_hpux_sigtramp_frame_unwind)
7557         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7558         (hppa_hpux_init_abi): Register sigtramp unwinder.
7559         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7560
7561 2004-05-25  Randolph Chung  <tausq@debian.org>
7562
7563         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7564         and multiple stack unwinds.
7565         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7566
7567 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7568
7569         * symfile.h (symbol_file_add_from_memory): Delete declaration.
7570         * symfile-mem.h: Delete file.
7571         * symfile-mem.c: Do not include "symfile-mem.h".
7572         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7573         "struct bfd_section".  When an error do not bother returning NULL.
7574         (add_symbol_file_from_memory_command): Use "struct bfd" and
7575         "struct bfd_section".
7576         * Makefile.in (symfile_mem_h): Delete.
7577         (symfile-mem.o): Update dependencies.
7578
7579 2004-05-25  Nick Roberts  <nickrob@gnu.org>
7580
7581         * gdb-mi.el: New file.
7582
7583 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7584
7585         * inftarg.c: Include "observer.h".
7586         (child_attach, child_create_inferior): Notify inferior_created.
7587         * corelow.c: Include "observer.h".
7588         (core_open): Notify inferior_created.
7589         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7590
7591 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7592
7593         * target.h (struct target_ops): Add from_tty to
7594         to_create_inferior.
7595         (target_create_inferior, find_default_create_inferior): Update.
7596         * infcmd.c (run_command): Update.
7597         * wince.c (child_create_inferior): Update.
7598         * win32-nat.c (child_create_inferior): Update.
7599         * uw-thread.c (uw_thread_create_inferior): Update.
7600         * thread-db.c (thread_db_create_inferior): Update.
7601         * target.c (debug_to_create_inferior) 
7602         (find_default_create_inferior): Update.
7603         (maybe_kill_then_create_inferior): Update.
7604         * sol-thread.c (sol_thread_create_inferior): Update.
7605         * remote.c (extended_remote_async_create_inferior) 
7606         (extended_remote_create_inferior): Update.
7607         * remote-vx.c (vx_create_inferior): Update.
7608         * remote-st.c (st2000_create_inferior): Update.
7609         * remote-sim.c (gdbsim_create_inferior): Update.
7610         * remote-sds.c (sds_create_inferior): Update.
7611         * remote-rdp.c (remote_rdp_create_inferior): Update.
7612         * remote-rdi.c (arm_rdi_create_inferior): Update.
7613         * remote-m32r-sdi.c (m32r_create_inferior): Update.
7614         * remote-e7000.c (e7000_create_inferior): Update.
7615         * procfs.c (procfs_create_inferior): Update.
7616         * ocd.c (ocd_create_inferior): Update.
7617         * ocd.h (ocd_create_inferior): Update.
7618         * nto-procfs.c (procfs_create_inferior): Update.
7619         * monitor.c (monitor_create_inferior): Update.
7620         * lin-lwp.c (lin_lwp_create_inferior): Update.
7621         * inftarg.c (child_create_inferior): Update.
7622         * hpux-thread.c (hpux_thread_create_inferior): Update.
7623         * gnu-nat.c (gnu_create_inferior): Update.
7624
7625 2004-05-25  Andrew Cagney  <cagney@gnu.com>
7626
7627         * MAINTAINERS: Update e-mail address.
7628
7629 2004-05-24  Randolph Chung  <tausq@debian.org>
7630
7631         * thread.c (info_threads_command, thread_apply_all_command)
7632         (thread_apply_command, thread_command, do_captured_thread_select):
7633         Remove HPUXHPPA-specific code.
7634
7635 2004-05-24  Randolph Chung  <tausq@debian.org>
7636
7637         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7638         unused symbols.
7639         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7640         references.
7641
7642 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
7643
7644         * infcmd.c (kill_if_already_running): New function, extracted
7645         from run_command().
7646         (run_command): Replace extracted code by call to
7647         kill_if_already_running().
7648         (start_command): New function.
7649         (_initialize_infcmd): Add "start" command.
7650
7651 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7652
7653         Add OpenBSD/m88k support.
7654         * NEWS (New native configurations): Mention OpenBSD/m88k.
7655         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7656         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7657         * Makefile.in (m88k_tdep_h): New variable.
7658         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7659         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7660         * configure.host: Add m88*-*-openbsd*.
7661         * configure.tgt: Add m88*-*-openbsd*.
7662
7663 2004-05-24  Jim Blandy  <jimb@redhat.com>
7664
7665         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7666         to approve changes.
7667
7668 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
7669
7670         * symtab.c (fixup_section): Search section table when lookup by
7671         name fails.
7672
7673 2004-05-24  Randolph Chung  <tausq@debian.org>
7674
7675         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
7676         be "small_struct".
7677
7678 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7679
7680         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7681         register number in regcache_raw_collect call.
7682         (m68kbsd_collect_fpregset): Likewise.
7683         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7684
7685         * regset.h (struct regset): Add back `regset' member.
7686
7687 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
7688
7689         * configure.in: Check for td_pcb in `struct thread'.
7690         * configure, config.in: Regenerated.
7691
7692         * dpx2-nat.c: Remove file.
7693         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7694         (dpx2-nat.o): Remove dependencies.
7695
7696         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7697         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7698         (amd64obsd_supply_pcb): New function.
7699         (_initialize_amd64obsd_nat): Enable libkvm interface.
7700         * Makefile.in (amd64obsd-nat.o): Update dependencies.
7701         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7702         (LOADLIBES): New variable.
7703
7704         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7705         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7706         (sparc32nbsd_supply_pcb): New function.
7707         (_initialize_sparcnbsd_nat): Enable libkvm interface.
7708         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7709         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7710         (LOADLIBES): New variable.
7711
7712 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
7713
7714         * bsd-kvm.c, bsd-kvm.h: New files.
7715         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7716         "bsd-kvm.h".
7717         (i386fbsd_supply_pcb): New function.
7718         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7719         (i386fbsd-nat.o): Update dependencies.
7720         (bsd_kvm_h): New variable.
7721         (bsd-kvm.o): New dependency.
7722         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7723         (LOADLIBES): New variable.
7724
7725         * regset.c: Tweak comment.
7726         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
7727         macro.
7728         * regset.h: Update copyright year.
7729         (struct regset): Remove `descr' member, add `gdbarch' member.
7730         (regset_alloc): Adjust prototype and comment.
7731         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7732         (i386_supply_fpregset): Likewise.
7733         (i386_regset_from_core_section): Update call to regset_alloc.
7734         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7735         REGSET->arch.
7736         (i386obsd_aout_regset_from_core_section): Update call to
7737         regset_alloc.
7738         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7739         REGSET->arch.
7740         (i386nbsd_aout_regset_from_core_section): Update call to
7741         regset_alloc.
7742         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7743         REGSET->arch.
7744         (amd64_regset_from_core_section): Update call to regset_alloc.
7745         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7746         REGSET->arch.
7747         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7748         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7749         &sparc32nbsd_gregset in sparc32_supply_gregset call.
7750         (sparc32nbsd_init_abi): Update call to regset_alloc.
7751         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7752         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7753         (sparc64obsd_init_abi): Update call to regset_alloc.
7754         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7755         &sparc64nbsd_gregset in sparc64_supply_gregset call.
7756         (sparc64nbsd_init_abi): Update call to regset_alloc.
7757         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7758         &sparc64fbsd_gregset in sparc64_supply_gregset call.
7759         (sparc64fbsd_init_abi): Update call to regset_alloc.
7760
7761 2004-05-22  Jim Blandy  <jimb@redhat.com>
7762
7763         * ppc-tdep.h (spe_register_p): New declaration.
7764         (struct gdbarch_tdep): New members: ppc_acc_regnum and
7765         ppc_spefscr_regnum.
7766         * rs6000-tdep.c (spe_register_p): New function.
7767         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7768         spefscr.
7769         (rs6000_gdbarch_init): Initialize the new members of the tdep
7770         structure.
7771
7772 2004-05-21  Jim Blandy  <jimb@redhat.com>
7773
7774         * ppc-linux-nat.c (fetch_register): Move code back to be next
7775         to the comment that describes it.  (Moved code, instead of
7776         comment, for symmetry with store_register.)
7777
7778         Allocate regset structures in the gdbarch's obstack, not using
7779         xmalloc.
7780         * regset.c (regset_alloc): Renamed from regset_xmalloc.
7781         Add 'arch' argument.  Allocate the regset on arch's obstack, not
7782         using xmalloc.
7783         * regset.h (regset_alloc): Update declaration.
7784         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7785         gdbarch argument.
7786         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7787         * i386-tdep.c (i386_regset_from_core_section): Same.
7788         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7789         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7790         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7791         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7792         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7793         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7794
7795 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
7796
7797         * config/djgpp/fnchange.lst: Undo previous change, was useless.
7798
7799 2004-05-21  Jim Blandy  <jimb@redhat.com>
7800
7801         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7802         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
7803
7804 2004-05-20  Jim Blandy  <jimb@redhat.com>
7805
7806         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7807
7808 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
7809
7810         * regset.h: Make prototype const-correct.
7811         * regset.c (regset_xmalloc): Make const-correct.
7812
7813 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
7814
7815         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7816         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7817         (symbol_search_name): Declare.
7818         
7819         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7820         (iter_name_next_hashed): Ditto.
7821         (iter_name_next_linear): Ditto.
7822         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7823
7824         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
7825         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7826         (symbol_search_name): New function.
7827         
7828         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7829         
7830         * minsyms.c (build_minimal_symbol_hash_tables): Change
7831         test for adding to demangled hash table to check for difference
7832         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7833         
7834 2004-05-19  Jim Blandy  <jimb@redhat.com>
7835
7836         Use a constructor function to create regset structures.
7837         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7838         (struct regset): Use supply_regset_ftype.  Add new
7839         'collect_regset' member.
7840         (regset_xmalloc): New declaration.
7841         * regset.c: New file.
7842         * am64-tdep.c (amd64_regset_from_core_section): Use
7843         regset_xmalloc to construct regset structures.
7844         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7845         * i386-tdep.c (i386_regset_from_core_section): Same.
7846         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7847         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7848         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7849         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7850         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7851         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7852         * Makefile.in (COMMON_OBS): Add regset.o.
7853         (regset.o): New rule.
7854
7855 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
7856
7857         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7858         and pthread_cond_wait.c.
7859
7860 2004-05-18  Jim Blandy  <jimb@redhat.com>
7861
7862         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7863         before the mach-specific switch, and then let the individual cases
7864         override the defaults, rather than leaving them uninitialized
7865         until the switch and then setting them in each case.
7866
7867 2004-05-18  Randolph Chung  <tausq@debian.org>
7868
7869         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7870         millicode functions.
7871
7872 2004-05-18  Randolph Chung  <tausq@debian.org>
7873
7874         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7875         references to dld_flags_buffer consistent.
7876
7877 2004-05-18  Randolph Chung  <tausq@debian.org>
7878
7879         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7880         it for unwinding the stack.
7881
7882 2004-05-18  Randolph Chung  <tausq@debian.org>
7883
7884         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7885         Undefine these so we can overide them using gdbarch.
7886
7887 2004-05-18  Randolph Chung <tausq@debian.org>
7888
7889         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7890         handling for 64-bit HPUX (elf).
7891
7892 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
7893
7894         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7895         constants.
7896         * amd64-tdep.c (amd64_skip_prologue): Likewise.
7897         * ia64-tdep.c (examine_prologue): Likewise.
7898         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7899         * v850-tdep.c (v850_fix_call_dummy): Likewise.
7900
7901 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
7902
7903         * vax-tdep.c (vax_return_value): Implement
7904         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7905
7906 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7907
7908         * vax-tdep.c (vax_return_value): Fix typo.
7909
7910 2004-05-17  Andrew Cagney  <cagney@redhat.com>
7911
7912         * MAINTAINERS: Mark Salter was also responsible for
7913         testsuite/config/
7914
7915         * NEWS: Mention signal fixes.
7916
7917 2004-05-17  Randolph Chung  <tausq@debian.org>
7918
7919         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7920         check to see if we are unwinding an export stub.  Export stubs clobber
7921         the %rp in the call path and stores the original rp in a stack slot.
7922
7923 2004-05-17  Jim Blandy  <jimb@redhat.com>
7924
7925         * MAINTAINERS: Update address for J.T. Conklin.
7926
7927 2004-05-17  Randolph Chung  <tausq@debian.org>
7928
7929         * hppa-tdep.c: Remove superfluous #include's.
7930         * Makefile.in (hppa-tdep.o): Update dependencies.
7931
7932 2004-05-17  Randolph Chung  <tausq@debian.org>
7933
7934         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7935         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7936         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7937         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7938         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7939         Remove static function declarations.
7940
7941 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7942
7943         * alphabsd-nat.c: Update copyright year.
7944         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7945
7946         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7947         and M68K_A2_REGNUM.
7948
7949         * m68k-tdep.c (m68k_svr4_return_value): Implement
7950         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7951
7952 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
7953
7954         * sol-thread.c Update copyright year.  Fix various coding
7955         standards violations.  Tweak a few comments.
7956         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7957         Delete prototypes.
7958
7959 2004-05-15  Randolph Chung  <tausq@debian.org>
7960
7961         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7962         as pointer instead of array reference since HPUX compiler does
7963         not accept unsized array arguments.
7964         * somsolib.c (dld_flags_buffer): Use constant array size.
7965
7966 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
7967
7968         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7969         offset with decimal offset.
7970         (amd64obsd_sigcontext_addr): Return correct address for entire
7971         signal trampoline.
7972
7973         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7974         instead of get_frame_base.
7975
7976         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7977         (fill_gregset): Use regcache_raw_collect.
7978
7979         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7980         ppcobsd-tdep.c.
7981
7982         * config/sparc/tm-nbsd64.h: Remove file.
7983         * config/tm-sunos.h: Remove file.
7984
7985 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
7986
7987         * rs6000-tdep.c (store_param_on_stack_p): New function,
7988         an improved version of some code extracted from skip_prologue().
7989         (skip_prologue): Use store_param_on_stack_p() to detect
7990         instructions saving a parameter on the stack. Detect when r0
7991         is used to save a parameter.
7992         Do not mark "li rx, SIMM" instructions as part of the prologue,
7993         unless the following instruction is also part of the prologue.
7994
7995 2004-05-14  Andrew Cagney  <cagney@redhat.com>
7996
7997         * infrun.c (handle_inferior_event): Simplify
7998         STEP_OVER_UNDEBUGGABLE.
7999
8000         * infrun.c (handle_step_into_function): Delete function.
8001         (handle_inferior_event): Inline calls to
8002         handle_step_into_function.
8003
8004 2004-05-14  Jerome Guitton  <guitton@gnat.com>
8005
8006         * rs6000-nat.c: Fix a comment.
8007
8008 2004-05-12  David Anderson <davea@sgi.com>
8009
8010         Committed by Jim Blandy <jimb@redhat.com>:
8011         * regcache.c (struct regcache_descr): fix comment spelling.
8012
8013 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8014
8015         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8016         Fixes a link link failure.
8017
8018 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8019
8020         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8021         error that was causing the build to fail.
8022
8023 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8024
8025         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8026         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8027
8028 2004-05-13  Andrew Cagney  <cagney@redhat.com>
8029
8030         * infrun.c (handle_inferior_event): Check for
8031         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8032         calls.  Update comments.
8033
8034 2004-05-13  Jim Blandy  <jimb@redhat.com>
8035
8036         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8037         (fetch_regs_user_thread, fetch_regs_kernel_thread)
8038         (store_regs_user_thread, store_regs_kernel_thread): Use
8039         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8040         * ppc-linux-nat.c (fill_gregset): Same.
8041         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
8042         (ppc_linux_sigtramp_cache): Same.
8043         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
8044         (ppcnbsd_sigtramp_cache_init): Same.
8045         * rs6000-nat.c (fetch_core_registers): Same.
8046         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
8047         (rs6000_frame_cache): Same.
8048
8049         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8050         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8051         of assuming that the gprs are numbered starting with zero.
8052         * ppc-linux-nat.c (fill_gregset): Same.
8053         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8054         * ppcnbsd-nat.c (getregs_supplies): Same.
8055         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8056         * rs6000-nat.c (fetch_core_registers): Same.
8057         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8058
8059 2004-05-07  Michael Snyder  <msnyder@redhat.com>
8060
8061         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8062         LOC_COMPUTED_ARG, and LOC_INDIRECT.
8063
8064 2004-05-13  Andrew Cagney  <cagney@redhat.com>
8065
8066         * infrun.c (handle_inferior_event): Use frame_unwind_id.
8067
8068 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
8069
8070         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8071         base_address for shared libraries.
8072
8073 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
8074
8075         * MAINTAINERS (write after approval): Add myself.       
8076
8077 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8078
8079         * breakpoint.c (bpstat_stop_status): Add new argument
8080         STOPPED_BY_WATCHPOINT.  Use it instead of testing
8081         target_stopped_data_address agaist 0 to check whether
8082         or not we stopped due to a hardware watchpoint.
8083         * breakpoint.h (bpstat_stop_status): Adapt prototype.
8084         * infrun.c (handle_inferior_event): Call bpstat_stop_status
8085         with new argument.
8086
8087 2004-05-12  Jim Blandy  <jimb@redhat.com>
8088
8089         * configure.in: When checking whether we should use the -bbigtoc
8090         option, don't forget to restore the original value of LDFLAGS.
8091         * configure: Regenerated.
8092
8093 2004-05-12  Andrew Cagney  <cagney@redhat.com>
8094
8095         * thread.c (load_infrun_state): Delete step_sp.
8096         * infrun.c (context_switch): Ditto.
8097         * inferior.h (step_sp): Ditto.
8098         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8099         * gdbthread.h (struct thread_info, save_infrun_state)
8100         (restore_infrun_state): Ditto.
8101
8102 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
8103
8104         * MAINTAINERS (write after approval): Add myself.
8105
8106 2004-05-12  Andrew Cagney  <cagney@redhat.com>
8107
8108         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8109         eliminate reference to step_sp.
8110         (struct execution_control_state, init_execution_control_state)
8111         (handle_inferior_event, keep_going): Delete update_step_sp and
8112         step_sp.
8113         * infcmd.c (step_sp): Note that variable is unused.
8114
8115 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8116
8117         * infrun.c (step_over_function): Delete function.
8118         (handle_step_into_function): Use insert_step_resume_breakpoint.
8119         (insert_step_resume_breakpoint): Fix assertion.
8120
8121 2004-05-11  Nick Roberts  <nickrob@gnu.org>
8122
8123         * utils.c (defaulted_query): Just use the normal query input type
8124         when printing the annotations.
8125
8126 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8127
8128         * infrun.c (handle_inferior_event): Simplify code handling
8129         step-into or return-from a signal trampoline.
8130
8131 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8132
8133         * ppcnbsd-tdep.c: Include "gdb_assert.h".
8134         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8135
8136 2004-05-10  Jim Blandy  <jimb@redhat.com>
8137
8138         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8139         with a call to internal_error.
8140
8141         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8142         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8143         processor variant lacks those registers.
8144         (ppc_floating_point_unit_p): Change description to make it clear
8145         that this returns info about the ISA, not the ABI.
8146         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8147         return true or false by checking tdep->ppc_fp0_regnum and
8148         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
8149         arch/mach switching done in rs6000_gdbarch_init; it's better to
8150         keep that logic there, and just check the results here.
8151         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8152         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8153         floating-point registers.
8154         (ppc_supply_fpregset, ppc_collect_fpregset)
8155         (rs6000_push_dummy_call, rs6000_extract_return_value)
8156         (rs6000_store_return_value): Assert that we have floating-point
8157         registers.
8158         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8159         (rs6000_frame_cache): Don't note the locations at which
8160         floating-point registers were saved if we have no fprs.
8161         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8162         registers.
8163         (fetch_regs_user_thread, fetch_regs_kernel_thread)
8164         (store_regs_user_thread, store_regs_kernel_thread): Only call
8165         supply_fprs / fill_fprs if we actually have floating-point
8166         registers.
8167         (special_register_p): Check ppc_fpscr_regnum before matching
8168         against it.
8169         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8170         supply / collect fpscr if we don't have it.
8171         * ppc-bdm.c: #include "gdb_assert.h".
8172         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8173         have floating-point registers, since I can't test this code on
8174         FP-free systems to adapt it.
8175         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8176         fpscr and floating point register numbers if they don't exist.
8177         (fetch_register): Assert that we have floating-point registers
8178         before we reach the code that handles them.
8179         (store_register): Same.  And use tdep instead of calling
8180         gdbarch_tdep again.
8181         (fill_fpregset): Don't try to collect FP registers and fpscr if we
8182         don't have them.
8183         (ppc_linux_sigtramp_cache): Don't record the saved locations of
8184         fprs and fpscr if we don't have them.
8185         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8186         don't have them.
8187         * ppcnbsd-nat.c: #include "gdb_assert.h".
8188         (getfpregs_supplies): Assert that we have floating-point registers.
8189         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8190         * ppcobsd-tdep.c: #include "gdb_assert.h".
8191         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8192         have floating-point registers.
8193         * rs6000-nat.c (regmap): Don't match against the fpscr and
8194         floating point register numbers if they don't exist.
8195         (fetch_inferior_registers, store_inferior_registers,
8196         fetch_core_registers): Only fetch / store / supply the
8197         floating-point registers and the fpscr if we have them.
8198         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8199         (ppcobsd-tdep.o): Update dependencies.
8200         
8201 2004-05-10  Andrew Cagney  <cagney@redhat.com>
8202
8203         * infrun.c (through_sigtramp_breakpoint): Delete variable.
8204         (context_switch): Do not switch through_sigtramp_breakpoint.
8205         * gdbthread.h (save_infrun_state, load_infrun_state)
8206         (struct thread_info): Delete through_sigtramp_breakpoint parameter
8207         and structure member.
8208         * thread.c (load_infrun_state, save_infrun_state): Update.
8209
8210 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
8211
8212         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8213
8214 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8215
8216         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
8217         throughout.
8218         * aclocal.m4: Regenerate.
8219
8220 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
8221
8222         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8223
8224 2004-05-10  Andrew Cagney  <cagney@redhat.com>
8225
8226         * infrun.c (check_sigtramp2): Delete function.
8227         (handle_inferior_event): When single stepping, and taking a
8228         signal, set a breakpoint at the signal return address.  Delete
8229         redundant calls to check_sigtramp2.
8230         (insert_step_resume_breakpoint): New function.
8231         (through_sigtramp_breakpoint, handle_inferior_event)
8232         (follow_exec, wait_for_inferior, fetch_inferior_event)
8233         (currently_stepping, keep_going): Delete most uses of
8234         through_sigtramp_breakpoint, not that it should be deleted.
8235         (delete_breakpoint_current_contents): Delete function.
8236
8237 2004-05-10  Randolph Chung  <tausq@debian.org>
8238
8239         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8240         target.
8241         * config/pa/tm-linux.h: New file.
8242
8243 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
8244
8245         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8246         of prefixes.  Don't print the prefix twice in the CLI.
8247
8248 2004-05-10  Jim Blandy  <jimb@redhat.com>
8249
8250         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8251         collect all the gprs.
8252
8253         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8254         loop collecting gprs.
8255
8256 2004-05-09  Andrew Cagney  <cagney@redhat.com>
8257
8258         * remote-vx.c (net_step): Delete step-range code.
8259         * remote.c (remote_resume, init_all_packet_configs)
8260         (set_remote_protocol_E_packet_cmd)
8261         (show_remote_protocol_E_packet_cmd)
8262         (remote_protocol_E, show_remote_cmd, _initialize_remote)
8263         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8264         (show_remote_protocol_e_packet_cmd): Ditto.
8265
8266 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
8267
8268         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8269
8270         * hppa-tdep.h: Update copyright year.
8271         (struct trad_frame_saved_reg): Add opaque declaration.
8272
8273         * amd64-tdep.c (amd64_return_value): Implement
8274         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8275
8276         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8277         (m68k_value_to_register): New functions.
8278         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8279         value_to_register.
8280
8281         * defs.h (enum return_value_convention): Add
8282         RETURN_VALUE_ABI_RETURNS_ADDRESS and
8283         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8284         * infcmd.c (legacy_return_value): New function.
8285         (print_return_value): Rwerite to implement
8286         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8287         * values.c (using_struct_return): Check for inequality to
8288         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8289         RETURN_VALUE_STRUCT_CONVENTION.
8290         * i386-tdep.c (i386_return_value): Implement
8291         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8292
8293         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
8294         include "symtab.h", "opcode/vax.h" and "inferior.h".
8295         (vax_skip_prologue): Replace calls to read_memory_integer by calls
8296         to read_memory_unsigned_integer.
8297         (vax_gdbarch_init): Reorder.
8298         (_initialize_vax_tdep): Spell out prototype.
8299         * Makefile.in (vax-tdep.o): Update dependencies.
8300
8301 2004-05-08  Andrew Cagney  <cagney@redhat.com>
8302
8303         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8304         * target.c (target_detach, target_disconnect): Ditto.
8305
8306         * infcall.c (call_function_by_hand): When no
8307         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8308         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8309         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8310         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8311         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8312         
8313         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8314         * gdbarch.h, gdbarch.c: Re-generate.
8315         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8316         deprecated_fix_call_dummy.
8317         * v850-tdep.c (v850_gdbarch_init): Ditto.
8318         * infcall.c (call_function_by_hand): Do not call
8319         DEPRECATED_FIX_CALL_DUMMY.
8320
8321         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8322         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8323         * gdbarch.h, gdbarch.c: Re-generate.
8324         * arm-linux-tdep.c (arm_linux_call_dummy_words)
8325         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8326         deprecated_sizeof_call_dummy_words.
8327         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8328         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8329         * v850-tdep.c (v850_gdbarch_init): Ditto.
8330         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8331         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8332         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8333         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8334         * arch-utils.h (legacy_call_dummy_words)
8335         (legacy_sizeof_call_dummy_words): Delete declarations.
8336         * arch-utils.c (legacy_call_dummy_words)
8337         (legacy_sizeof_call_dummy_words): Delete variables.
8338
8339         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8340         * gdbarch.h, gdbarch.c: Re-generate.
8341         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8342         * infcall.c (call_function_by_hand): Eliminate call to
8343         DEPRECATED_PUSH_DUMMY_FRAME.
8344         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8345         push_dummy_frame.
8346         (ns32k_push_dummy_frame): Delete function.
8347
8348         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8349         deprecated_call_dummy_breakpoint_offset or
8350         deprecated_call_dummy_start_offset.
8351         * dummy-frame.c, arm-tdep.c: Update comments.
8352         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8353         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8354         * gdbarch.h, gdbarch.c: Re-generate.
8355         
8356         * infcall.c (legacy_push_dummy_code): Delete function.
8357         (push_dummy_code): Delete call.
8358
8359         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8360         * gdbarch.h, gdbarch.c: Re-generate.
8361         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8362         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8363         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8364         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8365
8366         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8367         (struct frame_info): Delete opaque declaration.
8368         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8369         * frame.c (get_frame_type): Delete call.
8370
8371         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8372         pc_in_call_dummy.
8373         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8374         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8375
8376 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8377
8378         * alphanbsd-tdep.c: Include "gdb_string.h".
8379         * armnbsd-tdep.c: Update copyright year.
8380         Include "gdb_string.h".
8381         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8382         dependencies.
8383
8384         * delta68-nat.c: Remove file.
8385         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8386         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8387         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8388         (delta68-nat.o): Remove dependency.
8389
8390         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8391         function.
8392         (m68k_gdbarch_init): Don't set
8393         deprecated_frameless_function_invocation.
8394
8395 2004-05-07  Randolph Chung  <tausq@debian.org>
8396
8397         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
8398         read_memory_nobpt for code reading when doing frame unwinding.
8399         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8400
8401 2004-05-07  Randolph Chung  <tausq@debian.org>
8402
8403         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8404         instead of sp, handle sigaltstack case.
8405         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
8406         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8407         signal handler and not that of the caller.
8408         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8409         hppa_linux_sigtramp_find_sigcontext.
8410
8411 2004-05-07  Randolph Chung  <tausq@debian.org>
8412
8413         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8414         hppa-linux-nat.c.
8415         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8416         * hppa-linux-nat.c (fetch_register, store_register): Define.
8417         (fetch_inferior_registers, store_inferior_registers): Define.
8418         (supply_gregset): Add comment and clean up some unneeded code.
8419         (fill_gregset): Add comment and fix so that it saves registers in
8420         the right place in the gregset.
8421         (fill_fpregset): Fix buffer overrun problem.
8422         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8423
8424 2004-05-07  Randolph Chung  <tausq@debian.org>
8425
8426         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
8427         do common handling of the pcoqt register.
8428         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8429         to use helper function.
8430         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8431         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8432         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8433         generic fallback unwinder when all else fails.
8434         (hppa_gdbarch_init): Add fallback sniffer.
8435         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8436         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8437         to use helper function.
8438
8439 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
8440
8441         * config/djgpp/fnchange.lst: Add translation rules for
8442         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8443
8444 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8445
8446         * frame.c (get_prev_frame_1): Work around GCC bug.
8447         * frame.h: Add comment about GCC bug.
8448
8449 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8450
8451         * observer.c: Include "commands.h" and "gdbcmd.h".
8452         (observer_debug, _initialize_observer): Add the
8453         command "set/show debug observer".
8454         * observer.sh: When observer debugging, log notify calls.
8455         * Makefile.in (observer.o): Update dependencies.
8456
8457 2004-05-07  Jason Molenda  (jmolenda@apple.com)
8458
8459         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8460
8461 2004-05-07  Jim Blandy  <jimb@redhat.com>
8462
8463         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8464         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8465         to recognize gpr regnums, instead of assuming that
8466         tdep->ppc_fp0_regnum marks the end of the general-purpose
8467         registers.
8468
8469         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8470         the given architecture has floating-point registers. 
8471
8472 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8473
8474         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8475         macro defined to 1.
8476         * gdbarch.h, gdbarch.c: Re-generate.
8477         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8478         deprecated_use_generic_dummy_frames.
8479
8480 2004-05-07  Brian Ford  <ford@vss.fsi.com>
8481
8482         * NEWS: Mention Cygwin DWARF 2 support.
8483
8484 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8485
8486         * objfiles.h (struct entry_info): Delete unused fields
8487         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8488         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8489         * mipsread.c (mipscoff_symfile_read): Update.
8490         * mdebugread.c (parse_partial_symbols): Update.
8491         * dwarfread.c (read_file_scope): Update.
8492         * dwarf2read.c (read_file_scope): Update.
8493         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8494         * coffread.c (complete_symtab): Update.
8495
8496 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
8497
8498         * infcall.c (_initialize_infcall): Fix typo.
8499
8500 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8501
8502         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8503         * command.h (add_setshow_zinteger_cmd): Declare.
8504
8505 2004-05-06  Randolph Chung  <tausq@debian.org>
8506
8507         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8508         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8509         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8510         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8511         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8512         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8513         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
8514         definitions ...
8515         * hppa-tdep.h: ... to here, with HPPA_ prefix.
8516         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8517         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8518         (hppa64_hpux_frame_find_saved_regs_in_sig)
8519         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8520         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8521         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8522         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8523         (hppa_linux_sigtramp_frame_prev_register): Likewise.
8524         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8525         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8526         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8527         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8528         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8529         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8530         (hppa32_register_type, hppa_cannot_store_register)
8531         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8532         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8533         * hpread.c (hpread_process_one_debug_symbol): Likewise.
8534         * pa64solib.c (pa64_solib_have_load_event)
8535         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8536         (pa64_solib_unloaded_library_pathname): Likewise.
8537         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8538         (som_solib_library_pathname): Likewise.
8539
8540 2004-05-05  Jim Ingham  <jingham@apple.com>
8541         
8542         * breakpoint.c (create_breakpoints): Copy the ignore count and
8543         thread id over from the pended breakpoint to the actual
8544         breakpoint.
8545         
8546 2004-05-05  Andrew Cagney  <cagney@redhat.com>
8547
8548         * gdbarch.sh (PARM_BOUNDARY): Delete.
8549         gdbarch.h, gdbarch.c: Re-generate.
8550         * valops.c (PARM_BOUNDARY): Delete macro.
8551         (value_push): Delete PARM_BOUNDARY code.
8552         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8553
8554 2004-05-04  Jim Blandy  <jimb@redhat.com>
8555
8556         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8557         Don't assume that the gprs, fprs, and UISA sprs are
8558         contiguous, start at register number zero, and end with fpscr.
8559         Instead, use the numbers from the tdep structure.
8560
8561         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8562         should no longer be used in code specific to the RS6000 and its
8563         derivatives.
8564         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8565         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8566         tdep->ppc_fp0_regnum.
8567         (ppc_supply_fpregset, ppc_collect_fpregset)
8568         (rs6000_push_dummy_call, rs6000_extract_return_value)
8569         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8570         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8571         FP0_REGNUM. 
8572         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8573         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8574         Same.
8575         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8576         bdm_ppc_store_registers): Same.
8577         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
8578         (store_register, fill_fpregset): Same.
8579         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
8580         (ppc_linux_supply_fpregset): Same.
8581         * ppcnbsd-nat.c (getfpregs_supplies): Same.
8582         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8583         Same.
8584         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8585         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8586         ppc64_sysv_abi_return_value): Same.
8587         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8588         (store_inferior_registers, fetch_core_registers): Same.
8589
8590 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8591
8592         * m68knbsd-nat.c: Remove file.
8593         * m68knbsd-tdep.c: Remove file.
8594         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8595         dependencies.
8596         * configure.host: Add m68k-*-netbsdelf*.
8597         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8598         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8599         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
8600         (XM_FILE): Remove.
8601         * config/m68k/nbsdelf.mh: New file.
8602         * config/m68k/nbsd.mt: New file.
8603         * config/m68k/nbsdaout.mt: Remove file.
8604         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8605         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
8606         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8607         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8608         (use_struct_convention): Remove prototype.
8609         (USE_STRUCT_CONVENTION): Remove define.
8610         * config/m68k/xm-nbsd.h: Remove file.
8611
8612 2004-05-04  Michael Snyder  <msnyder@redhat.com>
8613
8614         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
8615         reg_struct_return method (as gcc usually does for cross targets).
8616
8617 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8618
8619         Committed by Andrew Cagney.
8620         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8621         alignment padding when accessing ucontext struct members.
8622
8623 2004-05-04  Jim Blandy  <jimb@redhat.com>
8624
8625         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8626         'ppc_gplast_regnum' member.
8627         (ppc_num_gprs): New enum constant.
8628         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8629         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8630         * rs6000-nat.c (regmap, fetch_inferior_registers,
8631         store_inferior_registers): Same.
8632         * rs6000-tdep.c (e500_pseudo_register_read)
8633         (e500_pseudo_register_write): Same.
8634         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8635
8636         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8637         * ppc-tdep.h (ppc_num_fprs): New enum constant.
8638         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8639         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8640         FPLAST_REGNUM.
8641         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8642         Same.
8643         * ppc-linux-nat.c (ppc_register_u_addr): Same.
8644         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8645         (store_inferior_registers): Same.
8646
8647         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8648         with FPLAST_REGNUM.
8649
8650 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
8651
8652         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8653         failure detected by recent versions of GCC.
8654         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8655         to be consistent with the usage in dwarf2_create_include_psymtab.
8656
8657 2004-05-03  Michael Snyder  <msnyder@redhat.com>
8658
8659         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8660         (heuristic_proc_start): Whitespace cleanup.
8661
8662 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
8663
8664         * sun3-nat.c: Remove file.
8665         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8666         dependencies.
8667         (ALLDEPFILES): Remove sun3-nat.c.
8668         (sun3-nat.o): Remove dependencies.
8669
8670         * i386-interix-nat.c, i386-interix-tdep.c,
8671         config/i386/nm-interix.h, config/i386/interix.mh,
8672         config/i386/interix.mt: Remove files.
8673         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8674         dependencies.
8675
8676 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
8677
8678         * m68k-tdep.h (struct gdbarch_tdep): Add member
8679         struct_value_regnum.
8680         (m68k_svr4_init_abi): New prototype.
8681         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
8682         different calling conventions.
8683         (m68k_extract_return_value): Remove code dealing with single-field
8684         structs.
8685         (m68k_store_return_value): Remove code dealing with single-field
8686         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
8687         (m68k_extract_struct_value_address): Remove function.
8688         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8689         (m68k_reg_struct_return_p, m68k_return_value)
8690         (m68k_svr4_return_value): New functions.
8691         (m68k_use_struct_convention): Remove function.
8692         (m68k_push_dummy_call): Use new struct_value_regnum member of
8693         `struct gdbarch_tdep' instead of hardcoded register number to
8694         store STRUCT_ADDR.
8695         (m68k_svr4_init_abi): New function.
8696         (m68k_gdbarch_init): Don't set extract_return_value,
8697         store_return_values, deprecated_extract_struct_value_address and
8698         use_struct_convention.  Set return_value instead.  Initialize new
8699         struct_value_regnum member of `struct gdbarch_tdep'.
8700         * m68klinux-tdep.c: Update copyright year.
8701         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8702         (m68k_linux_extract_struct_value_address): Remove function.
8703         (m68k_linux_init_abi): Don't set extract_return_value,
8704         store_return_values, deprecated_extract_struct_value_address and
8705         use_struct_convention.  Call m68k_svr4_init_abi but override the
8706         new struct_value_regnum member of `struct gdbarch_tdep'.
8707         * Makefile.in (m68k-tdep.o): Update dependencies.
8708
8709 2004-05-03  J. Brobecker  <brobecker@gnat.com>
8710
8711         * dwarf2read.c (line_header): Add new included_p field in
8712         field file_names.
8713         (partial_die_info): New field has_stmt_list. New field line_offset.
8714         (dwarf2_create_include_psymtab): New function.
8715         (dwarf2_build_include_psymtabs): New function.
8716         (add_file_name): Add forward declaration. Initialize new field.
8717         (dwarf_decode_lines): Add new parameter. Enhance this procedure
8718         to be able to determine the list of files included by the
8719         given unit, and build their associated psymtabs.
8720         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8721         files as well.
8722         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8723         (read_file_scope): Update call to dwarf_decode_lines.
8724         (read_partial_die): Handle DW_AT_stmt_list attributes.
8725
8726 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
8727
8728         Unfix PR gdb/1626.
8729         * configure.in: Revert special case for osf5.*.
8730         * configure: Regenerate.
8731
8732 2004-05-02  Jim Blandy  <jimb@redhat.com>
8733
8734         Move the symbol-file-from-memory functions into their own file.
8735         * symfile-mem.c, symfile-mem.h: New files.
8736         * symfile.c (symbol_file_add_from_bfd): New function.
8737         (symbol_file_add): Call symbol_file_add_from_bfd.
8738         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8739         Moved to symfile-mem.c.
8740         (_initialize_symfile): Move definition of
8741         add-symbol-file-from-memory command to symfile-mem.c.
8742         * symfile.h (symbol_file_add_from_bfd): New declaration.
8743         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8744         * config/powerpc/linux.mt (TDEPFILES): Same.
8745         * Makefile.in (SFILES): Add symfile-mem.c.
8746         (symfile_mem_h): New variable.
8747         (HFILES_NO_SRCDIR): Add symfile-mem.h.
8748         (symfile-mem.o): New rule.
8749
8750 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8751
8752         * breakpoint.c (insert_bp_location): Use get_frame_id, and
8753         frame_find_by_id instead of frame_relative_level.
8754         (do_enable_breakpoint): Ditto.
8755         * thread.c: Update copyright.
8756         (info_threads_command): Ditto, simplify.
8757
8758         * frame.c (deprecated_generic_get_saved_register): Delete
8759         function, moved to "xstormy16-tdep.c".
8760         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8761         deprecated_generic_get_saved_register from "frame.c".
8762         (xstormy16_frame_saved_register): Call
8763         xstormy16_get_saved_register.
8764         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8765         static.
8766         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8767         * frame.h (deprecated_generic_get_saved_register): Delete.
8768
8769 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
8770
8771         * dwarfread.c: Update documentation on the state of dwarf-1.
8772
8773 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8774
8775         * stack.c (select_frame_command): Delete call to
8776         frame_relative_level.
8777         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8778         Delete #if0 code.
8779         (frame_info): Do not print FRAMELESS.
8780         (print_block_frame_labels): Replace DEPRECATED_STREQ.
8781         (catch_info): Delete #if0 code.
8782
8783         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8784         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8785         of frame_relative_level.
8786         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8787         to SENTINEL_FRAME.
8788         * frame.h (enum frame_type): Add SENTINEL_FRAME.
8789         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8790         frame_relative_level.
8791
8792         * frame.h (deprecated_set_frame_type): Delete declaration.
8793         * frame.c (deprecated_set_frame_type): Delete function, update
8794         comments.
8795
8796         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8797         * gdbarch.h, gdbarch.c: Re-generate.
8798         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8799         (shnbsd_pc_in_sigtramp): Delete.
8800         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8801         pc_in_sigtramp.
8802         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8803         pc_in_sigtramp.
8804         * frame.h: Update comments.
8805         * ppc-linux-tdep.c: Update comments.
8806         * breakpoint.c (bpstat_what): Update comments.
8807
8808         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8809         m68klinux-tdep.o's dependencies, were previously added to
8810         m68klinux-nat.o.
8811
8812         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8813         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8814         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8815         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8816         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8817
8818         * Makefile.in (m68klinux-nat.o): Update dependencies.
8819         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8820         (m68k_linux_sigtramp_frame_cache)
8821         (m68k_linux_sigtramp_frame_this_id)
8822         (m68k_linux_sigtramp_frame_prev_register)
8823         (m68k_linux_sigtramp_frame_unwind)
8824         (m68k_linux_sigtramp_frame_sniffer)
8825         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8826         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8827         names, use trad-frame.h.
8828         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8829         (struct m68k_sigtramp_info): Delete.
8830         * m68k-tdep.c (m68k_sigtramp_frame_cache)
8831         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8832         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8833         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8834         "m68klinux-tdep.c".
8835
8836         * infrun.c (check_sigtramp2): Delete check for
8837         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8838
8839 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8840
8841         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8842
8843 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8844
8845         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8846         (frv_linux_sigtramp_frame_cache)
8847         (frv_linux_sigtramp_frame_this_id)
8848         (frv_linux_sigtramp_frame_prev_register)
8849         (frv_linux_sigtramp_frame_unwind)
8850         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8851         include "linux" in function and variable names, directly call
8852         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8853         the latest trad-frame code.
8854         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8855         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8856         * Makefile.in (frv-linux-tdep.o): Update dependencies.
8857         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8858         * frv-tdep.c (frv_sigtramp_frame_cache)
8859         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8860         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8861         frv-linux-tdep.c.
8862         (frv_gdbarch_init): Do not append a sigtramp sniffer.
8863         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8864         (frv_set_sigcontext_reg_addr): Delete function.
8865
8866         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8867         (DEPRECATED_SIGTRAMP_END): Delete.
8868         * gdbarch.h, gdbarch.c: Re-generate.
8869         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8870         * config/vax/tm-vaxbsd.h: Update copyright.
8871         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8872         (DEPRECATED_IN_SIGTRAMP): Define.
8873         * config/m68k/tm-nbsd.h: Update copyright.
8874         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8875         (DEPRECATED_IN_SIGTRAMP): Define.
8876
8877 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8878
8879         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8880         encondings.  Fixes PR gdb/1628.
8881
8882         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8883         DW_CFA_restore state without a matching DW_CFA_remember_state
8884         instead of aborting.  Fixes PR backtrace/1589.
8885
8886 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
8887
8888         * MAINTAINERS: Add self as AIX maintainer.
8889         Update my e-mail address in write-after-approval section.
8890
8891 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8892
8893         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8894         (legacy_get_prev_frame): Ditto.
8895
8896         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8897         (mips_gdbarch_init): Do not set pc_in_sigtramp.
8898         * mipsread.c (sigtramp_address): Delete extern variable.
8899         (mipscoff_new_init): Delete reference.
8900         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8901         (fixup_sigtramp): Delete function.
8902         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8903         (fixup_sigtramp): Delete declarations.
8904
8905         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8906         deprecated_pc_in_sigtramp.
8907         (ppcnbsd_pc_in_sigtramp): Delete function.
8908
8909 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8910
8911         * config/m68k/nm-nbsd.h: Tweak comments.
8912         * config/m68k/nm-nbsdaout.h: Likewise.
8913
8914 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8915
8916         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8917         legacy_pc_in_sigtramp.
8918         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8919
8920 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8921
8922         Add OpenBSD/m68k support.
8923         * NEWS (New native configurations): Mention OpenBSD/m68k.
8924         * m68kbsd-tdep.c: New file.
8925         * m68kbsd-nat.c: New file.
8926         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8927         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8928         * configure.host: Add m68k-*-openbsd.
8929         * configure.tgt: Add m68k-*-openbsd.
8930         * config/m68k/tm-obsd.h: New file.
8931         * config/m68k/obsd.mt: New file.
8932         * config/m68k/obsd.mh: New file.
8933         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8934         m68kbsd-tdep.c.
8935
8936 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8937
8938         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8939         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8940
8941 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
8942
8943         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8944         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8945
8946 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8947
8948         Revert 2004-04-16 change.
8949         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8950         (i386_coff_init_abi): Remove.
8951         * i386-tdep.h (i386_coff_init_abi): Remove.
8952         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8953
8954 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8955
8956         * blockframe.c (find_pc_partial_function): Delete use of
8957         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8958         DEPRECATED_SIGTRAMP_END.
8959
8960         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8961         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8962         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8963         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8964         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8965
8966         * defs.h (deprecated_inside_entry_file): Delete declaration.
8967         * blockframe.c (deprecated_inside_entry_file): Delete function.
8968         (legacy_frame_chain_valid): Delete call.
8969         * sh64-tdep.c (sh64_frame_chain): Delete call.
8970         * objfiles.h: Update comments.
8971         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8972         call.
8973         * frame.c (get_prev_frame): Delete call, update comments.
8974
8975 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8976
8977         * MAINTAINERS (Write After Approval): Add myself.
8978
8979 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8980
8981         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8982         * gdbarch.h, gdbarch.c: Re-generate.
8983         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8984         code.
8985
8986 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8987
8988         * gdb-events.sh (selected_thread_changed)
8989         (selected_frame_level_changed, target_changed): Delete.
8990         * gdb-events.h, gdb-events.c: Re-generate.
8991         * valops.c (value_assign): Update.
8992         * stack.c (select_frame_command, up_silently_base)
8993         (down_silently_base): Update.
8994
8995 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8996
8997         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8998         registers correctly.
8999         (print_gp_register_row, mips32_heuristic_proc_desc)
9000         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
9001         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
9002         references to mips_isa_regsize.
9003
9004 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9005
9006         * mips-tdep.c (struct gdbarch_tdep): Delete
9007         mips_fp_register_double.
9008         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9009         mips_abi_regsize.
9010         (mips_gdbarch_init): Do not set mips_fp_register_double.
9011         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9012
9013 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
9014
9015         Committed by Andrew Cagney.
9016         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9017         function calls.
9018
9019 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9020
9021         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9022         gdbarch, use mips_abi, update callers.
9023         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9024         mips_abi_regsize, update callers.
9025         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9026         mips_default_abi_regsize.
9027         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9028         mips_default_abi_regsize.
9029
9030 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9031
9032         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9033         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9034         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9035         mips_default_abi_regsize.
9036         (mips_isa_regsize): Rename mips_regisze.
9037         * mipsnbsd-tdep.c: Update.
9038         * mips-linux-tdep.c: Update.
9039         * irix5-nat.c: Update.
9040         * mips-tdep.h (mips_isa_regsize): Update.
9041
9042         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9043         Delete all disabled code.
9044         * gdb-events.h, gdb-events.c: Re-generate.
9045         
9046 2004-04-19  Jerome Guitton  <guitton@gnat.com>
9047             Mark Kettenis  <kettenis@gnu.org>
9048
9049         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9050         the function begins with a branch instruction.
9051
9052 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
9053
9054         * i386-tdep.c: Fix spelling mistakes.
9055
9056 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9057             Andrew Cagney  <cagney@redhat.com>
9058
9059         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9060         <sys/proc.h>.
9061         * acconfig.h: Provide default _KMEMUSER value.
9062         * config.in, configure: Re-generate.
9063         * NEWS: Mention fix.
9064
9065 2004-04-24  Randolph Chung  <tausq@debian.org>
9066
9067         * configure.host (hppa*-*-linux*): New target.
9068         * configure.tgt (hppa*-*-linux*): Likewise.
9069         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9070         gdbarch_init_osabi() call earlier so that osabi-specific frame
9071         unwinders can be registered first.
9072         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9073         hppa-linux-nat.c.
9074         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9075         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9076         * config/pa/linux.mh: New file.
9077         * config/pa/linux.mt: New file.
9078         * config/pa/nm-linux.h: New file.
9079         * config/pa/xm-linux.h: New file.
9080         * hppa-linux-nat.c: New file.
9081         * hppa-linux-tdep.c: New file.
9082
9083 2004-04-28  Randolph Chung  <tausq@debian.org>
9084
9085         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9086         return values.
9087         (hppa32_push_dummy_call): Fix small struct and floating point argument 
9088         passing, and make sure the stack frame is properly aligned.
9089
9090 2004-04-28  Andrew Cagney  <cagney@redhat.com>
9091
9092         * stack.c (print_stack_frame): Fix description.
9093
9094         * NEWS: Mention gdb/gdbserver/configure execute permission
9095         changed.  PR server/519.
9096
9097 2004-04-28  Andrew Cagney  <cagney@redhat.com>
9098
9099         * stack.c (print_stack_frame_stub): Delete declaration.
9100         (struct print_stack_frame_args, print_stack_frame)
9101         (print_frame_info, print_frame): Replace "source" with print what.
9102         Replace "print" with "print_level".  Replace "args" with
9103         "print_args".
9104         * frame.h (show_and_print_stack_frame, print_stack_frame)
9105         (print_frame_info): Update declarations.
9106         * stack.c (select_and_print_frame, frame_command)
9107         (current_frame_command, up_command, down_command): Update calls -
9108         use get_selected_frame, pass "enum print_what" for source, do not
9109         call frame_relative_level.
9110         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9111         * remote-rdp.c (remote_rdp_open): Ditto.
9112         * remote-mips.c (common_open): Ditto.
9113         * remote-e7000.c (e7000_start_remote): Ditto.
9114         * ocd.c (ocd_start_remote): Ditto.
9115         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9116         * infrun.c (normal_stop): Ditto.
9117         * inflow.c (kill_command): Ditto.
9118         * infcmd.c (finish_command): Ditto.
9119         * corelow.c (core_open): Ditto.
9120         * tracepoint.c (finish_tfind_command): Ditto.
9121         * thread.c (info_threads_command, info_threads_command) 
9122         (restore_current_thread, do_captured_thread_select): Ditto.
9123         * ada-tasks.c (task_command): Ditto.
9124
9125 2004-04-26  Orjan Friberg <orjanf@axis.com>
9126
9127         * frame.c: Include "observer.h".
9128         (frame_observer_target_changed): New function.
9129         (_initialize_frame): Attach target_changed observer.
9130         * regcache.c: Include "observer.h".
9131         (regcache_observer_target_changed): New function.
9132         (_initialize_regcache): Attach target_changed observer.
9133         * valops.c: Include "observer.h".
9134         (value_assign): Notify target_changed event when modifying register.
9135         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9136
9137 2004-04-26  Orjan Friberg <orjanf@axis.com>
9138
9139         From Paul Koning <pkoning@equallogic.com>:
9140         * breakpoint.c (free_valchain): New function.
9141         (insert_bp_location, delete_breakpoint): Use free_valchain.
9142         (remove_breakpoint): Do not remove the valchain.
9143         (bpstat_stop_status): If not stopped by watchpoint, skip
9144         watchpoints when generating stop status list.
9145         * infrun.c (handle_inferior_event): Make
9146         stepped_after_stopped_by_watchpoint a global variable.
9147         * remote.c (remote_stopped_data_address): Return watch data
9148         address rather than zero if stepped_after_stopped_by_watchpoint is
9149         set.
9150
9151 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
9152
9153         Fix PR gdb/1626.
9154         * configure.in: Check for curses after termcap.
9155         On osf5.*, do not check for ncurses.
9156         * configure: Regenerate.
9157
9158 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
9159
9160         * ppcobsd-nat.c: Include "ppc-tdep.h".
9161         * Makefile.in (ppcobsd-nat.o): Update dependencies.
9162
9163         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9164         Fixes PR tdep/1623 and PR tdep/1624.
9165
9166 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
9167
9168         * xmodem.h, xmodem.c: Remove files.
9169         * Makefile.in: Remove references to xmodem.h, xmodem.c.
9170
9171 2004-04-23  Randolph Chung  <tausq@debian.org>
9172
9173         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9174         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9175         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9176         for handling stackless frames.
9177         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
9178
9179 2004-04-23  Randolph Chung  <tausq@debian.org>
9180
9181         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9182         starts at a pc before the frame is created.
9183
9184 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
9185
9186         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9187
9188 2004-04-23  Jerome Guitton  <guitton@gnat.com>
9189
9190         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9191         use convert_typed_floating to get the appropriate format.
9192
9193 2004-04-22  Randolph Chung  <tausq@debian.org>
9194
9195         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9196         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9197         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9198         (hppa_sign_extend): Add prototype.
9199         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9200         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9201         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
9202         hppa targets will also use these functions.
9203         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9204         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9205         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9206         (hppa_gdbarch_init): Remove gdbarch setting of 
9207         skip_trampoline_code, in_solib_call_trampoline and
9208         in_solib_return_trampoline.
9209         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9210         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9211         hppa_in_solib_call_trampoline.
9212         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9213         Moved from hppa-tdep.c.
9214         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
9215         in_solib_call_trampoline and in_solib_return_trampoline.
9216
9217 2004-04-22  Randolph Chung  <tausq@debian.org>
9218
9219         * hppa-tdep.c (hppa_debug): New variable.
9220         (find_unwind_entry, hppa_frame_cache): Add debug output.
9221         (_initialize_hppa_tdep): Add command to set debug flag.
9222
9223 2004-04-22  Andrew Cagney  <cagney@redhat.com>
9224
9225         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
9226         "trad-frame.h".
9227         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9228         signal trampoline unwinder.
9229         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9230
9231 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
9232
9233         Add OpenBSD/powerpc support.
9234         * NEWS (New native configurations): Mention OpenBSD/powerpc.
9235         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9236         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9237         (ppc_collect_fpregset): New prototypes.
9238         * ppcobsd-nat.c: New file.
9239         * ppcobsd-tdep.c: New file.
9240         * ppcobsd-tdep.h: New file.
9241         * rs6000-tdep.c: Include "regset.h".
9242         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9243         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9244         New functions.
9245         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9246         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9247         (rs6000-tdep.o): Update dependencies.
9248         * configure.host: Add powerpc-*-openbsd.
9249         * configure.tgt: Add powerpc-*-openbsd.
9250         * config/powerpc/obsd.mh: New file.
9251         * config/powerpc/nm-obsd.h: New file.
9252         * config/powerpc/obsd.mt: New file.
9253
9254 2004-04-22  Andrew Cagney  <cagney@redhat.com>
9255
9256         * frame.h (show_frame_info): Delete declaration.
9257
9258         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9259         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9260         * m32r-tdep.c (m32r_frame_this_id): Ditto.
9261         * frv-tdep.c (frv_frame_this_id): Ditto.
9262         * avr-tdep.c (avr_frame_this_id): Ditto.
9263
9264 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
9265
9266         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9267
9268 2004-04-22  Jim Blandy  <jimb@redhat.com>
9269
9270         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9271         register number zero.
9272
9273 2004-04-21  Michael Snyder  <msnyder@redhat.com>
9274
9275         * mips-tdep.c (heuristic_proc_start): 
9276         Warning() already prefixes "Warning: ".
9277
9278 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9279
9280         * annotate.h (deprecated_annotate_starting_hook)
9281         (deprecated_annotate_stopped_hook)
9282         (deprecated_annotate_exited_hook)
9283         (deprecated_annotate_signal_hook)
9284         (deprecated_annotate_signalled_hook): Deprecate.
9285         * tracepoint.h (deprecated_create_tracepoint_hook)
9286         (deprecated_delete_tracepoint_hook)
9287         (deprecated_modify_tracepoint_hook)
9288         (deprecated_trace_find_hook)
9289         (deprecated_trace_start_stop_hook): Deprecate.
9290         * target.h (deprecated_target_new_objfile_hook): Deprecate.
9291         * remote.h (deprecated_target_resume_hook)
9292         (deprecated_target_wait_loop_hook): Deprecate.
9293         * gdbcore.h (deprecated_exec_file_display_hook)
9294         (deprecated_file_changed_hook): Deprecate.
9295         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9296         * defs.h (deprecated_modify_breakpoint_hook)
9297         (deprecated_command_loop_hook, deprecated_show_load_progress)
9298         (deprecated_print_frame_info_listing_hook)
9299         (deprecated_query_hook, deprecated_warning_hook)
9300         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9301         (deprecated_delete_breakpoint_hook)
9302         (deprecated_interactive_hook, deprecated_registers_changed_hook)
9303         (deprecated_readline_begin_hook, deprecated_readline_hook)
9304         (deprecated_readline_end_hook, deprecated_register_changed_hook)
9305         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9306         (deprecated_context_hook, deprecated_target_wait_hook)
9307         (deprecated_attach_hook, deprecated_detach_hook)
9308         (deprecated_call_command_hook, deprecated_set_hook)
9309         (deprecated_error_hook, deprecated_error_begin_hook)
9310         (deprecated_ui_load_progress_hook): Deprecate.
9311         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9312         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9313         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9314         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9315         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9316         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9317         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9318         * annotate.c, aix-thread.c: Update.
9319
9320 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9321
9322         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9323         * vaxnbsd-tdep.c: Include "gdb_string.h".
9324
9325         * symfile.c (symbol_file_add_from_memory): #if 0 function.
9326         (add_symbol_file_from_memory_command): #if 0 function body, call
9327         error instead.
9328
9329 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9330
9331         * gdbcore.h: Update copyright.
9332         (deprecated_add_core_fns): Rename add_core_fns.
9333         * win32-nat.c (_initialize_core_win32): Update.
9334         * sun3-nat.c (_initialize_core_sun3): Update.
9335         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9336         * rs6000-nat.c (_initialize_core_rs6000): Update.
9337         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9338         * nto-tdep.c (_initialize_nto_tdep): Update.
9339         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9340         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9341         * mips-nat.c (_initialize_core_mips): Update.
9342         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9343         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9344         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9345         * lynx-nat.c (_initialize_core_lynx): Update.
9346         * irix5-nat.c (_initialize_core_irix5): Update.
9347         * i386-interix-nat.c (_initialize_core_interix): Update.
9348         * cris-tdep.c (_initialize_cris_tdep): Update.
9349         * corelow.c (deprecated_add_core_fns): Update.
9350         * core-regset.c (_initialize_core_regset): Update.
9351         * core-aout.c (_initialize_core_aout): Update.
9352         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9353         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9354         * alpha-nat.c (_initialize_core_alpha): Update.
9355
9356 2004-04-21  Jim Blandy  <jimb@redhat.com>
9357
9358         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9359
9360 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
9361
9362         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9363         Delete.
9364         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
9365         (read_attribute_value): Update calls to dwarf_alloc_block.
9366         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9367         dwarf2_tmp_obstack.
9368         (psymtab_to_symtab_1): Likewise.  Clean up using
9369         free_stack_comp_unit.
9370         (add_to_cu_func_list): Use the comp_unit_obstack.
9371
9372 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
9373
9374         * dwarf2read.c (dwarf2_flag_true_p): New function.
9375         (die_is_declaration): Use the function above. Add some comments.
9376
9377 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
9378
9379         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9380         architecture when registering sparcnbsd_core_osabi_sniffer.
9381         Adjust comment.
9382
9383 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
9384
9385         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9386         return value.
9387
9388         Based on a patch from Brian Ford <ford@vss.fsi.com>:
9389         * i386-tdep.c: Correct register numbering scheme comments
9390         throughout.
9391         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9392         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9393         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9394         (i386_gdb_arch_init): Likewise.
9395
9396         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9397         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9398         ppcnbsd-tdep.o.
9399
9400         * m68k-tdep.h: Tweak comments.
9401         * m68k-tdep.c: Tweak comment.
9402
9403 2004-04-17  Randolph Chung  <tausq@debian.org>
9404
9405         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9406         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9407         (hppa_hpux_som_init_abi): Set is_elf to 0.
9408         (hppa_hpux_elf_init_abi): Set is_elf to 1.
9409         * hppa-tdep.c (low_text_segment_address): Remove global.
9410         (record_text_segment_lowaddr): Pass in low address as parameter. Use
9411         section offset to calculate segment address.
9412         (internalize_unwinds): Define low_text_segment_address as local and
9413         pass to record_text_segment_lowaddr for ELF targets.
9414         (hppa_gdbarch_init): Zero fill tdep structure.
9415         (hppa_dump_tdep): Print tdep structure.
9416         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9417
9418 2004-04-17  Randolph Chung  <tausq@debian.org>
9419
9420         * hppa-tdep.c (hppa_pseudo_register_read): Define.
9421         (hppa_gdbarch_init): Set pseudo_register_read.
9422         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9423         * regcache.c (supply_register): Remove check for
9424         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9425
9426 2004-04-17  Randolph Chung  <tausq@debian.org>
9427
9428         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9429         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9430         (hpread_adjust_stack_address): Move to hpread.c.
9431         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9432         obj_private_struct): Move from tm-hppa.h.
9433         * hpread.c (hppa-tdep.h): Include.
9434         (hpread_adjust_stack_address): Move from hppa-tdep.c.
9435         (hpread_read_function_type, hpread_read_doc_function_type)
9436         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
9437         directly.
9438         * pa64solib.c (hppa-tdep.h): Include.
9439         * somsolib.c (hppa-tdep.h): Include.
9440         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9441         inferior_status): Remove unused forward declarations.
9442         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9443         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
9444         obj_private_struct): Move to hppa-tdep.h.
9445         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9446
9447 2004-04-17  Randolph Chung  <tausq@debian.org>
9448
9449         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9450         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9451         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9452         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9453         Remove forward declaration and make static.
9454         (hppa_reg_struct_has_addr): Remove.
9455
9456 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9457
9458         * observer.sh: Move comments in sed command to first column.
9459
9460 2004-04-16  Jason Molenda  (jmolenda@apple.com)
9461
9462         * frame.c: Minor typeo corrections in comments.
9463
9464 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9465
9466         * observer.c (observer_test_first_notification_function): Update
9467         function profile.
9468         (observer_test_second_notification_function): Likewise.
9469         (observer_test_third_notification_function): Likewise.
9470
9471 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
9472
9473         From Brian Ford <ford@vss.fsi.com>:
9474         * i386-tdep.c (i386_coff_init_abi): New function.
9475         * i386-tdep.h (i386_coff_init_abi): New prototype.      
9476         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
9477         register number translation functions for DWARF and DWARF 2.
9478
9479 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9480
9481         * dwarf2read.c: Back out my previous change, it was incorrect.
9482
9483 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
9484
9485         * dwarf2read.c: Include "hashtab.h".
9486         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9487         has_namespace_info.
9488         (struct partial_die_info): Add comments.  Use bitfields to reduce
9489         memory footprint.  Add scope, scope_set, has_specification,
9490         spec_offset, die_parent, die_child, and die_sibling.
9491         (peek_die_abbrev): Add prototype.
9492         (partial_read_comp_unit_head): New function, broken out from
9493         dwarf2_build_psymtabs_hard.
9494         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9495         Use partial_read_comp_unit_head.  Initialize the CU and
9496         comp_unit_obstack.  Update calls to read_partial_die and
9497         scan_partial_symbols.  Use free_stack_comp_unit and
9498         load_partial_dies.
9499         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
9500         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
9501         Update calls to helper functions.  Remove NAMESPACE argument.
9502         Update comments.
9503         (partial_die_parent_scope, partial_die_full_name): New functions.
9504         (add_partial_symbol): Remove namespace argument.  Update call to
9505         pdi_needs_namespace.  Use partial_die_full_name.  Handle
9506         DW_TAG_namespace.  Check has_namespace_info flag.
9507         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
9508         tag.  Handle namespaces.
9509         (add_partial_namespace, add_partial_enumeration): Simplify.
9510         (guess_structure_name): New function, derived from
9511         add_partial_structure.
9512         (add_partial_structure): Remove.
9513         (determine_class_name): Update comment.
9514         (dwarf2_read_abbrevs): Set has_namespace_info flag.
9515         (is_type_tag_for_partial, load_partial_dies): New functions.
9516         (read_partial_die): Pass abbrev and abbrev_len as arguments.
9517         Record specifications instead of following them immediately.
9518         (find_partial_die_in_comp_unit, find_partial_die)
9519         (fixup_partial_die, free_stack_comp_unit)
9520         (hashtab_obstack_allocate, dummy_obstack_deallocate)
9521         (partial_die_hash, partial_die_eq): New functions.
9522         * Makefile.in (hashtab_h): Define.
9523         (dwarf2read.o): Update dependencies.
9524         (observer_inc, observer_h): Move to the correct section.
9525
9526 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9527
9528         * dwarf2read.c (dwarf2_attribute_true_p): New function.
9529         (die_is_declaration): Use the function above. Add comment.
9530
9531 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9532
9533         * dwarf2read.c (read_structure_scope): Identify stub types
9534         using die_is_declaration() only.
9535
9536 2004-04-15  Roland McGrath  <roland@redhat.com>
9537
9538         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9539         argument instead of NAME.
9540         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9541         in call to symbol_file_add_with_addrs_or_offsets.
9542         (build_addr_info): New function, helper for ...
9543         (symbol_file_add_from_memory): New function.
9544         (add_symbol_file_from_memory_command): New function using that.
9545         (_initialize_symfile): Register it for add-symbol-file-from-memory.
9546         (pre_add_symbol_hook): Add const to argument type.
9547         * symfile.h (symbol_file_add_from_memory): Declare it.
9548
9549 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9550
9551         * NEWS (New native configurations): Mention OpenBSD/vax.
9552         * configure.host: Add vax-*-openbsd*.
9553         * config/vax/obsd.mh: New file.
9554         * config/vax/nm-obsd.h: New file.
9555
9556         * vax-tdep.c: Include "regset.h".
9557         (vax_supply_gregset): New function.
9558         (vax_gregset): New variable.
9559         (vax_regset_from_core_section): New function.
9560         (vax_gdbarch_init): Set regset_from_core_section.
9561         * Makefile.in (vax-tdep.o): Update dependencies.
9562
9563 2004-04-15  Andrew Cagney  <cagney@redhat.com>
9564
9565         * observer.c (normal_stop_subject, observer_notify_normal_stop)
9566         (observer_normal_stop_notification_stub)
9567         (observer_attach_normal_stop, observer_detach_normal_stop):
9568         Delete, replaced by #include "observer.inc".
9569         * infrun.c (normal_stop): Pass "stop_bpstat" to
9570         observer_notify_normal_stop.
9571         * Makefile.in (observer_inc): Define.
9572         (observer.o): Update dependencies.
9573         (observer.h, observer.inc): New rules.
9574         * observer.h: Delete file.
9575         * observer.sh: New file.
9576
9577 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9578
9579         * vax-tdep.c (vax_frame_cache): Fix typo.
9580
9581 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9582
9583         * NEWS (New native configurations): Mention NetBSD/vax.
9584         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9585         * config/vax/nbsdelf.mh: New file.
9586         * config/vax/nbsdaout.mh: New file.
9587         * config/vax/nm-nbsd.h: New file.
9588         * config/vax/nm-nbsdaout.h: New file.
9589
9590         * vaxnbsd-tdep.c: New file.
9591         * Makefile.in (vaxnbsd-tdep.o): New dependency.
9592         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9593         * config/vax/nbsd.mt: New file.
9594         * config/vax/tm-nbsd.h: New file.
9595
9596         * Makefile.in (vaxbsd-nat.o): New dependency.
9597
9598         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9599         * vax-tdep.c (vax_store_arguments): Remove struct_return and
9600         struct_addr arguments.  Don't push return value address.
9601         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9602         arguments to vax_store_arguments.  Store return value address in
9603         R1.
9604         (vax_store_struct_return, vax_extract_return_value)
9605         (vax_store_return_value): Remove functions.
9606         (vax_return_value): New function.
9607         (vax_gdbarch_init): Set return value.  Don't set
9608         deprecated_store_struct_return, deprecated_extract_struct_return
9609         and deprecated_store_return_value.
9610
9611 2004-04-14  Andreas Schwab  <schwab@suse.de>
9612
9613         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9614         value buffer.
9615         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9616
9617 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9618
9619         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9620         (vax_unwind_dummy_id): New functions.
9621         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9622         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9623         variables.
9624         (vax_fix_call_dummy): Remove function.
9625         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9626         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9627         call_dummy_location, deprecated_call_dummy_words,
9628         deprecated_sizeof_call_dummy_words,
9629         deprecated_call_dummy_breakpoint_offset,
9630         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9631         and deprecated_dummy_write_sp.
9632
9633 2004-04-13  David Carlton  <carlton@kealia.com>
9634
9635         * MAINTAINERS: Move myself to "paper trail" section.
9636
9637 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
9638
9639         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9640         "trad-frame.h".
9641         (vax_frame_init_saved_regs): Remove function.
9642         (vax_sigtramp_saved_pc): Remove function.
9643         (vax_frame_saved_pc): Remove function.
9644         (vax_frame_args_address): Remove function.
9645         (vax_frame_num_args): Rewrite.
9646         (vax_frame_chain): Remove function.
9647         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9648         VAX_FP_REGNUM.
9649         (vax_pop_frame): Likewise.
9650         (vax_saved_pc_after_call): Remove function.
9651         (struct vax_frame_cache): New structure.
9652         (vax_frame_cache): New function.
9653         (vax_frame_this_id): New function.
9654         (vax_frame_prev_register): New function.
9655         (vax_frame_unwind): New variable.
9656         (vax_frame_sniffer): New function.
9657         (vax_frame_base_address): New function.
9658         (vax_frame_args_address): New function.
9659         (vax_frame_base): New variable.
9660         (vax_unwind_pc): New function.
9661         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9662         deprecated_fp_regnum, deprecated_saved_pc_after_call,
9663         deprecated_frame_chain, deprecated_frame_saved_pc,
9664         deprecated_frame_args_address and
9665         deprecated_frame_init_saved_regs.
9666         * Makefile.in (vax-tdep.o): Update dependencies.
9667
9668         * vaxbsd-nat.c: New file.
9669
9670         * vax-tdep.h: Update copyright year.  Adjust comments.
9671         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9672         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9673         (vax_regnum): New enum.  Replacing...
9674         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9675         (VAX_PS_REGNUM): ... these removed macros.
9676         * vax-tdep.c (vax_register_name): Remove prototype.
9677         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
9678         (vax_register_byte, vax_register_raw_size,
9679         vax_register_virtual_size, vax_register_virtual_type): Remove
9680         functions.
9681         (vax_register_type): New function.
9682         (vax_breakpoint_from_pc): Reorganize.
9683         (vax_gdbarch_init): Set register_type.  Don't set
9684         deprecated_register_size, deprecated_register_bytes,
9685         deprecated_register_byte, deprecated_register_raw_size,
9686         deprecated_max_register_raw_size,
9687         deprecated_register_virtual_size,
9688         deprecated_max_register_virtual_size and
9689         deprecated_register_virtual_type.  Add comment on stack direction.
9690
9691 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
9692
9693         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9694         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9695         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9696
9697 2004-04-10  Randolph Chung  <tausq@debian.org>
9698
9699         * MAINTAINERS (write after approval): Add myself.
9700
9701 2004-04-07  Randolph Chung  <tausq@debian.org>
9702
9703         * hppa-tdep.c (hppa_inner_than): Remove.
9704         (is_pa_2): Remove unused static variable.
9705         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9706
9707 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
9708
9709         * language.h (language_defn): Add new la_post_parser field.
9710         * parser-defs.h (null_post_parser): New declaration (default for
9711         la_post_parser).
9712
9713         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9714         insert call to that function.
9715         (parse_exp_in_context): New function, including code formerly in
9716         parse_exp_1.  Calls language-dependent post-parser after
9717         prefixification.
9718         (parse_expression_in_context): New exported function.
9719         (null_post_parser): New definition.
9720         * expression.h (parse_expression_in_context): Add declaration.
9721
9722         * p-lang.c (pascal_language_defn): Add trivial post-parser.
9723         * c-lang.c (c_language_defn): Ditto.
9724         (cplus_language_defn): Ditto.
9725         (asm_language_defn): Ditto.
9726         (minimal_language_defn): Ditto.
9727         * f-lang.c (f_language_defn): Ditto.
9728         * jv-lang.c (java_language_defn): Ditto.
9729         * language.c (unknown_language_defn): Ditto.
9730         (auto_language_defn): Ditto.
9731         (local_language_defn): Ditto.
9732         * m2-lang.c (m2_language_defn): Ditto.
9733         * scm-lang.c (scm_language_defn): Ditto.
9734         * obj-lang.c (objc_language_defn): Ditto.
9735
9736 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9737
9738         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9739         (amd64nbsd_mcontext_addr): New function.
9740         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9741         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
9742         with amd64nbsd_r_reg_offset, instead of building it on the fly.
9743
9744         * corelow.c (core_xfer_partial): Fix coding standards violation.
9745         Add support for TARGET_OBJECT_WCOOKIE.
9746
9747         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9748         deprecated_pc_in_sigtramp.
9749         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9750         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9751         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9752         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9753         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9754         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9755         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9756
9757         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9758         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9759         Fix typo.
9760
9761         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9762         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9763         (amd64_collect_fxsave): Likewise.
9764
9765         * i386-sol2-tdep.c: Include "gdb_string.h".
9766         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9767         name.
9768         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9769
9770 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9771
9772         * i386-sol2-tdep.c: Include "solib-svr4.h".
9773         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9774         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9775         * config/i386/tm-i386sol2.h: Include :solib.h".
9776         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9777         solib-svr4.o and solib-legacy.o.
9778         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9779         solib-svr4.o.
9780
9781 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
9782
9783         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9784         whether a register is supplied by PTRACE_GETFPREGS.
9785         (store_inferior_registers): Likewise.
9786         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9787         whether a register is supplied by PT_GETFPREGS.
9788         (store_inferior_registers): Likewise.
9789
9790         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9791         * config/i386/linux64.mt (TDEPFILES): Likewise.
9792
9793         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
9794
9795         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9796         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9797         the program counter is in the range specified by `struct
9798         gdbarch_tdep'.
9799         * amd64-linux-tdep.c: Include "symtab.h".
9800         (amd64_linux_pc_in_sigtramp): Remove function.
9801         (amd64_linux_sigtramp_p): New function.
9802         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9803         deprecated_pc_in_sigtramp.
9804         * amd64nbsd-tdep.c: Include "symtab.h".
9805         (amd64nbsd_sigtramp_p): New function.
9806         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9807         deprecated_pc_in_sigtramp.
9808         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
9809         few comments.
9810         (amd64obsd_pc_in_sigtramp): Remove function.
9811         (amd64obsd_sigtramp_p): New function.
9812         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9813         deprecated_pc_in_sigtramp.
9814         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9815         (i386bsd_pc_ins_sigtramp): Remove prototype.
9816         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9817         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9818         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9819         the program counter is in the range specified by `struct
9820         gdbarch_tdep'.
9821         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9822         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9823         (i386_go32_pc_in_sigtramp): Remove function.
9824         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9825         Initialize TDEP->sigtramp_p.
9826         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9827         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
9828         deprecated_pc_in_sigtramp.
9829         * i386-linux-tdep.c: Adjust comments.
9830         (i386_linux_pc_in_sigtramp): Remove function.
9831         (i386_linux_sigtramp_p): New function.
9832         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9833         deprecated_pc_in_sigtramp.
9834         * i386-nto-tdep.c: Update copyright year.
9835         (i386nto_pc_in_sigtramp): Remove function.
9836         (i386nto_sigtramp_p): New function.
9837         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9838         SP_REGNUM.
9839         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9840         deprecated_pc_in_sigtramp.
9841         * i386-sol2-tdep.c: Update copyright year.
9842         (i386_sol2_pc_in_sigtramp): Remove function.
9843         (i386_sol2_sigtramp_p): New function.
9844         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9845         deprecated_pc_in_sigtramp.
9846         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9847         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9848         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9849         deprecated_sigtramp_start and deprecated_sigtramp_end.
9850         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9851         (i386nbsd_pc_in_sigtramp): Remove function.
9852         (i386nbsd_sigtramp_p): New function.
9853         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9854         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9855         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9856         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9857         (i386obsd_pc_in_sigtramp): Remove function.
9858         (i386obsd_sigtramp_p): New function.
9859         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9860         functions.
9861         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9862         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9863         TDEP->sigtramp_p.
9864         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9865         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9866         dependencies.
9867
9868         * config/i386/i386aout.mt: Remove file.
9869
9870         * configure.tgt: Remove i[34567]86-*-go32*,
9871         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9872         and i[34567]86-*-isc*.  Set gdb_target to i386 for
9873         i[34567]86-*-netware* and i[34567]86-*-*.
9874         * config/i386/i386.mt: New file.
9875         * config/i386/embed.mt: Remove file.
9876         * config/i386/go32.mt: Remove file.
9877         * config/i386/i386nw.mt: Remove file.
9878         * config/i386/i386v.mt: Remove file.
9879         * config/i386/tm-go32.h: Remove file.
9880
9881         * tui/tui-hooks.c: Include "readline/readline.h" after
9882         "gdb_curses.h" instead of before.
9883         * tui/tui-io.c: Likewise.
9884
9885         * tui/tui.c: Fix typo in comment.
9886
9887         * sparc64-tdep.c (sparc_address_from_register): Remove function.
9888
9889 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9890
9891         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9892         (deprecated_exception_support_initialized): Declare.
9893         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9894         (initialize_hp_cxx_exception_support)
9895         (child_enable_exception_callback): Update.
9896         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9897         (deprecated_exception_support_initialized): Rename
9898         deprecated_exception_catchpoints_are_fragile and
9899         deprecated_exception_support_initialized.
9900         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9901
9902         * symtab.c (deprecated_hp_som_som_object_present): Rename
9903         hp_som_som_object_present.
9904         * symtab.h (deprecated_hp_som_som_object_present): Declare.
9905         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9906         Update.  Delete extern declaration.
9907         * valops.c (hp_som_som_object_present): Ditto.
9908         * parse.c (deprecated_hp_som_som_object_present)
9909         (parse_nested_classes_for_hpacc): Ditto.
9910         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9911         * hppa-hpux-tdep.c (hp_som_som_object_present)
9912         (initialize_hp_cxx_exception_support): Ditto.
9913         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9914         * cp-valprint.c (hp_som_som_object_present)
9915         (cp_print_class_method): Ditto.
9916         * c-typeprint.c (hp_som_som_object_present):
9917         (c_type_print_base): Ditto.
9918         * c-exp.y (hp_som_som_object_present): Ditto.
9919
9920 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9921
9922         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9923         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9924         (frame_unwind_find_by_frame): Re-implement the unwind code so
9925         that it can both prepend and append sniffers.  Replace
9926         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9927         * tramp-frame.c (tramp_frame_append): Use
9928         frame_unwind_prepend_unwinder.
9929         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9930         frame_unwind_register_unwinder.
9931         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9932         tramp_frame_append.
9933         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9934         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9935         (mips_linux_init_abi): Update.
9936
9937 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
9938
9939         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9940         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
9941         file support.
9942
9943 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
9944
9945         * ia64-tdep.c (elf.h): Don't include.
9946         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9947
9948 2004-04-07  Jason Molenda  (jmolenda@apple.com)
9949
9950         * frame.h: Typeo corrections in comments.
9951
9952 2004-04-07  Jim Blandy  <jimb@redhat.com>
9953
9954         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9955         %esp and %ebp
9956
9957 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
9958
9959         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9960         * config/sparc/linux64.mt (TDEPFILES): Likewise.
9961         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9962         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9963         and solib-legacy.o.
9964         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9965         solib-svr4.o.
9966         * config/sparc/tm-sol2.h: Update copyright year.  Include
9967         "solib.h".
9968
9969         * sparc-sol2-tdep.c: Update copyright year.  Include
9970         "solib-svr4.h".
9971         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9972         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9973         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9974         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9975         dependencies.
9976
9977 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9978
9979         * infttrace.c: Include "infttrace.h".
9980         * infttrace.h: Include "target.h".
9981         * Makefile.in (infttrace_h): Update.
9982         (infttrace.o): Update.
9983
9984 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9985
9986         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9987         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9988         move extern declarations from here ...
9989         * infttrace.h: ... to here.
9990         * Makefile.in (hppah-nat.o): Update dependencies.
9991
9992         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9993         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9994         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9995         (hppa_breakpoint_from_pc): Delete.
9996
9997         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9998
9999 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10000
10001         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
10002         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
10003         <sys/file.h>.
10004
10005 2004-04-06  Randolph Chung  <tausq@debian.org>
10006
10007         Committed by Andrew Cagney (mechanical change).
10008         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10009         exception_catchpoints_are_fragile, find_stub_with_shl_get,
10010         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10011         child_enable_exception_callback, current_ex_event,
10012         null_symtab_and_line, child_get_current_exception_event,
10013         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10014         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10015         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10016         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10017         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10018         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10019         Move hpux-specific definitions ...
10020         * hppa-hpux-tdep.c: ... to here.
10021
10022 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10023
10024         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10025         skip_prologue_using_sal.
10026
10027 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10028
10029         * config/i386/tm-i386.h: Delete file.
10030         * config/i386/tm-vxworks.h: Update copyright, do not include
10031         "tm-i386.h".
10032         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10033         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10034         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10035         * config/i386/ncr3000.mt (TM_FILE): Delete.
10036         * config/i386/interix.mt (TM_FILE): Delete.
10037         * config/i386/i386v.mt (TM_FILE): Delete.
10038         * config/i386/i386nw.mt (TM_FILE): Delete.
10039         * config/i386/i386gnu.mt (TM_FILE): Delete.
10040         * config/i386/i386aout.mt (TM_FILE): Delete.
10041         * config/i386/embed.mt (TM_FILE): Delete.
10042
10043 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
10044
10045         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10046         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10047         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10048         (accg7_regnum): New constants.
10049         (last_spr_regnum, last_pseudo_regnum): Update.
10050         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10051         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10052         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10053         for accg registers.
10054         (frv_register_sim_regno): Update spr_map[].
10055
10056 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10057
10058         * config/mips/xm-riscos.h: Delete.
10059         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10060         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10061         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10062         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10063         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10064         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10065         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10066         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10067         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10068         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10069         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10070         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10071         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10072         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10073         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10074         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10075         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10076         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10077         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10078         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10079         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10080         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10081         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10082         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10083         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10084         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10085
10086         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10087         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10088         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10089         * configure.host: Remove m680[01]0-sun-sunos3*,
10090         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10091         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10092         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10093         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10094         mips-*-riscos*.
10095         * NEWS: Mention removed systems.
10096
10097 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10098
10099         GDB 6.1 release created from 6.1 branch.
10100
10101 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10102
10103         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10104         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10105         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10106
10107         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10108         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10109         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10110
10111 2004-04-03  Jim Blandy  <jimb@redhat.com>
10112
10113         * MAINTAINERS: Chris Faylor has changed employers; add him to
10114         "paper trail" section, and update his E-mail address.
10115
10116 2004-04-03  Andrew Cagney  <cagney@redhat.com>
10117
10118         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10119         generic dummy frames.
10120         * dummy-frame.c: Update copyright.
10121         (dummy_frame_sniffer): Delete check for generic dummy frames.
10122
10123         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10124         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10125         (REG_PARM_STACK_SPACE): Delete.
10126         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10127         Inline reference to REG_PARM_STACK_SPACE.
10128
10129         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10130         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10131         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10132         (FRAME_BASE_BEFORE_SIGTRAMP)
10133         (hppa32_hpux_frame_base_before_sigtramp)
10134         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10135         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10136         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10137         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10138         (FRAME_BASE_BEFORE_SIGTRAMP)
10139         (hppa64_hpux_frame_base_before_sigtramp)
10140         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10141
10142 2004-04-03  Andrew Cagney  <cagney@redhat.com>
10143
10144         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10145
10146 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10147
10148         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10149         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10150         * dummy-frame.h: Delete out-of-date comments.
10151         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10152         * gdbarch.h, gdbarch.c: Re-generate.
10153
10154 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
10155
10156         Committed by Andrew Cagney <cagney@redhat.com>.
10157         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10158         into account an instruction saving a register if we have already
10159         seen an earlier instruction saving that same register.
10160
10161 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10162
10163         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10164         * gdbarch.h, gdbarch.c: Re-generate.
10165         * frame.c (legacy_get_prev_frame): Delete references to
10166         DEPRECATED_INIT_FRAME_PC_FIRST.
10167
10168         * infrun.c (pc_in_sigtramp): Delete function.
10169         (check_sigtramp2): Inline call to pc_in_sigtramp, use
10170         get_frame_type.
10171
10172 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10173
10174         * infrun.c (handle_step_into_function): Delete code conditional on
10175         legacy_frame_p.
10176         (handle_inferior_event, step_over_function): Ditto.
10177
10178 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10179
10180         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10181         "previous frame inner to this frame" test.
10182
10183 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10184
10185         * frame.c (safe_frame_unwind_memory): New function.
10186         * frame.h (safe_frame_unwind_memory): Declare.  Update description
10187         of /safe_/ methods.
10188         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10189         "next_frame".  Use safe_frame_unwind_memory.
10190         (tramp_frame_sniffer): Update call to tramp_frame_start.
10191
10192 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
10193
10194         * dwarf2read.c (dwarf2_objfile_data_key): New.
10195         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10196         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10197         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10198         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10199         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10200         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10201         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10202         Remove variables.
10203         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
10204         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10205         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10206         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10207         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10208         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10209         Remove macros.
10210         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
10211         data.
10212         (dwarf2_locate_sections, dwarf2_build_psymtabs)
10213         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10214         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10215         (read_partial_die, read_full_die, read_indirect_string)
10216         (dwarf_decode_line_header, dwarf_decode_macros)
10217         (dwarf2_symbol_mark_computed): Remove use of removed macros.
10218         Update uses of removed variables.
10219         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
10220         of removed macros.
10221         (_initialize_dwarf2_read): New function.
10222         * symfile.h (dwarf2_has_info): Update prototype.
10223         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10224         * elfread.c (elf_symfile_read): Likewise.
10225
10226 2004-04-01  Jim Blandy  <jimb@redhat.com>
10227
10228         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10229         function for register numbers on all the rs6000-derived targets.
10230         (rs6000_gdbarch_init): Don't register a separate
10231         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
10232         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10233         variants.
10234
10235         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10236         numbering.
10237
10238 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
10239
10240         * valarith.c: Update copyright notice.
10241         (value_add): Handle range types.
10242         (value_sub): Ditto.
10243         (value_equal): Ditto.
10244         (value_less): Ditto.
10245         (value_neg): Ditto.
10246         (value_complement): Ditto.
10247         (value_binop): Simplify slightly by using is_integral_type and
10248         eliminiating unnecessary COERCE_ENUMs.
10249
10250 2004-03-31  Andrew Cagney  <cagney@redhat.com>
10251
10252         * frame.h (frame_unwind_id): Declare.
10253         * frame.c (frame_unwind_id): New function.
10254         (get_prev_frame_1): New function.
10255         (frame_debug_got_null_frame): New function.
10256         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
10257         code proper to prev_frame, update description.
10258         * infrun.c (step_over_function): Use frame_unwind_id.
10259
10260 2004-04-31  J. Brobecker  <brobecker@gnat.com>
10261
10262         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10263         (hppa64_push_dummy_call): Likewise.
10264
10265 2004-03-30  Jim Blandy  <jimb@redhat.com>
10266
10267         From Ulrich Weigand:
10268         * utils.c (query): Do not use a va_list variable multiple times.
10269
10270 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10271
10272         * Makefile.in (linux_nat_h): Update dependencies.
10273         * configure.in: Check for <gnu/libc-version.h>.
10274         * configure: Regenerate.
10275         * config.in: Regenerate.
10276         * linux-nat.h: Include "target.h".  Add waitstatus field to
10277         struct lwp_info.
10278         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10279         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10280         to.
10281         (lin_lwp_handle_extended): New function.  Handle clone events.
10282         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
10283         thread exit events.
10284         (child_wait): Handle clone events.
10285         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10286         * linux-nat.c (linux_enable_event_reporting): Turn on
10287         PTRACE_O_TRACECLONE.
10288         (linux_handle_extended_wait): Handle clone events.
10289         * thread-db.c: Include <gnu/libc-version.h>.
10290         (struct private_thread_info): Add dying flag.
10291         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10292         higher.
10293         (attach_thread): Update comments.  Handle dying threads.
10294         (detach_thread): Set the dying flag.
10295         (check_event): Always call attach_thread.
10296
10297 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10298
10299         * mips-tdep.c (mips_pdr_data): New.
10300         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10301         (_initialize_mips_tdep): Initialize mips_pdr_data.
10302
10303 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
10304
10305         * minsyms.c (install_minimal_symbols): Move dropping leading
10306         char from linkage name from here...
10307         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
10308         test for "__gnu_compiled*" symbols.
10309
10310 2004-03-28  Jim Blandy  <jimb@redhat.com>
10311
10312         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10313         registers to temp register r0 and byte stores as prologue
10314         instructions.
10315
10316 2004-03-28  Andrew Cagney  <cagney@redhat.com>
10317
10318         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
10319         arm*-*-*.
10320
10321 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
10322
10323         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10324         and switch the layout to force a display of register window.
10325
10326 2004-02-26  J. Brobecker  <brobecker@gnat.com>
10327
10328         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10329         of the INTEGER class.
10330
10331 2004-03-26  Jim Blandy  <jimb@redhat.com>
10332
10333         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10334         bytes long on PPC GNU/Linux.
10335
10336 2004-03-26  David Carlton  <carlton@kealia.com>
10337
10338         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10339
10340 2004-03-25  Andrew Cagney  <cagney@redhat.com>
10341
10342         * PROBLEMS: Add general section titles, remove references to
10343         specific releases.
10344
10345 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
10346
10347         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10348         INT_REGISTER_SIZE.
10349         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10350         FP_REGISTER_VIRTUAL_SIZE.
10351         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10352         of DEPRECATED_REGISTER_RAW_SIZE.
10353         (arm_register_type): Add gdbarch argument.
10354         (arm_register_raw_size, arm_register_virtual_size): Delete.
10355         (arm_register_byte, arm_extract_return_value)
10356         (arm_store_return_value, arm_get_longjmp_target): Update references
10357         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10358         (arm_gdbarch_init): Likewise.  Don't set
10359         deprecated_register_raw_size, deprecated_register_virtual_size,
10360         deprecated_max_register_raw_size,
10361         deprecated_max_register_virtual_size, or
10362         deprecated_max_register_virtual_type.  Do set register_type.
10363         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10364         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10365         (FP_REGISTER_VIRTUAL_SIZE): Delete.
10366         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10367         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10368         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10369         INT_REGISTER_SIZE.
10370         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10371         (remote_rdp_store_register): Likewise.
10372
10373 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
10374
10375         * Makefile.in (mips-linux-tdep.o): Update dependencies.
10376         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10377         to after osabi initialization.
10378         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10379         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10380         functions.
10381         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10382         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10383         variables.
10384         (mips_linux_init_abi): Append signal trampoline unwinders.
10385
10386 2004-03-24  Andrew Cagney  <cagney@redhat.com>
10387
10388         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10389         * tramp-frame.c: Include "gdb_assert.h".
10390         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
10391         correct sizeof.
10392         (tramp_frame_append): Validate the tramp frame's instructions.
10393         * Makefile.in (tramp-frame.o): Update dependencies.
10394
10395 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10396
10397         * trad-frame.h (trad_frame_set_reg_addr): Declare.
10398
10399 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10400
10401         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10402         Nasser as past testsuite/lib/ (and other) maintainers.
10403
10404 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10405
10406         * infcmd.c (attach_command): Reread symbols if we already have
10407         an exec file.
10408
10409 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10410
10411         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10412
10413 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10414
10415         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10416         * gdbarch.h, gdbarch.c: Re-generate.
10417         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10418         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10419         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10420         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10421         (DEPRECATED_SIGTRAMP_START): Update.
10422         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10423         (DEPRECATED_SIGTRAMP_START): Update.
10424         * blockframe.c (find_pc_sect_partial_function): Update.
10425         * arch-utils.c (legacy_pc_in_sigtramp): Update.
10426
10427 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10428
10429         * remote.c (remote_open_1): Reopen the exec file and reread symbols
10430         if necessary.
10431
10432 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10433
10434         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10435         predicate, deprecate.
10436         * gdbarch.h, gdbarch.c: Re-generate.
10437         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10438         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10439         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10440         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10441         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10442         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10443         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10444         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10445         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10446         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10447         * blockframe.c (find_pc_partial_function): Update.
10448         * breakpoint.c (bpstat_what): Update.
10449         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10450         * frv-linux-tdep.c (frv_linux_init_abi): Update.
10451         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10452         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10453         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10454         * i386-linux-tdep.c (i386_linux_init_abi): Update.
10455         * i386-nto-tdep.c (i386nto_init_abi): Update.
10456         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10457         * i386-tdep.c (i386_sigtramp_frame_sniffer)
10458         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10459         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10460         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10461         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10462         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10463         * infrun.c (pc_in_sigtramp): Update.
10464         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10465         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10466         * mips-tdep.c (mips_gdbarch_init): Update.
10467         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10468         * ppc-linux-tdep.c: Update comment.
10469         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10470         * shnbsd-tdep.c (shnbsd_init_abi): Update.
10471         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10472         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10473         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10474         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10475         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10476         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10477         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10478         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10479
10480 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10481
10482         * tramp-frame.h, tramp-frame.h: New files.
10483         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10484         Update rules to include "tramp-frame.h" and "tramp-frame.c".
10485
10486         * Makefile.in: Update all dependencies.
10487
10488 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10489
10490         * Makefile.in (trad_frame_h): Add $(frame_h).
10491         * trad-frame.h: Update copyright.  Include "frame.h".
10492         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10493         (trad_frame_set_id, trad_frame_get_id): Declare.
10494         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10495         * trad-frame.c: Update copyright.
10496         (struct trad_frame_cache): Define.
10497         (trad_frame_cache_zalloc): New function.
10498         (trad_frame_set_id, trad_frame_get_id): New functions.
10499         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10500
10501 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10502
10503         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10504         s390_pltstub_unwind_cache.
10505         (s390_stub_frame_unwind_cache): Rename
10506         s390_pltstub_frame_unwind_cache.
10507         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10508         (s390_stub_frame_prev_register): Rename
10509         s390_pltstub_frame_prev_register.
10510         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10511         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10512
10513         From Ulrich Weigand:
10514         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10515         pointer calls like PLT calls.
10516
10517 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10518
10519         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10520         PC rather than the partial function start address.  Use the start
10521         address to sanity check the found PDR.
10522
10523 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10524
10525         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10526         linux_handle_extended_wait.
10527
10528 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10529
10530         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10531         function.
10532
10533         * frame.h (generic_pop_current_frame): Delete declaration.
10534         (deprecate_pop_dummy_frame): Deprecate
10535         generic_pop_dummy_frame.
10536         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10537         (generic_pop_current_frame): Delete function.
10538         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10539         generic_pop_current_frame.
10540         * v850-tdep.c (v850_pop_frame): Update.
10541         * mcore-tdep.c (mcore_pop_frame): Update.
10542         * sh64-tdep.c (sh64_pop_frame): Update.
10543         * h8300-tdep.c (h8300_pop_frame): Update.
10544
10545 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10546
10547         * frame.h (deprecated_pc_in_call_dummy): Rename
10548         generic_pc_in_call_dummy.
10549         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10550         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10551         generic_pc_in_call_dummy.
10552         (pc_in_dummy_frame): Make static.
10553         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10554         * gdbarch.h, gdbarch.c: Re-generate.
10555         * dummy-frame.c (dummy_frame_sniffer): Simplify.
10556         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10557         (legacy_get_prev_frame): Ditto.
10558         * inferior.h: Delete reference to generic_pc_in_call_dummy in
10559         comment.
10560
10561 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10562
10563         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10564         declaration and out-of-date comment.
10565         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10566         Delete function.
10567         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10568         deprecated_pc_in_call_dummy.
10569
10570         * infrun.c (handle_inferior_event): For non legacy frames, use the
10571         frame ID and frame type to identify a signal trampoline.  Update
10572         comments.
10573
10574 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
10575
10576         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10577         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10578
10579 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10580
10581         * frame-unwind.h: Update copyright.
10582         (struct frame_data): Add opaque declaration.
10583         (frame_sniffer_ftype): Declare.
10584         (struct frame_unwind): Add "unwind_data" and "sniffer".
10585         (frame_unwind_register_unwinder): Declare.
10586         (frame_unwind_find_by_frame): Add parameter "this_cache".
10587         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10588         (legacy_get_prev_frame, legacy_get_prev_frame)
10589         (get_frame_type): Pass the prologue_cache to
10590         frame_unwind_find_by_frame.
10591         * frame-unwind.c (struct frame_unwind_table_entry): Add field
10592         "unwinder".
10593         (frame_unwind_register_unwinder): New function.
10594         (frame_unwind_find_by_frame): Handle an unwind sniffer.
10595
10596 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
10597
10598         * bcache.c (print_percentage): Use floating point to avoid
10599         incorrect results when portion*100 overflows.
10600
10601 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10602
10603         * ppc_tdep.h (ppc_linux_frame_saved_pc)
10604         (ppc_linux_init_extra_frame_info)
10605         (ppc_linux_frameless_function_invocation)
10606         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10607         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10608         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10609         (rs6000_frame_chain): Delete declarations.
10610         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10611         (ppc_linux_init_extra_frame_info)
10612         (ppc_linux_frameless_function_invocation)
10613         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10614         (ppc_linux_init_abi): Remove registration of above deleted functions.
10615         * rs6000-tdep.c (rs6000_init_extra_frame_info)
10616         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10617         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10618         (rs6000_pop_frame, rs6000_frameless_function_invocation)
10619         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10620         (rs6000_gdbarch_init): Remove registration of above deleted functions.
10621         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10622         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10623         frame management for all OSABIs.
10624
10625 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10626
10627         Committed by Kevin Buettner <kevinb@redhat.com>.
10628
10629         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10630         Update copyright.
10631         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10632         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10633         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10634         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10635         unwinders.  #ifdef legacy frame code.
10636         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10637         "frame-base.h".
10638         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10639         (struct rs6000_frame_cache, rs6000_frame_cache)
10640         (rs6000_frame_this_id, rs6000_frame_prev_register)
10641         (rs6000_frame_sniffer, rs6000_frame_unwind)
10642         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10643         (rs6000_frame_base): Implement a traditional frame unwinder.
10644         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10645         frame unwinder.
10646
10647 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10648
10649         * breakpoint.c (adjust_breakpoint_address): Don't adjust
10650         breakpoint address for watchpoints or the catch eventpoints.
10651         Add new paramter ``bptype''.  Adjust all callers.
10652
10653 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10654
10655         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10656
10657         * PROBLEMS: Delete note that ARM does not use frame code, problem
10658         fixed.
10659
10660 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10661
10662         * stack.c (return_command): Delete code wrapped in #ifdef
10663         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10664
10665         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10666
10667 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10668
10669         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10670         DEPRECATED_IN_SIGTRAMP.
10671         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10672         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10673         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10674         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10675         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10676         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10677         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10678         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10679         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10680         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10681
10682 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10683
10684         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
10685         (struct frame_base_table_entry): Define.
10686         (struct frame_base_table): Re-implement as a linked list.
10687         (frame_base_init): Re-implement.
10688         (frame_base_table): Delete function.
10689         (append_predicate): Delete function.
10690         (frame_base_append_sniffer): Update.
10691         (frame_base_set_default): Update.
10692         (frame_base_find_by_frame): Update.
10693         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10694         * Makefile.in (frame-base.o): Update dependencies.
10695
10696 2004-03-17  Andrew Cagney  <cagney@redhat.com>
10697
10698         * frame.c (legacy_get_prev_frame): Pass correct frame to
10699         frame_unwind_find_by_frame.
10700
10701 2004-03-17  David Carlton  <carlton@kealia.com>
10702
10703         * NEWS: Mention C++ nested types and namespaces
10704
10705 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
10706
10707         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10708         and "Regressions since gdb 5.3.".  Add known regressions since
10709         gdb 6.0.
10710
10711 2004-03-16  David Carlton  <carlton@kealia.com>
10712
10713         * dwarf2read.c (process_structure_scope): Process children even
10714         when we're a declaration.
10715
10716 2004-03-16  Andrew Cagney  <cagney@redhat.com>
10717
10718         * symtab.h (find_pc_sect_partial_function): Delete declaration.
10719         * blockframe.c (find_pc_partial_function)
10720         (find_pc_sect_partial_function): Merge into a single
10721         find_pc_partial_function.
10722
10723 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10724
10725         * i386bsd-nat.c: s/regno/regnum/g.
10726         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10727         FP0_REGNUM.
10728         (store_inferior_registers): Likewise.
10729
10730 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10731
10732         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10733         of i387_fill_fsave.
10734         (store_inferior_registers): Call i387_collect_fsave and
10735         i387_collect_fxsave instead of i387_fill_fsave and
10736         i387_fill_fxsave.
10737
10738 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10739
10740         * Makefile.in (frame-unwind.o): Update dependencies.
10741         * frame-unwind.c: Include "gdb_obstack.h".
10742         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10743         parameter.
10744         (append_predicate): Delete function.
10745         (struct frame_unwind_table_entry): New structure.
10746         (struct frame_unwind_table): Replace "sniffer" with "head" and
10747         "tail".
10748         (frame_unwind_append_sniffer): Update.
10749         (frame_unwind_find_by_frame): Update.
10750         (_initialize_frame_unwind): Registe frame_unwind_init using
10751         gdbarch_data_register_pre_init.
10752
10753 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10754
10755         * i386bsd-nat.c: Update copyright year.
10756         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10757         define unconditionally.
10758
10759 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10760
10761         * i387-tdep.h (i387_collect_fsave): New prototype.
10762         * i387-tdep.c (i387_collect_fsave): New function containing most
10763         of the code from i387_fill_fsave.
10764         (i387_fill_fsave): Call i387_collect_fsave.
10765
10766 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10767
10768         * i386-linux-tdep.c: Update copyright year.
10769         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10770         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10771         svr4_ilp32_link_map_offsets instead of
10772         i386_linux_svr4_fetch_link_map_offsets.
10773
10774 2004-03-15  David Carlton  <carlton@kealia.com>
10775
10776         Fix for PR c++/1553:
10777         * dwarf2read.c (read_structure_type): Determine type name by
10778         calling determine_class_name.
10779         (determine_class_name): New.
10780         (determine_prefix): Look at TYPE_TAG_NAME and call
10781         determine_class_name when appropriate.
10782         (determine_prefix_aux, class_name): Delete.
10783         (read_namespace): Set die->type.
10784
10785 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10786
10787         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10788         unused macro definition.  The definition in target.h (or perhaps
10789         elsewhere) takes precedence.
10790
10791 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10792
10793         * ppc-tdep.h: Update copyright.
10794         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10795         function signatures to match "regsets.h".
10796         * ppc-linux-tdep.c: Include "regset.h".
10797         (ELF_GREGSET_SIZE): Delete.
10798         (right_supply_register): New function.
10799         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10800         using right_supply_register.
10801         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10802         functions.
10803         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10804         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10805         (_initialize_ppc_linux_tdep): Do not register
10806         ppc_linux_regset_core_fns.
10807         (ppc_linux_regset_from_core_section): Replace
10808         fetch_core_registers.
10809         (ppc_linux_regset_core_fns): Delete.
10810         * ppc-linux-nat.c: (right_fill_reg): New function.
10811         (supply_gregset): Update call to ppc_linux_supply_gregset.
10812         (fill_gregset): Clear the register set, use right_fill_reg.
10813         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10814         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10815
10816         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10817         unsigned.
10818
10819 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10820
10821         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10822         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10823         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10824         and register_gdbarch_data.
10825         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10826         (struct gdbarch_data): Replace "init" by "pre_init" and
10827         "post_init".
10828         * gdbarch.h, gdbarch.c: Re-generate.
10829         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10830         with"obstack", use OBSTACK_ZALLOC.
10831         (dwarf2_frame_ops): Delete.
10832         (dwarf2_frame_set_init_reg): Use gdbarch_data.
10833         (dwarf2_frame_init_reg): Use gdbarch_data.
10834         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10835         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10836         (_initialize_svr4_solib): Update.
10837         * user-regs.c (_initialize_user_regs): Update.
10838         * reggroups.c (_initialize_reggroup): Update.
10839         * regcache.c (_initialize_regcache): Update.
10840         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10841         * libunwind-frame.c (_initialize_libunwind_frame): Update.
10842         * gnu-v3-abi.c (init_gnuv3_ops): Update.
10843         * frame-unwind.c (_initialize_frame_unwind): Update.
10844         * frame-base.c (_initialize_frame_base): Update.
10845         * user-regs.c (user_reg_add): Update.
10846         * reggroups.c (reggroup_add): Update.
10847         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10848         * libunwind-frame.c (libunwind_frame_set_descr): Update.
10849         * frame-unwind.c (frame_unwind_append_sniffer): Update.
10850         * frame-base.c (frame_base_table): Update.
10851         * remote.c (_initialize_remote): Update.
10852         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10853
10854 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10855
10856         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10857
10858 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10859
10860         * Makefile.in (frv-linux-tdep.o): Add dependencies.
10861         * frv-linux-tdep.c: New file.
10862         * frv-tdep.c (struct gdbarch_tdep): Add new field
10863         ``sigcontext_reg_addr''.
10864         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10865         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10866         (frv_sigramp_frame_sniffer): New functions.
10867         (frv_sigtramp_frame_unwind): New static global.
10868         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
10869         sniffers.
10870         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10871         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10872
10873 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10874
10875         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10876         but not via a call to error(), when unable to read memory.
10877
10878 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10879
10880         * frv-tdep.c (frv_call_dummy_words): Delete.
10881         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10882
10883 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10884
10885         * infrun.c (handle_step_into_function, step_over_function): Only
10886         update and use STEP_FRAME_ID when the system is using legacy
10887         frames.  Update comments.
10888
10889 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
10890
10891         * amd64-linux-tdep.h: Remove file.
10892         * amd64-linux-tdep.c: Don't include "inferior.h" and
10893         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
10894         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10895         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10896         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10897         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10898         macros.
10899         (user_to_gdb_regmap): Remove variable.
10900         (amd64_linux_gregset_reg_offset): New variable.
10901         (amd64_core_fns): Remove variable.
10902         (fetch_core_registers): Remove function.
10903         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10904         functions.
10905         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10906         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10907         * Makefile.in (amd64_linux_tdep_h): Remove.
10908         (amd64-linux-nat.o): Update dependencies.
10909         (amd64-linux-tdep.o): Update dependencies.
10910
10911         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10912         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10913         functions.
10914         (fetch_inferior_registers, store_inferior_registers): Rewrite.
10915
10916         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10917         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10918
10919 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
10920
10921         * dwarf2read.c (read_structure_type): Rename from
10922         read_structure_scope.  Don't create a symbol or call process_die.
10923         Return immediately if die->type is set.  Call read_type_die before
10924         dwarf2_add_member_fn.
10925         (process_structure_scope): New function.
10926         (read_enumeration_type, process_enumeration_scope): New functions,
10927         broken out from read_enumeration.  Don't create the enumeration
10928         type if it has already been created.
10929         (read_enumeration): Removed.
10930         (process_die): Call read_structure_type, process_structure_scope,
10931         read_enumeration_type, and process_enumeration_scope.  Just call
10932         new_symbol for base and subrange types.  Add a comment about other
10933         type dies.
10934         (read_type_die): Call read_enumeration_type.
10935         (add_partial_structure, new_symbol): Update comments.
10936
10937 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10938
10939         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10940
10941 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10942
10943         * tui/tui-win.h (tui_get_cmd_list): Declare.
10944         * tui/tui-win.c (tui_command): New function.
10945         (tui_get_cmd_list): New function.
10946         (_initialize_tui_win): Moved initialization of tui command in
10947         tui_get_cmd_list.
10948
10949         * tui/tui-data.c (init_content_element): Setup new data members.
10950         (init_win_info): Likewise.
10951         (free_content_elements): Free it.
10952         * tui/tui-data.h (struct tui_data_element): Store the register
10953         content to print.
10954         (struct tui_data_info): Keep the current register group.
10955
10956         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10957
10958         * tui/tui-regs.h (tui_show_registers): Update prototype.
10959         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10960         (tui_resize_all): No need to calculate anything for register window.
10961         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10962         (tui_set_register_element, tui_set_general_regs_content): Remove.
10963         (tui_set_special_regs_content): Remove.
10964         (tui_set_general_and_special_regs_content): Remove.
10965         (tui_set_float_regs_content): Remove.
10966         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10967         (tui_set_regs_content): Remove.
10968         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10969         (tui_v_show_registers_command_support): Remove.
10970         (tui_show_registers): Use a reggroup to specify the registers to show.
10971         (tui_show_register_group): New function.
10972         (tui_display_registers_from): Compute the layout of register window
10973         and refresh with new API; be sure to delete old register windows.
10974         (tui_check_register_values): Update to use tui_get_register and
10975         tui_display_data.
10976         (tui_display_register): Just refresh the register window part.
10977         (tui_register_format): Format registers and save in tui_data_element.
10978         (tui_get_register): New to combine tui_reg_value_has_changed and
10979         tui_get_register_raw_value; fix to use the new gdb API.
10980         (tui_show_float_command): Renamed tui_reg_float_command.
10981         (tui_show_general_command): Renamed tui_reg_general_command.
10982         (tui_show_special_command): Renamed tui_reg_system_command.
10983         (_initialize_tui_regs): Remove unused commands.
10984
10985 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
10986
10987         * NEWS (New native configurations): Mention OpenBSD/amd64.
10988
10989         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10990         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10991         Remove defines.
10992         * config/i386/nm-fbsd64.h: Likewise.
10993         * config/i386/nm-obsd.h: Likewise.
10994         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
10995         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
10996
10997 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10998
10999         * frv-tdep.c (set_variant_scratch_registers): New function.
11000         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
11001         New constants.
11002
11003         From Richard Sandiford  <rsandifo@redhat.com>:
11004         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
11005
11006 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11007
11008         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
11009         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11010         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11011         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11012         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11013         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11014         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11015         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11016         definitions from frv-tdep.c to frv-tdep.h.
11017
11018 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11019
11020         Add shared library support for FR-V FDPIC ABI:
11021         * Makefile.in (solib-frv.o): Add dependencies.
11022         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11023         New functions.
11024         (frv_push_dummy_call): Add support for FDPIC ABI.
11025         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11026         for FDPIC ABI.
11027         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11028         (frv_fdpic_find_canonical_descriptor): Declare.
11029         * solib-frv.c: New file.
11030         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11031         * config/frv/tm-frv.h (solib.h): Include.
11032
11033 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11034
11035         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11036         (frv-tdep.o): Update dependencies.
11037         * frv-tdep.h: New file.
11038         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11039         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11040         constants.
11041         (struct gdbarch_tdep): Add new member ``frv_abi''.
11042         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11043         functions.
11044         (new_variant): Set ``frv_abi'' field.
11045         (gdb_arch_init): Detect FDPIC executables.
11046
11047 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
11048
11049         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11050         wrapper.
11051
11052 2004-03-11  Andrew Cagney  <cagney@redhat.com>
11053
11054         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11055
11056 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
11057
11058         * solist.h (master_so_list): New function.
11059         * solib.c (master_so_list): Likewise.
11060         * solib-svr4.c (enable_break): Iterate over so_list entries
11061         obtained from master list instead of entries obtained directly
11062         via svr4_current_sos().
11063
11064 2004-03-10  Ben Elliston  <bje@gnu.org>
11065
11066         * MAINTAINERS: Update my mail address.
11067
11068 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
11069
11070         * remote-m32r-sdi.c: Support hardware watchpoint.
11071
11072 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11073
11074         * user-regs.c: Update copyright years.
11075         (struct user_regs): Rename to gdb_user_regs.
11076         (append_user_reg, builtin_user_regs, user_regs_init)
11077         (user_reg_add, user_reg_map_name_to_regnum)
11078         (usernum_to_user_reg): Update.
11079
11080 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11081
11082         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11083         (skip_children): New functions.
11084         (locate_pdi_sibling): Call skip_children.
11085
11086 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11087
11088         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11089         * gdbtypes.c (check_typedef): Update comments.
11090
11091 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11092
11093         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11094         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11095         pointer.  Update comment about comp_unit_head.
11096         (struct abbrev_info): Shorten two int flags.
11097         (dwarf_alloc_abbrev): Take a CU argument.
11098         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11099         each time through the loop.  Update cleanup argument.
11100         (psymtab_to_symtab_1): Update cleanup call.
11101         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11102         abbrev_obstack.
11103         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11104         Just call obstack_free and clear the pointer.
11105
11106 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11107
11108         * infrun.c (handle_inferior_event): Remove short-circuit code for
11109         events in a different thread.
11110
11111 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11112
11113         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11114         print the whole transfer.
11115         (initialize_targets): Update description of "set debug target".
11116
11117 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11118
11119         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11120
11121 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
11122
11123         * MAINTAINERS (write after approval): Add myself.
11124
11125 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
11126
11127         * sh-tdep.c (sh_print_registers_info): Use for loop.
11128         Don't skip multiple registers when a float register is encountered.
11129
11130 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
11131
11132         Fix PR tdep/1291.
11133         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11134         to official SH documentation.
11135
11136 2004-03-07  Andrew Cagney  <cagney@redhat.com>
11137
11138         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11139         unused function.
11140
11141 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
11142
11143         * arm-tdep.c (thumb_get_next_pc): Handle BX.
11144         (arm_get_next_pc): Handle BX and BLX.
11145
11146 2004-03-07  Andrew Cagney  <cagney@redhat.com>
11147
11148         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11149         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11150         HPPA_SP_REGNUM.
11151         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11152         (hppa_target_read_fp): Delete.
11153         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11154         register_virtual_size, max_register_raw_size,
11155         max_register_virtual_size, register_byte, register_size,
11156         target_read_fp, fp_regnum, and register_bytes.  Set register_type
11157         instead of register_virtual_type.
11158         (hppa32_register_type, hppa64_register_type): Replace
11159         hppa32_register_virtual_type and hppa64_register_virtual_type.
11160         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11161         (HPPA_FP_REGNUM): Define.
11162
11163         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11164
11165         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11166         (pa_do_registers_info): Delete.
11167         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11168         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11169         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11170
11171         * infcall.c (legacy_push_dummy_code): Delete #ifdef
11172         GDB_TARGET_IS_HPPA code.
11173         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11174         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11175         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11176         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11177         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11178         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11179         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11180         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11181         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11182         (hppa_frameless_function_invocation, hppa64_store_return_value)
11183         (hppa_store_struct_return, hppa64_extract_return_value)
11184         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11185         (hppa32_call_dummy_length, hppa64_call_dummy_length)
11186         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11187         (find_proc_framesize, deposit_21, restore_pc_queue)
11188         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11189         (rp_saved, pc_in_linker_stub): Delete.
11190
11191         Unconditionally enable 64-bit frame and ABI code.
11192         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11193         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11194         push_dummy_frame, fix_call_dummy, push_arguments,
11195         call_dummy_location, extract_return_value, use_struct_convention,
11196         store_return_value, store_struct_return, saved_pc_after_call,
11197         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11198         frame_chain, frame_chain_valid, frameless_function_invocation,
11199         frame_saved_pc, and pop_frame.
11200
11201         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11202         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11203         (hppa_gdbarch_init): Do not set PC_REGNUM.
11204
11205 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
11206
11207         * config/alpha/tm-fbsd.h: Remove file.
11208         * config/alpha/fbsd.mt: Tweak comment.
11209         (TM_FILE): Set to tm-alpha.h.
11210
11211 2004-03-05  Andrew Cagney  <cagney@redhat.com>
11212
11213         * infrun.c (step_over_function): When non-legacy code, and no
11214         step_frame_id, use the unwinder to get the caller's frame ID.
11215
11216 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
11217
11218         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11219         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11220         bfd_arch_unknown.  Adjust comment.
11221
11222         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
11223         * i386obsd-tdep.c: Correct spelling in comment.
11224         * i386nbsd-tdep.c: Correct spelling in comment.
11225         * sparc-tdep.c: Correct spelling in comments.
11226
11227 2004-03-05  David Carlton  <carlton@kealia.com>
11228
11229         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11230         bug.
11231
11232 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
11233
11234         * sparc-tdep.c: Fix typo in comment.
11235
11236 2004-03-04  J. Brobecker  <brobecker@gnat.com>
11237
11238         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11239
11240 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
11241
11242         * dwarf2read.c: Add comment describing memory lifetimes.
11243         (struct dwarf2_pinfo): Update comment.
11244         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11245         (read_enumeration, new_symbol): Don't use obsavestring.
11246
11247 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
11248
11249         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11250         instead of amd64_fill_fxsave.
11251         * amd64bsd-nat.c (store_inferior_registers): Likewise.
11252         * amd64fbsd-nat.c (fill_fpregset): Likewise.
11253
11254         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11255         Reorganize code a bit.
11256
11257 2004-03-04  Orjan Friberg  <orjanf@axis.com>
11258
11259         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11260         when the frame pointer is pushed.  Don't set the frame pointer's
11261         address on the stack unless it's actually located there.
11262         Set the SRP's address on the stack correctly when the PC is still in
11263         the prologue.
11264         (cris_return_value): New function.
11265         (cris_gdbarch_init): Clear deprecated store_return_value,
11266         extract_return_value.
11267
11268 2004-03-02  Jim Blandy  <jimb@redhat.com>
11269
11270         * stabsread.c (reg_value_complaint): The maximum register number
11271         is one less than the number of registers.
11272
11273 2004-03-02  Andrew Cagney  <cagney@redhat.com>
11274
11275         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11276         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
11277         trailing comma and redundant assignment of I386_ST0_REGNUM.
11278         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11279         32-bit segment registers.
11280
11281 2004-03-01  Andrew Cagney  <cagney@redhat.com>
11282
11283         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11284         use frame_relative_level and get_next_frame.
11285
11286 2004-02-29  Andrew Cagney  <cagney@redhat.com>
11287
11288         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11289         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11290         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11291         Delete macro.
11292
11293 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11294
11295         * inflow.c (terminal_inferior): Don't give up the terminal if we
11296         previously couldn't get the inferior's terminal state.
11297
11298 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11299
11300         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11301         PC_REGNUM.
11302
11303 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11304
11305         * NEWS: Refer to GDB 6.1.
11306         * README: Refer to GDB 6.1.
11307         * PROBLEMS: Refer to GDB 6.1.
11308
11309 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
11310
11311         * thread-db.c (disable_thread_signals): Remove unused function.
11312
11313 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11314
11315         * amd64-nat.c: Include "gdb_string.h".
11316         (amd64_collect_native_gregset): Zero-extend the 32-bit
11317         general-purpose registers and %eip.
11318
11319         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11320         * amd64-tdep.c (amd64_collect_fxsave): New function.
11321         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11322
11323         * i387-tdep.h: Update copyright year.
11324         (i387_collect_fxsave): New prototype.
11325         * i387-tdep.c: Update copyright year.
11326         (i387_collect_fxsave): New function containing most of the code
11327         from i387_fill_fxsave.
11328         (i387_fill_fxsave): Call i387_collect_fxsave.
11329
11330 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11331
11332         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11333         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
11334
11335 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11336
11337         * amd64-tdep.c (amd64_frame_cache): Fix comment.
11338
11339 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11340
11341         * utils.c: Use "", instead of <>, to include readline.
11342         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11343         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11344         * source.c, solib.c, exec.c, event-top.c: Ditto.
11345         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11346         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11347         * Makefile.in: Update all dependencies.
11348         (readline_tilde_h, readline_history_h): Define.
11349         (readline_headers): Delete.
11350
11351 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11352
11353         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11354         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11355         "config/i386/tm-lx64.h".
11356
11357         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11358         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
11359         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11360
11361 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11362
11363         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11364
11365         * breakpoint.c (_initialize_breakpoint): Use
11366         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
11367         Add help to show command.
11368
11369 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11370
11371         * i386-nat.c: Reformat to be closer to coding standards.
11372         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11373         `retval'.  Make variables `align' and `size' local to while-loop.
11374         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11375         (_initialize_i386_nat): New prototype.
11376
11377         * tui/tui.c: Include <readline/readline.h> instead of
11378         "readline/readline.h".  Include it after <term.h> and
11379         "gdb_curses.h".
11380
11381 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11382
11383         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11384         the new frame unwind code.
11385         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11386         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11387         PCOQ_HEAD_REGNUM.
11388
11389         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11390         "return_value" and "push_dummy_call".
11391         (hppa32_use_struct_convention): Delete unused function.
11392         (hppa32_store_return_value): Delete unused function.
11393         (hppa32_extract_return_value): Delete unused function.
11394         (hppa32_stack_align): Delete function.
11395
11396 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
11397
11398         * coffread.c (enter_linenos): Don't let rawptr reference memory
11399         outside linetab[]'s limits.
11400
11401 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11402
11403         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11404         inferior stack space - the stack needs to grow upwards.
11405         (hppa32_frame_align): New function.
11406         (hppa64_frame_align): Replace hppa_frame_align.
11407         (hppa_gdbarch_init): Update.
11408
11409 2004-02-26  Orjan Friberg  <orjanf@axis.com>
11410
11411         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11412         (dwarf2-frame.h): Include.
11413         (enum cris_regnums): New enum CRIS_FP_REGNUM.
11414         Remove static variables related to ABI setting.
11415         (struct gdbarch_tdep): Remove cris_abi member.
11416         (struct frame_extra_info): Remove.
11417         (cris_unwind_cache, stack_item): New structs.
11418         (cris_frame_unwind, cris_frame_base): New variables.
11419         (push_stack_item, pop_stack_item)
11420         (cris_frame_unwind_cache, cris_frame_this_id)
11421         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11422         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11423         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11424         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11425         (cris_reg_struct_has_addr): New functions.
11426         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11427         (cris_frame_saved_pc, cris_saved_pc_after_call,
11428         (cris_store_struct_return, cris_frameless_function_invocation)
11429         (cris_pop_frame, cris_skip_prologue_main)
11430         (cris_abi_original_store_return_value)
11431         (cris_abi_v2_store_return_value)
11432         (cris_abi_original_extract_return_value)
11433         (cris_abi_v2_extract_return_value)
11434         (cris_abi_original_reg_struct_has_addr)
11435         (cris_abi_v2_reg_struct_has_addr)
11436         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11437         (cris_push_return_address, cris_abi_update): Remove.
11438         (_initialize_cris_tdep): Remove ABI command.
11439         (cris_dump_tdep): Ditto.
11440         (cris_gdbarch_init): Remove ABI command.
11441         Set store_return_value, extract_return_value, push_dummy_code,
11442         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11443         frame_unwind_append_sniffer, frame_base_set_default.
11444         Clear deprecated init_frame_pc, push_arguments, store_return_value,
11445         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11446         sizeof_call_dummy_words, get_saved_register, push_return_address,
11447         pop_frame, store_struct_return, frame_init_saved_regs,
11448         init_extra_frame_info, frameless_function_invocation, frame_chain,
11449         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11450         dummy_write_sp.
11451
11452 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11453
11454         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11455         * valprint.c (print_hex_chars): Change from static to external.
11456         (print_char_chars): New function.
11457         * printcmd.c (print_scalar_formatted): For integer and enum types
11458         that are longer than LONGEST, perform processing via appropriate
11459         print_*_chars routines.
11460
11461 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11462
11463         * Makefile.in: Update dependencies.
11464         Changes from Ulrich Weigand,
11465         * s390-tdep.c: Include "dwarf2-frame.h".
11466         (s390_dwarf2_frame_init_reg): New function.
11467         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11468         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
11469
11470 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11471
11472         * breakpoint.c (pending_break_support): New setting variable.
11473         (break_command_1): Account for pending_break_support setting
11474         when creating pending breakpoints.
11475         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11476         (_initialize_breakpoint): Add "set breakpoint pending" and
11477         "show breakpoint pending" commands.
11478
11479 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11480
11481         Fix PR i18n/1570.
11482         * charset.c (backslashable, backslashed, represented): Remove 'e'
11483         from list of escaped characters, not part of ISO-C.
11484
11485 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11486
11487         From Peter Schauer <schauer@pdf.de>:
11488         * tui/tui.c: Move system header includes after local includes.
11489         Fixes a build failure on solaris systems.
11490
11491 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11492
11493         * configure.in: Refine the previous change.
11494         * configure: Regenerate.
11495
11496 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11497
11498         * amd64-tdep.h: Renamed from x86-64-tdep.h.
11499         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
11500         "amd64-tdep.h" instead of "x86-64-tdep.h".
11501         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11502         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11503         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
11504         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11505         and "x86-64-tdep.c".
11506         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
11507         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11508         and "x86-64-tdep.c".
11509         * amd64bsd-nat.c: Update copyright year.
11510         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11511         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11512         "x86-64-tdep.h".
11513         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11514         "x86-64-tdep.h".
11515         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11516         "x86-64-tdep.h".
11517         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11518         "x86-64-tdep.h".
11519         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11520         "x86-64-tdep.h".
11521         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11522         "x86-64-tdep.h".
11523         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11524         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11525         * Makefile.in (amd64_linux_tdep_h): Renamed from
11526         x86_64_linux_tdep_h.
11527         (amd64_tdep_h): Renamed from x86_64_tdep_h.
11528         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11529         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11530         (amd64obsd-tdep.o): Update dependencies.
11531         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11532         dependencies.
11533         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11534         dependencies.
11535         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11536         amd64-linux-nat.c amd64-linux-tdep.c.
11537         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11538         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11539         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11540         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11541         amd64-tdep.o and amd64-linux-tdep.o.
11542         (TM_FILE): Set to tm-linux64.h.
11543         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11544         (NAT_FILE): Set to nm-linux64.h.
11545         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11546         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11547         amd64-tdep.o.
11548         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11549         amd64-tdep.o.
11550         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11551         amd64-tdep.o.
11552
11553 2004-02-25  Roland McGrath  <roland@redhat.com>
11554
11555         * remote.c (remote_protocol_qPart_auxv): New variable.
11556         (init_all_packet_configs): Initialize it.
11557         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11558         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11559         (show_remote_cmd): Call it.
11560         (_initialize_remote): Initialize commands.
11561         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11562         service TARGET_OBJECT_AUXV requests.
11563
11564 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11565
11566         * configure.in: Make sure that the wborder function is available.
11567         Otherwise, search for it in the cur_colr library.
11568         * configure: Regenerate.
11569
11570 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11571
11572         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11573
11574 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11575
11576         * config/i386/tm-x86-64linux.h: Tweak comments.
11577
11578 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
11579
11580         * MAINTAINERS: Add self to write-after-approval list.
11581
11582 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11583
11584         PR cli/1566.  Problem found, and fix suggested by David Allan.
11585         * cli/cli-script.c (execute_control_command): Unconditionally
11586         install a cleanup.  Default "ret" to "invalid_control".  Use
11587         "break" instead of "return" to escape from the switch.
11588
11589 2004-02-24  J. Brobecker  <brobecker@gnat.com>
11590
11591         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11592         with the lines macro defined in term.h on AiX.
11593         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11594         a collision with the label_width macro defined in term.h on AiX.
11595
11596 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
11597
11598         Committed by Kevin Buettner <kevinb@redhat.com>.
11599
11600         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11601         * ia64-tdep.c (ia64_write_pc): Make it a global function.
11602         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11603         instead of ia64_write_pc().
11604         * ia64-linux-tdep.c (regcache.h): Include.
11605         (ia64_linux_write_pc): New function.
11606
11607 2004-02-23  Roland McGrath  <roland@redhat.com>
11608
11609         * auxv.c (info_auxv_command): Fix typos in error messages.
11610
11611 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
11612
11613         * x86-64-tdep.h: Tweak comment.
11614         (enum amd64_regnum): New.
11615         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11616         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11617         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11618         (X86_64_XMM1_REGNUM): Removed.
11619         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11620         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11621         prototypes for renamed functions.
11622         * x86-64-tdep.c: Fix typo.
11623         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11624         register numbers.
11625         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11626         Use constants from `enum amd64_regnum' for register numbers.
11627         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11628         (amd64_analyze_prologue, amd64_frame_cache,
11629         amd64_sigtramp_frame_cache): Use constants from `enum
11630         amd64_regnum' for register numbers.
11631         (amd64_supply_fpregset): Adjust for renamed functions.
11632         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
11633         `enum amd64_regnum' for register numbers.
11634         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11635         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11636         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11637         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11638         (amd64_linux_fill_gregset): Adjust for renamed macros.
11639         (fetch_core_registers): Adjust for renamed functions.
11640         (amd64_linux_init_abi): Adjust for renamed functions.
11641         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11642         renamed functions.
11643         * amd64-nat.c: Adjust for renamed macros.
11644         * amd64bsd-nat.c (fetch_inferior_registers)
11645         (store_inferior_registers): Use constants from `enum amd64_regnum'
11646         for register numbers.  Adjust for renamed variables.
11647         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11648         renamed variables.
11649         (_initialize_amd64fbsd_nat): Use constants from `enum
11650         amd64_regnum' for register numbers.
11651         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11652         `enum amd64_regnum' for register numbers.
11653         (amd64fbsd_init_abi): Adjust for renamed functions.
11654         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11655         `enum amd64_regnum' for register numbers.
11656         (amd64nbsd_init_abi): Adjust for renamed functions.
11657         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11658         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11659         `enum amd64_regnum' for register numbers.
11660         (amd64obsd_init_abi): Adjust for renamed functions.
11661         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11662
11663 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11664
11665         * breakpoint.c (print_one_breakpoint): Do not output spaces
11666         after printing <PENDING> for a pending breakpoint.
11667
11668 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11669
11670         * printcmd.c (print_scalar_formatted): Initialize val_long
11671         to remove compiler warning message.
11672
11673 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11674
11675         * defs.h (nquery, yquery): New prototypes.
11676         * breakpoint.c (break_command_1): Use new nquery interface.
11677         * utils.c (defaulted_query, nquery, yquery): New functions.
11678
11679 2004-02-23  Andrew Cagney  <cagney@redhat.com>
11680
11681         * hppa-tdep.c (hppa_frame_align): New function.
11682         (hppa32_push_dummy_call): New function.
11683         (hppa64_push_dummy_call): New function.
11684         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11685         disabled.
11686
11687         * infcall.c (legacy_push_dummy_code): Don't call deprecated
11688         FIX_CALL_DUMMY when push_dummy_call is available.
11689         (call_function_by_hand, push_dummy_code): Ditto.
11690
11691 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11692
11693         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11694         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11695         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11696         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11697         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11698         call_dummy_location to ON_STACK.
11699
11700 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11701
11702         * x86-64-linux-tdep.c: Tweak comment.
11703         (amd64_linux_supply_gregset): Renamed from
11704         x86_64_linux_supply_gresget.
11705         (amd64_linux_fill_gregset): Renamed from
11706         x86_64_linux_fill_gregset.
11707         (fetch_core_registers): Adjust for renamed functions.
11708         (amd64_core_fns): Renamed from x86_64_core_fns.
11709         (amd64_linux_sigtramp_start): Renamed from
11710         x86_64_linux_sigtramp_start.
11711         (amd64_linux_pc_in_sigtramp): Renamed from
11712         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
11713         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11714         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11715         (amd64_linux_sigcontext_addr): Renamed from
11716         x86_64_linux_sigcontext_addr.
11717         (amd64_linux_sc_reg_offset): Renamed from
11718         x86_64_linux_sc_reg_offset.
11719         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11720         Adjust for renamed functions and variables.
11721         (_initialize_amd64_linux_tdep): Renamed from
11722         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
11723         variables.
11724         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
11725         Adjust for renamed functions.
11726
11727         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11728         from x86_64_linux_gregset64_reg_offset.
11729         (amd64_linux_gregset32_reg_offset): Rename from
11730         x86_64_linux_gregset64_reg_offset.
11731         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11732         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11733         (amd64_linux_dr_set_control): Renamed from
11734         x86_64_linux_dr_set_control.  Adjust for renamed functions.
11735         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11736         Adjust for renamed functions.
11737         (amd64_linux_dr_reset_addr): Renamed from
11738         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11739         (amd64_linux_dr_get_status): Renamed from
11740         x86_64_linux_dr_get_status.  Adjust for renamed functions.
11741         (_initialize_amd64_linux_nat): Renamed from
11742         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
11743         functions.
11744         * config/i386/nm-x86-64linux.h: Update copyright year.
11745         Adjust for renamed functions.
11746
11747         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11748         amd64fbsd_sigtramp_start.
11749         (amd64fbsd_sigtramp_end_addr): Renamed from
11750         amd64fbsd_sigtramp_end.
11751         (amd64fbsd_init_abi): Adjust for renamed variables.
11752         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11753         variables.
11754         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11755         amd64fbsd_sigtramp_start.
11756         (amd64fbsd_sigtramp_end_addr): Renamed from
11757         amd64fbsd_sigtramp_end.
11758
11759 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11760
11761         * hppa-tdep.c (hppa32_return_value): New function.
11762         (hppa64_return_value): New function.
11763         (hppa_gdbarch_init): Set return_value; keep disabled.
11764
11765         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11766         struct-return and inferior function call methods.
11767
11768         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11769         "frame-base.h".
11770         (struct hppa_frame_cache): Define.
11771         (hppa_frame_cache, hppa_frame_this_id): New functions.
11772         (hppa_frame_prev_register): New function.
11773         (hppa_frame_unwind, hppa_frame_base): New variables.
11774         (hppa_frame_unwind_sniffer): New function.
11775         (hppa_frame_base_address, hppa_unwind_pc): New function.
11776         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11777         sniffer, and frame base sniffer; keep disabled.
11778         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11779         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11780
11781         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11782         to predicates for "seriously old code".
11783
11784         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11785         runtime if(0).
11786
11787         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11788         unsigned.
11789         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11790
11791         * config/pa/tm-hppa.h: Update copyright.
11792         (DEPRECATED_INIT_FRAME_PC): Delete macro.
11793         (deprecated_init_frame_pc_default): Delete declaration.
11794         (hppa_frame_init_saved_regs): Delete declaration.
11795         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11796         * hppa-tdep.c: Include "arch-utils.h".
11797         (hppa_gdbarch_init): Set deprecated init_frame_pc
11798         and deprecated frame_init_saved_regs.
11799         (hppa_frame_init_saved_regs): Make static.
11800
11801 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11802
11803         Remove old 386BSD support.
11804         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11805         * configure.host: Remove i[34567]86-*-bsd*.
11806         * configure.tgt: Remove i[34567]86-*-bsd*.
11807         * i386b-nat.c: Removed.
11808         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11809         (i386b-nat.o): Remove dependencies.
11810
11811         * config/i386/i386bsd.mh: Removed.
11812         * config/i386/i386bsd.mt: Removed.
11813         * config/i386/nm-i386bsd.h: Removed.
11814         * config/i386/tm-i386bsd.h: Removed.
11815         * config/i386/xm-i386bsd.h: Removed.
11816
11817         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11818
11819         * amd64fbsd-tdep.c: Include "solib-svr4.h".
11820         (amd64fbsd_init_abi): Set link map offsets.
11821         * amd64nbsd-tdep.c: Include "slib-svr4.h".
11822         (amd64nbsd_init_abi): Set link map offsets.
11823         * amd64obsd-tdep.c: Include "solib-svr4.h".
11824         (amd64obsd_init_abi): Set link map offsets.
11825         * i386fbsd-tdep.c: Include "solib-svr4.h".
11826         (i386fbsd_init_abi): Set link map offsets.
11827         * i386nbsd-tdep.c: Include "solib-svr4.h".
11828         (i386nbsdelf_init_abi): Set link map offsets.
11829         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11830         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11831         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11832         solib-legacy.o and core-aout.o. Reformat.
11833         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11834         solib-svr4.o, solib-legacy.o.  Reformat.
11835         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
11836         * config/i386/nbsdelf.mh: Reformat.
11837         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11838         solib-svr4.o, solib-legacy.o and corelow.o.
11839         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11840         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11841         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
11842         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11843         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11844         (TM_FILE): Set to tm-fbsd.h.
11845         * config/i386/nbsd.mt (TDEPFILES): Reformat.
11846         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11847         solib-svr4.o.
11848         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11849         solib-svr4.o.
11850         (TM_FILE): Set to nm-nbsd.h.
11851         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
11852         Simplify shared library support.  Don't include "elf/common.h".
11853         (SVR4_SHARED_LIBS): Don't define.
11854         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
11855         "solib.h".
11856         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11857         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
11858         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
11859         Don't include "i386/tm-i386.h".  Include "solib.h".
11860         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
11861         Don't include "i386/tm-i386.h".
11862         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
11863         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
11864         Include "i386/xm-i386.h".
11865         (HOST_LONG_DOUBLE_FORMAT): Remove.
11866
11867         Fix OpenBSD/i386 sigtramp recognition.
11868         * i386-tdep.h: Update copyright year.
11869         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11870         (i386bsd_sigtramp_end): New prototypes.
11871         (i386fbsd_sigtramp_start_addr): Renamed from
11872         i386fbsd_sigtramp_start.
11873         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11874         (i386obsd_sigtramp_start_addr): Renamed from
11875         i386obsd_sigtramp_start.
11876         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11877         * i386bsd-tdep.c: Update copyright year.
11878         (i386bsd_pc_in_sigtramp): Make public.
11879         * i386fbsd-nat.c: Update copyright year.
11880         (_initialize_i386fbsd_nat): Adjust for renamed variables.
11881         * i386fbsd-tdep.c: Update copyright year.
11882         (i386fbsd_sigtramp_start_addr): Renamed from
11883         i386fbsd_sigtramp_start.
11884         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11885         (i386fbsdaout_init_abi): Adjust for renamed variables.
11886         * i386obsd-nat.c: Update copyright year.
11887         (_initialize_i386obsd_nat): Adjust for renamed variables.
11888         * i386obsd-tdep.c: Include "target.h".
11889         (i386obsd_page_size): New variable.
11890         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11891         (i386obsd_sigtramp_end): New functions.
11892         (i386obsd_sigtramp_start_addr): Renamed from
11893         i386obsd_sigtramp_start.
11894         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11895         (i386obsd_init_abi): Adjust for renamed variables.  Set
11896         pc_in_sigtramp, sigtramp_start and sigtramp_end.
11897         * Makefile.in (i386obsd-tdep.o): Update dependencies.
11898
11899         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11900         trampoline change in OpenBSD kernel.
11901
11902         * amd64-nat.c: Update copyright year.
11903         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11904         architecture from REGCACHE.
11905
11906         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11907         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11908
11909 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
11910
11911         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11912         i[34567]86-*-openbsd3.[0-3].
11913         * config/i386/obsdaout.mh: New file.
11914
11915         * config/i386/obsd.mh (MH_FLAGS): Remove.
11916
11917         Fix PR build/1549.
11918         * i386obsd-tdep.c: Update copyright years.  Include
11919         "solib-svr4.h".
11920         (i386obsd_init_abi): Don't set regset_from_core_section here.
11921         (i386obsd_aout_init_abi): New function.  Set
11922         regset_from_core_section here.
11923         (i386obsd_elf_init_abi): New function.
11924         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11925         * Makefile.in (i386obsd-tdep.o): Update dependecies.
11926         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11927         (TM_FILE): Set to tm-nbsd.h.
11928
11929         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11930         solib-sunos.o.
11931
11932         * solib-svr4.h: Update copyright year.
11933         (svr4_ilp32_fetch_link_map_offsets)
11934         (svr4_lp64_fetch_link_map_offsets): New prototype.
11935         * solib-svr4.c: Update copyright year.
11936         (svr4_ilp32_fetch_link_map_offsets)
11937         (svr4_lp64_fetch_link_map_offsets): New function.
11938
11939 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
11940
11941         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11942         to the partial symbol table.
11943
11944 2004-02-20  J. brobecker  <brobecker@gnat.com>
11945
11946         * PROBLEMS: Add description of problem documented under gdb/1560.
11947
11948 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
11949
11950         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
11951         comments.
11952         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11953         functions.
11954         (amd64obsd_init_abi): Reorder initializations.  Use
11955         amd64obsd_r_reg_offset to initialize the general-purpose register
11956         set details.  Set regset_from_core_section.
11957         (_initialize_amd64obsd_tdep): Rename from
11958         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
11959         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11960         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11961
11962         * NEWS (New native configurations): Mention OpenBSD/alpha.
11963         * configure.tgt: Add alpha*-*-openbsd*.
11964         * configure.host: Add alpha*-*-openbsd*.
11965         * alphanbsd-tdep.c: Update copyright year.
11966         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11967
11968 2004-02-20  Andrew Cagney  <cagney@redhat.com>
11969
11970         Fix PR tdep/1372.
11971         * configure.tgt: Delete target "none-*-*".
11972         * configure.host: Delete host "none-*-*".
11973         * config/none/none.mh: Delete file.
11974         * config/none/none.mt: Delete file.
11975         * config/none/xm-none.h: Delete file.
11976         * config/none/tm-none.h: Delete file.
11977         * config/none/nm-none.h: Delete file.
11978
11979 2004-02-19  Fred Fish  <fnf@redhat.com>
11980
11981         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11982         cache->uses_fp prior to setting it.
11983
11984 2004-02-19  Fred Fish  <fnf@redhat.com>
11985
11986         Fix for PR breakpoint/1558.
11987         * sh-tdep.c (IS_JSR): New macro.
11988         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11989
11990 2004-02-19  Jim Blandy  <jimb@redhat.com>
11991
11992         * findvar.c (value_from_register): Doc fix.
11993
11994 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
11995
11996         * printcmd.c (print_scalar_formatted): Do not check for sizeof
11997         type being greater than sizeof of host's LONGEST.  Always use
11998         unpack_long() unless format 'f' chosen.
11999
12000 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
12001
12002         Committed by Elena Zannoni  <ezannoni@redhat.com>
12003
12004         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
12005         contains a symbol wich is the best, non-exact match for the given
12006         pc.  Update comments.
12007
12008 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
12009
12010         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12011         macro, which was part of the now removed Mach 3 port.
12012         * utils.c (request_quit): Ditto.
12013
12014 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
12015
12016         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12017         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12018
12019 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12020
12021         Committed by Mark Kettenis  <kettenis@gnu.org>.
12022
12023         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12024         Define.
12025
12026 2004-02-18  Andrew Cagney  <cagney@redhat.com>
12027
12028         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12029         CONFIG_INSTALL and CONFIG_UNINSTALL.
12030         * configure: Re-generate.
12031         * interps.h (INTERP_TUI): Define.
12032         * Makefile.in: Update dependencies.
12033         (TUI): New macro.
12034         (tui-main.o): Specify dependencies.
12035         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12036         * tui/tui-main.c: New file.
12037
12038 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
12039
12040         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12041         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12042         dependencies.
12043         * configure.host: Add x86_64-*-openbsd*.
12044         * configure.tgt: Add x86_64-*-openbsd*.
12045         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12046
12047         * tui/tui.c: Don't include <malloc.h>.
12048
12049         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12050         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12051         amd64nbsd-tdep.c.
12052
12053         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12054         static.  Remove extraneous whitespace.
12055         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12056         static.
12057
12058 2004-02-17  Jim Blandy  <jimb@redhat.com>
12059
12060         * findvar.c (value_from_register): Doc fix.
12061
12062 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12063
12064         Committed by Jim Blandy  <jimb@redhat.com>.
12065
12066         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12067         CORE_ADDR as type for selectors.  Correct types for GNU run time
12068         message lookup function to use double indirection.
12069         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12070         * objc-lang.h (lookup_child_selector): Adapt prototype.
12071
12072         * s390-nat.c (SUBOFF): New macro.
12073         (supply_gregset, fill_gregset): Use it to handle debugging
12074         of 32-bit exectuables running under a 64-bit kernel.
12075         * s390-tdep.c: Include "solib-svr4.h".
12076         (s390_svr4_fetch_link_map_offset): New function.
12077         (s390x_svr_fetch_link_map_offset): Likewise.
12078         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12079         * Makefile.in (s390-tdep.o): Update dependencies.
12080
12081         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12082         "frame-unwind.h".
12083         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
12084         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12085         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12086         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12087         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12088         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12089         S390_SIGNAL_FRAMESIZE,
12090         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12091         (struct frame_extra_info): Remove.
12092         (s390_memset_extra_info): Remove.
12093         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12094         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12095         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12096         (is_rse): Renamed to ...
12097         (is_rsy): ... this.  Support long displacements.
12098         (is_rxe): Renamed to ...
12099         (is_rxy): ... this.  Support long displacements.
12100         (compute_x_addr): Support long displacements.
12101         (struct s390_prologue_data): New data type.
12102         (s390_on_stack): Change API to use struct s390_prologue_data.
12103         (s390_store): Reimplement.
12104         (s390_load): New function.
12105         (s390_get_signal_frame_info): Remove.
12106         (s390_get_frame_info): Remove, replace by ...
12107         (s390_analyze_prolog): ... this new function.
12108         (s390_check_function_end): Remove.
12109         (s390_function_start): Remove.
12110         (s390_frameless_function_invokation): Remove.
12111         (s390_is_sigreturn): Remove.
12112         (s390_init_frame_pc_first): Remove.
12113         (s390_init_frame_extra_info): Remove.
12114         (s390_frame_init_saved_regs): Remove.
12115         (s390_frame_saved_pc_nofix): Remove.
12116         (s390_frame_saved_pc): Remove.
12117         (s390_frame_chain): Remove.
12118         (s390_fp_regnum, s390_read_fp): Remove.
12119         (s390_pop_frame_regular, s390_pop_frame): Remove.
12120         (s390_saved_pc_after_call): Remove.
12121         (s390_skip_prologue): Reimplement.
12122         (s390_in_function_epilogue_p): Support long displacements.
12123         (struct s390_unwind_cache): New data structure.
12124         (s390_frame_unwind_cache): New function.
12125         (s390_prologue_frame_unwind_cache): Likewise.
12126         (s390_backchain_frame_unwind_cache): Likewise.
12127         (s390_frame_this_id, s390_frame_prev_register): Likewise.
12128         (s390_frame_unwind): Define.
12129         (s390_frame_sniffer): New function.
12130         (struct s390_pltstub_unwind_cache): New data structure.
12131         (s390_pltstub_frame_unwind_cache): New function.
12132         (s390_pltstub_frame_this_id): Likewise.
12133         (s390_pltstub_frame_prev_register): Likewise.
12134         (s390_pltstub_frame_unwind): Define.
12135         (s390_pltstub_frame_sniffer): New function.
12136         (struct s390_sigtramp_unwind_cache): New data structure.
12137         (s390_sigtramp_frame_unwind_cache): New function.
12138         (s390_sigtramp_frame_this_id): Likewise.
12139         (s390_sigtramp_frame_prev_register): Likewise.
12140         (s390_sigtramp_frame_unwind): Define.
12141         (s390_sigtramp_frame_sniffer): New function.
12142         (s390_frame_base_address, s390_local_base_address): New functions.
12143         (s390_frame_base): Define.
12144         (s390_unwind_pc, s390_unwind_sp): New function.
12145         (s390_push_dummy_call): Use new frame base location.
12146         (s390_unwind_dummy_id): Likewise.
12147         (s390_gdbarch_init): Remove calls to:
12148         set_gdbarch_frameless_function_invocation,
12149         set_gdbarch_deprecated_init_frame_pc,
12150         set_gdbarch_deprecated_frame_chain,
12151         set_gdbarch_deprecated_frame_init_saved_regs,
12152         set_gdbarch_deprecated_pop_frame,
12153         set_gdbarch_deprecated_init_extra_frame_info,
12154         set_gdbarch_deprecated_init_frame_pc_first,
12155         set_gdbarch_deprecated_target_read_fp,
12156         set_gdbarch_deprecated_frame_saved_pc,
12157         set_gdbarch_deprecated_saved_pc_after_call,
12158         set_gdbarch_deprecated_fp_regnum.
12159         Add calls to:
12160         set_gdbarch_in_solib_call_trampoline,
12161         frame_unwind_append_sniffer,
12162         frame_base_set_default,
12163         set_gdbarch_unwind_pc,
12164         set_gdbarch_unwind_sp.
12165         * Makefile.in (s390-tdep.o): Update dependencies.
12166
12167         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12168         (S390_STACK_FRAME_OVERHEAD): Remove.
12169         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12170         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12171         (s390_promote_integer_argument): Remove.
12172         (s390_cannot_extract_struct_value_address): Remove.
12173         (s390_use_struct_convention, s390_store_struct_return): Remove.
12174         (s390_extract_return_value, s390_store_return_value): Remove.
12175         (s390_return_value_convention, s390_return_value): New functions.
12176         (is_float_singleton): Handle typedefs.
12177         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12178         Remove, replace by ...
12179         (s390_function_arg_pass_by_reference, s390_function_arg_float,
12180         s390_function_arg_integer): ... these new functions.
12181         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12182         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12183         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12184         Fill in tdep->abi.
12185         Remove calls to:
12186         set_gdbarch_deprecated_store_struct_return,
12187         set_gdbarch_deprecated_extract_return_value,
12188         set_gdbarch_deprecated_store_return_value,
12189         set_gdbarch_use_struct_convention,
12190         set_gdbarch_extract_struct_value_address,
12191         set_gdbarch_deprecated_pc_in_call_dummy,
12192         set_gdbarch_deprecated_push_arguments,
12193         set_gdbarch_deprecated_save_dummy_frame_tos,
12194         set_gdbarch_deprecated_push_return_address,
12195         set_gdbarch_deprecated_sizeof_call_dummy_words,
12196         set_gdbarch_deprecated_call_dummy_words,
12197         set_gdbarch_deprecated_dummy_write_sp.
12198         Add calls to:
12199         set_gdbarch_push_dummy_call,
12200         set_gdbarch_unwind_dummy_id,
12201         set_gdbarch_return_value.
12202
12203         * config/s390/nm-linux.h: Update comments.
12204         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12205         (STOPPED_BY_WATCHPOINT): Redefine.
12206         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12207         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12208         (s390_stopped_by_watchpoint): Likewise.
12209         (watch_area_cnt): Remove.
12210         * s390-nat.c: Update comments.
12211         (watch_area): Remove typedef.
12212         Global replace watch_area by struct watch_area.
12213         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12214         (s390_stopped_by_watchpoint): Remove pid argument,
12215         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
12216         (s390_fix_watch_points): Remove pid argument,
12217         use s390_inferior_tid.  Recompute area spanned by watchpoints.
12218         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12219         argument.  Reimplement.
12220
12221         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
12222         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12223         (FETCH_INFERIOR_REGISTERS): Define.
12224         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12225         core-regset.o.
12226         * config/s390/s390x.mt: Remove.
12227         * config/s390/tm-s390.h: Remove.
12228         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12229         (TARGET_ELF64): Remove.
12230         (SKIP_TRAMPOLINE_CODE): Do not undefine.
12231         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12232         s390*-*-* case; always set gdb_target to s390.
12233         * regformats/reg-s390.dat: Remove control registers.
12234         * regformats/reg-s390x.dat: Likewise.
12235         * s390-tdep.h: New file.
12236         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12237         Include "inferior.h" and "s390-tdep.h".
12238         Remove private definition of offsetof.
12239         (s390_register_u_addr): Remove.
12240         (regmap_gregset, regmap_fpregset): Define.
12241         (supply_gregset, fill_gregset): Reimplement.
12242         (supply_fpregset, fill_fpregset): Likewise.
12243         (s390_inferior_tid): New function.
12244         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12245         (fetch_inferior_registers, store_inferior_registers): Likewise.
12246         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
12247         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
12248         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12249         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12250         (struct gdbarch_tdep): Define.
12251         (struct s390_register_info): Define.
12252         (s390_register_info): New variable.
12253         (s390_register_name): Reimplement.
12254         (s390_register_type): New function.
12255         (s390_register_raw_size, s390x_register_raw_size): Remove.
12256         (s390_cannot_fetch_register): Remove.
12257         (s390_register_byte): Remove.
12258         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12259         (s390_dwarf_regmap): New variable.
12260         (s390_dwarf_reg_to_regnum): New function.
12261         (s390_stab_reg_to_regnum): Remove.
12262         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12263         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12264         (s390_convert_register_p): Likewise.
12265         (s390_register_to_value, s390_value_to_register): Likewise.
12266         (s390_register_reggroup_p): Likewise.
12267         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12268         s390_gregset, s390x_gregset, s390_fpregset): New variables.
12269         (s390_supply_regset, s390_regset_from_core_section): New functions.
12270         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12271         (S390_FPR_SIZE): Likewise.
12272         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
12273         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12274         (S390_NUM_GPRS): Move here from tm-s390.h.
12275         (S390_NUM_FPRS): Likewise.
12276         (s390_in_function_epilogue_p): New function.
12277         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12278         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12279         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12280         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12281         Replace S390_FP_REGNUM by S390_SP_REGNUM.
12282         Remove calls to:
12283         set_gdbarch_deprecated_max_register_raw_size,
12284         set_gdbarch_deprecated_max_register_virtual_size,
12285         set_gdbarch_deprecated_register_byte,
12286         set_gdbarch_cannot_fetch_register,
12287         set_gdbarch_cannot_store_register,
12288         set_gdbarch_deprecated_register_size,
12289         set_gdbarch_deprecated_register_raw_size,
12290         set_gdbarch_deprecated_register_virtual_size,
12291         set_gdbarch_deprecated_register_virtual_type,
12292         set_gdbarch_deprecated_register_bytes.
12293         Add calls to:
12294         set_gdbarch_num_pseudo_regs,
12295         set_gdbarch_register_type,
12296         set_gdbarch_convert_register_p,
12297         set_gdbarch_register_to_value,
12298         set_gdbarch_value_to_register,
12299         set_gdbarch_register_reggroup_p,
12300         set_gdbarch_regset_from_core_section,
12301         set_gdbarch_pseudo_register_read,
12302         set_gdbarch_pseudo_register_write,
12303         set_gdbarch_in_function_epilogue_p.
12304         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12305         (s390_tdep_h): New variable.
12306
12307 2004-02-17  Jim Blandy  <jimb@redhat.com>
12308
12309         * findvar.c (value_from_register): If the type has no length, just
12310         return an acceptable value --- don't report an internal error.
12311
12312         * stabsread.c (read_type): If we find any type numbers that are
12313         forward references, complain if the references aren't resolved by
12314         the time we're finished reading.
12315         (cleanup_undefined_types): Make error message more appropriate for
12316         a complaint.
12317
12318 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12319
12320         * Makefile.in (defs_h): Remove dependency on progress_h.
12321         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12322         progress.h.
12323         * main.c (captured_main): Delete use of START_PROGRESS and
12324         END_PROGRESS.
12325
12326 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12327
12328         * objfiles.c (terminate_minimal_symbol_table): Add back
12329         initialization of MSYMBOL_TYPE.
12330
12331 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
12332
12333         Committed by Andrew Cagney.
12334         * Makefile.in (ia64_tdep_h): New macro.
12335         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12336         (ia64-tdep.o): Likewise.
12337         * ia64-tdep.h: New file.
12338         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
12339         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12340         (ia64_aix_sigcontext_register_address): Likewise.
12341         (ia64_linux_getunwind_table): Delete declaration.
12342         * ia64-linux-tdep.c: Likewise.
12343
12344 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
12345
12346         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12347         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12348         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12349
12350 2004-02-17  Andrew Cagney  <cagney@redhat.com>
12351
12352         * symtab.c (skip_prologue_using_sal): New function.
12353         * symtab.h (skip_prologue_using_sal): Declare.
12354         * frv-tdep.c: Include "symtab.h".
12355         (skip_prologue_using_sal): Delete function.
12356         * mips-tdep.c (skip_prologue_using_sal): Delete function.
12357         * rs6000-tdep.c (refine_prologue_limit): Mention
12358         skip_prologue_using_sal.
12359         * ia64-tdep.c (refine_prologue_limit): Ditto.
12360         * Makefile.in: Update dependencies.
12361
12362 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12363
12364         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12365         START_INFERIOR_TRAPS_EXPECTED.
12366         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12367         START_INFERIOR_TRAPS_EXPECTED.
12368         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12369         Delete macro.
12370         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12371         macro, moved to "nm-osf.h".  Update copyright.
12372         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12373         update copyright.
12374
12375         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12376         and function replacing FRAMELESS_FUNCTION_INVOCATION.
12377         * blockframe.c (legacy_frameless_look_for_prologue): Rename
12378         frameless_look_for_prologue.
12379         * frame.h (legacy_frameless_look_for_prologue): Rename
12380         frameless_look_for_prologue.
12381         * gdbarch.h, gdbarch.c: Re-generate.
12382         * sh64-tdep.c (sh64_gdbarch_init): Update.
12383         * sh-tdep.c (sh_gdbarch_init): Update.
12384         * s390-tdep.c (s390_gdbarch_init): Update.
12385         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12386         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12387         * m68k-tdep.c (m68k_gdbarch_init): Update.
12388         (delta68_frame_args_address): Update.
12389         * m32r-tdep.c (m32r_gdbarch_init): Update.
12390         * hppa-tdep.c (hppa_gdbarch_init): Update.
12391         * h8300-tdep.c (h8300_gdbarch_init): Update.
12392         * frv-tdep.c (frv_gdbarch_init): Update.
12393         (frv_frameless_function_invocation): Update.
12394         * cris-tdep.c (cris_gdbarch_init): Update.
12395         (cris_frameless_function_invocation): Update.
12396         * avr-tdep.c (avr_gdbarch_init): Update.
12397         * arm-tdep.c (arm_gdbarch_init): Update.
12398         * stack.c (frame_info): Update, call predicate.
12399         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12400         * frame.c (legacy_get_prev_frame): Update, call predicate..
12401         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12402         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12403         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12404         invocation.
12405         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12406         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12407         * vax-tdep.c (vax_gdbarch_init): Ditto.
12408
12409         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12410         function.
12411
12412 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12413
12414         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12415         initializations.
12416
12417 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12418
12419         * tui/tui-windata.c: Include "gdb_string.h".
12420         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12421         * tui/tui-layout.c, tui/tui-command.c: Ditto.
12422         * Makefile.in: Update dependencies.
12423
12424 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12425
12426         * Makefile.in (infrun.o): Add $(gdb_assert_h).
12427         * infrun.c: Include "gdb_assert.h".
12428         (singlestep_ptid, saved_singlestep_ptid)
12429         (stepping_past_singlestep_breakpoint): New variables.
12430         (resume): Set singlestep_ptid.  Check for singlestep thread
12431         hop.
12432         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12433         (handle_inferior_event): Handle singlestep thread hop.
12434
12435 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12436
12437         * dwarf2-frame.c (dwarf2_frame_ops): New function.
12438         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12439         (dwarf2_frame_init_reg): Ditto.
12440
12441         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
12442         suggested by Joshua Neuheisel
12443
12444         * configure.in: Always check for curses, including pdcurses.
12445         Warn, instead of error, when no curses are found.  Enable TUI when
12446         curses is available.
12447         * configure: Re-generate.
12448
12449 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12450
12451         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12452         sh_sh4_register_convert_to_virtual.
12453         (sh_register_convert_to_raw): Rename from
12454         sh_sh4_register_convert_to_raw.
12455         (sh_pseudo_register_read): Accomodate above name change.
12456         (sh_pseudo_register_write): Ditto.
12457
12458 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12459
12460         * sh-tdep.c (sh_generic_register_name): Remove.
12461         (sh_gdbarch_init): Use sh_sh_register_name in default case.
12462
12463 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12464
12465         * configure.in (build_warnings): Add -Wunused-function.
12466         * configure: Re-generate.
12467
12468         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12469         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12470
12471         * procfs.c (procfs_init_inferior): Assume that
12472         START_INFERIOR_TRAPS_EXPECTED is defined.
12473         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12474         * config/ns32k/tm-nbsd.h: Delete file,
12475         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12476
12477         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12478         * config/vax/tm-vax.h: Delete file.
12479
12480         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12481         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12482         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12483         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12484         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12485         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12486         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12487
12488 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
12489
12490         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12491         * dwarf2-frame.c (dwarf2_frame_data): New variable.
12492         (struct dwarf2_frame_ops): New.
12493         (dwarf2_frame_default_init_reg): New function, based on
12494         dwarf2_frame_init_reg.
12495         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12496         (dwarf2_frame_init_reg): Call architecture-specific function.
12497         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12498         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12499         instead of dwarf2_frame_data.
12500         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12501         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12502
12503 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12504
12505         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12506         register_gdbarch_swap.
12507         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12508         * f-lang.c (_initialize_f_language): Update, use
12509         DEPRECATED_REGISTER_GDBARCH_SWAP.
12510         * remote.c (_initialize_remote): Ditto.
12511         * regcache.c (_initialize_regcache): Ditto.
12512         * parse.c (_initialize_parse): Ditto.
12513         * infrun.c (_initialize_infrun): Ditto.
12514         * mi/mi-main.c (_initialize_mi_main): Ditto.
12515         * gdbtypes.c (_initialize_gdbtypes): Ditto.
12516
12517         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12518         poking .cacheable directly.
12519         * symfile.c (symfile_bfd_open): Ditto.
12520
12521         * Makefile.in: Update all dependencies.
12522
12523         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12524         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
12525         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
12526         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12527         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12528
12529 2004-02-14  Andrew Cagney  <cagney@redhat.com>
12530
12531         * arch-utils.c (legacy_convert_register_p): Check
12532         DEPRECATED_REGISTER_CONVERTIBLE_P.
12533         * findvar.c (value_of_register): Ditto.
12534
12535         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12536         * gdbarch.h, gdbarch.c: Re-generate.
12537         * arch-utils.c (deprecated_register_convertible_not): Delete.
12538         * arch-utils.h (deprecated_register_convertible_not): Delete.
12539         * mi/mi-main.c (get_register): Update.  Update copyright.
12540         * infcmd.c (default_print_registers_info): Update.
12541
12542         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12543         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12544         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12545         * gdbarch.h, gdbarch.c: Re-generate.
12546         * frame.c (deprecated_get_next_frame_hack): Delete function.
12547         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12548         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12549         Update.
12550         * infcall.c (call_function_by_hand): Update.
12551
12552 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
12553
12554         * symfile.c (init_entry_point_info, entry_point_address): Move
12555         from here...
12556         * objfiles.c (init_entry_point_info, entry_point_address):..to
12557         here.
12558         * symfile.h (init_entry_point_info, entry_point_address): Remove
12559         prototypes.
12560         * objfiles.h (init_entry_point_info, entry_point_address):Add
12561         prototypes.
12562         * cris-tdep.c: Remove include of symfile.h. Add include of
12563         objfiles.h.
12564         * infcall.c: Ditto.
12565         * mcore-tdep.c: Ditto.
12566         * mn10300-tdep.c: Ditto.
12567         * sh64-tdep.c: Ditto.
12568         * v850-tdep.c: Ditto.
12569         * arm-tdep.c: Remove include of symfile.h.
12570         * blockframe.c: Ditto.
12571         * coffread.c: Ditto.
12572         * dbxread.c: Ditto.
12573         * dwarf2read.c: Ditto.
12574         * dwarfread.c: Ditto.
12575         * frv-tdep.c: Ditto.
12576         * ia64-tdep.c: Ditto.
12577         * mdebugread.c: Ditto.
12578         * mipsread.c: Ditto.
12579         * rs6000-tdep.c: Ditto.
12580         * s390-tdep.c: Ditto.
12581         * sh-tdep.c: Ditto.
12582         * xstormy16-tdep.c: Ditto.
12583         * gdbarch.sh: Remove include of symfile.h.
12584         * gdbarch.c: Regenerate.
12585         * solib-irix.c (enable_break): Use entry_point_address().
12586         Add comment about include file.
12587         * xcoffread.c: Add comment about include file.
12588         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12589         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12590         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12591         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12592         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12593
12594 2004-02-13  Andrew Cagney  <cagney@redhat.com>
12595
12596         * corelow.c (core_xfer_partial): Use "struct bfd_section".
12597         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12598         copyright.
12599         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12600
12601 2004-02-12  Fred Fish  <fnf@redhat.com>
12602
12603         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12604          set_gdbarch_store_return_value.
12605
12606 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12607
12608         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12609         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12610         (interrupt_query): Ditto.
12611         (ofunc): Delete unused variable.
12612         * cris-tdep.c (cris_abi): Delete unused function.
12613         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12614         (cris_get_wide_opcode, cris_get_short_size): Ditto.
12615         (cris_get_asr_quick_shift_steps): Ditto.
12616         (cris_skip_prologue_frameless_p): Ditto.
12617         * arm-tdep.c (arm_push_return_address): Delete unused function.
12618         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12619         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12620         * s390-tdep.c (s390_function_start): Delete unused function.
12621
12622 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12623
12624         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12625         gdbarch.h, gdbarch.c: Re-generate.
12626         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12627         to generic_prologue_frameless_p.
12628         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12629         * arch-utils.c (generic_prologue_frameless_p): Delete function.
12630
12631 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
12632
12633         * mips-linux-tdep.c: Include "frame.h".
12634         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12635         (mips_linux_skip_resolver): New functions.
12636         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12637         and set_gdbarch_in_solib_call_trampoline.
12638         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12639         to after set_gdbarch_in_solib_return_trampoline.  Only set the
12640         solib hooks to mips16 functions if the OS ABI is unknown.
12641         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12642         including "config/tm-linux.h".
12643         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12644         * Makefile.in (mips-linux-tdep.o): Update.
12645
12646 2004-02-11  David Carlton  <carlton@kealia.com>
12647
12648         * linespec.c (decode_compound): Only look for a class symbol when
12649         considering all but the rightmost component.
12650
12651 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12652
12653         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12654         abi code are are separatly grouped.
12655
12656 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12657
12658         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12659         * gdbarch.h, gdbarch.c: Re-generate.
12660         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12661         * v850-tdep.c (v850_gdbarch_init): Update.
12662         * sh64-tdep.c (sh64_gdbarch_init): Update.
12663         * sh-tdep.c (sh_gdbarch_init): Update.
12664         * s390-tdep.c (s390_gdbarch_init): Update.
12665         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12666         * mips-tdep.c (mips_gdbarch_init): Update.
12667         * mcore-tdep.c (mcore_gdbarch_init): Update.
12668         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12669         * m32r-tdep.c (m32r_gdbarch_init): Update.
12670         * ia64-tdep.c (ia64_gdbarch_init): Update.
12671         * hppa-tdep.c (hppa_gdbarch_init): Update.
12672         * h8300-tdep.c (h8300_gdbarch_init): Update.
12673         * frv-tdep.c (frv_gdbarch_init): Update.
12674         * d10v-tdep.c (d10v_gdbarch_init): Update.
12675         * cris-tdep.c (cris_gdbarch_init): Update.
12676         * avr-tdep.c (avr_gdbarch_init): Update.
12677         * arm-tdep.c (arm_gdbarch_init): Update.
12678         * alpha-tdep.c (alpha_gdbarch_init): Update.
12679
12680 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
12681
12682         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12683         comma.
12684         (sh_sh4al_dsp_register_name): Ditto.
12685
12686 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12687
12688         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12689         (mips_init_frame_pc_first): Delete function.
12690         (mips_frame_saved_pc): Delete function.
12691         (mips_frame_chain): Delete function.
12692         (mips_init_extra_frame_info): Delete function.
12693         (mips_xfer_register): Delete unused variable "reg".
12694         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12695         (mips_n32n64_return_value): Delete unused variable "reg".
12696         (mips_n32n64_return_value): Delete unused variable "pos".
12697         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12698         (mips_o32_return_value): Delete unused variable "pos".
12699         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12700         (mips_print_fp_register): Delete unused variable "namelen"
12701         (mips_print_fp_register): Delete unused variable "flt2"
12702         (get_frame_pointer): Delete function.
12703         (cached_proc_desc): Delete static variable.
12704         (mips_pop_frame): Delete function.
12705         (mips_find_saved_regs): Delete function.
12706         (mips_get_saved_register): Delete function.
12707         (mips_saved_pc_after_call): Delete function.
12708         (SIGFRAME_BASE): Delete macro.
12709         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12710         (SIGFRAME_PC_OFF): Delete macro.
12711         (SIGFRAME_REGSAVE_OFF): Delete macro.
12712         (mips_dump_tdep): Do not print deleted macro definitions.
12713
12714 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12715
12716         * Makefile.in (SFILES): Remove explictly listed tui files.
12717         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12718
12719 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
12720
12721         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12722         to use paddr functions to format ia64 addresses and long values.
12723         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12724         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12725         (get_kernel_table, ia64_find_proc_info_x): Ditto.
12726         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12727         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12728
12729 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12730
12731         * defs.h: Do not include "tui.h".
12732         * gdb_curses.h: New file.
12733         * tui/tui-hooks.h: New file.
12734         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12735         (tui_install_hooks, tui_remove_hooks): Delete declarations.
12736         (tui_initialize_io): Delete declaration.
12737         (tui_initialize_readline: Delete redundant declaration.
12738         (struct tui_point): Delete definition.
12739         * tui/tui-data.h (struct tui_point): Define.
12740         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12741         * utils.c: Include "tui/tui.h".
12742         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12743         * printcmd.c [TUI]: Include "tui/tui.h".
12744         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12745         * tui/tui-command.c: Include "gdb_curses.h".
12746         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12747         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12748         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12749         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12750         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12751         * Makefile.in: Update all dependencies.
12752         (tui_hooks_h, gdb_curses_h): Define.
12753         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12754
12755 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
12756
12757         * objfiles.h (struct objfile): Remove unused fields auxf1 and
12758         auxf2. Add comments about some other rarely used fields.
12759
12760 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12761
12762         * Makefile.in (init.c): Fix script removing duplicates. Problem
12763         reported by Peter Schauer.
12764
12765 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12766
12767         * bcache.c (bcache_xmalloc): Use obstack_init instead of
12768         obstack_specify_allocation.
12769         * objfiles.c (allocate_objfile): Ditto.
12770         * solib-sunos.c (solib_add_common_symbols)
12771         (allocate_rt_common_objfile): Ditto.
12772         * symfile.c (reread_symbols): Ditto.
12773         * gdb_obstack.h: Add comment.
12774
12775 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12776
12777         * linespec.c (decode_line_1, locate_first_half)
12778         (decode_compound, lookup_prefix_sym): Update comments. Delete old
12779         commented out code.
12780
12781 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
12782
12783         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12784         obstack_free.
12785
12786 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12787
12788         * blockframe.c (find_pc_partial_function): If find_pc_overlay
12789         fails, try find_pc_section.  Fix PR c++/1267.
12790         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12791         instead of find_pc_mapped_section.
12792         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12793         not default to the section containing PC.  Fix PR symtab/1519.
12794
12795 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12796
12797         * Makefile.in (mips-tdep.o): Update dependencies.
12798         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12799         "trad-frame.h".
12800         (mips_unwind_pc): Return the pseudo PC register.
12801         (mips_unwind_dummy_id): New function.
12802         (mips16_fetch_instruction): New function.
12803         (mips32_fetch_instruction): New function.
12804         (struct mips_frame_cache): Define.
12805         (mips_mdebug_frame_cache): New function.
12806         (mips_mdebug_frame_this_id): New function.
12807         (mips_mdebug_frame_prev_register): New function.
12808         (mips_mdebug_frame_unwind): Define.
12809         (mips_mdebug_frame_sniffer): New function.
12810         (mips_mdebug_frame_base_address): New function.
12811         (mips_mdebug_frame_base): Define.
12812         (mips_mdebug_frame_base_sniffer): New function.
12813         (mips_gdbarch_init): Append unwind and base sniffers.  Set
12814         unwind_dummy_id.
12815
12816 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12817
12818         * frame.c: Print both the register number and name.
12819
12820         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
12821         and a sed into a single sed.  Make .c and .o patterns more robust.
12822         (OBS): Delete.
12823         (INIT_FILES): Replace OBS with COMMON_OBS.
12824         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12825
12826 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
12827
12828         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12829         the PT_WCOOKIE request.
12830
12831 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12832
12833         * mips-tdep.c (mips_unwind_pc): New function.
12834         (mips_gdbarch_init): Set mips_unwind_pc.
12835
12836         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12837         (get_frame_id): Allow the UNKNOWN_FRAME.
12838         (frame_register_unwind, get_frame_type): Ditto.
12839
12840         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12841         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
12842         unwind_dummy_id indicates a legacy frame.
12843
12844         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12845         * configure: Re-generate.
12846
12847         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12848         methods.
12849
12850 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12851
12852         * configure.in (CONFIG_ALL): Set to Makefile target, and not
12853         makefile macro.
12854         * configure: Re-generate.
12855         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12856         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12857         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12858         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12859         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12860         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12861         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12862         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12863         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12864         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12865
12866 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12867
12868         * Makefile.in: Update all dependencies.
12869
12870         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12871         * configure: Re-generate.
12872         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12873         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12874         (COMMON_OBS): Add "main.o" and "annotate.o".
12875         (ANNOTATE_OBS): Delete.
12876         (OBS): Remove ANNOTATE_OBS.
12877         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12878         CONFIG_INITS.
12879         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12880         against CONFIG_OBS and "main.o".
12881         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12882         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12883
12884         * tui/tui-command.c: Include "gdb_string.h", delete register
12885         attribute, use ISO-C function signatures.
12886         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12887         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12888         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12889         * tui/tui.c: Ditto.
12890
12891         * tui/tui-command.c: Change variable and function names to lower
12892         case.
12893         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12894         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12895         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12896         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12897         * tui/tui-winsource.c, tui/tui.c: Ditto.
12898
12899 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12900
12901         * buildsym.c (free_pending_blocks, finish_block)
12902         (record_pending_block, make_blockvector, end_symtab): Replace
12903         symbol_obstack with objfile_obstack.
12904         * coffread.c (process_coff_symbol, coff_read_struct_type)
12905         (coff_read_enum_type): Ditto.
12906         * cp-namespace.c (initialize_namespace_symtab)
12907         (check_one_possible_namespace_symbol): Ditto.
12908         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12909         (dwarf2_symbol_mark_computed): Ditto.
12910         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12911         * elfread.c (elf_symtab_read): Ditto.
12912         * hpread.c (hpread_symfile_init, hpread_symfile_init)
12913         (hpread_read_enum_type, hpread_read_function_type)
12914         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12915         Ditto.
12916         * jv-lang.c (get_java_class_symtab, add_class_symbol)
12917         (java_link_class_type): Ditto.
12918         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12919         (new_symbol): Ditto.
12920         * minsyms.c (install_minimal_symbols): Ditto.
12921         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12922         (terminate_minimal_symbol_table): Replace symbol_obstack with
12923         objfile_obstack.
12924         (free_objfile): Remove freeing of symbol_obstack.
12925         * objfiles.h: Remove symbol_obstack field.
12926         * pa64solib.c (add_to_solist): Replace symbol_obstack with
12927         objfile_obstack.
12928         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12929         symbol_obstack.
12930         (solib_add_common_symbols): Replace symbol_obstack with
12931         objfile_obstack.
12932         * somsolib.c (som_solib_add): Ditto.
12933         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12934         (common_block_start, common_block_end): Ditto.
12935         * symfile.c (reread_symbols): Remove freeing and init of
12936         symbol_obstack.
12937         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12938         * symfile.h: Update comment.
12939         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12940         stats printing.
12941         * symtab.c (symbol_set_names): Replace symbol_obstack with
12942         objfile_obstack.
12943         * symtab.h (struct general_symbol_info, struct minimal_symbol):
12944         Update comments.
12945         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12946         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12947         objfile_obstack.
12948
12949 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12950
12951         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12952         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
12953         fields and variables.
12954         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12955         (m_beInvisible): Delete macro.
12956         * tui/tui-data.h: Fix case case fields and variables.
12957         (m_genWinPtrIsNull): Delete macro.
12958         (tui_win_list): Rename winList.
12959         (TUI_SRC_WIN): Rename srcWin.
12960         (TUI_DISASM_WIN): Rename disassemWin.
12961         (TUI_DATA_WIN): Rename dataWin.
12962         (TUI_CMD_WIN): Rename cmdWin.
12963         (m_genWinPtrNotNull): Delete macro.
12964         (m_winPtrIsNull): Delete macro.
12965         (m_winPtrNotNull): Delete macro.
12966         (tui_win_is_source_type): Replace m_winIsSourceType
12967         (tui_win_is_auxillary): Replace m_winIsAuzillary.
12968         (tui_win_has_locator): Replace m_hasLocator.
12969         (tui_set_win_highlight): Replace m_setWinHighlightOn and
12970         m_setWinHighlightOff.
12971         * tui/tui-data.c: Update references.
12972         (tui_win_is_source_type, tui_set_win_highlight): New functions.
12973         (tui_win_has_locator, tui_win_is_auxillary): New functions.
12974         * tui/tui-command.c, tui/tui-disasm.c: Update references.
12975         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12976         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12977         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12978         * tui/tui-winsource.c, tui/tui.c: Ditto.
12979
12980 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
12981
12982         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12983         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12984         StackGhost.
12985
12986         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12987         variable `i6' to `i7'.
12988         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12989
12990 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12991
12992         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12993         (TuiPoint, TuiPointPtr): Ditto.
12994         (TuiStatus, TuiStatusPtr): Ditto.
12995         (TuiWinType, TuiWinTypePtr): Ditto.
12996         (struct tui_point): Rename _TuiPoint.
12997         (tui_get_low_disassembly_address): Rename
12998         tuiGetLowDisassemblyAddress.
12999         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
13000         (tuiFree): Delete declaration.
13001         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
13002         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
13003         * tui/tui.c (tuiFree): Delete function.
13004         * cli/cli-cmds.c (disassemble_command): Update references.
13005         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
13006         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
13007         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13008         * tui/tui-winsource.c: Ditto.
13009
13010 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
13011
13012         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13013         coffstab_build_psymtabs, elfstab_build_psymtabs)
13014         (stabsect_build_psymtabs): Replace psymbol_obstack with
13015         objfile_obstack.
13016         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13017         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13018         Ditto.
13019         * dwarfread.c (scan_compilation_units): Ditto.
13020         * elfread.c (elfstab_offset_sections): Ditto.
13021         * hppa-tdep.c (read_unwind_info): Ditto.
13022         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13023         (hpread_end_psymtab): Ditto.
13024         * mdebugread.c (mdebug_build_psymtabs, add_pending)
13025         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13026         Ditto.
13027         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13028         * objfiles.c (add_to_objfile_sections)
13029         (build_objfile_section_table): Ditto.
13030         (allocate_objfile): Remove init of psymbol_obstack.
13031         (free_objfile): Remove freeing of psymbol_obstack.
13032         * objfiles.h (struct objfile): Remove field
13033         psymbol_obstack. Update comments.
13034         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13035         psymbol_obstack with objfile_obstack.
13036         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13037         psymbol_obstack.
13038         * somread.c (som_symfile_offsets, init_import_symbols)
13039         (init_export_symbols): Replace psymbol_obstack with
13040         objfile_obstack.
13041         * somsolib.c (som_solib_add_solib_objfile): Ditto.
13042         * symfile.c (default_symfile_offsets, syms_from_objfile)
13043         (reread_symbols): Remove freeing and init of psymbol_obstack.
13044         (cashier_psymtab): Update comment.
13045         * symmisc.c (print_objfile_statistics): Don't report stats for
13046         psymbol obstack.
13047         * symtab.h (struct general_symbol_info, struct partial_symtab):
13048         Update comments.
13049         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13050         (xcoff_symfile_offsets): Replace psymbol_obstack with
13051         objfile_obstack.
13052
13053 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
13054
13055         * objfiles.h (struct objfile): Add objfile_obstack field.
13056         Remove type_obstack field.
13057
13058         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13059         read_structure_scope read_enumeration, new_symbol): Replace
13060         type_obstack with objfile_obstack.
13061         * dwarfread.c (struct_type, enum_type): Ditto.
13062         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13063         (lookup_fundamental_type): Ditto.
13064         * gdbtypes.h (TYPE_ALLOC): Ditto.
13065         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13066         (hpread_read_doc_function_type, hpread_read_struct_type)
13067         (fix_static_member_physnames, hpread_read_array_type)
13068         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13069         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13070         (java_link_class_type): Ditto.
13071         * mdebugread.c (parse_type): Ditto.
13072         * objfiles.c (allocate_objfile, free_objfile): Ditto.
13073         * solib-sunos.c (solib_add_common_symbols): Ditto.
13074         * stabsread.c (define_symbol, read_type, read_member_functions,
13075         read_cpp_abbrev, read_one_struct_field): Ditto.
13076         * symfile.c (reread_symbols): Ditto.
13077         * symmisc.c (print_objfile_statistics): Ditto.
13078
13079 2004-02-07  Andrew Cagney  <cagney@redhat.com>
13080
13081         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13082         (tui_exec_info_content): Rename TuiExecInfoContent.
13083         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13084         (TuiWinInfo, TuiWinInfoPtr): Ditto.
13085         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13086         (TuiList, TuiListPtr): Ditto.
13087         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13088         (TuiDataType, TuiDataTypePtr): Ditto.
13089         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13090         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13091         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13092         (TuiSourceElement, TuiSourceElementPtr): Ditto.
13093         (TuiDataElement, TuiDataElementPtr): Ditto.
13094         (TuiWinElement, TuiWinElementPtr): Ditto.
13095         (TuiDataInfo, TuiDataInfoPtr): Ditto.
13096         (TuiCommandElement, TuiCommandElementPtr): Ditto.
13097         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13098         (TuiWhichElement, TuiWhichElementPtr): Ditto.
13099         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13100         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13101         * tui/tui-command.c, tui/tui-data.c: Update references.
13102         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13103         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13104         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13105         * tui/tui-winsource.c, tui/tui.c: Ditto.
13106
13107 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
13108
13109         * dwarf2-frame.h: Update copyright.
13110         (enum dwarf2_frame_reg_rule): New.
13111         (struct dwarf2_frame_state_reg): New.
13112         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13113         * dwarf2-frame.c: Update copyright.
13114         (enum dwarf2_reg_rule): Remove.
13115         (struct dwarf2_frame_state): Remove defenition of `struct
13116         dwarf2_frame_state_reg'.
13117         (read_reg): Call get_frame_arch to get the architecture instead of
13118         using CURRENT_GDBARCH.
13119         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13120         DWARF2_FRAME_.
13121         (dwarf2_frame_init_reg): New function.
13122         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13123         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
13124         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
13125         tags with DWARF2_FRAME_.
13126         (dwarf2_frame_prev_register): Call get_frame_arch to get the
13127         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
13128         dwarf2_reg_rule' tags with DWARF2_FRAME_.
13129
13130 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13131
13132         * tui/tui-data.h (struct tui_list): Rename _TuiList.
13133         (enum tui_data_type): Rename _TuiDataType.
13134         (struct tui_layout_def): Rename _TuiLayoutDef.
13135         (struct tui_source_element): Rename _TuiSourceElement.
13136         (struct tui_data_element): Rename _TuiDataElement.
13137         (struct tui_command_element): Rename _TuiCommandElement.
13138         (struct tui_locator_element): Rename _TuiLocatorElement.
13139         (union tui_which_element): Define.
13140         (struct tui_win_element): Rename _TuiWinElement.
13141         (struct tui_data_info): Rename _TuiDataInfo.
13142         (struct tui_source_info): Rename _TuiSourceInfo.
13143         (struct tui_command_info): Rename _TuiCommandInfo.
13144         (tui_initialize_static_data): Rename initializeStaticData.
13145         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13146         (tui_alloc_win_info): Rename allocWinInfo.
13147         (tui_init_generic_part): Rename initGenericPart.
13148         (tui_init_win_info): Rename initWinInfo.
13149         (tui_alloc_content): Rename allocContent.
13150         (tui_add_content_elements): Rename addContentElements.
13151         (tui_init_content_element): Rename initContentElement.
13152         (tui_free_window): Rename freeWindow.
13153         (tui_free_win_content): Rename freeWinContent.
13154         (tui_free_data_content): Rename freeDataContent.
13155         (tui_free_all_source_wins_content): Rename
13156         freeAllSourceWinsContent.
13157         (tui_del_window): Rename tuiDelWindow.
13158         (tui_del_data_windows): Rename tuiDelDataWindows.
13159         (tui_partial_win_by_name): Rename partialWinByName.
13160         (tui_win_name): Rename winName.
13161         (tui_current_layout): Rename currentLayout.
13162         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13163         (tui_term_height): Rename termHeight.
13164         (tui_set_term_height_to): Rename setTermHeightTo.
13165         (tui_term_width): Rename termWidth.
13166         (tui_set_term_width_to): Rename setTermWidthTo.
13167         (tui_set_gen_win_origin): Rename setGenWinOrigin.
13168         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13169         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13170         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13171         (tui_source_windows): Rename sourceWindows.
13172         (tui_clear_source_windows): Rename clearSourceWindows.
13173         (tui_clear_source_windows_detail): Rename
13174         clearSourceWindowsDetail.
13175         (tui_clear_win_detail): Rename clearWinDetail.
13176         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13177         (tui_default_tab_len): Rename tuiDefaultTabLen.
13178         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13179         (tui_win_with_focus): Rename tuiWinWithFocus.
13180         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13181         (tui_layout_def): Rename tuiLayoutDef.
13182         (tui_win_resized): Rename tuiWinResized.
13183         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13184         (tui_next_win): Rename tuiNextWin.
13185         (tui_prev_win): Rename tuiPrevWin.
13186         (tui_add_to_source_windows): Rename addToSourceWindows.
13187         * tui/tui-winsource.c, tui/tui-win.c: Update references.
13188         * tui/tui-layout.c, tui/tui-source.c: Ditto.
13189         * tui/tui-stack.c, tui/tui-io.c: Ditto.
13190         * tui/tui.c, tui/tui-data.c: Ditto.
13191         * tui/tui-interp.c, tui/tui-data.c: Ditto.
13192         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13193
13194         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
13195         (struct symtab): Declare.
13196         (tui_set_source_content): Rename tuiSetSourceContent.
13197         (tui_show_symtab_source): Rename tuiShowSource.
13198         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13199         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13200         * tui/tui-source.c: Update copyright.  Update references.
13201         * tui/tui-win.c, tui/tui-winsource.c: Update references.
13202         * tui/tui-stack.c: Update references.
13203
13204         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
13205         (struct tui_win_info): Declare.
13206         (tui_scroll_forward): Rename tuiScrollForward.
13207         (tui_scroll_backward): Rename tuiScrollBackward.
13208         (tui_scroll_left): Rename tuiScrollLeft.
13209         (tui_scroll_right): Rename tuiScrollRight.
13210         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13211         (tui_resize_all): Rename tuiResizeAll.
13212         (tui_refresh_all_win): Rename tuiRefreshAll.
13213         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13214         * tui/tui-layout.c, * tui/tui-io.c: Update references.
13215         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13216         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13217
13218         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
13219         (tui_erase_data_content): Rename tuiEraseDataContent.
13220         (tui_display_all_data): Rename tuiDisplayAllData.
13221         (tui_check_data_values): Rename tuiCheckDataValues.
13222         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13223         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13224         (tui_first_data_element_no_in_line): Rename
13225         tuiFirstDataElementNoInLine.
13226         (tui_delete_data_content_windows): Rename
13227         tuiDeleteDataContentWindows.
13228         (tui_refresh_data_win): Rename tuiRefreshDataWin.
13229         (tui_display_data_from): Rename tuiDisplayDataFrom.
13230         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13231         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13232         * tui/tui-win.c, tui/tui-regs.c: Update references.
13233         * tui/tui-layout.c, tui/tui.c: Update references.
13234
13235         * tui/tui-wingeneral.h: Update copyright.
13236         (m_allBeVisible): Delete macro.
13237         (m_allBeInvisible): Delete macro.
13238         (struct tui_gen_win_info): Declare.
13239         (struct tui_win_info): Declare.
13240         (tui_unhighlight_win): Rename unhighlightWin.
13241         (tui_make_visible, tui_make_invisible): Replace makeVisible.
13242         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13243         (tui_make_window): Rename makeWindow.
13244         (tui_copy_win): Rename copyWin.
13245         (tui_box_win): Rename boxWin.
13246         (tui_highlight_win): Rename highlightWin.
13247         (tui_check_and_display_highlight_if_needed): Rename
13248         checkAndDisplayHighlightIfNeeded.
13249         (tui_refresh_all): Rename refreshAll.
13250         (tui_delete_win): Rename tuiDelwin.
13251         (tui_refresh_win): Rename tuiRefreshWin.
13252         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13253         (tui_make_visible, tui_make_invisible): New functions.
13254         (tui_make_all_visible, tui_make_all_invisible): New functions.
13255         (make_all_visible): Rename makeAllVisible.
13256         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13257         * tui/tui-data.c, tui/tui-winsource.c: Update references.
13258         * tui/tui-windata.c, tui/tui-win.c: Update references.
13259         * tui/tui-regs.c, tui/tui-layout.c: Update references.
13260         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13261
13262 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13263
13264         * proc-api.c (write_with_trace): Initialize local variable to
13265         silence compiler warning.
13266
13267 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13268
13269         * tui/tui-source.h: Do not include "defs.h".
13270         (struct tui_win_info): Declare.
13271         (tui_set_source_content_nil): Declare.
13272         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13273         (union tui_line_or_address): Rename _TuiLineOrAddress.
13274         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
13275         (tui_update_source_window): Rename tuiUpdateSourceWindow.
13276         (tui_update_source_window_as_is): Rename
13277         tuiUpdateSourceWindowAsIs.
13278         (tui_update_source_windows_with_addr): Rename
13279         tuiUpdateSourceWindowsWithAddr.
13280         (tui_update_source_windows_with_line): Rename
13281         tuiUpdateSourceWindowsWithLine.
13282         (tui_clear_source_content): Rename tuiClearSourceContent.
13283         (tui_erase_source_content): Rename tuiEraseSourceContent.
13284         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13285         (tui_show_source_content): Rename tuiShowSourceContent.
13286         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13287         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13288         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13289         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13290         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13291         (tui_update_exec_info): Rename tuiUpdateExecInfo.
13292         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13293         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13294         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13295         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13296         (struct tui_win_info): Declare.
13297         * tui/tui-stack.c: Update references.
13298         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13299         * tui/tui-win.c, tui/tui-source.c: Ditto.
13300         * tui/tui.c, tui/tui-disasm.c: Ditto.
13301
13302 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13303
13304         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13305         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
13306
13307 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
13308
13309         * infrun.c (handle_inferior_event): Allow for breakpoint
13310         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13311         and SIGEMT.  Update comments.
13312         * NEWS (Revised SPARC target): Mention support for non-executable
13313         stack.
13314
13315 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
13316
13317         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13318         * inftarg.c: Update copyright year.
13319         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13320         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13321         (sparc_xfer_wcookie): New function.
13322         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13323         * Makefile.in (sparc-nat.o): Update dependencies.
13324         * config/sparc/nm-nbsd.h: Include "target.h".
13325         (NATIVE_XFER_WCOOKIE): New define.
13326         (sparc_xfer_wcookie): New prototype.
13327
13328 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13329
13330         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13331         SYSCALL_TRAP function.
13332         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13333
13334 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13335             Daniel Jacobowitz  <drow@mvista.com>
13336
13337         * objfiles.h: Delete comments refering to inside_entry_func and
13338         DEPRECATED_FRAME_CHAIN_VALID.
13339         * defs.h (inside_entry_func): Update prototype..
13340         * blockframe.c (inside_entry_func): Rename to
13341         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
13342         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13343
13344 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
13345
13346         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
13347         outside of #ifdef SOLIB_ADD region.
13348         (do_restore_lang_radix_cleanup): Ditto.
13349         (resolve_pending_breakpoint): Ditto.
13350
13351 2004-02-03  Andrew Cagney  <cagney@redhat.com>
13352
13353         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13354         (process_note_abi_tag_sections): Delete unused function.
13355         (ia64_read_fp): Delete unused function.
13356         (gdbarch_extract_struct_value_address): Delete declaration.
13357
13358 2004-02-02  Andrew Cagney  <cagney@redhat.com>
13359
13360         * vax-tdep.c (vax_frame_chain): Delete call to
13361         deprecated_inside_entry_file.
13362         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13363
13364 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
13365
13366         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13367         column that's "empty" or "same value" when eliminating REG_RA
13368         rules.
13369
13370 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13371
13372         * NEWS: Add information about new pending breakpoint support.
13373
13374 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13375
13376         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13377         and pending fields for pending breakpoint support.
13378         * breakpoint.c (breakpoint_enabled): Add check for not pending.
13379         (condition_command): Only parse condition if not a pending
13380         breakpoint.
13381         (print_one_breakpoint): Add support for pending breakpoints.
13382         (describe_other_breakpoints): Add checks to verify we are not
13383         dealing with pending breakpoints.
13384         (check_duplicates): Don't check pending breakpoints.
13385         (set_raw_breakpoint): Initialize pending flag.
13386         (do_restore_lang_radix_cleanup): New cleanup routine.
13387         (resolve_pending_breakpoint): New function.
13388         (re_enable_breakpoints_in_shlibs): Try and resolve any
13389         pending breakpoints via resolve_pending_breakpoint.
13390         (mention): Add pending breakpoint support.
13391         (parse_breakpoint_sals): Add new parameter to pass to
13392         decode_line_1 to indicate silent errors when files or functions
13393         are not found.  Change all callers.
13394         (do_captured_parse_breakpoint): New function.
13395         (break_command_1): Change prototype to return an rc value and to
13396         take an optional pending breakpoint pointer.  Support creating
13397         a pending breakpoint if a "not found" form of error occurs when
13398         parsing the breakpoint.  Also support resolving an existing pending
13399         breakpoint and be silent if the resolution fails.
13400         (create_breakpoints): Change prototype to take pending breakpoint
13401         pointer.  When resolving a pending breakpoint, use the new pointer
13402         to provide a conditional or commands added by the end-user.
13403         (delete_breakpoint): Add appropriate check for pending.
13404         (breakpoint_re_set_one): Ditto.
13405         (do_enable_breakpoint): Ditto.
13406
13407 2004-02-02  David Carlton  <carlton@kealia.com>
13408
13409         * valops.c (enum oload_classification): New.
13410         (find_overload_match): Break implementation into separate
13411         functions; delete #if 0'd code; look for symbols within
13412         namespaces.
13413         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13414         (find_oload_champ,oload_method_static,classify_oload_match): New.
13415         * cp-support.h: Add declaration for cp_func_name; update
13416         declaration for make_symbol_overload_list.
13417         * cp-support.c (cp_func_name): New.
13418         (overload_list_add_symbol): Fix comment, use
13419         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13420         (make_symbol_overload_list): Take a function name and a namespace
13421         instead of a symbol; change implementation.
13422         (make_symbol_overload_list_using): New.
13423         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13424
13425 2004-02-02  Fred Fish  <fnf@redhat.com>
13426
13427         * main.c (gdb_stdtarg): Move definition to group with other
13428         gdb_stdtarg definitions and update copyright years.
13429         * remote-sim.c (gdb_os_write_stderr): Write output to
13430         gdb_stdtargerr stream instead of gdb_stdtarg stream.
13431         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13432         gdb_stderr stream and update copyright years.
13433
13434 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13435
13436         * Makefile.in (mips-linux-nat.o): Update dependencies.
13437         * mips-linux-nat.c: Include mips-tdep.h.
13438
13439 2004-02-01  Roland McGrath  <roland@redhat.com>
13440
13441         * sol-thread.c (sol_thread_xfer_partial): New function.
13442         (init_sol_thread_ops): Use that for to_xfer_partial hook.
13443         (init_sol_core_ops): Likewise.
13444
13445         * procfs.c (procfs_xfer_partial): New function.
13446         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13447         * Makefile.in (procfs.o): Add $(auxv_h) dep.
13448
13449         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13450         procfs_xfer_auxv function.
13451
13452         * procfs.c (procfs_make_note_section): If we can read
13453         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13454         * linux-proc.c (linux_make_note_section): Likewise.
13455
13456         * auxv.h: New file.
13457         * auxv.c: New file.
13458         * Makefile.in (auxv_h): New variable.
13459         (COMMON_OBS): Add auxv.o here.
13460         (auxv.o): New target.
13461
13462         * corelow.c (core_xfer_partial): New function.
13463         (init_core_ops): Use it for core_ops.to_xfer_partial.
13464
13465         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13466         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13467         macro if that is defined.
13468
13469 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13470
13471         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13472         and check the specified thread for each breakpoint.
13473         * breakpoint.h (bpstat_stop_status): Update prototype.
13474         * infrun.c (handle_inferior_event): Update calls to
13475         bpstat_stop_status.
13476
13477 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13478
13479         * Makefile.in (cli-cmds.o): Add $(readline_h).
13480
13481 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13482
13483         * cli/cli-cmds.c: Include readline.h.
13484         (complete_command): Pass the start of the last word to
13485         complete_line.
13486
13487 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13488
13489         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13490         argument, and change first argument to a CORE_ADDR.
13491         * breakpoint.h (bpstat_stop_status): Update prototype.
13492         * infrun.c (adjust_pc_after_break): Add a new comment.
13493         (handle_inferior_event): Update calls to bpstat_stop_status.
13494
13495 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13496
13497         * breakpoint.h: Update copyright years.
13498
13499 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13500
13501         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13502         (bpstat_stop_status): Don't decrement PC.
13503         * breakpoint.h (software_breakpoint_inserted_here_p): Add
13504         prototype.
13505         * infrun.c (adjust_pc_after_break): New function.
13506         (handle_inferior_event): Call it, early.  Remove later references
13507         to DECR_PC_AFTER_BREAK.
13508         (normal_stop): Add commentary.
13509
13510 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13511
13512         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13513         2004-01-27 double-free fix.
13514
13515 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
13516
13517         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13518         (sparc32_frame_prev_register): Handle StackGhost.
13519         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13520
13521 2004-01-29  Roland McGrath  <roland@redhat.com>
13522
13523         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13524         * configure: Regenerated.
13525
13526         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13527         * Makefile.in (procfs.o): Add dep.
13528
13529 2004-01-28  Andrew Cagney  <cagney@redhat.com>
13530
13531         * tui/tui-stack.h: Update copyright.
13532         (struct frame_info): Add opaque declaration.
13533         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13534         (tui_show_locator_content): Rename tuiShowLocatorContent.
13535         (tui_show_frame_info): Rename tuiShowFrameInfo.
13536         * tui/tui-stack.c: Update copyright.  Update references.
13537         * tui/tui-winsource.c: Update references.
13538         * tui/tui-win.c: Update references.
13539         * tui/tui-layout.c: Update references.
13540         * tui/tui-hooks.c: Update copyright, update references.
13541         * tui/tui.c: Update copyright, update references.
13542         * tui/tui-disasm.c: Update references.
13543
13544 2004-01-28  David Carlton  <carlton@kealia.com>
13545
13546         * dwarf2read.c (add_partial_structure): Use demangled name if
13547         namespace equals "".
13548
13549 2004-01-27  Jim Blandy  <jimb@redhat.com>
13550
13551         Clean up misapplied patch:
13552         * dwarf2read.c (determine_prefix): Change one of the two forward
13553         declarations for 'determine_prefix_aux' to a declaration for this.
13554         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
13555         argument to 'die_specification'.
13556
13557         * dwarf2read.c (read_func_scope): Re-indent comment.
13558
13559 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
13560
13561         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13562         b->exp to NULL after freeing so that error during re-parsing or
13563         evaluation of expressions associated with breakpoint don't
13564         eventually lead to re-freeing of storage.
13565         Committed by Andrew Cagney.
13566
13567 2004-01-27  Andrew Cagney  <cagney@redhat.com>
13568
13569         * source.c (ambiguous_line_spec): Delete undefined declaration.
13570         * m32r-rom.c (m32r_set_board_address): Delete unused function.
13571         (m32r_set_server_address, m32r_set_download_path): Ditto.
13572         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13573
13574 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
13575
13576         * dwarf2read.c: Update calls to changed and renamed functions, and
13577         references to moved variables.
13578
13579         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13580         language, language_defn, list_in_scope, and ftypes members.
13581         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13582         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13583         (baseaddr): Remove globals.
13584
13585         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
13586         (set_cu_language, die_is_declaration, die_specification)
13587         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13588         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13589         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13590         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13591
13592         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
13593         cu.list_in_scope.  Don't initialize cu_header_offset.
13594         (add_partial_symbol): Add local baseaddr.
13595         (psymtab_to_symtab_1): Add local baseaddr.  Use
13596         objfile->section_offsets for consistency.  Don't initialize
13597         cu_header_offset; do initialize cu.header.offset and
13598         cu.list_in_scope.
13599         (read_file_scope, read_func_scope, read_lexical_block_scope)
13600         (dwarf_decode_lines, new_symbol): Add local baseaddr.
13601
13602 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
13603
13604         * PROBLEMS: Add gdb/1516.
13605
13606 2003-12-29  Robert Millan  <robertmh@gnu.org>
13607
13608         Patch committed by Andrw Cagney.
13609         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13610         * configure.tgt: Match knetbsd*-gnu.
13611
13612 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13613
13614         * breakpoint.c (catch_command_1): Delete #ifdef code.
13615         (catch_fork_command_1): Delete #ifdef wrapper.
13616         (catch_exec_command_1): Ditto.
13617         (catch_load_command_1): Ditto.
13618         (catch_unload_command_1): Ditto.
13619
13620         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13621         (catch_breakpoint): Delete #if0ed function.
13622         (disable_catch_breakpoint): Ditto.
13623         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13624         (disable_catch, enable_catch, delete_catch): Ditto.
13625
13626 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13627
13628         * remote.c (echo_check, quit_flag): Delete variables.
13629         (cisco_kernel_mode): Delete variable.
13630         (minitelnet_return, tty_input, escape_count): Delete variables.
13631         (remote_cisco_mode): Delete variable.
13632         (remote_cisco_open, remote_cisco_close): Delete function.
13633         (remote_cisco_mourn, remote_cisco_wait): Delete function.
13634         (init_remote_cisco_ops): Delete function.
13635         (_initialize_remote): Do not install "remote cisco" code.
13636         (read_frame): Delete cisco specific code.
13637         (remote_info_process): Delete function.
13638         (remote_wait): Delete cisco specific code.
13639         (remote_cisco_section_offsets): Delete function.
13640         (remote_cisco_objfile_relocate): Delete function.
13641         (remote_async_wait): Delete cisco specific code.
13642         (minitelnet, readtty, readsocket): Delete function.
13643
13644 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13645
13646         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
13647         comments mentioning extract_returned_value_address.
13648         * infcmd.c (print_return_value): Update.  Add comments on
13649         extract_returned_value_address.
13650         * stack.c (return_command): Add comments on
13651         extract_returned_value_address.
13652         * values.c: Update comment.
13653         * m32r-tdep.c: Update comment.
13654         * sparc-tdep.c: Update comment.
13655         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13656         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13657         * sh64-tdep.c (sh64_gdbarch_init): Update.
13658         * sh-tdep.c (sh_gdbarch_init): Update.
13659         * s390-tdep.c (s390_gdbarch_init): Update.
13660         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13661         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13662         * m68k-tdep.c (m68k_gdbarch_init): Update.
13663         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13664         * m32r-tdep.c (m32r_gdbarch_init): Update.
13665         * ia64-tdep.c (ia64_gdbarch_init): Update.
13666         * h8300-tdep.c (h8300_gdbarch_init): Update.
13667         * frv-tdep.c (frv_gdbarch_init): Update.
13668         * arm-tdep.c (arm_gdbarch_init): Update.
13669         * alpha-tdep.c (alpha_gdbarch_init): Update.
13670
13671 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13672
13673         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13674         SYMBOL_LOCATION_FUNCS
13675         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13676         "struct symbol_ops".
13677         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13678         type to "struct symbol_ops".
13679         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13680         (struct symbol): Replace ".aux_value.loc.funcs" and
13681         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13682         (SYMBOL_OBJFILE): Delete macro.
13683         (SYMBOL_LOCATION_FUNCS): Delete macro.
13684         (SYMBOL_LOCATION_BATON): Update.
13685         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13686         intead of SYMBOL_LOCATION_FUNCS.
13687         * ax-gdb.c (gen_var_ref): Ditto.
13688         * printcmd.c (address_info): Ditto.
13689         * findvar.c (read_var_value): Ditto.
13690         (symbol_read_needs_frame): Ditto.
13691
13692 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13693
13694         * dwarf2read.c (read_func_scope): Document frame-base hack.
13695
13696 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13697
13698         * infcmd.c (print_return_value): Plug memory leak; delete
13699         ui_stream object.  Rename argument `structure_return' to
13700         `struct_return'.
13701
13702 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13703
13704         * infcmd.c (print_return_value): Wrap long lines.
13705         (finish_command_continuation, finish_command): Remove unused
13706         variable `funcaddr'.  Fix some coding-standards problems.
13707
13708         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13709         SECT_SIZE is large enough, not whether it's exactly the right size.
13710         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13711         TDEP->fpregset to zero.
13712
13713         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13714         floating-point registers for traditional NetBSD core files.
13715         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13716         TDEP->sizeof_fpregset here.
13717
13718 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13719
13720         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13721         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13722         function with code split out from
13723         sparc32nbsd_sigcontext_frame_cache.
13724         (sparc32nbsd_sigcontext_frame_cache): Use
13725         sparc32nbsd_sigcontext_saved_regs.
13726         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13727         OpenBSD.
13728         * sparcobsd-tdep.c: New file.
13729         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13730         (sparcobsd-tdep.o): New dependency.
13731         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13732         * config/sparc/obsd.mt: New file.
13733
13734         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13735         TDEP->fpregset to be initialized to enable core file register
13736         sets.
13737
13738 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
13739
13740         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13741         Add opaque declarations.
13742         (sparc64nbsd_sigcontext_saved_regs): New prototype.
13743         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13744         function with code split out from
13745         sparc64nbsd_sigcontext_frame_cache.
13746         (sparc64nbsd_sigcontext_frame_cache): Use
13747         sparc64nbsd_sigcontext_saved_regs.
13748         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13749         OpenBSD.
13750         * sparc64obsd-tdep.c: New file.
13751         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13752         (sparc64obsd-tdep.o): New dependency.
13753         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13754         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13755         * config/sparc/obsd64.mt: New file.
13756
13757         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13758         read the instruction at PC.
13759
13760         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13761         value of GDB_OSABI_DEFAULT.
13762         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13763         instead of GDB_OSABI_NETBSD_AOUT.
13764
13765 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
13766
13767         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13768         copyright.
13769
13770 2004-01-23  Andrew Cagney  <cagney@redhat.com>
13771
13772         * printcmd.c (display_command): Replace tui_set_display call with
13773         tui_set_layout_for_display_command.
13774         * tui/tui.h (enum tui_win_type): Define.
13775         (tui_set_layout): Delete declaration.
13776         (tui_set_layout_for_display_command): Rename set_tui_layout.
13777         * tui/tui-data.h (enum tui_layout_type): Define.
13778         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
13779         "tui.h".
13780         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13781         (tui_default_win_height): Rename tuiDefaultWinHeight.
13782         (tui_default_win_viewport_height): Rename
13783         tuiDefaultWinViewportHeight.
13784         (tui_set_layout): RenametuiSetLayout.
13785         * tui/tui-layout.c: Update references.
13786         * tui/tui.c: Update references.
13787         * tui/tui-disasm.c: Update references.
13788
13789 2004-01-23  David Carlton  <carlton@kealia.com>
13790
13791         Partial workaround for PR c++/1511:
13792         * cp-namespace.c: Include frame.h.
13793         (cp_lookup_transparent_type): New
13794         (cp_lookup_transparent_type_loop): New.
13795         * cp-support.h: Declare cp_lookup_transparent_type.
13796         * symtab.c (basic_lookup_transparent_type): Renamed from
13797         lookup_transparent_type.
13798         (lookup_transparent_type): Replace old body by a call to
13799         current_language->la_lookup_transparent_type.
13800         * symtab.h: Update copyright.  Declare
13801         basic_lookup_transparent_type.
13802         * language.h: Update copyright.
13803         (struct language_defn): Add la_lookup_transparent_type.
13804         * language.c: Update copyright.
13805         (unknown_language_defn): Add basic_lookup_transparent_type.
13806         (auto_language_defn): Add basic_lookup_transparent_type.
13807         (local_language_defn): Add basic_lookup_transparent_type.
13808         * ada-lang.c: Update copyright.
13809         (ada_language_defn): Add basic_lookup_transparent_type.
13810         * c-lang.c: Update copyright.
13811         (c_language_defn): Add basic_lookup_transparent_type.
13812         (cplus_language_defn): Add basic_lookup_transparent_type.
13813         (asm_language_defn): Add basic_lookup_transparent_type.
13814         (minimal_language_defn): Add basic_lookup_transparent_type.
13815         * f-lang.c: Update copyright.
13816         (f_language_defn): Add basic_lookup_transparent_type.
13817         * jv-lang.c: Update copyright.
13818         (java_language_defn): Add basic_lookup_transparent_type.
13819         * m2-lang.c: Update copyright.
13820         (m2_language_defn): Add basic_lookup_transparent_type.
13821         * objc-lang.c: Update copyright.
13822         (objc_language_defn): Add basic_lookup_transparent_type.
13823         * p-lang.c: Update copyright.
13824         (p_language_defn): Add basic_lookup_transparent_type.
13825         * scm-lang.c: Update copyright.
13826         (scm_language_defn): Add basic_lookup_transparent_type.
13827         * Makefile.in (cp-namespace.o): Depend on frame.h.
13828
13829 2004-01-23  David Carlton  <carlton@kealia.com>
13830
13831         Patch for PR c++/1520:
13832         * dwarf2read.c (read_func_scope): Set processing_current_prefix
13833         properly if we have a specification die.
13834         (determine_prefix_aux): Rename from determine_prefix.
13835         (determine_prefix): Like the old determine_prefix, but never
13836         returns NULL.
13837
13838 2004-01-23  Theodore A. Roth  <troth@openavr.org>
13839
13840         * avr-tdep.c: Update copyright.
13841         (avr_iaddr_p): Delete unused function.
13842         (avr_saddr_p): Delete unused function.
13843
13844 2004-01-23  David Carlton  <carlton@kealia.com>
13845
13846         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13847         Fix for PR symtab/1534.
13848
13849 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
13850
13851         * NEWS (New native configurations): Mention OpenBSD/sparc and
13852         OpenBSD/sparc64.
13853         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13854         * configure.host: Likewise.
13855         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13856         handler for OpenBSD.
13857         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13858
13859 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13860
13861         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13862         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13863
13864         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13865         * cli/cli-cmds.c (shell_escape): Likewise.
13866
13867         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13868         OpenBSD .note.openbsd.ident sections.
13869
13870 2004-01-22  David Carlton  <carlton@kealia.com>
13871
13872         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13873         get_scope_pc_bounds.
13874         (read_file_scope): Ditto.
13875         (get_scope_pc_bounds): New function, produced by extracting code
13876         from the above two functions, consolidating it, and adding support
13877         for DW_TAG_namespace.
13878
13879 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13880
13881         * osabi.c (MAX_NOTESZ): New define.
13882         (check_note): New function.
13883         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13884         check_note.
13885
13886 2004-01-21  Roland McGrath  <roland@redhat.com>
13887
13888         * MAINTAINERS (write after approval): Add myself.
13889
13890 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
13891
13892         * utils.c (init_page_info): Move declarations of `rows' and
13893         `cols' before the __GO32__-specific code.  Move the closing brace
13894         outside the #ifdef __GO32__..#endif block.
13895         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13896
13897 2004-01-21  Paul Brook  <paul@codesourcery.com>
13898
13899         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13900         BPSTAT_WHAT_CHECK_SHLIBS.
13901
13902 2004-01-21  Paul Brook  <paul@codesourcery.com>
13903
13904         * MAINTAINERS: Add myself to write-after-approval.
13905
13906 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13907
13908         * ax-gdb.c (print_axs_value): Delete unused function.
13909         * jv-lang.c (java_lookup_type): Delete unused function.
13910         * cli/cli-dump.c (dump_filetype): Delete unused function.
13911         * remote-mips.c (remote_mips_insert_hw_breakpoint)
13912         (remote_mips_remove_hw_breakpoint): Delete unused functions.
13913         (mips_getstring): Delete unused function.
13914         (pmon_insert_breakpoint): Delete #if0ed function.
13915         (PMON_MAX_BP): Delete #if0ed MACRO.
13916         (mips_pmon_bp_info): Delete #if0ed variable.
13917         (pmon_remove_breakpoint): Delete #if0ed function.
13918         * monitor.c (monitor_write_even_block): Delete unused function.
13919         (monitor_write_memory_block): Delete #if0ed code.
13920         * dink32-rom.c (dink32_load): Delete unused function.
13921         (_initialize_dink32_rom): Delete #if0ed code.
13922         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13923
13924         * tui/tui-command.c: Update references.
13925         * tui/tui-io.c: Update references.
13926         * tui/tui-command.h: Update copyright.
13927         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13928
13929         * source.c (ambiguous_line_spec): Delete never-defined function.
13930         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13931         * gdbtypes.c (add_name, add_mangled_type): Ditto.
13932         * cli/cli-cmds.c (validate_comname): Ditto.
13933
13934         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
13935         "tui-data.h".
13936         (tui_set_disassem_content): Rename tuiSetDisassemContent.
13937         (tui_show_disassem): Rename tuiShowDisassem.
13938         (tui_show_disassem_and_update_source): Rename
13939         tuiVerticalDisassemScroll.
13940         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13941         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13942         * tui/tui.h: Update copyright.
13943         (enum tui_status): Define.
13944         * tui/tui-data.h (enum tui_scroll_direction): Define.
13945         * tui/tui-disasm.c: Update copyright.  Update references.
13946         * tui/tui-winsource.c:  Update copyright.  Update references.
13947         * tui/tui-win.c: Update references.
13948         * tui/tui-layout.c: Update references.
13949
13950 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13951
13952         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13953         sym2 to start of block.
13954
13955 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
13956
13957         * MAINTAINERS: Delete mmalloc.
13958         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13959         * NEWS: Mention removal of --with-malloc.
13960         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13961         * config.in: Regenerate.
13962         * configure: Regenerate.
13963         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13964         USE_MMALLOC, MMCHECK_FORCE.
13965         * gdbinit.in: Remove mmalloc.
13966         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13967         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13968         * config/i386/go32.mh: Likewise.
13969         * config/i386/interix.mh: Likewise.
13970         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13971
13972 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
13973
13974         * linespec.c (decode_variable, symtab_from_filename):  Call
13975         error_silent with error message instead of throwing an exception
13976         directly.
13977         * defs.h (error_silent, error_output_message): Add prototypes.
13978         (catch_exceptions_with_msg): Ditto.
13979         * utils.c (error_silent, error_output_message): New functions.
13980         * top.c (catch_exceptions_with_msg): New function.
13981
13982 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
13983
13984         * mi/mi-cmds.h (enum print_values): Add definition.
13985
13986         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13987         type and value for simple data types and just the name and type
13988         for complex ones, if required.
13989
13990         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13991         children, if required.
13992
13993 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13994
13995         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13996         unused declarations.
13997
13998 2004-01-19  Andrew Cagney  <cagney@redhat.com>
13999
14000         * top.h (mapped_symbol_files): Delete declaration.
14001         * main.c (captured_main): Delete option "m" and "mapped".
14002         * objfiles.c (mapped_symbol_files): Delete variable.
14003         * symfile.c (symbol_file_command): Delete mmap code.
14004         (symbol_file_add_with_addrs_or_offsets): Ditto.
14005         (add_symbol_file_command, reread_separate_symbols): Ditto.
14006         * objfiles.h (OBJF_MAPPED): Delete.
14007         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14008         (free_objfile) [USE_MMALLOC]: Ditto.
14009         (open_existing_mapped_file): Delete function.
14010         (open_mapped_file): Delete function.
14011         (map_to_file): Delete function.
14012
14013 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14014
14015         * infrun.c (step_into_function): Account for possible breakpoint
14016         adjustment when computing ``stop_func_start''.
14017
14018 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14019
14020         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14021         the region size against the size of a pointer, not the size of
14022         a register as given by DEPRECATED_REGISTER_SIZE.
14023
14024 2004-01-19  Andrew Cagney  <cagney@redhat.com>
14025
14026         * tui/tui-regs.h: Include "tui-data.h".
14027         (tuiFirstRegElementNoInLine): Delete declaration.
14028         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14029         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14030         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14031         (tui_calculate_regs_column_count): Rename
14032         tuiCalculateRegsColumnCount.
14033         (tui_check_register_values): Rename tuiCheckRegisterValues.
14034         (tui_show_registers): Rename tuiShowRegisters.
14035         (tui_display_registers_from_line): Rename
14036         tuiDisplayRegistersFromLine.
14037         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14038         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14039         (tui_first_reg_element_no_inline): Rename
14040         tuiFirstRegElementNoInLine.
14041         * tui/tui-data.h: Update copyright.
14042         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14043         * tui/tui-windata.c: Update copyright, update references.
14044         * tui/tui-regs.c: Update copyright, update references.
14045         * tui/tui-win.c: Update copyright, update references.
14046         * tui/tui-layout.c: Update copyright, update references.
14047
14048 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14049
14050         * tui/tui-io.c: Update copyright.
14051         (key_is_end_sequence, key_is_backspace): New functions.
14052         (key_is_command_char, key_is_start_sequence): New function.
14053         (tui_getc): Update references.
14054         * tui/tui-io.h: Update copyright.
14055         (m_tuiStartNewLine): Delete macro.
14056         (m_isBackspace, m_isDeleteChar): Delete macros.
14057         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14058         (m_isNextPage, m_isPrevPage): Delete macros.
14059         (m_isLeftArrow, m_isRightArrow): Delete macros.
14060         (m_isXdbStyleCommandChar): Delete macro.
14061         (key_is_start_sequence): Declare, replace m_isStartSequence.
14062         (key_is_end_sequence): Declare, replace m_isEndSequence.
14063         (key_is_backspace): Declare ,replace m_isBackspace.
14064         (key_is_command_char): Declare, replace m_isCommandChar.
14065         * tui/tui-command.c: Update copyright.
14066         (tuiDispatchCtrlChar): Update references.
14067
14068         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14069         tuiSourceWin.h.
14070
14071         * tui/tui-command.c: Rename tui/tuiCommand.c.
14072         * tui/tui-command.h: Rename tui/tuiCommand.h.
14073         * tui/tui-data.c: Rename tui/tuiData.c.
14074         * tui/tui-data.h: Rename tui/tuiData.h.
14075         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14076         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14077         * tui/tui-io.c: Rename tui/tuiIO.c.
14078         * tui/tui-io.h: Rename tui/tuiIO.h.
14079         * tui/tui-layout.c: Rename tui/tuiLayout.c.
14080         * tui/tui-layout.h: Rename tui/tuiLayout.h.
14081         * tui/tui-regs.c: Rename tui/tuiRegs.c.
14082         * tui/tui-regs.h: Rename tui/tuiRegs.h.
14083         * tui/tui-source.c: Rename tui/tuiSource.c.
14084         * tui/tui-source.h: Rename tui/tuiSource.h.
14085         * tui/tui-stack.c: Rename tui/tuiStack.c.
14086         * tui/tui-stack.h: Rename tui/tuiStack.h.
14087         * tui/tui-win.c: Rename tui/tuiWin.c.
14088         * tui/tui-win.h: Rename tui/tuiWin.h.
14089         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14090         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14091         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14092         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14093         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14094         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14095         * tui/tui-file.c: Update includes.
14096         * tui/tui-hooks.c: Update includes.
14097         * tui/tui-interp.c: Update includes.
14098         * tui/tui.c: Update includes.
14099         * Makefile.in: Update all tui/ dependencies.
14100         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14101
14102         * Makefile.in: Update copyright.  Update dependencies.
14103
14104         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14105         problem.
14106
14107 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14108
14109         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14110         instead of register_gdbarch_init.
14111
14112         * remote-sds.c (tohex): Delete unused function.  Update copyright.
14113         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14114         * v850-tdep.c (v850_register_virtual_size): Ditto.
14115         * target.c (normal_target_post_startup_inferior): Ditto.
14116         * source.c (ambiguous_line_spec): Ditto.
14117         * remote.c (adapt_remote_get_threadinfo): Ditto.
14118         * mi/mi-out.c (out_field_fmt): Ditto.
14119         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14120         (output_control_change_notification): Ditto.
14121         * m68k-tdep.c (m68k_register_byte): Ditto.
14122         (m68k_remote_breakpoint_from_pc): Ditto.
14123         * ui-out.c (init_ui_out_state): Delete unused declaration.
14124         * stabsread.c (search_value): Ditto.
14125         * mi/mi-cmd-env.c (env_cli_command): Ditto.
14126         * maint.c (print_section_table): Ditto.
14127         * infrun.c (set_follow_fork_mode_command): Ditto.
14128
14129 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
14130
14131         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14132         DW_CFA_def_cfa_exporession.  Add support for
14133         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14134         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
14135
14136 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14137
14138         * ocd.c: Update copyright.
14139         (bdm_read_register_command): Delete unused function.
14140         (_initialize_remote_ocd): Delete commented out reference.
14141         (get_quoted_char, reset_packet): Delete #if0ed function.
14142         (output_packet, put_quoted_char): Delete #if0ed function.
14143         (stu_put_packet, stu_get_packet): Delete #if0ed function.
14144         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14145         (BDM_BREAKPOINT): Delete #if0ed macro.
14146         (remote_timeout): Delete #if0ed variable.
14147
14148 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
14149
14150         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14151         (core-sol2.o): Remove dependency.
14152         * core-sol2.c: Remove file.
14153
14154 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14155
14156         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14157         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14158         enums.
14159
14160 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14161
14162         * remote.c: Update copyright years.
14163
14164 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14165
14166         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14167
14168 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14169
14170         * mdebugread.c: Update copyright.
14171         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14172         (parse_type, parse_procedure): Ditto.
14173         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14174
14175         * cris-tdep.c (cris_store_struct_return): Put back accidently
14176         deleted function.
14177
14178         * gdbarch.sh: Update copyright year.
14179         * gdbarch.h, gdbarch.c: Re-generate.
14180
14181 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14182
14183         Suggested by George Anzinger.
14184         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14185         correct stack offset.  Include unknown opcode numbers in the error
14186         message.
14187
14188 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14189
14190         * x86-64-tdep.c (x86_64_init_abi): No need to clear
14191         extract_struct_value_address, i386 does not set it.
14192         * sparc64-tdep.c (sparc64_init_abi): Do not set
14193         extract_struct_value_address, never called.
14194         (sparc64_extract_struct_value_address): Delete function.
14195         * m68hc11-tdep.c: Update copyright.
14196         (m68hc11_gdbarch_init): Delete redundant assignment of
14197         extract_struct_value_address.
14198         * i386-tdep.c: Update copyright.
14199         (i386_gdbarch_init): Do not set extract_struct_value_address,
14200         never called.
14201         (i386_extract_struct_value_address): Delete function.
14202         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14203         extract_struct_value_address, never called.
14204         (sparc32_extract_struct_value_address): #if 0 function.  Add
14205         comments explaining its future.
14206
14207 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14208
14209         * arm-tdep.c (arm_write_pc): New function.
14210         (arm_gdbarch_init): Call set_gdbarch_write_pc.
14211
14212 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14213
14214         * breakpoint.c (must_shift_inst_regs): Delete.
14215         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14216         and SHIFT_INST_REGS.
14217         * infcmd.c (step_1, step_1_continuation): Delete references to
14218         SHIFT_INST_REGS.
14219         * infrun.c (keep_going): Likewise.
14220         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14221         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14222
14223 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14224
14225         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14226         * gdbarch.h, gdbarch.c: Re-generate.
14227         * infcmd.c (print_return_value): Delete reference to
14228         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14229
14230         * cris-tdep.c (cris_gdbarch_init): Do not set
14231         deprecated_extract_struct_value_address.
14232
14233         * xstormy16-tdep.c: Update copyright.
14234         (xstormy16_extract_struct_value_address): Update to current
14235         extract struct value address interface.
14236         (xstormy16_gdbarch_init): Set extract_struct_value_address.
14237         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14238         current extract struct value address interface.
14239         (sh64_gdbarch_init): Set extract_struct_value_address.
14240
14241         * cris-tdep.c: Update copyright.
14242         (cris_extract_struct_value_address): Delete function.
14243         (struct_return_address): Delete variable.
14244         (cris_store_struct_return): Do not set struct_return_address.
14245
14246         * mcore-tdep.c: Update copyright.
14247         (mcore_extract_struct_value_address): Delete function.  Update
14248         comments.
14249         (mcore_gdbarch_init): Update.
14250         * mn10300-tdep.c: Update copyright.
14251         (mn10300_extract_struct_value_address): Delete function.
14252         (mn10300_gdbarch_init): Update.
14253         * v850-tdep.c: Update copyright.
14254         (v850_extract_struct_value_address): Delete.
14255         (v850_gdbarch_init): Update.
14256         * ns32k-tdep.c: Update copyright.
14257         (ns32k_extract_struct_value_address): Delete.
14258         (ns32k_gdbarch_init): Update.
14259         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14260         (hppa_gdbarch_init): Update.
14261         * vax-tdep.c: Update copyright.
14262         (vax_extract_struct_value_address): Delete.
14263         (vax_gdbarch_init): Update.
14264
14265         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14266         * gdbarch.h, gdbarch.c: Re-generate.
14267         * procfs.c (procfs_fetch_registers): Delete reference to
14268         DEPRECATED_NPC_REGNUM.
14269         (procfs_store_registers): Ditto.
14270         * regcache.c (generic_target_write_pc): Simplify.
14271         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
14272
14273         * core-sol2.c (fetch_core_registers): Replace
14274         DEPRECATED_NPC_REGNUM with equivalent tdep value.
14275
14276         * hppa-tdep.c: Update copyright year.
14277         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14278         NPC_REGNUM.
14279         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14280
14281         * mips-tdep.c (mips_write_pc): New function.
14282         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14283         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14284         (mips_find_saved_regs, mips_software_single_step: Ditto.
14285         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14286         mips_init_extra_frame_info, mips_pop_frame): Ditto.
14287
14288 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14289
14290         * mips-tdep.c: Re-indent.  Group functions by ABI.
14291
14292 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14293
14294         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14295         * gdbarch.c: Re-generate.
14296         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14297         DECR_PC_AFTER_BREAK to zero.
14298         * vax-tdep.c (vax_gdbarch_init): Ditto.
14299         * v850-tdep.c (v850_gdbarch_init): Ditto.
14300         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14301         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14302         * sh-tdep.c (sh_gdbarch_init): Ditto.
14303         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14304         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14305         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14306         * mips-tdep.c (mips_gdbarch_init): Ditto.
14307         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14308         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14309         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14310         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14311         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14312         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14313         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14314         * frv-tdep.c (frv_gdbarch_init): Ditto.
14315         * cris-tdep.c (cris_gdbarch_init): Ditto.
14316         * avr-tdep.c (avr_gdbarch_init): Ditto.
14317         * arm-tdep.c (arm_gdbarch_init): Ditto.
14318         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14319
14320 2004-01-17  J. Brobecker  <brobecker@gnat.com>
14321
14322         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14323         Delete, no longer used.
14324         (read_subrange_type): New function, mostly extracted from
14325         read_array_type().
14326         (read_array_type): Replace extracted code by call to
14327         read_subrange_type().
14328         (dwarf2_get_attr_constant_value): New function.
14329         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14330         (add_partial_symbol): Likewise.
14331         (process_die): Likewise.
14332         (new_symbol): Likewise.
14333         (read_type_die): Likewise.
14334
14335 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14336
14337         * symfile.c: Update copyright year.
14338         (compare_symbols): Delete unused function.
14339         * stabsread.c: Update copyright year.
14340         (lrs_general_complaint): Delete unused function.
14341         (ref_search_value): Ditto.
14342         (get_substring): Delete declaration.
14343         * sh64-tdep.c: Update copyright year.
14344         (sh64_get_gdb_regnum): Delete unused function.
14345         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14346         Delete unused function.
14347
14348 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
14349
14350         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14351         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14352
14353 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14354
14355         Changes from Peter Schauer.
14356         * rs6000-tdep.c: Update copyright year.
14357         (rs6000_push_dummy_call): Update the stack pointer before
14358         accessing the corresponding stack region.
14359         * rs6000-nat.c: Update copyright year.
14360         (set_host_arch): Set "info.abfd" to "exec_bfd".
14361
14362 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
14363
14364         * blockframe.c: Update copyright year.
14365         (inside_entry_func): Don't treat a zero PC specially.
14366
14367 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
14368
14369         * gcore.c (gcore_copy_callback): Use paddr_d to print size
14370         variable.
14371         (gcore_create_callback): Ditto.  Skip any memory segment that has
14372         no permissions set.
14373
14374 2004-01-14  David Carlton  <carlton@kealia.com>
14375
14376         Change symbols for C++ nested types to contain the fully qualified
14377         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
14378         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14379         c++/895.
14380         * c-exp.y (qualified_type): Handle types nested within classes.
14381         * cp-namespace.c: Update comments.
14382         (cp_set_block_scope): Delete #if 0.
14383         (cp_lookup_nested_type): Handle types nested within classes.
14384         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14385         when appropriate.
14386         (add_partial_symbol): Add the name of the enclosing namespace to
14387         types.
14388         (pdi_needs_namespace): New.
14389         (add_partial_namespace): Tweak comment.
14390         (add_partial_structure): New.
14391         (psymtab_to_symtab_1): Initialize processing_current_prefix
14392         here...
14393         (process_die): instead of here.
14394         (read_structure_scope): Try to figure out the name of the class or
14395         namespace that the structure might be defined within.
14396         (read_enumeration): Generate fully-qualified names, if possible.
14397         (read_namespace): Don't set name to NULL.
14398         (die_specification): New.
14399         (new_symbol): Generate fully-qualified names for types.
14400         (read_type_die): Determine appropriate prefix.
14401         (determine_prefix): New.
14402         (typename_concat): New.
14403         (class_name): New.
14404         * valops.c (value_aggregate_elt): Pass NOSIDE to
14405         value_struct_elt_for_reference.
14406         (value_struct_elt_for_reference): Make static, add NOSIDE
14407         parameter, call value_maybe_namespace_elt as a last resort.
14408         (value_namespace_elt): Break out code into
14409         value_maybe_namespace_elt.
14410         (value_maybe_namespace_elt): New.
14411
14412 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14413
14414         * mips-tdep.c (mips_convert_register_p): Handle both raw and
14415         cooked floating-point registers.
14416         (mips_gdbarch_init): Set convert_register_p, register_to_value,
14417         and value_to_register.
14418
14419 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14420
14421         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14422         * gdbarch.c: Re-generate.
14423         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14424         FUNCTION_START_OFFSET.
14425         * v850-tdep.c (v850_gdbarch_init): Ditto.
14426         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14427         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14428         * sh-tdep.c (sh_gdbarch_init): Ditto.
14429         * s390-tdep.c (s390_gdbarch_init): Ditto.
14430         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14431         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14432         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14433         * mips-tdep.c (mips_gdbarch_init): Ditto.
14434         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14435         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14436         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14437         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14438         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14439         * i386-tdep.c (i386_gdbarch_init): Ditto.
14440         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14441         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14442         * frv-tdep.c (frv_gdbarch_init): Ditto.
14443         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14444         * cris-tdep.c (cris_gdbarch_init): Ditto.
14445         * avr-tdep.c (avr_gdbarch_init): Ditto.
14446         * arm-tdep.c (arm_gdbarch_init): Ditto.
14447         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14448
14449 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
14450
14451         * infrun.c (follow_fork_mode_ask): Remove.
14452         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14453         (follow_fork): Simplify and remove internal error for
14454         follow_fork_mode_ask.
14455         (_initialize_infrun): Update "set follow-fork-mode" help text.
14456
14457 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14458
14459         * configure.in: Update copyright year.
14460         (build_warnings): Add -Wunused-label.
14461         * configure: Re-generate.
14462
14463 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14464
14465         * exec.h (exec_ops): Make "extern".
14466
14467         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14468         the function is void.
14469         (mips_pseudo_register_write): Ditto.
14470
14471 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14472
14473         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14474         call.  Never defined.
14475         * sparc-tdep.h (struct frame_info): Add opaque declaration.
14476         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14477         (struct sparc_gregset, struct regcache): Ditto.
14478         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
14479
14480 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14481
14482         * mi/ChangeLog: Delete file.  Renamed to ...
14483         * mi/ChangeLog-1999-2003: New file.
14484         * tui/ChangeLog: Delete file.  Renamed to ...
14485         * tui/ChangeLog-1998-2003: New file.
14486
14487 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
14488
14489         * sparc64nbsd-tdep.c: Include "regset.h".
14490         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14491         Remove variables.
14492         (fetch_core_registers): Remove function.
14493         (sparc64nbsd_core_fns): Remove variable.
14494         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14495         functions.
14496         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14497         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14498         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14499
14500         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14501         sparc_extract_struct_value_address.
14502         (sparc32_gdbarch_init): Set extract_struct_value_address.
14503         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14504         function.
14505         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
14506         return_value_on_stack.
14507
14508         * NEWS: Mention that %cs and %ss have been added to the AMD64
14509         configurations
14510
14511         * frame.c: Update copyright year.
14512         (get_prev_frame): Improve comment.
14513
14514         * sparc64fbsd-tdep.c: Include "regset.h".
14515         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14516         Remove variables.
14517         (fetch_core_registers): Remove function.
14518         (sparc64fbsd_core_fns): Remove variable.
14519         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14520         functions.
14521         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14522         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14523         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14524
14525         * sparcnbsd-tdep.c: Include "regset.h".
14526         (fetch_core_registers): Remove function.
14527         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14528         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14529         functions.
14530         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14531         TDEP->fpregset.
14532         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14533
14534         * sparc-tdep.h (struct regset): Provide opaque declaration.
14535         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14536         fpregset and sizeof_fpregset members.
14537         * sparc-tdep.c (struct regset): Provide opaque declaration.
14538         (sparc_regset_from_core_section): New function.
14539         (sparc32_gdbarch_init): Initialize TDEP->gregset,
14540         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14541         Set regset_from_core_section when appropriate.
14542
14543 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
14544
14545         * x86-64-tdep.c (amd64_non_pod_p): New function.
14546         (amd64_classify_aggregate): Return class memory for non-POD
14547         C++ structure types.
14548
14549         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14550         argument.  Use it to reserve a register if necessary.
14551         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14552         amd64_push_arguments.
14553
14554         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14555
14556         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
14557         register numbers in comments.
14558         * x86-64-tdep.h: Update copyright year.
14559         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14560         Adjust for addition of %cs and %ss.
14561         * amd64fbsd-nat.c: Update copyright year.
14562         (reg_offset): Add register offsets for %cs and %ss.
14563         * amd64fbsd-tdep.c: Update copyright year.
14564         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14565         (amd64fbsd_sc_reg_offset): Likewise.
14566         * x86-64-linux-nat.c: Update copyright year.
14567         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14568         and %ss.
14569         * amd64nbsd-nat.c: Update copyright year.
14570         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14571         * amd64nbsd-tdep.c: Update copyright year.
14572         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14573         * x86-64-linux-tdep.c: Update copyright year.
14574         (user_to_gdb_regmap): Add mapping for %cs and %ss.
14575         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14576         * regformats/reg-x86-64.dat: Add %cs and %ss.
14577
14578         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
14579         variables to prevent long lines.  Update comments to reflect
14580         reality.
14581
14582 2004-01-09  David Carlton  <carlton@kealia.com>
14583
14584         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
14585         * dwarf2read.c (read_namespace): Pull out name-generating code
14586         into namespace_name. Rename previous_namespace to previous_prefix
14587         and processing_current_namespace to processing_current_prefix..
14588         (namespace_name): New function.
14589         (add_partial_symbol): Substitute uses of pdi->name with
14590         actual_name.
14591         * cp-support.h: Rename processing_current_namespace to
14592         processing_current_prefix.
14593         Update copyright year.
14594         * cp-namespace.c: Rename processing_current_namespace to
14595         processing_current_prefix.
14596         Update copyright year.
14597
14598 2004-01-09  Andrew Cagney  <cagney@redhat.com>
14599
14600         * jv-valprint.c, ser-unix.c: Add missing copyright years.
14601
14602 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
14603
14604         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14605         complaining.
14606         (process_one_symbol): Deal with N_PATCH stabs.
14607
14608 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
14609
14610         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14611         ifdeffed code.
14612         Update copyright year.
14613
14614 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14615
14616         * config/pa/tm-hppa.h: Update extern declarations for
14617         hppa32_hpux_frame_saved_pc_in_sigtramp,
14618         hppa32_hpux_frame_base_before_sigtramp, and
14619         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14620
14621 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14622
14623         * config/pa/tm-hppah.h: Update copyright years.
14624
14625 2004-01-08  Andrew Cagney  <cagney@redhat.com>
14626
14627         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14628         (mips_o32_reg_struct_has_addr): Delete function.
14629         (mips_gdbarch_init): Update.
14630         (mips_extract_struct_value_address): Delete function.
14631
14632 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
14633
14634         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14635         reality.
14636
14637 2004-01-07  Andrew Cagney  <cagney@redhat.com>
14638
14639         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14640         architecture's elf flags (when available).
14641
14642         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14643         FPU to the start, check the MIPS FPU when looking for an old
14644         architecture.
14645         (set_mipsfpu_single_command): Update the architecture.
14646         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14647
14648         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14649         (mips_mask_address_p): Add "tdep" parameter.
14650         (show_mask_address, mips_addr_bits_remove): Update.
14651         (mips_dump_tdep): Update.
14652         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14653         (MIPS_STACK_ARGSIZE): Delete macro.
14654         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14655         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14656         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14657         (mips_dump_tdep): Update.
14658         (MIPS_SAVED_REGSIZE): Delete macro.
14659         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14660         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14661         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14662         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14663         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14664         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14665         (mips_pop_frame, return_value_location): Update.
14666         (mips_n32n64_return_value, mips_dump_tdep): Update.
14667
14668         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14669         MIPS ABI.
14670
14671         * mips-tdep.c: Update copyright.
14672         (mips_gdbarch_init): Merge two code blocks handling the register
14673         name and number layout.
14674
14675 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
14676
14677         * tracepoint.c (validate_actionline): Fix segv at EOF
14678
14679 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
14680
14681         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14682         properly for static fields.
14683
14684 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
14685             Jason Molenda  <jmolenda@apple.com>
14686
14687         * disasm.c: Update copyright to include 2004.
14688         (do_mixed_source_and_assembly): For uiout asm list
14689         and tuple cleanups, initialize to null_cleanup instead of
14690         NULL and do so prior to loop.  Only reset when we close off
14691         the tuple/list.  Move check for whether to close off the
14692         asm tuple/list to after dump_insns call where it will be run
14693         on each loop iteration.
14694
14695 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14696
14697         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14698         should be a switch case and not a label.
14699         * mips-tdep.c (mips32_next_pc): Delete unused labels
14700         "greater_equal_branch" and "less_zero_branch".
14701         * jv-valprint.c (java_print_value_fields): Delete unused label
14702         "flush_it".
14703
14704         * target.c (unpush_target): Only close a target that is in the
14705         target stack.
14706
14707 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
14708
14709         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14710         address from [sp + 64] instead of %o2.
14711
14712         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
14713         fixes PR backtrace/1476.
14714
14715 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14716
14717         * libunwind-frame.h (struct frame_id): Add opaque declaration,
14718         move to start of file.
14719         * i386-tdep.h (struct regcache): Add opaque declaration.
14720         * config/ia64/nm-linux.h (struct target_ops): Add opaque
14721         declaration.
14722         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14723         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14724         * win32-nat.c (fake_create_process): Use ISO C style definition.
14725         * stabsread.c (define_symbol): Delete #ifndef
14726         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14727         stabs_argument_has_addr call, macro never defined.
14728
14729 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
14730
14731         * op50-rom.c: Delete.
14732         * w89k-rom.c: Delete.
14733         * Makefile.in: Remove references.
14734
14735 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14736
14737         * x86-64-tdep.c: Update copyright year.
14738         (struct amd64_register_info): Rename from x86_64_register_info.
14739         (amd64_register_info): Rename from x86_64_register_info.
14740         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14741         (amd64_register_name): Rename from x86_64_register_name.
14742         (amd64_register_type): Rename from x86_64_register_type.
14743         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14744         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14745         (amd64_dwarf_reg_to_regnum): Rename from
14746         x86_64_dwarf_reg_to_regnum.
14747         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14748         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14749         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14750         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14751         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14752         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14753         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14754         (amd64_frame_cache): Rename from x86_64_frame_cache.
14755         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14756         (amd64_frame_prev_register): Rename from
14757         x86_64_frame_prev_register.
14758         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14759         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14760         (amd64_sigtramp_frame_cache): Rename from
14761         x86_64_sigtramp_frame_cache.
14762         (amd64_sigtramp_frame_prev_register): Rename from
14763         x86_64_sigtramp_frame_prev_register.
14764         (amd64_sigtramp_frame_unwind): Rename from
14765         x86_64_sigtramp_frame_unwind.
14766         (amd64_sigtramp_frame_sniffer): Rename from
14767         x86_64_sigtramp_frame_sniffer.
14768         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14769         (amd64_frame_base): Rename from x86_64_frame_base.
14770         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14771         (amd64_frame_align): Rename from x86_64_frame_align.
14772         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14773         (amd64_regset_from_core_section): Rename from
14774         x86_64_regset_from_core_section.
14775         (x86_64_init_abi): Update comments.
14776
14777 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
14778
14779         * MAINTAINERS (write after approval): Add myself.
14780
14781 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14782
14783         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14784         `float' arguments.
14785
14786 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14787
14788         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14789         such that it mentions a specific version of GCC that exhibits this
14790         bug.
14791
14792 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14793
14794         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14795         structure that has a single `float' member, store it in %f1 in
14796         addition to %f0.
14797
14798         * sparc-sol2-nat.c: Add missing '\'.
14799
14800         * sparc-tdep.c (sparc32_return_value): New function.
14801          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14802         Remove functions.
14803         (sparc32_gdbarch_init): Set return_value, don't set
14804         extract_return_value, store_return_value, use_struct_convention
14805         and return_value_on_stack.
14806
14807         * sparc-sol2-nat.c: Add missing ')'.
14808
14809 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14810
14811         * infrun.c (handle_step_into_function): New function.
14812         (handle_inferior_event): Extract out some code into the new
14813         function above.
14814
14815 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14816
14817         * infrun.c (handle_inferior_event): Move the declaration of
14818         real_stop_pc inside the if blocks where it is used.
14819
14820 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14821
14822         * sparc64-tdep.c (sparc64_16_byte_align_p)
14823         (sparc64_store_floating_fields, sparc64_store_floating_fields):
14824         Use check_typedef to get subtypes of structures and unions.
14825         (sparc64_store_return_value): Fix calculation of the appropriate
14826         offset into VALBUF when storing a structure or union.
14827         (sparc64_return_value): New function.
14828         (sparc64_use_struct_convention): Remove function.
14829         (sparc64_init_abi): Set return_value, don't set
14830         extract_return_value, store_return_value and
14831         use_struct_convention.
14832
14833 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
14834
14835         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14836         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14837         gdb/config/alpha/xm-alphaosf.h,
14838         gdb/config/powerpc/tm-ppcle-eabi.h,
14839         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14840         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14841         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14842         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14843         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14844         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14845         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14846         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14847         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14848         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14849         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14850         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14851         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14852         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14853         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14854         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14855         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14856         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14857         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14858         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14859         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14860         Remove lines for .cvsignore files.
14861
14862 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14863
14864         * infrun.c: Back out the previous change.
14865
14866 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14867
14868         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
14869         sparc-*-sunos4* to the list of REMOVED configurations.
14870
14871         * configure.tgt: Add back sparc-*-vxworks*.
14872         * remote-vxsparc.c: Remove all includes except for "defs.h",
14873         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14874         Include "sparc-tdep.h".
14875         (SPARC_R_G1): New define.
14876         (vxsparc_gregset): New variable.
14877         (ext_format_sparc): Remove extern declaration.
14878         (vx_read_register): Rewrite to use sparc32_supply_gregset and
14879         sparc32_supply_fpregset.
14880         (vx_write_register): Rewrite to use sparc32_collect_gregset,
14881         sparc_collect_rwindow and sparc32_collect_fpregset.
14882         * config/sparc/tm-vxworks.h: New file, based on recently removed
14883         tm-vxsparc.h.
14884         * config/sparc/vxworks.mt: New file, based on recently removed
14885         vxworks.mt.
14886
14887 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14888
14889         * infrun.c (handle_step_into_function): New function.
14890         (handle_inferior_event): Extract out some code into the new
14891         function above.
14892
14893 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14894
14895         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14896         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14897         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14898         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14899         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14900         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14901         (sparc_nat_h): New variable.
14902         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14903         (tm-sun4os4.h): Remove dependency.
14904         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14905         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14906         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14907         sparc-tdep.o): Update dependencies.
14908         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14909         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14910         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14911         dependencies.
14912         * configure.host: Remove existing sparc-*-lynxos*,
14913         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14914         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14915         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
14916         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14917         triplets.
14918         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14919         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14920         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14921         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
14922         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14923         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14924         sparc64-*-solaris2* and sparc64-*-* triplets.
14925         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
14926         "symtab.h" and "objfiles.h".
14927         (BIAS): Remove define.
14928         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14929         (X_DISP19): Remove macros.
14930         (sparc_fetch_instruction): Remove function.
14931         (struct gdbarch_tdep): Remove definition.
14932         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14933         (sparc_breakpoint_from_pc): Remove function.
14934         (struct sparc64_frame_cache): Remove definition.
14935         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14936         sparc64_unwind_pc): Remove functions.
14937         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14938         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
14939         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
14940         (sparc64_frame_cache): Change return type to `struct
14941         sparc_frame_cache *'.  Simply call sparc_frame_cache.
14942         (sparc64_frame_this_id, sparc64_frame_prev_register,
14943         sparc64_frame_base_address): Use `struct sparc_frame_cache'
14944         instead of `struct sparc64_frame_cache.
14945         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14946         sparc_analyze_control_transfer, sparc_software_single_step,
14947         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14948         _initialize_sparc64_tdep): Remove functions.
14949         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14950         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14951         macros.
14952         (sparc64_supply_gregset, sparc64_collect_gregset,
14953         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14954         (sparc64_init_abi): New function.
14955         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
14956         inclusion guard.  Include "sparc-tdep.h".
14957         (BIAS): Define.
14958         (r_tstate_offset, r_fprs_offset): New defines.
14959         (enum sparc_regnum): Remove defenition.
14960         (enum sparc64_regnum): Reformat.
14961         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14962         (sparc64_init_abi, sparc64_supply_gregset,
14963         sparc64_collect_gregset, sparc64_supply_fpregset,
14964         sparc64_collect_fpregset): New prototypes.
14965         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14966         Add extern declarations.
14967         (sparc64_sol2_init_abi): New prototype.
14968         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14969         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14970         prototypes.
14971         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14972         "sparnbsd-nat.h".
14973         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14974         functions.
14975         (_initialize_sparc64fbsd_nat): Remove initialization of
14976         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14977         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14978         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
14979         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
14980         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14981         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14982         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14983         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14984         (sparc64fbsd_r_y_offset): Remove variables.
14985         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14986         Make static and const.
14987         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14988         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14989         functions.
14990         (sparc64fbsd_gregset): New variable.
14991         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14992         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14993         and sparc64_supply_fpregset.
14994         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14995         (sparc64fbsd_sigtramp_frame_this_id)
14996         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14997         (sparc64fbsd_sigtramp_frame_unwind): New variable.
14998         (sparc64fbsd_sigtramp_frame_sniffer): New function.
14999         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
15000         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
15001         * sparcnbsd-tdep.c: Update copyright year.  Include
15002         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
15003         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
15004         "value.h" and "sparcnbsd-tdep.h".
15005         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
15006         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
15007         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15008         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15009         defines.
15010         (sparcnbsd_gregset): New variable.
15011         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15012         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15013         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15014         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15015         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15016         variables.
15017         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15018         (sparc32nbsd_sigcontext_frame_this_id)
15019         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15020         (sparc32nbsd_sigcontext_frame_unwind): New variable.
15021         (sparc32nbsd_sigtramp_frame_sniffer): New function.
15022         (sparcnbsd_get_longjmp_target_32,
15023         sparcnbsd_get_longjmp_target_64): Remove functions.
15024         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15025         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15026         sparcnbsd_init_elf): Remove.
15027         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15028         (sparcnbsd_elf_init_abi): New functions.
15029         (_initialize_sparcnbsd_tdep): New prototype.
15030         (_initialize_sparnbsd_tdep): Update.
15031         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15032         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
15033         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15034         * config/sparc/linux.mh: Update comment.
15035         (XM_FILE, HOST_IPC): Remove variables.
15036         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
15037         sparc-linux-nat.o.
15038         * config/sparc/linux.mt: Update comment.
15039         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15040         * config/sparc/nbsd.mt: Reformat.
15041         * config/sparc/nbsd64.mh: Update comment.
15042         (NATDEPFILES): Add sparc-nat.o.
15043         * config/sparc/nbsd64.mt: Update comment.
15044         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15045         (TM_FILE): Set to tm-nbsd.h.
15046         * config/sparc/nbsdelf.mh: Update comment.
15047         (NATDEPFILES): Add sparc-nat.o.
15048         (XM_FILE): Delete.
15049         * config/sparc/nbsdaout.mh: Update comment.
15050         (NATDEPFILES): Add sparc-nat.o
15051         (XM_FILE): Delete.
15052         * config/sparc/nm-linux.h: Update copyright year.  Don't include
15053         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
15054         inclusion.
15055         (KERNEL_U_SIZE): Remove define.
15056         (kernel_u_size): Remove prototype.
15057         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15058         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
15059         "regcache.h".
15060         (CHILD_PREPARE_TO_STORE): Remove define.
15061         * config/sparc/nm-nbsdaout.h: Tweak some comments.
15062         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15063         sparcnbsd-nat.c: Rewrite files.
15064         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15065         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15066         sparcnbsd-tdep.h: Remove files.
15067         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15068         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15069         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15070         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15071         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15072         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15073         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15074         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15075         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15076         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15077         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15078         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15079         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15080         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15081         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15082         * config/sparc/linux64.mh, config/sparc/linux64.mt,
15083         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15084         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15085         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15086
15087 2004-01-02  Andrew Cagney  <cagney@redhat.com>
15088
15089         From 2003-12-18 Kazuhiro Inaoka:
15090         * configure.host: Add m32r-linux target.
15091
15092 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
15093
15094         * top.c (print_gdb_version): Update year to 2004.
15095
15096 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
15097
15098         * MAINTAINERS: Add myself to the write-after-approval category.
15099
15100 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
15101
15102         From Bernardo Innocenti <bernie@develer.com>:
15103         * configure.tgt: Add uClinux target.
15104
15105 2004-01-02  Andrew Cagney  <cagney@redhat.com>
15106
15107         * utils.c (do_my_cleanups): Make static, add forward declaration.
15108         * defs.h (do_my_cleanups): Delete declaration.
15109
15110 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
15111
15112         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15113         bfd/ChangeLog-0203.
15114
15115 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
15116
15117         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
15118         in <machine/reg.h>.
15119         * configure, config.in: Regenerate.
15120
15121 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15122 tui/ChangeLog-1998-2003.
15123 \f
15124 Local Variables:
15125 mode: change-log
15126 left-margin: 8
15127 fill-column: 74
15128 version-control: never
15129 End: