2004-12-17 Randolph Chung <tausq@debian.org>
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-17 Randolph Chung <tausq@debian.org>
2
3 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
4 (in_opd_section): New.
5 (hppa32_hpux_find_global_pointer): Rename from
6 hppa_hpux_som_find_global_pointer.
7 (hppa64_hpux_find_global_pointer): New.
8 (ldsid_pattern): New.
9 (hppa_hpux_search_pattern): New.
10 (hppa32_hpux_search_dummy_call_sequence): New.
11 (hppa64_hpux_search_dummy_call_sequence): New.
12 (hppa_hpux_find_import_stub_for_addr): New.
13 (hppa_hpux_sr_for_addr): New.
14 (hppa_hpux_find_dummy_bpaddr): New.
15 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
16 (hppa_hpux_som_init_abi): Set find_global_pointer method to
17 hppa32_hpux_find_global_pointer instead of
18 hppa_hpux_som_find_global_pointer.
19 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
20 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
21 (read_unwind_info): Use function to initialize objfile-private data.
22 (hppa32_push_dummy_call): Don't automatically set the RP if there is
23 a push_dummy_code method.
24 (hppa64_push_dummy_call): Retrieve and set the global pointer.
25 Don't automatically set the RP if there is a push_dummy_code method.
26 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
27 dummy_call_sequence_addr members.
28 (hppa_init_objfile_priv_data): New prototype.
29
30 2004-12-17 Joel Brobecker <brobecker@gnat.com>
31
32 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
33 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
34 * solib-som.c (som_solib_create_inferior_hook): Replace stub
35 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
36 extends the search to all objfiles, not just shared libraries.
37 Remove unused variable.
38
39 2004-12-16 Michael Snyder <msnyder@redhat.com>
40
41 * MAINTAINERS: Add myself as maintainer for mn10300.
42 * NEWS: Mention mn10300.
43
44 2004-12-15 Kevin Buettner <kevinb@redhat.com>
45
46 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
47 frame cache.
48
49 2004-12-14 Randolph Chung <tausq@debian.org>
50
51 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
52 (hppa_gdbarch_init): Set in_epilogue_p method.
53
54 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
55
56 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
57 sh_default_extract_return_value.
58 (sh_extract_return_value_fpu): Rename from
59 sh3e_sh4_extract_return_value.
60 (sh_store_return_value_nofpu): Rename from
61 sh_default_store_return_value.
62 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
63 (sh_return_value_nofpu): Accomodate above changes.
64 (sh_return_value_fpu): Ditto.
65
66 2004-12-13 Jerome Guitton <guitton@gnat.com>
67
68 * stabsread.c (read_huge_number): Add support for reading octal
69 signed number in twos complement, based on the size of this
70 number.
71 (read_range_type): Add support for reading octal signed bounds
72 in twos complements, based on the size of the type.
73 (read_type_number, read_cpp_abbrev, read_member_functions,
74 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
75 read_struct_type, read_array_type, read_enum_type,
76 read_sun_builtin_type, read_sun_floating_type): Update calls to
77 read_huge_number.
78 (read_type): Update call to read_range_type.
79
80 2004-12-13 Randolph Chung <tausq@debian.org>
81
82 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
83 solib_get_solib_by_pc method through target vector.
84 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
85 method through target vector.
86
87 2004-12-13 Joel Brobecker <brobecker@gnat.com>
88
89 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
90 parameter name to make it clear that we already have a next
91 frame. Return the sigcontext from that next frame instead
92 of the frame following it.
93
94 2004-12-13 Randolph Chung <tausq@debian.org>
95
96 * Makefile.in (pa64solib_h, somsolib_h): Delete.
97 (solib_pa64_h, solib_som_h): New.
98 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
99 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
100 (pa64solib.o, somsolib.o): Delete.
101 (solib-pa64.o, solib-som.o): New.
102 * hppa-hpux-tdep.c: Include new solib interfaces.
103 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
104 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
105 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
106 is available, use it to determine the base of unwind records.
107 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
108 * hpread.c: Replace somsolib.h with solib-som.h.
109 (hpread_process_one_debug_symbol): Use target vector to get thread
110 start address.
111 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
112 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
113 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
114 * config/pa/tm-hppah.h: Use new solib interface.
115
116 2004-12-13 Randolph Chung <tausq@debian.org>
117
118 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
119 sections to be trampolines too.
120
121 2004-12-13 Ben Elliston <bje@au.ibm.com>
122
123 * f-exp.y (typename): Remove unused nonterminal.
124 (name): Likewise.
125
126 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
127
128 Committed by Andrew Cagney.
129 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
130 markup.
131
132 2004-12-12 Andrew Cagney <cagney@gnu.org>
133
134 * frame.c (get_prev_frame): When unwinding normal frames, check
135 that the PC isn't zero.
136 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
137 zero PC.
138
139 * MAINTAINERS: Reword description of what "Target Instruction Set
140 Architectures" covers.
141
142 2004-12-12 Mark Kettenis <kettenis@gnu.org>
143
144 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
145
146 2004-12-11 Mark Kettenis <kettenis@gnu.org>
147
148 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
149 (hppa_hpux_save_state_offset): New function, replacing variable
150 with the same name.
151 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
152 functions.
153 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
154 Use new hppa_hpux_save_state_offset function. Add special
155 handling for handling 64-bit "flags" register.
156 (hppa_hpux_store_register): Likewise.
157 (hppa_hpux_child_can_run): Tweak comment.
158
159 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
160 (inf_ttrace_attach): Likewise.
161 (inf_ttrace_resume_callback): New function.
162 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
163 lwps and call inf_ttrace_resume_callback instead.
164 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
165
166 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
167
168 2004-12-10 Michael Snyder <msnyder@redhat.com>
169
170 * mn10300-tdep.c: New file. This is a re-implementation of
171 the mn10300 target back-end using the new frame api etc.
172 * mn10300-tdep.h: New file.
173 * config/mn10300/mn10300.mt: New file (or replace old file).
174 * configure.tgt: Add mn10300 target.
175
176 2004-12-10 Mark Kettenis <kettenis@gnu.org>
177
178 * configure.host (hppa*-*-hpux11*): Remove.
179 * config/pa/hpux11.mh: Remove file.
180
181 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
182 typo.
183
184 2004-12-10 Kris Warkentin <kewarken@qnx.com>
185
186 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
187 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
188 function and nto_set_target function.
189 (struct nto_target_ops): Put comments inline with struct. Add osabi
190 sniffer hook. Redefine macros to permit testing/assignment. Remove
191 nto_ prefix from members.
192 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
193 dynamically to support arbitrary root paths. Check for basename of
194 lib in search path and then check for absolute.
195 (nto_in_dynsym_resolve_code): New function.
196 (nto_core_sniffer): New function.
197 (regset_core_fns): Register core sniffer.
198 (nto_initialize_signals): New function.
199 (_initialize_nto_tdep): Move signal initialization code to above to
200 avoid initialization race conditions.
201 (nto_set_target): New function.
202 * nto-procfs.c: Minor formatting/indenting changes.
203 (procfs_is_nto_target): New function.
204 (procfs_open): Set nto_is_nto_target.
205 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
206 initialization race conditions.
207 (procfs_create_inferior): Resume inferior after creation.
208 * i386-nto-tdep.c: Declare i386_nto_target.
209 (init_i386nto_ops): Initialize i386_nto_target instead of
210 current_nto_target.
211 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
212 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
213 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
214 sniffer.
215
216 2004-12-10 Mark Kettenis <kettenis@gnu.org>
217
218 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
219 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
220 (hppa_hpux_init_abi): Reformat long line.
221
222 2004-12-09 Mark Kettenis <kettenis@gnu.org>
223
224 * hppa-hpux-tdep.c: Include "regset.h".
225 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
226 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
227 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
228 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
229 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
230 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
231 functions.
232 (hppa_hpux_regset): New variable.
233 (hppa_hpux_regset_from_core_section): New function.
234 (hppa_hpux_init_abi): Set regset_from_core_section.
235 (hppa_hpux_core_osabi_sniffer): New function.
236 (_initialize_hppa_hpux_tdep): Register
237 hppa_hpux_core_osabi_sniffer.
238 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
239 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
240
241 2004-12-09 Randolph Chung <tausq@debian.org>
242
243 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
244 text and data sections.
245 (pa64_current_sos): Also include the dld in the list of current shared
246 objects.
247 (pa64_solib_get_solib_by_pc): Update comments.
248 (pa64_solib_get_text_base): New function.
249 (pa64_solib_select): Set solib_get_text_base method.
250
251 2004-12-08 Daniel Jacobowitz <dan@debian.org>
252
253 * linux-thread-db.c (BUILD_THREAD): Delete.
254 (thread_get_info_callback): Include LWP ID in thread ID.
255 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
256 (lwp_from_thread): Use the LWP ID from the thread ID.
257
258 2004-12-07 Randolph Chung <tausq@debian.org>
259
260 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
261 register for both 32- and 64-bit targets.
262
263 2004-12-07 Randolph Chung <tausq@debian.org>
264
265 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
266 are unwinding through a dummy frame.
267
268 2004-12-07 Randolph Chung <tausq@debian.org>
269
270 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
271 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
272 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
273 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
274 if defined.
275
276 2004-12-07 Randolph Chung <tausq@debian.org>
277
278 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
279 unwinding from a frame with pc == 0.
280 (hppa_stub_frame_this_id): Likewise.
281 (hppa_stub_frame_prev_register): Only provide real values if the frame
282 cache is not NULL.
283
284 2004-12-07 Randolph Chung <tausq@debian.org>
285
286 * solib-som.c: New file.
287 * solib-som.h: New file.
288 * solib-pa64.c: New file.
289 * solib-pa64.h: New file.
290
291 2004-12-07 Mark Kettenis <kettenis@gnu.org>
292
293 * Makefile.in (inf-ttrace.o): Fix typo.
294
295 2004-12-07 Jim Blandy <jimb@redhat.com>
296
297 * remote.c (remote_threads_info, remote_current_thread): Use
298 strtoul to parse thread ID numbers.
299
300 2004-12-07 Mark Kettenis <kettenis@gnu.org>
301
302 * inf-ttrace.c: Include "gdbthread.h".
303 (inf_ttrace_num_lwps): New variable.
304 (inf_ttrace_num_lwps_in_syscall): Renamed from
305 inf_ttrace_num_threads_in_syscall.
306 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
307 TTEVT_LWP_TERMINATE events.
308 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
309 zero.
310 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
311 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
312 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
313 events.
314 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
315 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
316 TTEVT_LWP_TERMINATE events.
317 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
318 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
319 * Makefile.in (inf-ttrace.o): Update dependencies.
320
321 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
322 prototypes.
323 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
324 Make global. Remove HP-UX specific code. Use
325 frame_unwind_register_unsigned instead of
326 frame_unwind_register_signed.
327 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
328 Remove HP-UX specific code.
329 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
330 (hppa_frame_prev_register_helper): Set "flags" register to zero
331 for all unwound frames.
332 (hppa_gdbarch_init): Adjust.
333 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
334 (hppa_hpux_read_pc, hppa_hpux_write_pc)
335 (hppa_hpux_unwind_pc): New functions.
336 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
337
338 2004-12-07 Andreas Schwab <schwab@suse.de>
339
340 * main.c (long_options): Add entry for "-l".
341 (print_gdb_help): Add line for -l option.
342 * NEWS: Mention it.
343
344 2004-12-05 Randolph Chung <tausq@debian.org>
345
346 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
347 DEPRECATED_REGISTER_BYTE.
348
349 2004-12-05 Randolph Chung <tausq@debian.org>
350
351 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
352 records.
353
354 2004-12-05 Mark Kettenis <kettenis@gnu.org>
355
356 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
357 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
358
359 * hppa-hpux-tdep.c: Update copyright notice and year.
360
361 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
362
363 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
364 (get_field, put_field): Assert that the format is one we can handle.
365 Simplify logic accordingly.
366 (floatformat_normalize_byteorder): New function.
367 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
368 to normalize and select modified byte order. Pass modified byte order
369 to get_field.
370 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
371 Likewise.
372 (convert_doublest_to_floatformat): Select an appropriate intermediate
373 byte order if necessary. Always convert to the final format before
374 returning.
375
376 2004-12-04 Daniel Jacobowitz <dan@debian.org>
377
378 PR tui/1703
379 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
380 Suggested by Joshua Neuheisel.
381
382 2004-12-03 Randolph Chung <tausq@debian.org>
383
384 * gdbarch.sh (instruction_nullified): Delete.
385 * gdbarch.c: Regenerate.
386 * gdbarch.h: Regenerate.
387 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
388 nullified.
389 (hppa_unwind_pc): Likewise.
390 (hppa_instruction_nullified): Delete.
391 (hppa_gdbarch_init): Don't set instruction_nullified method.
392 * infrun.c (infwait_states): Remove infwait_nullified_state.
393 (handle_inferior_event): Remove handling of infwait_nullified_state.
394 Remove handling of nullified instructions.
395
396 2004-12-03 Mark Kettenis <kettenis@gnu.org>
397
398 * inf-ttrace.c: Include <sys/mman.h>.
399 (struct inf_ttrace_page): New.
400 (struct inf_ttrace_page_dict): New.
401 (inf_ttrace_num_threads_in_syscall)
402 (inf_ttrace_reenable_page_protections): New variables.
403 (inf_ttrace_enable_syscall_events)
404 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
405 (inf_ttrace_add_page, inf_ttrace_insert_page)
406 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
407 (inf_ttrace_enable_page_protections)
408 (inf_ttrace_disable_page_protections)
409 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
410 (inf_ttrace_can_use_hw_breakpoint)
411 (inf_ttrace_region_size_ok_for_hw_watchpoint)
412 (inf_ttrace_stopped_by_watchpoint): New functions.
413 (inf_ttrace_him): Remove unsused varaible `tts'.
414 (inf_ttrace_create_inferior): Add assertionts.
415 (inf_ttrace_mourn_inferior): Clear page dictionary.
416 (inf_ttrace_attach): Set initial event mask.
417 (inf_ttrace_detach): Reset number of threads in system call.
418 (inf_ttrace_wait): Deal with system call events.
419 (inf_ttrace_target): Initialize "hardware" watchpoint-related
420 parts of the target vector.
421 (_initialize_inf_ttrace): New prototype and function.
422
423 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
424 type of `gp' variable.
425
426 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
427
428 * README: Remove config.if from directory listing.
429
430 2004-12-01 Joel Brobecker <brobecker@gnat.com>
431
432 * alpha-tdep.c (alpha_register_name): Add comment.
433 (alpha_cannot_fetch_register): Exclude registers numbers which
434 are no longer used from the list of registers that can be fetched.
435 (alpha_cannot_store_register): Exclude registers numbers which
436 are no longer used from the list of registers that can be stored.
437 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
438 core_reg_mapping array.
439
440 2004-12-01 Joel Brobecker <brobecker@gnat.com>
441
442 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
443 the register value from the correct frame.
444
445 2004-11-30 Randolph Chung <tausq@debian.org>
446
447 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
448 (hppa_linux_in_dyncall): Check that we are inside the range of
449 $$dyncall, not necessarily at the first insn.
450 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
451 even if the pc does not point to the first insn of the trampoline.
452
453 2004-11-30 Randolph Chung <tausq@debian.org>
454
455 * breakpoint.c (break_at_finish_command): Delete.
456 (break_at_finish_command_1): Delete.
457 (break_at_finish_at_depth_command): Delete.
458 (break_at_finish_at_depth_command_1): Delete.
459 (tbreak_at_finish_command): Delete.
460 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
461 and bx commands.
462
463 2004-11-30 Andrew Cagney <cagney@gnu.org>
464
465 * config/nm-gnu.h: Delete file.
466 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
467
468 * config/nm-sysv4.h: Delete file.
469 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
470 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
471 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
472 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
473 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
474
475 2004-11-29 Andrew Cagney <cagney@gnu.org>
476
477 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
478 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
479 as can-commit architecture developers.
480
481 2004-11-29 Mark Kettenis <kettenis@gnu.org>
482
483 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
484 (sparc32_skip_prologue): Skip instructions that store arguments in
485 registers into their corresponding stack slots.
486
487 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
488 tm-solib.h.
489 * config/m68k/obsd.mh (NAT_FILE): Likewise.
490
491 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
492 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
493 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
494 sparc32nbsd_elf_init_abi. Remove duplicate code.
495
496 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
497 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
498 * config/sparc/nm-nbsd.h: Remove file.
499 * config/sparc/nm-nbsdaout.h: Remove file.
500
501 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
502 (sparc_xfer_partial): New function.
503 (sparc_target): Save value of to_xfer_partial from ptrace vector.
504 Set to_xfer_partial.
505
506 * fork-child.c (fork_inferior): Fork instead of vfork if
507 PRE_TRACE_FUN is non-null.
508
509 2004-11-24 Fred Fish <fnf@specifixinc.com>
510
511 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
512 compiler generated function calls made as part of a prologue.
513
514 2004-11-23 Mark Kettenis <kettenis@gnu.org>
515
516 * inf-ttrace.c: New file.
517 * inf-ttrace.h: New file.
518 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
519 Include "inf-ttrace.h".
520 (ss_mpsfu_high): Define to ss_tlsp if necessary.
521 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
522 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
523 ptrace systems.
524 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
525 instead of inf_ptrace_target.
526 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
527 * Makefile.in (inf_ttrace_h): New variable.
528 (hppa-hpux-nat.o): Update dependency.
529 (inf-ttrace.o): New dependency.
530 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
531
532 2004-11-23 Randolph Chung <tausq@debian.org>
533
534 * arch-utils.c (generic_instruction_nullified): New.
535 * arch-utils.h (generic_instruction_nullified): New.
536 * gdbarch.sh (instruction_nullified): New method.
537 * gdbarch.c: Regenerate.
538 * gdbarch.h: Regenerate.
539 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
540 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
541 new gdbarch method.
542 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
543 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
544 static. Rewrite to work directly off the passed regcache.
545 (hppa_gdbarch_init): Set instruction_nullified method.
546
547 2004-11-23 Joel Brobecker <brobecker@gnat.com>
548
549 * sparc-tdep.c (sparc_is_unimp_insn): New function.
550 (sparc32_frame_cache): For functions where there is no debugging
551 information to help us determine whether it's a struct-return
552 function or not, fallback on checking whether the instruction
553 at the return address is an "unimp" instruction or not.
554
555 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
556
557 * MAINTAINERS: Add myself to write after approval section.
558
559 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
560 hpux-thread.c to suppress children from running.
561 (hppa_hpux_child_can_run): New function.
562 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
563 * hpux-thread.c: Include string.h and hppa-tdep.h.
564 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
565 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
566 (hpux_thread_store_registers): Replace deprecated_registers with
567 calls to regcache_raw_read.
568 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
569
570 2004-11-21 Mark Kettenis <kettenis@gnu.org>
571
572 * sparc64fbsd-nat.c: Update copyright year.
573 (_initialize_sparc64fbsd_nat): Construct and add target vector.
574 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
575 inftarg.o.
576
577 2004-11-21 Daniel Jacobowitz <dan@debian.org>
578
579 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
580
581 2004-11-21 Daniel Jacobowitz <dan@debian.org>
582
583 * linux-nat.c (my_waitpid): New function.
584 (linux_test_for_tracefork): Make more robust and verbose. Take
585 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
586 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
587 argument. Update calls to linux_test_for_tracefork.
588 (linux_enable_event_reporting, child_follow_fork)
589 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
590 (child_insert_exec_catchpoint): Update calls to
591 linux_supports_tracefork and linux_supports_tracevforkdone.
592
593 2004-11-21 Daniel Jacobowitz <dan@debian.org>
594
595 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
596 (value_subscripted_rvalue): Likewise.
597 * valops.c (search_struct_field, value_slice): Likewise.
598
599 2004-11-21 Mark Kettenis <kettenis@gnu.org>
600
601 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
602 Reorder includes a bit. Fix comment.
603 * Makefile.in (inf-ptrace.o): Update dependencies.
604
605 2004-11-21 Andreas Schwab <schwab@suse.de>
606
607 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
608 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
609 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
610 to glibc_skip_solib_resolver.
611 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
612 solib-legacy.o.
613 * Makefile.in (m68klinux-tdep.o): Update dependencies.
614
615 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
616
617 * infttrace.h (ttrace_write_reg_64): Add prototype.
618 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
619 expression.
620 (store_inferior_registers): Correct formatting. Replace uses of
621 deprecated_registers with calls to regcache_raw_read,
622 regcache_raw_write_part and regcache_raw_read_part.
623
624 2004-11-21 Mark Kettenis <kettenis@gnu.org>
625
626 * config/pa/hppahpux.mh: Remove file.
627 * config/pa/hpux1020.mh: Remove file.
628
629 2004-11-20 Andreas Schwab <schwab@suse.de>
630
631 * configure.host: Set host floatformat for m68k.
632
633 2004-11-20 Eli Zaretskii <eliz@gnu.org>
634
635 * config/djgpp/fnchange.lst: Resolve file-name clash between
636 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
637
638 2004-11-20 Mark Kettenis <kettenis@gnu.org>
639
640 * hppa-hpux-nat.c: New file.
641 * config/pa/hpux.mh (NATDEPFILES): New file.
642 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
643 (hppa-hpux-nat.o): New dependency.
644 * configure.host: Remove hppa*-*-hpux10.20.
645 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
646
647 * inf-ptrace.c: Fix coding style.
648
649 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
650 * infptrace.c (call_ptrace): Simply call ptrace with four
651 arguments.
652
653 * dbxread.c (process_one_symbol): Fix a few coding standard
654 issues. Improve code formatting.
655
656 * dbxread.c: Include "gdb_string.h".
657 (record_minimal_symbol, read_ofile_symtab): Replace
658 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
659 * Makefile.in (dbxread.o): Update dependencies.
660
661 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
662 of bytes read for aligned LEB128 encodings.
663
664 2004-11-19 Mark Kettenis <kettenis@gnu.org>
665
666 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
667 parse_and_eval_address to u_long before converting it to a pointer
668 type.
669 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
670 ps_strings from int to u_long.
671 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
672 u_long instead of CORE_ADDR.
673
674 2004-11-18 Mark Kettenis <kettenis@gnu.org>
675
676 * dbxread.c (process_one_symbol): Do not adjust address of first
677 N_SLINE stab for a function for code generated by non-GCC
678 compilers.
679
680 2004-11-18 Kevin Buettner <kevinb@redhat.com>
681
682 * solib-null.c: New file.
683
684 2004-11-17 Andrew Cagney <cagney@gnu.org>
685
686 * MAINTAINERS: Drop MIPS and remote.
687
688 2004-11-15 Andrew Cagney <cagney@gnu.org>
689
690 * findvar.c (value_of_register): Set the frame ID.
691 * value.c (value_primitive_field): Copy the frame ID.
692 * valops.c (value_assign): Simplify lval_register case, there's
693 always a frame.
694
695 2004-11-14 Daniel Jacobowitz <dan@debian.org>
696
697 * Makefile.in (mips-linux-tdep.o): Update dependencies.
698 * mips-linux-tdep.c: Include "regcache.h".
699 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
700
701 2004-11-14 Daniel Jacobowitz <dan@debian.org>
702
703 * Makefile.in (linux-thread-db.o): Fix typo in last change.
704
705 2004-11-14 Daniel Jacobowitz <dan@debian.org>
706
707 * linux-thread-db.c: New file, renamed from thread-db.c.
708 * thread-db.c: Remove.
709 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
710 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
711 to linux-thread-db.o.
712 * config/arm/linux.mh (NATDEPFILES): Likewise.
713 * config/i386/linux.mh (NATDEPFILES): Likewise.
714 * config/i386/linux64.mh (NATDEPFILES): Likewise.
715 * config/ia64/linux.mh (NATDEPFILES): Likewise.
716 * config/m32r/linux.mh (NATDEPFILES): Likewise.
717 * config/m68k/linux.mh (NATDEPFILES): Likewise.
718 * config/mips/linux.mh (NATDEPFILES): Likewise.
719 * config/pa/linux.mh (NATDEPFILES): Likewise.
720 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
721 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
722 * config/s390/s390.mh (NATDEPFILES): Likewise.
723 * config/sparc/linux.mh (NATDEPFILES): Likewise.
724 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
725
726 2004-11-13 Andrew Cagney <cagney@gnu.org>
727
728 * config/i386/i386lynx.mh: Delete file.
729 * config/i386/i386lynx.mt: Delete file.
730 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
731 * i386ly-tdep.c: Delete.
732
733 * config/tm-lynx.h: Delete, inline contents ...
734 * config/rs6000/tm-rs6000ly.h: ... here.
735
736 * config/tm-sysv4.h: Delete file, inlining contents.
737 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
738 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
739 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
740
741 * regcache.h (deprecated_register_valid): Delete.
742 (deprecated_registers): Delete.
743 * regcache.c (deprecated_register_valid): Delete.
744 (deprecated_registers): Delete.
745 (deprecated_read_register_byte, _initialize_regcache)
746 (deprecated_write_register_bytes, build_regcache): Update.
747 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
748 remote-sds.o.
749 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
750 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
751
752 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
753 v850-*-* under removed.
754 * configure.host: Delete ns32k-*-netbsd*.
755 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
756 ns32k-*-netbsd*, and v850*-*-*.
757 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
758 "Deleted"
759 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
760 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
761 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
762 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
763 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
764 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
765 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
766 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
767 * v850-tdep.c: Delete.
768
769 2004-11-13 Joel Brobecker <brobecker@gnat.com>
770
771 * irix5-nat.c (fetch_core_registers): Replace use of
772 deprecated_registers by equivalent code.
773
774 2004-11-13 Joel Brobecker <brobecker@gnat.com>
775
776 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
777 with equivalent code.
778 (fill_fpregset): Likewise.
779
780 2004-11-13 Andrew Cagney <cagney@gnu.org>
781
782 * MAINTAINERS: Do not list "Deleted" architectures.
783
784 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
785 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
786 sparc-*-vxworks*.
787 * NEWS: Mention that vxworks was deleted.
788 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
789 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
790 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
791 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
792 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
793 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
794 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
795 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
796 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
797 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
798 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
799 * remote-vxmips.c, remote-vx.c: Delete.
800 * remote-vx68.c: Delete.
801 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
802 * config/m68k/os68k.mt, ada-lang.h: Ditto.
803 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
804 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
805
806 2004-11-13 Eli Zaretskii <eliz@gnu.org>
807
808 * config/i386/xm-go32.h: Don't include fopen-bin.h.
809 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
810
811 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
812 branch that doesn't define CRLF_SOURCE_FILES; always use
813 binary-mode open.
814 (print_source_lines_base, forward_search_command)
815 (reverse_search_command): Enable the code that accepts DOS-style
816 CRLF line endings on all platforms (this removes the need for
817 CRLF_SOURCE_FILES).
818
819 * defs.h: Fix wording of the comment before FOPEN_RB.
820 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
821
822 * config/djgpp/fnchange.lst: Group renames for opcode directory
823 together.
824
825 * config/djgpp/djconfig.sh: Replace file names that don't exist
826 anymore with existing files, for checking the unpacked
827 distribution.
828
829 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
830 Export pre-cooked values in configure-* targets that begin with
831 "@test -f stage_last".
832
833 2004-11-12 Andrew Cagney <cagney@gnu.org>
834
835 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
836 * value.h (struct value): Update comment.
837 * valops.c (value_assign): Fold lval_reg_fame_relative into
838 lval_register.
839 * findvar.c (value_from_register, locate_var_value): Ditto.
840
841 2004-11-12 Randolph Chung <tausq@debian.org>
842
843 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
844 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
845 (write_exp_msymbol): Remove conditional check for symbols starting
846 with $. Update comments.
847
848 2004-11-12 Randolph Chung <tausq@debian.org>
849
850 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
851 so_lib_thread_start_addr.
852 * pa64solib.h (so_list): Forward declare.
853 (pa64_solib_thread_start_addr): Prototype.
854 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
855 (no_shared_libraries): Remove.
856 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
857 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
858 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
859 the elf solib handler to find the start address.
860
861 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
862 files to the target makefile.
863 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
864 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
865 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
866
867 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
868 files for symbol reading and shared library handling here.
869 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
870 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
871 without bringing in 64-bit support.
872
873 2004-11-12 Andrew Cagney <cagney@gnu.org>
874
875 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
876 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
877 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
878 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
879 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
880 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
881 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
882
883 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
884 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
885 (VALUE_REGNUM): Define.
886 (struct value): Delete location.regnum, rename "regno" to
887 "regnum".
888 * value.c, valops.c, valarith.c, findvar.c: Update.
889
890 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
891 (VALUE_BITPOS): Delete.
892 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
893 * value.c (value_type, value_offset, value_bitpos)
894 (value_bitsize): New functions. Update references.
895 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
896 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
897 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
898 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
899 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
900 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
901 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
902 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
903 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
904
905 2004-11-12 Andrew Cagney <cagney@gnu.org>
906
907 * cris-tdep.c (cris_register_offset): Delete, never called.
908 (cris_spec_reg_applicable): Delete cris_ver_sim.
909 * MAINTAINERS: List d10v as OBSOLETE.
910 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
911 FOPEN_WB et.al., defined by "fopen-bin.h".
912
913 2004-11-12 Randolph Chung <tausq@debian.org>
914
915 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
916 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
917 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
918 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
919
920 2004-11-12 Mark Kettenis <kettenis@jive.nl>
921
922 * tui/tui-io.c: Don't include "terminal.h".
923 * Makefile.in (tui-io.o): Update dependencies.
924
925 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
926
927 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
928 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
929 set_gdbarch_regset_from_core_section for core file support.
930 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
931 New functions.
932
933 2004-11-11 Randolph Chung <tausq@debian.org>
934
935 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
936 stop_after_branch parameter and use it to determine if we should look
937 at the delay slot of the first branch insn to find prologue insns.
938 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
939 (hppa_frame_cache): Likewise.
940
941 2004-11-11 Randolph Chung <tausq@debian.org>
942
943 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
944 register so that it can be unwound from anywhere in the prologue.
945
946 2004-11-10 msnyder <msnyder@redhat.com>
947
948 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
949 must invalidate lr_reg (so we don't try to save it again).
950 Ditto for cr_offset and cr_reg.
951
952 2004-11-05 Jon Beniston <jon@beniston.com>
953
954 Committed by Andrew Cagney.
955 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
956 when an unexpected packet is received, as the target stubs
957 continually retransmit the same packet until ACKed.
958
959 2004-11-10 Randolph Chung <tausq@debian.org>
960
961 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
962 frame's type.
963
964 2004-11-10 Randolph Chung <tausq@debian.org>
965
966 * blockframe.c (inside_entry_func): Move to .....
967 * frame.c (inside_entry_func): ... here, and make static.
968 (backtrace_past_entry): New flag.
969 (get_prev_frame): Stop backtrace at the entry function if enabled
970 by flag. Update comments.
971 (_initialize_frame): Add command to set backtrace_past_entry flag.
972 * defs.h (inside_entry_func): Remove prototype.
973
974 2004-11-10 Mark Kettenis <kettenis@gnu.org>
975
976 * dwarf2read.c: Fix formatting.
977
978 2004-11-10 Andrew Cagney <cagney@gnu.org>
979
980 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
981 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
982 macros with function declarations.
983 * value.c (coerce_ref, coerce_array, coerce_number)
984 (coerce_enum): New functions.
985 (value_as_long, value_as_address): Update.
986 * ada-lang.c (ada_coerce_ref, ada_value_binop)
987 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
988 * jv-lang.c (evaluate_subexp_java): Update.
989 * valarith.c (value_less, value_neg, value_complement)
990 (value_binop, value_add, value_subscript, value_x_binop)
991 (value_logical_not, value_sub): Update.
992 * valops.c (check_field, value_struct_elt, value_ind)
993 (value_find_oload_method_list, value_cast, value_assign): Update.
994 * eval.c (evaluate_subexp_standard): Update.
995
996 2004-11-10 Mark Kettenis <kettenis@gnu.org>
997
998 * mips-tdep.c (mips32_relative_offset): Change return type to
999 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1000
1001 2004-11-10 Randolph Chung <tausq@debian.org>
1002
1003 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1004 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1005 (hppa_fetch_pointer_argument): Likewise.
1006 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1007 deprecated_read_memory_nobpt.
1008 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1009 add_set_cmd sequence with add_setshow_boolean_cmd.
1010
1011 2004-11-09 Andrew Cagney <cagney@gnu.org>
1012
1013 GDB 6.3 released from GDB 6.3 branch.
1014
1015 2004-11-09 Andrew Cagney <cagney@gnu.org>
1016
1017 * values.c: Rename to ...
1018 * value.c: ..., new file.
1019 * Makefile.in: Update.
1020
1021 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1022
1023 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1024 size.
1025
1026 2004-11-09 Andrew Cagney <cagney@gnu.org>
1027
1028 * TODO: Delete.
1029
1030 * value.h (struct value): Delete field bfd_section.
1031 (VALUE_BFD_SECTION): Delete macro.
1032 (COERCE_REF): Update.
1033 (value_at, value_at_lazy): Delete asection parameter.
1034 * printcmd.c (print_formatted, x_command): Update.
1035 (do_examine): Delete asection parameter.
1036 (next_section): Delete variable.
1037 * valops.c (value_cast, value_at, value_at_lazy)
1038 (value_coerce_function, value_addr, value_ind, value_string)
1039 (find_rt_vbase_offset, value_full_object): Update.
1040 * hpacc-abi.c (hpacc_virtual_fn_field)
1041 (hpacc_value_rtti_type): Update.
1042 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1043 (gnuv3_baseclass_offset): Update.
1044 * f-valprint.c (f_val_print): Update.
1045 * c-valprint.c (c_val_print): Update.
1046 * p-valprint.c (pascal_val_print): Update.
1047 * jv-valprint.c (java_value_print): Update.
1048 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1049 * ada-lang.c (ada_value_primitive_packed_val)
1050 (ada_evaluate_subexp): Update.
1051 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1052 * expprint.c (print_subexp_standard): Update.
1053 * infcall.c (call_function_by_hand): Update.
1054 * valarith.c (value_add): Update.
1055 * eval.c (evaluate_subexp_standard): Update.
1056 * values.c (allocate_value, value_copy, value_static_field): Update.
1057 * findvar.c (read_var_value, locate_var_value): Update.
1058
1059 2004-11-09 Andrew Cagney <cagney@gnu.org>
1060
1061 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1062 * Makefile.in: Update all dependencies.
1063
1064 2004-11-08 Andrew Cagney <cagney@gnu.org>
1065
1066 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1067 (sentinel_frame_unwinder): Add the prev_pc method.
1068 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1069 available. Do not handle the sentinel-frame case.
1070 * frame-unwind.h (frame_prev_register_ftype): Define.
1071 (struct frame_unwind): Add prev_pc;
1072
1073 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1074
1075 * configure.in: Check for ncurses/term.h.
1076 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1077 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1078 * tui/tui.c: Don't include term.h.
1079 * configure, config.in: Rebuilt.
1080
1081 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1082
1083 * m68kbsd-nat.c: Include "inf-ptrace.h".
1084 (_initialize_m68kbsd_nat): Fix pasto.
1085 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1086
1087 2004-11-08 Randolph Chung <tausq@debian.org>
1088
1089 * infrun.c (debug_infrun): New variable.
1090 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1091 (handle_inferior_event, keep_going): Likewise.
1092 (_initialize_infrun): Register "set debug infrun" command.
1093
1094 2004-11-08 Andreas Schwab <schwab@suse.de>
1095
1096 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1097 PTRACE_EVENT_VFORKDONE.
1098 (child_follow_fork): Adjust.
1099
1100 2004-11-08 Andrew Cagney <cagney@gnu.org>
1101
1102 * README: Refer to 6.3, not 6.2, update directory listing droppng
1103 references to intl/ and mmalloc/.
1104 * PROBLEMS: Refer to 6.3 not 6.2.
1105
1106 * PROBLEMS: Delete no-longer applicable problems.
1107
1108 2004-11-07 Andrew Cagney <cagney@redhat.com>
1109 Daniel Jacobowitz <dan@debian.org>
1110 Roland McGrath <roland@redhat.com>
1111
1112 * Makefile.in (symfile-mem.o): Update dependencies.
1113 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1114 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1115 * inf-ptrace.c (inf_ptrace_attach): Call
1116 observer_notify_inferior_created.
1117 * inftarg.c (child_attach): Likewise.
1118 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1119 (symbol_file_add_from_memory): Take NAME argument. Use it for
1120 the new BFD's filename.
1121 (add_symbol_file_from_memory_command): Update call to
1122 symbol_file_add_from_memory.
1123 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1124 (symbol_file_add_from_memory_wrapper): New.
1125 (_initialize_symfile_mem): Register add_vsyscall_page as an
1126 inferior_created observer.
1127
1128 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1129
1130 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1131 fetch_inferior_registers. Make static.
1132 (m68kbsd_store_inferior_registers): Rename from
1133 store_inferior_registers. Make static.
1134 (_initialize_m68kbsd_nat): Construct and add target vector.
1135 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1136 inftarg.o. Add inf-ptrace.o.
1137 (NAT_FILE): Set to tm-solib.h.
1138 (LOADLIBES): New variable.
1139 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1140 inftarg.o. Add inf-ptrace.o.
1141 (NAT_FILE): Delete variable.
1142 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1143 inftarg.o. Add inf-ptrace.o.
1144 (NAT_FILE): Set to tm-solib.h.
1145 * config/m68k/nm-nbsdaout.h: Remove file.
1146
1147 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1148
1149 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1150 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1151 (dwarf2_signal_frame_unwind): New.
1152 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1153 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1154
1155 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1156
1157 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1158
1159 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1160 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1161 to only include the structure members we actually need.
1162 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1163 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1164 only include the structure members we actually need.
1165 (mipsnbsd_init_abi): Update.
1166
1167 * mips64obsd-nat.c: Include "mips-tdep.h".
1168 (MIPS64OBSD_NUM_REGS): Remove define.
1169 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1170 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1171 floating-point registers correctly.
1172 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1173
1174 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1175 "gdb_assert.h".
1176 (mips64obsd_sigframe_init): New function.
1177 (mips64obsd_sigframe): New variable.
1178 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1179 unwinder.
1180 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1181
1182 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1183
1184 * alpha-mdebug-tdep.c: #include mdebugread.h.
1185 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1186 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1187
1188 2004-11-05 Andrew Cagney <cagney@gnu.org>
1189
1190 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1191 CFI and the init_reg method leave the register unspecified.
1192 Include the register name in the "Incomplete CFI data" complaint.
1193 Supress leading zeros in the address.
1194
1195 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1196
1197 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1198 skipping a personality routine in a CIE augmentation.
1199
1200 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1201
1202 * defs.h (fatal, vfatal): New function prototypes.
1203 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1204 via catch_errors.
1205 (backtrace_command): Change to call backtrace_command_stub via
1206 catch_errors instead of calling backtrace_command_1 directly.
1207 (backtrace_full_command): Ditto.
1208 * utils.c (error_stream_1): New static function.
1209 (verror): Change to call error_stream_1 instead of error_stream.
1210 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1211 (vfatal, fatal): New functions.
1212
1213 2004-11-05 Andrew Cagney <cagney@gnu.org>
1214
1215 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1216 when not using selected frame.
1217
1218 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1219
1220 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1221 personality routine in a CIE augmentation.
1222
1223 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1224
1225 * stack.c (set_current_sal_from_frame): New function.
1226 (print_args_stub): Use it.
1227 (print_frame_info): Don't set sal here.
1228
1229 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1230
1231 * dwarf2-frame.c (read_encoded_value): Change type of third
1232 argument to `unsigned char *'. Add support for LEB128 encodings.
1233
1234 2004-11-04 Jim Blandy <jimb@redhat.com>
1235
1236 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1237 prevent cross-objfile references.
1238 (make_cv_type): Doc fix. Don't create cross-objfile references,
1239 even for stub types.
1240 (replace_type): Add assertion to prevent cross-objfile references.
1241 (check_typedef): Never resolve a stub type by copying over a type
1242 from another file.
1243
1244 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1245
1246 * Makefile.in (m32r-tdep.o): Update dependencies.
1247 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1248 ABI-specific overrides.
1249
1250 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1251
1252 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1253 unnecessary parallel execution bit.
1254 (m32r_memory_remove_breakpoint): Ditto.
1255 (m32r_breakpoint_from_pc): Update.
1256
1257 2004-11-03 Randolph Chung <tausq@debian.org>
1258
1259 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1260 frame_func_unwind to locate the unwind entry.
1261 (hppa_frame_this_id): Likewise.
1262
1263 2004-11-03 Andrew Cagney <cagney@gnu.org>
1264
1265 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1266 packet, obsolete configurations, end-of-life deprecated_registers.
1267
1268 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1269
1270 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1271 encodings as well as unsigned encodings.
1272
1273 2004-11-02 Andrew Cagney <cagney@gnu.org>
1274
1275 * value.h (COERCE_VARYING_ARRAY): Delete.
1276 * valops.c (value_cast, value_slice): Delete use.
1277 * valarith.c (value_subscript, value_concat): Delete use.
1278
1279 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1280
1281 * NEWS: GDB understands GNAT Ada.
1282
1283 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1284
1285 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1286 (amd64-sol2-tdep.o): Add dependencies.
1287 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1288 config/i386/sol2-64.mt: New files.
1289 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1290 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1291 (supply_gregset): Correct order of arguments to
1292 amd64_supply_native_gregset.
1293 (fill_gregset): Correct order of arguments to
1294 amd64_collect_native_gregset.
1295 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1296 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1297 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1298 for definition of NEW_PROC_API.
1299 * configure: Regenerate.
1300
1301 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1302
1303 * MAINTAINERS (Write After Approval): Add myself.
1304
1305 2004-11-01 Andrew Cagney <cagney@gnu.org>
1306
1307 * configure.tgt: Mark d10v-*-* as obsolete.
1308 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1309
1310 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1311
1312 * values.c (modify_field): Correct handling of bit-fields that
1313 don't fit in 32 bits. Use unsigned operations throughout and
1314 simplify the code a bit. Document preconditions.
1315
1316 2004-10-31 Andrew Cagney <cagney@gnu.org>
1317
1318 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1319 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1320 (in_plt_section): Delete.
1321
1322 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1323 (mips_gdbarch_init): Do not set same.
1324
1325 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1326 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1327
1328 * gdbarch.sh (in_solib_call_trampoline): Delete.
1329 * gdbarch.h, gdbarch.c: Re-generate.
1330
1331 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1332 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1333 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1334 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1335 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1336
1337 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1338
1339 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1340 (mipsnbsd_fetch_inferior_registers): Rename from
1341 fetch_inferior_registers. Make static.
1342 (mipsnbsd_store_inferior_registers): Rename from
1343 store_inferior_registers. Make static.
1344 (_initialize_mipsnbsd_nat): New function and prototype.
1345 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1346 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1347 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1348 inf-ptrace.o.
1349
1350 2004-10-31 Andrew Cagney <cagney@gnu.org>
1351
1352 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1353 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1354 delete corresponding unused function.
1355 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1356 in_solib_call_trampoline.
1357 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1358 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1359 * config/mips/tm-nbsd.h: Ditto.
1360 * config/arm/tm-linux.h: Ditto.
1361 * config/mips/tm-linux.h: Ditto.
1362
1363 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1364 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1365 in_solib_call_trampoline, delete corresponding unused function.
1366 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1367 (vaxnbsd_aout_init_abi): Ditto.
1368 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1369 (sparc32nbsd_aout_init_abi): Ditto.
1370 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1371 (ppc_linux_init_abi): Ditto.
1372 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1373 (ns32knbsd_init_abi_aout): Ditto.
1374 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1375 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1376 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1377 (m68kbsd_aout_init_abi): Ditto.
1378 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1379 (i386_cygwin_init_abi): Ditto.
1380 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1381 (i386bsd_init_abi): Ditto.
1382
1383 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1384 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1385 isn't used by this architecture.
1386 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1387 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1388 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1389 * s390-tdep.c (s390_gdbarch_init): Ditto.
1390 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1391 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1392 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1393 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1394 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1395 * amd64-tdep.c (amd64_init_abi): Ditto.
1396
1397 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1398 in_solib_call_trampoline to its default value of
1399 generic_in_solib_call_trampoline.
1400 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1401 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1402 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1403 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1404 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1405 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1406
1407 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1408
1409 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1410
1411 * config/mips/tm-mips.h: Delete file.
1412 * remote-mips.c: Delete tm-mips.h from comment.
1413 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1414 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1415 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1416 * config/mips/tm-linux.h: Don't include tm-mips.h.
1417 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1418 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1419 * config/mips/tm-wince.h: Don't include.
1420
1421 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1422 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1423 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1424 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1425
1426 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1427 * mdebugread.c (ecoff_relocate_efi): Delete function.
1428 * objfiles.c (objfile_relocate): Delete #ifdef
1429 MDEBUG_EFI_SYMBOL_NAME code.
1430
1431 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1432 Andrew Cagney <cagney@gnu.org>
1433
1434 * gdbarch.sh (single_step_through_delay): Add.
1435 * gdbarch.h, gdbarch.c: Re-generate.
1436 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1437 (mips_step_skips_delay): Delete.
1438 * mips-tdep.c (mips_single_step_through_delay): Replace
1439 mips_step_skips_delay.
1440 (mips_gdbarch_init): Set single_step_through_delay.
1441 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1442
1443 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1444
1445 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1446 from TRAMP_FRAME frame type.
1447
1448 2004-10-31 Andrew Cagney <cagney@gnu.org>
1449
1450 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1451
1452 * mips-tdep.c (mips_ignore_helper): Delete.
1453 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1454 * infrun.c (handle_inferior_event): Delete #ifdef
1455 DEPRECATED_IGNORE_HELPER_CALL code.
1456
1457 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1458
1459 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1460
1461 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1462 (fill_fpregset): Do not compile for 64-bit systems.
1463 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1464 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1465 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1466
1467 2004-10-30 Andrew Cagney <cagney@gnu.org>
1468
1469 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1470 (struct mdebug_extra_func_info): Define.
1471 * config/alpha/tm-alpha.h: Delete same.
1472 * config/mips/tm-mips.h: Delete same.
1473 * mdebugread.c: Delete same.
1474 * Makefile.in: Update dependencies.
1475 * mips-mdebug-tdep.c: Include "mdebugread.h".
1476
1477 * objfiles.c: Include "mdebugread.h".
1478 * mdebugread.c: Include "mdebugread.h".
1479 (ecoff_relocate_cfi): Delete.
1480 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1481 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1482 * mdebugread.h (ecoff_relocate_efi): New file.
1483 * Makefile.in: Update dependencies.
1484
1485 * mips-tdep.c (struct frame_extra_info): Delete.
1486 (temp_proc_desc): Delete.
1487
1488 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1489 MIPS_EFI_SYMBOL_NAME.
1490 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1491 (struct mdebug_extra_func_info): Replace struct
1492 alpha_extra_func_info and alpha_extra_func_info_t.
1493 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1494 MIPS_EFI_SYMBOL_NAME.
1495 (struct mdebug_extra_func_info): Replace struct
1496 alpha_extra_func_info and alpha_extra_func_info_t.
1497 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1498 * mdebugread.c, alpha-mdebug-tdep.c:
1499
1500 Suggested by Mark Kettenis.
1501 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1502 fields frame_adjust and high_addr.
1503 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1504 (non_heuristic_proc_desc): Delete references.
1505
1506 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1507 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1508 * mips-tdep.c: Update.
1509
1510 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1511 (MIPS_LAST_EMBED_REGNUM): Add.
1512 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1513 (LAST_EMBED_REGNUM): Delete.
1514 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1515
1516 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1517 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1518 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1519 * mips-linux-nat.c: Update.
1520
1521 * mips-tdep.h: Add comments on registers.
1522 (MIPS_UNUSED_REGNUM): Define.
1523 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1524 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1525 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1526 * mips-linux-nat.c, remote-mips.c: Update.
1527
1528 * config/mips/tm-mips.h (t_insn): Delete.
1529 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1530 Replace t_insn with ULONGEST.
1531
1532 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1533
1534 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1535 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1536 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1537 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1538 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1539 (mipsnbsd_core_osabi_sniffer): New function.
1540 (mipsnbsd_init_abi): Set regset_from_core_section.
1541 (_initialize_mipsnbsd_tdep): Remove calls to
1542 deprecated_add_core_fns.
1543 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1544 (mipsnbsd_regset_from_core_section): New functions.
1545 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1546 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1547
1548 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1549 Remove optimization for DEPRECATED_FP_REGNUM.
1550
1551 2004-10-30 Andrew Cagney <cagney@gnu.org>
1552
1553 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1554 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1555 (alpha_setup_arbitrary_frame): Delete.
1556 * mips-tdep.c (setup_arbitrary_frame): Delete.
1557 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1558 (setup_arbitrary_frame): Delete.
1559 * stack.c (parse_frame_specification_1): When specified, call
1560 create_new_frame with two parameters. Delete #ifdef
1561 SETUP_ARBITRARY_FRAME.
1562
1563 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1564 (MIPS_INSTLEN): Delete.
1565 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1566 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1567 * remote-mips.c, mips-tdep.c: Update.
1568
1569 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1570 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1571 * mips-tdep.c (mips_mdebug_frame_cache)
1572 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1573 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1574 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1575 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1576 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1577 (mips_gdbarch_init): Do not append mdebug sniffers.
1578 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1579 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1580 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1581 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1582 * Makefile.in: Update dependencies.
1583
1584 * mips-tdep.h (mips_abi_regsize): Declare.
1585 * mips-tdep.c (mips_abi_regsize): Make non-static.
1586
1587 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1588 (make_mips16_addr): Delete.
1589
1590 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1591
1592 * i386-sol2-nat.c: New file.
1593 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1594 i386-sol2-tdep.c.
1595 (i386-sol2-nat.o): Update dependencies.
1596 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1597 i386-sol2-nat.o.
1598
1599 2004-10-30 Andrew Cagney <cagney@gnu.org>
1600
1601 Total breakage identified by Joel Brobecker.
1602 * mips-tdep.c (after_prologue): Delete.
1603 (mips_skip_prologue): Use skip_prologue_using_sal.
1604 (heuristic_proc_desc): Delete, unused.
1605
1606 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1607
1608 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1609 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1610 Cleanup coding style.
1611
1612 2004-10-30 Andrew Cagney <cagney@gnu.org>
1613
1614 * mips-tdep.h (mips_pc_is_mips16): Declare.
1615 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1616 non-static. Update calls.
1617
1618 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1619 * command.h (add_setshow_enum_cmd): Declare.
1620 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1621
1622 * mips-tdep.c (_initialize_mips_tdep): Use
1623 add_setshow_zinteger_cmd.
1624
1625 * mips-tdep.c (mips_eabi_extract_return_value)
1626 (mips_o64_extract_return_value, mips_o64_store_return_value)
1627 (return_value_location, mips_eabi_reg_struct_has_addr)
1628 (mips_eabi_use_struct_convention)
1629 (mips_eabi_store_return_value): Delete.
1630 (mips_eabi_store_return_value): New function.
1631 (mips_eabi_return_value): New function.
1632 (mips_gdbarch_init): For O64 and EABI, delete
1633 extract_return_value, store_return_value, use_struct_convention
1634 and reg_struct_has_addr, add return_value.
1635
1636 * mips-tdep.c (read_signed_register): Use
1637 regcache_cooked_read_signed.
1638
1639 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1640
1641 * mipsread.c: Cleanup coding style.
1642 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1643 (mipscoff_symfile_finish): Remove prototypes.
1644
1645 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1646
1647 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1648 (mips_mdebug_frame_cache, mips16_scan_prologue)
1649 (mips32_scan_prologue, mips_stub_frame_cache)
1650 (heuristic_proc_start, heuristic_proc_desc)
1651 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1652 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1653 (mips_o32_return_value, mips_o64_push_dummy_call)
1654 (mips_step_skips_delay, mips_skip_trampoline_code)
1655 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1656 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1657 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1658 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1659 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1660 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1661 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1662 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1663 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1664 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1665 ZERO_REGNUM.
1666 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1667 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1668 ZERO_REGNUM.
1669 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1670 A0_REGNUM.
1671 * mipsnbsd-nat.c: Include "mips-tdep.h".
1672 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1673 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1674
1675 2004-10-29 Andrew Cagney <cagney@gnu.org>
1676
1677 * stack.c (parse_frame_specification_1): New function based on
1678 parse_frame_specification. Add message and selected_frame_p
1679 paramters. Truely always return non-NULL.
1680 (parse_frame_specification): Call parse_frame_specification_1.
1681 (frame_info): Update. Eliminate target_has_stack check.
1682 (select_frame_command): Update.
1683
1684 2004-10-29 Andrew Cagney <cagney@gnu.org>
1685
1686 * frame.h (get_selected_frame): Add message parameter.
1687 * frame.c (get_selected_frame): Add and use message parameter.
1688 * stack.c (current_frame_command, return_command, locals_info)
1689 (catch_info, args_info, up_silently_base, down_silently_base): Use
1690 get_selected_frame with an explicit message.
1691 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1692 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1693 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1694 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1695 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1696 * breakpoint.c: Update.
1697
1698 2004-10-29 Andrew Cagney <cagney@gnu.org>
1699
1700 * trad-frame.c (trad_frame_get_prev_register): Use
1701 frame_unwind_register instead of frame_register_unwind, do not
1702 recurse the register's location.
1703 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1704 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1705 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1706 * sh-tdep.c (sh_frame_prev_register): Ditto.
1707 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1708 * i386-tdep.c (i386_frame_prev_register): Ditto.
1709 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1710 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1711
1712 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1713
1714 * proc-events.c: Fix several coding-style issues. Consistently
1715 use #ifdef instead of #if defined().
1716 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1717 ARRAY_SIZE.
1718 (_initialize_proc_events): New prototype.
1719
1720 * proc-why.c: Fix several coding-style issues.
1721 (proc_prettyfprint_why): Use ARRAY_SIZE.
1722
1723 2004-10-27 Jim Blandy <jimb@redhat.com>
1724
1725 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1726 manner independent of the host byte order.
1727
1728 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1729
1730 * mips-tdep.c (id_delayed): Remove prototype.
1731
1732 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1733
1734 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1735 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1736 to enum with register numbers.
1737 (enum mips_insn_size): New enum.
1738
1739 2004-10-26 Andrew Cagney <cagney@gnu.org>
1740
1741 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1742 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1743 (mips_gdbarch_init): Update.
1744 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1745
1746 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1747 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1748 IN_SOLIB_RETURN_TRAMPOLINE.
1749 * mips-tdep.c (mips_dump_tdep): Do not print
1750 IN_SOLIB_RETURN_TRAMPOLINE.
1751 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1752 (mips_gdbarch_init): Update.
1753
1754 * mips-tdep.h (mips_software_single_step): Move to here ...
1755 * config/mips/tm-mips.h: ... from here.
1756 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1757 (SOFTWARE_SINGLE_STEP): Delete.
1758 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1759
1760 2004-10-25 Andrew Cagney <cagney@gnu.org>
1761
1762 * NEWS: Add Changes since GDB 6.3 section.
1763
1764 2004-10-23 Andreas Schwab <schwab@suse.de>
1765
1766 * ada-lang.c (grow_vect): Return the new array instead of
1767 expecting pointer to pointer to avoid violation of aliasing rules.
1768 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1769
1770 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1771
1772 * s390-tdep.c (enum pv_boolean): Remove.
1773 (pv_is_array_ref): Remove.
1774 (s390_on_stack): Remove.
1775 (S390_NUM_SPILL_SLOTS): Remove.
1776 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1777 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1778 (s390_store): Track all stores of orginal incoming registers to the
1779 stack constant offsets relative to the CFA, instead of only tracking
1780 stores into specific spill slots.
1781 (s390_load): Likewise.
1782 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1783 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1784 defined as call-saved by the ABI.
1785 (s390_push_dummy_call): Use bottom of dummy call argument save area
1786 as return value, not the top. Do not store to the called function's
1787 register save area.
1788 (s390_unwind_dummy_id): Adapt accordingly.
1789
1790 2004-10-23 Andrew Cagney <cagney@gnu.org>
1791
1792 * objfiles.h (struct objfile): Rename obj_private to
1793 deprecated_obj_private, sym_private to deprecated_sym_private, and
1794 sym_stab_info to deprecated_sym_stab_info.
1795 * gdb-stabs.h: Update.
1796 * elfread.c: Update.
1797 * dbxread.c: Update.
1798 * coffread.c: Update.
1799 * xcoffread.c: Update.
1800 * symfile.c: Update.
1801 * somread.c: Update.
1802 * nlmread.c: Update.
1803 * mdebugread.c: Update.
1804 * hpread.c: Update.
1805 * coffread.c: Update.
1806
1807 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1808
1809 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1810 * configure.host: Add mips64*-*-openbsd*.
1811 * configure.tgt: Add mips64*-*-openbsd*.
1812 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1813 mips64obsd-tdep.c.
1814 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1815 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1816
1817 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1818
1819 * symtab.c (symbol_search_name): Minor reformatting.
1820
1821 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1822
1823 * symtab.h: Fix typo in comment.
1824
1825 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1826
1827 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1828 (dwarf_decode_line_header): Likewise.
1829
1830 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1831
1832 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1833
1834 2004-10-19 Andrew Cagney <cagney@gnu.org>
1835
1836 GDB 6.3 branch created.
1837 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1838
1839 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1840
1841 * dwarf2read.c (set_cu_language): Set language to Ada for
1842 DW_LANG_Ada83 and DW_LANG_Ada95.
1843
1844 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1845
1846 From Andreas Schwab <schwab@suse.de>:
1847 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1848 for xmalloc and xrealloc.
1849
1850 2004-10-15 Andrew Cagney <cagney@gnu.org>
1851
1852 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1853 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1854 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1855 Update dependencies.
1856
1857 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1858
1859 * ada-lang.c (ada_lookup_symbol): Correct comment.
1860 (ada_evaluate_subexp): Change error message for
1861 OP_FUNCALL case so as not to indicate an internal error.
1862
1863 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1864
1865 Committed by Paul Hilfinger.
1866 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1867 type sizes in XVE/XVU types, and emit a warning when that happens,
1868 instead of rounding up the size of the resulting type.
1869 Some minor reformatting.
1870 (ada_is_aligner_type): Do not consider a type as an aligner type
1871 if there is a corresponding XVS type as well.
1872 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1873 have several levels of pointer indirection to the array.
1874
1875 2004-10-15 Jerome Guitton <guitton@gnat.com>
1876
1877 Committed by Paul Hilfinger.
1878 * ada-lang.c (check_size): New function.
1879 (coerce_unspec_val_to_type): call check_size to make sure
1880 that the object size is reasonable.
1881 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1882 Implements the case when we get a reference when we evaluate
1883 the expression of one of the bounds of the slice.
1884 (ada_value_struct_elt): when a packed array field is
1885 a reference, use ada_coerce_ref to dereference it; use
1886 ada_value_ind only if it is a pointer.
1887
1888 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1889
1890 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1891 a bit to avoid the necessity of an advance declaration. Remove
1892 declaration.
1893 (set_reg_offset): Move implemenation up.
1894 (mips16_get_imm): Likewise.
1895 (mips16_scan_prologue): Likewise.
1896 (reset_saved_regs): Likewise.
1897 (mips32_scan_prologue): Likewise.
1898
1899 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1900
1901 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1902 Remove sp as a parameter, compute it internally instead. Move
1903 prologue scanning limit from heuristic_proc_desc to here.
1904 (mips16_scan_prologue): Likewise.
1905 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1906 by call to mips16_scan_prologue.
1907 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1908 by call to mips32_scan_prologue.
1909 (heuristic_proc_desc): Remove code that's no longer necessary.
1910 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1911 (mips_skip_prologue): Update calls to mips16_scan_prologue
1912 and mips32_scan_prologue.
1913
1914 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1915
1916 * mips-tdep.c (mips16_scan_prologue): Merge code from
1917 mips16_skip_prologue. Now return the address of the first
1918 instruction past the function prologue.
1919 (mips16_skip_prologue): Remove, no longer necessary.
1920 (mips_skip_prologue): Replace call to mips16_skip_prologue
1921 by call to mips16_scan_prologue.
1922
1923 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1924
1925 * mips-tdep.c (mips32_scan_prologue): Merge code from
1926 mips32_skip_prologue. Now return the address of the first
1927 instruction past the function prologue.
1928 (mips32_skip_prologue): Remove. No longer necessary.
1929 (mips16_skip_prologue): Add parameter end_pc instead of
1930 computing it.
1931 (mips_skip_prologue): Compute the upper limit for the
1932 prologue scanning. Update call to mips16_skip_prologue.
1933 Replace call to mips32_skip_prologue by call to
1934 mips32_scan_prologue.
1935
1936 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1937
1938 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1939 NetBSD system call stubs that store %rp in the ERP slot of the
1940 stack frame.
1941
1942 * source.c: Always define O_BINARY to 0 if not defined already.
1943 (openp): Unconditionally use O_BINARY.
1944
1945 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1946 * event-top.c (gdb_readline2): Likewise.
1947
1948 2004-10-14 Orjan Friberg <orjanf@axis.com>
1949
1950 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1951 deprecated_add_core_fns which was removed by mistake.
1952
1953 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1954
1955 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1956 references to deprecated_registers[] with equivalent code.
1957
1958 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1959
1960 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1961 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1962 instead of explicit test and print statement.
1963
1964 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1965
1966 * sparc-nat.c: Include "inf-ptrace.h".
1967 (sparc_target): New function.
1968 * sparc-nat.h: Update copyright year.
1969 (sparc_target): New prototype.
1970 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1971 (_initialize_sparcnbsd_nat): Construct and add target vector.
1972 * sparc64nbsd-nat.c: Include "target.h".
1973 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1974 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1975 Update dependencies.
1976 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1977 inftarg.o, add inf-ptrace.o.
1978 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1979 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1980 (NAT_FILE): Set to nm-bsd.h.
1981 (LOADLIBES): New variable.
1982 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1983 infarg.o, add inf-ptrace.o.
1984 * config/sparc/nm-nbsdaout.h: Remove file.
1985 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1986 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1987 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1988
1989 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1990 "fopen-same.h". Update comment.
1991
1992 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1993
1994 * i386gnu-nat.c: Include "gdb_string.h".
1995 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1996 registers when the floating-point state isn't initialized.
1997 * Makefile.in (i386gnu-nat.o): Update dependencies.
1998
1999 2004-10-11 David Anderson <davea@sgi.com>
2000
2001 * regcache.c (regcache_raw_read): Comment was missing "to".
2002 Extraneous ' removed.
2003 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2004 comment now describes use.
2005
2006 2004-10-11 Orjan Friberg <orjanf@axis.com>
2007
2008 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2009 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2010 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2011 (cris_sigtramp_frame_sniffer): New functions.
2012 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2013 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2014 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2015 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2016 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2017 command.
2018 (cris_version_update): Remove, replace with ...
2019 (set_cris_version): New function.
2020 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2021 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2022 (_initialize_cris_tdep): Remove CRIS mode command.
2023 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2024 cris-fpless-backtrace command.
2025 (cris_scan_prologue): Fix prologue scanning limit.
2026 (cris_register_type): Update to reflect actual registers.
2027 (cris_register_bytes_ok) Remove.
2028 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2029 Remove set_gdbarch_deprecated_register_size,
2030 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2031
2032 2004-10-10 Andrew Cagney <cagney@gnu.org>
2033
2034 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2035 comment.
2036
2037 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2038
2039 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2040
2041 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2042
2043 * mips-tdep.c (mips16_scan_prologue): Renames
2044 mips16_heuristic_proc_desc. Update comment.
2045 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2046 (heuristic_proc_desc): Update calls to the 2 functions above.
2047
2048 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2049
2050 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2051 Update comments. Also immediately return empty cache when the start
2052 address of our function could not be found.
2053 (mips_insn32_frame_cache): Likewise.
2054
2055 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2056
2057 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2058 (mips_insn16_frame_cache): Pass frame cache in call to
2059 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2060 Remove code that became redundant as a consequence.
2061 (mips32_heuristic_proc_desc): No longer compute a fake
2062 procedure descriptor. Compute the full frame cache instead.
2063 Some minor comment reformatting.
2064
2065 2004-10-10 Jim Blandy <jimb@redhat.com>
2066
2067 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2068 reader, tracing bytecode stuff): Remove self.
2069
2070 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2071
2072 * sparc64-linux-tdep.c: Update copyright year. Don't include
2073 "solib-svr4.h".
2074 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2075 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2076 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2077
2078 * sparc-linux-tdep.c: Update copyright year.
2079 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2080 to struct frame_info *. Use safe_frame_unwind_memory instead of
2081 deprecated_read_memory_nobpt.
2082 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2083 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2084 changed signature of sparc_linux_sigtramp_start.
2085 (sparc32_linux_pc_in_sigtramp): Remove function.
2086 (sparc32_linux_sigtramp_p): New function.
2087 (sparc32_linux_sigtramp_frame_sniffer): Use
2088 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2089
2090 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2091 Remove function.
2092 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2093
2094 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2095 (decode_packed_array_type, value_subscript_packed)
2096 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2097 argument in call to lim_warning.
2098
2099 * configure.in: Really disable the TUI if an enhanced curses
2100 library isn't found.
2101 * configure: Regenerate.
2102
2103 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2104
2105 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2106 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2107 * config/i386/nm-nbsdaout.h: Remove file.
2108 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2109 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2110 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2111 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2112 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2113 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2114 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2115 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2116 (ldd, ld_un, ld_2): Remove defines.
2117 * config/i386/nm-obsd.h: Likewise.
2118
2119 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2120
2121 * ada-lex.l: Remove useless rule whose right-context clause
2122 causes unreferenced static function warning for yyrealloc.
2123 (ada_flex_use): Remove the artificial reference to yyrealloc.
2124
2125 2004-10-08 Andrew Cagney <cagney@gnu.org>
2126
2127 * target.h (struct target_ops): Rename to_xfer_memory to
2128 deprecated_xfer_memory.
2129 * target.c: Update.
2130 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2131 * wince.c: Update.
2132 * win32-nat.c: Update.
2133 * v850ice.c: Update.
2134 * uw-thread.c: Update.
2135 * thread-db.c: Update.
2136 * sol-thread.c: Update.
2137 * remote.c: Update.
2138 * remote-vx.c: Update.
2139 * remote-st.c: Update.
2140 * remote-sim.c: Update.
2141 * remote-sds.c: Update.
2142 * remote-rdp.c: Update.
2143 * remote-rdi.c: Update.
2144 * remote-mips.c: Update.
2145 * remote-m32r-sdi.c: Update.
2146 * remote-e7000.c: Update.
2147 * procfs.c: Update.
2148 * ppc-bdm.c: Update.
2149 * nto-procfs.c: Update.
2150 * monitor.c: Update.
2151 * linux-nat.c: Update.
2152 * inftarg.c: Update.
2153 * hpux-thread.c: Update.
2154 * go32-nat.c: Update.
2155 * gnu-nat.c: Update.
2156 * exec.c: Update.
2157 * corelow.c: Update.
2158 * bsd-kvm.c: Update.
2159 * aix-thread.c: Update.
2160
2161 2004-10-08 Andrew Cagney <cagney@gnu.org>
2162
2163 * target.c (debug_target): Move to near start of file.
2164 (target_stopped_data_address_p): Re-org logic, add casts.
2165
2166 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2167
2168 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2169 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2170 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2171 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2172 New defines.
2173
2174 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2175
2176 * target.h (to_stopped_data_address): Change prototype to
2177 take a CORE_ADDR pointer and return an int.
2178 * target.c (update_current_target): Change to_stopped_data_address
2179 to match new prototype.
2180 (debug_to_stopped_data_address): Change appropriately.
2181 * breakpoint.c (bpstat_stop_status): Change call to
2182 target_stopped_data_address to use new prototype.
2183 * frv-tdep.c (frv_have_stopped_data_address): New function.
2184 (frv_stopped_data_address): Change to new prototype and
2185 functionality.
2186 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2187 prototype and functionality.
2188 (ia64_stopped_by_watchpoint): New function.
2189 * i386-nat.c (i386_stopped_data_address): Change to new
2190 prototype and functionality.
2191 (i386_stopped_by_watchpoint): New function.
2192 * remote.c (remote_stopped_data_address): Change to new prototype
2193 and functionality.
2194 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2195 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2196 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2197 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2198 new i386_stopped_by_watchpoint function.
2199 (i386_stopped_by_watchpoint): New prototype.
2200 (i386_stoppped_data_address): Change to new prototype.
2201 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2202 new ia64_stopped_by_watchpoint function.
2203 (ia64_stopped_by_watchpoint): New prototype.
2204 (ia64_stopped_data_address): Ditto.
2205
2206 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2207
2208 * ada-typeprint.c (ada_print_type): Use int_string for printing
2209 modulus of modular type.
2210 * ada-lang.h (ada_modulus): Change return type to unsigned.
2211 * ada-lang.c (ada_language_arch_info): Correct type of
2212 string_char_type.
2213 (ada_modulus): Return unsigned result.
2214 (ada_lookup_symbol): Remove user disambiguation and modify comment
2215 accordingly.
2216
2217 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2218
2219 Committed by Paul Hilfinger.
2220 * ada-lang.c (decode_packed_array): On big-endian targets,
2221 left-justify the value if it comes with a modular type.
2222
2223 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2224
2225 Committed by Paul Hilfinger.
2226 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2227 (is_name_suffix): Add support for "___JM" suffixes.
2228 (ada_check_typedef): Renames ada_completed_type.
2229 Update all users of CHECK_TYPEDEF, check_typedef, and
2230 ada_complete_type to call ada_check_typedef.
2231 * ada-typeprint.c: Likewise.
2232 * ada-valprint.c: Likewise.
2233
2234 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2235
2236 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2237
2238 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2239
2240 * MAINTAINERS: Update e-mail address.
2241
2242 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2243
2244 From Maciej W. Rozycki <macro@mips.com>:
2245 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2246 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2247
2248 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2249
2250 * m32r-tdep.c (decode_prologue): Support functions written
2251 in assembler language. Recognize trap instructions as the
2252 end of prologue.
2253 (m32r_frame_unwind_cache): Ditto.
2254 (m32r_skip_prologue): Extend search limit. Quit analyzing
2255 prologue if pc's location is not readable.
2256
2257 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2258
2259 * Makefile.in (.l.c): Do conversions of names of alloc and free
2260 functions that are done for .y.c files, plus special one
2261 for yy_flex_realloc. Also, correct missing-file tests here.
2262 * ada-lex.l (malloc, free): Remove macros.
2263 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2264 xrealloc.
2265 (ada_flex_use): Dummy definition to remove warnings about unused
2266 functions.
2267 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2268 to suppress warning.
2269
2270 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2271
2272 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2273 RETURN_VALUE.
2274 (sh_return_value_fpu): Ditto for CPUs with FPU.
2275 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2276 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2277 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2278 RETURN_VALUE functions.
2279
2280 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2281
2282 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2283 (sh_pseudo_register_write): Ditto.
2284
2285 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2286
2287 * sh-tdep.c (IS_MACL_STS): New define.
2288 (IS_MOVI20): Ditto.
2289 (IS_MACL_LDS): Ditto.
2290 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2291 instructions in prologue.
2292 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2293 instructions in epilogue.
2294
2295 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2296
2297 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2298 (sh_sh_register_name): Add eight empty register names.
2299 (sh_sh3_register_name): Ditto.
2300 (sh_sh3e_register_name): Ditto.
2301 (sh_sh2e_register_name): Ditto.
2302 (sh_sh2a_register_name): New function, defining SH2A register set.
2303 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2304 in nofpu case.
2305 (sh_sh_dsp_register_name): Add eight empty register names.
2306 (sh_sh3_dsp_register_name): Ditto.
2307 (sh_sh4_register_name): Ditto.
2308 (sh_sh4_nofpu_register_name): Ditto.
2309 (sh_sh4al_dsp_register_name): Ditto.
2310 (sh2a_show_regs): New function.
2311 (sh2a_nofpu_show_regs): New function.
2312 (sh_sh2a_register_type): New function.
2313 (do_bank_register_info): New function.
2314 (sh_print_pseudo_register): Call do_bank_register_info.
2315 Call sh_print_pseudo_register for valid "bank" register.
2316 (sh_sh2a_register_sim_regno): New function.
2317 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2318 Increment pseudo register count by one for all sh variants with
2319 pseudo registers to accomodate pseudo bank register.
2320 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2321 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2322 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2323 Increment pseudo register numbers.
2324
2325 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2326
2327 * dwarf2read.c (read_subroutine_type): Call make_function_type
2328 instead of lookup_function_type.
2329
2330 2004-10-05 Jim Blandy <jimb@redhat.com>
2331
2332 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2333 (Previous change missed some uses.)
2334
2335 2004-10-05 Andrew Cagney <cagney@gnu.org>
2336
2337 * target.h (deprecated_child_ops): Rename child_ops.
2338 * wince.c: Update copyright. Rename child_ops.
2339 * win32-nat.c: Rename child_ops.
2340 * target.c: Rename child_ops.
2341 * rs6000-nat.c: Rename child_ops.
2342 * linux-nat.c: Rename child_ops.
2343 * infttrace.c: Rename child_ops.
2344 * inftarg.c: Rename child_ops.
2345 * infptrace.c: Rename child_ops.
2346 * hppah-nat.c: Update copyright. Rename child_ops.
2347 * hpux-thread.c: Update copyright. Rename child_ops.
2348
2349 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2350
2351 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2352
2353 2004-10-05 Andrew Cagney <cagney@gnu.org>
2354
2355 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2356
2357 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2358
2359 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2360 (die_ref_table): Remove.
2361 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2362 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2363 the usage of this type.
2364 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2365 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2366 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2367 (dwarf2_create_include_psymtab): Update comment.
2368 (find_partial_die): Remove third argument. Remove unreachable call
2369 to error ().
2370 (dwarf2_find_containing_comp_unit): Update comments. Change one
2371 assertion to an error. Remove an unreachable error.
2372 (dwarf2_find_comp_unit): Update comments.
2373 (type_at_offset): Remove dead code.
2374 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2375 (store_in_ref_table): Add CU argument.
2376 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2377 inter-compilation-unit references.
2378 (load_full_comp_unit, process_full_comp_unit): New functions, based
2379 on psymtab_to_symtab_1.
2380 (psymtab_to_symtab_1): Use them.
2381 (dwarf2_add_dependence): New function.
2382 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2383 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2384 (partial_die_parent_scope, guess_structure_name): Update for changes
2385 to find_partial_die.
2386 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2387 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2388 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2389 (read_die_and_children): Update call to store_in_ref_table.
2390 (do_free_die_list_cleanup): Remove.
2391 (fixup_partial_die): Update for changes to find_partial_die.
2392 (read_full_die): Handle queueing absolute references.
2393 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2394 (dwarf2_attr, die_specification, die_type)
2395 (die_containing_type, dwarf2_extension): Update calls to
2396 follow_die_ref.
2397 (dump_die): Update DW_FORM_ref* handling.
2398 (dwarf2_get_ref_die_offset): Likewise.
2399 (free_one_comp_unit): Release the dies list.
2400 (dwarf2_mark_helper): New function.
2401 (dwarf2_mark): Use it.
2402
2403 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2404
2405 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2406 when writing to memory.
2407
2408 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2409
2410 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2411 (m32r_extract_struct_value_address): Delete function.
2412 (m32r_return_value): New function.
2413 (m32r_gdbarch_init): Instead of store_return_value,
2414 extract_return_value, deprecated_extract_struct_value_address
2415 and deprecated_use_struct_convention, set return_value.
2416
2417 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2418
2419 * dwarf2read.c (read_subrange_type): Add comment for variable
2420 sized arrays.
2421
2422 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2423
2424 * Makefile.in (.l.c): Modify rule for compatibility with recent
2425 versions of flex, and remove most command-line options.
2426 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2427 options.
2428
2429 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2430
2431 Turn on initial Ada support (mainly expression evaluation).
2432
2433 * Makefile.in (SFILES): Remove ada-tasks.c.
2434 (HFILES_NO_SRCDIR): Add ada-lang.h.
2435 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2436 (YYOBJ): Add ada-exp.o.
2437 (rule .l.c): Generalize to not mention ada.
2438 * symtab.c: Include ada-lang.h.
2439 (symbol_natural_name, symbol_demangled_name)
2440 (symbol_search_name): Add Ada case.
2441
2442 2004-10-01 Andrew Cagney <cagney@gnu.org>
2443
2444 * Makefile.in (COMMON_OBS): Add inf-child.o.
2445 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2446 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2447 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2448 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2449 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2450 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2451 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2452 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2453 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2454 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2455 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2456 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2457 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2458
2459 * target.c (xfer_using_stratum): Change return type to LONGEST.
2460 On each iteration offset, readbuf and writebuf.
2461 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2462 partial_length, and read/modify/write predicate, update comments.
2463 Pass buffer.word to ptrace write.
2464
2465 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2466
2467 * symfile.c (init_filename_language_table): Add extensions for
2468 Ada.
2469 * defs.h (enum language): Add language_ada.
2470 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2471 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2472 (add_symbols_from_enclosing_procs): Make a no-op for now.
2473 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2474 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2475 (find_line_in_linetable, find_next_line_in_linetable)
2476 (read_all_symtabs, is_plausible_func_for_line)
2477 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2478 (is_runtime_sym_defined, check_size): Remove declaration.
2479 (function_name_from_pc, ada_translate_error_message)
2480 (ada_lookup_minimal_symbol): Remove definition.
2481 (ada_add_block_symbols): Remove useless label.
2482 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2483 useless declaration.
2484 (ada_is_exception_sym): Likewise.
2485
2486 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2487
2488 Add m32r-linux support.
2489 * configure.tgt: Add m32r*-*-linux*.
2490 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2491 and m32r-linux-tdep.c.
2492 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2493 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2494 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2495 m32r-linux-tdep.c.
2496 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2497 config/m32r/linux.mh, config/m32r/linux.mt,
2498 config/m32r/nm-linux.h: New files.
2499
2500 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2501
2502 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2503 (mips32_fetch_instruction): Remove, unused.
2504
2505 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2506
2507 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2508 conditions that will always be true.
2509
2510 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2511
2512 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2513 (vaxbsd_fetch_inferior_registers): Rename from
2514 fetch_inferior_registers. Make static.
2515 (vaxbsd_store_inferior_registers): Rename from
2516 store_inferior_registers. Make static.
2517 (_initialize_vaxbsd_nat): Construct and add target vector.
2518 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2519 inftarg.o. Add inf-child.o and inf-ptrace.o.
2520 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2521 inftarg.o. Add inf-child.o and inf-ptrace.o.
2522 (NAT_FILE): Remove.
2523 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2524 inftarg.o. Add inf-child.o and inf-ptrace.o.
2525 (NAT_FILE): Remove.
2526 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2527
2528 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2529 (m88kbsd_fetch_inferior_registers): Rename from
2530 fetch_inferior_registers. Make static.
2531 (m88kbsd_store_inferior_registers): Rename from
2532 store_inferior_registers. Make static.
2533 (_initialize_m88kbsd_nat): New prototype and function.
2534 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2535 inftarg.o. Add inf-child.o and inf-ptrace.o.
2536 (NAT_FILE): Remove.
2537 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2538
2539 2004-09-30 Andrew Cagney <cagney@gnu.org>
2540
2541 * target.c (target_xfer_partial): New function.
2542 (target_read_memory_partial, target_write_memory_partial)
2543 (default_xfer_partial, target_read_partial, target_write_partial)
2544 (xfer_using_stratum): Use.
2545 (debug_to_xfer_partial): Delete function.
2546 (setup_target_debug): Do not override to_xfer_partial.
2547
2548 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2549
2550 * fork-child.c: Update copyright year. Fix coding style.
2551
2552 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2553
2554 * defs.h (msavestring, mstrsave): Remove prototypes.
2555 * utils.c (msavestring, mstrsave): Remove functions.
2556 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2557 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2558 of mstrsave.
2559 * source.c (find_and_open_source): Use xstrdup instead of
2560 mstrsave.
2561
2562 2004-09-30 Andrew Cagney <cagney@gnu.org>
2563
2564 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2565 (inf_ptrace_xfer_memory): Delete.
2566 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2567 (target_read_memory, target_write_memory): Use xfer_using_stratum
2568 when target_xfer_partial_p.
2569 (debug_target): Move to start of file.
2570 (target_read_memory_partial, target_write_memory_partial): Use
2571 to_xfer_partial when target_xfer_partial_p.
2572
2573 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2574 inf_ptrace_xfer_memory with equivalent code.
2575 * inftarg.c (child_xfer_partial): When performing a write, pass
2576 writebuf to child_xfer_memory.
2577
2578 * target.c (target_read_string): Use target_read_memory instead of
2579 target_xfer_memory.
2580
2581 2004-09-29 Andrew Cagney <cagney@gnu.org>
2582
2583 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2584 the address of status.
2585
2586 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2587 (kill_inferior): Inline ptrace_wait call.
2588 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2589 * inftarg.c (child_wait): Inline ptrace_wait call.
2590
2591 * target.h (struct target_ops): Delete field to_post_wait.
2592 (target_post_wait): Delete macro.
2593 (child_post_wait): Delete declaration.
2594 * target.c (update_current_target, update_current_target)
2595 (debug_to_post_wait, setup_target_debug): Delete functions and
2596 references.
2597 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2598 * inftarg.c (child_post_wait): Delete.
2599 (init_child_ops): Do not set to_post_wait.
2600 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2601 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2602 * inf-child.c (inf_child_post_wait): Delete.
2603 (inf_child_target): Do not set to_post_wait.
2604 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2605 (inf_ptrace_target): Do not set to_post_wait.
2606
2607 * wince.c (child_ops): Delete.
2608 * win32-nat.c (child_ops): Delete.
2609
2610 * inftarg.c (inftarg_set_find_memory_regions)
2611 (inftarg_set_make_corefile_notes): Delete functions.
2612 (_initialize_linux_nat): Inline calls.
2613
2614 * target.h (child_ops): Declare.
2615 * inftarg.c (child_ops): Move from here ...
2616 * target.c (child_ops): ... to here.
2617 * wince.c (child_ops): Delete extern declaration.
2618 * win32-nat.c (child_ops): Delete extern declaration.
2619 * linux-nat.c (child_ops): Delete extern declaration.
2620 * hpux-thread.c (child_ops): Delete extern declaration.
2621
2622 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2623
2624 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2625
2626 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2627
2628 * configure.in: Only set host_makefile_frag when building a native
2629 debugger.
2630 * configure: Regenerate.
2631
2632 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2633 for OpenBSD ELF.
2634
2635 2004-09-28 Andrew Cagney <cagney@gnu.org>
2636
2637 Problem identified by Paul Hilfinger.
2638 * Makefile.in (ada_lex_c): Define.
2639 (ada-lex.o): Delete rule.
2640
2641 * linux-proc.c: Delete file.
2642 * Makefile.in: Update.
2643 * config/sparc/linux64.mh (NATDEPFILES):
2644 * config/sparc/linux.mh (NATDEPFILES): Update.
2645 * config/s390/s390.mh (NATDEPFILES): Update.
2646 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2647 * config/powerpc/linux.mh (NATDEPFILES): Update.
2648 * config/pa/linux.mh (NATDEPFILES): Update.
2649 * config/mips/linux.mh (NATDEPFILES): Update.
2650 * config/m68k/linux.mh (NATDEPFILES): Update.
2651 * config/ia64/linux.mh (NATDEPFILES): Update.
2652 * config/i386/linux64.mh (NATDEPFILES): Update.
2653 * config/i386/linux.mh (NATDEPFILES): Update.
2654 * config/arm/linux.mh (NATDEPFILES): Update.
2655 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2656 * linux-nat.c: Update copyright. Include <sys/param.h>,
2657 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2658 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2659 (O_LARGEFILE): Possibly define.
2660 (_initialize_linux_nat, linux_proc_pending_signals)
2661 (add_line_to_sigset, linux_proc_xfer_memory)
2662 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2663 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2664 (struct linux_corefile_thread_data)
2665 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2666 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2667
2668 2004-09-16 Andrew Cagney <cagney@gnu.org>
2669
2670 * lin-lwp.c: Delete file.
2671 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2672 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2673 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2674 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2675 (linux_nat_attach, detach_callback, linux_nat_detach)
2676 (resume_callback, resume_clear_callback, linux_nat_resume)
2677 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2678 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2679 (status_callback, running_callback, count_events_callback)
2680 (select_singlestep_lwp_callback, select_event_lwp_callback)
2681 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2682 (child_wait, stop_and_resume_callback, linux_nat_wait)
2683 (kill_callback, kill_wait_callback, linux_nat_kill)
2684 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2685 (linux_nat_xfer_memory, linux_nat_thread_alive)
2686 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2687 (_initialize_linux_nat): New functions.
2688 * Makefile.in: Update all dependencies.
2689 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2690 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2691 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2692 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2693 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2694 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2695 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2696 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2697 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2698 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2699 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2700 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2701 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2702
2703 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2704
2705 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2706 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2707
2708 * configure.in: Don't comment out NATDEPFILES in the generated
2709 Makefile if NAT_FILE is unset.
2710 * configure: Regenerate.
2711
2712 2004-09-27 Andrew Cagney <cagney@gnu.org>
2713
2714 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2715 (insert_step_resume_breakpoint): Delete.
2716 (insert_step_resume_breakpoint_at_frame): New function.
2717 (insert_step_resume_breakpoint_at_sal): New function.
2718 (handle_inferior_event, step_into_function)
2719 (insert_step_resume_breakpoint): Simplify by using same.
2720
2721 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2722
2723 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2724
2725 * fbsd-proc.c: Remove file.
2726 * Makefile.in (fbsd-proc.o): Remove dependency.
2727
2728 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2729 code together.
2730
2731 * config/i386/nm-fbsd64.h: Remove file.
2732 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2733
2734 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2735
2736 * amd64-nat.h: Update copyright year.
2737 (amd64bsd_target): New prototype.
2738 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2739 (amd64bsd_target): New function.
2740 (amd64bsd_fetch_inferior_registers): Rename from
2741 fetch_inferior_registers. Make static.
2742 (amd64bsd_store_inferior_registers): Rename from
2743 store_inferior_registers. Make static.
2744 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2745 (_initialize_amd64fbsd_nat): Construct and add target vector.
2746 * amd64nbsd-nat.o: Include "target.h".
2747 (_initialize_amd64nbsd_nat): Construct and add target vector.
2748 * amd64obsd-nat.c: Include "target.h".
2749 (_initialize_amd64obsd_nat): Construct and add target vector.
2750 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2751 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2752 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2753 fbsd-nat.o.
2754 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2755 Remove infptrace.o and inftarg.o. Add inf-child.o and
2756 inf-ptrace.o.
2757 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2758 (amd64obsd-nat.o): Update dependencies.
2759
2760 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2761
2762 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2763 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2764 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2765 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2766 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2767
2768 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2769 Inline attach call.
2770 (inf_ptrace_detach): Inline detach call.
2771
2772 * configure.in: Check for waddstr instead of mvwaddstr when
2773 searching for curses library. Check for wborder.
2774 * configure, config.in: Regenerate.
2775 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2776 available.
2777
2778 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2779
2780 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2781
2782 Committed by Andrew Cagney.
2783 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2784 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2785 configuration.
2786 (fetch_register_using_p): Implement 'p' packet. Based on code by
2787 Fernando Nasser.
2788 (remote_fetch_registers): Call fetch_register_using_p.
2789 (init_all_packet_configs, show_remote_cmd)
2790 (_initialize_remote): Add p-packet.
2791
2792 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2793
2794 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2795 instead of call_ptrace. Call wait directly instead of
2796 ptrace_wait.
2797 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2798 (inf_ptrace_wait): Inline ptrace_wait call.
2799
2800 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2801
2802 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2803 rolled back instead.
2804
2805 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2806
2807 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2808 the new argument order.
2809
2810 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2811
2812 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2813 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2814 (struct gdbarch_tdep): Remove.
2815 (struct xstormy16_frame_cache): New frame cache structure.
2816 (xstormy16_register_byte, xstormy16_register_raw_size)
2817 (xstormy16_reg_virtual_type, xstormy16_register_type)
2818 (xstormy16_push_arguments, xstormy16_push_return_address)
2819 (xstormy16_pop_frame, xstormy16_store_struct_return)
2820 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2821 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2822 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2823 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2824 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2825 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2826 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2827 (xstormy16_extract_return_value, xstormy16_store_return_value):
2828 Regcachify. Drop useless struct convention handling.
2829 (xstormy16_register_type, xstormy16_return_value)
2830 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2831 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2832 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2833 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2834 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2835 (xstormy16_unwind_dummy_id) : New functions.
2836 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2837 of xstormy16_scan_prologue.
2838 (xstormy16_frame_unwind): New frame_unwind structure.
2839 (xstormy16_frame_base): New frame_base structure.
2840 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2841 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2842
2843 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2844
2845 * language.c (language_gdbarch_post_init): Fix off-by one error.
2846
2847 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2848
2849 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2850 (struct dwarf2_offset_and_type): New.
2851 (set_die_type, reset_die_and_siblings_types, get_die_type)
2852 (offset_and_type_hash, offset_and_type_eq): New functions.
2853 (read_structure_type, read_enumeration_type, read_array_type)
2854 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2855 (read_tag_reference_type, read_tag_const_type)
2856 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2857 (read_typedef, read_base_type, read_subrange_type): Use
2858 set_die_type.
2859
2860 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2861
2862 * Makefile.in (dwarf2read.o): Update dependencies.
2863 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2864 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2865 and read_in_chain.
2866 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2867 mark, and has_form_ref_addr.
2868 (struct dwarf2_per_cu_data): New.
2869 (dwarf2_max_cache_age): New.
2870 (dwarf2_build_psymtabs_hard): Free cached compilation units
2871 after loading. Create and manage the list of compilation units.
2872 Remove unnecessary NULL initialization. Fix indentation.
2873 (psymtab_to_symtab_1): Initialize all of CU.
2874 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2875 (find_partial_die): Use dwarf2_find_containing_comp_unit
2876 and load_comp_unit.
2877 (free_stack_comp_unit): Update comments. Clear the per-cu
2878 pointer. Handle aging.
2879 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2880 (age_cached_comp_units, free_one_cached_comp_unit)
2881 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2882 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2883 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2884 (show_dwarf2_cmd): New.
2885 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2886 and "maint show dwarf2 max-cache-age".
2887 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2888 externs.
2889 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2890 global.
2891
2892 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2893
2894 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2895 and dwarf2_cu struct pointer as arguments. Change function to use
2896 obstack if provided and use dwarf2_cu to determine language-specific
2897 separator.
2898 (partial_die_parent_scope): Change comment to include java. Use
2899 new version of typename_concat instead of obconcat.
2900 (partial_die_full_name): Use typename_concat.
2901 (read_namespace): Ditto.
2902 (read_enumeration_type): Use typename_concat instead of obconcat.
2903 (new_symbol): Ditto.
2904 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2905 (guess_structure_name): Ditto.
2906 (read_subroutine_type): Ditto.
2907 (read_structure_type): Ditto.
2908 (is_vtable_name): Add Java support.
2909 (determine_class_name): Switch to new typename_concat call.
2910 (determine_prefix): Switch to new typename_concat call.
2911 * jv-exp.y (FuncStart): New pattern.
2912 (MethodInvocation): Add support for simple function calls. Change
2913 warning message for other forms of inferior call currently not
2914 supported.
2915 * valarith.c (value_subscript): Treat an array with upper-bound
2916 of -1 as unknown size.
2917
2918 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2919
2920 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2921 (lookup_partial_symtab): Use symtab_to_fullname.
2922
2923 2004-09-19 Jim Blandy <jimb@redhat.com>
2924
2925 * minsyms.c (lookup_minimal_symbol): Doc fix.
2926
2927 2004-09-20 Andrew Cagney <cagney@gnu.org>
2928
2929 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2930 CHILD_RESUME.
2931 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2932 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2933 KILL_INFERIOR.
2934 * infptrace.c: Update.
2935
2936 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2937
2938 * symtab.c (output_source_filename): Mark first argument as const.
2939 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2940 for "info sources" output.
2941
2942 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2943
2944 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2945 <machine/vmparam.h>.
2946 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2947 (register_u_addr): Remove prototype.
2948
2949 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2950
2951 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2952 (i386bsd_fetch_inferior_registers): Rename from
2953 fetch_inferior_registers. Make static.
2954 (i386bsd_store_inferior_registers): Rename from
2955 store_inferior_registers. Make static.
2956 (i386bsd_target): New function.
2957 * i386bsd-nat.h: New file.
2958 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2959 "i386bsd-nat.h".
2960 (i386fbsd_resume): Rename from child_resume. Make static.
2961 (_initialize_i386fbsd_nat): Construct and add target vector.
2962 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2963 (_initialize_i386nbsd_nat): Construct and add target vector.
2964 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2965 Remove defines.
2966 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2967 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2968 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2969 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2970 (LOADLIBES): New variable.
2971 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2972 inf-ptrace.o. Remove inftarg.o.
2973 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2974 inf-ptrace.o. Remove inftarg.o.
2975 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2976 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2977 (LOADLIBES): New variable.
2978 * Makefile.in (i386bsd_nat_h): New variable.
2979 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2980 dependencies.
2981
2982 * sparc64nbsd-tdep.c: Include "objfiles.h".
2983 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2984 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2985 svr4_lp64_fetch_link_map_offsets.
2986 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2987 "nbsd-tdep.h".
2988 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2989 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2990 svr4_lp64_fetch_link_map_offsets.
2991 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2992 dependencies.
2993
2994 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2995 * fbsd-nat.h: New file.
2996 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2997 (fbsd_nat_h): New variable.
2998 (fbsd-nat.o): New dependency.
2999
3000 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3001 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3002
3003 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3004 comment.
3005
3006 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3007
3008 * ada-exp.y (type_int): New function to add layer of abstraction
3009 around references to expression types.
3010 (type_long): Ditto.
3011 (type_long_long): Ditto.
3012 (type_float): Ditto.
3013 (type_double): Ditto.
3014 (type_long_double): Ditto.
3015 (type_char): Ditto.
3016 (type_system_address): Ditto.
3017 (simple_exp): Use type_* functions in place of builtin_*
3018 variables.
3019 (exp): Ditto.
3020 (write_var_from_name): Ditto.
3021 (write_object_renaming): Ditto.
3022 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3023 declaration.
3024 (build_ada_types): Remove, replacing with...
3025 (ada_language_arch_info): New function to initialize primitive
3026 type vector in language_arch_info.
3027 (ada_array_length): Remove use of builtin_type_ada_int.
3028 (value_pos_atr): Ditto.
3029 (ada_evaluate_subexp): Ditto.
3030 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3031 builtin_type_ada_long_long, builtin_type_ada_char,
3032 builtin_type_ada_float, builtin_type_ada_double,
3033 builtin_type_ada_long_double, builtin_type_ada_natural,
3034 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3035 (ada_builtin_types): Remove.
3036 (ada_language_defn): Remove entries for la_builtin_type_vector and
3037 string_char_type and use ada_language_arch_info.
3038 (_initialize_ada_language): Do type-vector initialization along
3039 the lines of c-lang.c.
3040 (ada_create_fundamental_type): Break up line.
3041 (ada_dump_symtab): Remove unused function.
3042 (enum ada_primitive_types): Define.
3043 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3044 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3045 builtin_type_ada_float, builtin_type_ada_double,
3046 builtin_type_ada_long_double, builtin_type_ada_natural,
3047 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3048 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3049 (processInt): Ditto.
3050 (processReal): Ditto.
3051 (name_lookup): Ditto.
3052 * ada-typeprint.c (print_range): Use builtin_type_int, not
3053 builtin_type_ada_int.
3054
3055 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3056
3057 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3058
3059 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3060 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3061 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3062 * configure.in: Improve checks for curses library by checking for
3063 mvwaddstr instead of initscr. Drop HP curses in favour of
3064 standard curses on HP-UX.
3065 * configure: Regenerated.
3066
3067 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3068
3069 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3070 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3071 Minor formatting changes.
3072 (empty_array): Slight rewrite for formatting.
3073 (emit_char,parse,ada_language_defn,build_ada_types,
3074 ada_is_exception_sym, _initialize_ada_language): Move
3075 definitions around.
3076 (ada_dump_symtab): Remove unused definition.
3077 (ada_maybe_exception_partial_symbol): Remove unused definition.
3078
3079 2004-09-16 Andrew Cagney <cagney@gnu.org>
3080
3081 * inf-child.c: Include "gdb_string.h".
3082 (inf_child_core_file_to_sym_file): Delete.
3083 (inf_child_target): Set to_fetch_registers and to_store_registers.
3084 * inf-ptrace.c: Include "gdb_string.h".
3085 * Makefile.in: Update all dependencies.
3086
3087 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3088 problem.
3089
3090 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3091
3092 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3093 call to heuristic_proc_desc. Remove code that became redundant
3094 as a consequence.
3095 (read_next_frame_reg): Remove special case for SP_REGNUM.
3096 (set_reg_offset): Fix small typo.
3097 (reset_saved_regs): New procedure.
3098 (mips32_heuristic_proc_desc): No longer compute a fake
3099 procedure descriptor. Compute the full frame cache instead.
3100 Some minor comment reformatting.
3101
3102 2004-09-14 Andrew Cagney <cagney@gnu.org>
3103
3104 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3105 maintainer.
3106
3107 * thread-db.c (thread_db_new_objfile): Assume that there is a
3108 child process.
3109
3110 2004-09-13 Jim Blandy <jimb@redhat.com>
3111
3112 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3113 so that its storage isn't referenced after its lifetime ends.
3114
3115 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3116 and never assigned to. Delete it, and the 'if (use_buffer)'
3117 clauses. Delete 'raw_buffer', since it is now unused.
3118
3119 2004-09-13 Andrew Cagney <cagney@gnu.org>
3120
3121 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3122 * configure: Re-generate.
3123 * nlm/Makefile.in (TAGS): Update.
3124 * Makefile.in (TAGS): Update.
3125 * config/vax/nbsd.mt (TM_FILE): Update.
3126 * config/sparc/vxworks.mt (TM_FILE): Update.
3127 * config/sparc/sol2.mt (TM_FILE): Update.
3128 * config/sparc/sol2-64.mt (TM_FILE): Update.
3129 * config/sparc/obsd64.mt (TM_FILE): Update.
3130 * config/sparc/obsd.mt (TM_FILE): Update.
3131 * config/sparc/nbsd64.mt (TM_FILE): Update.
3132 * config/sparc/nbsd.mt (TM_FILE): Update.
3133 * config/sparc/linux64.mt (TM_FILE): Update.
3134 * config/sparc/linux.mt (TM_FILE): Update.
3135 * config/sparc/fbsd.mt (TM_FILE): Update.
3136 * config/sh/wince.mt (TM_FILE): Update.
3137 * config/sh/nbsd.mt (TM_FILE): Update.
3138 * config/sh/linux.mt (TM_FILE): Update.
3139 * config/sh/embed.mt (TM_FILE): Update.
3140 * config/s390/s390.mt (TM_FILE): Update.
3141 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3142 * config/rs6000/rs6000.mt (TM_FILE): Update.
3143 * config/rs6000/aix4.mt (TM_FILE): Update.
3144 * config/powerpc/vxworks.mt (TM_FILE): Update.
3145 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3146 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3147 * config/powerpc/obsd.mt (TM_FILE): Update.
3148 * config/powerpc/nbsd.mt (TM_FILE): Update.
3149 * config/powerpc/linux.mt (TM_FILE): Update.
3150 * config/powerpc/aix.mt (TM_FILE): Update.
3151 * config/pa/obsd.mt (TM_FILE): Update.
3152 * config/pa/linux.mt (TM_FILE): Update.
3153 * config/pa/hppahpux.mt (TM_FILE): Update.
3154 * config/pa/hppa64.mt (TM_FILE): Update.
3155 * config/pa/hppa.mt (TM_FILE): Update.
3156 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3157 * config/mips/wince.mt (TM_FILE): Update.
3158 * config/mips/vxmips.mt (TM_FILE): Update.
3159 * config/mips/nbsd.mt (TM_FILE): Update.
3160 * config/mips/linux.mt (TM_FILE): Update.
3161 * config/mips/irix6.mt (TM_FILE): Update.
3162 * config/mips/irix5.mt (TM_FILE): Update.
3163 * config/mips/embed.mt (TM_FILE): Update.
3164 * config/m68k/vxworks68.mt (TM_FILE): Update.
3165 * config/m68k/st2000.mt (TM_FILE): Update.
3166 * config/m68k/os68k.mt (TM_FILE): Update.
3167 * config/m68k/obsd.mt (TM_FILE): Update.
3168 * config/m68k/nbsd.mt (TM_FILE): Update.
3169 * config/m68k/monitor.mt (TM_FILE): Update.
3170 * config/m68k/linux.mt (TM_FILE): Update.
3171 * config/m68k/cisco.mt (TM_FILE): Update.
3172 * config/ia64/linux.mt (TM_FILE): Update.
3173 * config/ia64/aix.mt (TM_FILE): Update.
3174 * config/ia64/ia64.mt (TM_FILE): Update.
3175 * config/i386/vxworks.mt (TM_FILE): Update.
3176 * config/i386/obsd64.mt (TM_FILE): Update.
3177 * config/i386/obsd.mt (TM_FILE): Update.
3178 * config/i386/nto.mt (TM_FILE): Update.
3179 * config/i386/nbsd64.mt (TM_FILE): Update.
3180 * config/i386/nbsd.mt (TM_FILE): Update.
3181 * config/i386/linux64.mt (TM_FILE): Update.
3182 * config/i386/linux.mt (TM_FILE): Update.
3183 * config/i386/i386sol2.mt (TM_FILE): Update.
3184 * config/i386/i386lynx.mt (TM_FILE): Update.
3185 * config/i386/fbsd64.mt (TM_FILE): Update.
3186 * config/i386/fbsd.mt (TM_FILE): Update.
3187 * config/i386/cygwin.mt (TM_FILE): Update.
3188 * config/h8300/h8300.mt (TM_FILE): Update.
3189 * config/frv/frv.mt (TM_FILE): Update.
3190 * config/cris/cris.mt (TM_FILE): Update.
3191 * config/arm/wince.mt (TM_FILE): Update.
3192 * config/arm/nbsd.mt (TM_FILE): Update.
3193 * config/arm/linux.mt (TM_FILE): Update.
3194 * config/arm/embed.mt (TM_FILE): Update.
3195 * config/alpha/nbsd.mt (TM_FILE): Update.
3196 * config/alpha/fbsd.mt (TM_FILE): Update.
3197 * config/alpha/alpha.mt (TM_FILE): Update.
3198 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3199 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3200
3201 Eliminate event_loop_p, always has the value 1.
3202 * defs.h (event_loop_p): Delete macro.
3203 * breakpoint.c (until_break_command): Simplify.
3204 * utils.c (prompt_for_continue): Simplify.
3205 * tracepoint.c (read_actions): Simplify.
3206 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3207 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3208 (set_prompt, init_main): Simplify.
3209 (init_signals, disconnect): Delete, unused.
3210 * remote.c (remote_async_resume)
3211 (extended_remote_async_create_inferior): Simplify.
3212 * mi/mi-interp.c (mi_input): Delete, unused.
3213 (mi_interpreter_resume, mi_command_loop): Simplify.
3214 * interps.c (current_interp_command_loop): Simplify.
3215 * infrun.c (proceed): Simplify.
3216 * infcmd.c (run_command, continue_command, step_1, jump_command)
3217 (until_command, advance_command, finish_command)
3218 (interrupt_target_command): Simplify.
3219 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3220
3221 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3222 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3223 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3224 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3225 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3226 * mips-tdep.c (mips_dump_tdep): Do not print same.
3227
3228 2004-09-12 Andrew Cagney <cagney@gnu.org>
3229
3230 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3231 const.
3232 * Makefile.in (valprint.o): Delete explict rule.
3233
3234 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3235 reported by Dave Anderson.
3236
3237 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3238
3239 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3240
3241 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3242 Andrew Cagney <cagney@gnu.org>
3243
3244 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3245 (mi_cmd_data_list_register_values)
3246 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3247 the register number computation.
3248
3249 2004-09-12 Andrew Cagney <cagney@gnu.org>
3250
3251 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3252 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3253 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3254 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3255 target.
3256 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3257 inf-ptrace.o and inf-child.o.
3258 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3259 * Makefile.in: Update dependencies.
3260
3261 2004-09-11 Andrew Cagney <cagney@gnu.org>
3262
3263 * language.c (hex_string, hex_string_custom): Move from here ...
3264 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3265 (CELLSIZE): Increase to 50.
3266 * language.h (hex_string, hex_string_custom): Move from here ...
3267 * defs.h: ... to here.
3268 * Makefile.in: Update all dependencies.
3269
3270 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3271
3272 * language.c (local_hex_format_custom): Remove.
3273 (local_hex_string): Rename to hex_string, use C format, and move to
3274 utils.c
3275 (local_hex_string_custom): Rename to hex_string_custom and change
3276 interface. Now uses C format. Move to utils.c
3277 (local_octal_format_custom): Remove.
3278 (local_decimal_format_custom): Remove.
3279 (unknown_language_defn): Remove language-specific number
3280 formatting entries.
3281 (auto_language_defn): Ditto.
3282 (local_language_defn): Ditto.
3283 * language.h (struct language_format_info): Delete declaration.
3284 (struct language_defn): Remove language_format_info fields
3285 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3286 (local_binary_format): Remove macro.
3287 (local_binary_format_prefix): Remove macro.
3288 (local_binary_format_specifier): Remove macro.
3289 (local_binary_format_suffix): Remove macro.
3290 (local_octal_format): Remove macro.
3291 (local_octal_format_prefix): Remove macro.
3292 (local_octal_format_specifier): Remove macro.
3293 (local_octal_format_suffix): Remove macro.
3294 (local_decimal_format): Remove macro.
3295 (local_decimal_format_prefix): Remove macro.
3296 (local_decimal_format_specifier): Remove macro.
3297 (local_decimal_format_suffix): Remove macro.
3298 (local_hex_format): Remove macro.
3299 (local_hex_format_prefix): Remove macro.
3300 (local_hex_format_specifier): Remove macro.
3301 (local_hex_format_suffix): Remove macro.
3302 (local_decimal_format_custom): Remove.
3303 (local_octal_format_custom): Remove.
3304 (local_hex_format_custom): Remove.
3305 (local_hex_string): Rename to hex_string and move to defs.h.
3306 (local_hex_string_custom): Rename to hex_string_custom, change
3307 interface, and move to defs.h.
3308 * utils.c: (int_string): New function.
3309 (hex_string): New function (from language.c).
3310 (hex_string_custom): New function (from language.c).
3311 (octal2str): New function.
3312 (decimal2str): Add width parameter.
3313 (paddr_u): Use new decimal2str interface.
3314 (paddr_d): Ditto.
3315 * defs.h (hex_string): Declare.
3316 (hex_string_custom): Declare.
3317 (int_string): Declare.
3318 * printcmd.c (print_scalar_formatted): Remove localized binary
3319 formatting.
3320 * valprint.c (print_longest): Use int_string.
3321 (print_floating): Use C hex format.
3322 (print_hex_chars): Ditto.
3323 (print_binary_chars): Remove language-specific formatting.
3324 (print_octal_chars): Use C octal format.
3325 (print_decimal_chars): Delocalize format.
3326 (print_decimal): Remove.
3327 * ada-lang.c (ada_language_defn): Remove language-specific number
3328 formatting entries.
3329 * p-lang.c (pascal_language_defn): Ditto.
3330 * c-lang.c (c_language_defn): Ditto.
3331 (cplus_language_defn): Ditto.
3332 (asm_language_defn): Ditto.
3333 (minimal_language_defn): Ditto.
3334 * f-lang.c (f_language_defn): Ditto.
3335 * jv-lang.c (java_language_defn): Ditto.
3336 * m2-lang.c (m2_language_defn): Ditto.
3337 * scm-lang.c (scm_language_defn): Ditto.
3338 * objc-lang.c (objc_language_defn): Ditto.
3339 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3340 new interface.
3341 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3342 * ui-out.c (ui_out_field_core_addr): Ditto.
3343 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3344 * exec.c (print_section_info): Ditto.
3345 * i387-tdep.c (print_i387_status_word): Ditto.
3346 (print_i387_control_word): Ditto.
3347 (i387_print_float_info): Ditto.
3348 * maint.c (maint_print_section_info): Ditto.
3349 * solib.c (info_sharedlibrary_command): Ditto.
3350 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3351 * symtab.c (print_msymbol_info): Ditto.
3352 * tracepoint.c (tracepoints_info): Ditto.
3353 * solib-frv.c (lm_base): Ditto.
3354 (frv_current_sos): Ditto.
3355 (enable_break2): Ditto.
3356 (enable_break): Ditto.
3357 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3358 (process_one_symbol): Ditto.
3359 * infcmd.c (program_info): Ditto.
3360 * mdebugread.c (parse_partial_symbols): Ditto.
3361 * symfile.c (add_symbol_file_command): Ditto.
3362 * cli/cli-cmds.c (edit_command): Ditto.
3363 (list_command): Ditto.
3364 * infcall.c (call_function_by_hand): Ditto.
3365 * remote-vx.c (vx_run_files_info): Ditto.
3366 (vx_wait): Ditto.
3367 (vx_attach): Ditto.
3368 (vx_detach): Ditto.
3369 (vx_kill): Ditto.
3370 * aix-thread.c (pdc_symbol_addrs): Ditto.
3371 (pdc_read_regs): Ditto.
3372 (pdc_write_regs): Ditto.
3373 (pdc_read_data): Ditto.
3374 (pdc_write_data): Ditto.
3375 * d10v-tdep.c (display_trace): Ditto.
3376 * rs6000-nat.c (find_toc_address): Ditto.
3377 * aix-thread.c: Don't include language.h.
3378 * buildsym.c: Ditto.
3379 * dbxread.c: Ditto.
3380 * mdebugread.c: Ditto.
3381 * rs6000-nat.c: Ditto.
3382 * buildsym.c (make_blockvector): Use renamed hex_string.
3383
3384 2004-09-10 Jason Molenda (jmolenda@apple.com)
3385
3386 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3387 chars after 'if' or 'while' commands in user-defined commands.
3388
3389 2004-09-08 Jim Blandy <jimb@redhat.com>
3390
3391 Fix bug reported and analyzed by Olivier Crete:
3392 * symfile.c (copy_section_addr_info): New function.
3393 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3394 original set of address arguments, instead of handwritten code
3395 that uses one length to allocate and a different length to
3396 initialize. Use make_cleanup_free_section_addr_info.
3397 * symfile.h (copy_section_addr_info): New declaration.
3398 * utils.c: #include "symfile.h".
3399 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3400 New functions.
3401 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3402 * Makefile.in (utils.o): Update dependencies.
3403
3404 2004-09-08 Andrew Cagney <cagney@gnu.org>
3405
3406 * thread-db.c (keep_thread_db): Delete.
3407 (thread_db_new_objfile, thread_db_create_inferior)
3408 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3409
3410 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3411
3412 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3413 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3414 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3415 (i386_frameless_signal_p): Remove prototype.
3416 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3417 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3418 I386_SSE_NUM_REGS.
3419 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3420 instead of FP0_REGNUM.
3421 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3422 of FP0_REGNUM and FPC_REGNUM.
3423
3424 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3425 (sunos_solib_create_inferior_hook): Don't call
3426 sunos_relocate_main_executable.
3427
3428 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3429 solib_svr4_fetch_link_map_offsets to
3430 svr4_ilp32_fetch_link_map_offsets.
3431 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3432 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3433 svr4_ilp32_fetch_link_map_offsets.
3434 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3435
3436 2004-09-07 Jim Blandy <jimb@redhat.com>
3437
3438 * frame.h (frame_register): Doc fix.
3439
3440 2004-09-07 Andrew Cagney <cagney@gnu.org>
3441
3442 * vx-share/wait.h: Delete #ifdef USG.
3443 * utils.c (request_quit): Ditto.
3444 * tui/tui.c (tui_reset): Ditto.
3445 * remote.c: Ditto.
3446 * remote-sds.c: Ditto.
3447 * remote-rdi.c: Ditto.
3448 * mdebugread.c: Ditto.
3449 * m68klinux-nat.c: Ditto.
3450 * infttrace.c: Ditto.
3451 * infptrace.c: Ditto.
3452 * i386v-nat.c: Ditto.
3453 * exec.c: Ditto.
3454 * dbxread.c: Ditto.
3455 * core-aout.c: Ditto.
3456
3457 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3458
3459 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3460 heuristic_proc_desc.
3461 (mips_insn32_frame_cache): Likewise.
3462
3463 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3464
3465 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3466 left behind by error.
3467
3468 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3469
3470 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3471 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3472
3473 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3474
3475 * config/rs6000/xm-aix4.h: Remove this file.
3476 * config/rs6000/aix4.mh (XM_FILE): Delete.
3477
3478 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3479
3480 * config/rs6000/xm-rs6000.h: Remove this file.
3481 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3482
3483 2004-09-03 Andrew Cagney <cagney@gnu.org>
3484
3485 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3486 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3487 only use.
3488
3489 * mips-tdep.c (temp_saved_regs): Delete.
3490 (set_reg_offset): Replace saved_regs parameter with this_cache.
3491 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3492 (mips32_heuristic_proc_desc): Add this_cache parameter.
3493 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3494 (after_prologue): Pass a NULL this_cache.
3495
3496 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3497 non-kernel trap prologues.
3498
3499 * mips-tdep.c (find_proc_desc): Delete function.
3500 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3501 simplify.
3502 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3503 mips_insn32_frame_cache.
3504
3505 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3506 Simplify as NEXT_FRAME is NULL.
3507 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3508
3509 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3510 local variable.
3511 (mips_skip_prologue): Update.
3512
3513 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3514 "cur_frame" parameter.
3515 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3516 (mips_insn32_frame_cache, find_proc_desc): Update
3517
3518 * config/vax/nm-obsd.h: Delete file.
3519 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3520 * config/vax/nm-nbsd.h: Delete file.
3521 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3522 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3523 * config/sh/nm-nbsd.h: Delete file.
3524 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3525 * config/rs6000/nm-rs6000ly.h: Delete file.
3526 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3527 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3528 * config/powerpc/nm-obsd.h: Delete file.
3529 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3530 * config/powerpc/nm-nbsd.h: Delete file.
3531 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3532 * config/pa/nm-obsd.h: Delete file.
3533 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3534 * config/mips/nm-nbsd.h: Delete file.
3535 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3536 * config/m88k/nm-obsd.h: Delete file.
3537 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3538 * config/m68k/nm-nbsd.h: Delete file.
3539 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3540 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3541 * config/i386/nm-nbsd.h: Delete file.
3542 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3543 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3544 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3545 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3546 * config/i386/nm-i386lynx.h: Delete file.
3547 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3548 * config/arm/nm-nbsd.h: Delete file.
3549 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3550 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3551
3552 * config/i386/tm-fbsd.h: Delete file.
3553 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3554 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3555
3556 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3557 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3558 * config/rs6000/aix4.mt (TM_FILE): Set to
3559 config/rs6000/tm-rs6000.h.
3560 * config/powerpc/tm-ppc-aix.h: Delete file.
3561 * config/powerpc/aix.mt (TM_FILE): Set to
3562 config/rs6000/tm-rs6000.h.
3563 * config/m68k/tm-linux.h: Delete file.
3564 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3565 * config/i386/tm-linux64.h: Delete file.
3566 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3567 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3568
3569 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3570 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3571 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3572 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3573 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3574 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3575 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3576 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3577 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3578
3579 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3580 gdb_host_cpu.
3581
3582 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3583
3584 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3585 Minor reformatting. Some code factoring.
3586
3587 2004-09-02 Andrew Cagney <cagney@gnu.org>
3588
3589 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3590 * config/vax/tm-nbsd.h: Delete file.
3591 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3592 * config/sparc/tm-vxworks.h: Delete file.
3593 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3594 * config/sparc/tm-nbsd.h: Delete file.
3595 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3596 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3597 * config/sparc/tm-linux.h: Delete file.
3598 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3599 * config/s390/tm-linux.h: Delete file.
3600 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3601 * config/pa/tm-bsd.h: Delete file.
3602 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3603 * config/m68k/tm-obsd.h: Delete file.
3604 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3605 * config/m68k/tm-nbsd.h: Delete file.
3606 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3607 * config/i386/tm-vxworks.h: Delete file.
3608 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3609 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3610 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3611 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3612 * config/i386/tm-nbsd.h: Delete file.
3613 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3614 * config/i386/tm-i386lynx.h: Delete file.
3615 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3616 * config/cris/tm-cris.h: Delete file.
3617
3618 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3619 * configure: Re-generate.
3620 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3621 * config/arm/tm-nbsd.h: Delete file.
3622
3623 * config/powerpc/tm-ppcle-sim.h: Delete.
3624 * config/powerpc/tm-ppcle-eabi.h: Delete.
3625 * config/powerpc/tm-nbsd.h: Delete.
3626 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3627 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3628 tm-ppcle-eabi.h.
3629
3630 * config/i386/nto.mh (NAT_FILE): Delete.
3631 * config/i386/nm-nto.h: Delete.
3632
3633 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3634 * config/m68k/tm-os68k.h: Ditto.
3635 * config/m68k/tm-monitor.h: Ditto.
3636 * config/m68k/tm-cisco.h: Ditto.
3637 * config/m68k/st2000.mt (TM_FILE): Delete.
3638 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3639 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3640 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3641 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3642
3643 * config/m68k/tm-st2000.h: Delete.
3644 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3645 * config/sparc/fbsd.mt (TM_FILE): Delete.
3646 * config/sparc/tm-fbsd.h: Delete.
3647
3648 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3649 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3650 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3651
3652 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3653 GDB_TM_FILE and GDB_XM_FILE.
3654 * gdbarch.c: Re-generate.
3655 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3656 quotes in macro definition.
3657 * configure.in: Re-generate.
3658
3659 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3660 validating architecture methods.
3661 * gdbarch.c: Re-generate.
3662
3663 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3664 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3665 GDB_MULTI_ARCH_PARTIAL.
3666 * gdbarch.h: Re-generate.
3667
3668 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3669 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3670 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3671 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3672 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3673 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3674 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3675 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3676 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3677 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3678 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3679 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3680
3681 2004-09-01 Andrew Cagney <cagney@gnu.org>
3682
3683 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3684 and main_func_highpc.
3685 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3686 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3687 * nlmread.c (nlm_symfile_read): Update.
3688
3689 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3690
3691 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3692 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3693 (find_proc_desc): Remove dead code.
3694
3695 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3696
3697 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3698
3699 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3700
3701 * observer.sh: Add struct so_list declaration.
3702 * Makefile.in: Add dependencies on observer.h for solib.c and
3703 breakpoint.c.
3704 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3705 function.
3706 (_initialize_breakpoint): Register
3707 disable_breakpoints_in_unloaded_shlib as an observer of the
3708 "solib unloaded" observation event.
3709 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3710 call decode_line_1 so unfound breakpoint errors are silent.
3711 * solib.c (update_solib_list): When a solib is discovered to have
3712 been unloaded by the program, notify all observers of the
3713 "solib unloaded" observation event.
3714
3715 2004-09-01 Andrew Cagney <cagney@gnu.org>
3716
3717 * frame.c: Include "objfiles.h".
3718 (inside_main_func): New function.
3719 (get_prev_frame): Use new inside_main_func.
3720 * Makefile.in (frame.o): Update dependencies.
3721 * defs.h (inside_main_func): Delete declaration.
3722 * blockframe.c (inside_main_func): Delete function.
3723
3724 2004-08-31 Jim Blandy <jimb@redhat.com>
3725
3726 * dwarf2read.c (is_vtable_name): New function, based on logic from
3727 read_structure_type, but passing the correct length to strncmp,
3728 and using 'sizeof' instead of 'strlen'.
3729 (read_structure_type): Call it.
3730
3731 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3732
3733 * config/powerpc/aix.mh: Add comment.
3734
3735 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3736
3737 * MAINTAINERS: Add self to Write-After-Approval.
3738
3739 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3740
3741 * MAINTAINERS: Add self to Write-After-Approval.
3742
3743 2004-08-30 Andrew Cagney <cagney@gnu.org>
3744
3745 Fix PR breakpoints/1757.
3746 * infrun.c (struct execution_control_state): Replace
3747 remove_breakpoints_on_following_step with
3748 step_after_step_resume_breakpoint.
3749 (init_execution_control_state): Update.
3750 (handle_inferior_event): For signals, when stepping off a
3751 breakpoint, set step_after_step_resume_breakpoint. When
3752 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3753 (keep_going): Delete code handling
3754 remove_breakpoints_on_following_step.
3755
3756 2004-08-29 David Lecomber <david@streamline-computing.com>
3757
3758 Fix PR gdb/648
3759 * language.h (enum array_ordering): New enum.
3760 * language.h (struct language_defn): New la_array_ordering
3761 attribute.
3762 * language.c (unknown_language_defn, auto_language_defn)
3763 (local_language_defn): Ditto.
3764 * ada-lang.c (ada_language_defn): Ditto.
3765 * c-lang.c (c_language_defn, cplus_language_defn)
3766 (asm_language_defn, minimal_language_defn): Ditto.
3767 * f-lang.c (f_language_defn): Ditto.
3768 * jv-lang.c (java_language_defn): Ditto.
3769 * m2-lang.c (f_language_defn): Ditto.
3770 * objc-lang.c (objc_language_defn): Ditto.
3771 * p-lang.c (pascal_language_defn): Ditto.
3772 * scm-lang.c (scm_language_defn): Ditto.
3773 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3774 oriented large to small in type structure.
3775 * dwarf2read.c (read_array_order): New function.
3776 (read_array_type): Use read_array_order to check row/column
3777 major ordering.
3778
3779 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3780
3781 * target.c (target_resize_to_sections): Check
3782 current_target.to_sections for an old value when updating.
3783
3784 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3785
3786 * procfs.c (dbx_link_bpt_addr): New static global variable.
3787 (dbx_link_shadow_contents): New static global variable.
3788 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3789 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3790 if we just hit it.
3791 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3792 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3793 from run to run.
3794 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3795 after the inferior has been forked.
3796 (remove_dbx_link_breakpoint): New function.
3797 (dbx_link_addr): New function.
3798 (insert_dbx_link_bpt_in_file): New function.
3799 (insert_dbx_link_bpt_in_region): New function.
3800 (insert_dbx_link_breakpoint): New function.
3801 (proc_trace_syscalls_1): New function, extracted from
3802 proc_trace_syscalls.
3803 (proc_trace_syscalls): Replace extract code by call to
3804 proc_trace_syscalls_1.
3805 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3806 is no longer valid.
3807
3808 2004-08-25 Jim Blandy <jimb@redhat.com>
3809
3810 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3811
3812 2004-08-25 Andrew Cagney <cagney@gnu.org>
3813
3814 * infrun.c (struct execution_control_state): Delete field
3815 "stepping_through_sigtramp".
3816 (init_execution_control_state): Do not set same.
3817 (context_switch): Do not pass same to save_infrun_state and
3818 load_infrun_state.
3819 * gdbthread.h (struct thread_info): Delete field
3820 stepping_through_sigtramp.
3821 (save_infrun_state, load_infrun_state): Delete parameter
3822 stepping_through_sigtramp.
3823 * thread.c (load_infrun_state, save_infrun_state): Update.
3824
3825 * infrun.c: Re-indent. Move expression operators to the beginning
3826 of the line. Remove long disabled #if 0 code.
3827
3828 2004-08-24 Andrew Cagney <cagney@gnu.org>
3829
3830 * doublest.h (floatformat_ieee_quad): Rename
3831 floatformat_ia64_quad.
3832 * doublest.c (floatformat_ieee_quad): Rename
3833 floatformat_ia64_quad.
3834 (_initialize_doublest): Update.
3835
3836 2004-08-24 Jim Blandy <jimb@redhat.com>
3837
3838 * dwarf2expr.h (struct dwarf_expr_context): New members
3839 'num_pieces' and 'pieces', for returning the result of an
3840 expression that uses DW_OP_piece.
3841 (struct dwarf_expr_piece): New struct type.
3842 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3843 pieces.
3844 (free_dwarf_expr_context): Free pieces, if any.
3845 (add_piece): New function.
3846 (execute_stack_op): Implement DW_OP_piece.
3847 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3848 expression is a list of pieces, print an error message.
3849 (dwarf2_loc_desc_needs_frame): If the expression yields
3850 pieces, and any piece is in a register, then we need a frame.
3851
3852 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3853 the stack until we've decided what sort of result the evaluation
3854 has produced. Use separate variables, with more specific names.
3855
3856 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3857
3858 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3859 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3860 (arm_netbsd_init_abi_common): Register them.
3861
3862 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3863
3864 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3865
3866 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3867 safe_frame_unwind_memory instead of target_read_memory.
3868
3869 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3870 Reorder includes.
3871 (fetch_register, store_register): Remove prototypes.
3872 (child_resume): Reorganize code and comments such that it is
3873 grouped a bit more logically.
3874 (attach): Explicitly compare errno against 0.
3875 (detach): Likewise. Use perror_with_name instead of
3876 print_sys_errmsg.
3877 * Makefile.in (infptrace.o): Update dependencies.
3878
3879 * ia64-linux-nat.c: Update copyright year.
3880 (fetch_debug_register, store_debug_register)
3881 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3882 PTRACE_TYPE_ARG3.
3883 * config/ia64/nm-linux.h: Update copyright year.
3884 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3885
3886 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3887 from CORE_ADDR to struct frame_info *. Use
3888 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3889 (amd64_linux_sigtramp_p): Adjust for changed signature of
3890 and64_linux_sigtramp_start
3891
3892 * gdb_ptrace.h: GNU/Linux.
3893
3894 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3895 Remove defines.
3896
3897 * infptrace.c: Include "gdb_assert.h".
3898 (PTRACE_XFER_TYPE): Remove define.
3899 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3900 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3901 Tweak comment.
3902 (fetch_inferior_registers, store_inferior_registers): Remove
3903 redundant culry braces. Tweak comment. s/regno/regnum.
3904 * Makefile.in (infptrace.o): Update dependencies.
3905
3906 * configure.in: Change test for return type of ptrace to default
3907 to `long' instead of `int'.
3908 * configure: Regenerate.
3909
3910 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3911
3912 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3913
3914 * configure.in: Check for ttrace function.
3915 * configure, config.in: Regenerate.
3916
3917 * gdb_ptrace.h: New file.
3918 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3919 <sys/ptrace.h>.
3920 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3921 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3922 (attach): Don't define PT_ATTACH.
3923 (detach): Don't define PT_DETACH.
3924 * Makefile.in (gdb_ptrace_h): New variable.
3925 (infptrace.o): Update dependencies.
3926
3927 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3928
3929 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3930 instead of `int' if not already defined.
3931 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3932 PTRACE_TYPE_ARG3.
3933 * infptrace.c (call_ptrace): Revert change that replaced
3934 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3935
3936 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3937
3938 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3939 Remove defines.
3940
3941 * linux-nat.c (kill_inferior): Add missing third and fourth
3942 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3943
3944 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3945 PTRACE_TYPE_RET.
3946
3947 * proc-why.c (proc_prettyfprint_why): Fix format string.
3948
3949 * solib-osf.c (osf_current_sos): Remove unsused label.
3950
3951 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3952 curses headers.
3953 * configure, config.in: Regenerate.
3954 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3955 <ncurses/ncurses.h>.
3956
3957 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3958 * config/nm-nbsd.h: Update copyright year.
3959 (PTRACE_ARG3_TYPE): Remove define.
3960
3961 * sparc-nat.c (fetch_inferior_registers)
3962 (store_inferior_registers, sparc_xfer_wcookie):
3963 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3964
3965 * alphabsd-nat.c (fetch_inferior_registers):
3966 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3967 PTRACE_TYPE_ARG3.
3968 * amd64bsd-nat.c (fetch_inferior_registers)
3969 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3970 PTRACE_TYPE_ARG3.
3971 * armnbsd-nat.c: Update copyright year.
3972 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3973 (store_register, store_regs, store_fp_register, store_fp_regs):
3974 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3975 * hppabsd-nat.c (fetch_inferior_registers)
3976 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3977 PTRACE_TYPE_ARG3.
3978 * i386bsd-nat.c (fetch_inferior_registers)
3979 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3980 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3981 * m68kbsd-nat.c (fetch_inferior_registers)
3982 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3983 PTRACE_TYPE_ARG3.
3984 * m88kbsd-nat.c (fetch_inferior_registers)
3985 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3986 PTRACE_TYPE_ARG3.
3987 * mipsnbsd-nat.c: Update copyright year.
3988 (fetch_inferior_registers, store_inferior_registers):
3989 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3990 * ns32knbsd-nat.c: Update copyright year.
3991 (fetch_inferior_registers, store_inferior_registers):
3992 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3993 * ppcnbsd-nat.c (fetch_inferior_registers):
3994 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3995 PTRACE_TYPE_ARG3.
3996 * ppcobsd-nat.c (fetch_inferior_registers):
3997 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3998 PTRACE_TYPE_ARG3.
3999 * shnbsd-nat.c: Update copyright year.
4000 (fetch_inferior_registers, store_inferior_registers):
4001 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4002 * vaxbsd-nat.c (fetch_inferior_registers)
4003 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4004 PTRACE_TYPE_ARG3.
4005
4006 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4007 PTRACE_TYPE_ARG3.
4008 * infptrace.c (call_ptrace, child_resume, attach, detach)
4009 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4010 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4011 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4012 PTRACE_TYPE_ARG3.
4013
4014 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4015
4016 * defs.h: Remove out-of-date comment.
4017 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4018 [!GETENV_PROVIDED] (getenv): Remove prototype.
4019
4020 * standalone.c: Remove file.
4021 * Makefile.in (standalone.o): Remove dependency.
4022
4023 * i386-linux-nat.c (dummy_sse_values): Remove function and
4024 prototype.
4025 (i386_linux_dr_get): Fix typo in comment.
4026 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4027
4028 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4029
4030 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4031 from declaration.
4032 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4033 from definition.
4034
4035 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4036
4037 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4038 parenthesis in definition.
4039 * configure: Regenerated.
4040
4041 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4042
4043 * PROBLEMS: Mention build/1411.
4044
4045 2004-08-09 Robert Millan <robertmh@gnu.org>
4046
4047 Committed by Nathanael Nerode.
4048 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4049 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4050
4051 2004-08-12 Andrew Cagney <cagney@gnu.org>
4052
4053 * NEWS: Mention fixes in GDB 6.2.1.
4054 * PROBLEMS: Remove mention of mips-irix.
4055
4056 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4057
4058 * config/powerpc/xm-aix.h: Delete.
4059 * config/powerpc/aix.mh (MH_FILE): Remove.
4060 * config/powerpc/aix432.mh (MH_FILE): Remove.
4061
4062 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4063
4064 * config/powerpc/aix.mh: Remove obsolete comment.
4065 * config/powerpc/aix432.mh: Likewise.
4066
4067 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4068
4069 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4070
4071 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4072
4073 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4074 this file is now empty.
4075 * config/xm-aix4.h: Remove, this file is no longer included
4076 anywhere.
4077
4078 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4079
4080 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4081 that file is now empty.
4082 (termdef): Remove prototype, function no longer used.
4083
4084 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4085
4086 * doc/gdbint.texinfo (Host Definition): Remove documentation
4087 for USE_O_NOCTTY, no longer used.
4088 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4089 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4090
4091 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4092
4093 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4094 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4095 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4096
4097 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4098
4099 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4100 instead of FIVE_ARG_PTRACE.
4101
4102 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4103 (new_tty): Use O_NOCTTY unconditionally.
4104
4105 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4106
4107 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4108 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4109 fflush on stdout.
4110
4111 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4112
4113 * xcoff_symfile_finish: Replace last call to xmfree by call
4114 to xfree.
4115
4116 2004-08-10 Andrew Cagney <cagney@gnu.org>
4117
4118 * main.c (captured_main): Delete call to init_malloc.
4119 * defs.h (init_malloc): Delete declaration.
4120 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4121 (init_malloc): Delete functions.
4122
4123 * defs.h (xmfree): Delete.
4124 * utils.c (xmfree): Delete function.
4125 (xfree): Inline calls to xmfree and mfree.
4126 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4127 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4128 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4129 * somread.c (som_symfile_finish): Ditto.
4130 * objfiles.c (allocate_objfile, free_objfile):
4131 * nlmread.c (nlm_symfile_finish): Ditto.
4132 * hpread.c (hpread_symfile_finish): Ditto.
4133 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4134 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4135 * coffread.c (coff_symfile_finish): Ditto.
4136
4137 * defs.h (xmcalloc): Delete declaration.
4138 * utils.c (xmcalloc): Delete.
4139 (xcalloc): Inline calls to xmcalloc and mcalloc.
4140 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4141 xcalloc and xfree.
4142 * symtab.c (create_demangled_names_hash): Ditto.
4143
4144 * defs.h (xmrealloc): Delete.
4145 * utils.c (xmrealloc): Delete.
4146 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4147 * symmisc.c (extend_psymbol_list): Use xrealloc.
4148 * source.c (find_source_lines): Ditto.
4149 * hpread.c (hpread_lookup_type): Ditto.
4150 * dbxread.c (add_bincl_to_list): Ditto.
4151
4152 * utils.c (xmmalloc): Delete.
4153 (xmalloc): Inline xmmalloc and mmalloc calls.
4154 (msavestring): Use xmalloc.
4155 * defs.h (xmmalloc): Delete declaration.
4156 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4157 xmmalloc.
4158 * symmisc.c (extend_psymbol_list): Ditto.
4159 * symfile.c (init_psymbol_list): Ditto.
4160 * source.c (find_source_lines): Ditto.
4161 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4162 * elfread.c (elf_symtab_read): Ditto.
4163 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4164 * coffread.c (coff_symfile_init): Ditto.
4165
4166 2004-08-10 David Carlton <carlton@bactrian.org>
4167
4168 * MAINTAINERS: Remove David Carlton from c++ testsuite
4169 maintainers.
4170
4171 2004-08-10 Jerome Guitton <guitton@gnat.com>
4172
4173 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4174 print a line feed before the prompt.
4175
4176 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4177
4178 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4179
4180 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4181
4182 General cleanup of the AIX xm include file:
4183 * config/xm-aix4.h (fd_set): Remove undefine.
4184 Remove include of <sys/select.h>.
4185 (HAVE_TERMIO): Remove define.
4186 (USG): Likewise.
4187 (NULL): Remove redefine.
4188 (alloca): Remove #pragma.
4189 (vfork): Remove define.
4190 (termdef): Remove.
4191 (SIGWINCH_HANDLER): Remove.
4192 (SIGWINCH_HANDLER_BODY): Remove.
4193
4194 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4195
4196 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4197 GDB_OSABI_OPENBSD_ELF.
4198
4199 2004-08-07 Robert Millan <robertmh@gnu.org>
4200
4201 * bsd-kvm.c: Check for nlist.h before including it.
4202
4203 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4204
4205 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4206 sigcontext' offset consistency checks for ancient BSD.
4207
4208 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4209
4210 * configure.in: Check for <sys/types.h>. Check return and
4211 argument types of ptrace.
4212 * configure, config.in: Regenerate.
4213
4214 2004-08-09 Jim Blandy <jimb@redhat.com>
4215
4216 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4217 rs6000_register_sim_regno): Doc fixes.
4218
4219 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4220
4221 * mips-tdep.c: Include "floatformat.h".
4222 (n32n64_floatformat_always_valid): New function.
4223 (floatformat_n32n64_long_double_big): New constant.
4224 (mips_gdbarch_init): Set size and format of long double
4225 for N32 and N64 ABIs.
4226 * Makefile.in (mips-tdep.o): Update dependencies.
4227
4228 2004-08-08 Andrew Cagney <cagney@gnu.org>
4229
4230 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4231 print. Improve script's error messages.
4232 * gdbarch.h: Re-generate.
4233
4234 * gdbarch.sh (pformat): New function.
4235 (float_format, double_format, long_double_format): List with bit
4236 members. Use pformat when printing.
4237 * gdbarch.c, gdbarch.h: Re-generate.
4238
4239 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4240
4241 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4242 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4243 (ppcnbsd_supply_pcb): New function.
4244 (_initialize_ppcnbsd_nat): New prototype and function.
4245 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4246 (LOADLIBES): New variable.
4247 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4248
4249 2004-08-08 Andrew Cagney <cagney@gnu.org>
4250
4251 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4252 (builtin_type_ieee_double, builtin_type_ia64_quad)
4253 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4254 BE/LE floating-point types.
4255 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4256 (builtin_type_ieee_double, builtin_type_ia64_quad)
4257 (builtin_type_ia64_spill): Declare.
4258 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4259 (floatformat_ieee_double, floatformat_arm_ext)
4260 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4261 of LE/BE floatformats.
4262 * doublest.h: (struct floatformat, floatformat_ieee_single)
4263 (floatformat_ieee_double, floatformat_arm_ext)
4264 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4265
4266 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4267
4268 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4269
4270 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4271 instead of regcache_raw_supply when storing the registers.
4272
4273 * i386gnu-nat.c: Update copyright year.
4274 (gnu_store_registers): Don't use deprecated_registers and
4275 deprecated_registers_valid. Use regcache_valid_p and
4276 regcache_raw_supply instead.
4277
4278 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4279 frame_pc_unwind.
4280
4281 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4282 variables. Incapitalized "process".
4283
4284 * configure.in: Add cursesX to the list of possible curses libs.
4285 Add cursesX.h to the list of possible curses headers.
4286 * configure, config.in: Regenerate.
4287
4288 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4289
4290 * configure.in: Test for struct lwp in <sys/lwp.h>.
4291 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4292 the offset of l_addr in struct lwp.
4293
4294 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4295
4296 * bsd-kvm.c: Include "gdbcore.h"
4297 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4298
4299 2004-08-07 Andrew Cagney <cagney@gnu.org>
4300
4301 * gdbtypes.c (build_flt, build_complex): New functions.
4302 (gdbtypes_post_init): Use.
4303
4304 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4305
4306 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4307 through to builtin_type_uint128.
4308
4309 * c-exp.y: Use builtin_type function to obtain builtin types.
4310
4311 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4312 builtin_uint128.
4313 * gdbtypes.c (gdbtypes_post_init): Update.
4314 (build_gdbtypes): Move initialization of builtin_type_int0
4315 through to builtin_type_uint128 from here ...
4316 (_initialize_gdbtypes): ... to here.
4317 * d10v-tdep.c (d10v_register_type): Update.
4318
4319 * doublest.c: Update copyright.
4320 (floatformat_from_length): Call error when floatformat is NULL.
4321 (extract_floating_by_length): Remove NULL fmt check.
4322 (store_floating_by_length): Ditto.
4323
4324 2004-08-07 Andrew Cagney <cagney@gnu.org>
4325
4326 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4327 that the register is valid.
4328
4329 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4330
4331 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4332 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4333 struct frame_info *. Use safe_frame_unwind_memory instead of
4334 deprecated_read_memory_nobpt.
4335 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4336 changed signature of i386_linux_sigtramp_start and
4337 i386_linux_rt_sigtramp_start.
4338
4339 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4340 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4341 instead of deprecated_read_memory_nobpt.
4342 (i386nbsd_sigtramp_p): Adjust for changed signature of
4343 i386nbsd_sigtramp_offset.
4344
4345 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4346 safe_frame_unwind_memory instead of target_read_memory.
4347
4348 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4349 !NO_SYS_FILE.
4350 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4351 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4352 (_initialize_kernel_u_addr): Remove prototype and function.
4353 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4354 !NO_SYS_FILE.
4355 * xcoffread.c: Likewise.
4356
4357 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4358
4359 * vax-nat.c: New file.
4360 * vaxbsd-nat.c: Tweak comment.
4361 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4362 vaxnbsd-tdep.c.
4363 (vax-nat.o): New dependency.
4364 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4365 (vax-*-ultrix2*): Remove.
4366 * config/vax/vax.mh: New file.
4367 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4368 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4369 (vax_register_u_addr): New prototype.
4370 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4371 * config/vax/vaxult2.mh: Remove file.
4372 * config/vax/vaxult.mh: Remove file.
4373 * config/vax/vaxbsd.mh: Remove file.
4374 * config/vax/vax.mt (TM_FILE): Remove.
4375 * config/vax/tm-vaxbsd.h: Remove file.
4376
4377 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4378
4379 * aix-thread.c (get_signaled_thread): New function.
4380 (iter_trap): Delete, no longer used.
4381 (iter_tid): New function.
4382 (pd_update): Find the thread that received the SIGTRAP signal
4383 by first locating the kernel thread, and then finding its
4384 associated thread.
4385
4386 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4387
4388 * lin-lwp.c (child_wait): Continue inferior after processing
4389 PTRACE_EVENT_CLONE event.
4390
4391 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4392
4393 * MAINTAINERS: Add self to Write-After-Approval.
4394
4395 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4396
4397 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4398 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4399
4400 2004-08-05 Andrew Cagney <cagney@gnu.org>
4401
4402 * config/xm-sysv4.h: Delete file.
4403 * config/mips/xm-irix5.h: Delete file.
4404 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4405 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4406 * config/ia64/xm-aix.h: Delete file.
4407 * config/ia64/aix.mh (XM_FILE): Delete.
4408 * config/pa/xm-hppah.h: Delete file.
4409 * config/pa/hpux11w.mh (XM_FILE): Delete.
4410 * config/pa/hpux11.mh (XM_FILE): Delete.
4411 * config/pa/hpux1020.mh (XM_FILE): Delete.
4412 * config/pa/hppahpux.mh (XM_FILE): Delete.
4413
4414 * config/alpha/xm-alphalinux.h: Delete file.
4415 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4416 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4417 * config/alpha/xm-alphaosf.h: Delete file.
4418 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4419 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4420 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4421 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4422
4423 * config/i386/xm-i386v.h: Delete file.
4424 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4425 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4426 * config/i386/xm-i386sco.h: Delete file.
4427 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4428 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4429 * config/i386/xm-i386v4.h: Delete file.
4430 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4431 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4432 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4433 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4434
4435 * config/vax/xm-vax.h: Delete file.
4436 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4437 * config/vax/xm-vaxult2.h: Delete file.
4438 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4439 * config/vax/vaxult2.mh (XM_FILE): Delete.
4440 * config/vax/xm-vaxult.h: Delete file.
4441 * config/vax/vaxult.mh (XM_FILE): Delete.
4442 * config/vax/xm-vaxbsd.h: Delete file.
4443 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4444
4445 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4446 * gdbarch.h, gdbarch.c: Re-generate.
4447 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4448 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4449 * frame.h: Delete deprecated_read_fp from comments.
4450 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4451 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4452
4453 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4454
4455 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4456 trampoline in OpenBSD 3.5-current.
4457
4458 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4459 SSE registers.
4460
4461 * Makefile.in: Remove embedded page breaks.
4462
4463 2004-08-04 Jim Blandy <jimb@redhat.com>
4464
4465 * regcache.c (regcache_raw_read): Assert that, after calling
4466 target_fetch_registers, the register we're reading is cached.
4467
4468 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4469 a call to 'internal_error', with a more helpful error message.
4470 * rs6000-tdep.c (e500_pseudo_register_read,
4471 e500_pseudo_register_write, rs6000_store_return_value): Same.
4472
4473 2004-08-04 Andrew Cagney <cagney@gnu.org>
4474
4475 * Makefile.in: Update dependencies.
4476
4477 2004-08-04 Jim Blandy <jimb@redhat.com>
4478
4479 Change the layout of the PowerPC E500 raw register cache to allow
4480 the lower 32-bit halves of the GPRS to be their own raw registers,
4481 not pseudoregisters.
4482 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4483 add ppc_ev0_upper_regnum flag.
4484 * rs6000-tdep.c: #include "reggroups.h".
4485 (spe_register_p): Recognize the ev upper half registers as SPE
4486 registers.
4487 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4488 registers.
4489 (e500_move_ev_register): New function.
4490 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4491 vector registers are the pseudo-registers now, formed by splicing
4492 together the gprs and the upper-half registers.
4493 (e500_register_reggroup_p): New function.
4494 (P): Macro deleted.
4495 (P8, A4): New macro.
4496 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4497 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4498 macros.
4499 (registers_e500): Rearrange register set so that the raw register
4500 set contains 32-bit GPRs and upper-half registers, and the SPE
4501 vector registers become pseudo-registers.
4502 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4503 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4504 register numbers are now the same for the E500 as they are for
4505 other PowerPC variants. Register e500_register_reggroup_p as the
4506 register group function for the E500.
4507 * Makefile.in (rs6000-tdep.o): Update dependencies.
4508
4509 Adapt PPC E500 native support to the new raw regcache layout.
4510 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4511 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4512 (fetch_spe_register, store_spe_register): Handle fetching/storing
4513 all the SPE registers at once, if regno == -1. These now take
4514 over the job of fetch_spe_registers and store_spe_registers.
4515 (fetch_spe_registers, store_spe_registers): Deleted.
4516 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4517 unconditionally; they're always raw. Fetch/store SPE upper half
4518 registers, if present, instead of ev registers.
4519 (fetch_register, store_register): Remove sanity checks: gprs are
4520 never pseudo-registers now, so we never need to even mention any
4521 registers that are ever pseudoregisters.
4522
4523 Use a fixed register numbering when communicating with the PowerPC
4524 simulator.
4525 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4526 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4527 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4528 New functions.
4529 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4530 init_sim_regno_table.
4531 * Makefile.in (gdb_sim_ppc_h): New variable.
4532 (rs6000-tdep.o): Update dependencies.
4533
4534 2004-08-02 Andrew Cagney <cagney@gnu.org>
4535
4536 * cris-tdep.c (cris_register_size): Restore function, still used
4537 locally.
4538
4539 * gdbarch.sh (deprecated_target_read_fp)
4540 (deprecated_frame_locals_address, deprecated_frame_args_address)
4541 (deprecated_frame_chain_valid, deprecated_frame_chain)
4542 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4543 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4544 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4545 * gdbarch.h, gdbarch.c: Re-generate.
4546 * regcache.c (deprecated_read_fp): Do not call
4547 DEPRECATED_TARGET_READ_FP_P.
4548 * infcmd.c (default_print_registers_info): Do not call
4549 DEPRECATED_DO_REGISTERS_INFO.
4550 * frame-base.c (default_frame_locals_address): Do not call
4551 DEPRECATED_FRAME_LOCALS_ADDRESS.
4552 (default_frame_args_address): Do not call
4553 DEPRECATED_FRAME_ARGS_ADDRESS.
4554
4555 * gdbarch.sh (deprecated_register_raw_size)
4556 (deprecated_register_virtual_size:int): Delete.
4557 * gdbarch.h, gdbarch.c: Re-generate.
4558 * cris-tdep.c (cris_register_size): Delete.
4559 (cris_gdbarch_init): Update.
4560 * alpha-tdep.c (alpha_register_raw_size)
4561 (alpha_register_virtual_size): Delete.
4562 (alpha_gdbarch_init): Update.
4563
4564 * gdbarch.sh (deprecated_register_virtual_type)
4565 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4566 (deprecated_dummy_write_sp): Delete.
4567 * gdbarch.h, gdbarch.c: Re-generate.
4568
4569 * gdbarch.sh (deprecated_register_bytes): Delete.
4570 * gdbarch.h, gdbarch.c: Re-generate.
4571 * regcache.c (deprecated_register_bytes): New function.
4572 * regcache.h (deprecated_register_bytes): Declare.
4573 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4574 * v850-tdep.c (v850_gdbarch_init): Update.
4575 * sh64-tdep.c (sh64_gdbarch_init): Update.
4576 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4577 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4578 * mcore-tdep.c (mcore_gdbarch_init): Update.
4579 * cris-tdep.c (cris_gdbarch_init): Update.
4580 * arm-tdep.c (arm_gdbarch_init): Update.
4581 * remote.c (init_remote_state): Update.
4582 * remote-vx.c (vx_prepare_to_store): Update.
4583 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4584 * irix5-nat.c (fetch_core_registers): Update.
4585 * cris-tdep.c (cris_register_bytes_ok): Update.
4586 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4587
4588 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4589 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4590 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4591 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4592 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4593 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4594 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4595 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4596 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4597 with mips_insn16 and mips_insn32.
4598
4599 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4600 * rs6000-tdep.c (rs6000_push_dummy_call)
4601 (rs6000_extract_return_value): Use register_size.
4602 * xstormy16-tdep.c (xstormy16_get_saved_register)
4603 (xstormy16_extract_return_value): Ditto.
4604 * valops.c (value_assign): Ditto.
4605 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4606 * v850-tdep.c (v850_extract_return_value): Ditto.
4607 * tracepoint.c (collect_symbol): Ditto.
4608 * target.c (debug_print_register): Ditto.
4609 * stack.c (frame_info): Ditto.
4610 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4611 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4612 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4613 (store_register_using_P): Ditto.
4614 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4615 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4616 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4617 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4618 * regcache.c (deprecated_read_register_bytes)
4619 (deprecated_write_register_bytes, read_register)
4620 (write_register): Ditto.
4621 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4622 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4623 * monitor.c (monitor_supply_register, monitor_fetch_register)
4624 (monitor_store_register): Ditto.
4625 * mn10300-tdep.c (mn10300_pop_frame_regular)
4626 (mn10300_print_register): Ditto.
4627 * mipsv4-nat.c (fill_fpregset): Ditto.
4628 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4629 (mips64_fill_fpregset): Ditto.
4630 * mi/mi-main.c (register_changed_p, get_register)
4631 (mi_cmd_data_write_register_values): Ditto.
4632 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4633 * irix5-nat.c (fill_gregset, fetch_core_registers):
4634 * infrun.c (write_inferior_status_register): Ditto.
4635 * infptrace.c (fetch_register, store_register): Ditto.
4636 * infcmd.c (default_print_registers_info): Ditto.
4637 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4638 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4639 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4640 * hpux-thread.c (hpux_thread_fetch_registers)
4641 (hpux_thread_store_registers): Ditto.
4642 * hppah-nat.c (store_inferior_registers, fetch_register):
4643 * findvar.c (value_from_register): Ditto.
4644 * dve3900-rom.c (fetch_bitmapped_register):
4645 * cris-tdep.c (cris_gdbarch_init): Ditto.
4646 * alpha-tdep.h: Ditto.
4647 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4648
4649 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4650 DEPRECATED_REGISTER_RAW_SIZE from comments.
4651 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4652 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4653 DEPRECATED_REGISTER_RAW_SIZE.
4654 * findvar.c (value_of_register): Simplify by assuming that the
4655 registers raw and virtual sizes are identical.
4656 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4657 comment.
4658 * arch-utils.c (generic_register_size): Simplify by assuming
4659 register_type.
4660
4661 * regcache.c (legacy_read_register_gen, real_register)
4662 (legacy_write_register_gen): Delete, not used.
4663
4664 * regcache.c (struct regcache_descr): Delete legacy_p.
4665 (init_legacy_regcache_descr): Delete function.
4666 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4667 Do not use deprecated register functions.
4668 (regcache_raw_read, deprecated_write_register_gen):
4669 (deprecated_read_register_gen, regcache_raw_write): Delete code
4670 predicated on legacy_p.
4671 (register_size): Delete check against register raw size.
4672
4673 * cris-tdep.c (cris_register_type): Replace
4674 cris_register_virtual_type.
4675 (cris_gdbarch_init): Update, set register_type.
4676
4677 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4678 * gdbarch.h, gdbarch.c: Re-generate.
4679 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4680 (arm_gdbarch_init) Do not set frameless function invocation.
4681 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4682 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4683 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4684 (frv_gdbarch_init): Do not set frameless function invocation.
4685 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4686 * sh-tdep.c (sh_gdbarch_init): Ditto.
4687 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4688 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4689 * avr-tdep.c (avr_gdbarch_init): Ditto.
4690
4691 * blockframe.c (legacy_frame_chain_valid): Delete function.
4692
4693 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4694 and pc. Update comments.
4695 (pc_in_dummy_frame): Delete function.
4696 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4697 use the "id".
4698 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4699 call_hi, top and pc, use the id.
4700 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4701
4702 * dummy-frame.c: Include "gdb_string.h".
4703 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4704 (generic_save_dummy_frame_tos): Delete.
4705 (dummy_frame_push): New function, replaces above.
4706 * dummy-frame.h: Update copyright.
4707 (dummy_frame_push): Declare.
4708 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4709 (generic_save_call_dummy_addr): Delete declarations.
4710 * infcall.c: Include "dummy-frame.h".
4711 (call_function_by_hand): Add locals caller_regcache,
4712 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4713 with call to frame_save_as_regcache plus cleanup. Delete calls to
4714 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4715 Move clear_proceed_status to just before the resume, add call to
4716 dummy_frame_push (discard cleanup).
4717 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4718 (dummy-frame.o): Add $(gdb_string_h).
4719
4720 2004-08-01 Andrew Cagney <cagney@gnu.org>
4721
4722 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4723 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4724 * dummy-frame.c (find_dummy_frame): Delete.
4725 (struct dummy_frame_cache, dummy_frame_sniffer)
4726 (dummy_frame_prev_register, dummy_frame_this_id)
4727 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4728 frame unwinder using a dummy_frame_cache.
4729
4730 2004-08-01 Andrew Cagney <cagney@gnu.org>
4731
4732 * frame.h (frame_save_as_regcache): Declare.
4733 * frame.c (frame_save_as_regcache): New function.
4734 (do_frame_read_register): Replace do_frame_unwind_register.
4735 (frame_pop): Use frame_save_as_regcache.
4736 * dummy-frame.c (generic_push_dummy_frame): Use
4737 frame_save_as_regcache.
4738
4739 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4740
4741 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4742 file as included until we record the first line in the linetable.
4743
4744 2004-08-01 Andrew Cagney <cagney@gnu.org>
4745
4746 * frame.h (deprecated_pop_dummy_frame)
4747 (deprecated_read_register_dummy)
4748 (deprecated_generic_find_dummy_frame): Delete.
4749 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4750 (deprecated_read_register_dummy)
4751 (deprecated_find_dummy_frame_regcache)
4752 (discard_innermost_dummy)
4753 (deprecated_pop_dummy_frame): Delete.
4754 (dummy_frame_this_id): Simplify.
4755 (struct dummy_frame): Delete "fp" and "sp".
4756 (find_dummy_frame): Simplify.
4757 (generic_push_dummy_frame): Do not set "fp" or "sp".
4758 (fprint_dummy_frames): Do not print "fp" and "sp"
4759
4760 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4761
4762 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4763 (struct i386_insn): New structure.
4764 (i386_match_insn): New function.
4765 (i386_frame_setup_skip_insns): New variable.
4766 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4767 array i386_frame_setup_insns of instructions that should be
4768 skipped inside the frame setup sequence.
4769
4770 2004-08-01 Andrew Cagney <cagney@gnu.org>
4771
4772 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4773 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4774 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4775 * stack.c (frame_info): Delete references to
4776 DEPRECATED_FRAME_INIT_SAVED_REGS and
4777 deprecated_get_frame_saved_regs.
4778 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4779 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4780 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4781 (frame_unwind_register_signed)
4782 (frame_unwind_register_unsigned)
4783 (frame_unwind_unsigned_register): Use register_size.
4784 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4785 (deprecated_frame_xmalloc_with_cleanup)
4786 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4787 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4788
4789 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4790 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4791 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4792 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4793
4794 * infcall.c (call_function_by_hand): Do not use
4795 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4796 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4797 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4798 DEPRECATED_STACK_ALIGN.
4799
4800 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4801
4802 Committed by Andrew Cagney.
4803 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4804
4805 2004-08-01 Andrew Cagney <cagney@gnu.org>
4806
4807 * mips-tdep.c (mips16_frame_cache)
4808 (mips16_frame_this_id, mips16_frame_prev_register)
4809 (mips16_frame_unwind, mips16_frame_sniffer)
4810 (mips16_frame_base_address, mips16_frame_base)
4811 (mips16_frame_base_sniffer, mips32_frame_cache)
4812 (mips32_frame_this_id, mips32_frame_prev_register)
4813 (mips32_frame_unwind, mips32_frame_sniffer)
4814 (mips32_frame_base_address, mips32_frame_base)
4815 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4816 separate heuristic mips16 and mips32 unwinders.
4817 (mips_stub_frame_cache, mips_stub_frame_this_id)
4818 (mips_stub_frame_prev_register)
4819 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4820 (mips_stub_frame_base_address, mips_stub_frame_base)
4821 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4822 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4823 match true mdebug frames.
4824 (non_heuristic_proc_desc): Add forward declaration.
4825
4826 2004-08-01 Andrew Cagney <cagney@gnu.org>
4827
4828 * config/mips/tm-irix6.h: Delete file.
4829 * config/mips/tm-irix5.h: Delete file.
4830 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4831 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4832
4833 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4834 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4835 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4836 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4837 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4838 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4839 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4840 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4841 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4842 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4843 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4844 (TARGET_SIGNAL_RAW_VALUES): Delete.
4845 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4846 Delete.
4847 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4848 (TARGET_HW_WATCH_LIMIT): Delete.
4849 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4850 * minimon.h: Delete file.
4851
4852 * trad-frame.c (trad_frame_get_this_base)
4853 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4854 functions.
4855 * trad-frame.h (trad_frame_set_this_base)
4856 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4857
4858 2004-07-31 Andrew Cagney <cagney@gnu.org>
4859
4860 * trad-frame.c (trad_frame_get_prev_register): Rename
4861 trad_frame_get_prev_register.
4862 * vax-tdep.c (vax_frame_prev_register): Update.
4863 * trad-frame.h: Update.
4864 * trad-frame.c (trad_frame_get_register): Update.
4865 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4866 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4867 Update.
4868 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4869 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4870 Update.
4871 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4872 Update.
4873 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4874 Update.
4875 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4876 Update.
4877 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4878 Update.
4879 * s390-tdep.c (s390_frame_prev_register)
4880 (s390_stub_frame_prev_register)
4881 (s390_sigtramp_frame_prev_register): Update.
4882 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4883 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4884 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4885 * m88k-tdep.c (m88k_frame_prev_register)
4886 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4887 * m32r-tdep.c (m32r_frame_prev_register): Update.
4888 * hppa-tdep.c (hppa_frame_prev_register_helper)
4889 * frv-tdep.c (frv_frame_prev_register): Update.
4890 * d10v-tdep.c (d10v_frame_prev_register): Update.
4891 * cris-tdep.c (cris_frame_prev_register): Update.
4892 * avr-tdep.c (avr_frame_prev_register): Update.
4893 * arm-tdep.c (arm_prologue_prev_register)
4894 (arm_sigtramp_prev_register): Update.
4895
4896 2004-07-31 Andrew Cagney <cagney@gnu.org>
4897
4898 * frame.h (legacy_saved_regs_unwind)
4899 (legacy_frame_chain_valid, legacy_frame_p)
4900 (enum frame_type): Delete UNKNOWN_FRAME.
4901 * dummy-frame.c (dummy_frame_this_id): Simplify.
4902 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4903 * frame.c (struct frame_info): Delete the field "type".
4904 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4905 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4906 (legacy_saved_regs_unwind, legacy_frame_p)
4907 (frame_type_from_pc): Delete.
4908 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4909 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4910
4911 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4912
4913 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4914 indentation.
4915
4916 * mips-nat.c: Remove file.
4917 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4918 (mips-nat.o): Remove dependency.
4919
4920 * infptrace.c: Update copyright year.
4921 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4922 explicitly setting the buffer to all zeroes.
4923
4924 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4925 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4926
4927 2004-07-30 Andrew Cagney <cagney@gnu.org>
4928
4929 * GDB 6.2 released from gdb_6_2-branch.
4930
4931 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4932
4933 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4934
4935 * exec.c (exec_file_attach):
4936 * nto-tdep.c (nto_find_and_open_solib):
4937 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4938 * solib.c (solib_open):
4939 * somsolib.c (som_solib_sizeof_symbol_table):
4940 * source.c (is_regular_file, openp, open_source_file):
4941 * symfile.c (symfile_bfd_open):
4942 * wince.c (upload_to_device): Differentiate between the search for
4943 binary and source files.
4944
4945 2004-07-30 Andrew Cagney <cagney@gnu.org>
4946
4947 * complaints.c (_initialize_complaints): Pass NULL to
4948 add_setshow_zinteger_cmd for help_doc.
4949 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4950
4951 2004-07-30 Andrew Cagney <cagney@gnu.org>
4952
4953 Fix PR i18n/761.
4954 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4955 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4956 $(PACKAGE).pot and update-po.
4957 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4958 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4959 (update-po): New rules.
4960 (localedir): Define using autoconf.
4961 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4962 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4963 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4964 * configure.in: Generate CATALOGS and LINGUAS from contents of
4965 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4966 * configure: Re-generate.
4967 * po/gdbtext: New file
4968
4969 2004-07-30 Jerome Guitton <guitton@gnat.com>
4970
4971 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4972 order.
4973
4974 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4975
4976 * dwarf2read.c (read_file_scope): Set producer if attribute
4977 present.
4978 (struct dwarf2_cu): Added new member producer.
4979
4980 2004-07-30 Jerome Guitton <guitton@gnat.com>
4981
4982 * inflow.c (kill_command): release file handles in BFD.
4983 * exec.c (exec_file_attach): Ditto.
4984 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4985
4986 2004-07-29 Andrew Cagney <cagney@gnu.org>
4987
4988 * PROBLEMS (mips-irix): Note that it is broken.
4989
4990 2004-07-29 Andrew Cagney <cagney@gnu.org>
4991
4992 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4993 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4994
4995 * config/xm-nbsd.h: Delete file.
4996 * config/arm/xm-nbsd.h: Delete file.
4997 * config/i386/xm-nbsd.h: Delete file.
4998 * config/ns32k/xm-nbsd.h: Delete file.
4999 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5000 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5001 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5002 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5003 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5004
5005 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5006 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5007 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5008 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5009 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5010 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5011
5012 * config/powerpc/xm-linux.h: Delete empty file.
5013 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5014 * config/powerpc/linux.mh (XM_FILE): Delete.
5015 * config/m68k/xm-linux.h: Delete empty file.
5016 * config/m68k/linux.mh (XM_FILE): Delete.
5017 * config/ia64/xm-linux.h: Delete empty file.
5018 * config/ia64/linux.mh (XM_FILE): Delete.
5019 * config/arm/xm-linux.h: Delete empty file.
5020 * config/arm/linux.mh (XM_FILE): Delete.
5021
5022 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5023 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5024 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5025 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5026 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5027 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5028 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5029 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5030
5031 * config/m68k/xm-m68k.h: Delete file.
5032 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5033 copyright.
5034 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5035 * config/pa/xm-linux.h: Delete empty file.
5036 * config/pa/linux.mh (XM_FILE): Delete.
5037 * config/i386/xm-i386.h: Delete empty file.
5038 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5039 "i386/xm-i386.h".
5040 * config/i386/obsdaout.mh (XM_FILE): Delete.
5041 * config/i386/obsd64.mh (XM_FILE): Delete.
5042 * config/i386/fbsd64.mh (XM_FILE): Delete.
5043 * config/i386/nto.mh (XM_FILE): Delete.
5044 * config/i386/obsd.mh (XM_FILE): Delete.
5045 * config/i386/linux64.mh (XM_FILE): Delete.
5046 * config/i386/linux.mh (XM_FILE): Delete.
5047 * config/i386/i386sol2.mh (XM_FILE): Delete.
5048 * config/i386/i386gnu.mh (XM_FILE): Delete.
5049 * config/i386/fbsd.mh (XM_FILE): Delete.
5050 * config/i386/nbsd64.mh (XM_FILE): Delete.
5051
5052 2004-07-29 Andrew Cagney <cagney@gnu.org>
5053
5054 * config/pa/xm-linux.h: Do not include "floatformat.h".
5055 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5056 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5057 * config/i386/xm-i386.h: Do not include "floatformat.h".
5058 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5059 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5060 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5061 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5062 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5063 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5064 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5065 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5066 * configure, config.in: Regenerate.
5067 * configure.host (gdb_host_float_format, gdb_host_double_format)
5068 (gdb_host_long_double_format): Set according to the host.
5069
5070 2004-07-29 Andrew Cagney <cagney@gnu.org>
5071
5072 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5073
5074 2004-07-28 Andrew Cagney <cagney@gnu.org>
5075
5076 * PROBLEMS: Mention threads/1650.
5077 * NEWS: Mention the NPTL fix.
5078
5079 2004-07-28 Andrew Cagney <cagney@gnu.org>
5080
5081 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5082 (add_setshow_cmd_full): Make static.
5083 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5084 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5085 * cli/cli-decode.c (add_setshow_filename_cmd)
5086 (add_setshow_string_cmd): New functions.
5087 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5088 * mips-tdep.c (_initialize_mips_tdep): Update.
5089 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5090 * cli/cli-logging.c (_initialize_cli_logging): Update.
5091 * complaints.c (_initialize_complaints): Update.
5092 * remote.c (_initialize_remote): Update.
5093
5094 2004-07-28 Andrew Cagney <cagney@gnu.org>
5095
5096 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5097 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5098 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5099 print parameters. Make string parameters constant.
5100 * command.h: Update. Update copyright.
5101 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5102 * observer.c (_initialize_observer): Ditto.
5103 * frame.c (_initialize_frame): Ditto.
5104 * complaints.c (_initialize_complaints): Ditto.
5105 * maint.c (_initialize_maint_cmds): Ditto.
5106 * target.c (initialize_targets): Ditto.
5107 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5108 * infcall.c (_initialize_infcall): Ditto.
5109 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5110 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5111 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5112 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5113 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5114
5115 2004-07-28 Andrew Cagney <cagney@gnu.org>
5116
5117 * gdbtypes.c (lookup_primitive_typename): Delete function.
5118 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5119 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5120 * gdbtypes.c (lookup_typename): Ditto.
5121 * f-exp.y (yylex): Ditto.
5122 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5123
5124 * scm-lang.c (c_builtin_types): Delete extern declaration.
5125 (scm_language_defn): Replace
5126 string_char_type and primitive_type_vector with
5127 la_language_arch_info.
5128 * jv-lang.c (java_language_defn): Replace
5129 string_char_type and primitive_type_vector with
5130 la_language_arch_info.
5131 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5132 c_builtin_types in comment.
5133 * c-lang.h (struct language_arch_info): Declare opaque.
5134 (c_language_arch_info): Declare.
5135 (c_builtin_types): Delete declaration.
5136 * c-lang.c (c_language_arch_info): Set string_char_type to
5137 builtin_char, not builtin_true_char. Make global.
5138 (c_builtin_types): Delete array.
5139 (asm_language_defn, minimal_language_defn): Replace
5140 string_char_type and primitive_type_vector with
5141 la_language_arch_info.
5142
5143 2004-07-28 Andrew Cagney <cagney@gnu.org>
5144
5145 * gdbtypes.h (struct builtin_type): Rename true_char to
5146 builtin_true_char.
5147 * gdbtypes.c (gdbtypes_post_init): Update.
5148 * c-lang.c (arch_info): New function.
5149 (enum c_primitive_types): New enum.
5150 (c_language_defn): Instead of string_char_type and
5151 primitive_type_vector set la_language_arch_info.
5152
5153 2004-07-28 Andrew Cagney <cagney@gnu.org>
5154
5155 * language.h (struct language_arch_info): Fix typo
5156 s/primative/primitive/.
5157 * gdbtypes.c (lookup_primitive_typename): Ditto.
5158 * language.c (language_lookup_primitive_type_by_name)
5159 (unknown_language_arch_info): Ditto.
5160
5161 2004-07-27 Andrew Cagney <cagney@gnu.org>
5162
5163 * defs.h (enum language): Add nr_languages.
5164 * language.h (struct language_arch_info): Define.
5165 (struct language_defn): Add la_language_arch_info.
5166 (language_lookup_primative_type_by_name): Declare.
5167 (language_string_char_type): Declare.
5168 * language.c (_initialize_language, language_gdbarch_post_init)
5169 (struct language_gdbarch, language_gdbarch_data): Implement
5170 per-architecture language information.
5171 (unknown_language_arch_info, language_string_char_type)
5172 (language_lookup_primative_type_by_name): New functions.
5173 (unknown_language_defn, auto_language_defn)
5174 (local_language_defn): Set la_language_arch_info to
5175 unknown_language_arch_info.
5176 (unknown_builtin_types): Delete.
5177 * gdbtypes.c (lookup_primitive_typename): Use
5178 language_lookup_primative_type_by_name.
5179 (create_string_type): Use language_string_char_type.
5180 * values.c (value_from_string): Use language_string_char_type.
5181 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5182 * p-lang.c (pascal_language_defn): Ditto.
5183 * m2-lang.c (m2_language_defn): Ditto.
5184 * jv-lang.c (java_language_defn): Ditto.
5185 * objc-lang.c (objc_language_defn): Ditto.
5186 * f-lang.c (f_language_defn): Ditto.
5187 * c-lang.c (c_language_defn, cplus_language_defn)
5188 (asm_language_defn, minimal_language_defn): Ditto.
5189
5190 2004-07-27 Andrew Cagney <cagney@gnu.org>
5191
5192 * gdbtypes.h (struct builtin_type): Declare.
5193 (builtin_type): Declare.
5194 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5195 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5196 (gdbtypes_post_init): New function.
5197 (builtin_type): New function.
5198
5199 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5200
5201 * remote-m32r-sdi.c: Fix breakpoint bug.
5202 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5203 recv_char_data, recv_long_data): New functions to replace communication
5204 sequences.
5205
5206 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5207
5208 Document PR threads/1650.
5209 * PROBLEMS (Threads): Document problem with many threads
5210
5211 2004-07-26 Andrew Cagney <cagney@gnu.org>
5212
5213 * gdb-mi.el: Move from here ...
5214 * mi/gdb-mi.el: ... to here.
5215
5216 2004-07-26 Andrew Cagney <cagney@gnu.org>
5217
5218 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5219 * main.c (captured_main): When in batch mode always detach.
5220
5221 2004-07-26 Andrew Cagney <cagney@gnu.org>
5222
5223 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5224 and h8300 as broken.
5225 * NEWS: END-OF-LIFE frame compatibility module.
5226 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5227 specific comments.
5228
5229 2004-07-26 Andrew Cagney <cagney@gnu.org>
5230
5231 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5232 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5233 * wince.c (_initialize_wince): Update.
5234 * win32-nat.c (_initialize_win32_nat): Update.
5235 * varobj.c (_initialize_varobj): Update.
5236 * valops.c (_initialize_valops): Update.
5237 * utils.c (initialize_utils, initialize_utils): Update.
5238 * tui/tui-win.c (_initialize_tui_win): Update.
5239 * top.c (init_main): Update.
5240 * symfile.c (_initialize_symfile): Update.
5241 * source.c (_initialize_source): Update.
5242 * somsolib.c (_initialize_som_solib): Update.
5243 * solib.c (_initialize_solib): Update.
5244 * solib-frv.c (_initialize_frv_solib): Update.
5245 * serial.c (_initialize_serial): Update.
5246 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5247 * remote.c (_initialize_remote, _initialize_remote): Update.
5248 * remote-vx.c (_initialize_vx): Update.
5249 * remote-utils.c (_initialize_sr_support): Update.
5250 * remote-sds.c (_initialize_remote_sds): Update.
5251 * remote-mips.c (_initialize_remote_mips): Update.
5252 * remote-e7000.c (_initialize_remote_e7000): Update.
5253 * proc-api.c (_initialize_proc_api): Update.
5254 * printcmd.c: Update.
5255 * parse.c (_initialize_parse): Update.
5256 * pa64solib.c (_initialize_pa64_solib): Update.
5257 * p-valprint.c (_initialize_pascal_valprint): Update.
5258 * monitor.c (_initialize_remote_monitors): Update.
5259 * mips-tdep.c (_initialize_mips_tdep): Update.
5260 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5261 * maint.c (_initialize_maint_cmds): Update.
5262 * lin-lwp.c (_initialize_lin_lwp): Update.
5263 * language.c (_initialize_language): Update.
5264 * kod.c (_initialize_kod): Update.
5265 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5266 * i386-tdep.c (_initialize_i386_tdep): Update.
5267 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5268 * gdbarch.sh: Update.
5269 * gdbarch.c: Re-generate.
5270 * gdb-events.sh: Update.
5271 * gdb-events.c: Re-generate.
5272 * frame.c (_initialize_frame): Update.
5273 * exec.c: Update.
5274 * demangle.c (_initialize_demangler): Update.
5275 * dcache.c (_initialize_dcache): Update.
5276 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5277 * cp-valprint.c (_initialize_cp_valprint): Update.
5278 * corefile.c (_initialize_core): Update.
5279 * command.h: Update.
5280 * cli/cli-decode.h: Update.
5281 * cli/cli-cmds.c (init_cli_cmds): Update.
5282 * charset.c (_initialize_charset): Update.
5283 * breakpoint.c (_initialize_breakpoint): Update.
5284 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5285 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5286 * aix-thread.c (_initialize_aix_thread): Update.
5287
5288 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5289
5290 Partial fix for PR backtrace/1718.
5291 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5292 that GCC migrates into the prolugue. Don't handle any
5293 instructions that clobber %ebx.
5294
5295 2004-07-23 Andrew Cagney <cagney@gnu.org>
5296
5297 Use regcache_raw_collect instead of regcache_collect.
5298 * regcache.h (regcache_collect): Delete declaration.
5299 * regcache.c (regcache_colect): Delete function.
5300 * win32-nat.c (do_child_store_inferior_registers): Update.
5301 * sol-thread.c (sol_thread_store_registers): Update.
5302 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5303 * rs6000-nat.c (store_register): Update.
5304 * remote.c (store_register_using_P, remote_store_registers): Update.
5305 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5306 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5307 (fill_vrregset, store_spe_registers, fill_gregset)
5308 (fill_gregset): Update.
5309 * nto-procfs.c (procfs_store_registers): Update.
5310 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5311 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5312 * m68klinux-nat.c (store_register, fill_gregset): Update.
5313 * m68k-tdep.c (fill_gregset): Update.
5314 * infptrace.c (store_register): Update.
5315 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5316 * i386-linux-nat.c (store_register, fill_gregset): Update.
5317 * hppa-linux-nat.c (fill_gregset): Update.
5318 * go32-nat.c (store_register): Update.
5319 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5320 (store_fp_regs): Update.
5321 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5322 (store_nwfpe_extended, store_fpregister, store_fpregs)
5323 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5324 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5325 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5326 (store_regs_user_thread, store_regs_kernel_thread): Update.
5327
5328 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5329
5330 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5331 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5332 encoding.
5333 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5334 member of `struct comp_unit'.
5335
5336 2004-07-23 Andrew Cagney <cagney@gnu.org>
5337
5338 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5339 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5340
5341 2004-07-23 Martin Hunt <hunt@redhat.com>
5342 Kevin Buettner <kevinb@redhat.com>
5343
5344 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5345 alignment was being added to the offset instead of multiplied.
5346
5347 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5348
5349 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5350 changed signal trampoline in OpenBSD 3.5-current.
5351
5352 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5353 <machine/pcb.h> and "bsd-kvm.h".
5354 (sparc64nbsd_supply_pcb): New function.
5355 (_initialize_sparc64nbsd_nat): Renamed from
5356 _initialize_sparcnbsd_nat. Enable libkvm interface.
5357 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5358 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5359 (LOADLIBES): New variable.
5360
5361 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5362
5363 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5364
5365 2004-07-21 Andrew Cagney <cagney@gnu.org>
5366
5367 Use regcache_raw_supply instead of supply_register.
5368 * regcache.h (supply_register): Delete declaration.
5369 * regcache.c (supply_register): Delete function.
5370 * wince.c (do_child_fetch_inferior_registers): Update.
5371 * win32-nat.c (do_child_fetch_inferior_registers)
5372 (fetch_elf_core_registers): Update.
5373 * v850ice.c (v850ice_fetch_registers): Update.
5374 * thread-db.c (thread_db_store_registers): Update.
5375 * sol-thread.c (sol_thread_store_registers): Update.
5376 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5377 * rs6000-nat.c (fetch_register): Update.
5378 * rom68k-rom.c (rom68k_supply_one_register): Update.
5379 * remote.c (remote_wait, remote_async_wait): Update.
5380 * remote-st.c (get_hex_regs): Update.
5381 * remote-sim.c (gdbsim_fetch_register): Update.
5382 * remote-sds.c (sds_fetch_registers): Update.
5383 * remote-rdp.c (remote_rdp_fetch_register): Update.
5384 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5385 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5386 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5387 * remote-hms.c (init_hms_cmds): Update.
5388 * remote-est.c (init_est_cmds): Update.
5389 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5390 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5391 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5392 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5393 (fetch_register, supply_vrregset, supply_vrregset)
5394 (fetch_spe_registers): Update.
5395 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5396 * monitor.c (monitor_supply_register): Update.
5397 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5398 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5399 (mipsnbsd_supply_fpreg): Update.
5400 * mips-nat.c (fetch_inferior_registers)
5401 (fetch_core_registers): Update.
5402 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5403 (supply_fpregset, mips64_supply_gregset)
5404 (mips64_supply_fpregset): Update.
5405 * m68klinux-nat.c (fetch_register, supply_gregset)
5406 (supply_fpregset): Update.
5407 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5408 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5409 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5410 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5411 * infptrace.c (fetch_register): Update.
5412 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5413 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5414 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5415 (gnu_fetch_registers, gnu_store_registers): Update.
5416 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5417 * i386-linux-nat.c (fetch_register, supply_gregset)
5418 (dummy_sse_values): Update.
5419 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5420 * hppah-nat.c (fetch_register): Update.
5421 * hppa-linux-nat.c (fetch_register, supply_gregset)
5422 (supply_fpregset): Update.
5423 * go32-nat.c (fetch_register): Update.
5424 * dve3900-rom.c (fetch_bitmapped_register)
5425 (_initialize_r3900_rom): Update.
5426 * cris-tdep.c (supply_gregset): Update.
5427 * abug-rom.c (init_abug_cmds): Update.
5428 * core-aout.c (fetch_core_registers): Update.
5429 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5430 (fetch_register, fetch_fp_register): Update.
5431 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5432 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5433 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5434 * alphanbsd-tdep.c (fetch_core_registers): Update.
5435 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5436 * alpha-nat.c (fetch_osf_core_registers)
5437 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5438 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5439 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5440
5441 2004-07-21 Andrew Cagney <cagney@gnu.org>
5442
5443 * PROBLEMS: Mention breakpoints/1702.
5444 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5445 that is known to work.
5446
5447 2004-07-21 Andrew Cagney <cagney@gnu.org>
5448
5449 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5450 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5451 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5452 (handle_inferior_event): Wrap call to deprecated
5453 IGNORE_HELPER_CALL in #ifdef.
5454 * config/mips/tm-nbsd.h: Update.
5455
5456 2004-07-20 Jim Blandy <jimb@redhat.com>
5457
5458 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5459 bfd_mach_ppc has no segment registers.
5460
5461 Include PowerPC SPR numbers for special-purpose registers.
5462 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5463 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5464 new member in initializer.
5465 (S, S4, SN4, S64): New macros for defining special-purpose
5466 registers.
5467 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5468 registers_403, registers_403GC, registers_505, registers_860,
5469 registers_601, registers_602, registers_603, registers_604,
5470 registers_750, registers_e500): Use them.
5471
5472 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5473 replace references with expression used to initialize variable.
5474
5475 2004-07-20 Andrew Cagney <cagney@gnu.org>
5476
5477 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5478 read_memory_nobpt.
5479 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5480 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5481 (s390_sigtramp_frame_sniffer): Update.
5482 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5483 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5484 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5485 (mips32_fetch_instruction): Update.
5486 * mcore-tdep.c (get_insn): Update.
5487 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5488 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5489 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5490 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5491 (i386_linux_rt_sigtramp_start): Update.
5492 * i386-linux-nat.c (child_resume): Update.
5493 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5494 * hppa-linux-tdep.c (insns_match_pattern): Update.
5495 * gdbcore.h: Update.
5496 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5497 * frame.c (safe_frame_unwind_memory): Update.
5498 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5499 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5500 * alpha-tdep.c (alpha_read_insn): Update.
5501
5502 2004-07-20 Andrew Cagney <cagney@gnu.org>
5503
5504 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5505 containing both bytes and mask. Add "frame_type".
5506 * tramp-frame.c (tramp_frame_start): Update.
5507 (tramp_frame_prepend_unwinder): Update.
5508 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5509 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5510 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5511 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5512
5513 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5514
5515 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5516 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5517 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5518 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5519
5520 2004-07-17 Andrew Cagney <cagney@gnu.org>
5521
5522 * NEWS, PROBLEMS: Update for 6.2.
5523
5524 * README: Update to 6.2.
5525
5526 * utils.c (xvasprintf): Call xstrvprintf.
5527
5528 * parse.c: Update copyright.
5529 (null_post_parser): Eliminate ARGSUSED.
5530
5531 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5532 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5533 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5534
5535 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5536 * ppc-linux-nat.c: Use "Linux kernel".
5537 * hppa-linux-tdep.c: Use GNU/Linux.
5538 * hppa-linux-nat.c: Use GNU/Linux.
5539 * dwarfread.c: Add [sic] to use of Linux.
5540
5541 * hppa-linux-nat.c: Do not include <string.h>.
5542 (supply_fpregset): Remove "register" attribute.
5543
5544 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5545
5546 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5547
5548 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5549 * configure, config.in: Regenerated.
5550
5551 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5552 "bsd-kvm.h".
5553 (vaxbsd_supply_pcb): New function.
5554 (_initialize_vaxbsd_nat): New prototype and function.
5555 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5556 solib-sunos.o.
5557 (LOADLIBES): New variable.
5558 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5559 (LOADLIBES): New variable.
5560 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5561 (LOADLIBES): New variable.
5562 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5563
5564 2004-07-16 Andrew Cagney <cagney@gnu.org>
5565
5566 * defs.h (event_loop_p): Replace variable declaration with macro,
5567 always 1.
5568 * main.c (captured_main): Delete options "-async" and "-noasync".
5569 (event_loop_p): Delete variable.
5570 * NEWS: Mention that "-async" and "-noasync" were removed.
5571
5572 2004-07-16 Andrew Cagney <cagney@gnu.org>
5573
5574 * remote-m32r-sdi.c: Re-indent.
5575
5576 2004-07-16 Jim Blandy <jimb@redhat.com>
5577
5578 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5579 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5580 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5581 missing MPC823 SPRs.
5582 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5583 incorrect. (This was corrected in GDB's register name tables on
5584 2004-07-14.)
5585
5586 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5587 should be "esasrr" ("ESA Save and Restore Register").
5588
5589 2004-07-16 Andrew Cagney <cagney@gnu.org>
5590
5591 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5592 calls, no longer applicable. Update comments and rename parameter
5593 "step_frame" to "return_frame".
5594
5595 2004-07-16 Andrew Cagney <cagney@gnu.org>
5596
5597 * frame.c (fprint_field): New function.
5598 (fprint_frame_id): Use fprint_field.
5599
5600 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5601
5602 * ada-lang.c (ada_language_defn): Remove commented out code.
5603
5604 2004-07-15 Jim Blandy <jimb@redhat.com>
5605
5606 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5607 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5608
5609 2004-07-14 Jim Blandy <jimb@redhat.com>
5610
5611 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5612
5613 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5614
5615 * ppc-tdep.h (ppc_num_srs): New enum constant.
5616
5617 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5618 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5619 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5620 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5621 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5622 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5623 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5624 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5625 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5626 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5627 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5628 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5629 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5630 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5631 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5632 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5633 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5634 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5635 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5636 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5637 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5638 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5639 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5640 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5641 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5642 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5643 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5644 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5645 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5646 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5647 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5648 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5649 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5650 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5651 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5652 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5653 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5654 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5655 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5656 special-purpose register numbers.
5657
5658 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5659 manual mentions 'md_twb', but many mention 'm_twb', and at that
5660 point in the register list.)
5661
5662 2004-07-14 Andrew Cagney <cagney@gnu.org>
5663
5664 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5665 instead of "internal-error".
5666
5667 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5668
5669 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5670 that was inserted inside a comment.
5671
5672 2004-07-10 Randolph Chung <tausq@debian.org>
5673
5674 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5675 function.
5676 (hppa_hpux_push_dummy_code): New function.
5677 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5678 Set find_global_pointer method.
5679
5680 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5681
5682 * NEWS: Mention BSD libkvm interface.
5683
5684 2004-07-10 Michael Snyder <msnyder@redhat.com>
5685
5686 * symfile.c (generic_load): Comment typo.
5687 * stack.c (get_selected_block): Ditto.
5688 * regcache.c (regcache_cooked_read): Ditto.
5689 * monitor.c (monitor_debug): Ditto.
5690 * mips-tdep.c (mips_read_pc): Ditto.
5691 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5692 * gdb_mbuild.sh: Ditto.
5693 * gdbarch.sh: Ditto.
5694 * gdbarch.h: Ditto.
5695
5696 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5697
5698 * ada-tasks.c: Remove file.
5699
5700 Remove ARI problems:
5701
5702 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5703 beginning of line.
5704
5705 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5706 Add comment.
5707 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5708 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5709 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5710 (UMIN_OF_SIZE): Remove.
5711 (max_of_type): New function to replace orphan macro in gdbtypes.h
5712 (min_of_type): Ditto.
5713 (discrete_type_high_bound): Use max_of_type.
5714 (discrete_type_low_bound): Use min_of_type.
5715 (possible_user_operator_p): Move operator to beginning of line.
5716 (ada_is_variant_part): Ditto.
5717 (ensure_lval): Rewrite to avoid deprecated operations.
5718 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5719 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5720 (ada_enum_name): Remove assignments in 'if' statements.
5721 (build_ada_types): Add gdbarch parameter.
5722 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5723 with gdbarch_data_register_post_init.
5724 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5725 add_show_from_set.
5726
5727 * ada-valprint.c (inspect_it): Remove declaration.
5728 (repeat_count_threshold): Remove declaration.
5729 (ada_print_floating): Remove assignments in 'if' statements.
5730 (print_str): Move operator to beginning of line.
5731
5732 2004-07-08 Jim Blandy <jimb@redhat.com>
5733
5734 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5735
5736 2004-07-08 Bob Rossi <bob@brasko.net>
5737
5738 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5739
5740 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5741
5742 * language.h (struct_language_defn): Add new function pointer:
5743 la_class_name_from_physname. Also add new prototype for
5744 language_class_name_from_physname.
5745 * language.c (language_class_name_from_physname): New function.
5746 (unk_lang_class_name): Ditto.
5747 (unknown_language_defn, auto_language_defn): Change
5748 to add unk_lang_class_name function pointer for
5749 la_class_name_from_physname.
5750 (local_language_defn): Ditto.
5751 * dwarf2read.c (guess_structure_name): Change to call
5752 language_class_name_from_physname.
5753 (determine_class_name): Ditto.
5754 * cp-support.c (class_name_from_physname): Renamed.
5755 (cp_class_name_from_physname): New name of function.
5756 * cp-support.h: Ditto.
5757 * c-lang.c (c_language_defn): Change to add NULL
5758 for class_name_from_physname function pointer.
5759 (cplus_language_defn): Change to add cp_class_name_from_physname.
5760 * jv-lang.c (java_class_name_physname): New function.
5761 (java_find_last_component): New static routine.
5762 (java_language_defn): Add java_class_name_from_physname pointer.
5763 * ada-lang.c (ada_language_defn): Change to add NULL
5764 for class_name_from_physname function pointer.
5765 * f-lang.c (f_language_defn): Ditto.
5766 * m2-lang.c (m2_language_defn): Ditto.
5767 * objc-lang.c (objc_language_defn): Ditto.
5768 * p-lang.c (pascal_language_defn): Ditto.
5769 * scm-lang.c (scm_language_defn): Ditto.
5770
5771 2004-07-06 Andrew Cagney <cagney@gnu.org>
5772
5773 Patch from Bart Robinson.
5774 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5775 (O_LARGEFILE): Define to 0, if not defined.
5776
5777 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5778
5779 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5780 <machine/pcb.h> and "bsd-kvm.h".
5781 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5782 (m68kbsd_supply_pcb): New function.
5783 (_initialize_m68kbsd_nat): New prototype and function.
5784 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5785 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5786 (LOADLIBES): New variable.
5787 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5788 (LOADLIBES): New variable.
5789
5790 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5791
5792 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5793
5794 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5795 <sys/proc.h>.
5796 (bsd_kvm_cmdlist): New variable.
5797 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5798 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5799 command and "kvm proc" command.
5800 * Makefile.in (bsd-kvm.o): Update dependencies.
5801
5802 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5803
5804 * osabi.c: Update copyright year.
5805 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5806 notes if EI_OSABI is set to ELFOSABI_HPUX.
5807
5808 2004-07-01 Michael Snyder <msnyder@redhat.com>
5809
5810 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5811 that seems to have gotten whacked out of line.
5812
5813 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5814
5815 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5816 code.
5817
5818 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5819
5820 * ada-lang.c (decode_packed_array): Minor change to comment.
5821 (ada_value_slice_ptr): New function.
5822 (ada_value_slice): New function.
5823 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5824 test. Don't know why it is there.
5825 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5826 to avoid dereferencing huge arrays from which one is slicing.
5827 (empty_array): Correct to return an array rather than
5828 a subrange value.
5829 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5830 on empty arrays (let'em use 'FIRST instead).
5831
5832 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5833
5834 Address complaints from gdb_ari.sh:
5835
5836 * ada-exp.y: Include gdb_string.h rather than string.h.
5837 (convert_char_literal): Reformat declaration.
5838 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5839 * ada-lex.l: Change use of free to xfree (the macro would do so
5840 anyway, but this is harmless).
5841 Include gdb_string.h rather than string.h.
5842 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5843
5844 * ada-lang.c (parse): Remove K&Rism in parameter list.
5845 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5846
5847 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5848
5849 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5850 dead code.
5851
5852 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5853
5854 * alphabsd-nat.c: Update copyright year.
5855 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5856
5857 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5858
5859 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5860 (i386_cygwin_in_solib_call_trampoline): New function.
5861 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5862 and skip_trampoline_code gdbarch methods.
5863
5864 2004-06-29 Jim Blandy <jimb@redhat.com>
5865
5866 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5867 name actually used in the dependency lists.
5868
5869 2004-06-29 Randolph Chung <tausq@debian.org>
5870
5871 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5872
5873 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5874
5875 * win32-nat.c (child_pid_to_exec_file): New function.
5876 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5877 functionality.
5878
5879 2004-06-28 Andrew Cagney <cagney@gnu.org>
5880
5881 * defs.h (xstrvprintf): Declare.
5882 * utils.c (xstrvprintf): New function.
5883 (internal_vproblem, xstrprintf, xasprintf)
5884 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5885 * serial.c (serial_printf): Ditto.
5886 * complaints.c (vcomplaint): Ditto.
5887
5888 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5889
5890 * infcmd.c (attach_command): Move call to target_terminal_inferior
5891 behind loading symbol table.
5892
5893 2004-06-28 Andrew Cagney <cagney@gnu.org>
5894
5895 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5896 change - add back extern deprecated_ui_loop_hook declaration.
5897
5898 2004-06-28 Andrew Cagney <cagney@gnu.org>
5899
5900 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5901 xstrprintf.
5902 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5903 (c_value_of_variable): Ditto.
5904 * utils.c (internal_vproblem): Ditto.
5905 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5906 * remote.c (add_packet_config_cmd): Ditto.
5907 * remote-rdp.c (rdp_set_command_line): Ditto.
5908 * regcache.c (regcache_dump): Ditto.
5909 * frv-tdep.c (new_variant, new_variant): Ditto.
5910 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5911 (fbsd_find_memory_regions): Ditto.
5912 * breakpoint.c (create_thread_event_breakpoint)
5913 (create_breakpoints): Ditto.
5914 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5915 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5916
5917 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5918
5919 * ada-lang.c: Re-indent file, with some massaging to help indent
5920 a bit when the result is otherwise really too ugly.
5921
5922 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5923
5924 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5925 code_addr_p and special_addr_p to 'unsigned int'.
5926
5927 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5928
5929 * i386v4-nat.c: Update copyright year and tweak comment.
5930 (regmap): Remove trailing comma.
5931 (supply_gregset): Rename local variable i to regnum. Call
5932 regcache_raw_supply instead of supply_register.
5933 (fill_gregset): Rename argument regno to regnum. Call
5934 regcache_raw_collect instead of regcache_collect.
5935
5936 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5937
5938 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5939 and special_addr_p.
5940 (frame_id_build, frame_id_build_special): Update comments.
5941 (frame_id_build_wild): New prototype.
5942 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5943 struct frame_id fields.
5944 (frame_id_build_wild): New function.
5945 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5946
5947 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5948
5949 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5950 hppabsd-tdep.c.
5951
5952 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5953
5954 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5955
5956 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5957
5958 * ada-lang.c: Re-indent file.
5959
5960 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5961
5962 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5963 (no_symtab_msg): Likewise.
5964
5965 2004-06-27 Andreas Schwab <schwab@suse.de>
5966
5967 * source.c: Fix whitespace.
5968
5969 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5970
5971 * configure.in: Include <sys/param.h> for td_pcb test.
5972 * configure: Regenerated.
5973
5974 * i386nbsd-nat.c: New file.
5975 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5976 i386obsd-nat.c and i386obsd-tdep.c.
5977 (i386nbsd-nat.o): New dependency.
5978 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5979 bsd-kvm.o.
5980 (LOADLIBES): New variable.
5981 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5982 bsd-kvm.o.
5983 (LOADLIBES): New variable.
5984
5985 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5986 (LOADLIBES): New variable.
5987
5988 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5989 fetching from BSD_KVM_PADDR. Correctly lookup address for
5990 "_thread0".
5991
5992 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5993 "bsd-kvm.h".
5994 (amd64fbsd_supply_pcb): New funcion.
5995 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5996
5997 2004-06-27 <david@streamline-computing.com>
5998
5999 Partial fix for PR cli/1056.
6000 * valarith.c: Check for zero in division and remainder
6001 evaluation.
6002
6003 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6004
6005 * i387-tdep.c: Remove excessive whitespace.
6006
6007 2004-06-26 Andrew Cagney <cagney@gnu.org>
6008
6009 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6010 * gdb-events.h, gdb-events.c: Re-generate.
6011 * tui/tui-hooks.c (tui_install_hooks): Update.
6012 (tui_remove_hooks): Update.
6013 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6014
6015 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6016
6017 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6018 (gregset_t, fpregset_t): Remove typedefs.
6019 (REG_OFFSET): Rename argument.
6020 (amd64bsd_r_reg_offset): Rename from reg_offset.
6021 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6022 Remove functions.
6023 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6024 of reg_offset.
6025 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6026
6027 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6028
6029 * vax-tdep.c: Tweak comment.
6030
6031 Add OpenBSD/hppa support.
6032 * NEWS (New native configurations): Mention OpenBSD/hppa.
6033 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6034 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6035 files.
6036 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6037 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6038 * configure.host: Add hppa*-*-openbsd*.
6039 * configure.tgt: Add hppa*-*-openbsd*.
6040
6041 2004-06-25 Andrew Cagney <cagney@gnu.org>
6042
6043 * defs.h (deprecated_ui_loop_hook): Deprecated.
6044 * wince.c (child_wait): Update.
6045 * win32-nat.c (child_wait): Update.
6046 * v850ice.c (v850ice_wait): Update.
6047 * top.c (deprecated_ui_loop_hook): Update.
6048 * serial.h: Update.
6049 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6050 (do_unix_readchar): Update.
6051 * ser-tcp.c (net_open): Update.
6052 * remote-sim.c (gdb_os_poll_quit): Update.
6053 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6054
6055 2004-06-24 Andrew Cagney <cagney@gnu.org>
6056
6057 * defs.h (deprecated_pre_add_symbol_hook)
6058 (deprecated_post_add_symbol_hook): Deprecated.
6059 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6060 (symbol_file_add_with_addrs_or_offsets): Update references.
6061
6062 2004-06-24 Andrew Cagney <cagney@gnu.org>
6063
6064 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6065 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6066 * wince.c (ui_loop_hook): Delete extern declaration.
6067 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6068 * v850ice.c (ui_loop_hook): Delete extern declaration..
6069 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6070 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6071 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6072 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6073 ui_loop_hook declaration.
6074
6075 2004-06-24 Andrew Cagney <cagney@gnu.org>
6076
6077 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6078 entry_func_highpc fields.
6079 * objfiles.c (init_entry_point_info): Do not clear
6080 entry_func_lowpc and entry_func_highpc.
6081 (objfile_relocate): Do not relocate entry_func_lowpc and
6082 entry_func_highpc.
6083 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6084 entry_func_highpc.
6085 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6086 entry_func_highpc.
6087 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6088 entry_func_lowpc and entry_func_highpc with call to
6089 inside_entry_func.
6090
6091 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6092
6093 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6094 quad-precision floating point arguments in registers.
6095
6096 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6097
6098 From Michael Mueller <m.mueller99@kay-mueller.de>:
6099 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6100 account.
6101
6102 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6103
6104 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6105 to -1.
6106 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6107 untriggered watchpoints to a separate if clause. Update function
6108 comment regarding STOPPED_BY_WATCHPOINT argument.
6109
6110 2004-06-22 Jim Blandy <jimb@redhat.com>
6111
6112 * gdbarch.sh: Doc fix.
6113
6114 2004-06-21 Martin Hunt <hunt@redhat.com>
6115 Kevin Buettner <kevinb@redhat.com>
6116
6117 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6118 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6119 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6120 to set_gdbarch_sp_regnum(). Use cooked register number.
6121 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6122
6123 2004-06-21 Andrew Cagney <cagney@gnu.org>
6124
6125 * gdbarch.sh: When the macro field is empty, do not generate a
6126 macro definition. When the macro field is "=", generate the macro
6127 name from the upper-case function name.
6128 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6129 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6130 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6131 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6132 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6133 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6134 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6135 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6136 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6137 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6138 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6139 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6140 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6141 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6142 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6143 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6144 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6145 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6146 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6147 (DEPRECATED_USE_STRUCT_CONVENTION)
6148 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6149 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6150 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6151 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6152 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6153 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6154 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6155 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6156 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6157 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6158 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6159 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6160 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6161 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6162 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6163 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6164 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6165 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6166
6167 2004-06-21 Andrew Cagney <cagney@gnu.org>
6168
6169 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6170 macro name, and the function rather than macro value. Only wrap
6171 macro print statements in #ifdef. Move format logic to where it
6172 is needed.
6173 * gdbarch.c: Re-generate.
6174
6175 * gdbarch.sh (read): Delete "print_p" and "description", add
6176 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6177 Delete references to print_p.
6178 (TARGET_ARCHITECTURE): Delete print predicate.
6179 * gdbarch.c: Re-generate.
6180
6181 * gdbarch.sh: Check that multi-arch methods do not provide a
6182 macro.
6183 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6184 (print_registers_info, print_float_info, print_vector_info)
6185 (adjust_breakpoint_address, remote_translate_xfer_address)
6186 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6187 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6188 name from the multi-arch definition.
6189
6190 2004-06-20 Andrew Cagney <cagney@gnu.org>
6191
6192 * gdbarch.sh: Sort by the function, instead of macro name.
6193 * gdbarch.c: Re-generate.
6194
6195 2004-06-20 Andrew Cagney <cagney@gnu.org>
6196
6197 * gdbarch.sh: Use the function, instead of macro name in
6198 errors and the log file.
6199 (return_value): Remove stray ":" in spec.
6200
6201 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6202 * gdbarch.h, gdbarch.c: Re-generate.
6203 * Makefile.in (arch-utils.o): Update dependencies.
6204 * values.c (using_struct_return): Move code calling
6205 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6206 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6207 to legacy_return_value, simplify.
6208 * infcmd.c (print_return_value): Move code calling
6209 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6210 to legacy_return_value, simplify.
6211 * infcall.c (call_function_by_hand): Move code calling
6212 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6213 * arch-utils.c: Update copyright. Include "gdbcore.h".
6214 (legacy_return_value): New function.
6215 * arch-utils.h: Update copyright.
6216 (legacy_return_value): Declare.
6217
6218 2004-06-20 Andrew Cagney <cagney@gnu.org>
6219
6220 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6221 * gdbarch.h, gdbarch.c: Re-generate.
6222 * values.c (using_struct_return): Update call.
6223 * mcore-tdep.c: Update comment.
6224 * infcall.c (call_function_by_hand): Update comment.
6225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6226 * arch-utils.h (always_use_struct_convention): Update.
6227 * v850-tdep.c (v850_gdbarch_init): Update.
6228 * sh64-tdep.c (sh64_gdbarch_init): Update.
6229 * sh-tdep.c (sh_gdbarch_init): Update.
6230 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6231 * mips-tdep.c (mips_gdbarch_init): Update.
6232 * mcore-tdep.c (mcore_gdbarch_init): Update.
6233 * m32r-tdep.c (m32r_gdbarch_init): Update.
6234 * ia64-tdep.c (ia64_gdbarch_init): Update.
6235 * h8300-tdep.c (h8300_gdbarch_init): Update.
6236 * frv-tdep.c (frv_gdbarch_init): Update.
6237 * cris-tdep.c (cris_gdbarch_init): Update.
6238 * arm-tdep.c (arm_gdbarch_init): Update.
6239 * alpha-tdep.c (alpha_gdbarch_init): Update.
6240
6241 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6242
6243 * PROBLEMS: Add more specific information, and a work-around,
6244 for PR gdb/1458.
6245
6246 2004-06-18 Andrew Cagney <cagney@gnu.org>
6247
6248 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6249 * gdbarch.h, gdbarch.c: Re-generate.
6250 * ada-lang.c (ada_finish_decode_line_1): Update.
6251 * infrun.c (handle_inferior_event): Update.
6252 * infcall.c (find_function_addr): Update.
6253 * linespec.c (minsym_found): Update.
6254 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6255 Update.
6256 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6257 * cli/cli-cmds.c (disassemble_command): Update.
6258 * vax-tdep.c (vax_gdbarch_init): Update.
6259
6260 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6261
6262 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6263
6264 2004-06-17 Andrew Cagney <cagney@gnu.org>
6265
6266 GDB 6.1.1 released from the GDB 6.1 branch.
6267 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6268 * PROBLEMS: Ditto.
6269
6270 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6271
6272 PR gdb/1658
6273 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6274 operation as a uleb128. Found by Michael Coulter.
6275
6276 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6277
6278 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6279 make it non-static.
6280 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6281 to ada-lang.h; this is needed to be able to implement the kill command
6282 in multi-task mode.
6283 (task_ptid): Ditto.
6284 (task_entry): Ditto.
6285 (task_list): Ditto.
6286 (ada_build_task_list): Ditto.
6287
6288 * ada-lang.c: Conditionalize routines and data structures related
6289 to breakpoints, exceptions, completion, and symbol caching on
6290 GNAT_GDB, since these are not yet used in the submitted public sources.
6291 (ada_main_name): Editorial: Move definition out of exception-related
6292 code.
6293
6294 2004-06-15 Andrew Cagney <cagney@gnu.org>
6295
6296 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6297 deprecated_pc_in_call_dummy.
6298
6299 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6300
6301 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6302 bfd_get_section_size_before_reloc or _raw_size.
6303 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6304 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6305 (dwarf2_read_section): Likewise.
6306 * elfread.c (elf_locate_sections): Likewise.
6307 * gcore.c (derive_heap_segment): Likewise.
6308 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6309 * remote-e7000.c (e7000_load): Likewise.
6310 * remote-m32r-sdi.c (m32r_load): Likewise.
6311 * remote-mips.c (mips_load_srec): Likewise.
6312 (pmon_load_fast): Likewise.
6313 * remote.c (compare_sections_command): Likewise.
6314 * symfile.c (add_section_size_callback): Likewise.
6315 (load_section_callback): Likewise.
6316 (pc_in_unmapped_range): Likewise.
6317 (pc_in_mapped_range): Likewise.
6318 (sections_overlap): Likewise.
6319 (list_overlays_command): Likewise.
6320 (simple_overlay_update_1): Likewise.
6321 (simple_overlay_update): Likewise.
6322 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6323 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6324
6325 2004-06-14 Randolph Chung <tausq@debian.org>
6326
6327 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6328 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6329 static.
6330 (hppa_hpux_inferior_created): New function.
6331 (hppa_hpux_init_abi): Register observer.
6332 * symfile.c (hp_cxx_exception_support_initialized)
6333 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6334 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6335
6336 2004-06-14 Randolph Chung <tausq@debian.org>
6337
6338 * MAINTAINERS (Write After Approval): Alphabetize my entry
6339 correctly.
6340
6341 2004-06-14 Andrew Cagney <cagney@gnu.org>
6342
6343 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6344 testsuite maintainer.
6345
6346 2004-06-13 Andrew Cagney <cagney@gnu.org>
6347
6348 * infcmd.c (print_return_value): Fix logic, allow
6349 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6350
6351 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6352 defining any macros.
6353 * gdbarch.h: Re-generate.
6354
6355 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6356 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6357 * gdbarch.h: Re-generate.
6358
6359 * values.c (generic_use_struct_convention): Don't check gcc_p.
6360
6361 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6362 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6363 * gdbarch.h, gdbarch.c: Regenerate.
6364 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6365 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6367 deprecated_max_register_raw_size and
6368 deprecated_max_register_virtual_size.
6369 * v850-tdep.c (v850_gdbarch_init): Ditto.
6370 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6372 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6373 * cris-tdep.c (cris_gdbarch_init): Ditto.
6374
6375 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6376 * gdbarch.h, gdbarch.c: Re-generate.
6377 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6378 (m68hc11_use_struct_convention): Delete function.
6379 (m68hc11_extract_struct_value_address): Delete function.
6380 (m68hc11_return_value): New function.
6381 (m68hc11_gdbarch_init): Instead of store_return_value,
6382 extract_return_value, return_value_on_stack,
6383 deprecated_extract_struct_value_address and use_struct_convention,
6384 set return_value.
6385 * values.c (using_struct_return): Do not call
6386 RETURN_VALUE_ON_STACK.
6387 * arch-utils.h (generic_return_value_on_stack_not): Delete
6388 declaration.
6389 * arch-utils.c (generic_return_value_on_stack_not): Delete
6390 function.
6391
6392 2004-06-12 Andrew Cagney <cagney@gnu.org>
6393
6394 * values.c (register_value_being_returned): Delete function.
6395 * infcmd.c (legacy_return_value): Delete function.
6396 * infcall.c (call_function_by_hand): Inline
6397 "register_value_being_returned", simplify.
6398 * values.c (using_struct_return): Update comment, refer to
6399 print_return_value instead of register_value_being_returned.
6400 * infcmd.c (print_return_value): Inline calls to
6401 register_value_being_returned and legacy_return_value. Simplify.
6402
6403 2004-06-11 Randolph Chung <tausq@debian.org>
6404
6405 * somread.c (som_symtab_read): Exclude gcc local symbols.
6406
6407 2004-06-11 Randolph Chung <tausq@debian.org>
6408
6409 * infrun.c (handle_inferior_event): Handle the case when a
6410 trampoline ends up in the runtime resolver, and if the trampoline
6411 has no name. Rearrange the code so that all the trampoline
6412 processing happens before other step-out-of-range handling.
6413
6414 2004-06-11 Martin Hunt <hunt@redhat.com>
6415
6416 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6417 has no fpu.
6418
6419 2004-06-10 Andrew Cagney <cagney@gnu.org>
6420
6421 * blockframe.c (legacy_inside_entry_func): Delete.
6422 (legacy_frame_chain_valid): Inline call to
6423 legacy_inside_entry_func, simplify.
6424
6425 2004-06-10 Bob Rossi <bob@brasko.net>
6426
6427 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6428 * dwarf2read.c (partial_die_info): Add dirname field.
6429 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6430 (read_partial_die): Save away DW_AT_comp_dir.
6431 * defs.h (symtab_to_filename): Removed.
6432 * source.c (find_and_open_source): Added.
6433 (open_source_file): Just calls find_and_open_source.
6434 (symtab_to_filename): Removed.
6435 (symtab_to_fullname, psymtab_to_fullname): Added.
6436 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6437 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6438 symtab_to_filename.
6439 * symtab.h (partial_symtab): Add dirname field.
6440 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6441 (mi_cmd_file_list_exec_source_file): Call new function
6442 symtab_to_fullname to find fullname.
6443 (mi_cmd_file_list_exec_source_files): Added.
6444 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6445 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6446
6447 2004-06-10 Andrew Cagney <cagney@gnu.org>
6448
6449 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6450 to generic_use_struct_convention, the default value.
6451
6452 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6453 of abort.
6454
6455 * ns32k-tdep.c (ns32k_push_arguments): New function.
6456 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6457 * infcall.c (call_function_by_hand): Call error instead of
6458 legacy_push_arguments.
6459 * value.h (legacy_push_arguments): Delete declaration.
6460 * valops.c (legacy_push_arguments): Delete function.
6461 (value_push): Delete function.
6462
6463 2004-06-10 Brian Ford <ford@vss.fsi.com>
6464
6465 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6466 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6467 info.
6468 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6469
6470 2004-06-10 Andrew Cagney <cagney@gnu.org>
6471
6472 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6473 * gdbarch.h, gdbarch.c: Re-generate.
6474 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6475 parameters.
6476 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6477 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6478 deprecated_pc_in_call_dummy instead of
6479 DEPRECATED_PC_IN_CALL_DUMMY.
6480 (arm_skip_prologue): Ditto.
6481 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6482 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6483 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6484 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6485 Ditto.
6486 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6487 (sh64_init_extra_frame_info, sh64_get_saved_register)
6488 (sh64_pop_frame): Ditto.
6489 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6490 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6491 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6492 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6493 (h8300_pop_frame): Ditto.
6494 * blockframe.c (legacy_inside_entry_func)
6495 (legacy_frame_chain_valid): Ditto.
6496 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6497 to deprecated_pc_in_call_dummy.
6498
6499 2004-06-09 Andrew Cagney <cagney@gnu.org>
6500
6501 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6502 provide a default value.
6503 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6504 * gdbarch.h, gdbarch.c: Re-generate.
6505 * arch-utils.c (generic_convert_register_p): Rename
6506 legacy_convert_register_p
6507 (legacy_register_to_value, legacy_value_to_register): Delete
6508 functions.
6509 * arch-utils.h (generic_convert_register_p): Rename
6510 legacy_convert_register_p.
6511 (legacy_register_to_value, legacy_value_to_register): Delete
6512 declarations.
6513
6514 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6515 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6516 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6517 * gdbarch.h, gdbarch.c: Re-generate.
6518 * infcmd.c (default_print_registers_info): Simplify.
6519 * findvar.c (value_of_register): Simplify.
6520 * mi/mi-main.c (get_register): Simplify.
6521 * arch-utils.c (legacy_convert_register_p): Always return 0.
6522 (legacy_register_to_value, legacy_value_to_register): Always call
6523 internal_error.
6524
6525 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6526 #ifdef CLEAR_INSN_CACHE code.
6527 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6528 Delete #ifdef CLEAR_DEFERRED_STORES code.
6529
6530 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6531
6532 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6533 copyright.
6534 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6535
6536 * config/mips/mipsv4.mh: Delete file.
6537
6538 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6539 unreferenced macro.
6540 (hpread_adjust_stack_address): Delete declaration.
6541
6542 2004-06-08 Andrew Cagney <cagney@gnu.org>
6543
6544 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6545 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6546 PTRACE_ATTACH / PTRACE_DETACH available call error.
6547 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6548 * infttrace.c (update_thread_state_after_attach, attach, detach):
6549 Remove #ifdef wrappers.
6550 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6551 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6552 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6553 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6554 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6555 * config/nm-linux.h (ATTACH_DETACH): Delete.
6556 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6557 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6558 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6559 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6560 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6561
6562 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6563
6564 * configure.in: Set $configdir to the right OS specific value.
6565 Use value when setting $tcldir and $tkdir.
6566 * configure: Regenerate.
6567
6568 2004-06-06 Paul Brook <paul@codesourcery.com>
6569
6570 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6571 records.
6572
6573 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6574
6575 * ada-lang.c (lookup_symbol_in_language): New function to allow
6576 re-use of another language's symbol lookup code. (Placed here
6577 temporarily while Ada support is being integrated into the public
6578 tree).
6579 (restore_language): New auxiliary function for
6580 lookup_symbol_in_language.
6581 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6582 temporarily while Ada support is being integrated into the public
6583 tree).
6584
6585 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6586
6587 * Makefile.in (check//%): New.
6588
6589 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6590 (mn10300_store_return_value): Rewrite.
6591 (mn10300_type_align): New.
6592 (mn10300_use_struct_convention): Rewrite.
6593 (mn10300_return_value): New, using all of the above.
6594 (mn10300_pop_frame_regular): Add saved_regs_size.
6595 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6596
6597 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6598 regs if PC is on movm.
6599
6600 2004-06-07 Jim Blandy <jimb@redhat.com>
6601
6602 Add native Linux support for the PowerPC E500.
6603 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6604 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6605 all architectures except the E500.
6606 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6607 #definitions.
6608 (struct gdb_evrregset_t): New type.
6609 (have_ptrace_getsetevrregs): New variable.
6610 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6611 fetch_spe_registers): New functions.
6612 (fetch_register): Call fetch_spe_register as appropriate.
6613 Assert that we're only passed raw register numbers.
6614 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6615 Don't fetch gprs if they're pseudoregisters.
6616 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6617 store_spe_registers): New functions.
6618 (store_register): Call store_spe_register as appropriate.
6619 Assert that we're only passed raw register numbers.
6620 (store_ppc_registers): Call store_spe_registers as appropriate.
6621 Don't store gprs if they're pseudoregisters.
6622
6623 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6624
6625 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6626 struct if one exists, even if we are dealing with a zombie thread.
6627
6628 2004-06-07 Andrew Cagney <cagney@gnu.org>
6629
6630 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6631 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6632 Rename PC_REQUIRES_RUN_BEFORE_USE.
6633 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6634 #ifdef.
6635
6636 2004-06-07 Randolph Chung <tausq@debian.org>
6637
6638 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6639 unwinding after sp has been saved to the stack but before the end
6640 of the prologue, and after the fp has been modified but before it has
6641 been saved to the stack.
6642 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6643 Remove superfluous definitions.
6644 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6645
6646 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6647
6648 Committed by Randolph Chung.
6649 * hppa-linux-nat.c: Include the correct version of the header file
6650 depending on the kernel version.
6651
6652 2004-06-06 Randolph Chung <tausq@debian.org>
6653
6654 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6655 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6656
6657 2004-06-06 Randolph Chung <tausq@debian.org>
6658
6659 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6660 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6661 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6662 * hppa-tdep.c (hppa_symbol_address): New function definition.
6663 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6664
6665 2004-06-06 Randolph Chung <tausq@debian.org>
6666
6667 * hppa-tdep.h (struct value): Forward declaration.
6668 (gdbarch_tdep): Define tdep find_global_pointer method.
6669 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6670 associated with the function we are trying to call, and write it
6671 to the gp register.
6672 (hppa32_convert_from_funct_ptr_addr): New function.
6673 (hppa_find_global_pointer): New function.
6674 (hppa_gdbarch_init): Set default find_global_pointer method; set
6675 convert_from_func_ptr_addr method.
6676 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6677 (hppa_linux_init_abi): Set find_global_pointer method.
6678 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6679
6680 2004-06-06 Randolph Chung <tausq@debian.org>
6681
6682 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6683 to struct value *function.
6684 * gdbarch.c: Regenerate.
6685 * gdbarch.h: Likewise.
6686 * infcall.c (call_function_by_hand): Pass entire function value
6687 to push_dummy_call.
6688
6689 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6690 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6691 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6692 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6693 * arm-tdep.c (arm_push_dummy_call): Likewise.
6694 * avr-tdep.c (avr_push_dummy_call): Likewise.
6695 * cris-tdep.c (cris_push_dummy_call): Likewise.
6696 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6697 * frv-tdep.c (frv_push_dummy_call): Likewise.
6698 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6699 * hppa-tdep.c (hppa32_push_dummy_call)
6700 (hppa64_push_dummy_call): Likewise.
6701 * i386-tdep.c (i386_push_dummy_call): Likewise.
6702 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6703 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6704 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6705 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6706 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6707 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6708 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6709 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6710 (ppc64_sysv_abi_push_dummy_call): Likewise.
6711 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6712 (ppc64_sysv_abi_push_dummy_call): Likewise.
6713 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6714 * s390-tdep.c (s390_push_dummy_call): Likewise.
6715 * sh-tdep.c (sh_push_dummy_call_fpu)
6716 (sh_push_dummy_call_nofpu): Likewise.
6717 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6718 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6719 * vax-tdep.c (vax_push_dummy_call): Likewise.
6720
6721 2004-06-04 Jim Blandy <jimb@redhat.com>
6722
6723 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6724 gdbarch argument to register_size.
6725
6726 * rs6000-tdep.c (rs6000_store_return_value): Use
6727 regcache_cooked_write_part instead of
6728 deprecated_write_register_bytes.
6729 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6730 not gdbarch_deprecated_store_return_value.
6731
6732 * ppc-linux-nat.c (store_register, fetch_register): Remove
6733 incorrect assertions. Simplify and generalize handling of
6734 transfers whose sizes are not multiples of, or less than, sizeof
6735 (PTRACE_XFER_TYPE).
6736
6737 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6738
6739 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6740 as a new thread event.
6741 * thread-db.c (thread_get_info_callback): If the thread is a
6742 zombie, return TD_THR_ZOMBIE.
6743 (thread_from_lwp): If thread_get_info_callback returns
6744 TD_THR_ZOMBIE, check if the thread is still on the thread list
6745 and return a -1 ptid if not found.
6746 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6747 change the status to TARGET_WAITKIND_SPURIOUS.
6748
6749 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6750
6751 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6752 double values in little endian mode.
6753
6754 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6755
6756 Committed by Andrew Cagney.
6757 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6758 after last enum constant to avoid error from IBM C
6759 compiler.
6760
6761 2004-06-02 Jim Blandy <jimb@redhat.com>
6762
6763 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6764 to 'message', and make it local to the lone block that uses it.
6765
6766 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6767
6768 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6769
6770 * ada-exp.y: Update copyright notice.
6771 Include block.h.
6772
6773 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6774 SPECIAL_VARIABLE and unify the treatment of these cases.
6775
6776 (write_attribute_call0): Remove.
6777 (write_attribute_call1): Remove.
6778 (write_attribute_calln): Remove.
6779 (save_qualifier): Add missing semicolon.
6780
6781 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6782 temporarily disabled to allow compilation with FSF head version.
6783
6784 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6785 use individual operators (OP_*) for all attributes.
6786 (exp syntax): Use write_int.
6787 Handle STRING literals with OP_STRING.
6788 (variable syntax): Add limit parameter to calls to
6789 write_object_renaming.
6790
6791 (temp_parse_space): New definition to hold entities that need
6792 only live until the next call to ada_parse.
6793 (string_to_operator): Rename fields of ada_opname_table entries.
6794
6795 (write_var_from_sym): Record block.
6796 (write_var_from_name): Minor reformatting.
6797 Make sure saved name is properly encoded in the case of multiple
6798 matches, and set its language to Ada.
6799 Update comment.
6800 Modify to indicate unresolved name as symbol in the UNRESOLVED
6801 namespace, allocated in temp_parse_space.
6802 (write_int): New function.
6803
6804 (write_object_renaming): Add max_depth parameter to limit
6805 chains of object renamings.
6806 Handle case where root of renaming expression is itself a renaming.
6807 Use temp_parse_space for temporary name buffer.
6808 Handle renamings to dereferenced pointers (___XEXA suffices).
6809
6810 (ada_parse, yyerror, string_to_operator,
6811 write_var_from_sym, write_var_from_name, write_attribute_call0,
6812 write_attribute_call1, write_attribute_calln,
6813 write_object_renaming): Protoize.
6814
6815 (_initialize_ada_exp): New function.
6816
6817 * ada-lang.c: Update copyright notice.
6818 General terminology change to conform to GNAT compiler usage:
6819 mangle => encode, demangle => decode
6820 Include gdb_obstack.h.
6821 Include gdb_regex.h
6822 Include frame.h
6823 Include hashtab.h
6824 Include completer.h
6825 Include gdb_stat.h
6826 Include block.h
6827 Include infcall.h
6828
6829 (ADA_RETAIN_DOTS): Make sure this is defined.
6830 (TRUNCATION_TOWARDS_ZERO): Define.
6831 (struct string_vector): Define.
6832 (unresolved_names): Remove definition.
6833 (xnew_string_vector): New function.
6834 (string_vector_append): New function.
6835 (extract_string): Make static.
6836 (ada_unqualified_name): New function.
6837 (add_angle_brackets): New function.
6838 (function_name_from_pc): New function.
6839 (place_on_stack): Rename to ensure_lval.
6840
6841 (ensure_lval): Renamed from place_on_stack.
6842 Make identity on lvals.
6843 Update comment.
6844 (is_nonfunction): New interface.
6845 Only symbols in LOC_CONST class can be enumerals.
6846 (fill_in_ada_prototype): Remove; now independent of language.
6847 (add_defn_to_vec): Add obstack and symtab arguments.
6848 Use obstack to hold collected definitions.
6849 (num_defns_collected): New function.
6850 (defns_collected): New function.
6851 (ada_resolve_subexp): Rename to resolve_subexp.
6852 (resolve_subexp): Renamed from ada_resolve_subexp.
6853 (ada_op_name): Return non-const result.
6854 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6855 other purposes.
6856
6857 (to_fixed_array_type): Add declaration.
6858 (coerce_unspec_val_to_type): Remove offset parameter.
6859 (find_sal_from_funcs_and_line): New interface.
6860 (find_line_in_linetable): Ditto.
6861
6862 (all_sals_for_line): Rename to ada_sals_for_line and make
6863 global.
6864 Add new parameter. When set, do not ask the user to choose the
6865 instance, but use the first one found instead.
6866 Use given line number in returned sals.
6867 Fix comment.
6868 Skip the prologue if funfirstline is set.
6869 Correct for memory leak when 0 lines found.
6870
6871 (value_pos_atr): Use pos_atr.
6872 (pos_atr): New function.
6873 (standard_lookup): Add block parameter.
6874
6875 (makeTimeStart): Remove declaration and uses.
6876 (makeTimeStop): Remove declaration and uses.
6877
6878 (ada_completer_word_break_characters): Allow for VMS.
6879 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6880 (raise_sym_name): New constant.
6881 (raise_unhandled_sym_name): New constant.
6882 (raise_assert_sym_name): New constant.
6883 (process_raise_exception_name): New constant.
6884 (longest_exception_template): New constant.
6885 (warning_limit): New variable to limit warnings during expression
6886 evaluation.
6887 (warnings_issued): New variable to keep track of warnings issued.
6888 (known_runtime_file_name_patterns): New constant.
6889 (known_auxiliary_function_name_patterns): New constant.
6890 (symbol_list_obstack): New variable.
6891
6892 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6893 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6894 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6895 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6896 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6897 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6898 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6899 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6900 and strcmp.
6901
6902 (ada_get_field_index): New function.
6903 (lim_warning): New function.
6904 (ada_translate_error_message): New function.
6905 (MAX_OF_SIZE): New function.
6906 (MIN_OF_SIZE): New function.
6907 (UMAX_OF_SIZE): New function.
6908 (UMIN_OF_SIZE): New function.
6909 (discrete_type_high_bound): New function.
6910 (discrete_type_low_bound): New function.
6911 (base_type): New function.
6912 (do_command): Remove.
6913
6914 (ada_update_initial_language): Use language_ada, not language_unknown.
6915 (ada_encode): Renamed from ada_mangle.
6916 Obey ADA_RETAIN_DOTS.
6917 (ada_decode): Renamed from ada_demangle.
6918 Update coding conventions.
6919 (decoded_names_store): New hash table.
6920 (ada_decode_symbol): New function.
6921 (ada_la_decode): New function.
6922
6923 (modify_general_field): Correct computations of offset and bit
6924 position.
6925 (desc_base_type): Handle ref types, too.
6926 (ada_is_direct_array_type): New function.
6927
6928 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6929 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6930 (ada_is_bogus_array_descriptor,ada_type_of_array,
6931 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6932 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6933 ada_is_array_descriptor_type.
6934
6935 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6936 (ada_is_packed_array_type): Handle pointers or
6937 references to packed arrays as well.
6938 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6939 (decode_packed_array_type): Search for the packed array type
6940 symbol in the currently selected block and associated
6941 superblocks too.
6942 Use lookup_symbol again.
6943
6944 (decode_packed_array): Handle pointers and references.
6945 Update call to coerce_unspec_val_to_type.
6946 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6947 (ada_value_primitive_packed_val): Improve comment.
6948
6949 (ada_index_type): Substitute int type for "undefined".
6950 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6951 ada_array_langth, ada_is_string_type): Use renamed
6952 ada_is_simple_array_type.
6953 (empty_array): New function.
6954
6955 (ada_resolve): Rename to resolve.
6956 (resolve): Make static.
6957 Call renamed resolve_subexp.
6958 Update comment.
6959 (ada_resolve_subexp): Rename to resolve_subexp.
6960 (resolve_subexp): Update comment.
6961 Decomment disabled code.
6962 Add LOC_COMPUTED* cases.
6963 Modify to use temporary struct symbols (marked as being in
6964 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6965 OP_UNRESOLVED_VALUE.
6966 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6967 Add OP_STRING case.
6968 Remove OP_ARRAY.
6969 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6970 Use new ada_lookup_symbol_list interface.
6971 Use new ada_resolve_function interface.
6972 Remove OP_TYPE case.
6973
6974 (ada_args_match): Idiot proof against null actuals.
6975 Use intermediate variables to clarify.
6976 (ada_resolve_function): Update comment and interface.
6977 (mangled_ordered_before): Rename to encoded_ordered_before and
6978 update comment.
6979 (sort_choices): Update comment and interface.
6980 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6981 (user_select_syms): New interface.
6982 Use new sort_choices interface.
6983 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6984 (possible_user_operator_p): Idiot-proof against null values.
6985 (ada_simple_renamed_entity): Don't make cleanup; rely on
6986 caller to free result string.
6987 Remove const from return type.
6988 (make_array_descriptor): Rename uses of place_on_stack to
6989 ensure_lval.
6990 Make sure that arrays are on stack.
6991
6992 (HASH_SIZE): Define.
6993 (struct cache_entry): Define.
6994 (cache_space): Define.
6995 (cache): Define.
6996 (clear_ada_sym_cache): New function.
6997 (find_entry): New function.
6998 (lookup_cached_symbol): New function.
6999 (defn_vector_size): Define.
7000 (cache_symbol): New function.
7001 (defn_symbols): Remove.
7002
7003 (standard_lookup): Use lookup_symbol_in_language to get effect of
7004 C lookup.
7005 Cache results.
7006
7007 (symbol_completion_match): New function.
7008 (symbol_completion_add): New function.
7009 (ada_make_symbol_completion_list): New function.
7010
7011 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7012 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7013 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7014 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7015
7016 (ada_lookup_simple_minsym): New function.
7017 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7018
7019 (add_symbols_from_enclosing_procs): New interface.
7020 Conditionalize more helpfully.
7021 Don't bother if program isn't running.
7022 Use new interface to get_frame_block.
7023 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7024
7025 (remove_extra_symbols): New interface.
7026 (xget_renaming_scope): New function.
7027 (is_package_name): New function.
7028 (renaming_is_visible): New function.
7029 (remove_out_of_scope_renamings): New function.
7030
7031 (ada_lookup_symbol_list): New interface.
7032 Properly reinitialize the symbol list obstack.
7033 Don't call add_symbols_from_enclosing_procs if we start from a
7034 static or global block.
7035 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7036 add_symbols_from_enclosing_procs.
7037 Add symtab data to cached entries.
7038 Handle symbols prefixed with
7039 "standard__" specially; strip prefix and don't look in local symbols.
7040 Do not include out of scope renaming symbols in list of
7041 symbols returned.
7042 Add const to block parameter.
7043 Move check for non-local, non-global symbols earlier.
7044 Remove timing stuff.
7045 (ada_lookup_symbol): New interface.
7046 Find symtab as well.
7047 (ada_lookup_symbol_nonlocal): New function.
7048
7049 (is_name_suffix): Enhance suffix detection to recognize
7050 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7051 (is_dot_digits_suffix): New function.
7052 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7053
7054 (ada_add_block_symbols): New interface. Use obstack to return results
7055 in a vector of struct ada_symbol_infos. Add symtab argument.
7056 Use new interface to add_defn_to_vec.
7057 Remove calls to fill_in_ada_prototype.
7058 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7059
7060 (ada_finish_decode_line_1): Add const qualification to local to fix
7061 warning.
7062 Start looking in static block for functions to avoid attempts
7063 to search frame chain for up-level variables.
7064 Adapt to new ada_sals_for_line interface.
7065 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7066 Handle quoting of the function name inside the spec string.
7067 Skip prologue when funfirstline is set and update the
7068 function documentation to that effect.
7069
7070 (debug_print_lines, debug_print_block, debug_print_blocks,
7071 debug_print_symtab): Remove.
7072
7073 (ada_main_name): New function.
7074 (ada_exception_breakpoint_type): New function.
7075 (is_known_support_routine): New function.
7076 (ada_find_printable_frame): Renamed from find_printable_frame and made
7077 global.
7078 Remove level parameter.
7079 Use new interface to select_frame.
7080
7081 (begin_command): Remove.
7082 (ada_adjust_exception_stop): New function.
7083 (ada_print_exception_stop): New function.
7084 (exception_name_from_cond): New function.
7085 (ada_report_exception_break): Replace disabled code with
7086 conditionalization on GNAT_GDB.
7087 Get the exception name from the condition string.
7088 Remove and move functionality into new functions
7089 ada_print_exception_breakpoint_task and
7090 ada_print_exception_breakpoint_nontask.
7091 (error_breakpoint_runtime_sym_not_found): New function.
7092 (is_runtime_sym_defined): New function.
7093 (ada_breakpoint_rewrite): Uncomment suppressed code.
7094 Use symbolic error-message and runtime-symbol names.
7095 Surround runtime symbol names in quotes.
7096 Allow non-specific breakpoints on exceptions and assertions before
7097 program starts.
7098
7099 (ada_is_tagged_type): Add parameter.
7100 (ada_is_tag_type): New function.
7101 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7102 (ada_variant_discrim_type): Ditto.
7103 (value_tag_from_contents_and_address): New function.
7104 (type_from_tag): New function.
7105 (struct tag_args): New structure used to communicate with
7106 ada_tag_name_1.
7107 (ada_tag_name_1): New function.
7108 (ada_tag_name): New function.
7109
7110 (ada_scan_number): Update comment.
7111 (find_struct_field): New function.
7112 (ada_search_struct_field): Make static.
7113 (ada_value_struct_elt): New version that returns references when
7114 given pointers or references to structs.
7115 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7116 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7117 interface.
7118 (ada_value_ind): Use new ada_to_fixed_value interface.
7119 (ada_coerce_ref): Ditto.
7120 (field_offset): Remove.
7121
7122 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7123 (ada_find_renaming_symbol): New function.
7124 (ada_prefer_type): Prefer named types over unnamed ones.
7125 (variant_field_index): New function.
7126 (contains_variant_part): Removed: subsumed by variant_field_index.
7127 (ada_template_to_fixed_record_type): New function, mostly from
7128 template_to_fixed_record_type.
7129 (template_to_fixed_record_type):
7130 Do not scan the type fields beyond the last one; prevents a
7131 potential SEGV.
7132 Handle case where variant field is listed BEFORE discriminant it
7133 depends on.
7134 Fix calculation of record length when bit length is
7135 not evenly divisible by char length.
7136 Move code to ada_template_to_fixed_record_type and call it.
7137
7138 (template_to_static_fixed_type): Revise comment.
7139 Modify to work on ordinary record types as well as templates,
7140 so as to handle fields that use ___XVE or ___XVU encodings.
7141 (to_record_with_fixed_variant_part): Fill out comment.
7142 Initialize C++ stuff in right type.
7143 Allow case where DVAL is null.
7144 Handle case where variant field is not last.
7145 Fix typo concerning record length.
7146 (to_fixed_record_type): Decomment disabled code.
7147 (to_fixed_record_type): Use variant_field_index instead of
7148 contains_variant_part.
7149 (to_fixed_variant_branch_type): Ditto.
7150 (to_fixed_array_type): Decomment disabled code.
7151 (ada_to_fixed_type): Convert tagged types to the specific type.
7152 Deactivate the size-check for array types in order to avoid
7153 some false size alarms.
7154 (to_static_fixed_type): Decomment disabled code.
7155 Modify to call template_to_static_fixed_type
7156 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7157 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7158 Remove valaddr argument, as it is never really used.
7159 (ada_to_fixed_value): Change interface to act on single struct value*
7160 operand.
7161 (adjust_pc_past_prologue): New function.
7162 (ada_attribute_name): Modify to take enum exp_opcode argument.
7163
7164 (ada_enum_name): Recognize new homonym-distinguishing convention.
7165 Adjust local variable's type to remove compiler warning.
7166 Fix a small problem in the part that unqualifies the enumeration name.
7167 (ada_value_binop): New function.
7168 (ada_value_equal): New function.
7169
7170 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7171 Don't give error message when not doing normal evaluation
7172 and a tagged type doesn't seem to contain a structure member.
7173 Give error message for packed arrays.
7174 For indexing arrays, handle pointers to packed arrays correctly.
7175 Handle case of 'first and 'last attributes of bare integral type
7176 without encoded subtype info.
7177 Remove some unnecessary casts.
7178 Fix uninitialized value of type in computing 'first, 'last, or 'length
7179 of array object.
7180 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7181 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7182 calls.
7183 Attributes are now exp_opcode values.
7184 Correct treatment of 'modulus.
7185 Better error message for taking 'length of wrong kind of type;
7186 improve comment.
7187 Change EVAL_NORMAL to noside for consistency.
7188 Use ada_value_binop for DIV, MOD, REM.
7189 Make special case out of array of length 0, since an argument
7190 of 0 upsets some platforms' malloc.
7191 Use OP_STRING instead of OP_ARRAY.
7192 For slice, add check that we have an array type before extracting
7193 a slice out of it. Avoids a SEGV.
7194 When evaluating an array slice, if the array type is a reference to
7195 an aligner type, then replace the aligner type by the actual type.
7196 Decomment disabled code.
7197 Remove some dead code.
7198 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7199 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7200 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7201 and UNOP_MBR to UNOP_IN_RANGE.
7202 If an array type has a parallel ___XVE type, then use it.
7203 Turn arrays into pointers for lvalue arrays.
7204 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7205 bounds error and handle 0-length slices.
7206 Use lim_warning.
7207 When selecting fields, apply ada_to_fixed_value (because the fields
7208 might have ___XVU or ___XVE encodings even if not dynamic.)
7209 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7210 (ada_is_system_address_type): New function.
7211
7212 (get_var_value): Use new interface to ada_lookup_symbol_list.
7213 (get_int_var_value): New interface.
7214 (to_fixed_range_type): Allow unknown bound, with warning.
7215 (ada_is_modular_type): Decomment disabled code.
7216 (ADA_OPERATORS): New definition.
7217 (ada_operator_length): New function.
7218 (ada_expr_op_name): New function.
7219 (ada_forward_operator_length): New function.
7220 (ada_dump_subexp_body): New function.
7221 (ada_print_subexp): New function.
7222 (ada_exp_descriptor): New constant.
7223 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7224 (ada_language_defn): Add ada_exp_descriptor entry.
7225 Change ada_parse => parse.
7226 Add post-parser entry.
7227 Use ada-specific non-local symbol lookup.
7228 Don't use C-style arrays.
7229 String lower-bound is 1.
7230 Decomment disabled code.
7231 (parse): New function.
7232 New fields ada_translate_error_message, ada_lookup_symbol,
7233 ada_lookup_minimal_symbol.
7234
7235 * ada-lang.h: Update copyright dates.
7236 Replace the mangle/demangle terminology throughout by the
7237 more appropriate encode/decode one.
7238 Include breakpoint.h.
7239 Forward declare struct partial_symbol, struct block.
7240 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7241 (EXTRACT_ADDRESS): Remove.
7242 (EXTRACT_INT): Remove.
7243 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7244 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7245 (MAX_RENAMING_CHAIN_LENGTH): Define.
7246 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7247
7248 (enum task_states): Remove.
7249 ada_task_states: Remove.
7250 (fat_string): Remove.
7251 (struct entry_call): Remove.
7252 (struct task_fields): Remove.
7253 (struct task_entry): Remove.
7254
7255 (struct ada_symbol_info): Define.
7256 (enum ada_attribute): Remove.
7257 (enum ada_operator): Define.
7258
7259 (ada_get_field_index): Declare.
7260 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7261 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7262 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7263 (ada_lookup_symbol_list): New interface.
7264 (ada_decode_symbol): Declare.
7265 (ada_decode): Declare.
7266 (ada_lookup_symbol): New interface.
7267 (ada_update_initial_language): Declare.
7268 (ada_lookup_simple_minsym): Declare.
7269 (user_select_syms): New interface.
7270 (ada_sals_for_line): Declare.
7271 (ada_is_tagged_type): New interface.
7272 (ada_tag_name): Declare.
7273 (ada_lookup_struct_elt_type): Remove declaration.
7274 (ada_search_struct_field): Remove declaration.
7275 (ada_attribute_name): New interface.
7276 (ada_is_system_address_type): Declare.
7277 (ada_to_fixed_value): Remove declaration.
7278 (ada_template_to_fixed_record_type_1): Declare.
7279 (get_int_var_value): New interface.
7280 (ada_find_any_symbol): Declare.
7281 (ada_find_renaming_symbol): Declare.
7282 (ada_mangle): Rename to ada_encode.
7283 (ada_simple_renamed_entity): Remove const.
7284 (ada_main_name): Declare.
7285 (get_current_task): Rename to ada_get_current_task.
7286 (get_entry_number): Remove declaration.
7287 (ada_report_exception_break): Remove declaration.
7288 (ada_print_exception_breakpoint_nontask): Declare.
7289 (ada_print_exception_breakpoint_task): Declare.
7290 (ada_find_printable_frame): Declare.
7291
7292 * ada-lex.l: Update copyright notices.
7293 Use xmalloc and xfree instead of malloc and free.
7294 Use new interface to name_lookup.
7295 Use new interface to
7296 ada_mangle=>ada_encode.
7297 Redo handling of '$...' variable to parallel current treatment
7298 in c-exp.y.
7299 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7300 digit_to_int, strtoulst, processInt, processReal, processId,
7301 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7302 yywrap): Protoize.
7303
7304 (processInt): Use cast to remove harmless warning.
7305 (processReal): Modify to get rid of compiler warning on scan formats.
7306
7307 (processId): Replace xmalloc with obstack_alloc for name and remove
7308 call to ada_name_string_cleanup.
7309 Remove obsolete disabled code.
7310 (name_lookup): Ditto.
7311 New interface.
7312 Use obsavestring on temp_parse_space instead of savestring
7313 on name, and remove call to ada_name_string_cleanup.
7314 Free string returned from ada_simple_renamed_entity.
7315 Use new interface to ada_lookup_symbol_list.
7316 Decomment disabled code.
7317 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7318 not types.
7319 When a type name lookup succeeds as a result of
7320 lookup_primitive_typename, check for regular type entry that has not
7321 yet been read in.
7322 Limit length of chain of renamed symbols we are willing to follow.
7323 Do not break names beginning with "standard__" into segments.
7324 (block_lookup): Use new interface to ada_lookup_symbol_list.
7325
7326 * ada-typeprint.c: Update copyright notice.
7327 (demangled_type_name): Rename to decoded_type_name.
7328 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7329 (print_range_bound): Correct handling of negative
7330 bounds that make the index type looked unsigned under STABS.
7331 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7332 (print_range_type_named): Use the builtin int type if no type
7333 corresponding to the given type name could be found.
7334 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7335 Add some bullet-proofing.
7336 (print_variant_clauses): Allow for variant branches with ___XVU
7337 encodings that are not dynamic fields.
7338 Use new interface to ada_is_tagged_type.
7339 (print_record_type): Allow for fields with ___XVE encodings that
7340 are not dynamic fields.
7341 Use new interface to ada_is_tagged_type.
7342 (ada_print_type): ada_is_array_descriptor =>
7343 ada_is_array_descriptor_type.
7344
7345 * ada-valprint.c: Update copyright notice.
7346 Include gdb_string.h
7347 Include infcall.h
7348 (ui_memcpy): New function.
7349 (ada_print_floating): New function.
7350 (ada_print_str): Order arguments correctly.
7351 Correct handling of empty arrays and arrays of 0-length items.
7352 ada_is_array_descriptor => ada_is_array_descriptor_type
7353 Print values of type System.Address in hexadecimal format.
7354 Use ada_print_floating to print floating-point numbers in Ada format.
7355 Print class tag values with type names.
7356 No longer print the address of reference values. Avoids
7357 a potential confusion.
7358 (ada_value_print): Stop printing the object type for reference
7359 values, but preserve that behavior for access types. Avoids
7360 a potential confusion.
7361 Simplify one conditional expression, as the first part is now
7362 necessarily true.
7363 ada_is_array_descriptor => ada_is_array_descriptor_type
7364 Add check for arrays for null records, and print them by hand.
7365
7366 2004-06-01 Jim Blandy <jimb@redhat.com>
7367
7368 * ppc-tdep.h: Delete unused 'regoff' member.
7369 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7370
7371 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7372
7373 Fix PR symtab/1661.
7374 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7375 (hpread_read_struct_type): Likewise.
7376
7377 2004-06-01 Andrew Cagney <cagney@gnu.org>
7378
7379 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7380 instead of xasprintf.
7381 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7382 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7383 (mi_cmd_data_list_register_names)
7384 (mi_cmd_data_list_changed_registers)
7385 (mi_cmd_data_list_register_values)
7386 (get_register, mi_cmd_data_write_register_values)
7387 (mi_cmd_data_write_register_values)
7388 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7389 (mi_cmd_target_download, mi_cmd_target_select)
7390 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7391 (mi_execute_cli_command, mi_execute_async_cli_command)
7392 (mi_execute_async_cli_command): Ditto.
7393 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7394 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7395
7396 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7397 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7398 error_last_message instead of mi_error_last_message.
7399 * mi/mi-main.c (mi_error_last_message): Delete function.
7400
7401 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7402 "invalid number of columns" error. Delete redundant "out of
7403 memory" check.
7404
7405 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7406
7407 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7408 (gregset_t, fpregset_t): Remove typedefs.
7409 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7410 (REG_OFFSET): Rename argument.
7411 (i386bsd_r_reg_offset): Rename from reg_offset.
7412 (REG_ADDR): Remove macro.
7413 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7414 functions.
7415 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7416 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7417 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7418 instead of supply_gregset.
7419 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7420 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7421 instead of fill_gregset.
7422 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7423
7424 * i386bsd-nat.c: Don't include "gregset.h".
7425 (supply_gregset, fill_gregset): Make static.
7426 (supply_fpregset, fill_fpregset): Remove.
7427 * Makefile.in (i386bsd-nat.o): Update dependencies.
7428
7429 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7430
7431 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7432 "gdb_assert.h". Con't include "gregset.h".
7433 (fbsd_make_corefile_notes): Use regset-based core file support
7434 instead off fill_gregset and fill_fpregset.
7435 * Makefile.in (fbsd-proc.o): Update dependencies.
7436
7437 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7438 instructions.
7439 (m88k_frame_prev_register): Simplify code a bit.
7440
7441 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7442 (amd64_collect_fpregset): New function.
7443 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7444
7445 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7446
7447 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7448 (i386_collect_gregset): New function.
7449 (i386_supply_fpregset): Adjust comment.
7450 (i386_collect_fpregset): New function.
7451 (i386_regset_from_core_section): Use i386_collect_gregset and
7452 i386_collect_fpregset.
7453
7454 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7455 handle VALUEP being null.
7456
7457 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7458
7459 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7460
7461 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7462
7463 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7464 assembler in OpenBSD 3.5-current.
7465 (amd64obsd_sigcontext_addr): Likewise.
7466
7467 2004-05-28 Jim Blandy <jimb@redhat.com>
7468
7469 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7470 register set, so our regcache isn't declared "legacy" and our E500
7471 pseudoregister read and write functions aren't ignored.
7472 (rs6000_register_byte, rs6000_register_raw_size,
7473 rs6000_register_virtual_type, rs6000_register_convertible,
7474 rs6000_register_convert_to_virtual,
7475 rs6000_register_convert_to_raw): Deleted.
7476 (rs6000_register_type, rs6000_convert_register_p,
7477 rs6000_register_to_value, rs6000_value_to_register): New
7478 functions.
7479 (rs6000_gdbarch_init): Don't register
7480 gdbarch_deprecated_register_size,
7481 gdbarch_deprecated_register_bytes,
7482 gdbarch_deprecated_register_byte,
7483 gdbarch_deprecated_register_raw_size,
7484 gdbarch_deprecated_register_virtual_type,
7485 gdbarch_deprecated_register_convertible,
7486 gdbarch_deprecated_register_convert_to_virtual, or
7487 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7488 register gdbarch_register_type, gdbarch_convert_register_p,
7489 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7490
7491 2004-05-26 Jim Blandy <jimb@redhat.com>
7492
7493 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7494 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7495 functions, updated to match the register numberings used in GCC.
7496 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7497 rs6000_dwarf2_reg_to_regnum as register number conversions
7498 functions for STABS and Dwarf2.
7499
7500 2004-05-26 Randolph Chung <tausq@debian.org>
7501
7502 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7503 in header file.
7504
7505 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7506
7507 * NEWS: Document new "start" command.
7508
7509 2004-05-25 Randolph Chung <tausq@debian.org>
7510
7511 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7512 hppa-linux.
7513
7514 2004-05-25 Randolph Chung <tausq@debian.org>
7515
7516 * hppa-hpux-tdep.c (offsetof): Define.
7517 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7518 (hppa32_hpux_frame_base_before_sigtramp)
7519 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7520 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7521 (hppa64_hpux_frame_base_before_sigtramp)
7522 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7523 functions.
7524 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7525 (hppa_hpux_sigtramp_frame_unwind_cache)
7526 (hppa_hpux_sigtramp_frame_this_id)
7527 (hppa_hpux_sigtramp_frame_prev_register)
7528 (hppa_hpux_sigtramp_frame_unwind)
7529 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7530 (hppa_hpux_init_abi): Register sigtramp unwinder.
7531 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7532
7533 2004-05-25 Randolph Chung <tausq@debian.org>
7534
7535 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7536 and multiple stack unwinds.
7537 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7538
7539 2004-05-25 Andrew Cagney <cagney@gnu.org>
7540
7541 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7542 * symfile-mem.h: Delete file.
7543 * symfile-mem.c: Do not include "symfile-mem.h".
7544 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7545 "struct bfd_section". When an error do not bother returning NULL.
7546 (add_symbol_file_from_memory_command): Use "struct bfd" and
7547 "struct bfd_section".
7548 * Makefile.in (symfile_mem_h): Delete.
7549 (symfile-mem.o): Update dependencies.
7550
7551 2004-05-25 Nick Roberts <nickrob@gnu.org>
7552
7553 * gdb-mi.el: New file.
7554
7555 2004-05-25 Andrew Cagney <cagney@gnu.org>
7556
7557 * inftarg.c: Include "observer.h".
7558 (child_attach, child_create_inferior): Notify inferior_created.
7559 * corelow.c: Include "observer.h".
7560 (core_open): Notify inferior_created.
7561 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7562
7563 2004-05-25 Andrew Cagney <cagney@gnu.org>
7564
7565 * target.h (struct target_ops): Add from_tty to
7566 to_create_inferior.
7567 (target_create_inferior, find_default_create_inferior): Update.
7568 * infcmd.c (run_command): Update.
7569 * wince.c (child_create_inferior): Update.
7570 * win32-nat.c (child_create_inferior): Update.
7571 * uw-thread.c (uw_thread_create_inferior): Update.
7572 * thread-db.c (thread_db_create_inferior): Update.
7573 * target.c (debug_to_create_inferior)
7574 (find_default_create_inferior): Update.
7575 (maybe_kill_then_create_inferior): Update.
7576 * sol-thread.c (sol_thread_create_inferior): Update.
7577 * remote.c (extended_remote_async_create_inferior)
7578 (extended_remote_create_inferior): Update.
7579 * remote-vx.c (vx_create_inferior): Update.
7580 * remote-st.c (st2000_create_inferior): Update.
7581 * remote-sim.c (gdbsim_create_inferior): Update.
7582 * remote-sds.c (sds_create_inferior): Update.
7583 * remote-rdp.c (remote_rdp_create_inferior): Update.
7584 * remote-rdi.c (arm_rdi_create_inferior): Update.
7585 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7586 * remote-e7000.c (e7000_create_inferior): Update.
7587 * procfs.c (procfs_create_inferior): Update.
7588 * ocd.c (ocd_create_inferior): Update.
7589 * ocd.h (ocd_create_inferior): Update.
7590 * nto-procfs.c (procfs_create_inferior): Update.
7591 * monitor.c (monitor_create_inferior): Update.
7592 * lin-lwp.c (lin_lwp_create_inferior): Update.
7593 * inftarg.c (child_create_inferior): Update.
7594 * hpux-thread.c (hpux_thread_create_inferior): Update.
7595 * gnu-nat.c (gnu_create_inferior): Update.
7596
7597 2004-05-25 Andrew Cagney <cagney@gnu.com>
7598
7599 * MAINTAINERS: Update e-mail address.
7600
7601 2004-05-24 Randolph Chung <tausq@debian.org>
7602
7603 * thread.c (info_threads_command, thread_apply_all_command)
7604 (thread_apply_command, thread_command, do_captured_thread_select):
7605 Remove HPUXHPPA-specific code.
7606
7607 2004-05-24 Randolph Chung <tausq@debian.org>
7608
7609 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7610 unused symbols.
7611 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7612 references.
7613
7614 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7615
7616 * infcmd.c (kill_if_already_running): New function, extracted
7617 from run_command().
7618 (run_command): Replace extracted code by call to
7619 kill_if_already_running().
7620 (start_command): New function.
7621 (_initialize_infcmd): Add "start" command.
7622
7623 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7624
7625 Add OpenBSD/m88k support.
7626 * NEWS (New native configurations): Mention OpenBSD/m88k.
7627 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7628 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7629 * Makefile.in (m88k_tdep_h): New variable.
7630 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7631 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7632 * configure.host: Add m88*-*-openbsd*.
7633 * configure.tgt: Add m88*-*-openbsd*.
7634
7635 2004-05-24 Jim Blandy <jimb@redhat.com>
7636
7637 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7638 to approve changes.
7639
7640 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7641
7642 * symtab.c (fixup_section): Search section table when lookup by
7643 name fails.
7644
7645 2004-05-24 Randolph Chung <tausq@debian.org>
7646
7647 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7648 be "small_struct".
7649
7650 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7651
7652 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7653 register number in regcache_raw_collect call.
7654 (m68kbsd_collect_fpregset): Likewise.
7655 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7656
7657 * regset.h (struct regset): Add back `regset' member.
7658
7659 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7660
7661 * configure.in: Check for td_pcb in `struct thread'.
7662 * configure, config.in: Regenerated.
7663
7664 * dpx2-nat.c: Remove file.
7665 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7666 (dpx2-nat.o): Remove dependencies.
7667
7668 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7669 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7670 (amd64obsd_supply_pcb): New function.
7671 (_initialize_amd64obsd_nat): Enable libkvm interface.
7672 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7673 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7674 (LOADLIBES): New variable.
7675
7676 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7677 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7678 (sparc32nbsd_supply_pcb): New function.
7679 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7680 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7681 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7682 (LOADLIBES): New variable.
7683
7684 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7685
7686 * bsd-kvm.c, bsd-kvm.h: New files.
7687 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7688 "bsd-kvm.h".
7689 (i386fbsd_supply_pcb): New function.
7690 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7691 (i386fbsd-nat.o): Update dependencies.
7692 (bsd_kvm_h): New variable.
7693 (bsd-kvm.o): New dependency.
7694 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7695 (LOADLIBES): New variable.
7696
7697 * regset.c: Tweak comment.
7698 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7699 macro.
7700 * regset.h: Update copyright year.
7701 (struct regset): Remove `descr' member, add `gdbarch' member.
7702 (regset_alloc): Adjust prototype and comment.
7703 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7704 (i386_supply_fpregset): Likewise.
7705 (i386_regset_from_core_section): Update call to regset_alloc.
7706 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7707 REGSET->arch.
7708 (i386obsd_aout_regset_from_core_section): Update call to
7709 regset_alloc.
7710 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7711 REGSET->arch.
7712 (i386nbsd_aout_regset_from_core_section): Update call to
7713 regset_alloc.
7714 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7715 REGSET->arch.
7716 (amd64_regset_from_core_section): Update call to regset_alloc.
7717 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7718 REGSET->arch.
7719 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7720 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7721 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7722 (sparc32nbsd_init_abi): Update call to regset_alloc.
7723 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7724 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7725 (sparc64obsd_init_abi): Update call to regset_alloc.
7726 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7727 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7728 (sparc64nbsd_init_abi): Update call to regset_alloc.
7729 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7730 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7731 (sparc64fbsd_init_abi): Update call to regset_alloc.
7732
7733 2004-05-22 Jim Blandy <jimb@redhat.com>
7734
7735 * ppc-tdep.h (spe_register_p): New declaration.
7736 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7737 ppc_spefscr_regnum.
7738 * rs6000-tdep.c (spe_register_p): New function.
7739 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7740 spefscr.
7741 (rs6000_gdbarch_init): Initialize the new members of the tdep
7742 structure.
7743
7744 2004-05-21 Jim Blandy <jimb@redhat.com>
7745
7746 * ppc-linux-nat.c (fetch_register): Move code back to be next
7747 to the comment that describes it. (Moved code, instead of
7748 comment, for symmetry with store_register.)
7749
7750 Allocate regset structures in the gdbarch's obstack, not using
7751 xmalloc.
7752 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7753 Add 'arch' argument. Allocate the regset on arch's obstack, not
7754 using xmalloc.
7755 * regset.h (regset_alloc): Update declaration.
7756 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7757 gdbarch argument.
7758 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7759 * i386-tdep.c (i386_regset_from_core_section): Same.
7760 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7761 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7762 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7763 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7764 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7765 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7766
7767 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7768
7769 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7770
7771 2004-05-21 Jim Blandy <jimb@redhat.com>
7772
7773 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7774 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7775
7776 2004-05-20 Jim Blandy <jimb@redhat.com>
7777
7778 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7779
7780 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7781
7782 * regset.h: Make prototype const-correct.
7783 * regset.c (regset_xmalloc): Make const-correct.
7784
7785 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7786
7787 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7788 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7789 (symbol_search_name): Declare.
7790
7791 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7792 (iter_name_next_hashed): Ditto.
7793 (iter_name_next_linear): Ditto.
7794 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7795
7796 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7797 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7798 (symbol_search_name): New function.
7799
7800 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7801
7802 * minsyms.c (build_minimal_symbol_hash_tables): Change
7803 test for adding to demangled hash table to check for difference
7804 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7805
7806 2004-05-19 Jim Blandy <jimb@redhat.com>
7807
7808 Use a constructor function to create regset structures.
7809 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7810 (struct regset): Use supply_regset_ftype. Add new
7811 'collect_regset' member.
7812 (regset_xmalloc): New declaration.
7813 * regset.c: New file.
7814 * am64-tdep.c (amd64_regset_from_core_section): Use
7815 regset_xmalloc to construct regset structures.
7816 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7817 * i386-tdep.c (i386_regset_from_core_section): Same.
7818 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7819 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7820 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7821 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7822 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7823 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7824 * Makefile.in (COMMON_OBS): Add regset.o.
7825 (regset.o): New rule.
7826
7827 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7828
7829 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7830 and pthread_cond_wait.c.
7831
7832 2004-05-18 Jim Blandy <jimb@redhat.com>
7833
7834 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7835 before the mach-specific switch, and then let the individual cases
7836 override the defaults, rather than leaving them uninitialized
7837 until the switch and then setting them in each case.
7838
7839 2004-05-18 Randolph Chung <tausq@debian.org>
7840
7841 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7842 millicode functions.
7843
7844 2004-05-18 Randolph Chung <tausq@debian.org>
7845
7846 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7847 references to dld_flags_buffer consistent.
7848
7849 2004-05-18 Randolph Chung <tausq@debian.org>
7850
7851 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7852 it for unwinding the stack.
7853
7854 2004-05-18 Randolph Chung <tausq@debian.org>
7855
7856 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7857 Undefine these so we can overide them using gdbarch.
7858
7859 2004-05-18 Randolph Chung <tausq@debian.org>
7860
7861 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7862 handling for 64-bit HPUX (elf).
7863
7864 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7865
7866 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7867 constants.
7868 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7869 * ia64-tdep.c (examine_prologue): Likewise.
7870 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7871 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7872
7873 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7874
7875 * vax-tdep.c (vax_return_value): Implement
7876 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7877
7878 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7879
7880 * vax-tdep.c (vax_return_value): Fix typo.
7881
7882 2004-05-17 Andrew Cagney <cagney@redhat.com>
7883
7884 * MAINTAINERS: Mark Salter was also responsible for
7885 testsuite/config/
7886
7887 * NEWS: Mention signal fixes.
7888
7889 2004-05-17 Randolph Chung <tausq@debian.org>
7890
7891 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7892 check to see if we are unwinding an export stub. Export stubs clobber
7893 the %rp in the call path and stores the original rp in a stack slot.
7894
7895 2004-05-17 Jim Blandy <jimb@redhat.com>
7896
7897 * MAINTAINERS: Update address for J.T. Conklin.
7898
7899 2004-05-17 Randolph Chung <tausq@debian.org>
7900
7901 * hppa-tdep.c: Remove superfluous #include's.
7902 * Makefile.in (hppa-tdep.o): Update dependencies.
7903
7904 2004-05-17 Randolph Chung <tausq@debian.org>
7905
7906 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7907 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7908 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7909 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7910 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7911 Remove static function declarations.
7912
7913 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7914
7915 * alphabsd-nat.c: Update copyright year.
7916 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7917
7918 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7919 and M68K_A2_REGNUM.
7920
7921 * m68k-tdep.c (m68k_svr4_return_value): Implement
7922 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7923
7924 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7925
7926 * sol-thread.c Update copyright year. Fix various coding
7927 standards violations. Tweak a few comments.
7928 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7929 Delete prototypes.
7930
7931 2004-05-15 Randolph Chung <tausq@debian.org>
7932
7933 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7934 as pointer instead of array reference since HPUX compiler does
7935 not accept unsized array arguments.
7936 * somsolib.c (dld_flags_buffer): Use constant array size.
7937
7938 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7939
7940 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7941 offset with decimal offset.
7942 (amd64obsd_sigcontext_addr): Return correct address for entire
7943 signal trampoline.
7944
7945 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7946 instead of get_frame_base.
7947
7948 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7949 (fill_gregset): Use regcache_raw_collect.
7950
7951 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7952 ppcobsd-tdep.c.
7953
7954 * config/sparc/tm-nbsd64.h: Remove file.
7955 * config/tm-sunos.h: Remove file.
7956
7957 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7958
7959 * rs6000-tdep.c (store_param_on_stack_p): New function,
7960 an improved version of some code extracted from skip_prologue().
7961 (skip_prologue): Use store_param_on_stack_p() to detect
7962 instructions saving a parameter on the stack. Detect when r0
7963 is used to save a parameter.
7964 Do not mark "li rx, SIMM" instructions as part of the prologue,
7965 unless the following instruction is also part of the prologue.
7966
7967 2004-05-14 Andrew Cagney <cagney@redhat.com>
7968
7969 * infrun.c (handle_inferior_event): Simplify
7970 STEP_OVER_UNDEBUGGABLE.
7971
7972 * infrun.c (handle_step_into_function): Delete function.
7973 (handle_inferior_event): Inline calls to
7974 handle_step_into_function.
7975
7976 2004-05-14 Jerome Guitton <guitton@gnat.com>
7977
7978 * rs6000-nat.c: Fix a comment.
7979
7980 2004-05-12 David Anderson <davea@sgi.com>
7981
7982 Committed by Jim Blandy <jimb@redhat.com>:
7983 * regcache.c (struct regcache_descr): fix comment spelling.
7984
7985 2004-05-13 J. Brobecker <brobecker@gnat.com>
7986
7987 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7988 Fixes a link link failure.
7989
7990 2004-05-13 J. Brobecker <brobecker@gnat.com>
7991
7992 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7993 error that was causing the build to fail.
7994
7995 2004-05-13 J. Brobecker <brobecker@gnat.com>
7996
7997 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7998 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7999
8000 2004-05-13 Andrew Cagney <cagney@redhat.com>
8001
8002 * infrun.c (handle_inferior_event): Check for
8003 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8004 calls. Update comments.
8005
8006 2004-05-13 Jim Blandy <jimb@redhat.com>
8007
8008 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8009 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8010 (store_regs_user_thread, store_regs_kernel_thread): Use
8011 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8012 * ppc-linux-nat.c (fill_gregset): Same.
8013 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8014 (ppc_linux_sigtramp_cache): Same.
8015 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8016 (ppcnbsd_sigtramp_cache_init): Same.
8017 * rs6000-nat.c (fetch_core_registers): Same.
8018 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8019 (rs6000_frame_cache): Same.
8020
8021 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8022 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8023 of assuming that the gprs are numbered starting with zero.
8024 * ppc-linux-nat.c (fill_gregset): Same.
8025 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8026 * ppcnbsd-nat.c (getregs_supplies): Same.
8027 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8028 * rs6000-nat.c (fetch_core_registers): Same.
8029 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8030
8031 2004-05-07 Michael Snyder <msnyder@redhat.com>
8032
8033 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8034 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8035
8036 2004-05-13 Andrew Cagney <cagney@redhat.com>
8037
8038 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8039
8040 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8041
8042 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8043 base_address for shared libraries.
8044
8045 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8046
8047 * MAINTAINERS (write after approval): Add myself.
8048
8049 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8050
8051 * breakpoint.c (bpstat_stop_status): Add new argument
8052 STOPPED_BY_WATCHPOINT. Use it instead of testing
8053 target_stopped_data_address agaist 0 to check whether
8054 or not we stopped due to a hardware watchpoint.
8055 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8056 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8057 with new argument.
8058
8059 2004-05-12 Jim Blandy <jimb@redhat.com>
8060
8061 * configure.in: When checking whether we should use the -bbigtoc
8062 option, don't forget to restore the original value of LDFLAGS.
8063 * configure: Regenerated.
8064
8065 2004-05-12 Andrew Cagney <cagney@redhat.com>
8066
8067 * thread.c (load_infrun_state): Delete step_sp.
8068 * infrun.c (context_switch): Ditto.
8069 * inferior.h (step_sp): Ditto.
8070 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8071 * gdbthread.h (struct thread_info, save_infrun_state)
8072 (restore_infrun_state): Ditto.
8073
8074 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8075
8076 * MAINTAINERS (write after approval): Add myself.
8077
8078 2004-05-12 Andrew Cagney <cagney@redhat.com>
8079
8080 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8081 eliminate reference to step_sp.
8082 (struct execution_control_state, init_execution_control_state)
8083 (handle_inferior_event, keep_going): Delete update_step_sp and
8084 step_sp.
8085 * infcmd.c (step_sp): Note that variable is unused.
8086
8087 2004-05-11 Andrew Cagney <cagney@redhat.com>
8088
8089 * infrun.c (step_over_function): Delete function.
8090 (handle_step_into_function): Use insert_step_resume_breakpoint.
8091 (insert_step_resume_breakpoint): Fix assertion.
8092
8093 2004-05-11 Nick Roberts <nickrob@gnu.org>
8094
8095 * utils.c (defaulted_query): Just use the normal query input type
8096 when printing the annotations.
8097
8098 2004-05-11 Andrew Cagney <cagney@redhat.com>
8099
8100 * infrun.c (handle_inferior_event): Simplify code handling
8101 step-into or return-from a signal trampoline.
8102
8103 2004-05-11 Andrew Cagney <cagney@redhat.com>
8104
8105 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8106 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8107
8108 2004-05-10 Jim Blandy <jimb@redhat.com>
8109
8110 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8111 with a call to internal_error.
8112
8113 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8114 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8115 processor variant lacks those registers.
8116 (ppc_floating_point_unit_p): Change description to make it clear
8117 that this returns info about the ISA, not the ABI.
8118 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8119 return true or false by checking tdep->ppc_fp0_regnum and
8120 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8121 arch/mach switching done in rs6000_gdbarch_init; it's better to
8122 keep that logic there, and just check the results here.
8123 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8124 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8125 floating-point registers.
8126 (ppc_supply_fpregset, ppc_collect_fpregset)
8127 (rs6000_push_dummy_call, rs6000_extract_return_value)
8128 (rs6000_store_return_value): Assert that we have floating-point
8129 registers.
8130 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8131 (rs6000_frame_cache): Don't note the locations at which
8132 floating-point registers were saved if we have no fprs.
8133 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8134 registers.
8135 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8136 (store_regs_user_thread, store_regs_kernel_thread): Only call
8137 supply_fprs / fill_fprs if we actually have floating-point
8138 registers.
8139 (special_register_p): Check ppc_fpscr_regnum before matching
8140 against it.
8141 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8142 supply / collect fpscr if we don't have it.
8143 * ppc-bdm.c: #include "gdb_assert.h".
8144 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8145 have floating-point registers, since I can't test this code on
8146 FP-free systems to adapt it.
8147 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8148 fpscr and floating point register numbers if they don't exist.
8149 (fetch_register): Assert that we have floating-point registers
8150 before we reach the code that handles them.
8151 (store_register): Same. And use tdep instead of calling
8152 gdbarch_tdep again.
8153 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8154 don't have them.
8155 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8156 fprs and fpscr if we don't have them.
8157 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8158 don't have them.
8159 * ppcnbsd-nat.c: #include "gdb_assert.h".
8160 (getfpregs_supplies): Assert that we have floating-point registers.
8161 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8162 * ppcobsd-tdep.c: #include "gdb_assert.h".
8163 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8164 have floating-point registers.
8165 * rs6000-nat.c (regmap): Don't match against the fpscr and
8166 floating point register numbers if they don't exist.
8167 (fetch_inferior_registers, store_inferior_registers,
8168 fetch_core_registers): Only fetch / store / supply the
8169 floating-point registers and the fpscr if we have them.
8170 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8171 (ppcobsd-tdep.o): Update dependencies.
8172
8173 2004-05-10 Andrew Cagney <cagney@redhat.com>
8174
8175 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8176 (context_switch): Do not switch through_sigtramp_breakpoint.
8177 * gdbthread.h (save_infrun_state, load_infrun_state)
8178 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8179 and structure member.
8180 * thread.c (load_infrun_state, save_infrun_state): Update.
8181
8182 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8183
8184 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8185
8186 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8187
8188 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8189 throughout.
8190 * aclocal.m4: Regenerate.
8191
8192 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8193
8194 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8195
8196 2004-05-10 Andrew Cagney <cagney@redhat.com>
8197
8198 * infrun.c (check_sigtramp2): Delete function.
8199 (handle_inferior_event): When single stepping, and taking a
8200 signal, set a breakpoint at the signal return address. Delete
8201 redundant calls to check_sigtramp2.
8202 (insert_step_resume_breakpoint): New function.
8203 (through_sigtramp_breakpoint, handle_inferior_event)
8204 (follow_exec, wait_for_inferior, fetch_inferior_event)
8205 (currently_stepping, keep_going): Delete most uses of
8206 through_sigtramp_breakpoint, not that it should be deleted.
8207 (delete_breakpoint_current_contents): Delete function.
8208
8209 2004-05-10 Randolph Chung <tausq@debian.org>
8210
8211 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8212 target.
8213 * config/pa/tm-linux.h: New file.
8214
8215 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8216
8217 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8218 of prefixes. Don't print the prefix twice in the CLI.
8219
8220 2004-05-10 Jim Blandy <jimb@redhat.com>
8221
8222 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8223 collect all the gprs.
8224
8225 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8226 loop collecting gprs.
8227
8228 2004-05-09 Andrew Cagney <cagney@redhat.com>
8229
8230 * remote-vx.c (net_step): Delete step-range code.
8231 * remote.c (remote_resume, init_all_packet_configs)
8232 (set_remote_protocol_E_packet_cmd)
8233 (show_remote_protocol_E_packet_cmd)
8234 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8235 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8236 (show_remote_protocol_e_packet_cmd): Ditto.
8237
8238 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8239
8240 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8241
8242 * hppa-tdep.h: Update copyright year.
8243 (struct trad_frame_saved_reg): Add opaque declaration.
8244
8245 * amd64-tdep.c (amd64_return_value): Implement
8246 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8247
8248 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8249 (m68k_value_to_register): New functions.
8250 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8251 value_to_register.
8252
8253 * defs.h (enum return_value_convention): Add
8254 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8255 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8256 * infcmd.c (legacy_return_value): New function.
8257 (print_return_value): Rwerite to implement
8258 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8259 * values.c (using_struct_return): Check for inequality to
8260 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8261 RETURN_VALUE_STRUCT_CONVENTION.
8262 * i386-tdep.c (i386_return_value): Implement
8263 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8264
8265 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8266 include "symtab.h", "opcode/vax.h" and "inferior.h".
8267 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8268 to read_memory_unsigned_integer.
8269 (vax_gdbarch_init): Reorder.
8270 (_initialize_vax_tdep): Spell out prototype.
8271 * Makefile.in (vax-tdep.o): Update dependencies.
8272
8273 2004-05-08 Andrew Cagney <cagney@redhat.com>
8274
8275 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8276 * target.c (target_detach, target_disconnect): Ditto.
8277
8278 * infcall.c (call_function_by_hand): When no
8279 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8280 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8281 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8283 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8284
8285 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8286 * gdbarch.h, gdbarch.c: Re-generate.
8287 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8288 deprecated_fix_call_dummy.
8289 * v850-tdep.c (v850_gdbarch_init): Ditto.
8290 * infcall.c (call_function_by_hand): Do not call
8291 DEPRECATED_FIX_CALL_DUMMY.
8292
8293 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8294 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8295 * gdbarch.h, gdbarch.c: Re-generate.
8296 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8297 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8298 deprecated_sizeof_call_dummy_words.
8299 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8301 * v850-tdep.c (v850_gdbarch_init): Ditto.
8302 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8303 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8304 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8305 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8306 * arch-utils.h (legacy_call_dummy_words)
8307 (legacy_sizeof_call_dummy_words): Delete declarations.
8308 * arch-utils.c (legacy_call_dummy_words)
8309 (legacy_sizeof_call_dummy_words): Delete variables.
8310
8311 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8314 * infcall.c (call_function_by_hand): Eliminate call to
8315 DEPRECATED_PUSH_DUMMY_FRAME.
8316 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8317 push_dummy_frame.
8318 (ns32k_push_dummy_frame): Delete function.
8319
8320 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8321 deprecated_call_dummy_breakpoint_offset or
8322 deprecated_call_dummy_start_offset.
8323 * dummy-frame.c, arm-tdep.c: Update comments.
8324 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8325 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8326 * gdbarch.h, gdbarch.c: Re-generate.
8327
8328 * infcall.c (legacy_push_dummy_code): Delete function.
8329 (push_dummy_code): Delete call.
8330
8331 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8332 * gdbarch.h, gdbarch.c: Re-generate.
8333 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8334 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8335 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8336 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8337
8338 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8339 (struct frame_info): Delete opaque declaration.
8340 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8341 * frame.c (get_frame_type): Delete call.
8342
8343 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8344 pc_in_call_dummy.
8345 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8346 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8347
8348 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8349
8350 * alphanbsd-tdep.c: Include "gdb_string.h".
8351 * armnbsd-tdep.c: Update copyright year.
8352 Include "gdb_string.h".
8353 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8354 dependencies.
8355
8356 * delta68-nat.c: Remove file.
8357 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8358 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8359 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8360 (delta68-nat.o): Remove dependency.
8361
8362 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8363 function.
8364 (m68k_gdbarch_init): Don't set
8365 deprecated_frameless_function_invocation.
8366
8367 2004-05-07 Randolph Chung <tausq@debian.org>
8368
8369 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8370 read_memory_nobpt for code reading when doing frame unwinding.
8371 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8372
8373 2004-05-07 Randolph Chung <tausq@debian.org>
8374
8375 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8376 instead of sp, handle sigaltstack case.
8377 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8378 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8379 signal handler and not that of the caller.
8380 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8381 hppa_linux_sigtramp_find_sigcontext.
8382
8383 2004-05-07 Randolph Chung <tausq@debian.org>
8384
8385 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8386 hppa-linux-nat.c.
8387 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8388 * hppa-linux-nat.c (fetch_register, store_register): Define.
8389 (fetch_inferior_registers, store_inferior_registers): Define.
8390 (supply_gregset): Add comment and clean up some unneeded code.
8391 (fill_gregset): Add comment and fix so that it saves registers in
8392 the right place in the gregset.
8393 (fill_fpregset): Fix buffer overrun problem.
8394 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8395
8396 2004-05-07 Randolph Chung <tausq@debian.org>
8397
8398 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8399 do common handling of the pcoqt register.
8400 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8401 to use helper function.
8402 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8403 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8404 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8405 generic fallback unwinder when all else fails.
8406 (hppa_gdbarch_init): Add fallback sniffer.
8407 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8408 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8409 to use helper function.
8410
8411 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8412
8413 * config/djgpp/fnchange.lst: Add translation rules for
8414 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8415
8416 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8417
8418 * frame.c (get_prev_frame_1): Work around GCC bug.
8419 * frame.h: Add comment about GCC bug.
8420
8421 2004-05-07 Andrew Cagney <cagney@redhat.com>
8422
8423 * observer.c: Include "commands.h" and "gdbcmd.h".
8424 (observer_debug, _initialize_observer): Add the
8425 command "set/show debug observer".
8426 * observer.sh: When observer debugging, log notify calls.
8427 * Makefile.in (observer.o): Update dependencies.
8428
8429 2004-05-07 Jason Molenda (jmolenda@apple.com)
8430
8431 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8432
8433 2004-05-07 Jim Blandy <jimb@redhat.com>
8434
8435 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8436 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8437 to recognize gpr regnums, instead of assuming that
8438 tdep->ppc_fp0_regnum marks the end of the general-purpose
8439 registers.
8440
8441 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8442 the given architecture has floating-point registers.
8443
8444 2004-05-07 Andrew Cagney <cagney@redhat.com>
8445
8446 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8447 macro defined to 1.
8448 * gdbarch.h, gdbarch.c: Re-generate.
8449 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8450 deprecated_use_generic_dummy_frames.
8451
8452 2004-05-07 Brian Ford <ford@vss.fsi.com>
8453
8454 * NEWS: Mention Cygwin DWARF 2 support.
8455
8456 2004-05-07 Andrew Cagney <cagney@redhat.com>
8457
8458 * objfiles.h (struct entry_info): Delete unused fields
8459 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8460 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8461 * mipsread.c (mipscoff_symfile_read): Update.
8462 * mdebugread.c (parse_partial_symbols): Update.
8463 * dwarfread.c (read_file_scope): Update.
8464 * dwarf2read.c (read_file_scope): Update.
8465 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8466 * coffread.c (complete_symtab): Update.
8467
8468 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8469
8470 * infcall.c (_initialize_infcall): Fix typo.
8471
8472 2004-05-07 Andrew Cagney <cagney@redhat.com>
8473
8474 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8475 * command.h (add_setshow_zinteger_cmd): Declare.
8476
8477 2004-05-06 Randolph Chung <tausq@debian.org>
8478
8479 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8480 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8481 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8482 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8483 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8484 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8485 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8486 definitions ...
8487 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8488 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8489 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8490 (hppa64_hpux_frame_find_saved_regs_in_sig)
8491 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8492 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8493 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8494 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8495 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8496 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8497 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8498 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8499 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8500 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8501 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8502 (hppa32_register_type, hppa_cannot_store_register)
8503 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8504 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8505 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8506 * pa64solib.c (pa64_solib_have_load_event)
8507 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8508 (pa64_solib_unloaded_library_pathname): Likewise.
8509 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8510 (som_solib_library_pathname): Likewise.
8511
8512 2004-05-05 Jim Ingham <jingham@apple.com>
8513
8514 * breakpoint.c (create_breakpoints): Copy the ignore count and
8515 thread id over from the pended breakpoint to the actual
8516 breakpoint.
8517
8518 2004-05-05 Andrew Cagney <cagney@redhat.com>
8519
8520 * gdbarch.sh (PARM_BOUNDARY): Delete.
8521 gdbarch.h, gdbarch.c: Re-generate.
8522 * valops.c (PARM_BOUNDARY): Delete macro.
8523 (value_push): Delete PARM_BOUNDARY code.
8524 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8525
8526 2004-05-04 Jim Blandy <jimb@redhat.com>
8527
8528 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8529 Don't assume that the gprs, fprs, and UISA sprs are
8530 contiguous, start at register number zero, and end with fpscr.
8531 Instead, use the numbers from the tdep structure.
8532
8533 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8534 should no longer be used in code specific to the RS6000 and its
8535 derivatives.
8536 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8537 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8538 tdep->ppc_fp0_regnum.
8539 (ppc_supply_fpregset, ppc_collect_fpregset)
8540 (rs6000_push_dummy_call, rs6000_extract_return_value)
8541 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8542 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8543 FP0_REGNUM.
8544 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8545 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8546 Same.
8547 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8548 bdm_ppc_store_registers): Same.
8549 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8550 (store_register, fill_fpregset): Same.
8551 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8552 (ppc_linux_supply_fpregset): Same.
8553 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8554 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8555 Same.
8556 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8557 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8558 ppc64_sysv_abi_return_value): Same.
8559 * rs6000-nat.c (regmap, fetch_inferior_registers)
8560 (store_inferior_registers, fetch_core_registers): Same.
8561
8562 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8563
8564 * m68knbsd-nat.c: Remove file.
8565 * m68knbsd-tdep.c: Remove file.
8566 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8567 dependencies.
8568 * configure.host: Add m68k-*-netbsdelf*.
8569 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8570 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8571 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8572 (XM_FILE): Remove.
8573 * config/m68k/nbsdelf.mh: New file.
8574 * config/m68k/nbsd.mt: New file.
8575 * config/m68k/nbsdaout.mt: Remove file.
8576 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8577 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8578 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8579 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8580 (use_struct_convention): Remove prototype.
8581 (USE_STRUCT_CONVENTION): Remove define.
8582 * config/m68k/xm-nbsd.h: Remove file.
8583
8584 2004-05-04 Michael Snyder <msnyder@redhat.com>
8585
8586 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8587 reg_struct_return method (as gcc usually does for cross targets).
8588
8589 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8590
8591 Committed by Andrew Cagney.
8592 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8593 alignment padding when accessing ucontext struct members.
8594
8595 2004-05-04 Jim Blandy <jimb@redhat.com>
8596
8597 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8598 'ppc_gplast_regnum' member.
8599 (ppc_num_gprs): New enum constant.
8600 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8601 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8602 * rs6000-nat.c (regmap, fetch_inferior_registers,
8603 store_inferior_registers): Same.
8604 * rs6000-tdep.c (e500_pseudo_register_read)
8605 (e500_pseudo_register_write): Same.
8606 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8607
8608 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8609 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8610 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8611 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8612 FPLAST_REGNUM.
8613 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8614 Same.
8615 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8616 * rs6000-nat.c (regmap, fetch_inferior_registers)
8617 (store_inferior_registers): Same.
8618
8619 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8620 with FPLAST_REGNUM.
8621
8622 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8623
8624 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8625 failure detected by recent versions of GCC.
8626 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8627 to be consistent with the usage in dwarf2_create_include_psymtab.
8628
8629 2004-05-03 Michael Snyder <msnyder@redhat.com>
8630
8631 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8632 (heuristic_proc_start): Whitespace cleanup.
8633
8634 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8635
8636 * sun3-nat.c: Remove file.
8637 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8638 dependencies.
8639 (ALLDEPFILES): Remove sun3-nat.c.
8640 (sun3-nat.o): Remove dependencies.
8641
8642 * i386-interix-nat.c, i386-interix-tdep.c,
8643 config/i386/nm-interix.h, config/i386/interix.mh,
8644 config/i386/interix.mt: Remove files.
8645 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8646 dependencies.
8647
8648 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8649
8650 * m68k-tdep.h (struct gdbarch_tdep): Add member
8651 struct_value_regnum.
8652 (m68k_svr4_init_abi): New prototype.
8653 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8654 different calling conventions.
8655 (m68k_extract_return_value): Remove code dealing with single-field
8656 structs.
8657 (m68k_store_return_value): Remove code dealing with single-field
8658 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8659 (m68k_extract_struct_value_address): Remove function.
8660 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8661 (m68k_reg_struct_return_p, m68k_return_value)
8662 (m68k_svr4_return_value): New functions.
8663 (m68k_use_struct_convention): Remove function.
8664 (m68k_push_dummy_call): Use new struct_value_regnum member of
8665 `struct gdbarch_tdep' instead of hardcoded register number to
8666 store STRUCT_ADDR.
8667 (m68k_svr4_init_abi): New function.
8668 (m68k_gdbarch_init): Don't set extract_return_value,
8669 store_return_values, deprecated_extract_struct_value_address and
8670 use_struct_convention. Set return_value instead. Initialize new
8671 struct_value_regnum member of `struct gdbarch_tdep'.
8672 * m68klinux-tdep.c: Update copyright year.
8673 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8674 (m68k_linux_extract_struct_value_address): Remove function.
8675 (m68k_linux_init_abi): Don't set extract_return_value,
8676 store_return_values, deprecated_extract_struct_value_address and
8677 use_struct_convention. Call m68k_svr4_init_abi but override the
8678 new struct_value_regnum member of `struct gdbarch_tdep'.
8679 * Makefile.in (m68k-tdep.o): Update dependencies.
8680
8681 2004-05-03 J. Brobecker <brobecker@gnat.com>
8682
8683 * dwarf2read.c (line_header): Add new included_p field in
8684 field file_names.
8685 (partial_die_info): New field has_stmt_list. New field line_offset.
8686 (dwarf2_create_include_psymtab): New function.
8687 (dwarf2_build_include_psymtabs): New function.
8688 (add_file_name): Add forward declaration. Initialize new field.
8689 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8690 to be able to determine the list of files included by the
8691 given unit, and build their associated psymtabs.
8692 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8693 files as well.
8694 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8695 (read_file_scope): Update call to dwarf_decode_lines.
8696 (read_partial_die): Handle DW_AT_stmt_list attributes.
8697
8698 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8699
8700 Unfix PR gdb/1626.
8701 * configure.in: Revert special case for osf5.*.
8702 * configure: Regenerate.
8703
8704 2004-05-02 Jim Blandy <jimb@redhat.com>
8705
8706 Move the symbol-file-from-memory functions into their own file.
8707 * symfile-mem.c, symfile-mem.h: New files.
8708 * symfile.c (symbol_file_add_from_bfd): New function.
8709 (symbol_file_add): Call symbol_file_add_from_bfd.
8710 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8711 Moved to symfile-mem.c.
8712 (_initialize_symfile): Move definition of
8713 add-symbol-file-from-memory command to symfile-mem.c.
8714 * symfile.h (symbol_file_add_from_bfd): New declaration.
8715 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8716 * config/powerpc/linux.mt (TDEPFILES): Same.
8717 * Makefile.in (SFILES): Add symfile-mem.c.
8718 (symfile_mem_h): New variable.
8719 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8720 (symfile-mem.o): New rule.
8721
8722 2004-05-01 Andrew Cagney <cagney@redhat.com>
8723
8724 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8725 frame_find_by_id instead of frame_relative_level.
8726 (do_enable_breakpoint): Ditto.
8727 * thread.c: Update copyright.
8728 (info_threads_command): Ditto, simplify.
8729
8730 * frame.c (deprecated_generic_get_saved_register): Delete
8731 function, moved to "xstormy16-tdep.c".
8732 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8733 deprecated_generic_get_saved_register from "frame.c".
8734 (xstormy16_frame_saved_register): Call
8735 xstormy16_get_saved_register.
8736 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8737 static.
8738 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8739 * frame.h (deprecated_generic_get_saved_register): Delete.
8740
8741 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8742
8743 * dwarfread.c: Update documentation on the state of dwarf-1.
8744
8745 2004-05-01 Andrew Cagney <cagney@redhat.com>
8746
8747 * stack.c (select_frame_command): Delete call to
8748 frame_relative_level.
8749 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8750 Delete #if0 code.
8751 (frame_info): Do not print FRAMELESS.
8752 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8753 (catch_info): Delete #if0 code.
8754
8755 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8756 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8757 of frame_relative_level.
8758 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8759 to SENTINEL_FRAME.
8760 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8761 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8762 frame_relative_level.
8763
8764 * frame.h (deprecated_set_frame_type): Delete declaration.
8765 * frame.c (deprecated_set_frame_type): Delete function, update
8766 comments.
8767
8768 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8769 * gdbarch.h, gdbarch.c: Re-generate.
8770 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8771 (shnbsd_pc_in_sigtramp): Delete.
8772 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8773 pc_in_sigtramp.
8774 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8775 pc_in_sigtramp.
8776 * frame.h: Update comments.
8777 * ppc-linux-tdep.c: Update comments.
8778 * breakpoint.c (bpstat_what): Update comments.
8779
8780 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8781 m68klinux-tdep.o's dependencies, were previously added to
8782 m68klinux-nat.o.
8783
8784 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8785 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8786 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8787 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8788 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8789
8790 * Makefile.in (m68klinux-nat.o): Update dependencies.
8791 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8792 (m68k_linux_sigtramp_frame_cache)
8793 (m68k_linux_sigtramp_frame_this_id)
8794 (m68k_linux_sigtramp_frame_prev_register)
8795 (m68k_linux_sigtramp_frame_unwind)
8796 (m68k_linux_sigtramp_frame_sniffer)
8797 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8798 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8799 names, use trad-frame.h.
8800 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8801 (struct m68k_sigtramp_info): Delete.
8802 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8803 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8804 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8805 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8806 "m68klinux-tdep.c".
8807
8808 * infrun.c (check_sigtramp2): Delete check for
8809 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8810
8811 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8812
8813 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8814
8815 2004-05-01 Andrew Cagney <cagney@redhat.com>
8816
8817 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8818 (frv_linux_sigtramp_frame_cache)
8819 (frv_linux_sigtramp_frame_this_id)
8820 (frv_linux_sigtramp_frame_prev_register)
8821 (frv_linux_sigtramp_frame_unwind)
8822 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8823 include "linux" in function and variable names, directly call
8824 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8825 the latest trad-frame code.
8826 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8827 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8828 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8829 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8830 * frv-tdep.c (frv_sigtramp_frame_cache)
8831 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8832 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8833 frv-linux-tdep.c.
8834 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8835 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8836 (frv_set_sigcontext_reg_addr): Delete function.
8837
8838 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8839 (DEPRECATED_SIGTRAMP_END): Delete.
8840 * gdbarch.h, gdbarch.c: Re-generate.
8841 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8842 * config/vax/tm-vaxbsd.h: Update copyright.
8843 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8844 (DEPRECATED_IN_SIGTRAMP): Define.
8845 * config/m68k/tm-nbsd.h: Update copyright.
8846 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8847 (DEPRECATED_IN_SIGTRAMP): Define.
8848
8849 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8850
8851 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8852 encondings. Fixes PR gdb/1628.
8853
8854 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8855 DW_CFA_restore state without a matching DW_CFA_remember_state
8856 instead of aborting. Fixes PR backtrace/1589.
8857
8858 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8859
8860 * MAINTAINERS: Add self as AIX maintainer.
8861 Update my e-mail address in write-after-approval section.
8862
8863 2004-04-30 Andrew Cagney <cagney@redhat.com>
8864
8865 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8866 (legacy_get_prev_frame): Ditto.
8867
8868 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8869 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8870 * mipsread.c (sigtramp_address): Delete extern variable.
8871 (mipscoff_new_init): Delete reference.
8872 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8873 (fixup_sigtramp): Delete function.
8874 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8875 (fixup_sigtramp): Delete declarations.
8876
8877 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8878 deprecated_pc_in_sigtramp.
8879 (ppcnbsd_pc_in_sigtramp): Delete function.
8880
8881 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8882
8883 * config/m68k/nm-nbsd.h: Tweak comments.
8884 * config/m68k/nm-nbsdaout.h: Likewise.
8885
8886 2004-04-30 Andrew Cagney <cagney@redhat.com>
8887
8888 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8889 legacy_pc_in_sigtramp.
8890 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8891
8892 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8893
8894 Add OpenBSD/m68k support.
8895 * NEWS (New native configurations): Mention OpenBSD/m68k.
8896 * m68kbsd-tdep.c: New file.
8897 * m68kbsd-nat.c: New file.
8898 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8899 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8900 * configure.host: Add m68k-*-openbsd.
8901 * configure.tgt: Add m68k-*-openbsd.
8902 * config/m68k/tm-obsd.h: New file.
8903 * config/m68k/obsd.mt: New file.
8904 * config/m68k/obsd.mh: New file.
8905 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8906 m68kbsd-tdep.c.
8907
8908 2004-04-30 Andrew Cagney <cagney@redhat.com>
8909
8910 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8911 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8912
8913 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8914
8915 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8916 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8917
8918 2004-04-30 Brian Ford <ford@vss.fsi.com>
8919
8920 Revert 2004-04-16 change.
8921 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8922 (i386_coff_init_abi): Remove.
8923 * i386-tdep.h (i386_coff_init_abi): Remove.
8924 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8925
8926 2004-04-30 Andrew Cagney <cagney@redhat.com>
8927
8928 * blockframe.c (find_pc_partial_function): Delete use of
8929 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8930 DEPRECATED_SIGTRAMP_END.
8931
8932 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8933 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8934 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8935 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8936 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8937
8938 * defs.h (deprecated_inside_entry_file): Delete declaration.
8939 * blockframe.c (deprecated_inside_entry_file): Delete function.
8940 (legacy_frame_chain_valid): Delete call.
8941 * sh64-tdep.c (sh64_frame_chain): Delete call.
8942 * objfiles.h: Update comments.
8943 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8944 call.
8945 * frame.c (get_prev_frame): Delete call, update comments.
8946
8947 2004-04-30 Brian Ford <ford@vss.fsi.com>
8948
8949 * MAINTAINERS (Write After Approval): Add myself.
8950
8951 2004-04-30 Andrew Cagney <cagney@redhat.com>
8952
8953 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8954 * gdbarch.h, gdbarch.c: Re-generate.
8955 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8956 code.
8957
8958 2004-04-30 Andrew Cagney <cagney@redhat.com>
8959
8960 * gdb-events.sh (selected_thread_changed)
8961 (selected_frame_level_changed, target_changed): Delete.
8962 * gdb-events.h, gdb-events.c: Re-generate.
8963 * valops.c (value_assign): Update.
8964 * stack.c (select_frame_command, up_silently_base)
8965 (down_silently_base): Update.
8966
8967 2004-04-29 Andrew Cagney <cagney@redhat.com>
8968
8969 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8970 registers correctly.
8971 (print_gp_register_row, mips32_heuristic_proc_desc)
8972 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8973 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8974 references to mips_isa_regsize.
8975
8976 2004-04-29 Andrew Cagney <cagney@redhat.com>
8977
8978 * mips-tdep.c (struct gdbarch_tdep): Delete
8979 mips_fp_register_double.
8980 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8981 mips_abi_regsize.
8982 (mips_gdbarch_init): Do not set mips_fp_register_double.
8983 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8984
8985 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8986
8987 Committed by Andrew Cagney.
8988 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8989 function calls.
8990
8991 2004-04-29 Andrew Cagney <cagney@redhat.com>
8992
8993 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8994 gdbarch, use mips_abi, update callers.
8995 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8996 mips_abi_regsize, update callers.
8997 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8998 mips_default_abi_regsize.
8999 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9000 mips_default_abi_regsize.
9001
9002 2004-04-29 Andrew Cagney <cagney@redhat.com>
9003
9004 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9005 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9006 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9007 mips_default_abi_regsize.
9008 (mips_isa_regsize): Rename mips_regisze.
9009 * mipsnbsd-tdep.c: Update.
9010 * mips-linux-tdep.c: Update.
9011 * irix5-nat.c: Update.
9012 * mips-tdep.h (mips_isa_regsize): Update.
9013
9014 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9015 Delete all disabled code.
9016 * gdb-events.h, gdb-events.c: Re-generate.
9017
9018 2004-04-19 Jerome Guitton <guitton@gnat.com>
9019 Mark Kettenis <kettenis@gnu.org>
9020
9021 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9022 the function begins with a branch instruction.
9023
9024 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9025
9026 * i386-tdep.c: Fix spelling mistakes.
9027
9028 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9029 Andrew Cagney <cagney@redhat.com>
9030
9031 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9032 <sys/proc.h>.
9033 * acconfig.h: Provide default _KMEMUSER value.
9034 * config.in, configure: Re-generate.
9035 * NEWS: Mention fix.
9036
9037 2004-04-24 Randolph Chung <tausq@debian.org>
9038
9039 * configure.host (hppa*-*-linux*): New target.
9040 * configure.tgt (hppa*-*-linux*): Likewise.
9041 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9042 gdbarch_init_osabi() call earlier so that osabi-specific frame
9043 unwinders can be registered first.
9044 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9045 hppa-linux-nat.c.
9046 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9047 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9048 * config/pa/linux.mh: New file.
9049 * config/pa/linux.mt: New file.
9050 * config/pa/nm-linux.h: New file.
9051 * config/pa/xm-linux.h: New file.
9052 * hppa-linux-nat.c: New file.
9053 * hppa-linux-tdep.c: New file.
9054
9055 2004-04-28 Randolph Chung <tausq@debian.org>
9056
9057 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9058 return values.
9059 (hppa32_push_dummy_call): Fix small struct and floating point argument
9060 passing, and make sure the stack frame is properly aligned.
9061
9062 2004-04-28 Andrew Cagney <cagney@redhat.com>
9063
9064 * stack.c (print_stack_frame): Fix description.
9065
9066 * NEWS: Mention gdb/gdbserver/configure execute permission
9067 changed. PR server/519.
9068
9069 2004-04-28 Andrew Cagney <cagney@redhat.com>
9070
9071 * stack.c (print_stack_frame_stub): Delete declaration.
9072 (struct print_stack_frame_args, print_stack_frame)
9073 (print_frame_info, print_frame): Replace "source" with print what.
9074 Replace "print" with "print_level". Replace "args" with
9075 "print_args".
9076 * frame.h (show_and_print_stack_frame, print_stack_frame)
9077 (print_frame_info): Update declarations.
9078 * stack.c (select_and_print_frame, frame_command)
9079 (current_frame_command, up_command, down_command): Update calls -
9080 use get_selected_frame, pass "enum print_what" for source, do not
9081 call frame_relative_level.
9082 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9083 * remote-rdp.c (remote_rdp_open): Ditto.
9084 * remote-mips.c (common_open): Ditto.
9085 * remote-e7000.c (e7000_start_remote): Ditto.
9086 * ocd.c (ocd_start_remote): Ditto.
9087 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9088 * infrun.c (normal_stop): Ditto.
9089 * inflow.c (kill_command): Ditto.
9090 * infcmd.c (finish_command): Ditto.
9091 * corelow.c (core_open): Ditto.
9092 * tracepoint.c (finish_tfind_command): Ditto.
9093 * thread.c (info_threads_command, info_threads_command)
9094 (restore_current_thread, do_captured_thread_select): Ditto.
9095 * ada-tasks.c (task_command): Ditto.
9096
9097 2004-04-26 Orjan Friberg <orjanf@axis.com>
9098
9099 * frame.c: Include "observer.h".
9100 (frame_observer_target_changed): New function.
9101 (_initialize_frame): Attach target_changed observer.
9102 * regcache.c: Include "observer.h".
9103 (regcache_observer_target_changed): New function.
9104 (_initialize_regcache): Attach target_changed observer.
9105 * valops.c: Include "observer.h".
9106 (value_assign): Notify target_changed event when modifying register.
9107 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9108
9109 2004-04-26 Orjan Friberg <orjanf@axis.com>
9110
9111 From Paul Koning <pkoning@equallogic.com>:
9112 * breakpoint.c (free_valchain): New function.
9113 (insert_bp_location, delete_breakpoint): Use free_valchain.
9114 (remove_breakpoint): Do not remove the valchain.
9115 (bpstat_stop_status): If not stopped by watchpoint, skip
9116 watchpoints when generating stop status list.
9117 * infrun.c (handle_inferior_event): Make
9118 stepped_after_stopped_by_watchpoint a global variable.
9119 * remote.c (remote_stopped_data_address): Return watch data
9120 address rather than zero if stepped_after_stopped_by_watchpoint is
9121 set.
9122
9123 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9124
9125 Fix PR gdb/1626.
9126 * configure.in: Check for curses after termcap.
9127 On osf5.*, do not check for ncurses.
9128 * configure: Regenerate.
9129
9130 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9131
9132 * ppcobsd-nat.c: Include "ppc-tdep.h".
9133 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9134
9135 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9136 Fixes PR tdep/1623 and PR tdep/1624.
9137
9138 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9139
9140 * xmodem.h, xmodem.c: Remove files.
9141 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9142
9143 2004-04-23 Randolph Chung <tausq@debian.org>
9144
9145 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9146 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9147 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9148 for handling stackless frames.
9149 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9150
9151 2004-04-23 Randolph Chung <tausq@debian.org>
9152
9153 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9154 starts at a pc before the frame is created.
9155
9156 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9157
9158 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9159
9160 2004-04-23 Jerome Guitton <guitton@gnat.com>
9161
9162 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9163 use convert_typed_floating to get the appropriate format.
9164
9165 2004-04-22 Randolph Chung <tausq@debian.org>
9166
9167 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9168 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9169 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9170 (hppa_sign_extend): Add prototype.
9171 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9172 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9173 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9174 hppa targets will also use these functions.
9175 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9176 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9177 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9178 (hppa_gdbarch_init): Remove gdbarch setting of
9179 skip_trampoline_code, in_solib_call_trampoline and
9180 in_solib_return_trampoline.
9181 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9182 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9183 hppa_in_solib_call_trampoline.
9184 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9185 Moved from hppa-tdep.c.
9186 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9187 in_solib_call_trampoline and in_solib_return_trampoline.
9188
9189 2004-04-22 Randolph Chung <tausq@debian.org>
9190
9191 * hppa-tdep.c (hppa_debug): New variable.
9192 (find_unwind_entry, hppa_frame_cache): Add debug output.
9193 (_initialize_hppa_tdep): Add command to set debug flag.
9194
9195 2004-04-22 Andrew Cagney <cagney@redhat.com>
9196
9197 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9198 "trad-frame.h".
9199 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9200 signal trampoline unwinder.
9201 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9202
9203 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9204
9205 Add OpenBSD/powerpc support.
9206 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9207 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9208 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9209 (ppc_collect_fpregset): New prototypes.
9210 * ppcobsd-nat.c: New file.
9211 * ppcobsd-tdep.c: New file.
9212 * ppcobsd-tdep.h: New file.
9213 * rs6000-tdep.c: Include "regset.h".
9214 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9215 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9216 New functions.
9217 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9218 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9219 (rs6000-tdep.o): Update dependencies.
9220 * configure.host: Add powerpc-*-openbsd.
9221 * configure.tgt: Add powerpc-*-openbsd.
9222 * config/powerpc/obsd.mh: New file.
9223 * config/powerpc/nm-obsd.h: New file.
9224 * config/powerpc/obsd.mt: New file.
9225
9226 2004-04-22 Andrew Cagney <cagney@redhat.com>
9227
9228 * frame.h (show_frame_info): Delete declaration.
9229
9230 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9231 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9232 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9233 * frv-tdep.c (frv_frame_this_id): Ditto.
9234 * avr-tdep.c (avr_frame_this_id): Ditto.
9235
9236 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9237
9238 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9239
9240 2004-04-22 Jim Blandy <jimb@redhat.com>
9241
9242 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9243 register number zero.
9244
9245 2004-04-21 Michael Snyder <msnyder@redhat.com>
9246
9247 * mips-tdep.c (heuristic_proc_start):
9248 Warning() already prefixes "Warning: ".
9249
9250 2004-04-21 Andrew Cagney <cagney@redhat.com>
9251
9252 * annotate.h (deprecated_annotate_starting_hook)
9253 (deprecated_annotate_stopped_hook)
9254 (deprecated_annotate_exited_hook)
9255 (deprecated_annotate_signal_hook)
9256 (deprecated_annotate_signalled_hook): Deprecate.
9257 * tracepoint.h (deprecated_create_tracepoint_hook)
9258 (deprecated_delete_tracepoint_hook)
9259 (deprecated_modify_tracepoint_hook)
9260 (deprecated_trace_find_hook)
9261 (deprecated_trace_start_stop_hook): Deprecate.
9262 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9263 * remote.h (deprecated_target_resume_hook)
9264 (deprecated_target_wait_loop_hook): Deprecate.
9265 * gdbcore.h (deprecated_exec_file_display_hook)
9266 (deprecated_file_changed_hook): Deprecate.
9267 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9268 * defs.h (deprecated_modify_breakpoint_hook)
9269 (deprecated_command_loop_hook, deprecated_show_load_progress)
9270 (deprecated_print_frame_info_listing_hook)
9271 (deprecated_query_hook, deprecated_warning_hook)
9272 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9273 (deprecated_delete_breakpoint_hook)
9274 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9275 (deprecated_readline_begin_hook, deprecated_readline_hook)
9276 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9277 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9278 (deprecated_context_hook, deprecated_target_wait_hook)
9279 (deprecated_attach_hook, deprecated_detach_hook)
9280 (deprecated_call_command_hook, deprecated_set_hook)
9281 (deprecated_error_hook, deprecated_error_begin_hook)
9282 (deprecated_ui_load_progress_hook): Deprecate.
9283 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9284 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9285 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9286 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9287 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9288 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9289 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9290 * annotate.c, aix-thread.c: Update.
9291
9292 2004-04-21 Andrew Cagney <cagney@redhat.com>
9293
9294 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9295 * vaxnbsd-tdep.c: Include "gdb_string.h".
9296
9297 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9298 (add_symbol_file_from_memory_command): #if 0 function body, call
9299 error instead.
9300
9301 2004-04-21 Andrew Cagney <cagney@redhat.com>
9302
9303 * gdbcore.h: Update copyright.
9304 (deprecated_add_core_fns): Rename add_core_fns.
9305 * win32-nat.c (_initialize_core_win32): Update.
9306 * sun3-nat.c (_initialize_core_sun3): Update.
9307 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9308 * rs6000-nat.c (_initialize_core_rs6000): Update.
9309 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9310 * nto-tdep.c (_initialize_nto_tdep): Update.
9311 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9312 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9313 * mips-nat.c (_initialize_core_mips): Update.
9314 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9315 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9316 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9317 * lynx-nat.c (_initialize_core_lynx): Update.
9318 * irix5-nat.c (_initialize_core_irix5): Update.
9319 * i386-interix-nat.c (_initialize_core_interix): Update.
9320 * cris-tdep.c (_initialize_cris_tdep): Update.
9321 * corelow.c (deprecated_add_core_fns): Update.
9322 * core-regset.c (_initialize_core_regset): Update.
9323 * core-aout.c (_initialize_core_aout): Update.
9324 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9325 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9326 * alpha-nat.c (_initialize_core_alpha): Update.
9327
9328 2004-04-21 Jim Blandy <jimb@redhat.com>
9329
9330 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9331
9332 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9333
9334 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9335 Delete.
9336 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9337 (read_attribute_value): Update calls to dwarf_alloc_block.
9338 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9339 dwarf2_tmp_obstack.
9340 (psymtab_to_symtab_1): Likewise. Clean up using
9341 free_stack_comp_unit.
9342 (add_to_cu_func_list): Use the comp_unit_obstack.
9343
9344 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9345
9346 * dwarf2read.c (dwarf2_flag_true_p): New function.
9347 (die_is_declaration): Use the function above. Add some comments.
9348
9349 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9350
9351 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9352 architecture when registering sparcnbsd_core_osabi_sniffer.
9353 Adjust comment.
9354
9355 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9356
9357 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9358 return value.
9359
9360 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9361 * i386-tdep.c: Correct register numbering scheme comments
9362 throughout.
9363 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9364 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9365 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9366 (i386_gdb_arch_init): Likewise.
9367
9368 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9369 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9370 ppcnbsd-tdep.o.
9371
9372 * m68k-tdep.h: Tweak comments.
9373 * m68k-tdep.c: Tweak comment.
9374
9375 2004-04-17 Randolph Chung <tausq@debian.org>
9376
9377 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9378 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9379 (hppa_hpux_som_init_abi): Set is_elf to 0.
9380 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9381 * hppa-tdep.c (low_text_segment_address): Remove global.
9382 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9383 section offset to calculate segment address.
9384 (internalize_unwinds): Define low_text_segment_address as local and
9385 pass to record_text_segment_lowaddr for ELF targets.
9386 (hppa_gdbarch_init): Zero fill tdep structure.
9387 (hppa_dump_tdep): Print tdep structure.
9388 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9389
9390 2004-04-17 Randolph Chung <tausq@debian.org>
9391
9392 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9393 (hppa_gdbarch_init): Set pseudo_register_read.
9394 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9395 * regcache.c (supply_register): Remove check for
9396 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9397
9398 2004-04-17 Randolph Chung <tausq@debian.org>
9399
9400 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9401 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9402 (hpread_adjust_stack_address): Move to hpread.c.
9403 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9404 obj_private_struct): Move from tm-hppa.h.
9405 * hpread.c (hppa-tdep.h): Include.
9406 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9407 (hpread_read_function_type, hpread_read_doc_function_type)
9408 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9409 directly.
9410 * pa64solib.c (hppa-tdep.h): Include.
9411 * somsolib.c (hppa-tdep.h): Include.
9412 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9413 inferior_status): Remove unused forward declarations.
9414 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9415 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9416 obj_private_struct): Move to hppa-tdep.h.
9417 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9418
9419 2004-04-17 Randolph Chung <tausq@debian.org>
9420
9421 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9422 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9423 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9424 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9425 Remove forward declaration and make static.
9426 (hppa_reg_struct_has_addr): Remove.
9427
9428 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9429
9430 * observer.sh: Move comments in sed command to first column.
9431
9432 2004-04-16 Jason Molenda (jmolenda@apple.com)
9433
9434 * frame.c: Minor typeo corrections in comments.
9435
9436 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9437
9438 * observer.c (observer_test_first_notification_function): Update
9439 function profile.
9440 (observer_test_second_notification_function): Likewise.
9441 (observer_test_third_notification_function): Likewise.
9442
9443 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9444
9445 From Brian Ford <ford@vss.fsi.com>:
9446 * i386-tdep.c (i386_coff_init_abi): New function.
9447 * i386-tdep.h (i386_coff_init_abi): New prototype.
9448 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9449 register number translation functions for DWARF and DWARF 2.
9450
9451 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9452
9453 * dwarf2read.c: Back out my previous change, it was incorrect.
9454
9455 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9456
9457 * dwarf2read.c: Include "hashtab.h".
9458 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9459 has_namespace_info.
9460 (struct partial_die_info): Add comments. Use bitfields to reduce
9461 memory footprint. Add scope, scope_set, has_specification,
9462 spec_offset, die_parent, die_child, and die_sibling.
9463 (peek_die_abbrev): Add prototype.
9464 (partial_read_comp_unit_head): New function, broken out from
9465 dwarf2_build_psymtabs_hard.
9466 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9467 Use partial_read_comp_unit_head. Initialize the CU and
9468 comp_unit_obstack. Update calls to read_partial_die and
9469 scan_partial_symbols. Use free_stack_comp_unit and
9470 load_partial_dies.
9471 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9472 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9473 Update calls to helper functions. Remove NAMESPACE argument.
9474 Update comments.
9475 (partial_die_parent_scope, partial_die_full_name): New functions.
9476 (add_partial_symbol): Remove namespace argument. Update call to
9477 pdi_needs_namespace. Use partial_die_full_name. Handle
9478 DW_TAG_namespace. Check has_namespace_info flag.
9479 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9480 tag. Handle namespaces.
9481 (add_partial_namespace, add_partial_enumeration): Simplify.
9482 (guess_structure_name): New function, derived from
9483 add_partial_structure.
9484 (add_partial_structure): Remove.
9485 (determine_class_name): Update comment.
9486 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9487 (is_type_tag_for_partial, load_partial_dies): New functions.
9488 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9489 Record specifications instead of following them immediately.
9490 (find_partial_die_in_comp_unit, find_partial_die)
9491 (fixup_partial_die, free_stack_comp_unit)
9492 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9493 (partial_die_hash, partial_die_eq): New functions.
9494 * Makefile.in (hashtab_h): Define.
9495 (dwarf2read.o): Update dependencies.
9496 (observer_inc, observer_h): Move to the correct section.
9497
9498 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9499
9500 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9501 (die_is_declaration): Use the function above. Add comment.
9502
9503 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9504
9505 * dwarf2read.c (read_structure_scope): Identify stub types
9506 using die_is_declaration() only.
9507
9508 2004-04-15 Roland McGrath <roland@redhat.com>
9509
9510 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9511 argument instead of NAME.
9512 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9513 in call to symbol_file_add_with_addrs_or_offsets.
9514 (build_addr_info): New function, helper for ...
9515 (symbol_file_add_from_memory): New function.
9516 (add_symbol_file_from_memory_command): New function using that.
9517 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9518 (pre_add_symbol_hook): Add const to argument type.
9519 * symfile.h (symbol_file_add_from_memory): Declare it.
9520
9521 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9522
9523 * NEWS (New native configurations): Mention OpenBSD/vax.
9524 * configure.host: Add vax-*-openbsd*.
9525 * config/vax/obsd.mh: New file.
9526 * config/vax/nm-obsd.h: New file.
9527
9528 * vax-tdep.c: Include "regset.h".
9529 (vax_supply_gregset): New function.
9530 (vax_gregset): New variable.
9531 (vax_regset_from_core_section): New function.
9532 (vax_gdbarch_init): Set regset_from_core_section.
9533 * Makefile.in (vax-tdep.o): Update dependencies.
9534
9535 2004-04-15 Andrew Cagney <cagney@redhat.com>
9536
9537 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9538 (observer_normal_stop_notification_stub)
9539 (observer_attach_normal_stop, observer_detach_normal_stop):
9540 Delete, replaced by #include "observer.inc".
9541 * infrun.c (normal_stop): Pass "stop_bpstat" to
9542 observer_notify_normal_stop.
9543 * Makefile.in (observer_inc): Define.
9544 (observer.o): Update dependencies.
9545 (observer.h, observer.inc): New rules.
9546 * observer.h: Delete file.
9547 * observer.sh: New file.
9548
9549 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9550
9551 * vax-tdep.c (vax_frame_cache): Fix typo.
9552
9553 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9554
9555 * NEWS (New native configurations): Mention NetBSD/vax.
9556 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9557 * config/vax/nbsdelf.mh: New file.
9558 * config/vax/nbsdaout.mh: New file.
9559 * config/vax/nm-nbsd.h: New file.
9560 * config/vax/nm-nbsdaout.h: New file.
9561
9562 * vaxnbsd-tdep.c: New file.
9563 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9564 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9565 * config/vax/nbsd.mt: New file.
9566 * config/vax/tm-nbsd.h: New file.
9567
9568 * Makefile.in (vaxbsd-nat.o): New dependency.
9569
9570 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9571 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9572 struct_addr arguments. Don't push return value address.
9573 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9574 arguments to vax_store_arguments. Store return value address in
9575 R1.
9576 (vax_store_struct_return, vax_extract_return_value)
9577 (vax_store_return_value): Remove functions.
9578 (vax_return_value): New function.
9579 (vax_gdbarch_init): Set return value. Don't set
9580 deprecated_store_struct_return, deprecated_extract_struct_return
9581 and deprecated_store_return_value.
9582
9583 2004-04-14 Andreas Schwab <schwab@suse.de>
9584
9585 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9586 value buffer.
9587 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9588
9589 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9590
9591 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9592 (vax_unwind_dummy_id): New functions.
9593 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9594 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9595 variables.
9596 (vax_fix_call_dummy): Remove function.
9597 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9598 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9599 call_dummy_location, deprecated_call_dummy_words,
9600 deprecated_sizeof_call_dummy_words,
9601 deprecated_call_dummy_breakpoint_offset,
9602 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9603 and deprecated_dummy_write_sp.
9604
9605 2004-04-13 David Carlton <carlton@kealia.com>
9606
9607 * MAINTAINERS: Move myself to "paper trail" section.
9608
9609 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9610
9611 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9612 "trad-frame.h".
9613 (vax_frame_init_saved_regs): Remove function.
9614 (vax_sigtramp_saved_pc): Remove function.
9615 (vax_frame_saved_pc): Remove function.
9616 (vax_frame_args_address): Remove function.
9617 (vax_frame_num_args): Rewrite.
9618 (vax_frame_chain): Remove function.
9619 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9620 VAX_FP_REGNUM.
9621 (vax_pop_frame): Likewise.
9622 (vax_saved_pc_after_call): Remove function.
9623 (struct vax_frame_cache): New structure.
9624 (vax_frame_cache): New function.
9625 (vax_frame_this_id): New function.
9626 (vax_frame_prev_register): New function.
9627 (vax_frame_unwind): New variable.
9628 (vax_frame_sniffer): New function.
9629 (vax_frame_base_address): New function.
9630 (vax_frame_args_address): New function.
9631 (vax_frame_base): New variable.
9632 (vax_unwind_pc): New function.
9633 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9634 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9635 deprecated_frame_chain, deprecated_frame_saved_pc,
9636 deprecated_frame_args_address and
9637 deprecated_frame_init_saved_regs.
9638 * Makefile.in (vax-tdep.o): Update dependencies.
9639
9640 * vaxbsd-nat.c: New file.
9641
9642 * vax-tdep.h: Update copyright year. Adjust comments.
9643 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9644 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9645 (vax_regnum): New enum. Replacing...
9646 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9647 (VAX_PS_REGNUM): ... these removed macros.
9648 * vax-tdep.c (vax_register_name): Remove prototype.
9649 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9650 (vax_register_byte, vax_register_raw_size,
9651 vax_register_virtual_size, vax_register_virtual_type): Remove
9652 functions.
9653 (vax_register_type): New function.
9654 (vax_breakpoint_from_pc): Reorganize.
9655 (vax_gdbarch_init): Set register_type. Don't set
9656 deprecated_register_size, deprecated_register_bytes,
9657 deprecated_register_byte, deprecated_register_raw_size,
9658 deprecated_max_register_raw_size,
9659 deprecated_register_virtual_size,
9660 deprecated_max_register_virtual_size and
9661 deprecated_register_virtual_type. Add comment on stack direction.
9662
9663 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9664
9665 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9666 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9667 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9668
9669 2004-04-10 Randolph Chung <tausq@debian.org>
9670
9671 * MAINTAINERS (write after approval): Add myself.
9672
9673 2004-04-07 Randolph Chung <tausq@debian.org>
9674
9675 * hppa-tdep.c (hppa_inner_than): Remove.
9676 (is_pa_2): Remove unused static variable.
9677 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9678
9679 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9680
9681 * language.h (language_defn): Add new la_post_parser field.
9682 * parser-defs.h (null_post_parser): New declaration (default for
9683 la_post_parser).
9684
9685 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9686 insert call to that function.
9687 (parse_exp_in_context): New function, including code formerly in
9688 parse_exp_1. Calls language-dependent post-parser after
9689 prefixification.
9690 (parse_expression_in_context): New exported function.
9691 (null_post_parser): New definition.
9692 * expression.h (parse_expression_in_context): Add declaration.
9693
9694 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9695 * c-lang.c (c_language_defn): Ditto.
9696 (cplus_language_defn): Ditto.
9697 (asm_language_defn): Ditto.
9698 (minimal_language_defn): Ditto.
9699 * f-lang.c (f_language_defn): Ditto.
9700 * jv-lang.c (java_language_defn): Ditto.
9701 * language.c (unknown_language_defn): Ditto.
9702 (auto_language_defn): Ditto.
9703 (local_language_defn): Ditto.
9704 * m2-lang.c (m2_language_defn): Ditto.
9705 * scm-lang.c (scm_language_defn): Ditto.
9706 * obj-lang.c (objc_language_defn): Ditto.
9707
9708 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9709
9710 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9711 (amd64nbsd_mcontext_addr): New function.
9712 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9713 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9714 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9715
9716 * corelow.c (core_xfer_partial): Fix coding standards violation.
9717 Add support for TARGET_OBJECT_WCOOKIE.
9718
9719 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9720 deprecated_pc_in_sigtramp.
9721 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9722 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9723 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9724 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9725 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9726 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9727 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9728
9729 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9730 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9731 Fix typo.
9732
9733 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9734 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9735 (amd64_collect_fxsave): Likewise.
9736
9737 * i386-sol2-tdep.c: Include "gdb_string.h".
9738 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9739 name.
9740 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9741
9742 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9743
9744 * i386-sol2-tdep.c: Include "solib-svr4.h".
9745 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9746 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9747 * config/i386/tm-i386sol2.h: Include :solib.h".
9748 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9749 solib-svr4.o and solib-legacy.o.
9750 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9751 solib-svr4.o.
9752
9753 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9754
9755 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9756 whether a register is supplied by PTRACE_GETFPREGS.
9757 (store_inferior_registers): Likewise.
9758 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9759 whether a register is supplied by PT_GETFPREGS.
9760 (store_inferior_registers): Likewise.
9761
9762 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9763 * config/i386/linux64.mt (TDEPFILES): Likewise.
9764
9765 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9766
9767 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9768 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9769 the program counter is in the range specified by `struct
9770 gdbarch_tdep'.
9771 * amd64-linux-tdep.c: Include "symtab.h".
9772 (amd64_linux_pc_in_sigtramp): Remove function.
9773 (amd64_linux_sigtramp_p): New function.
9774 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9775 deprecated_pc_in_sigtramp.
9776 * amd64nbsd-tdep.c: Include "symtab.h".
9777 (amd64nbsd_sigtramp_p): New function.
9778 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9779 deprecated_pc_in_sigtramp.
9780 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9781 few comments.
9782 (amd64obsd_pc_in_sigtramp): Remove function.
9783 (amd64obsd_sigtramp_p): New function.
9784 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9785 deprecated_pc_in_sigtramp.
9786 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9787 (i386bsd_pc_ins_sigtramp): Remove prototype.
9788 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9789 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9790 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9791 the program counter is in the range specified by `struct
9792 gdbarch_tdep'.
9793 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9794 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9795 (i386_go32_pc_in_sigtramp): Remove function.
9796 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9797 Initialize TDEP->sigtramp_p.
9798 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9799 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9800 deprecated_pc_in_sigtramp.
9801 * i386-linux-tdep.c: Adjust comments.
9802 (i386_linux_pc_in_sigtramp): Remove function.
9803 (i386_linux_sigtramp_p): New function.
9804 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9805 deprecated_pc_in_sigtramp.
9806 * i386-nto-tdep.c: Update copyright year.
9807 (i386nto_pc_in_sigtramp): Remove function.
9808 (i386nto_sigtramp_p): New function.
9809 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9810 SP_REGNUM.
9811 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9812 deprecated_pc_in_sigtramp.
9813 * i386-sol2-tdep.c: Update copyright year.
9814 (i386_sol2_pc_in_sigtramp): Remove function.
9815 (i386_sol2_sigtramp_p): New function.
9816 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9817 deprecated_pc_in_sigtramp.
9818 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9819 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9820 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9821 deprecated_sigtramp_start and deprecated_sigtramp_end.
9822 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9823 (i386nbsd_pc_in_sigtramp): Remove function.
9824 (i386nbsd_sigtramp_p): New function.
9825 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9826 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9827 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9828 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9829 (i386obsd_pc_in_sigtramp): Remove function.
9830 (i386obsd_sigtramp_p): New function.
9831 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9832 functions.
9833 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9834 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9835 TDEP->sigtramp_p.
9836 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9837 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9838 dependencies.
9839
9840 * config/i386/i386aout.mt: Remove file.
9841
9842 * configure.tgt: Remove i[34567]86-*-go32*,
9843 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9844 and i[34567]86-*-isc*. Set gdb_target to i386 for
9845 i[34567]86-*-netware* and i[34567]86-*-*.
9846 * config/i386/i386.mt: New file.
9847 * config/i386/embed.mt: Remove file.
9848 * config/i386/go32.mt: Remove file.
9849 * config/i386/i386nw.mt: Remove file.
9850 * config/i386/i386v.mt: Remove file.
9851 * config/i386/tm-go32.h: Remove file.
9852
9853 * tui/tui-hooks.c: Include "readline/readline.h" after
9854 "gdb_curses.h" instead of before.
9855 * tui/tui-io.c: Likewise.
9856
9857 * tui/tui.c: Fix typo in comment.
9858
9859 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9860
9861 2004-04-08 Andrew Cagney <cagney@redhat.com>
9862
9863 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9864 (deprecated_exception_support_initialized): Declare.
9865 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9866 (initialize_hp_cxx_exception_support)
9867 (child_enable_exception_callback): Update.
9868 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9869 (deprecated_exception_support_initialized): Rename
9870 deprecated_exception_catchpoints_are_fragile and
9871 deprecated_exception_support_initialized.
9872 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9873
9874 * symtab.c (deprecated_hp_som_som_object_present): Rename
9875 hp_som_som_object_present.
9876 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9877 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9878 Update. Delete extern declaration.
9879 * valops.c (hp_som_som_object_present): Ditto.
9880 * parse.c (deprecated_hp_som_som_object_present)
9881 (parse_nested_classes_for_hpacc): Ditto.
9882 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9883 * hppa-hpux-tdep.c (hp_som_som_object_present)
9884 (initialize_hp_cxx_exception_support): Ditto.
9885 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9886 * cp-valprint.c (hp_som_som_object_present)
9887 (cp_print_class_method): Ditto.
9888 * c-typeprint.c (hp_som_som_object_present):
9889 (c_type_print_base): Ditto.
9890 * c-exp.y (hp_som_som_object_present): Ditto.
9891
9892 2004-04-08 Andrew Cagney <cagney@redhat.com>
9893
9894 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9895 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9896 (frame_unwind_find_by_frame): Re-implement the unwind code so
9897 that it can both prepend and append sniffers. Replace
9898 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9899 * tramp-frame.c (tramp_frame_append): Use
9900 frame_unwind_prepend_unwinder.
9901 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9902 frame_unwind_register_unwinder.
9903 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9904 tramp_frame_append.
9905 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9906 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9907 (mips_linux_init_abi): Update.
9908
9909 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9910
9911 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9912 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9913 file support.
9914
9915 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9916
9917 * ia64-tdep.c (elf.h): Don't include.
9918 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9919
9920 2004-04-07 Jason Molenda (jmolenda@apple.com)
9921
9922 * frame.h: Typeo corrections in comments.
9923
9924 2004-04-07 Jim Blandy <jimb@redhat.com>
9925
9926 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9927 %esp and %ebp
9928
9929 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9930
9931 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9932 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9933 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9934 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9935 and solib-legacy.o.
9936 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9937 solib-svr4.o.
9938 * config/sparc/tm-sol2.h: Update copyright year. Include
9939 "solib.h".
9940
9941 * sparc-sol2-tdep.c: Update copyright year. Include
9942 "solib-svr4.h".
9943 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9944 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9945 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9946 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9947 dependencies.
9948
9949 2004-04-06 Andrew Cagney <cagney@redhat.com>
9950
9951 * infttrace.c: Include "infttrace.h".
9952 * infttrace.h: Include "target.h".
9953 * Makefile.in (infttrace_h): Update.
9954 (infttrace.o): Update.
9955
9956 2004-04-06 Andrew Cagney <cagney@redhat.com>
9957
9958 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9959 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9960 move extern declarations from here ...
9961 * infttrace.h: ... to here.
9962 * Makefile.in (hppah-nat.o): Update dependencies.
9963
9964 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9965 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9966 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9967 (hppa_breakpoint_from_pc): Delete.
9968
9969 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9970
9971 2004-04-05 Andrew Cagney <cagney@redhat.com>
9972
9973 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9974 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9975 <sys/file.h>.
9976
9977 2004-04-06 Randolph Chung <tausq@debian.org>
9978
9979 Committed by Andrew Cagney (mechanical change).
9980 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9981 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9982 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9983 child_enable_exception_callback, current_ex_event,
9984 null_symtab_and_line, child_get_current_exception_event,
9985 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9986 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9987 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9988 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9989 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9990 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9991 Move hpux-specific definitions ...
9992 * hppa-hpux-tdep.c: ... to here.
9993
9994 2004-04-05 Andrew Cagney <cagney@redhat.com>
9995
9996 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9997 skip_prologue_using_sal.
9998
9999 2004-04-05 Andrew Cagney <cagney@redhat.com>
10000
10001 * config/i386/tm-i386.h: Delete file.
10002 * config/i386/tm-vxworks.h: Update copyright, do not include
10003 "tm-i386.h".
10004 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10005 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10006 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10007 * config/i386/ncr3000.mt (TM_FILE): Delete.
10008 * config/i386/interix.mt (TM_FILE): Delete.
10009 * config/i386/i386v.mt (TM_FILE): Delete.
10010 * config/i386/i386nw.mt (TM_FILE): Delete.
10011 * config/i386/i386gnu.mt (TM_FILE): Delete.
10012 * config/i386/i386aout.mt (TM_FILE): Delete.
10013 * config/i386/embed.mt (TM_FILE): Delete.
10014
10015 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10016
10017 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10018 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10019 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10020 (accg7_regnum): New constants.
10021 (last_spr_regnum, last_pseudo_regnum): Update.
10022 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10023 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10024 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10025 for accg registers.
10026 (frv_register_sim_regno): Update spr_map[].
10027
10028 2004-04-04 Andrew Cagney <cagney@redhat.com>
10029
10030 * config/mips/xm-riscos.h: Delete.
10031 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10032 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10033 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10034 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10035 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10036 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10037 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10038 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10039 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10040 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10041 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10042 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10043 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10044 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10045 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10046 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10047 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10048 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10049 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10050 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10051 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10052 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10053 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10054 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10055 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10056 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10057
10058 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10059 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10060 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10061 * configure.host: Remove m680[01]0-sun-sunos3*,
10062 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10063 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10064 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10065 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10066 mips-*-riscos*.
10067 * NEWS: Mention removed systems.
10068
10069 2004-04-04 Andrew Cagney <cagney@redhat.com>
10070
10071 GDB 6.1 release created from 6.1 branch.
10072
10073 2004-04-04 Andrew Cagney <cagney@redhat.com>
10074
10075 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10076 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10077 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10078
10079 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10080 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10081 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10082
10083 2004-04-03 Jim Blandy <jimb@redhat.com>
10084
10085 * MAINTAINERS: Chris Faylor has changed employers; add him to
10086 "paper trail" section, and update his E-mail address.
10087
10088 2004-04-03 Andrew Cagney <cagney@redhat.com>
10089
10090 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10091 generic dummy frames.
10092 * dummy-frame.c: Update copyright.
10093 (dummy_frame_sniffer): Delete check for generic dummy frames.
10094
10095 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10096 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10097 (REG_PARM_STACK_SPACE): Delete.
10098 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10099 Inline reference to REG_PARM_STACK_SPACE.
10100
10101 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10102 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10103 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10104 (FRAME_BASE_BEFORE_SIGTRAMP)
10105 (hppa32_hpux_frame_base_before_sigtramp)
10106 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10107 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10108 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10109 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10110 (FRAME_BASE_BEFORE_SIGTRAMP)
10111 (hppa64_hpux_frame_base_before_sigtramp)
10112 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10113
10114 2004-04-03 Andrew Cagney <cagney@redhat.com>
10115
10116 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10117
10118 2004-04-02 Andrew Cagney <cagney@redhat.com>
10119
10120 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10121 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10122 * dummy-frame.h: Delete out-of-date comments.
10123 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10124 * gdbarch.h, gdbarch.c: Re-generate.
10125
10126 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10127
10128 Committed by Andrew Cagney <cagney@redhat.com>.
10129 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10130 into account an instruction saving a register if we have already
10131 seen an earlier instruction saving that same register.
10132
10133 2004-04-02 Andrew Cagney <cagney@redhat.com>
10134
10135 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10136 * gdbarch.h, gdbarch.c: Re-generate.
10137 * frame.c (legacy_get_prev_frame): Delete references to
10138 DEPRECATED_INIT_FRAME_PC_FIRST.
10139
10140 * infrun.c (pc_in_sigtramp): Delete function.
10141 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10142 get_frame_type.
10143
10144 2004-04-02 Andrew Cagney <cagney@redhat.com>
10145
10146 * infrun.c (handle_step_into_function): Delete code conditional on
10147 legacy_frame_p.
10148 (handle_inferior_event, step_over_function): Ditto.
10149
10150 2004-04-02 Andrew Cagney <cagney@redhat.com>
10151
10152 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10153 "previous frame inner to this frame" test.
10154
10155 2004-04-02 Andrew Cagney <cagney@redhat.com>
10156
10157 * frame.c (safe_frame_unwind_memory): New function.
10158 * frame.h (safe_frame_unwind_memory): Declare. Update description
10159 of /safe_/ methods.
10160 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10161 "next_frame". Use safe_frame_unwind_memory.
10162 (tramp_frame_sniffer): Update call to tramp_frame_start.
10163
10164 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10165
10166 * dwarf2read.c (dwarf2_objfile_data_key): New.
10167 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10168 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10169 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10170 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10171 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10172 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10173 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10174 Remove variables.
10175 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10176 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10177 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10178 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10179 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10180 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10181 Remove macros.
10182 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10183 data.
10184 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10185 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10186 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10187 (read_partial_die, read_full_die, read_indirect_string)
10188 (dwarf_decode_line_header, dwarf_decode_macros)
10189 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10190 Update uses of removed variables.
10191 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10192 of removed macros.
10193 (_initialize_dwarf2_read): New function.
10194 * symfile.h (dwarf2_has_info): Update prototype.
10195 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10196 * elfread.c (elf_symfile_read): Likewise.
10197
10198 2004-04-01 Jim Blandy <jimb@redhat.com>
10199
10200 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10201 function for register numbers on all the rs6000-derived targets.
10202 (rs6000_gdbarch_init): Don't register a separate
10203 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10204 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10205 variants.
10206
10207 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10208 numbering.
10209
10210 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10211
10212 * valarith.c: Update copyright notice.
10213 (value_add): Handle range types.
10214 (value_sub): Ditto.
10215 (value_equal): Ditto.
10216 (value_less): Ditto.
10217 (value_neg): Ditto.
10218 (value_complement): Ditto.
10219 (value_binop): Simplify slightly by using is_integral_type and
10220 eliminiating unnecessary COERCE_ENUMs.
10221
10222 2004-03-31 Andrew Cagney <cagney@redhat.com>
10223
10224 * frame.h (frame_unwind_id): Declare.
10225 * frame.c (frame_unwind_id): New function.
10226 (get_prev_frame_1): New function.
10227 (frame_debug_got_null_frame): New function.
10228 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10229 code proper to prev_frame, update description.
10230 * infrun.c (step_over_function): Use frame_unwind_id.
10231
10232 2004-04-31 J. Brobecker <brobecker@gnat.com>
10233
10234 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10235 (hppa64_push_dummy_call): Likewise.
10236
10237 2004-03-30 Jim Blandy <jimb@redhat.com>
10238
10239 From Ulrich Weigand:
10240 * utils.c (query): Do not use a va_list variable multiple times.
10241
10242 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10243
10244 * Makefile.in (linux_nat_h): Update dependencies.
10245 * configure.in: Check for <gnu/libc-version.h>.
10246 * configure: Regenerate.
10247 * config.in: Regenerate.
10248 * linux-nat.h: Include "target.h". Add waitstatus field to
10249 struct lwp_info.
10250 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10251 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10252 to.
10253 (lin_lwp_handle_extended): New function. Handle clone events.
10254 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10255 thread exit events.
10256 (child_wait): Handle clone events.
10257 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10258 * linux-nat.c (linux_enable_event_reporting): Turn on
10259 PTRACE_O_TRACECLONE.
10260 (linux_handle_extended_wait): Handle clone events.
10261 * thread-db.c: Include <gnu/libc-version.h>.
10262 (struct private_thread_info): Add dying flag.
10263 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10264 higher.
10265 (attach_thread): Update comments. Handle dying threads.
10266 (detach_thread): Set the dying flag.
10267 (check_event): Always call attach_thread.
10268
10269 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10270
10271 * mips-tdep.c (mips_pdr_data): New.
10272 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10273 (_initialize_mips_tdep): Initialize mips_pdr_data.
10274
10275 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10276
10277 * minsyms.c (install_minimal_symbols): Move dropping leading
10278 char from linkage name from here...
10279 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10280 test for "__gnu_compiled*" symbols.
10281
10282 2004-03-28 Jim Blandy <jimb@redhat.com>
10283
10284 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10285 registers to temp register r0 and byte stores as prologue
10286 instructions.
10287
10288 2004-03-28 Andrew Cagney <cagney@redhat.com>
10289
10290 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10291 arm*-*-*.
10292
10293 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10294
10295 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10296 and switch the layout to force a display of register window.
10297
10298 2004-02-26 J. Brobecker <brobecker@gnat.com>
10299
10300 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10301 of the INTEGER class.
10302
10303 2004-03-26 Jim Blandy <jimb@redhat.com>
10304
10305 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10306 bytes long on PPC GNU/Linux.
10307
10308 2004-03-26 David Carlton <carlton@kealia.com>
10309
10310 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10311
10312 2004-03-25 Andrew Cagney <cagney@redhat.com>
10313
10314 * PROBLEMS: Add general section titles, remove references to
10315 specific releases.
10316
10317 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10318
10319 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10320 INT_REGISTER_SIZE.
10321 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10322 FP_REGISTER_VIRTUAL_SIZE.
10323 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10324 of DEPRECATED_REGISTER_RAW_SIZE.
10325 (arm_register_type): Add gdbarch argument.
10326 (arm_register_raw_size, arm_register_virtual_size): Delete.
10327 (arm_register_byte, arm_extract_return_value)
10328 (arm_store_return_value, arm_get_longjmp_target): Update references
10329 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10330 (arm_gdbarch_init): Likewise. Don't set
10331 deprecated_register_raw_size, deprecated_register_virtual_size,
10332 deprecated_max_register_raw_size,
10333 deprecated_max_register_virtual_size, or
10334 deprecated_max_register_virtual_type. Do set register_type.
10335 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10336 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10337 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10338 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10339 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10340 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10341 INT_REGISTER_SIZE.
10342 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10343 (remote_rdp_store_register): Likewise.
10344
10345 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10346
10347 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10348 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10349 to after osabi initialization.
10350 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10351 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10352 functions.
10353 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10354 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10355 variables.
10356 (mips_linux_init_abi): Append signal trampoline unwinders.
10357
10358 2004-03-24 Andrew Cagney <cagney@redhat.com>
10359
10360 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10361 * tramp-frame.c: Include "gdb_assert.h".
10362 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10363 correct sizeof.
10364 (tramp_frame_append): Validate the tramp frame's instructions.
10365 * Makefile.in (tramp-frame.o): Update dependencies.
10366
10367 2004-03-23 Andrew Cagney <cagney@redhat.com>
10368
10369 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10370
10371 2004-03-23 Andrew Cagney <cagney@redhat.com>
10372
10373 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10374 Nasser as past testsuite/lib/ (and other) maintainers.
10375
10376 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10377
10378 * infcmd.c (attach_command): Reread symbols if we already have
10379 an exec file.
10380
10381 2004-03-23 Andrew Cagney <cagney@redhat.com>
10382
10383 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10384
10385 2004-03-23 Andrew Cagney <cagney@redhat.com>
10386
10387 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10388 * gdbarch.h, gdbarch.c: Re-generate.
10389 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10390 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10391 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10392 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10393 (DEPRECATED_SIGTRAMP_START): Update.
10394 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10395 (DEPRECATED_SIGTRAMP_START): Update.
10396 * blockframe.c (find_pc_sect_partial_function): Update.
10397 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10398
10399 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10400
10401 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10402 if necessary.
10403
10404 2004-03-23 Andrew Cagney <cagney@redhat.com>
10405
10406 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10407 predicate, deprecate.
10408 * gdbarch.h, gdbarch.c: Re-generate.
10409 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10410 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10411 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10412 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10413 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10414 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10415 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10416 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10417 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10418 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10419 * blockframe.c (find_pc_partial_function): Update.
10420 * breakpoint.c (bpstat_what): Update.
10421 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10422 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10423 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10424 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10425 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10426 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10427 * i386-nto-tdep.c (i386nto_init_abi): Update.
10428 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10429 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10430 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10431 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10432 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10433 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10434 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10435 * infrun.c (pc_in_sigtramp): Update.
10436 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10437 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10438 * mips-tdep.c (mips_gdbarch_init): Update.
10439 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10440 * ppc-linux-tdep.c: Update comment.
10441 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10442 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10443 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10444 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10445 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10446 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10447 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10448 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10449 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10450 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10451
10452 2004-03-23 Andrew Cagney <cagney@redhat.com>
10453
10454 * tramp-frame.h, tramp-frame.h: New files.
10455 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10456 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10457
10458 * Makefile.in: Update all dependencies.
10459
10460 2004-03-23 Andrew Cagney <cagney@redhat.com>
10461
10462 * Makefile.in (trad_frame_h): Add $(frame_h).
10463 * trad-frame.h: Update copyright. Include "frame.h".
10464 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10465 (trad_frame_set_id, trad_frame_get_id): Declare.
10466 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10467 * trad-frame.c: Update copyright.
10468 (struct trad_frame_cache): Define.
10469 (trad_frame_cache_zalloc): New function.
10470 (trad_frame_set_id, trad_frame_get_id): New functions.
10471 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10472
10473 2004-03-22 Andrew Cagney <cagney@redhat.com>
10474
10475 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10476 s390_pltstub_unwind_cache.
10477 (s390_stub_frame_unwind_cache): Rename
10478 s390_pltstub_frame_unwind_cache.
10479 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10480 (s390_stub_frame_prev_register): Rename
10481 s390_pltstub_frame_prev_register.
10482 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10483 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10484
10485 From Ulrich Weigand:
10486 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10487 pointer calls like PLT calls.
10488
10489 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10492 PC rather than the partial function start address. Use the start
10493 address to sanity check the found PDR.
10494
10495 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10498 linux_handle_extended_wait.
10499
10500 2004-03-22 Andrew Cagney <cagney@redhat.com>
10501
10502 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10503 function.
10504
10505 * frame.h (generic_pop_current_frame): Delete declaration.
10506 (deprecate_pop_dummy_frame): Deprecate
10507 generic_pop_dummy_frame.
10508 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10509 (generic_pop_current_frame): Delete function.
10510 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10511 generic_pop_current_frame.
10512 * v850-tdep.c (v850_pop_frame): Update.
10513 * mcore-tdep.c (mcore_pop_frame): Update.
10514 * sh64-tdep.c (sh64_pop_frame): Update.
10515 * h8300-tdep.c (h8300_pop_frame): Update.
10516
10517 2004-03-22 Andrew Cagney <cagney@redhat.com>
10518
10519 * frame.h (deprecated_pc_in_call_dummy): Rename
10520 generic_pc_in_call_dummy.
10521 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10522 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10523 generic_pc_in_call_dummy.
10524 (pc_in_dummy_frame): Make static.
10525 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10526 * gdbarch.h, gdbarch.c: Re-generate.
10527 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10528 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10529 (legacy_get_prev_frame): Ditto.
10530 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10531 comment.
10532
10533 2004-03-21 Andrew Cagney <cagney@redhat.com>
10534
10535 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10536 declaration and out-of-date comment.
10537 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10538 Delete function.
10539 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10540 deprecated_pc_in_call_dummy.
10541
10542 * infrun.c (handle_inferior_event): For non legacy frames, use the
10543 frame ID and frame type to identify a signal trampoline. Update
10544 comments.
10545
10546 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10547
10548 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10549 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10550
10551 2004-03-21 Andrew Cagney <cagney@redhat.com>
10552
10553 * frame-unwind.h: Update copyright.
10554 (struct frame_data): Add opaque declaration.
10555 (frame_sniffer_ftype): Declare.
10556 (struct frame_unwind): Add "unwind_data" and "sniffer".
10557 (frame_unwind_register_unwinder): Declare.
10558 (frame_unwind_find_by_frame): Add parameter "this_cache".
10559 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10560 (legacy_get_prev_frame, legacy_get_prev_frame)
10561 (get_frame_type): Pass the prologue_cache to
10562 frame_unwind_find_by_frame.
10563 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10564 "unwinder".
10565 (frame_unwind_register_unwinder): New function.
10566 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10567
10568 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10569
10570 * bcache.c (print_percentage): Use floating point to avoid
10571 incorrect results when portion*100 overflows.
10572
10573 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10574
10575 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10576 (ppc_linux_init_extra_frame_info)
10577 (ppc_linux_frameless_function_invocation)
10578 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10579 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10580 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10581 (rs6000_frame_chain): Delete declarations.
10582 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10583 (ppc_linux_init_extra_frame_info)
10584 (ppc_linux_frameless_function_invocation)
10585 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10586 (ppc_linux_init_abi): Remove registration of above deleted functions.
10587 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10588 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10589 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10590 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10591 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10592 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10593 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10594 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10595 frame management for all OSABIs.
10596
10597 2004-03-19 Andrew Cagney <cagney@redhat.com>
10598
10599 Committed by Kevin Buettner <kevinb@redhat.com>.
10600
10601 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10602 Update copyright.
10603 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10604 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10605 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10606 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10607 unwinders. #ifdef legacy frame code.
10608 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10609 "frame-base.h".
10610 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10611 (struct rs6000_frame_cache, rs6000_frame_cache)
10612 (rs6000_frame_this_id, rs6000_frame_prev_register)
10613 (rs6000_frame_sniffer, rs6000_frame_unwind)
10614 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10615 (rs6000_frame_base): Implement a traditional frame unwinder.
10616 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10617 frame unwinder.
10618
10619 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10620
10621 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10622 breakpoint address for watchpoints or the catch eventpoints.
10623 Add new paramter ``bptype''. Adjust all callers.
10624
10625 2004-03-19 Andrew Cagney <cagney@redhat.com>
10626
10627 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10628
10629 * PROBLEMS: Delete note that ARM does not use frame code, problem
10630 fixed.
10631
10632 2004-03-18 Andrew Cagney <cagney@redhat.com>
10633
10634 * stack.c (return_command): Delete code wrapped in #ifdef
10635 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10636
10637 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10638
10639 2004-03-18 Andrew Cagney <cagney@redhat.com>
10640
10641 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10642 DEPRECATED_IN_SIGTRAMP.
10643 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10644 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10645 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10646 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10647 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10648 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10649 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10650 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10651 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10652 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10653
10654 2004-03-18 Andrew Cagney <cagney@redhat.com>
10655
10656 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10657 (struct frame_base_table_entry): Define.
10658 (struct frame_base_table): Re-implement as a linked list.
10659 (frame_base_init): Re-implement.
10660 (frame_base_table): Delete function.
10661 (append_predicate): Delete function.
10662 (frame_base_append_sniffer): Update.
10663 (frame_base_set_default): Update.
10664 (frame_base_find_by_frame): Update.
10665 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10666 * Makefile.in (frame-base.o): Update dependencies.
10667
10668 2004-03-17 Andrew Cagney <cagney@redhat.com>
10669
10670 * frame.c (legacy_get_prev_frame): Pass correct frame to
10671 frame_unwind_find_by_frame.
10672
10673 2004-03-17 David Carlton <carlton@kealia.com>
10674
10675 * NEWS: Mention C++ nested types and namespaces
10676
10677 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10678
10679 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10680 and "Regressions since gdb 5.3.". Add known regressions since
10681 gdb 6.0.
10682
10683 2004-03-16 David Carlton <carlton@kealia.com>
10684
10685 * dwarf2read.c (process_structure_scope): Process children even
10686 when we're a declaration.
10687
10688 2004-03-16 Andrew Cagney <cagney@redhat.com>
10689
10690 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10691 * blockframe.c (find_pc_partial_function)
10692 (find_pc_sect_partial_function): Merge into a single
10693 find_pc_partial_function.
10694
10695 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10696
10697 * i386bsd-nat.c: s/regno/regnum/g.
10698 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10699 FP0_REGNUM.
10700 (store_inferior_registers): Likewise.
10701
10702 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10703
10704 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10705 of i387_fill_fsave.
10706 (store_inferior_registers): Call i387_collect_fsave and
10707 i387_collect_fxsave instead of i387_fill_fsave and
10708 i387_fill_fxsave.
10709
10710 2004-03-15 Andrew Cagney <cagney@redhat.com>
10711
10712 * Makefile.in (frame-unwind.o): Update dependencies.
10713 * frame-unwind.c: Include "gdb_obstack.h".
10714 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10715 parameter.
10716 (append_predicate): Delete function.
10717 (struct frame_unwind_table_entry): New structure.
10718 (struct frame_unwind_table): Replace "sniffer" with "head" and
10719 "tail".
10720 (frame_unwind_append_sniffer): Update.
10721 (frame_unwind_find_by_frame): Update.
10722 (_initialize_frame_unwind): Registe frame_unwind_init using
10723 gdbarch_data_register_pre_init.
10724
10725 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10726
10727 * i386bsd-nat.c: Update copyright year.
10728 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10729 define unconditionally.
10730
10731 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10732
10733 * i387-tdep.h (i387_collect_fsave): New prototype.
10734 * i387-tdep.c (i387_collect_fsave): New function containing most
10735 of the code from i387_fill_fsave.
10736 (i387_fill_fsave): Call i387_collect_fsave.
10737
10738 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10739
10740 * i386-linux-tdep.c: Update copyright year.
10741 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10742 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10743 svr4_ilp32_link_map_offsets instead of
10744 i386_linux_svr4_fetch_link_map_offsets.
10745
10746 2004-03-15 David Carlton <carlton@kealia.com>
10747
10748 Fix for PR c++/1553:
10749 * dwarf2read.c (read_structure_type): Determine type name by
10750 calling determine_class_name.
10751 (determine_class_name): New.
10752 (determine_prefix): Look at TYPE_TAG_NAME and call
10753 determine_class_name when appropriate.
10754 (determine_prefix_aux, class_name): Delete.
10755 (read_namespace): Set die->type.
10756
10757 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10758
10759 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10760 unused macro definition. The definition in target.h (or perhaps
10761 elsewhere) takes precedence.
10762
10763 2004-03-15 Andrew Cagney <cagney@redhat.com>
10764
10765 * ppc-tdep.h: Update copyright.
10766 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10767 function signatures to match "regsets.h".
10768 * ppc-linux-tdep.c: Include "regset.h".
10769 (ELF_GREGSET_SIZE): Delete.
10770 (right_supply_register): New function.
10771 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10772 using right_supply_register.
10773 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10774 functions.
10775 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10776 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10777 (_initialize_ppc_linux_tdep): Do not register
10778 ppc_linux_regset_core_fns.
10779 (ppc_linux_regset_from_core_section): Replace
10780 fetch_core_registers.
10781 (ppc_linux_regset_core_fns): Delete.
10782 * ppc-linux-nat.c: (right_fill_reg): New function.
10783 (supply_gregset): Update call to ppc_linux_supply_gregset.
10784 (fill_gregset): Clear the register set, use right_fill_reg.
10785 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10786 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10787
10788 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10789 unsigned.
10790
10791 2004-03-15 Andrew Cagney <cagney@redhat.com>
10792
10793 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10794 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10795 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10796 and register_gdbarch_data.
10797 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10798 (struct gdbarch_data): Replace "init" by "pre_init" and
10799 "post_init".
10800 * gdbarch.h, gdbarch.c: Re-generate.
10801 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10802 with"obstack", use OBSTACK_ZALLOC.
10803 (dwarf2_frame_ops): Delete.
10804 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10805 (dwarf2_frame_init_reg): Use gdbarch_data.
10806 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10807 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10808 (_initialize_svr4_solib): Update.
10809 * user-regs.c (_initialize_user_regs): Update.
10810 * reggroups.c (_initialize_reggroup): Update.
10811 * regcache.c (_initialize_regcache): Update.
10812 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10813 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10814 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10815 * frame-unwind.c (_initialize_frame_unwind): Update.
10816 * frame-base.c (_initialize_frame_base): Update.
10817 * user-regs.c (user_reg_add): Update.
10818 * reggroups.c (reggroup_add): Update.
10819 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10820 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10821 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10822 * frame-base.c (frame_base_table): Update.
10823 * remote.c (_initialize_remote): Update.
10824 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10825
10826 2004-03-15 Andrew Cagney <cagney@redhat.com>
10827
10828 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10829
10830 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10831
10832 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10833 * frv-linux-tdep.c: New file.
10834 * frv-tdep.c (struct gdbarch_tdep): Add new field
10835 ``sigcontext_reg_addr''.
10836 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10837 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10838 (frv_sigramp_frame_sniffer): New functions.
10839 (frv_sigtramp_frame_unwind): New static global.
10840 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10841 sniffers.
10842 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10843 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10844
10845 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10846
10847 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10848 but not via a call to error(), when unable to read memory.
10849
10850 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10851
10852 * frv-tdep.c (frv_call_dummy_words): Delete.
10853 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10854
10855 2004-03-15 Andrew Cagney <cagney@redhat.com>
10856
10857 * infrun.c (handle_step_into_function, step_over_function): Only
10858 update and use STEP_FRAME_ID when the system is using legacy
10859 frames. Update comments.
10860
10861 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10862
10863 * amd64-linux-tdep.h: Remove file.
10864 * amd64-linux-tdep.c: Don't include "inferior.h" and
10865 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10866 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10867 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10868 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10869 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10870 macros.
10871 (user_to_gdb_regmap): Remove variable.
10872 (amd64_linux_gregset_reg_offset): New variable.
10873 (amd64_core_fns): Remove variable.
10874 (fetch_core_registers): Remove function.
10875 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10876 functions.
10877 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10878 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10879 * Makefile.in (amd64_linux_tdep_h): Remove.
10880 (amd64-linux-nat.o): Update dependencies.
10881 (amd64-linux-tdep.o): Update dependencies.
10882
10883 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10884 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10885 functions.
10886 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10887
10888 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10889 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10890
10891 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10892
10893 * dwarf2read.c (read_structure_type): Rename from
10894 read_structure_scope. Don't create a symbol or call process_die.
10895 Return immediately if die->type is set. Call read_type_die before
10896 dwarf2_add_member_fn.
10897 (process_structure_scope): New function.
10898 (read_enumeration_type, process_enumeration_scope): New functions,
10899 broken out from read_enumeration. Don't create the enumeration
10900 type if it has already been created.
10901 (read_enumeration): Removed.
10902 (process_die): Call read_structure_type, process_structure_scope,
10903 read_enumeration_type, and process_enumeration_scope. Just call
10904 new_symbol for base and subrange types. Add a comment about other
10905 type dies.
10906 (read_type_die): Call read_enumeration_type.
10907 (add_partial_structure, new_symbol): Update comments.
10908
10909 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10910
10911 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10912
10913 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10914
10915 * tui/tui-win.h (tui_get_cmd_list): Declare.
10916 * tui/tui-win.c (tui_command): New function.
10917 (tui_get_cmd_list): New function.
10918 (_initialize_tui_win): Moved initialization of tui command in
10919 tui_get_cmd_list.
10920
10921 * tui/tui-data.c (init_content_element): Setup new data members.
10922 (init_win_info): Likewise.
10923 (free_content_elements): Free it.
10924 * tui/tui-data.h (struct tui_data_element): Store the register
10925 content to print.
10926 (struct tui_data_info): Keep the current register group.
10927
10928 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10929
10930 * tui/tui-regs.h (tui_show_registers): Update prototype.
10931 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10932 (tui_resize_all): No need to calculate anything for register window.
10933 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10934 (tui_set_register_element, tui_set_general_regs_content): Remove.
10935 (tui_set_special_regs_content): Remove.
10936 (tui_set_general_and_special_regs_content): Remove.
10937 (tui_set_float_regs_content): Remove.
10938 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10939 (tui_set_regs_content): Remove.
10940 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10941 (tui_v_show_registers_command_support): Remove.
10942 (tui_show_registers): Use a reggroup to specify the registers to show.
10943 (tui_show_register_group): New function.
10944 (tui_display_registers_from): Compute the layout of register window
10945 and refresh with new API; be sure to delete old register windows.
10946 (tui_check_register_values): Update to use tui_get_register and
10947 tui_display_data.
10948 (tui_display_register): Just refresh the register window part.
10949 (tui_register_format): Format registers and save in tui_data_element.
10950 (tui_get_register): New to combine tui_reg_value_has_changed and
10951 tui_get_register_raw_value; fix to use the new gdb API.
10952 (tui_show_float_command): Renamed tui_reg_float_command.
10953 (tui_show_general_command): Renamed tui_reg_general_command.
10954 (tui_show_special_command): Renamed tui_reg_system_command.
10955 (_initialize_tui_regs): Remove unused commands.
10956
10957 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10958
10959 * NEWS (New native configurations): Mention OpenBSD/amd64.
10960
10961 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10962 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10963 Remove defines.
10964 * config/i386/nm-fbsd64.h: Likewise.
10965 * config/i386/nm-obsd.h: Likewise.
10966 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10967 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10968
10969 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10970
10971 * frv-tdep.c (set_variant_scratch_registers): New function.
10972 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10973 New constants.
10974
10975 From Richard Sandiford <rsandifo@redhat.com>:
10976 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10977
10978 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10979
10980 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10981 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10982 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10983 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10984 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10985 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10986 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10987 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10988 definitions from frv-tdep.c to frv-tdep.h.
10989
10990 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10991
10992 Add shared library support for FR-V FDPIC ABI:
10993 * Makefile.in (solib-frv.o): Add dependencies.
10994 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10995 New functions.
10996 (frv_push_dummy_call): Add support for FDPIC ABI.
10997 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10998 for FDPIC ABI.
10999 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11000 (frv_fdpic_find_canonical_descriptor): Declare.
11001 * solib-frv.c: New file.
11002 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11003 * config/frv/tm-frv.h (solib.h): Include.
11004
11005 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11006
11007 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11008 (frv-tdep.o): Update dependencies.
11009 * frv-tdep.h: New file.
11010 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11011 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11012 constants.
11013 (struct gdbarch_tdep): Add new member ``frv_abi''.
11014 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11015 functions.
11016 (new_variant): Set ``frv_abi'' field.
11017 (gdb_arch_init): Detect FDPIC executables.
11018
11019 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11020
11021 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11022 wrapper.
11023
11024 2004-03-11 Andrew Cagney <cagney@redhat.com>
11025
11026 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11027
11028 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11029
11030 * solist.h (master_so_list): New function.
11031 * solib.c (master_so_list): Likewise.
11032 * solib-svr4.c (enable_break): Iterate over so_list entries
11033 obtained from master list instead of entries obtained directly
11034 via svr4_current_sos().
11035
11036 2004-03-10 Ben Elliston <bje@gnu.org>
11037
11038 * MAINTAINERS: Update my mail address.
11039
11040 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11041
11042 * remote-m32r-sdi.c: Support hardware watchpoint.
11043
11044 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * user-regs.c: Update copyright years.
11047 (struct user_regs): Rename to gdb_user_regs.
11048 (append_user_reg, builtin_user_regs, user_regs_init)
11049 (user_reg_add, user_reg_map_name_to_regnum)
11050 (usernum_to_user_reg): Update.
11051
11052 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11053
11054 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11055 (skip_children): New functions.
11056 (locate_pdi_sibling): Call skip_children.
11057
11058 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11059
11060 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11061 * gdbtypes.c (check_typedef): Update comments.
11062
11063 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11064
11065 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11066 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11067 pointer. Update comment about comp_unit_head.
11068 (struct abbrev_info): Shorten two int flags.
11069 (dwarf_alloc_abbrev): Take a CU argument.
11070 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11071 each time through the loop. Update cleanup argument.
11072 (psymtab_to_symtab_1): Update cleanup call.
11073 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11074 abbrev_obstack.
11075 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11076 Just call obstack_free and clear the pointer.
11077
11078 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * infrun.c (handle_inferior_event): Remove short-circuit code for
11081 events in a different thread.
11082
11083 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11086 print the whole transfer.
11087 (initialize_targets): Update description of "set debug target".
11088
11089 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11090
11091 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11092
11093 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11094
11095 * MAINTAINERS (write after approval): Add myself.
11096
11097 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11098
11099 * sh-tdep.c (sh_print_registers_info): Use for loop.
11100 Don't skip multiple registers when a float register is encountered.
11101
11102 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11103
11104 Fix PR tdep/1291.
11105 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11106 to official SH documentation.
11107
11108 2004-03-07 Andrew Cagney <cagney@redhat.com>
11109
11110 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11111 unused function.
11112
11113 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11114
11115 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11116 (arm_get_next_pc): Handle BX and BLX.
11117
11118 2004-03-07 Andrew Cagney <cagney@redhat.com>
11119
11120 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11121 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11122 HPPA_SP_REGNUM.
11123 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11124 (hppa_target_read_fp): Delete.
11125 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11126 register_virtual_size, max_register_raw_size,
11127 max_register_virtual_size, register_byte, register_size,
11128 target_read_fp, fp_regnum, and register_bytes. Set register_type
11129 instead of register_virtual_type.
11130 (hppa32_register_type, hppa64_register_type): Replace
11131 hppa32_register_virtual_type and hppa64_register_virtual_type.
11132 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11133 (HPPA_FP_REGNUM): Define.
11134
11135 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11136
11137 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11138 (pa_do_registers_info): Delete.
11139 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11140 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11141 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11142
11143 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11144 GDB_TARGET_IS_HPPA code.
11145 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11146 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11147 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11148 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11149 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11150 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11151 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11152 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11153 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11154 (hppa_frameless_function_invocation, hppa64_store_return_value)
11155 (hppa_store_struct_return, hppa64_extract_return_value)
11156 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11157 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11158 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11159 (find_proc_framesize, deposit_21, restore_pc_queue)
11160 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11161 (rp_saved, pc_in_linker_stub): Delete.
11162
11163 Unconditionally enable 64-bit frame and ABI code.
11164 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11165 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11166 push_dummy_frame, fix_call_dummy, push_arguments,
11167 call_dummy_location, extract_return_value, use_struct_convention,
11168 store_return_value, store_struct_return, saved_pc_after_call,
11169 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11170 frame_chain, frame_chain_valid, frameless_function_invocation,
11171 frame_saved_pc, and pop_frame.
11172
11173 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11174 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11175 (hppa_gdbarch_init): Do not set PC_REGNUM.
11176
11177 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11178
11179 * config/alpha/tm-fbsd.h: Remove file.
11180 * config/alpha/fbsd.mt: Tweak comment.
11181 (TM_FILE): Set to tm-alpha.h.
11182
11183 2004-03-05 Andrew Cagney <cagney@redhat.com>
11184
11185 * infrun.c (step_over_function): When non-legacy code, and no
11186 step_frame_id, use the unwinder to get the caller's frame ID.
11187
11188 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11189
11190 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11191 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11192 bfd_arch_unknown. Adjust comment.
11193
11194 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11195 * i386obsd-tdep.c: Correct spelling in comment.
11196 * i386nbsd-tdep.c: Correct spelling in comment.
11197 * sparc-tdep.c: Correct spelling in comments.
11198
11199 2004-03-05 David Carlton <carlton@kealia.com>
11200
11201 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11202 bug.
11203
11204 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11205
11206 * sparc-tdep.c: Fix typo in comment.
11207
11208 2004-03-04 J. Brobecker <brobecker@gnat.com>
11209
11210 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11211
11212 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * dwarf2read.c: Add comment describing memory lifetimes.
11215 (struct dwarf2_pinfo): Update comment.
11216 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11217 (read_enumeration, new_symbol): Don't use obsavestring.
11218
11219 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11220
11221 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11222 instead of amd64_fill_fxsave.
11223 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11224 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11225
11226 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11227 Reorganize code a bit.
11228
11229 2004-03-04 Orjan Friberg <orjanf@axis.com>
11230
11231 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11232 when the frame pointer is pushed. Don't set the frame pointer's
11233 address on the stack unless it's actually located there.
11234 Set the SRP's address on the stack correctly when the PC is still in
11235 the prologue.
11236 (cris_return_value): New function.
11237 (cris_gdbarch_init): Clear deprecated store_return_value,
11238 extract_return_value.
11239
11240 2004-03-02 Jim Blandy <jimb@redhat.com>
11241
11242 * stabsread.c (reg_value_complaint): The maximum register number
11243 is one less than the number of registers.
11244
11245 2004-03-02 Andrew Cagney <cagney@redhat.com>
11246
11247 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11248 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11249 trailing comma and redundant assignment of I386_ST0_REGNUM.
11250 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11251 32-bit segment registers.
11252
11253 2004-03-01 Andrew Cagney <cagney@redhat.com>
11254
11255 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11256 use frame_relative_level and get_next_frame.
11257
11258 2004-02-29 Andrew Cagney <cagney@redhat.com>
11259
11260 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11261 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11262 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11263 Delete macro.
11264
11265 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11266
11267 * inflow.c (terminal_inferior): Don't give up the terminal if we
11268 previously couldn't get the inferior's terminal state.
11269
11270 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11271
11272 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11273 PC_REGNUM.
11274
11275 2004-02-28 Andrew Cagney <cagney@redhat.com>
11276
11277 * NEWS: Refer to GDB 6.1.
11278 * README: Refer to GDB 6.1.
11279 * PROBLEMS: Refer to GDB 6.1.
11280
11281 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11282
11283 * thread-db.c (disable_thread_signals): Remove unused function.
11284
11285 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11286
11287 * amd64-nat.c: Include "gdb_string.h".
11288 (amd64_collect_native_gregset): Zero-extend the 32-bit
11289 general-purpose registers and %eip.
11290
11291 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11292 * amd64-tdep.c (amd64_collect_fxsave): New function.
11293 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11294
11295 * i387-tdep.h: Update copyright year.
11296 (i387_collect_fxsave): New prototype.
11297 * i387-tdep.c: Update copyright year.
11298 (i387_collect_fxsave): New function containing most of the code
11299 from i387_fill_fxsave.
11300 (i387_fill_fxsave): Call i387_collect_fxsave.
11301
11302 2004-02-28 Andrew Cagney <cagney@redhat.com>
11303
11304 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11305 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11306
11307 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11308
11309 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11310
11311 2004-02-28 Andrew Cagney <cagney@redhat.com>
11312
11313 * utils.c: Use "", instead of <>, to include readline.
11314 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11315 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11316 * source.c, solib.c, exec.c, event-top.c: Ditto.
11317 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11318 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11319 * Makefile.in: Update all dependencies.
11320 (readline_tilde_h, readline_history_h): Define.
11321 (readline_headers): Delete.
11322
11323 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11324
11325 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11326 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11327 "config/i386/tm-lx64.h".
11328
11329 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11330 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11331 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11332
11333 2004-02-28 Andrew Cagney <cagney@redhat.com>
11334
11335 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11336
11337 * breakpoint.c (_initialize_breakpoint): Use
11338 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11339 Add help to show command.
11340
11341 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11342
11343 * i386-nat.c: Reformat to be closer to coding standards.
11344 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11345 `retval'. Make variables `align' and `size' local to while-loop.
11346 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11347 (_initialize_i386_nat): New prototype.
11348
11349 * tui/tui.c: Include <readline/readline.h> instead of
11350 "readline/readline.h". Include it after <term.h> and
11351 "gdb_curses.h".
11352
11353 2004-02-27 Andrew Cagney <cagney@redhat.com>
11354
11355 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11356 the new frame unwind code.
11357 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11358 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11359 PCOQ_HEAD_REGNUM.
11360
11361 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11362 "return_value" and "push_dummy_call".
11363 (hppa32_use_struct_convention): Delete unused function.
11364 (hppa32_store_return_value): Delete unused function.
11365 (hppa32_extract_return_value): Delete unused function.
11366 (hppa32_stack_align): Delete function.
11367
11368 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11369
11370 * coffread.c (enter_linenos): Don't let rawptr reference memory
11371 outside linetab[]'s limits.
11372
11373 2004-02-27 Andrew Cagney <cagney@redhat.com>
11374
11375 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11376 inferior stack space - the stack needs to grow upwards.
11377 (hppa32_frame_align): New function.
11378 (hppa64_frame_align): Replace hppa_frame_align.
11379 (hppa_gdbarch_init): Update.
11380
11381 2004-02-26 Orjan Friberg <orjanf@axis.com>
11382
11383 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11384 (dwarf2-frame.h): Include.
11385 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11386 Remove static variables related to ABI setting.
11387 (struct gdbarch_tdep): Remove cris_abi member.
11388 (struct frame_extra_info): Remove.
11389 (cris_unwind_cache, stack_item): New structs.
11390 (cris_frame_unwind, cris_frame_base): New variables.
11391 (push_stack_item, pop_stack_item)
11392 (cris_frame_unwind_cache, cris_frame_this_id)
11393 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11394 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11395 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11396 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11397 (cris_reg_struct_has_addr): New functions.
11398 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11399 (cris_frame_saved_pc, cris_saved_pc_after_call,
11400 (cris_store_struct_return, cris_frameless_function_invocation)
11401 (cris_pop_frame, cris_skip_prologue_main)
11402 (cris_abi_original_store_return_value)
11403 (cris_abi_v2_store_return_value)
11404 (cris_abi_original_extract_return_value)
11405 (cris_abi_v2_extract_return_value)
11406 (cris_abi_original_reg_struct_has_addr)
11407 (cris_abi_v2_reg_struct_has_addr)
11408 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11409 (cris_push_return_address, cris_abi_update): Remove.
11410 (_initialize_cris_tdep): Remove ABI command.
11411 (cris_dump_tdep): Ditto.
11412 (cris_gdbarch_init): Remove ABI command.
11413 Set store_return_value, extract_return_value, push_dummy_code,
11414 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11415 frame_unwind_append_sniffer, frame_base_set_default.
11416 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11417 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11418 sizeof_call_dummy_words, get_saved_register, push_return_address,
11419 pop_frame, store_struct_return, frame_init_saved_regs,
11420 init_extra_frame_info, frameless_function_invocation, frame_chain,
11421 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11422 dummy_write_sp.
11423
11424 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11425
11426 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11427 * valprint.c (print_hex_chars): Change from static to external.
11428 (print_char_chars): New function.
11429 * printcmd.c (print_scalar_formatted): For integer and enum types
11430 that are longer than LONGEST, perform processing via appropriate
11431 print_*_chars routines.
11432
11433 2004-02-26 Andrew Cagney <cagney@redhat.com>
11434
11435 * Makefile.in: Update dependencies.
11436 Changes from Ulrich Weigand,
11437 * s390-tdep.c: Include "dwarf2-frame.h".
11438 (s390_dwarf2_frame_init_reg): New function.
11439 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11440 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11441
11442 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11443
11444 * breakpoint.c (pending_break_support): New setting variable.
11445 (break_command_1): Account for pending_break_support setting
11446 when creating pending breakpoints.
11447 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11448 (_initialize_breakpoint): Add "set breakpoint pending" and
11449 "show breakpoint pending" commands.
11450
11451 2004-02-26 Andrew Cagney <cagney@redhat.com>
11452
11453 Fix PR i18n/1570.
11454 * charset.c (backslashable, backslashed, represented): Remove 'e'
11455 from list of escaped characters, not part of ISO-C.
11456
11457 2004-02-25 J. Brobecker <brobecker@gnat.com>
11458
11459 From Peter Schauer <schauer@pdf.de>:
11460 * tui/tui.c: Move system header includes after local includes.
11461 Fixes a build failure on solaris systems.
11462
11463 2004-02-25 J. Brobecker <brobecker@gnat.com>
11464
11465 * configure.in: Refine the previous change.
11466 * configure: Regenerate.
11467
11468 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11469
11470 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11471 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11472 "amd64-tdep.h" instead of "x86-64-tdep.h".
11473 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11474 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11475 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11476 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11477 and "x86-64-tdep.c".
11478 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11479 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11480 and "x86-64-tdep.c".
11481 * amd64bsd-nat.c: Update copyright year.
11482 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11483 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11484 "x86-64-tdep.h".
11485 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11486 "x86-64-tdep.h".
11487 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11488 "x86-64-tdep.h".
11489 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11490 "x86-64-tdep.h".
11491 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11492 "x86-64-tdep.h".
11493 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11494 "x86-64-tdep.h".
11495 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11496 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11497 * Makefile.in (amd64_linux_tdep_h): Renamed from
11498 x86_64_linux_tdep_h.
11499 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11500 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11501 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11502 (amd64obsd-tdep.o): Update dependencies.
11503 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11504 dependencies.
11505 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11506 dependencies.
11507 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11508 amd64-linux-nat.c amd64-linux-tdep.c.
11509 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11510 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11511 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11512 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11513 amd64-tdep.o and amd64-linux-tdep.o.
11514 (TM_FILE): Set to tm-linux64.h.
11515 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11516 (NAT_FILE): Set to nm-linux64.h.
11517 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11518 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11519 amd64-tdep.o.
11520 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11521 amd64-tdep.o.
11522 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11523 amd64-tdep.o.
11524
11525 2004-02-25 Roland McGrath <roland@redhat.com>
11526
11527 * remote.c (remote_protocol_qPart_auxv): New variable.
11528 (init_all_packet_configs): Initialize it.
11529 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11530 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11531 (show_remote_cmd): Call it.
11532 (_initialize_remote): Initialize commands.
11533 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11534 service TARGET_OBJECT_AUXV requests.
11535
11536 2004-02-25 J. Brobecker <brobecker@gnat.com>
11537
11538 * configure.in: Make sure that the wborder function is available.
11539 Otherwise, search for it in the cur_colr library.
11540 * configure: Regenerate.
11541
11542 2004-02-25 Andrew Cagney <cagney@redhat.com>
11543
11544 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11545
11546 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11547
11548 * config/i386/tm-x86-64linux.h: Tweak comments.
11549
11550 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11551
11552 * MAINTAINERS: Add self to write-after-approval list.
11553
11554 2004-02-25 Andrew Cagney <cagney@redhat.com>
11555
11556 PR cli/1566. Problem found, and fix suggested by David Allan.
11557 * cli/cli-script.c (execute_control_command): Unconditionally
11558 install a cleanup. Default "ret" to "invalid_control". Use
11559 "break" instead of "return" to escape from the switch.
11560
11561 2004-02-24 J. Brobecker <brobecker@gnat.com>
11562
11563 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11564 with the lines macro defined in term.h on AiX.
11565 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11566 a collision with the label_width macro defined in term.h on AiX.
11567
11568 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11569
11570 Committed by Kevin Buettner <kevinb@redhat.com>.
11571
11572 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11573 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11574 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11575 instead of ia64_write_pc().
11576 * ia64-linux-tdep.c (regcache.h): Include.
11577 (ia64_linux_write_pc): New function.
11578
11579 2004-02-23 Roland McGrath <roland@redhat.com>
11580
11581 * auxv.c (info_auxv_command): Fix typos in error messages.
11582
11583 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11584
11585 * x86-64-tdep.h: Tweak comment.
11586 (enum amd64_regnum): New.
11587 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11588 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11589 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11590 (X86_64_XMM1_REGNUM): Removed.
11591 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11592 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11593 prototypes for renamed functions.
11594 * x86-64-tdep.c: Fix typo.
11595 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11596 register numbers.
11597 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11598 Use constants from `enum amd64_regnum' for register numbers.
11599 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11600 (amd64_analyze_prologue, amd64_frame_cache,
11601 amd64_sigtramp_frame_cache): Use constants from `enum
11602 amd64_regnum' for register numbers.
11603 (amd64_supply_fpregset): Adjust for renamed functions.
11604 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11605 `enum amd64_regnum' for register numbers.
11606 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11607 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11608 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11609 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11610 (amd64_linux_fill_gregset): Adjust for renamed macros.
11611 (fetch_core_registers): Adjust for renamed functions.
11612 (amd64_linux_init_abi): Adjust for renamed functions.
11613 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11614 renamed functions.
11615 * amd64-nat.c: Adjust for renamed macros.
11616 * amd64bsd-nat.c (fetch_inferior_registers)
11617 (store_inferior_registers): Use constants from `enum amd64_regnum'
11618 for register numbers. Adjust for renamed variables.
11619 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11620 renamed variables.
11621 (_initialize_amd64fbsd_nat): Use constants from `enum
11622 amd64_regnum' for register numbers.
11623 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11624 `enum amd64_regnum' for register numbers.
11625 (amd64fbsd_init_abi): Adjust for renamed functions.
11626 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11627 `enum amd64_regnum' for register numbers.
11628 (amd64nbsd_init_abi): Adjust for renamed functions.
11629 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11630 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11631 `enum amd64_regnum' for register numbers.
11632 (amd64obsd_init_abi): Adjust for renamed functions.
11633 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11634
11635 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11636
11637 * breakpoint.c (print_one_breakpoint): Do not output spaces
11638 after printing <PENDING> for a pending breakpoint.
11639
11640 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11641
11642 * printcmd.c (print_scalar_formatted): Initialize val_long
11643 to remove compiler warning message.
11644
11645 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11646
11647 * defs.h (nquery, yquery): New prototypes.
11648 * breakpoint.c (break_command_1): Use new nquery interface.
11649 * utils.c (defaulted_query, nquery, yquery): New functions.
11650
11651 2004-02-23 Andrew Cagney <cagney@redhat.com>
11652
11653 * hppa-tdep.c (hppa_frame_align): New function.
11654 (hppa32_push_dummy_call): New function.
11655 (hppa64_push_dummy_call): New function.
11656 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11657 disabled.
11658
11659 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11660 FIX_CALL_DUMMY when push_dummy_call is available.
11661 (call_function_by_hand, push_dummy_code): Ditto.
11662
11663 2004-02-22 Andrew Cagney <cagney@redhat.com>
11664
11665 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11666 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11667 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11668 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11669 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11670 call_dummy_location to ON_STACK.
11671
11672 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11673
11674 * x86-64-linux-tdep.c: Tweak comment.
11675 (amd64_linux_supply_gregset): Renamed from
11676 x86_64_linux_supply_gresget.
11677 (amd64_linux_fill_gregset): Renamed from
11678 x86_64_linux_fill_gregset.
11679 (fetch_core_registers): Adjust for renamed functions.
11680 (amd64_core_fns): Renamed from x86_64_core_fns.
11681 (amd64_linux_sigtramp_start): Renamed from
11682 x86_64_linux_sigtramp_start.
11683 (amd64_linux_pc_in_sigtramp): Renamed from
11684 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11685 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11686 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11687 (amd64_linux_sigcontext_addr): Renamed from
11688 x86_64_linux_sigcontext_addr.
11689 (amd64_linux_sc_reg_offset): Renamed from
11690 x86_64_linux_sc_reg_offset.
11691 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11692 Adjust for renamed functions and variables.
11693 (_initialize_amd64_linux_tdep): Renamed from
11694 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11695 variables.
11696 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11697 Adjust for renamed functions.
11698
11699 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11700 from x86_64_linux_gregset64_reg_offset.
11701 (amd64_linux_gregset32_reg_offset): Rename from
11702 x86_64_linux_gregset64_reg_offset.
11703 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11704 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11705 (amd64_linux_dr_set_control): Renamed from
11706 x86_64_linux_dr_set_control. Adjust for renamed functions.
11707 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11708 Adjust for renamed functions.
11709 (amd64_linux_dr_reset_addr): Renamed from
11710 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11711 (amd64_linux_dr_get_status): Renamed from
11712 x86_64_linux_dr_get_status. Adjust for renamed functions.
11713 (_initialize_amd64_linux_nat): Renamed from
11714 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11715 functions.
11716 * config/i386/nm-x86-64linux.h: Update copyright year.
11717 Adjust for renamed functions.
11718
11719 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11720 amd64fbsd_sigtramp_start.
11721 (amd64fbsd_sigtramp_end_addr): Renamed from
11722 amd64fbsd_sigtramp_end.
11723 (amd64fbsd_init_abi): Adjust for renamed variables.
11724 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11725 variables.
11726 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11727 amd64fbsd_sigtramp_start.
11728 (amd64fbsd_sigtramp_end_addr): Renamed from
11729 amd64fbsd_sigtramp_end.
11730
11731 2004-02-22 Andrew Cagney <cagney@redhat.com>
11732
11733 * hppa-tdep.c (hppa32_return_value): New function.
11734 (hppa64_return_value): New function.
11735 (hppa_gdbarch_init): Set return_value; keep disabled.
11736
11737 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11738 struct-return and inferior function call methods.
11739
11740 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11741 "frame-base.h".
11742 (struct hppa_frame_cache): Define.
11743 (hppa_frame_cache, hppa_frame_this_id): New functions.
11744 (hppa_frame_prev_register): New function.
11745 (hppa_frame_unwind, hppa_frame_base): New variables.
11746 (hppa_frame_unwind_sniffer): New function.
11747 (hppa_frame_base_address, hppa_unwind_pc): New function.
11748 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11749 sniffer, and frame base sniffer; keep disabled.
11750 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11751 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11752
11753 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11754 to predicates for "seriously old code".
11755
11756 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11757 runtime if(0).
11758
11759 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11760 unsigned.
11761 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11762
11763 * config/pa/tm-hppa.h: Update copyright.
11764 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11765 (deprecated_init_frame_pc_default): Delete declaration.
11766 (hppa_frame_init_saved_regs): Delete declaration.
11767 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11768 * hppa-tdep.c: Include "arch-utils.h".
11769 (hppa_gdbarch_init): Set deprecated init_frame_pc
11770 and deprecated frame_init_saved_regs.
11771 (hppa_frame_init_saved_regs): Make static.
11772
11773 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11774
11775 Remove old 386BSD support.
11776 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11777 * configure.host: Remove i[34567]86-*-bsd*.
11778 * configure.tgt: Remove i[34567]86-*-bsd*.
11779 * i386b-nat.c: Removed.
11780 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11781 (i386b-nat.o): Remove dependencies.
11782
11783 * config/i386/i386bsd.mh: Removed.
11784 * config/i386/i386bsd.mt: Removed.
11785 * config/i386/nm-i386bsd.h: Removed.
11786 * config/i386/tm-i386bsd.h: Removed.
11787 * config/i386/xm-i386bsd.h: Removed.
11788
11789 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11790
11791 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11792 (amd64fbsd_init_abi): Set link map offsets.
11793 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11794 (amd64nbsd_init_abi): Set link map offsets.
11795 * amd64obsd-tdep.c: Include "solib-svr4.h".
11796 (amd64obsd_init_abi): Set link map offsets.
11797 * i386fbsd-tdep.c: Include "solib-svr4.h".
11798 (i386fbsd_init_abi): Set link map offsets.
11799 * i386nbsd-tdep.c: Include "solib-svr4.h".
11800 (i386nbsdelf_init_abi): Set link map offsets.
11801 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11802 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11803 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11804 solib-legacy.o and core-aout.o. Reformat.
11805 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11806 solib-svr4.o, solib-legacy.o. Reformat.
11807 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11808 * config/i386/nbsdelf.mh: Reformat.
11809 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11810 solib-svr4.o, solib-legacy.o and corelow.o.
11811 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11812 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11813 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11814 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11815 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11816 (TM_FILE): Set to tm-fbsd.h.
11817 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11818 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11819 solib-svr4.o.
11820 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11821 solib-svr4.o.
11822 (TM_FILE): Set to nm-nbsd.h.
11823 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11824 Simplify shared library support. Don't include "elf/common.h".
11825 (SVR4_SHARED_LIBS): Don't define.
11826 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11827 "solib.h".
11828 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11829 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11830 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11831 Don't include "i386/tm-i386.h". Include "solib.h".
11832 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11833 Don't include "i386/tm-i386.h".
11834 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11835 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11836 Include "i386/xm-i386.h".
11837 (HOST_LONG_DOUBLE_FORMAT): Remove.
11838
11839 Fix OpenBSD/i386 sigtramp recognition.
11840 * i386-tdep.h: Update copyright year.
11841 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11842 (i386bsd_sigtramp_end): New prototypes.
11843 (i386fbsd_sigtramp_start_addr): Renamed from
11844 i386fbsd_sigtramp_start.
11845 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11846 (i386obsd_sigtramp_start_addr): Renamed from
11847 i386obsd_sigtramp_start.
11848 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11849 * i386bsd-tdep.c: Update copyright year.
11850 (i386bsd_pc_in_sigtramp): Make public.
11851 * i386fbsd-nat.c: Update copyright year.
11852 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11853 * i386fbsd-tdep.c: Update copyright year.
11854 (i386fbsd_sigtramp_start_addr): Renamed from
11855 i386fbsd_sigtramp_start.
11856 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11857 (i386fbsdaout_init_abi): Adjust for renamed variables.
11858 * i386obsd-nat.c: Update copyright year.
11859 (_initialize_i386obsd_nat): Adjust for renamed variables.
11860 * i386obsd-tdep.c: Include "target.h".
11861 (i386obsd_page_size): New variable.
11862 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11863 (i386obsd_sigtramp_end): New functions.
11864 (i386obsd_sigtramp_start_addr): Renamed from
11865 i386obsd_sigtramp_start.
11866 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11867 (i386obsd_init_abi): Adjust for renamed variables. Set
11868 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11869 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11870
11871 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11872 trampoline change in OpenBSD kernel.
11873
11874 * amd64-nat.c: Update copyright year.
11875 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11876 architecture from REGCACHE.
11877
11878 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11879 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11880
11881 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11882
11883 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11884 i[34567]86-*-openbsd3.[0-3].
11885 * config/i386/obsdaout.mh: New file.
11886
11887 * config/i386/obsd.mh (MH_FLAGS): Remove.
11888
11889 Fix PR build/1549.
11890 * i386obsd-tdep.c: Update copyright years. Include
11891 "solib-svr4.h".
11892 (i386obsd_init_abi): Don't set regset_from_core_section here.
11893 (i386obsd_aout_init_abi): New function. Set
11894 regset_from_core_section here.
11895 (i386obsd_elf_init_abi): New function.
11896 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11897 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11898 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11899 (TM_FILE): Set to tm-nbsd.h.
11900
11901 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11902 solib-sunos.o.
11903
11904 * solib-svr4.h: Update copyright year.
11905 (svr4_ilp32_fetch_link_map_offsets)
11906 (svr4_lp64_fetch_link_map_offsets): New prototype.
11907 * solib-svr4.c: Update copyright year.
11908 (svr4_ilp32_fetch_link_map_offsets)
11909 (svr4_lp64_fetch_link_map_offsets): New function.
11910
11911 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11912
11913 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11914 to the partial symbol table.
11915
11916 2004-02-20 J. brobecker <brobecker@gnat.com>
11917
11918 * PROBLEMS: Add description of problem documented under gdb/1560.
11919
11920 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11921
11922 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11923 comments.
11924 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11925 functions.
11926 (amd64obsd_init_abi): Reorder initializations. Use
11927 amd64obsd_r_reg_offset to initialize the general-purpose register
11928 set details. Set regset_from_core_section.
11929 (_initialize_amd64obsd_tdep): Rename from
11930 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11931 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11932 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11933
11934 * NEWS (New native configurations): Mention OpenBSD/alpha.
11935 * configure.tgt: Add alpha*-*-openbsd*.
11936 * configure.host: Add alpha*-*-openbsd*.
11937 * alphanbsd-tdep.c: Update copyright year.
11938 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11939
11940 2004-02-20 Andrew Cagney <cagney@redhat.com>
11941
11942 Fix PR tdep/1372.
11943 * configure.tgt: Delete target "none-*-*".
11944 * configure.host: Delete host "none-*-*".
11945 * config/none/none.mh: Delete file.
11946 * config/none/none.mt: Delete file.
11947 * config/none/xm-none.h: Delete file.
11948 * config/none/tm-none.h: Delete file.
11949 * config/none/nm-none.h: Delete file.
11950
11951 2004-02-19 Fred Fish <fnf@redhat.com>
11952
11953 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11954 cache->uses_fp prior to setting it.
11955
11956 2004-02-19 Fred Fish <fnf@redhat.com>
11957
11958 Fix for PR breakpoint/1558.
11959 * sh-tdep.c (IS_JSR): New macro.
11960 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11961
11962 2004-02-19 Jim Blandy <jimb@redhat.com>
11963
11964 * findvar.c (value_from_register): Doc fix.
11965
11966 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11967
11968 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11969 type being greater than sizeof of host's LONGEST. Always use
11970 unpack_long() unless format 'f' chosen.
11971
11972 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11973
11974 Committed by Elena Zannoni <ezannoni@redhat.com>
11975
11976 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11977 contains a symbol wich is the best, non-exact match for the given
11978 pc. Update comments.
11979
11980 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11981
11982 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11983 macro, which was part of the now removed Mach 3 port.
11984 * utils.c (request_quit): Ditto.
11985
11986 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11987
11988 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11989 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11990
11991 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11992
11993 Committed by Mark Kettenis <kettenis@gnu.org>.
11994
11995 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11996 Define.
11997
11998 2004-02-18 Andrew Cagney <cagney@redhat.com>
11999
12000 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12001 CONFIG_INSTALL and CONFIG_UNINSTALL.
12002 * configure: Re-generate.
12003 * interps.h (INTERP_TUI): Define.
12004 * Makefile.in: Update dependencies.
12005 (TUI): New macro.
12006 (tui-main.o): Specify dependencies.
12007 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12008 * tui/tui-main.c: New file.
12009
12010 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12011
12012 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12013 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12014 dependencies.
12015 * configure.host: Add x86_64-*-openbsd*.
12016 * configure.tgt: Add x86_64-*-openbsd*.
12017 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12018
12019 * tui/tui.c: Don't include <malloc.h>.
12020
12021 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12022 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12023 amd64nbsd-tdep.c.
12024
12025 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12026 static. Remove extraneous whitespace.
12027 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12028 static.
12029
12030 2004-02-17 Jim Blandy <jimb@redhat.com>
12031
12032 * findvar.c (value_from_register): Doc fix.
12033
12034 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12035
12036 Committed by Jim Blandy <jimb@redhat.com>.
12037
12038 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12039 CORE_ADDR as type for selectors. Correct types for GNU run time
12040 message lookup function to use double indirection.
12041 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12042 * objc-lang.h (lookup_child_selector): Adapt prototype.
12043
12044 * s390-nat.c (SUBOFF): New macro.
12045 (supply_gregset, fill_gregset): Use it to handle debugging
12046 of 32-bit exectuables running under a 64-bit kernel.
12047 * s390-tdep.c: Include "solib-svr4.h".
12048 (s390_svr4_fetch_link_map_offset): New function.
12049 (s390x_svr_fetch_link_map_offset): Likewise.
12050 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12051 * Makefile.in (s390-tdep.o): Update dependencies.
12052
12053 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12054 "frame-unwind.h".
12055 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12056 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12057 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12058 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12059 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12060 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12061 S390_SIGNAL_FRAMESIZE,
12062 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12063 (struct frame_extra_info): Remove.
12064 (s390_memset_extra_info): Remove.
12065 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12066 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12067 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12068 (is_rse): Renamed to ...
12069 (is_rsy): ... this. Support long displacements.
12070 (is_rxe): Renamed to ...
12071 (is_rxy): ... this. Support long displacements.
12072 (compute_x_addr): Support long displacements.
12073 (struct s390_prologue_data): New data type.
12074 (s390_on_stack): Change API to use struct s390_prologue_data.
12075 (s390_store): Reimplement.
12076 (s390_load): New function.
12077 (s390_get_signal_frame_info): Remove.
12078 (s390_get_frame_info): Remove, replace by ...
12079 (s390_analyze_prolog): ... this new function.
12080 (s390_check_function_end): Remove.
12081 (s390_function_start): Remove.
12082 (s390_frameless_function_invokation): Remove.
12083 (s390_is_sigreturn): Remove.
12084 (s390_init_frame_pc_first): Remove.
12085 (s390_init_frame_extra_info): Remove.
12086 (s390_frame_init_saved_regs): Remove.
12087 (s390_frame_saved_pc_nofix): Remove.
12088 (s390_frame_saved_pc): Remove.
12089 (s390_frame_chain): Remove.
12090 (s390_fp_regnum, s390_read_fp): Remove.
12091 (s390_pop_frame_regular, s390_pop_frame): Remove.
12092 (s390_saved_pc_after_call): Remove.
12093 (s390_skip_prologue): Reimplement.
12094 (s390_in_function_epilogue_p): Support long displacements.
12095 (struct s390_unwind_cache): New data structure.
12096 (s390_frame_unwind_cache): New function.
12097 (s390_prologue_frame_unwind_cache): Likewise.
12098 (s390_backchain_frame_unwind_cache): Likewise.
12099 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12100 (s390_frame_unwind): Define.
12101 (s390_frame_sniffer): New function.
12102 (struct s390_pltstub_unwind_cache): New data structure.
12103 (s390_pltstub_frame_unwind_cache): New function.
12104 (s390_pltstub_frame_this_id): Likewise.
12105 (s390_pltstub_frame_prev_register): Likewise.
12106 (s390_pltstub_frame_unwind): Define.
12107 (s390_pltstub_frame_sniffer): New function.
12108 (struct s390_sigtramp_unwind_cache): New data structure.
12109 (s390_sigtramp_frame_unwind_cache): New function.
12110 (s390_sigtramp_frame_this_id): Likewise.
12111 (s390_sigtramp_frame_prev_register): Likewise.
12112 (s390_sigtramp_frame_unwind): Define.
12113 (s390_sigtramp_frame_sniffer): New function.
12114 (s390_frame_base_address, s390_local_base_address): New functions.
12115 (s390_frame_base): Define.
12116 (s390_unwind_pc, s390_unwind_sp): New function.
12117 (s390_push_dummy_call): Use new frame base location.
12118 (s390_unwind_dummy_id): Likewise.
12119 (s390_gdbarch_init): Remove calls to:
12120 set_gdbarch_frameless_function_invocation,
12121 set_gdbarch_deprecated_init_frame_pc,
12122 set_gdbarch_deprecated_frame_chain,
12123 set_gdbarch_deprecated_frame_init_saved_regs,
12124 set_gdbarch_deprecated_pop_frame,
12125 set_gdbarch_deprecated_init_extra_frame_info,
12126 set_gdbarch_deprecated_init_frame_pc_first,
12127 set_gdbarch_deprecated_target_read_fp,
12128 set_gdbarch_deprecated_frame_saved_pc,
12129 set_gdbarch_deprecated_saved_pc_after_call,
12130 set_gdbarch_deprecated_fp_regnum.
12131 Add calls to:
12132 set_gdbarch_in_solib_call_trampoline,
12133 frame_unwind_append_sniffer,
12134 frame_base_set_default,
12135 set_gdbarch_unwind_pc,
12136 set_gdbarch_unwind_sp.
12137 * Makefile.in (s390-tdep.o): Update dependencies.
12138
12139 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12140 (S390_STACK_FRAME_OVERHEAD): Remove.
12141 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12142 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12143 (s390_promote_integer_argument): Remove.
12144 (s390_cannot_extract_struct_value_address): Remove.
12145 (s390_use_struct_convention, s390_store_struct_return): Remove.
12146 (s390_extract_return_value, s390_store_return_value): Remove.
12147 (s390_return_value_convention, s390_return_value): New functions.
12148 (is_float_singleton): Handle typedefs.
12149 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12150 Remove, replace by ...
12151 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12152 s390_function_arg_integer): ... these new functions.
12153 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12154 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12155 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12156 Fill in tdep->abi.
12157 Remove calls to:
12158 set_gdbarch_deprecated_store_struct_return,
12159 set_gdbarch_deprecated_extract_return_value,
12160 set_gdbarch_deprecated_store_return_value,
12161 set_gdbarch_use_struct_convention,
12162 set_gdbarch_extract_struct_value_address,
12163 set_gdbarch_deprecated_pc_in_call_dummy,
12164 set_gdbarch_deprecated_push_arguments,
12165 set_gdbarch_deprecated_save_dummy_frame_tos,
12166 set_gdbarch_deprecated_push_return_address,
12167 set_gdbarch_deprecated_sizeof_call_dummy_words,
12168 set_gdbarch_deprecated_call_dummy_words,
12169 set_gdbarch_deprecated_dummy_write_sp.
12170 Add calls to:
12171 set_gdbarch_push_dummy_call,
12172 set_gdbarch_unwind_dummy_id,
12173 set_gdbarch_return_value.
12174
12175 * config/s390/nm-linux.h: Update comments.
12176 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12177 (STOPPED_BY_WATCHPOINT): Redefine.
12178 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12179 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12180 (s390_stopped_by_watchpoint): Likewise.
12181 (watch_area_cnt): Remove.
12182 * s390-nat.c: Update comments.
12183 (watch_area): Remove typedef.
12184 Global replace watch_area by struct watch_area.
12185 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12186 (s390_stopped_by_watchpoint): Remove pid argument,
12187 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12188 (s390_fix_watch_points): Remove pid argument,
12189 use s390_inferior_tid. Recompute area spanned by watchpoints.
12190 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12191 argument. Reimplement.
12192
12193 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12194 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12195 (FETCH_INFERIOR_REGISTERS): Define.
12196 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12197 core-regset.o.
12198 * config/s390/s390x.mt: Remove.
12199 * config/s390/tm-s390.h: Remove.
12200 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12201 (TARGET_ELF64): Remove.
12202 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12203 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12204 s390*-*-* case; always set gdb_target to s390.
12205 * regformats/reg-s390.dat: Remove control registers.
12206 * regformats/reg-s390x.dat: Likewise.
12207 * s390-tdep.h: New file.
12208 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12209 Include "inferior.h" and "s390-tdep.h".
12210 Remove private definition of offsetof.
12211 (s390_register_u_addr): Remove.
12212 (regmap_gregset, regmap_fpregset): Define.
12213 (supply_gregset, fill_gregset): Reimplement.
12214 (supply_fpregset, fill_fpregset): Likewise.
12215 (s390_inferior_tid): New function.
12216 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12217 (fetch_inferior_registers, store_inferior_registers): Likewise.
12218 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12219 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12220 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12221 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12222 (struct gdbarch_tdep): Define.
12223 (struct s390_register_info): Define.
12224 (s390_register_info): New variable.
12225 (s390_register_name): Reimplement.
12226 (s390_register_type): New function.
12227 (s390_register_raw_size, s390x_register_raw_size): Remove.
12228 (s390_cannot_fetch_register): Remove.
12229 (s390_register_byte): Remove.
12230 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12231 (s390_dwarf_regmap): New variable.
12232 (s390_dwarf_reg_to_regnum): New function.
12233 (s390_stab_reg_to_regnum): Remove.
12234 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12235 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12236 (s390_convert_register_p): Likewise.
12237 (s390_register_to_value, s390_value_to_register): Likewise.
12238 (s390_register_reggroup_p): Likewise.
12239 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12240 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12241 (s390_supply_regset, s390_regset_from_core_section): New functions.
12242 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12243 (S390_FPR_SIZE): Likewise.
12244 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12245 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12246 (S390_NUM_GPRS): Move here from tm-s390.h.
12247 (S390_NUM_FPRS): Likewise.
12248 (s390_in_function_epilogue_p): New function.
12249 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12250 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12251 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12252 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12253 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12254 Remove calls to:
12255 set_gdbarch_deprecated_max_register_raw_size,
12256 set_gdbarch_deprecated_max_register_virtual_size,
12257 set_gdbarch_deprecated_register_byte,
12258 set_gdbarch_cannot_fetch_register,
12259 set_gdbarch_cannot_store_register,
12260 set_gdbarch_deprecated_register_size,
12261 set_gdbarch_deprecated_register_raw_size,
12262 set_gdbarch_deprecated_register_virtual_size,
12263 set_gdbarch_deprecated_register_virtual_type,
12264 set_gdbarch_deprecated_register_bytes.
12265 Add calls to:
12266 set_gdbarch_num_pseudo_regs,
12267 set_gdbarch_register_type,
12268 set_gdbarch_convert_register_p,
12269 set_gdbarch_register_to_value,
12270 set_gdbarch_value_to_register,
12271 set_gdbarch_register_reggroup_p,
12272 set_gdbarch_regset_from_core_section,
12273 set_gdbarch_pseudo_register_read,
12274 set_gdbarch_pseudo_register_write,
12275 set_gdbarch_in_function_epilogue_p.
12276 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12277 (s390_tdep_h): New variable.
12278
12279 2004-02-17 Jim Blandy <jimb@redhat.com>
12280
12281 * findvar.c (value_from_register): If the type has no length, just
12282 return an acceptable value --- don't report an internal error.
12283
12284 * stabsread.c (read_type): If we find any type numbers that are
12285 forward references, complain if the references aren't resolved by
12286 the time we're finished reading.
12287 (cleanup_undefined_types): Make error message more appropriate for
12288 a complaint.
12289
12290 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12291
12292 * Makefile.in (defs_h): Remove dependency on progress_h.
12293 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12294 progress.h.
12295 * main.c (captured_main): Delete use of START_PROGRESS and
12296 END_PROGRESS.
12297
12298 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12299
12300 * objfiles.c (terminate_minimal_symbol_table): Add back
12301 initialization of MSYMBOL_TYPE.
12302
12303 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12304
12305 Committed by Andrew Cagney.
12306 * Makefile.in (ia64_tdep_h): New macro.
12307 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12308 (ia64-tdep.o): Likewise.
12309 * ia64-tdep.h: New file.
12310 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12311 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12312 (ia64_aix_sigcontext_register_address): Likewise.
12313 (ia64_linux_getunwind_table): Delete declaration.
12314 * ia64-linux-tdep.c: Likewise.
12315
12316 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12317
12318 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12319 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12320 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12321
12322 2004-02-17 Andrew Cagney <cagney@redhat.com>
12323
12324 * symtab.c (skip_prologue_using_sal): New function.
12325 * symtab.h (skip_prologue_using_sal): Declare.
12326 * frv-tdep.c: Include "symtab.h".
12327 (skip_prologue_using_sal): Delete function.
12328 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12329 * rs6000-tdep.c (refine_prologue_limit): Mention
12330 skip_prologue_using_sal.
12331 * ia64-tdep.c (refine_prologue_limit): Ditto.
12332 * Makefile.in: Update dependencies.
12333
12334 2004-02-16 Andrew Cagney <cagney@redhat.com>
12335
12336 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12337 START_INFERIOR_TRAPS_EXPECTED.
12338 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12339 START_INFERIOR_TRAPS_EXPECTED.
12340 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12341 Delete macro.
12342 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12343 macro, moved to "nm-osf.h". Update copyright.
12344 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12345 update copyright.
12346
12347 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12348 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12349 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12350 frameless_look_for_prologue.
12351 * frame.h (legacy_frameless_look_for_prologue): Rename
12352 frameless_look_for_prologue.
12353 * gdbarch.h, gdbarch.c: Re-generate.
12354 * sh64-tdep.c (sh64_gdbarch_init): Update.
12355 * sh-tdep.c (sh_gdbarch_init): Update.
12356 * s390-tdep.c (s390_gdbarch_init): Update.
12357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12358 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12359 * m68k-tdep.c (m68k_gdbarch_init): Update.
12360 (delta68_frame_args_address): Update.
12361 * m32r-tdep.c (m32r_gdbarch_init): Update.
12362 * hppa-tdep.c (hppa_gdbarch_init): Update.
12363 * h8300-tdep.c (h8300_gdbarch_init): Update.
12364 * frv-tdep.c (frv_gdbarch_init): Update.
12365 (frv_frameless_function_invocation): Update.
12366 * cris-tdep.c (cris_gdbarch_init): Update.
12367 (cris_frameless_function_invocation): Update.
12368 * avr-tdep.c (avr_gdbarch_init): Update.
12369 * arm-tdep.c (arm_gdbarch_init): Update.
12370 * stack.c (frame_info): Update, call predicate.
12371 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12372 * frame.c (legacy_get_prev_frame): Update, call predicate..
12373 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12374 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12375 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12376 invocation.
12377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12378 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12379 * vax-tdep.c (vax_gdbarch_init): Ditto.
12380
12381 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12382 function.
12383
12384 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12385
12386 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12387 initializations.
12388
12389 2004-02-16 Andrew Cagney <cagney@redhat.com>
12390
12391 * tui/tui-windata.c: Include "gdb_string.h".
12392 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12393 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12394 * Makefile.in: Update dependencies.
12395
12396 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12399 * infrun.c: Include "gdb_assert.h".
12400 (singlestep_ptid, saved_singlestep_ptid)
12401 (stepping_past_singlestep_breakpoint): New variables.
12402 (resume): Set singlestep_ptid. Check for singlestep thread
12403 hop.
12404 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12405 (handle_inferior_event): Handle singlestep thread hop.
12406
12407 2004-02-16 Andrew Cagney <cagney@redhat.com>
12408
12409 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12410 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12411 (dwarf2_frame_init_reg): Ditto.
12412
12413 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12414 suggested by Joshua Neuheisel
12415
12416 * configure.in: Always check for curses, including pdcurses.
12417 Warn, instead of error, when no curses are found. Enable TUI when
12418 curses is available.
12419 * configure: Re-generate.
12420
12421 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12422
12423 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12424 sh_sh4_register_convert_to_virtual.
12425 (sh_register_convert_to_raw): Rename from
12426 sh_sh4_register_convert_to_raw.
12427 (sh_pseudo_register_read): Accomodate above name change.
12428 (sh_pseudo_register_write): Ditto.
12429
12430 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12431
12432 * sh-tdep.c (sh_generic_register_name): Remove.
12433 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12434
12435 2004-02-15 Andrew Cagney <cagney@redhat.com>
12436
12437 * configure.in (build_warnings): Add -Wunused-function.
12438 * configure: Re-generate.
12439
12440 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12441 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12442
12443 * procfs.c (procfs_init_inferior): Assume that
12444 START_INFERIOR_TRAPS_EXPECTED is defined.
12445 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12446 * config/ns32k/tm-nbsd.h: Delete file,
12447 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12448
12449 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12450 * config/vax/tm-vax.h: Delete file.
12451
12452 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12453 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12454 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12455 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12456 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12457 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12458 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12459
12460 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12461
12462 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12463 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12464 (struct dwarf2_frame_ops): New.
12465 (dwarf2_frame_default_init_reg): New function, based on
12466 dwarf2_frame_init_reg.
12467 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12468 (dwarf2_frame_init_reg): Call architecture-specific function.
12469 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12470 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12471 instead of dwarf2_frame_data.
12472 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12473 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12474
12475 2004-02-15 Andrew Cagney <cagney@redhat.com>
12476
12477 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12478 register_gdbarch_swap.
12479 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12480 * f-lang.c (_initialize_f_language): Update, use
12481 DEPRECATED_REGISTER_GDBARCH_SWAP.
12482 * remote.c (_initialize_remote): Ditto.
12483 * regcache.c (_initialize_regcache): Ditto.
12484 * parse.c (_initialize_parse): Ditto.
12485 * infrun.c (_initialize_infrun): Ditto.
12486 * mi/mi-main.c (_initialize_mi_main): Ditto.
12487 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12488
12489 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12490 poking .cacheable directly.
12491 * symfile.c (symfile_bfd_open): Ditto.
12492
12493 * Makefile.in: Update all dependencies.
12494
12495 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12496 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12497 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12498 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12499 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12500
12501 2004-02-14 Andrew Cagney <cagney@redhat.com>
12502
12503 * arch-utils.c (legacy_convert_register_p): Check
12504 DEPRECATED_REGISTER_CONVERTIBLE_P.
12505 * findvar.c (value_of_register): Ditto.
12506
12507 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12508 * gdbarch.h, gdbarch.c: Re-generate.
12509 * arch-utils.c (deprecated_register_convertible_not): Delete.
12510 * arch-utils.h (deprecated_register_convertible_not): Delete.
12511 * mi/mi-main.c (get_register): Update. Update copyright.
12512 * infcmd.c (default_print_registers_info): Update.
12513
12514 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12515 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12516 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12517 * gdbarch.h, gdbarch.c: Re-generate.
12518 * frame.c (deprecated_get_next_frame_hack): Delete function.
12519 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12520 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12521 Update.
12522 * infcall.c (call_function_by_hand): Update.
12523
12524 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12525
12526 * symfile.c (init_entry_point_info, entry_point_address): Move
12527 from here...
12528 * objfiles.c (init_entry_point_info, entry_point_address):..to
12529 here.
12530 * symfile.h (init_entry_point_info, entry_point_address): Remove
12531 prototypes.
12532 * objfiles.h (init_entry_point_info, entry_point_address):Add
12533 prototypes.
12534 * cris-tdep.c: Remove include of symfile.h. Add include of
12535 objfiles.h.
12536 * infcall.c: Ditto.
12537 * mcore-tdep.c: Ditto.
12538 * mn10300-tdep.c: Ditto.
12539 * sh64-tdep.c: Ditto.
12540 * v850-tdep.c: Ditto.
12541 * arm-tdep.c: Remove include of symfile.h.
12542 * blockframe.c: Ditto.
12543 * coffread.c: Ditto.
12544 * dbxread.c: Ditto.
12545 * dwarf2read.c: Ditto.
12546 * dwarfread.c: Ditto.
12547 * frv-tdep.c: Ditto.
12548 * ia64-tdep.c: Ditto.
12549 * mdebugread.c: Ditto.
12550 * mipsread.c: Ditto.
12551 * rs6000-tdep.c: Ditto.
12552 * s390-tdep.c: Ditto.
12553 * sh-tdep.c: Ditto.
12554 * xstormy16-tdep.c: Ditto.
12555 * gdbarch.sh: Remove include of symfile.h.
12556 * gdbarch.c: Regenerate.
12557 * solib-irix.c (enable_break): Use entry_point_address().
12558 Add comment about include file.
12559 * xcoffread.c: Add comment about include file.
12560 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12561 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12562 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12563 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12564 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12565
12566 2004-02-13 Andrew Cagney <cagney@redhat.com>
12567
12568 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12569 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12570 copyright.
12571 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12572
12573 2004-02-12 Fred Fish <fnf@redhat.com>
12574
12575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12576 set_gdbarch_store_return_value.
12577
12578 2004-02-12 Andrew Cagney <cagney@redhat.com>
12579
12580 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12581 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12582 (interrupt_query): Ditto.
12583 (ofunc): Delete unused variable.
12584 * cris-tdep.c (cris_abi): Delete unused function.
12585 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12586 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12587 (cris_get_asr_quick_shift_steps): Ditto.
12588 (cris_skip_prologue_frameless_p): Ditto.
12589 * arm-tdep.c (arm_push_return_address): Delete unused function.
12590 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12591 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12592 * s390-tdep.c (s390_function_start): Delete unused function.
12593
12594 2004-02-12 Andrew Cagney <cagney@redhat.com>
12595
12596 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12597 gdbarch.h, gdbarch.c: Re-generate.
12598 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12599 to generic_prologue_frameless_p.
12600 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12601 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12602
12603 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12604
12605 * mips-linux-tdep.c: Include "frame.h".
12606 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12607 (mips_linux_skip_resolver): New functions.
12608 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12609 and set_gdbarch_in_solib_call_trampoline.
12610 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12611 to after set_gdbarch_in_solib_return_trampoline. Only set the
12612 solib hooks to mips16 functions if the OS ABI is unknown.
12613 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12614 including "config/tm-linux.h".
12615 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12616 * Makefile.in (mips-linux-tdep.o): Update.
12617
12618 2004-02-11 David Carlton <carlton@kealia.com>
12619
12620 * linespec.c (decode_compound): Only look for a class symbol when
12621 considering all but the rightmost component.
12622
12623 2004-02-11 Andrew Cagney <cagney@redhat.com>
12624
12625 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12626 abi code are are separatly grouped.
12627
12628 2004-02-11 Andrew Cagney <cagney@redhat.com>
12629
12630 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12631 * gdbarch.h, gdbarch.c: Re-generate.
12632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12633 * v850-tdep.c (v850_gdbarch_init): Update.
12634 * sh64-tdep.c (sh64_gdbarch_init): Update.
12635 * sh-tdep.c (sh_gdbarch_init): Update.
12636 * s390-tdep.c (s390_gdbarch_init): Update.
12637 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12638 * mips-tdep.c (mips_gdbarch_init): Update.
12639 * mcore-tdep.c (mcore_gdbarch_init): Update.
12640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12641 * m32r-tdep.c (m32r_gdbarch_init): Update.
12642 * ia64-tdep.c (ia64_gdbarch_init): Update.
12643 * hppa-tdep.c (hppa_gdbarch_init): Update.
12644 * h8300-tdep.c (h8300_gdbarch_init): Update.
12645 * frv-tdep.c (frv_gdbarch_init): Update.
12646 * d10v-tdep.c (d10v_gdbarch_init): Update.
12647 * cris-tdep.c (cris_gdbarch_init): Update.
12648 * avr-tdep.c (avr_gdbarch_init): Update.
12649 * arm-tdep.c (arm_gdbarch_init): Update.
12650 * alpha-tdep.c (alpha_gdbarch_init): Update.
12651
12652 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12653
12654 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12655 comma.
12656 (sh_sh4al_dsp_register_name): Ditto.
12657
12658 2004-02-10 Andrew Cagney <cagney@redhat.com>
12659
12660 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12661 (mips_init_frame_pc_first): Delete function.
12662 (mips_frame_saved_pc): Delete function.
12663 (mips_frame_chain): Delete function.
12664 (mips_init_extra_frame_info): Delete function.
12665 (mips_xfer_register): Delete unused variable "reg".
12666 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12667 (mips_n32n64_return_value): Delete unused variable "reg".
12668 (mips_n32n64_return_value): Delete unused variable "pos".
12669 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12670 (mips_o32_return_value): Delete unused variable "pos".
12671 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12672 (mips_print_fp_register): Delete unused variable "namelen"
12673 (mips_print_fp_register): Delete unused variable "flt2"
12674 (get_frame_pointer): Delete function.
12675 (cached_proc_desc): Delete static variable.
12676 (mips_pop_frame): Delete function.
12677 (mips_find_saved_regs): Delete function.
12678 (mips_get_saved_register): Delete function.
12679 (mips_saved_pc_after_call): Delete function.
12680 (SIGFRAME_BASE): Delete macro.
12681 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12682 (SIGFRAME_PC_OFF): Delete macro.
12683 (SIGFRAME_REGSAVE_OFF): Delete macro.
12684 (mips_dump_tdep): Do not print deleted macro definitions.
12685
12686 2004-02-10 Andrew Cagney <cagney@redhat.com>
12687
12688 * Makefile.in (SFILES): Remove explictly listed tui files.
12689 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12690
12691 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12692
12693 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12694 to use paddr functions to format ia64 addresses and long values.
12695 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12696 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12697 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12698 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12699 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12700
12701 2004-02-10 Andrew Cagney <cagney@redhat.com>
12702
12703 * defs.h: Do not include "tui.h".
12704 * gdb_curses.h: New file.
12705 * tui/tui-hooks.h: New file.
12706 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12707 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12708 (tui_initialize_io): Delete declaration.
12709 (tui_initialize_readline: Delete redundant declaration.
12710 (struct tui_point): Delete definition.
12711 * tui/tui-data.h (struct tui_point): Define.
12712 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12713 * utils.c: Include "tui/tui.h".
12714 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12715 * printcmd.c [TUI]: Include "tui/tui.h".
12716 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12717 * tui/tui-command.c: Include "gdb_curses.h".
12718 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12719 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12720 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12721 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12722 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12723 * Makefile.in: Update all dependencies.
12724 (tui_hooks_h, gdb_curses_h): Define.
12725 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12726
12727 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12728
12729 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12730 auxf2. Add comments about some other rarely used fields.
12731
12732 2004-02-10 Andrew Cagney <cagney@redhat.com>
12733
12734 * Makefile.in (init.c): Fix script removing duplicates. Problem
12735 reported by Peter Schauer.
12736
12737 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12738
12739 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12740 obstack_specify_allocation.
12741 * objfiles.c (allocate_objfile): Ditto.
12742 * solib-sunos.c (solib_add_common_symbols)
12743 (allocate_rt_common_objfile): Ditto.
12744 * symfile.c (reread_symbols): Ditto.
12745 * gdb_obstack.h: Add comment.
12746
12747 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12748
12749 * linespec.c (decode_line_1, locate_first_half)
12750 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12751 commented out code.
12752
12753 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12754
12755 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12756 obstack_free.
12757
12758 2004-02-09 Andrew Cagney <cagney@redhat.com>
12759
12760 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12761 fails, try find_pc_section. Fix PR c++/1267.
12762 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12763 instead of find_pc_mapped_section.
12764 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12765 not default to the section containing PC. Fix PR symtab/1519.
12766
12767 2004-02-09 Andrew Cagney <cagney@redhat.com>
12768
12769 * Makefile.in (mips-tdep.o): Update dependencies.
12770 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12771 "trad-frame.h".
12772 (mips_unwind_pc): Return the pseudo PC register.
12773 (mips_unwind_dummy_id): New function.
12774 (mips16_fetch_instruction): New function.
12775 (mips32_fetch_instruction): New function.
12776 (struct mips_frame_cache): Define.
12777 (mips_mdebug_frame_cache): New function.
12778 (mips_mdebug_frame_this_id): New function.
12779 (mips_mdebug_frame_prev_register): New function.
12780 (mips_mdebug_frame_unwind): Define.
12781 (mips_mdebug_frame_sniffer): New function.
12782 (mips_mdebug_frame_base_address): New function.
12783 (mips_mdebug_frame_base): Define.
12784 (mips_mdebug_frame_base_sniffer): New function.
12785 (mips_gdbarch_init): Append unwind and base sniffers. Set
12786 unwind_dummy_id.
12787
12788 2004-02-08 Andrew Cagney <cagney@redhat.com>
12789
12790 * frame.c: Print both the register number and name.
12791
12792 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12793 and a sed into a single sed. Make .c and .o patterns more robust.
12794 (OBS): Delete.
12795 (INIT_FILES): Replace OBS with COMMON_OBS.
12796 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12797
12798 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12799
12800 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12801 the PT_WCOOKIE request.
12802
12803 2004-02-08 Andrew Cagney <cagney@redhat.com>
12804
12805 * mips-tdep.c (mips_unwind_pc): New function.
12806 (mips_gdbarch_init): Set mips_unwind_pc.
12807
12808 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12809 (get_frame_id): Allow the UNKNOWN_FRAME.
12810 (frame_register_unwind, get_frame_type): Ditto.
12811
12812 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12813 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12814 unwind_dummy_id indicates a legacy frame.
12815
12816 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12817 * configure: Re-generate.
12818
12819 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12820 methods.
12821
12822 2004-02-08 Andrew Cagney <cagney@redhat.com>
12823
12824 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12825 makefile macro.
12826 * configure: Re-generate.
12827 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12828 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12829 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12830 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12831 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12832 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12833 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12834 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12835 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12836 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12837
12838 2004-02-07 Andrew Cagney <cagney@redhat.com>
12839
12840 * Makefile.in: Update all dependencies.
12841
12842 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12843 * configure: Re-generate.
12844 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12845 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12846 (COMMON_OBS): Add "main.o" and "annotate.o".
12847 (ANNOTATE_OBS): Delete.
12848 (OBS): Remove ANNOTATE_OBS.
12849 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12850 CONFIG_INITS.
12851 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12852 against CONFIG_OBS and "main.o".
12853 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12854 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12855
12856 * tui/tui-command.c: Include "gdb_string.h", delete register
12857 attribute, use ISO-C function signatures.
12858 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12859 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12860 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12861 * tui/tui.c: Ditto.
12862
12863 * tui/tui-command.c: Change variable and function names to lower
12864 case.
12865 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12866 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12867 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12868 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12869 * tui/tui-winsource.c, tui/tui.c: Ditto.
12870
12871 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12872
12873 * buildsym.c (free_pending_blocks, finish_block)
12874 (record_pending_block, make_blockvector, end_symtab): Replace
12875 symbol_obstack with objfile_obstack.
12876 * coffread.c (process_coff_symbol, coff_read_struct_type)
12877 (coff_read_enum_type): Ditto.
12878 * cp-namespace.c (initialize_namespace_symtab)
12879 (check_one_possible_namespace_symbol): Ditto.
12880 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12881 (dwarf2_symbol_mark_computed): Ditto.
12882 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12883 * elfread.c (elf_symtab_read): Ditto.
12884 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12885 (hpread_read_enum_type, hpread_read_function_type)
12886 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12887 Ditto.
12888 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12889 (java_link_class_type): Ditto.
12890 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12891 (new_symbol): Ditto.
12892 * minsyms.c (install_minimal_symbols): Ditto.
12893 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12894 (terminate_minimal_symbol_table): Replace symbol_obstack with
12895 objfile_obstack.
12896 (free_objfile): Remove freeing of symbol_obstack.
12897 * objfiles.h: Remove symbol_obstack field.
12898 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12899 objfile_obstack.
12900 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12901 symbol_obstack.
12902 (solib_add_common_symbols): Replace symbol_obstack with
12903 objfile_obstack.
12904 * somsolib.c (som_solib_add): Ditto.
12905 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12906 (common_block_start, common_block_end): Ditto.
12907 * symfile.c (reread_symbols): Remove freeing and init of
12908 symbol_obstack.
12909 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12910 * symfile.h: Update comment.
12911 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12912 stats printing.
12913 * symtab.c (symbol_set_names): Replace symbol_obstack with
12914 objfile_obstack.
12915 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12916 Update comments.
12917 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12918 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12919 objfile_obstack.
12920
12921 2004-02-07 Andrew Cagney <cagney@redhat.com>
12922
12923 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12924 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12925 fields and variables.
12926 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12927 (m_beInvisible): Delete macro.
12928 * tui/tui-data.h: Fix case case fields and variables.
12929 (m_genWinPtrIsNull): Delete macro.
12930 (tui_win_list): Rename winList.
12931 (TUI_SRC_WIN): Rename srcWin.
12932 (TUI_DISASM_WIN): Rename disassemWin.
12933 (TUI_DATA_WIN): Rename dataWin.
12934 (TUI_CMD_WIN): Rename cmdWin.
12935 (m_genWinPtrNotNull): Delete macro.
12936 (m_winPtrIsNull): Delete macro.
12937 (m_winPtrNotNull): Delete macro.
12938 (tui_win_is_source_type): Replace m_winIsSourceType
12939 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12940 (tui_win_has_locator): Replace m_hasLocator.
12941 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12942 m_setWinHighlightOff.
12943 * tui/tui-data.c: Update references.
12944 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12945 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12946 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12947 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12948 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12949 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12950 * tui/tui-winsource.c, tui/tui.c: Ditto.
12951
12952 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12953
12954 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12955 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12956 StackGhost.
12957
12958 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12959 variable `i6' to `i7'.
12960 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12961
12962 2004-02-07 Andrew Cagney <cagney@redhat.com>
12963
12964 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12965 (TuiPoint, TuiPointPtr): Ditto.
12966 (TuiStatus, TuiStatusPtr): Ditto.
12967 (TuiWinType, TuiWinTypePtr): Ditto.
12968 (struct tui_point): Rename _TuiPoint.
12969 (tui_get_low_disassembly_address): Rename
12970 tuiGetLowDisassemblyAddress.
12971 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12972 (tuiFree): Delete declaration.
12973 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12974 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12975 * tui/tui.c (tuiFree): Delete function.
12976 * cli/cli-cmds.c (disassemble_command): Update references.
12977 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12978 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12979 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12980 * tui/tui-winsource.c: Ditto.
12981
12982 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12983
12984 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12985 coffstab_build_psymtabs, elfstab_build_psymtabs)
12986 (stabsect_build_psymtabs): Replace psymbol_obstack with
12987 objfile_obstack.
12988 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12989 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12990 Ditto.
12991 * dwarfread.c (scan_compilation_units): Ditto.
12992 * elfread.c (elfstab_offset_sections): Ditto.
12993 * hppa-tdep.c (read_unwind_info): Ditto.
12994 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12995 (hpread_end_psymtab): Ditto.
12996 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12997 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12998 Ditto.
12999 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13000 * objfiles.c (add_to_objfile_sections)
13001 (build_objfile_section_table): Ditto.
13002 (allocate_objfile): Remove init of psymbol_obstack.
13003 (free_objfile): Remove freeing of psymbol_obstack.
13004 * objfiles.h (struct objfile): Remove field
13005 psymbol_obstack. Update comments.
13006 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13007 psymbol_obstack with objfile_obstack.
13008 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13009 psymbol_obstack.
13010 * somread.c (som_symfile_offsets, init_import_symbols)
13011 (init_export_symbols): Replace psymbol_obstack with
13012 objfile_obstack.
13013 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13014 * symfile.c (default_symfile_offsets, syms_from_objfile)
13015 (reread_symbols): Remove freeing and init of psymbol_obstack.
13016 (cashier_psymtab): Update comment.
13017 * symmisc.c (print_objfile_statistics): Don't report stats for
13018 psymbol obstack.
13019 * symtab.h (struct general_symbol_info, struct partial_symtab):
13020 Update comments.
13021 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13022 (xcoff_symfile_offsets): Replace psymbol_obstack with
13023 objfile_obstack.
13024
13025 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13026
13027 * objfiles.h (struct objfile): Add objfile_obstack field.
13028 Remove type_obstack field.
13029
13030 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13031 read_structure_scope read_enumeration, new_symbol): Replace
13032 type_obstack with objfile_obstack.
13033 * dwarfread.c (struct_type, enum_type): Ditto.
13034 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13035 (lookup_fundamental_type): Ditto.
13036 * gdbtypes.h (TYPE_ALLOC): Ditto.
13037 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13038 (hpread_read_doc_function_type, hpread_read_struct_type)
13039 (fix_static_member_physnames, hpread_read_array_type)
13040 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13041 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13042 (java_link_class_type): Ditto.
13043 * mdebugread.c (parse_type): Ditto.
13044 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13045 * solib-sunos.c (solib_add_common_symbols): Ditto.
13046 * stabsread.c (define_symbol, read_type, read_member_functions,
13047 read_cpp_abbrev, read_one_struct_field): Ditto.
13048 * symfile.c (reread_symbols): Ditto.
13049 * symmisc.c (print_objfile_statistics): Ditto.
13050
13051 2004-02-07 Andrew Cagney <cagney@redhat.com>
13052
13053 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13054 (tui_exec_info_content): Rename TuiExecInfoContent.
13055 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13056 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13057 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13058 (TuiList, TuiListPtr): Ditto.
13059 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13060 (TuiDataType, TuiDataTypePtr): Ditto.
13061 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13062 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13063 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13064 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13065 (TuiDataElement, TuiDataElementPtr): Ditto.
13066 (TuiWinElement, TuiWinElementPtr): Ditto.
13067 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13068 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13069 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13070 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13071 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13072 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13073 * tui/tui-command.c, tui/tui-data.c: Update references.
13074 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13075 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13076 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13077 * tui/tui-winsource.c, tui/tui.c: Ditto.
13078
13079 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13080
13081 * dwarf2-frame.h: Update copyright.
13082 (enum dwarf2_frame_reg_rule): New.
13083 (struct dwarf2_frame_state_reg): New.
13084 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13085 * dwarf2-frame.c: Update copyright.
13086 (enum dwarf2_reg_rule): Remove.
13087 (struct dwarf2_frame_state): Remove defenition of `struct
13088 dwarf2_frame_state_reg'.
13089 (read_reg): Call get_frame_arch to get the architecture instead of
13090 using CURRENT_GDBARCH.
13091 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13092 DWARF2_FRAME_.
13093 (dwarf2_frame_init_reg): New function.
13094 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13095 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13096 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13097 tags with DWARF2_FRAME_.
13098 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13099 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13100 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13101
13102 2004-02-06 Andrew Cagney <cagney@redhat.com>
13103
13104 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13105 (enum tui_data_type): Rename _TuiDataType.
13106 (struct tui_layout_def): Rename _TuiLayoutDef.
13107 (struct tui_source_element): Rename _TuiSourceElement.
13108 (struct tui_data_element): Rename _TuiDataElement.
13109 (struct tui_command_element): Rename _TuiCommandElement.
13110 (struct tui_locator_element): Rename _TuiLocatorElement.
13111 (union tui_which_element): Define.
13112 (struct tui_win_element): Rename _TuiWinElement.
13113 (struct tui_data_info): Rename _TuiDataInfo.
13114 (struct tui_source_info): Rename _TuiSourceInfo.
13115 (struct tui_command_info): Rename _TuiCommandInfo.
13116 (tui_initialize_static_data): Rename initializeStaticData.
13117 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13118 (tui_alloc_win_info): Rename allocWinInfo.
13119 (tui_init_generic_part): Rename initGenericPart.
13120 (tui_init_win_info): Rename initWinInfo.
13121 (tui_alloc_content): Rename allocContent.
13122 (tui_add_content_elements): Rename addContentElements.
13123 (tui_init_content_element): Rename initContentElement.
13124 (tui_free_window): Rename freeWindow.
13125 (tui_free_win_content): Rename freeWinContent.
13126 (tui_free_data_content): Rename freeDataContent.
13127 (tui_free_all_source_wins_content): Rename
13128 freeAllSourceWinsContent.
13129 (tui_del_window): Rename tuiDelWindow.
13130 (tui_del_data_windows): Rename tuiDelDataWindows.
13131 (tui_partial_win_by_name): Rename partialWinByName.
13132 (tui_win_name): Rename winName.
13133 (tui_current_layout): Rename currentLayout.
13134 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13135 (tui_term_height): Rename termHeight.
13136 (tui_set_term_height_to): Rename setTermHeightTo.
13137 (tui_term_width): Rename termWidth.
13138 (tui_set_term_width_to): Rename setTermWidthTo.
13139 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13140 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13141 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13142 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13143 (tui_source_windows): Rename sourceWindows.
13144 (tui_clear_source_windows): Rename clearSourceWindows.
13145 (tui_clear_source_windows_detail): Rename
13146 clearSourceWindowsDetail.
13147 (tui_clear_win_detail): Rename clearWinDetail.
13148 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13149 (tui_default_tab_len): Rename tuiDefaultTabLen.
13150 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13151 (tui_win_with_focus): Rename tuiWinWithFocus.
13152 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13153 (tui_layout_def): Rename tuiLayoutDef.
13154 (tui_win_resized): Rename tuiWinResized.
13155 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13156 (tui_next_win): Rename tuiNextWin.
13157 (tui_prev_win): Rename tuiPrevWin.
13158 (tui_add_to_source_windows): Rename addToSourceWindows.
13159 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13160 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13161 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13162 * tui/tui.c, tui/tui-data.c: Ditto.
13163 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13164 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13165
13166 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13167 (struct symtab): Declare.
13168 (tui_set_source_content): Rename tuiSetSourceContent.
13169 (tui_show_symtab_source): Rename tuiShowSource.
13170 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13171 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13172 * tui/tui-source.c: Update copyright. Update references.
13173 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13174 * tui/tui-stack.c: Update references.
13175
13176 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13177 (struct tui_win_info): Declare.
13178 (tui_scroll_forward): Rename tuiScrollForward.
13179 (tui_scroll_backward): Rename tuiScrollBackward.
13180 (tui_scroll_left): Rename tuiScrollLeft.
13181 (tui_scroll_right): Rename tuiScrollRight.
13182 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13183 (tui_resize_all): Rename tuiResizeAll.
13184 (tui_refresh_all_win): Rename tuiRefreshAll.
13185 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13186 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13187 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13188 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13189
13190 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13191 (tui_erase_data_content): Rename tuiEraseDataContent.
13192 (tui_display_all_data): Rename tuiDisplayAllData.
13193 (tui_check_data_values): Rename tuiCheckDataValues.
13194 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13195 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13196 (tui_first_data_element_no_in_line): Rename
13197 tuiFirstDataElementNoInLine.
13198 (tui_delete_data_content_windows): Rename
13199 tuiDeleteDataContentWindows.
13200 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13201 (tui_display_data_from): Rename tuiDisplayDataFrom.
13202 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13203 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13204 * tui/tui-win.c, tui/tui-regs.c: Update references.
13205 * tui/tui-layout.c, tui/tui.c: Update references.
13206
13207 * tui/tui-wingeneral.h: Update copyright.
13208 (m_allBeVisible): Delete macro.
13209 (m_allBeInvisible): Delete macro.
13210 (struct tui_gen_win_info): Declare.
13211 (struct tui_win_info): Declare.
13212 (tui_unhighlight_win): Rename unhighlightWin.
13213 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13214 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13215 (tui_make_window): Rename makeWindow.
13216 (tui_copy_win): Rename copyWin.
13217 (tui_box_win): Rename boxWin.
13218 (tui_highlight_win): Rename highlightWin.
13219 (tui_check_and_display_highlight_if_needed): Rename
13220 checkAndDisplayHighlightIfNeeded.
13221 (tui_refresh_all): Rename refreshAll.
13222 (tui_delete_win): Rename tuiDelwin.
13223 (tui_refresh_win): Rename tuiRefreshWin.
13224 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13225 (tui_make_visible, tui_make_invisible): New functions.
13226 (tui_make_all_visible, tui_make_all_invisible): New functions.
13227 (make_all_visible): Rename makeAllVisible.
13228 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13229 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13230 * tui/tui-windata.c, tui/tui-win.c: Update references.
13231 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13232 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13233
13234 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13235
13236 * proc-api.c (write_with_trace): Initialize local variable to
13237 silence compiler warning.
13238
13239 2004-02-06 Andrew Cagney <cagney@redhat.com>
13240
13241 * tui/tui-source.h: Do not include "defs.h".
13242 (struct tui_win_info): Declare.
13243 (tui_set_source_content_nil): Declare.
13244 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13245 (union tui_line_or_address): Rename _TuiLineOrAddress.
13246 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13247 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13248 (tui_update_source_window_as_is): Rename
13249 tuiUpdateSourceWindowAsIs.
13250 (tui_update_source_windows_with_addr): Rename
13251 tuiUpdateSourceWindowsWithAddr.
13252 (tui_update_source_windows_with_line): Rename
13253 tuiUpdateSourceWindowsWithLine.
13254 (tui_clear_source_content): Rename tuiClearSourceContent.
13255 (tui_erase_source_content): Rename tuiEraseSourceContent.
13256 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13257 (tui_show_source_content): Rename tuiShowSourceContent.
13258 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13259 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13260 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13261 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13262 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13263 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13264 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13265 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13266 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13267 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13268 (struct tui_win_info): Declare.
13269 * tui/tui-stack.c: Update references.
13270 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13271 * tui/tui-win.c, tui/tui-source.c: Ditto.
13272 * tui/tui.c, tui/tui-disasm.c: Ditto.
13273
13274 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13275
13276 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13277 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13278
13279 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13280
13281 * infrun.c (handle_inferior_event): Allow for breakpoint
13282 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13283 and SIGEMT. Update comments.
13284 * NEWS (Revised SPARC target): Mention support for non-executable
13285 stack.
13286
13287 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13288
13289 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13290 * inftarg.c: Update copyright year.
13291 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13292 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13293 (sparc_xfer_wcookie): New function.
13294 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13295 * Makefile.in (sparc-nat.o): Update dependencies.
13296 * config/sparc/nm-nbsd.h: Include "target.h".
13297 (NATIVE_XFER_WCOOKIE): New define.
13298 (sparc_xfer_wcookie): New prototype.
13299
13300 2004-02-04 Andrew Cagney <cagney@redhat.com>
13301
13302 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13303 SYSCALL_TRAP function.
13304 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13305
13306 2004-02-04 Andrew Cagney <cagney@redhat.com>
13307 Daniel Jacobowitz <drow@mvista.com>
13308
13309 * objfiles.h: Delete comments refering to inside_entry_func and
13310 DEPRECATED_FRAME_CHAIN_VALID.
13311 * defs.h (inside_entry_func): Update prototype..
13312 * blockframe.c (inside_entry_func): Rename to
13313 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13314 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13315
13316 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13317
13318 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13319 outside of #ifdef SOLIB_ADD region.
13320 (do_restore_lang_radix_cleanup): Ditto.
13321 (resolve_pending_breakpoint): Ditto.
13322
13323 2004-02-03 Andrew Cagney <cagney@redhat.com>
13324
13325 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13326 (process_note_abi_tag_sections): Delete unused function.
13327 (ia64_read_fp): Delete unused function.
13328 (gdbarch_extract_struct_value_address): Delete declaration.
13329
13330 2004-02-02 Andrew Cagney <cagney@redhat.com>
13331
13332 * vax-tdep.c (vax_frame_chain): Delete call to
13333 deprecated_inside_entry_file.
13334 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13335
13336 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13337
13338 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13339 column that's "empty" or "same value" when eliminating REG_RA
13340 rules.
13341
13342 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13343
13344 * NEWS: Add information about new pending breakpoint support.
13345
13346 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13347
13348 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13349 and pending fields for pending breakpoint support.
13350 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13351 (condition_command): Only parse condition if not a pending
13352 breakpoint.
13353 (print_one_breakpoint): Add support for pending breakpoints.
13354 (describe_other_breakpoints): Add checks to verify we are not
13355 dealing with pending breakpoints.
13356 (check_duplicates): Don't check pending breakpoints.
13357 (set_raw_breakpoint): Initialize pending flag.
13358 (do_restore_lang_radix_cleanup): New cleanup routine.
13359 (resolve_pending_breakpoint): New function.
13360 (re_enable_breakpoints_in_shlibs): Try and resolve any
13361 pending breakpoints via resolve_pending_breakpoint.
13362 (mention): Add pending breakpoint support.
13363 (parse_breakpoint_sals): Add new parameter to pass to
13364 decode_line_1 to indicate silent errors when files or functions
13365 are not found. Change all callers.
13366 (do_captured_parse_breakpoint): New function.
13367 (break_command_1): Change prototype to return an rc value and to
13368 take an optional pending breakpoint pointer. Support creating
13369 a pending breakpoint if a "not found" form of error occurs when
13370 parsing the breakpoint. Also support resolving an existing pending
13371 breakpoint and be silent if the resolution fails.
13372 (create_breakpoints): Change prototype to take pending breakpoint
13373 pointer. When resolving a pending breakpoint, use the new pointer
13374 to provide a conditional or commands added by the end-user.
13375 (delete_breakpoint): Add appropriate check for pending.
13376 (breakpoint_re_set_one): Ditto.
13377 (do_enable_breakpoint): Ditto.
13378
13379 2004-02-02 David Carlton <carlton@kealia.com>
13380
13381 * valops.c (enum oload_classification): New.
13382 (find_overload_match): Break implementation into separate
13383 functions; delete #if 0'd code; look for symbols within
13384 namespaces.
13385 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13386 (find_oload_champ,oload_method_static,classify_oload_match): New.
13387 * cp-support.h: Add declaration for cp_func_name; update
13388 declaration for make_symbol_overload_list.
13389 * cp-support.c (cp_func_name): New.
13390 (overload_list_add_symbol): Fix comment, use
13391 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13392 (make_symbol_overload_list): Take a function name and a namespace
13393 instead of a symbol; change implementation.
13394 (make_symbol_overload_list_using): New.
13395 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13396
13397 2004-02-02 Fred Fish <fnf@redhat.com>
13398
13399 * main.c (gdb_stdtarg): Move definition to group with other
13400 gdb_stdtarg definitions and update copyright years.
13401 * remote-sim.c (gdb_os_write_stderr): Write output to
13402 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13403 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13404 gdb_stderr stream and update copyright years.
13405
13406 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13407
13408 * Makefile.in (mips-linux-nat.o): Update dependencies.
13409 * mips-linux-nat.c: Include mips-tdep.h.
13410
13411 2004-02-01 Roland McGrath <roland@redhat.com>
13412
13413 * sol-thread.c (sol_thread_xfer_partial): New function.
13414 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13415 (init_sol_core_ops): Likewise.
13416
13417 * procfs.c (procfs_xfer_partial): New function.
13418 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13419 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13420
13421 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13422 procfs_xfer_auxv function.
13423
13424 * procfs.c (procfs_make_note_section): If we can read
13425 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13426 * linux-proc.c (linux_make_note_section): Likewise.
13427
13428 * auxv.h: New file.
13429 * auxv.c: New file.
13430 * Makefile.in (auxv_h): New variable.
13431 (COMMON_OBS): Add auxv.o here.
13432 (auxv.o): New target.
13433
13434 * corelow.c (core_xfer_partial): New function.
13435 (init_core_ops): Use it for core_ops.to_xfer_partial.
13436
13437 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13438 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13439 macro if that is defined.
13440
13441 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13442
13443 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13444 and check the specified thread for each breakpoint.
13445 * breakpoint.h (bpstat_stop_status): Update prototype.
13446 * infrun.c (handle_inferior_event): Update calls to
13447 bpstat_stop_status.
13448
13449 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13450
13451 * Makefile.in (cli-cmds.o): Add $(readline_h).
13452
13453 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13454
13455 * cli/cli-cmds.c: Include readline.h.
13456 (complete_command): Pass the start of the last word to
13457 complete_line.
13458
13459 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13460
13461 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13462 argument, and change first argument to a CORE_ADDR.
13463 * breakpoint.h (bpstat_stop_status): Update prototype.
13464 * infrun.c (adjust_pc_after_break): Add a new comment.
13465 (handle_inferior_event): Update calls to bpstat_stop_status.
13466
13467 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13468
13469 * breakpoint.h: Update copyright years.
13470
13471 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13472
13473 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13474 (bpstat_stop_status): Don't decrement PC.
13475 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13476 prototype.
13477 * infrun.c (adjust_pc_after_break): New function.
13478 (handle_inferior_event): Call it, early. Remove later references
13479 to DECR_PC_AFTER_BREAK.
13480 (normal_stop): Add commentary.
13481
13482 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13483
13484 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13485 2004-01-27 double-free fix.
13486
13487 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13488
13489 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13490 (sparc32_frame_prev_register): Handle StackGhost.
13491 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13492
13493 2004-01-29 Roland McGrath <roland@redhat.com>
13494
13495 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13496 * configure: Regenerated.
13497
13498 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13499 * Makefile.in (procfs.o): Add dep.
13500
13501 2004-01-28 Andrew Cagney <cagney@redhat.com>
13502
13503 * tui/tui-stack.h: Update copyright.
13504 (struct frame_info): Add opaque declaration.
13505 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13506 (tui_show_locator_content): Rename tuiShowLocatorContent.
13507 (tui_show_frame_info): Rename tuiShowFrameInfo.
13508 * tui/tui-stack.c: Update copyright. Update references.
13509 * tui/tui-winsource.c: Update references.
13510 * tui/tui-win.c: Update references.
13511 * tui/tui-layout.c: Update references.
13512 * tui/tui-hooks.c: Update copyright, update references.
13513 * tui/tui.c: Update copyright, update references.
13514 * tui/tui-disasm.c: Update references.
13515
13516 2004-01-28 David Carlton <carlton@kealia.com>
13517
13518 * dwarf2read.c (add_partial_structure): Use demangled name if
13519 namespace equals "".
13520
13521 2004-01-27 Jim Blandy <jimb@redhat.com>
13522
13523 Clean up misapplied patch:
13524 * dwarf2read.c (determine_prefix): Change one of the two forward
13525 declarations for 'determine_prefix_aux' to a declaration for this.
13526 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13527 argument to 'die_specification'.
13528
13529 * dwarf2read.c (read_func_scope): Re-indent comment.
13530
13531 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13532
13533 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13534 b->exp to NULL after freeing so that error during re-parsing or
13535 evaluation of expressions associated with breakpoint don't
13536 eventually lead to re-freeing of storage.
13537 Committed by Andrew Cagney.
13538
13539 2004-01-27 Andrew Cagney <cagney@redhat.com>
13540
13541 * source.c (ambiguous_line_spec): Delete undefined declaration.
13542 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13543 (m32r_set_server_address, m32r_set_download_path): Ditto.
13544 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13545
13546 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13547
13548 * dwarf2read.c: Update calls to changed and renamed functions, and
13549 references to moved variables.
13550
13551 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13552 language, language_defn, list_in_scope, and ftypes members.
13553 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13554 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13555 (baseaddr): Remove globals.
13556
13557 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13558 (set_cu_language, die_is_declaration, die_specification)
13559 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13560 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13561 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13562 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13563
13564 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13565 cu.list_in_scope. Don't initialize cu_header_offset.
13566 (add_partial_symbol): Add local baseaddr.
13567 (psymtab_to_symtab_1): Add local baseaddr. Use
13568 objfile->section_offsets for consistency. Don't initialize
13569 cu_header_offset; do initialize cu.header.offset and
13570 cu.list_in_scope.
13571 (read_file_scope, read_func_scope, read_lexical_block_scope)
13572 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13573
13574 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13575
13576 * PROBLEMS: Add gdb/1516.
13577
13578 2003-12-29 Robert Millan <robertmh@gnu.org>
13579
13580 Patch committed by Andrw Cagney.
13581 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13582 * configure.tgt: Match knetbsd*-gnu.
13583
13584 2004-01-26 Andrew Cagney <cagney@redhat.com>
13585
13586 * breakpoint.c (catch_command_1): Delete #ifdef code.
13587 (catch_fork_command_1): Delete #ifdef wrapper.
13588 (catch_exec_command_1): Ditto.
13589 (catch_load_command_1): Ditto.
13590 (catch_unload_command_1): Ditto.
13591
13592 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13593 (catch_breakpoint): Delete #if0ed function.
13594 (disable_catch_breakpoint): Ditto.
13595 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13596 (disable_catch, enable_catch, delete_catch): Ditto.
13597
13598 2004-01-26 Andrew Cagney <cagney@redhat.com>
13599
13600 * remote.c (echo_check, quit_flag): Delete variables.
13601 (cisco_kernel_mode): Delete variable.
13602 (minitelnet_return, tty_input, escape_count): Delete variables.
13603 (remote_cisco_mode): Delete variable.
13604 (remote_cisco_open, remote_cisco_close): Delete function.
13605 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13606 (init_remote_cisco_ops): Delete function.
13607 (_initialize_remote): Do not install "remote cisco" code.
13608 (read_frame): Delete cisco specific code.
13609 (remote_info_process): Delete function.
13610 (remote_wait): Delete cisco specific code.
13611 (remote_cisco_section_offsets): Delete function.
13612 (remote_cisco_objfile_relocate): Delete function.
13613 (remote_async_wait): Delete cisco specific code.
13614 (minitelnet, readtty, readsocket): Delete function.
13615
13616 2004-01-26 Andrew Cagney <cagney@redhat.com>
13617
13618 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13619 comments mentioning extract_returned_value_address.
13620 * infcmd.c (print_return_value): Update. Add comments on
13621 extract_returned_value_address.
13622 * stack.c (return_command): Add comments on
13623 extract_returned_value_address.
13624 * values.c: Update comment.
13625 * m32r-tdep.c: Update comment.
13626 * sparc-tdep.c: Update comment.
13627 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13629 * sh64-tdep.c (sh64_gdbarch_init): Update.
13630 * sh-tdep.c (sh_gdbarch_init): Update.
13631 * s390-tdep.c (s390_gdbarch_init): Update.
13632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13633 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13634 * m68k-tdep.c (m68k_gdbarch_init): Update.
13635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13636 * m32r-tdep.c (m32r_gdbarch_init): Update.
13637 * ia64-tdep.c (ia64_gdbarch_init): Update.
13638 * h8300-tdep.c (h8300_gdbarch_init): Update.
13639 * frv-tdep.c (frv_gdbarch_init): Update.
13640 * arm-tdep.c (arm_gdbarch_init): Update.
13641 * alpha-tdep.c (alpha_gdbarch_init): Update.
13642
13643 2004-01-26 Andrew Cagney <cagney@redhat.com>
13644
13645 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13646 SYMBOL_LOCATION_FUNCS
13647 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13648 "struct symbol_ops".
13649 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13650 type to "struct symbol_ops".
13651 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13652 (struct symbol): Replace ".aux_value.loc.funcs" and
13653 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13654 (SYMBOL_OBJFILE): Delete macro.
13655 (SYMBOL_LOCATION_FUNCS): Delete macro.
13656 (SYMBOL_LOCATION_BATON): Update.
13657 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13658 intead of SYMBOL_LOCATION_FUNCS.
13659 * ax-gdb.c (gen_var_ref): Ditto.
13660 * printcmd.c (address_info): Ditto.
13661 * findvar.c (read_var_value): Ditto.
13662 (symbol_read_needs_frame): Ditto.
13663
13664 2004-01-26 Andrew Cagney <cagney@redhat.com>
13665
13666 * dwarf2read.c (read_func_scope): Document frame-base hack.
13667
13668 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13669
13670 * infcmd.c (print_return_value): Plug memory leak; delete
13671 ui_stream object. Rename argument `structure_return' to
13672 `struct_return'.
13673
13674 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13675
13676 * infcmd.c (print_return_value): Wrap long lines.
13677 (finish_command_continuation, finish_command): Remove unused
13678 variable `funcaddr'. Fix some coding-standards problems.
13679
13680 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13681 SECT_SIZE is large enough, not whether it's exactly the right size.
13682 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13683 TDEP->fpregset to zero.
13684
13685 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13686 floating-point registers for traditional NetBSD core files.
13687 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13688 TDEP->sizeof_fpregset here.
13689
13690 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13691
13692 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13693 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13694 function with code split out from
13695 sparc32nbsd_sigcontext_frame_cache.
13696 (sparc32nbsd_sigcontext_frame_cache): Use
13697 sparc32nbsd_sigcontext_saved_regs.
13698 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13699 OpenBSD.
13700 * sparcobsd-tdep.c: New file.
13701 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13702 (sparcobsd-tdep.o): New dependency.
13703 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13704 * config/sparc/obsd.mt: New file.
13705
13706 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13707 TDEP->fpregset to be initialized to enable core file register
13708 sets.
13709
13710 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13711
13712 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13713 Add opaque declarations.
13714 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13715 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13716 function with code split out from
13717 sparc64nbsd_sigcontext_frame_cache.
13718 (sparc64nbsd_sigcontext_frame_cache): Use
13719 sparc64nbsd_sigcontext_saved_regs.
13720 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13721 OpenBSD.
13722 * sparc64obsd-tdep.c: New file.
13723 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13724 (sparc64obsd-tdep.o): New dependency.
13725 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13726 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13727 * config/sparc/obsd64.mt: New file.
13728
13729 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13730 read the instruction at PC.
13731
13732 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13733 value of GDB_OSABI_DEFAULT.
13734 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13735 instead of GDB_OSABI_NETBSD_AOUT.
13736
13737 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13738
13739 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13740 copyright.
13741
13742 2004-01-23 Andrew Cagney <cagney@redhat.com>
13743
13744 * printcmd.c (display_command): Replace tui_set_display call with
13745 tui_set_layout_for_display_command.
13746 * tui/tui.h (enum tui_win_type): Define.
13747 (tui_set_layout): Delete declaration.
13748 (tui_set_layout_for_display_command): Rename set_tui_layout.
13749 * tui/tui-data.h (enum tui_layout_type): Define.
13750 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13751 "tui.h".
13752 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13753 (tui_default_win_height): Rename tuiDefaultWinHeight.
13754 (tui_default_win_viewport_height): Rename
13755 tuiDefaultWinViewportHeight.
13756 (tui_set_layout): RenametuiSetLayout.
13757 * tui/tui-layout.c: Update references.
13758 * tui/tui.c: Update references.
13759 * tui/tui-disasm.c: Update references.
13760
13761 2004-01-23 David Carlton <carlton@kealia.com>
13762
13763 Partial workaround for PR c++/1511:
13764 * cp-namespace.c: Include frame.h.
13765 (cp_lookup_transparent_type): New
13766 (cp_lookup_transparent_type_loop): New.
13767 * cp-support.h: Declare cp_lookup_transparent_type.
13768 * symtab.c (basic_lookup_transparent_type): Renamed from
13769 lookup_transparent_type.
13770 (lookup_transparent_type): Replace old body by a call to
13771 current_language->la_lookup_transparent_type.
13772 * symtab.h: Update copyright. Declare
13773 basic_lookup_transparent_type.
13774 * language.h: Update copyright.
13775 (struct language_defn): Add la_lookup_transparent_type.
13776 * language.c: Update copyright.
13777 (unknown_language_defn): Add basic_lookup_transparent_type.
13778 (auto_language_defn): Add basic_lookup_transparent_type.
13779 (local_language_defn): Add basic_lookup_transparent_type.
13780 * ada-lang.c: Update copyright.
13781 (ada_language_defn): Add basic_lookup_transparent_type.
13782 * c-lang.c: Update copyright.
13783 (c_language_defn): Add basic_lookup_transparent_type.
13784 (cplus_language_defn): Add basic_lookup_transparent_type.
13785 (asm_language_defn): Add basic_lookup_transparent_type.
13786 (minimal_language_defn): Add basic_lookup_transparent_type.
13787 * f-lang.c: Update copyright.
13788 (f_language_defn): Add basic_lookup_transparent_type.
13789 * jv-lang.c: Update copyright.
13790 (java_language_defn): Add basic_lookup_transparent_type.
13791 * m2-lang.c: Update copyright.
13792 (m2_language_defn): Add basic_lookup_transparent_type.
13793 * objc-lang.c: Update copyright.
13794 (objc_language_defn): Add basic_lookup_transparent_type.
13795 * p-lang.c: Update copyright.
13796 (p_language_defn): Add basic_lookup_transparent_type.
13797 * scm-lang.c: Update copyright.
13798 (scm_language_defn): Add basic_lookup_transparent_type.
13799 * Makefile.in (cp-namespace.o): Depend on frame.h.
13800
13801 2004-01-23 David Carlton <carlton@kealia.com>
13802
13803 Patch for PR c++/1520:
13804 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13805 properly if we have a specification die.
13806 (determine_prefix_aux): Rename from determine_prefix.
13807 (determine_prefix): Like the old determine_prefix, but never
13808 returns NULL.
13809
13810 2004-01-23 Theodore A. Roth <troth@openavr.org>
13811
13812 * avr-tdep.c: Update copyright.
13813 (avr_iaddr_p): Delete unused function.
13814 (avr_saddr_p): Delete unused function.
13815
13816 2004-01-23 David Carlton <carlton@kealia.com>
13817
13818 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13819 Fix for PR symtab/1534.
13820
13821 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13822
13823 * NEWS (New native configurations): Mention OpenBSD/sparc and
13824 OpenBSD/sparc64.
13825 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13826 * configure.host: Likewise.
13827 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13828 handler for OpenBSD.
13829 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13830
13831 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13832
13833 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13834 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13835
13836 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13837 * cli/cli-cmds.c (shell_escape): Likewise.
13838
13839 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13840 OpenBSD .note.openbsd.ident sections.
13841
13842 2004-01-22 David Carlton <carlton@kealia.com>
13843
13844 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13845 get_scope_pc_bounds.
13846 (read_file_scope): Ditto.
13847 (get_scope_pc_bounds): New function, produced by extracting code
13848 from the above two functions, consolidating it, and adding support
13849 for DW_TAG_namespace.
13850
13851 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13852
13853 * osabi.c (MAX_NOTESZ): New define.
13854 (check_note): New function.
13855 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13856 check_note.
13857
13858 2004-01-21 Roland McGrath <roland@redhat.com>
13859
13860 * MAINTAINERS (write after approval): Add myself.
13861
13862 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13863
13864 * utils.c (init_page_info): Move declarations of `rows' and
13865 `cols' before the __GO32__-specific code. Move the closing brace
13866 outside the #ifdef __GO32__..#endif block.
13867 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13868
13869 2004-01-21 Paul Brook <paul@codesourcery.com>
13870
13871 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13872 BPSTAT_WHAT_CHECK_SHLIBS.
13873
13874 2004-01-21 Paul Brook <paul@codesourcery.com>
13875
13876 * MAINTAINERS: Add myself to write-after-approval.
13877
13878 2004-01-20 Andrew Cagney <cagney@redhat.com>
13879
13880 * ax-gdb.c (print_axs_value): Delete unused function.
13881 * jv-lang.c (java_lookup_type): Delete unused function.
13882 * cli/cli-dump.c (dump_filetype): Delete unused function.
13883 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13884 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13885 (mips_getstring): Delete unused function.
13886 (pmon_insert_breakpoint): Delete #if0ed function.
13887 (PMON_MAX_BP): Delete #if0ed MACRO.
13888 (mips_pmon_bp_info): Delete #if0ed variable.
13889 (pmon_remove_breakpoint): Delete #if0ed function.
13890 * monitor.c (monitor_write_even_block): Delete unused function.
13891 (monitor_write_memory_block): Delete #if0ed code.
13892 * dink32-rom.c (dink32_load): Delete unused function.
13893 (_initialize_dink32_rom): Delete #if0ed code.
13894 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13895
13896 * tui/tui-command.c: Update references.
13897 * tui/tui-io.c: Update references.
13898 * tui/tui-command.h: Update copyright.
13899 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13900
13901 * source.c (ambiguous_line_spec): Delete never-defined function.
13902 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13903 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13904 * cli/cli-cmds.c (validate_comname): Ditto.
13905
13906 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13907 "tui-data.h".
13908 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13909 (tui_show_disassem): Rename tuiShowDisassem.
13910 (tui_show_disassem_and_update_source): Rename
13911 tuiVerticalDisassemScroll.
13912 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13913 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13914 * tui/tui.h: Update copyright.
13915 (enum tui_status): Define.
13916 * tui/tui-data.h (enum tui_scroll_direction): Define.
13917 * tui/tui-disasm.c: Update copyright. Update references.
13918 * tui/tui-winsource.c: Update copyright. Update references.
13919 * tui/tui-win.c: Update references.
13920 * tui/tui-layout.c: Update references.
13921
13922 2004-01-20 Andrew Cagney <cagney@redhat.com>
13923
13924 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13925 sym2 to start of block.
13926
13927 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13928
13929 * MAINTAINERS: Delete mmalloc.
13930 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13931 * NEWS: Mention removal of --with-malloc.
13932 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13933 * config.in: Regenerate.
13934 * configure: Regenerate.
13935 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13936 USE_MMALLOC, MMCHECK_FORCE.
13937 * gdbinit.in: Remove mmalloc.
13938 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13939 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13940 * config/i386/go32.mh: Likewise.
13941 * config/i386/interix.mh: Likewise.
13942 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13943
13944 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13945
13946 * linespec.c (decode_variable, symtab_from_filename): Call
13947 error_silent with error message instead of throwing an exception
13948 directly.
13949 * defs.h (error_silent, error_output_message): Add prototypes.
13950 (catch_exceptions_with_msg): Ditto.
13951 * utils.c (error_silent, error_output_message): New functions.
13952 * top.c (catch_exceptions_with_msg): New function.
13953
13954 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13955
13956 * mi/mi-cmds.h (enum print_values): Add definition.
13957
13958 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13959 type and value for simple data types and just the name and type
13960 for complex ones, if required.
13961
13962 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13963 children, if required.
13964
13965 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13966
13967 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13968 unused declarations.
13969
13970 2004-01-19 Andrew Cagney <cagney@redhat.com>
13971
13972 * top.h (mapped_symbol_files): Delete declaration.
13973 * main.c (captured_main): Delete option "m" and "mapped".
13974 * objfiles.c (mapped_symbol_files): Delete variable.
13975 * symfile.c (symbol_file_command): Delete mmap code.
13976 (symbol_file_add_with_addrs_or_offsets): Ditto.
13977 (add_symbol_file_command, reread_separate_symbols): Ditto.
13978 * objfiles.h (OBJF_MAPPED): Delete.
13979 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13980 (free_objfile) [USE_MMALLOC]: Ditto.
13981 (open_existing_mapped_file): Delete function.
13982 (open_mapped_file): Delete function.
13983 (map_to_file): Delete function.
13984
13985 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13986
13987 * infrun.c (step_into_function): Account for possible breakpoint
13988 adjustment when computing ``stop_func_start''.
13989
13990 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13991
13992 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13993 the region size against the size of a pointer, not the size of
13994 a register as given by DEPRECATED_REGISTER_SIZE.
13995
13996 2004-01-19 Andrew Cagney <cagney@redhat.com>
13997
13998 * tui/tui-regs.h: Include "tui-data.h".
13999 (tuiFirstRegElementNoInLine): Delete declaration.
14000 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14001 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14002 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14003 (tui_calculate_regs_column_count): Rename
14004 tuiCalculateRegsColumnCount.
14005 (tui_check_register_values): Rename tuiCheckRegisterValues.
14006 (tui_show_registers): Rename tuiShowRegisters.
14007 (tui_display_registers_from_line): Rename
14008 tuiDisplayRegistersFromLine.
14009 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14010 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14011 (tui_first_reg_element_no_inline): Rename
14012 tuiFirstRegElementNoInLine.
14013 * tui/tui-data.h: Update copyright.
14014 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14015 * tui/tui-windata.c: Update copyright, update references.
14016 * tui/tui-regs.c: Update copyright, update references.
14017 * tui/tui-win.c: Update copyright, update references.
14018 * tui/tui-layout.c: Update copyright, update references.
14019
14020 2004-01-18 Andrew Cagney <cagney@redhat.com>
14021
14022 * tui/tui-io.c: Update copyright.
14023 (key_is_end_sequence, key_is_backspace): New functions.
14024 (key_is_command_char, key_is_start_sequence): New function.
14025 (tui_getc): Update references.
14026 * tui/tui-io.h: Update copyright.
14027 (m_tuiStartNewLine): Delete macro.
14028 (m_isBackspace, m_isDeleteChar): Delete macros.
14029 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14030 (m_isNextPage, m_isPrevPage): Delete macros.
14031 (m_isLeftArrow, m_isRightArrow): Delete macros.
14032 (m_isXdbStyleCommandChar): Delete macro.
14033 (key_is_start_sequence): Declare, replace m_isStartSequence.
14034 (key_is_end_sequence): Declare, replace m_isEndSequence.
14035 (key_is_backspace): Declare ,replace m_isBackspace.
14036 (key_is_command_char): Declare, replace m_isCommandChar.
14037 * tui/tui-command.c: Update copyright.
14038 (tuiDispatchCtrlChar): Update references.
14039
14040 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14041 tuiSourceWin.h.
14042
14043 * tui/tui-command.c: Rename tui/tuiCommand.c.
14044 * tui/tui-command.h: Rename tui/tuiCommand.h.
14045 * tui/tui-data.c: Rename tui/tuiData.c.
14046 * tui/tui-data.h: Rename tui/tuiData.h.
14047 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14048 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14049 * tui/tui-io.c: Rename tui/tuiIO.c.
14050 * tui/tui-io.h: Rename tui/tuiIO.h.
14051 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14052 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14053 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14054 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14055 * tui/tui-source.c: Rename tui/tuiSource.c.
14056 * tui/tui-source.h: Rename tui/tuiSource.h.
14057 * tui/tui-stack.c: Rename tui/tuiStack.c.
14058 * tui/tui-stack.h: Rename tui/tuiStack.h.
14059 * tui/tui-win.c: Rename tui/tuiWin.c.
14060 * tui/tui-win.h: Rename tui/tuiWin.h.
14061 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14062 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14063 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14064 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14065 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14066 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14067 * tui/tui-file.c: Update includes.
14068 * tui/tui-hooks.c: Update includes.
14069 * tui/tui-interp.c: Update includes.
14070 * tui/tui.c: Update includes.
14071 * Makefile.in: Update all tui/ dependencies.
14072 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14073
14074 * Makefile.in: Update copyright. Update dependencies.
14075
14076 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14077 problem.
14078
14079 2004-01-18 Andrew Cagney <cagney@redhat.com>
14080
14081 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14082 instead of register_gdbarch_init.
14083
14084 * remote-sds.c (tohex): Delete unused function. Update copyright.
14085 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14086 * v850-tdep.c (v850_register_virtual_size): Ditto.
14087 * target.c (normal_target_post_startup_inferior): Ditto.
14088 * source.c (ambiguous_line_spec): Ditto.
14089 * remote.c (adapt_remote_get_threadinfo): Ditto.
14090 * mi/mi-out.c (out_field_fmt): Ditto.
14091 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14092 (output_control_change_notification): Ditto.
14093 * m68k-tdep.c (m68k_register_byte): Ditto.
14094 (m68k_remote_breakpoint_from_pc): Ditto.
14095 * ui-out.c (init_ui_out_state): Delete unused declaration.
14096 * stabsread.c (search_value): Ditto.
14097 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14098 * maint.c (print_section_table): Ditto.
14099 * infrun.c (set_follow_fork_mode_command): Ditto.
14100
14101 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14102
14103 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14104 DW_CFA_def_cfa_exporession. Add support for
14105 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14106 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14107
14108 2004-01-18 Andrew Cagney <cagney@redhat.com>
14109
14110 * ocd.c: Update copyright.
14111 (bdm_read_register_command): Delete unused function.
14112 (_initialize_remote_ocd): Delete commented out reference.
14113 (get_quoted_char, reset_packet): Delete #if0ed function.
14114 (output_packet, put_quoted_char): Delete #if0ed function.
14115 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14116 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14117 (BDM_BREAKPOINT): Delete #if0ed macro.
14118 (remote_timeout): Delete #if0ed variable.
14119
14120 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14121
14122 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14123 (core-sol2.o): Remove dependency.
14124 * core-sol2.c: Remove file.
14125
14126 2004-01-17 Andrew Cagney <cagney@redhat.com>
14127
14128 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14129 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14130 enums.
14131
14132 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14133
14134 * remote.c: Update copyright years.
14135
14136 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14137
14138 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14139
14140 2004-01-17 Andrew Cagney <cagney@redhat.com>
14141
14142 * mdebugread.c: Update copyright.
14143 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14144 (parse_type, parse_procedure): Ditto.
14145 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14146
14147 * cris-tdep.c (cris_store_struct_return): Put back accidently
14148 deleted function.
14149
14150 * gdbarch.sh: Update copyright year.
14151 * gdbarch.h, gdbarch.c: Re-generate.
14152
14153 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14154
14155 Suggested by George Anzinger.
14156 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14157 correct stack offset. Include unknown opcode numbers in the error
14158 message.
14159
14160 2004-01-17 Andrew Cagney <cagney@redhat.com>
14161
14162 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14163 extract_struct_value_address, i386 does not set it.
14164 * sparc64-tdep.c (sparc64_init_abi): Do not set
14165 extract_struct_value_address, never called.
14166 (sparc64_extract_struct_value_address): Delete function.
14167 * m68hc11-tdep.c: Update copyright.
14168 (m68hc11_gdbarch_init): Delete redundant assignment of
14169 extract_struct_value_address.
14170 * i386-tdep.c: Update copyright.
14171 (i386_gdbarch_init): Do not set extract_struct_value_address,
14172 never called.
14173 (i386_extract_struct_value_address): Delete function.
14174 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14175 extract_struct_value_address, never called.
14176 (sparc32_extract_struct_value_address): #if 0 function. Add
14177 comments explaining its future.
14178
14179 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14180
14181 * arm-tdep.c (arm_write_pc): New function.
14182 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14183
14184 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14185
14186 * breakpoint.c (must_shift_inst_regs): Delete.
14187 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14188 and SHIFT_INST_REGS.
14189 * infcmd.c (step_1, step_1_continuation): Delete references to
14190 SHIFT_INST_REGS.
14191 * infrun.c (keep_going): Likewise.
14192 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14193 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14194
14195 2004-01-17 Andrew Cagney <cagney@redhat.com>
14196
14197 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14198 * gdbarch.h, gdbarch.c: Re-generate.
14199 * infcmd.c (print_return_value): Delete reference to
14200 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14201
14202 * cris-tdep.c (cris_gdbarch_init): Do not set
14203 deprecated_extract_struct_value_address.
14204
14205 * xstormy16-tdep.c: Update copyright.
14206 (xstormy16_extract_struct_value_address): Update to current
14207 extract struct value address interface.
14208 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14209 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14210 current extract struct value address interface.
14211 (sh64_gdbarch_init): Set extract_struct_value_address.
14212
14213 * cris-tdep.c: Update copyright.
14214 (cris_extract_struct_value_address): Delete function.
14215 (struct_return_address): Delete variable.
14216 (cris_store_struct_return): Do not set struct_return_address.
14217
14218 * mcore-tdep.c: Update copyright.
14219 (mcore_extract_struct_value_address): Delete function. Update
14220 comments.
14221 (mcore_gdbarch_init): Update.
14222 * mn10300-tdep.c: Update copyright.
14223 (mn10300_extract_struct_value_address): Delete function.
14224 (mn10300_gdbarch_init): Update.
14225 * v850-tdep.c: Update copyright.
14226 (v850_extract_struct_value_address): Delete.
14227 (v850_gdbarch_init): Update.
14228 * ns32k-tdep.c: Update copyright.
14229 (ns32k_extract_struct_value_address): Delete.
14230 (ns32k_gdbarch_init): Update.
14231 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14232 (hppa_gdbarch_init): Update.
14233 * vax-tdep.c: Update copyright.
14234 (vax_extract_struct_value_address): Delete.
14235 (vax_gdbarch_init): Update.
14236
14237 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14238 * gdbarch.h, gdbarch.c: Re-generate.
14239 * procfs.c (procfs_fetch_registers): Delete reference to
14240 DEPRECATED_NPC_REGNUM.
14241 (procfs_store_registers): Ditto.
14242 * regcache.c (generic_target_write_pc): Simplify.
14243 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14244
14245 * core-sol2.c (fetch_core_registers): Replace
14246 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14247
14248 * hppa-tdep.c: Update copyright year.
14249 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14250 NPC_REGNUM.
14251 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14252
14253 * mips-tdep.c (mips_write_pc): New function.
14254 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14255 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14256 (mips_find_saved_regs, mips_software_single_step: Ditto.
14257 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14258 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14259
14260 2004-01-17 Andrew Cagney <cagney@redhat.com>
14261
14262 * mips-tdep.c: Re-indent. Group functions by ABI.
14263
14264 2004-01-17 Andrew Cagney <cagney@redhat.com>
14265
14266 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14267 * gdbarch.c: Re-generate.
14268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14269 DECR_PC_AFTER_BREAK to zero.
14270 * vax-tdep.c (vax_gdbarch_init): Ditto.
14271 * v850-tdep.c (v850_gdbarch_init): Ditto.
14272 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14273 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14274 * sh-tdep.c (sh_gdbarch_init): Ditto.
14275 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14276 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14278 * mips-tdep.c (mips_gdbarch_init): Ditto.
14279 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14281 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14282 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14283 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14284 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14285 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14286 * frv-tdep.c (frv_gdbarch_init): Ditto.
14287 * cris-tdep.c (cris_gdbarch_init): Ditto.
14288 * avr-tdep.c (avr_gdbarch_init): Ditto.
14289 * arm-tdep.c (arm_gdbarch_init): Ditto.
14290 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14291
14292 2004-01-17 J. Brobecker <brobecker@gnat.com>
14293
14294 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14295 Delete, no longer used.
14296 (read_subrange_type): New function, mostly extracted from
14297 read_array_type().
14298 (read_array_type): Replace extracted code by call to
14299 read_subrange_type().
14300 (dwarf2_get_attr_constant_value): New function.
14301 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14302 (add_partial_symbol): Likewise.
14303 (process_die): Likewise.
14304 (new_symbol): Likewise.
14305 (read_type_die): Likewise.
14306
14307 2004-01-16 Andrew Cagney <cagney@redhat.com>
14308
14309 * symfile.c: Update copyright year.
14310 (compare_symbols): Delete unused function.
14311 * stabsread.c: Update copyright year.
14312 (lrs_general_complaint): Delete unused function.
14313 (ref_search_value): Ditto.
14314 (get_substring): Delete declaration.
14315 * sh64-tdep.c: Update copyright year.
14316 (sh64_get_gdb_regnum): Delete unused function.
14317 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14318 Delete unused function.
14319
14320 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14321
14322 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14323 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14324
14325 2004-01-16 Andrew Cagney <cagney@redhat.com>
14326
14327 Changes from Peter Schauer.
14328 * rs6000-tdep.c: Update copyright year.
14329 (rs6000_push_dummy_call): Update the stack pointer before
14330 accessing the corresponding stack region.
14331 * rs6000-nat.c: Update copyright year.
14332 (set_host_arch): Set "info.abfd" to "exec_bfd".
14333
14334 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14335
14336 * blockframe.c: Update copyright year.
14337 (inside_entry_func): Don't treat a zero PC specially.
14338
14339 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14340
14341 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14342 variable.
14343 (gcore_create_callback): Ditto. Skip any memory segment that has
14344 no permissions set.
14345
14346 2004-01-14 David Carlton <carlton@kealia.com>
14347
14348 Change symbols for C++ nested types to contain the fully qualified
14349 name, if possible. (At least in the DWARF-2 case.) Partial fix
14350 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14351 c++/895.
14352 * c-exp.y (qualified_type): Handle types nested within classes.
14353 * cp-namespace.c: Update comments.
14354 (cp_set_block_scope): Delete #if 0.
14355 (cp_lookup_nested_type): Handle types nested within classes.
14356 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14357 when appropriate.
14358 (add_partial_symbol): Add the name of the enclosing namespace to
14359 types.
14360 (pdi_needs_namespace): New.
14361 (add_partial_namespace): Tweak comment.
14362 (add_partial_structure): New.
14363 (psymtab_to_symtab_1): Initialize processing_current_prefix
14364 here...
14365 (process_die): instead of here.
14366 (read_structure_scope): Try to figure out the name of the class or
14367 namespace that the structure might be defined within.
14368 (read_enumeration): Generate fully-qualified names, if possible.
14369 (read_namespace): Don't set name to NULL.
14370 (die_specification): New.
14371 (new_symbol): Generate fully-qualified names for types.
14372 (read_type_die): Determine appropriate prefix.
14373 (determine_prefix): New.
14374 (typename_concat): New.
14375 (class_name): New.
14376 * valops.c (value_aggregate_elt): Pass NOSIDE to
14377 value_struct_elt_for_reference.
14378 (value_struct_elt_for_reference): Make static, add NOSIDE
14379 parameter, call value_maybe_namespace_elt as a last resort.
14380 (value_namespace_elt): Break out code into
14381 value_maybe_namespace_elt.
14382 (value_maybe_namespace_elt): New.
14383
14384 2004-01-12 Andrew Cagney <cagney@redhat.com>
14385
14386 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14387 cooked floating-point registers.
14388 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14389 and value_to_register.
14390
14391 2004-01-13 Andrew Cagney <cagney@redhat.com>
14392
14393 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14394 * gdbarch.c: Re-generate.
14395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14396 FUNCTION_START_OFFSET.
14397 * v850-tdep.c (v850_gdbarch_init): Ditto.
14398 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14399 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14400 * sh-tdep.c (sh_gdbarch_init): Ditto.
14401 * s390-tdep.c (s390_gdbarch_init): Ditto.
14402 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14403 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14404 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14405 * mips-tdep.c (mips_gdbarch_init): Ditto.
14406 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14407 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14409 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14411 * i386-tdep.c (i386_gdbarch_init): Ditto.
14412 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14413 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14414 * frv-tdep.c (frv_gdbarch_init): Ditto.
14415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14416 * cris-tdep.c (cris_gdbarch_init): Ditto.
14417 * avr-tdep.c (avr_gdbarch_init): Ditto.
14418 * arm-tdep.c (arm_gdbarch_init): Ditto.
14419 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14420
14421 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14422
14423 * infrun.c (follow_fork_mode_ask): Remove.
14424 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14425 (follow_fork): Simplify and remove internal error for
14426 follow_fork_mode_ask.
14427 (_initialize_infrun): Update "set follow-fork-mode" help text.
14428
14429 2004-01-13 Andrew Cagney <cagney@redhat.com>
14430
14431 * configure.in: Update copyright year.
14432 (build_warnings): Add -Wunused-label.
14433 * configure: Re-generate.
14434
14435 2004-01-12 Andrew Cagney <cagney@redhat.com>
14436
14437 * exec.h (exec_ops): Make "extern".
14438
14439 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14440 the function is void.
14441 (mips_pseudo_register_write): Ditto.
14442
14443 2004-01-12 Andrew Cagney <cagney@redhat.com>
14444
14445 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14446 call. Never defined.
14447 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14448 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14449 (struct sparc_gregset, struct regcache): Ditto.
14450 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14451
14452 2004-01-12 Andrew Cagney <cagney@redhat.com>
14453
14454 * mi/ChangeLog: Delete file. Renamed to ...
14455 * mi/ChangeLog-1999-2003: New file.
14456 * tui/ChangeLog: Delete file. Renamed to ...
14457 * tui/ChangeLog-1998-2003: New file.
14458
14459 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14460
14461 * sparc64nbsd-tdep.c: Include "regset.h".
14462 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14463 Remove variables.
14464 (fetch_core_registers): Remove function.
14465 (sparc64nbsd_core_fns): Remove variable.
14466 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14467 functions.
14468 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14469 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14470 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14471
14472 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14473 sparc_extract_struct_value_address.
14474 (sparc32_gdbarch_init): Set extract_struct_value_address.
14475 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14476 function.
14477 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14478 return_value_on_stack.
14479
14480 * NEWS: Mention that %cs and %ss have been added to the AMD64
14481 configurations
14482
14483 * frame.c: Update copyright year.
14484 (get_prev_frame): Improve comment.
14485
14486 * sparc64fbsd-tdep.c: Include "regset.h".
14487 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14488 Remove variables.
14489 (fetch_core_registers): Remove function.
14490 (sparc64fbsd_core_fns): Remove variable.
14491 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14492 functions.
14493 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14494 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14495 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14496
14497 * sparcnbsd-tdep.c: Include "regset.h".
14498 (fetch_core_registers): Remove function.
14499 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14500 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14501 functions.
14502 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14503 TDEP->fpregset.
14504 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14505
14506 * sparc-tdep.h (struct regset): Provide opaque declaration.
14507 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14508 fpregset and sizeof_fpregset members.
14509 * sparc-tdep.c (struct regset): Provide opaque declaration.
14510 (sparc_regset_from_core_section): New function.
14511 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14512 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14513 Set regset_from_core_section when appropriate.
14514
14515 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14516
14517 * x86-64-tdep.c (amd64_non_pod_p): New function.
14518 (amd64_classify_aggregate): Return class memory for non-POD
14519 C++ structure types.
14520
14521 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14522 argument. Use it to reserve a register if necessary.
14523 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14524 amd64_push_arguments.
14525
14526 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14527
14528 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14529 register numbers in comments.
14530 * x86-64-tdep.h: Update copyright year.
14531 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14532 Adjust for addition of %cs and %ss.
14533 * amd64fbsd-nat.c: Update copyright year.
14534 (reg_offset): Add register offsets for %cs and %ss.
14535 * amd64fbsd-tdep.c: Update copyright year.
14536 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14537 (amd64fbsd_sc_reg_offset): Likewise.
14538 * x86-64-linux-nat.c: Update copyright year.
14539 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14540 and %ss.
14541 * amd64nbsd-nat.c: Update copyright year.
14542 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14543 * amd64nbsd-tdep.c: Update copyright year.
14544 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14545 * x86-64-linux-tdep.c: Update copyright year.
14546 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14547 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14548 * regformats/reg-x86-64.dat: Add %cs and %ss.
14549
14550 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14551 variables to prevent long lines. Update comments to reflect
14552 reality.
14553
14554 2004-01-09 David Carlton <carlton@kealia.com>
14555
14556 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14557 * dwarf2read.c (read_namespace): Pull out name-generating code
14558 into namespace_name. Rename previous_namespace to previous_prefix
14559 and processing_current_namespace to processing_current_prefix..
14560 (namespace_name): New function.
14561 (add_partial_symbol): Substitute uses of pdi->name with
14562 actual_name.
14563 * cp-support.h: Rename processing_current_namespace to
14564 processing_current_prefix.
14565 Update copyright year.
14566 * cp-namespace.c: Rename processing_current_namespace to
14567 processing_current_prefix.
14568 Update copyright year.
14569
14570 2004-01-09 Andrew Cagney <cagney@redhat.com>
14571
14572 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14573
14574 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14575
14576 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14577 complaining.
14578 (process_one_symbol): Deal with N_PATCH stabs.
14579
14580 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14581
14582 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14583 ifdeffed code.
14584 Update copyright year.
14585
14586 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14587
14588 * config/pa/tm-hppa.h: Update extern declarations for
14589 hppa32_hpux_frame_saved_pc_in_sigtramp,
14590 hppa32_hpux_frame_base_before_sigtramp, and
14591 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14592
14593 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14594
14595 * config/pa/tm-hppah.h: Update copyright years.
14596
14597 2004-01-08 Andrew Cagney <cagney@redhat.com>
14598
14599 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14600 (mips_o32_reg_struct_has_addr): Delete function.
14601 (mips_gdbarch_init): Update.
14602 (mips_extract_struct_value_address): Delete function.
14603
14604 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14605
14606 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14607 reality.
14608
14609 2004-01-07 Andrew Cagney <cagney@redhat.com>
14610
14611 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14612 architecture's elf flags (when available).
14613
14614 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14615 FPU to the start, check the MIPS FPU when looking for an old
14616 architecture.
14617 (set_mipsfpu_single_command): Update the architecture.
14618 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14619
14620 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14621 (mips_mask_address_p): Add "tdep" parameter.
14622 (show_mask_address, mips_addr_bits_remove): Update.
14623 (mips_dump_tdep): Update.
14624 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14625 (MIPS_STACK_ARGSIZE): Delete macro.
14626 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14627 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14628 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14629 (mips_dump_tdep): Update.
14630 (MIPS_SAVED_REGSIZE): Delete macro.
14631 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14632 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14633 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14634 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14635 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14636 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14637 (mips_pop_frame, return_value_location): Update.
14638 (mips_n32n64_return_value, mips_dump_tdep): Update.
14639
14640 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14641 MIPS ABI.
14642
14643 * mips-tdep.c: Update copyright.
14644 (mips_gdbarch_init): Merge two code blocks handling the register
14645 name and number layout.
14646
14647 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14648
14649 * tracepoint.c (validate_actionline): Fix segv at EOF
14650
14651 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14652
14653 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14654 properly for static fields.
14655
14656 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14657 Jason Molenda <jmolenda@apple.com>
14658
14659 * disasm.c: Update copyright to include 2004.
14660 (do_mixed_source_and_assembly): For uiout asm list
14661 and tuple cleanups, initialize to null_cleanup instead of
14662 NULL and do so prior to loop. Only reset when we close off
14663 the tuple/list. Move check for whether to close off the
14664 asm tuple/list to after dump_insns call where it will be run
14665 on each loop iteration.
14666
14667 2004-01-05 Andrew Cagney <cagney@redhat.com>
14668
14669 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14670 should be a switch case and not a label.
14671 * mips-tdep.c (mips32_next_pc): Delete unused labels
14672 "greater_equal_branch" and "less_zero_branch".
14673 * jv-valprint.c (java_print_value_fields): Delete unused label
14674 "flush_it".
14675
14676 * target.c (unpush_target): Only close a target that is in the
14677 target stack.
14678
14679 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14680
14681 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14682 address from [sp + 64] instead of %o2.
14683
14684 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14685 fixes PR backtrace/1476.
14686
14687 2004-01-05 Andrew Cagney <cagney@redhat.com>
14688
14689 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14690 move to start of file.
14691 * i386-tdep.h (struct regcache): Add opaque declaration.
14692 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14693 declaration.
14694 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14695 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14696 * win32-nat.c (fake_create_process): Use ISO C style definition.
14697 * stabsread.c (define_symbol): Delete #ifndef
14698 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14699 stabs_argument_has_addr call, macro never defined.
14700
14701 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14702
14703 * op50-rom.c: Delete.
14704 * w89k-rom.c: Delete.
14705 * Makefile.in: Remove references.
14706
14707 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14708
14709 * x86-64-tdep.c: Update copyright year.
14710 (struct amd64_register_info): Rename from x86_64_register_info.
14711 (amd64_register_info): Rename from x86_64_register_info.
14712 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14713 (amd64_register_name): Rename from x86_64_register_name.
14714 (amd64_register_type): Rename from x86_64_register_type.
14715 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14716 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14717 (amd64_dwarf_reg_to_regnum): Rename from
14718 x86_64_dwarf_reg_to_regnum.
14719 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14720 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14721 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14722 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14723 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14724 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14725 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14726 (amd64_frame_cache): Rename from x86_64_frame_cache.
14727 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14728 (amd64_frame_prev_register): Rename from
14729 x86_64_frame_prev_register.
14730 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14731 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14732 (amd64_sigtramp_frame_cache): Rename from
14733 x86_64_sigtramp_frame_cache.
14734 (amd64_sigtramp_frame_prev_register): Rename from
14735 x86_64_sigtramp_frame_prev_register.
14736 (amd64_sigtramp_frame_unwind): Rename from
14737 x86_64_sigtramp_frame_unwind.
14738 (amd64_sigtramp_frame_sniffer): Rename from
14739 x86_64_sigtramp_frame_sniffer.
14740 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14741 (amd64_frame_base): Rename from x86_64_frame_base.
14742 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14743 (amd64_frame_align): Rename from x86_64_frame_align.
14744 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14745 (amd64_regset_from_core_section): Rename from
14746 x86_64_regset_from_core_section.
14747 (x86_64_init_abi): Update comments.
14748
14749 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14750
14751 * MAINTAINERS (write after approval): Add myself.
14752
14753 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14754
14755 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14756 `float' arguments.
14757
14758 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14759
14760 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14761 such that it mentions a specific version of GCC that exhibits this
14762 bug.
14763
14764 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14765
14766 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14767 structure that has a single `float' member, store it in %f1 in
14768 addition to %f0.
14769
14770 * sparc-sol2-nat.c: Add missing '\'.
14771
14772 * sparc-tdep.c (sparc32_return_value): New function.
14773 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14774 Remove functions.
14775 (sparc32_gdbarch_init): Set return_value, don't set
14776 extract_return_value, store_return_value, use_struct_convention
14777 and return_value_on_stack.
14778
14779 * sparc-sol2-nat.c: Add missing ')'.
14780
14781 2004-01-03 J. Brobecker <brobecker@gnat.com>
14782
14783 * infrun.c (handle_step_into_function): New function.
14784 (handle_inferior_event): Extract out some code into the new
14785 function above.
14786
14787 2004-01-03 J. Brobecker <brobecker@gnat.com>
14788
14789 * infrun.c (handle_inferior_event): Move the declaration of
14790 real_stop_pc inside the if blocks where it is used.
14791
14792 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14793
14794 * sparc64-tdep.c (sparc64_16_byte_align_p)
14795 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14796 Use check_typedef to get subtypes of structures and unions.
14797 (sparc64_store_return_value): Fix calculation of the appropriate
14798 offset into VALBUF when storing a structure or union.
14799 (sparc64_return_value): New function.
14800 (sparc64_use_struct_convention): Remove function.
14801 (sparc64_init_abi): Set return_value, don't set
14802 extract_return_value, store_return_value and
14803 use_struct_convention.
14804
14805 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14806
14807 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14808 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14809 gdb/config/alpha/xm-alphaosf.h,
14810 gdb/config/powerpc/tm-ppcle-eabi.h,
14811 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14812 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14813 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14814 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14815 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14816 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14817 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14818 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14819 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14820 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14821 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14822 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14823 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14824 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14825 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14826 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14827 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14828 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14829 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14830 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14831 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14832 Remove lines for .cvsignore files.
14833
14834 2004-01-03 J. Brobecker <brobecker@gnat.com>
14835
14836 * infrun.c: Back out the previous change.
14837
14838 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14839
14840 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14841 sparc-*-sunos4* to the list of REMOVED configurations.
14842
14843 * configure.tgt: Add back sparc-*-vxworks*.
14844 * remote-vxsparc.c: Remove all includes except for "defs.h",
14845 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14846 Include "sparc-tdep.h".
14847 (SPARC_R_G1): New define.
14848 (vxsparc_gregset): New variable.
14849 (ext_format_sparc): Remove extern declaration.
14850 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14851 sparc32_supply_fpregset.
14852 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14853 sparc_collect_rwindow and sparc32_collect_fpregset.
14854 * config/sparc/tm-vxworks.h: New file, based on recently removed
14855 tm-vxsparc.h.
14856 * config/sparc/vxworks.mt: New file, based on recently removed
14857 vxworks.mt.
14858
14859 2004-01-03 J. Brobecker <brobecker@gnat.com>
14860
14861 * infrun.c (handle_step_into_function): New function.
14862 (handle_inferior_event): Extract out some code into the new
14863 function above.
14864
14865 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14866
14867 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14868 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14869 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14870 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14871 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14872 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14873 (sparc_nat_h): New variable.
14874 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14875 (tm-sun4os4.h): Remove dependency.
14876 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14877 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14878 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14879 sparc-tdep.o): Update dependencies.
14880 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14881 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14882 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14883 dependencies.
14884 * configure.host: Remove existing sparc-*-lynxos*,
14885 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14886 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14887 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14888 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14889 triplets.
14890 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14891 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14892 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14893 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14894 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14895 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14896 sparc64-*-solaris2* and sparc64-*-* triplets.
14897 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14898 "symtab.h" and "objfiles.h".
14899 (BIAS): Remove define.
14900 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14901 (X_DISP19): Remove macros.
14902 (sparc_fetch_instruction): Remove function.
14903 (struct gdbarch_tdep): Remove definition.
14904 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14905 (sparc_breakpoint_from_pc): Remove function.
14906 (struct sparc64_frame_cache): Remove definition.
14907 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14908 sparc64_unwind_pc): Remove functions.
14909 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14910 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14911 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14912 (sparc64_frame_cache): Change return type to `struct
14913 sparc_frame_cache *'. Simply call sparc_frame_cache.
14914 (sparc64_frame_this_id, sparc64_frame_prev_register,
14915 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14916 instead of `struct sparc64_frame_cache.
14917 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14918 sparc_analyze_control_transfer, sparc_software_single_step,
14919 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14920 _initialize_sparc64_tdep): Remove functions.
14921 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14922 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14923 macros.
14924 (sparc64_supply_gregset, sparc64_collect_gregset,
14925 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14926 (sparc64_init_abi): New function.
14927 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14928 inclusion guard. Include "sparc-tdep.h".
14929 (BIAS): Define.
14930 (r_tstate_offset, r_fprs_offset): New defines.
14931 (enum sparc_regnum): Remove defenition.
14932 (enum sparc64_regnum): Reformat.
14933 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14934 (sparc64_init_abi, sparc64_supply_gregset,
14935 sparc64_collect_gregset, sparc64_supply_fpregset,
14936 sparc64_collect_fpregset): New prototypes.
14937 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14938 Add extern declarations.
14939 (sparc64_sol2_init_abi): New prototype.
14940 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14941 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14942 prototypes.
14943 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14944 "sparnbsd-nat.h".
14945 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14946 functions.
14947 (_initialize_sparc64fbsd_nat): Remove initialization of
14948 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14949 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14950 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14951 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14952 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14953 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14954 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14955 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14956 (sparc64fbsd_r_y_offset): Remove variables.
14957 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14958 Make static and const.
14959 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14960 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14961 functions.
14962 (sparc64fbsd_gregset): New variable.
14963 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14964 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14965 and sparc64_supply_fpregset.
14966 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14967 (sparc64fbsd_sigtramp_frame_this_id)
14968 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14969 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14970 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14971 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14972 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14973 * sparcnbsd-tdep.c: Update copyright year. Include
14974 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14975 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14976 "value.h" and "sparcnbsd-tdep.h".
14977 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14978 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14979 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14980 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14981 defines.
14982 (sparcnbsd_gregset): New variable.
14983 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14984 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14985 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14986 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14987 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14988 variables.
14989 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14990 (sparc32nbsd_sigcontext_frame_this_id)
14991 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14992 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14993 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14994 (sparcnbsd_get_longjmp_target_32,
14995 sparcnbsd_get_longjmp_target_64): Remove functions.
14996 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14997 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14998 sparcnbsd_init_elf): Remove.
14999 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15000 (sparcnbsd_elf_init_abi): New functions.
15001 (_initialize_sparcnbsd_tdep): New prototype.
15002 (_initialize_sparnbsd_tdep): Update.
15003 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15004 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15005 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15006 * config/sparc/linux.mh: Update comment.
15007 (XM_FILE, HOST_IPC): Remove variables.
15008 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15009 sparc-linux-nat.o.
15010 * config/sparc/linux.mt: Update comment.
15011 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15012 * config/sparc/nbsd.mt: Reformat.
15013 * config/sparc/nbsd64.mh: Update comment.
15014 (NATDEPFILES): Add sparc-nat.o.
15015 * config/sparc/nbsd64.mt: Update comment.
15016 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15017 (TM_FILE): Set to tm-nbsd.h.
15018 * config/sparc/nbsdelf.mh: Update comment.
15019 (NATDEPFILES): Add sparc-nat.o.
15020 (XM_FILE): Delete.
15021 * config/sparc/nbsdaout.mh: Update comment.
15022 (NATDEPFILES): Add sparc-nat.o
15023 (XM_FILE): Delete.
15024 * config/sparc/nm-linux.h: Update copyright year. Don't include
15025 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15026 inclusion.
15027 (KERNEL_U_SIZE): Remove define.
15028 (kernel_u_size): Remove prototype.
15029 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15030 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15031 "regcache.h".
15032 (CHILD_PREPARE_TO_STORE): Remove define.
15033 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15034 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15035 sparcnbsd-nat.c: Rewrite files.
15036 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15037 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15038 sparcnbsd-tdep.h: Remove files.
15039 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15040 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15041 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15042 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15043 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15044 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15045 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15046 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15047 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15048 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15049 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15050 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15051 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15052 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15053 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15054 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15055 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15056 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15057 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15058
15059 2004-01-02 Andrew Cagney <cagney@redhat.com>
15060
15061 From 2003-12-18 Kazuhiro Inaoka:
15062 * configure.host: Add m32r-linux target.
15063
15064 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15065
15066 * top.c (print_gdb_version): Update year to 2004.
15067
15068 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15069
15070 * MAINTAINERS: Add myself to the write-after-approval category.
15071
15072 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15073
15074 From Bernardo Innocenti <bernie@develer.com>:
15075 * configure.tgt: Add uClinux target.
15076
15077 2004-01-02 Andrew Cagney <cagney@redhat.com>
15078
15079 * utils.c (do_my_cleanups): Make static, add forward declaration.
15080 * defs.h (do_my_cleanups): Delete declaration.
15081
15082 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15083
15084 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15085 bfd/ChangeLog-0203.
15086
15087 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15088
15089 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15090 in <machine/reg.h>.
15091 * configure, config.in: Regenerate.
15092
15093 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15094 tui/ChangeLog-1998-2003.
15095 \f
15096 Local Variables:
15097 mode: change-log
15098 left-margin: 8
15099 fill-column: 74
15100 version-control: never
15101 End: