1 2004-12-17 Jim Blandy <jimb@redhat.com>
3 * remote.c (fetch_register_using_p): Indentation cleanup.
5 2004-12-17 Randolph Chung <tausq@debian.org>
7 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
8 (find_stub_with_shl_get): Make static.
10 2004-12-17 Randolph Chung <tausq@debian.org>
12 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
13 (in_opd_section): New.
14 (hppa32_hpux_find_global_pointer): Rename from
15 hppa_hpux_som_find_global_pointer.
16 (hppa64_hpux_find_global_pointer): New.
18 (hppa_hpux_search_pattern): New.
19 (hppa32_hpux_search_dummy_call_sequence): New.
20 (hppa64_hpux_search_dummy_call_sequence): New.
21 (hppa_hpux_find_import_stub_for_addr): New.
22 (hppa_hpux_sr_for_addr): New.
23 (hppa_hpux_find_dummy_bpaddr): New.
24 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
25 (hppa_hpux_som_init_abi): Set find_global_pointer method to
26 hppa32_hpux_find_global_pointer instead of
27 hppa_hpux_som_find_global_pointer.
28 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
29 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
30 (read_unwind_info): Use function to initialize objfile-private data.
31 (hppa32_push_dummy_call): Don't automatically set the RP if there is
32 a push_dummy_code method.
33 (hppa64_push_dummy_call): Retrieve and set the global pointer.
34 Don't automatically set the RP if there is a push_dummy_code method.
35 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
36 dummy_call_sequence_addr members.
37 (hppa_init_objfile_priv_data): New prototype.
39 2004-12-17 Joel Brobecker <brobecker@gnat.com>
41 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
42 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
43 * solib-som.c (som_solib_create_inferior_hook): Replace stub
44 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
45 extends the search to all objfiles, not just shared libraries.
46 Remove unused variable.
48 2004-12-16 Michael Snyder <msnyder@redhat.com>
50 * MAINTAINERS: Add myself as maintainer for mn10300.
51 * NEWS: Mention mn10300.
53 2004-12-15 Kevin Buettner <kevinb@redhat.com>
55 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
58 2004-12-14 Randolph Chung <tausq@debian.org>
60 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
61 (hppa_gdbarch_init): Set in_epilogue_p method.
63 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
65 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
66 sh_default_extract_return_value.
67 (sh_extract_return_value_fpu): Rename from
68 sh3e_sh4_extract_return_value.
69 (sh_store_return_value_nofpu): Rename from
70 sh_default_store_return_value.
71 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
72 (sh_return_value_nofpu): Accomodate above changes.
73 (sh_return_value_fpu): Ditto.
75 2004-12-13 Jerome Guitton <guitton@gnat.com>
77 * stabsread.c (read_huge_number): Add support for reading octal
78 signed number in twos complement, based on the size of this
80 (read_range_type): Add support for reading octal signed bounds
81 in twos complements, based on the size of the type.
82 (read_type_number, read_cpp_abbrev, read_member_functions,
83 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
84 read_struct_type, read_array_type, read_enum_type,
85 read_sun_builtin_type, read_sun_floating_type): Update calls to
87 (read_type): Update call to read_range_type.
89 2004-12-13 Randolph Chung <tausq@debian.org>
91 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
92 solib_get_solib_by_pc method through target vector.
93 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
94 method through target vector.
96 2004-12-13 Joel Brobecker <brobecker@gnat.com>
98 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
99 parameter name to make it clear that we already have a next
100 frame. Return the sigcontext from that next frame instead
101 of the frame following it.
103 2004-12-13 Randolph Chung <tausq@debian.org>
105 * Makefile.in (pa64solib_h, somsolib_h): Delete.
106 (solib_pa64_h, solib_som_h): New.
107 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
108 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
109 (pa64solib.o, somsolib.o): Delete.
110 (solib-pa64.o, solib-som.o): New.
111 * hppa-hpux-tdep.c: Include new solib interfaces.
112 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
113 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
114 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
115 is available, use it to determine the base of unwind records.
116 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
117 * hpread.c: Replace somsolib.h with solib-som.h.
118 (hpread_process_one_debug_symbol): Use target vector to get thread
120 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
121 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
122 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
123 * config/pa/tm-hppah.h: Use new solib interface.
125 2004-12-13 Randolph Chung <tausq@debian.org>
127 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
128 sections to be trampolines too.
130 2004-12-13 Ben Elliston <bje@au.ibm.com>
132 * f-exp.y (typename): Remove unused nonterminal.
135 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
137 Committed by Andrew Cagney.
138 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
141 2004-12-12 Andrew Cagney <cagney@gnu.org>
143 * frame.c (get_prev_frame): When unwinding normal frames, check
144 that the PC isn't zero.
145 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
148 * MAINTAINERS: Reword description of what "Target Instruction Set
149 Architectures" covers.
151 2004-12-12 Mark Kettenis <kettenis@gnu.org>
153 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
155 2004-12-11 Mark Kettenis <kettenis@gnu.org>
157 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
158 (hppa_hpux_save_state_offset): New function, replacing variable
160 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
162 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
163 Use new hppa_hpux_save_state_offset function. Add special
164 handling for handling 64-bit "flags" register.
165 (hppa_hpux_store_register): Likewise.
166 (hppa_hpux_child_can_run): Tweak comment.
168 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
169 (inf_ttrace_attach): Likewise.
170 (inf_ttrace_resume_callback): New function.
171 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
172 lwps and call inf_ttrace_resume_callback instead.
173 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
175 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
177 2004-12-10 Michael Snyder <msnyder@redhat.com>
179 * mn10300-tdep.c: New file. This is a re-implementation of
180 the mn10300 target back-end using the new frame api etc.
181 * mn10300-tdep.h: New file.
182 * config/mn10300/mn10300.mt: New file (or replace old file).
183 * configure.tgt: Add mn10300 target.
185 2004-12-10 Mark Kettenis <kettenis@gnu.org>
187 * configure.host (hppa*-*-hpux11*): Remove.
188 * config/pa/hpux11.mh: Remove file.
190 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
193 2004-12-10 Kris Warkentin <kewarken@qnx.com>
195 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
196 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
197 function and nto_set_target function.
198 (struct nto_target_ops): Put comments inline with struct. Add osabi
199 sniffer hook. Redefine macros to permit testing/assignment. Remove
200 nto_ prefix from members.
201 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
202 dynamically to support arbitrary root paths. Check for basename of
203 lib in search path and then check for absolute.
204 (nto_in_dynsym_resolve_code): New function.
205 (nto_core_sniffer): New function.
206 (regset_core_fns): Register core sniffer.
207 (nto_initialize_signals): New function.
208 (_initialize_nto_tdep): Move signal initialization code to above to
209 avoid initialization race conditions.
210 (nto_set_target): New function.
211 * nto-procfs.c: Minor formatting/indenting changes.
212 (procfs_is_nto_target): New function.
213 (procfs_open): Set nto_is_nto_target.
214 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
215 initialization race conditions.
216 (procfs_create_inferior): Resume inferior after creation.
217 * i386-nto-tdep.c: Declare i386_nto_target.
218 (init_i386nto_ops): Initialize i386_nto_target instead of
220 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
221 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
222 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
225 2004-12-10 Mark Kettenis <kettenis@gnu.org>
227 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
228 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
229 (hppa_hpux_init_abi): Reformat long line.
231 2004-12-09 Mark Kettenis <kettenis@gnu.org>
233 * hppa-hpux-tdep.c: Include "regset.h".
234 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
235 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
236 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
237 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
238 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
239 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
241 (hppa_hpux_regset): New variable.
242 (hppa_hpux_regset_from_core_section): New function.
243 (hppa_hpux_init_abi): Set regset_from_core_section.
244 (hppa_hpux_core_osabi_sniffer): New function.
245 (_initialize_hppa_hpux_tdep): Register
246 hppa_hpux_core_osabi_sniffer.
247 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
248 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
250 2004-12-09 Randolph Chung <tausq@debian.org>
252 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
253 text and data sections.
254 (pa64_current_sos): Also include the dld in the list of current shared
256 (pa64_solib_get_solib_by_pc): Update comments.
257 (pa64_solib_get_text_base): New function.
258 (pa64_solib_select): Set solib_get_text_base method.
260 2004-12-08 Daniel Jacobowitz <dan@debian.org>
262 * linux-thread-db.c (BUILD_THREAD): Delete.
263 (thread_get_info_callback): Include LWP ID in thread ID.
264 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
265 (lwp_from_thread): Use the LWP ID from the thread ID.
267 2004-12-07 Randolph Chung <tausq@debian.org>
269 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
270 register for both 32- and 64-bit targets.
272 2004-12-07 Randolph Chung <tausq@debian.org>
274 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
275 are unwinding through a dummy frame.
277 2004-12-07 Randolph Chung <tausq@debian.org>
279 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
280 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
281 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
282 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
285 2004-12-07 Randolph Chung <tausq@debian.org>
287 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
288 unwinding from a frame with pc == 0.
289 (hppa_stub_frame_this_id): Likewise.
290 (hppa_stub_frame_prev_register): Only provide real values if the frame
293 2004-12-07 Randolph Chung <tausq@debian.org>
295 * solib-som.c: New file.
296 * solib-som.h: New file.
297 * solib-pa64.c: New file.
298 * solib-pa64.h: New file.
300 2004-12-07 Mark Kettenis <kettenis@gnu.org>
302 * Makefile.in (inf-ttrace.o): Fix typo.
304 2004-12-07 Jim Blandy <jimb@redhat.com>
306 * remote.c (remote_threads_info, remote_current_thread): Use
307 strtoul to parse thread ID numbers.
309 2004-12-07 Mark Kettenis <kettenis@gnu.org>
311 * inf-ttrace.c: Include "gdbthread.h".
312 (inf_ttrace_num_lwps): New variable.
313 (inf_ttrace_num_lwps_in_syscall): Renamed from
314 inf_ttrace_num_threads_in_syscall.
315 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
316 TTEVT_LWP_TERMINATE events.
317 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
319 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
320 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
321 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
323 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
324 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
325 TTEVT_LWP_TERMINATE events.
326 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
327 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
328 * Makefile.in (inf-ttrace.o): Update dependencies.
330 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
332 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
333 Make global. Remove HP-UX specific code. Use
334 frame_unwind_register_unsigned instead of
335 frame_unwind_register_signed.
336 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
337 Remove HP-UX specific code.
338 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
339 (hppa_frame_prev_register_helper): Set "flags" register to zero
340 for all unwound frames.
341 (hppa_gdbarch_init): Adjust.
342 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
343 (hppa_hpux_read_pc, hppa_hpux_write_pc)
344 (hppa_hpux_unwind_pc): New functions.
345 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
347 2004-12-07 Andreas Schwab <schwab@suse.de>
349 * main.c (long_options): Add entry for "-l".
350 (print_gdb_help): Add line for -l option.
353 2004-12-05 Randolph Chung <tausq@debian.org>
355 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
356 DEPRECATED_REGISTER_BYTE.
358 2004-12-05 Randolph Chung <tausq@debian.org>
360 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
363 2004-12-05 Mark Kettenis <kettenis@gnu.org>
365 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
366 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
368 * hppa-hpux-tdep.c: Update copyright notice and year.
370 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
372 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
373 (get_field, put_field): Assert that the format is one we can handle.
374 Simplify logic accordingly.
375 (floatformat_normalize_byteorder): New function.
376 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
377 to normalize and select modified byte order. Pass modified byte order
379 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
381 (convert_doublest_to_floatformat): Select an appropriate intermediate
382 byte order if necessary. Always convert to the final format before
385 2004-12-04 Daniel Jacobowitz <dan@debian.org>
388 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
389 Suggested by Joshua Neuheisel.
391 2004-12-03 Randolph Chung <tausq@debian.org>
393 * gdbarch.sh (instruction_nullified): Delete.
394 * gdbarch.c: Regenerate.
395 * gdbarch.h: Regenerate.
396 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
398 (hppa_unwind_pc): Likewise.
399 (hppa_instruction_nullified): Delete.
400 (hppa_gdbarch_init): Don't set instruction_nullified method.
401 * infrun.c (infwait_states): Remove infwait_nullified_state.
402 (handle_inferior_event): Remove handling of infwait_nullified_state.
403 Remove handling of nullified instructions.
405 2004-12-03 Mark Kettenis <kettenis@gnu.org>
407 * inf-ttrace.c: Include <sys/mman.h>.
408 (struct inf_ttrace_page): New.
409 (struct inf_ttrace_page_dict): New.
410 (inf_ttrace_num_threads_in_syscall)
411 (inf_ttrace_reenable_page_protections): New variables.
412 (inf_ttrace_enable_syscall_events)
413 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
414 (inf_ttrace_add_page, inf_ttrace_insert_page)
415 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
416 (inf_ttrace_enable_page_protections)
417 (inf_ttrace_disable_page_protections)
418 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
419 (inf_ttrace_can_use_hw_breakpoint)
420 (inf_ttrace_region_size_ok_for_hw_watchpoint)
421 (inf_ttrace_stopped_by_watchpoint): New functions.
422 (inf_ttrace_him): Remove unsused varaible `tts'.
423 (inf_ttrace_create_inferior): Add assertionts.
424 (inf_ttrace_mourn_inferior): Clear page dictionary.
425 (inf_ttrace_attach): Set initial event mask.
426 (inf_ttrace_detach): Reset number of threads in system call.
427 (inf_ttrace_wait): Deal with system call events.
428 (inf_ttrace_target): Initialize "hardware" watchpoint-related
429 parts of the target vector.
430 (_initialize_inf_ttrace): New prototype and function.
432 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
433 type of `gp' variable.
435 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
437 * README: Remove config.if from directory listing.
439 2004-12-01 Joel Brobecker <brobecker@gnat.com>
441 * alpha-tdep.c (alpha_register_name): Add comment.
442 (alpha_cannot_fetch_register): Exclude registers numbers which
443 are no longer used from the list of registers that can be fetched.
444 (alpha_cannot_store_register): Exclude registers numbers which
445 are no longer used from the list of registers that can be stored.
446 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
447 core_reg_mapping array.
449 2004-12-01 Joel Brobecker <brobecker@gnat.com>
451 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
452 the register value from the correct frame.
454 2004-11-30 Randolph Chung <tausq@debian.org>
456 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
457 (hppa_linux_in_dyncall): Check that we are inside the range of
458 $$dyncall, not necessarily at the first insn.
459 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
460 even if the pc does not point to the first insn of the trampoline.
462 2004-11-30 Randolph Chung <tausq@debian.org>
464 * breakpoint.c (break_at_finish_command): Delete.
465 (break_at_finish_command_1): Delete.
466 (break_at_finish_at_depth_command): Delete.
467 (break_at_finish_at_depth_command_1): Delete.
468 (tbreak_at_finish_command): Delete.
469 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
472 2004-11-30 Andrew Cagney <cagney@gnu.org>
474 * config/nm-gnu.h: Delete file.
475 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
477 * config/nm-sysv4.h: Delete file.
478 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
479 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
480 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
481 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
482 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
484 2004-11-29 Andrew Cagney <cagney@gnu.org>
486 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
487 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
488 as can-commit architecture developers.
490 2004-11-29 Mark Kettenis <kettenis@gnu.org>
492 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
493 (sparc32_skip_prologue): Skip instructions that store arguments in
494 registers into their corresponding stack slots.
496 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
498 * config/m68k/obsd.mh (NAT_FILE): Likewise.
500 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
501 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
502 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
503 sparc32nbsd_elf_init_abi. Remove duplicate code.
505 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
506 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
507 * config/sparc/nm-nbsd.h: Remove file.
508 * config/sparc/nm-nbsdaout.h: Remove file.
510 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
511 (sparc_xfer_partial): New function.
512 (sparc_target): Save value of to_xfer_partial from ptrace vector.
515 * fork-child.c (fork_inferior): Fork instead of vfork if
516 PRE_TRACE_FUN is non-null.
518 2004-11-24 Fred Fish <fnf@specifixinc.com>
520 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
521 compiler generated function calls made as part of a prologue.
523 2004-11-23 Mark Kettenis <kettenis@gnu.org>
525 * inf-ttrace.c: New file.
526 * inf-ttrace.h: New file.
527 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
528 Include "inf-ttrace.h".
529 (ss_mpsfu_high): Define to ss_tlsp if necessary.
530 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
531 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
533 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
534 instead of inf_ptrace_target.
535 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
536 * Makefile.in (inf_ttrace_h): New variable.
537 (hppa-hpux-nat.o): Update dependency.
538 (inf-ttrace.o): New dependency.
539 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
541 2004-11-23 Randolph Chung <tausq@debian.org>
543 * arch-utils.c (generic_instruction_nullified): New.
544 * arch-utils.h (generic_instruction_nullified): New.
545 * gdbarch.sh (instruction_nullified): New method.
546 * gdbarch.c: Regenerate.
547 * gdbarch.h: Regenerate.
548 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
549 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
551 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
552 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
553 static. Rewrite to work directly off the passed regcache.
554 (hppa_gdbarch_init): Set instruction_nullified method.
556 2004-11-23 Joel Brobecker <brobecker@gnat.com>
558 * sparc-tdep.c (sparc_is_unimp_insn): New function.
559 (sparc32_frame_cache): For functions where there is no debugging
560 information to help us determine whether it's a struct-return
561 function or not, fallback on checking whether the instruction
562 at the return address is an "unimp" instruction or not.
564 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
566 * MAINTAINERS: Add myself to write after approval section.
568 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
569 hpux-thread.c to suppress children from running.
570 (hppa_hpux_child_can_run): New function.
571 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
572 * hpux-thread.c: Include string.h and hppa-tdep.h.
573 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
574 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
575 (hpux_thread_store_registers): Replace deprecated_registers with
576 calls to regcache_raw_read.
577 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
579 2004-11-21 Mark Kettenis <kettenis@gnu.org>
581 * sparc64fbsd-nat.c: Update copyright year.
582 (_initialize_sparc64fbsd_nat): Construct and add target vector.
583 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
586 2004-11-21 Daniel Jacobowitz <dan@debian.org>
588 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
590 2004-11-21 Daniel Jacobowitz <dan@debian.org>
592 * linux-nat.c (my_waitpid): New function.
593 (linux_test_for_tracefork): Make more robust and verbose. Take
594 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
595 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
596 argument. Update calls to linux_test_for_tracefork.
597 (linux_enable_event_reporting, child_follow_fork)
598 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
599 (child_insert_exec_catchpoint): Update calls to
600 linux_supports_tracefork and linux_supports_tracevforkdone.
602 2004-11-21 Daniel Jacobowitz <dan@debian.org>
604 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
605 (value_subscripted_rvalue): Likewise.
606 * valops.c (search_struct_field, value_slice): Likewise.
608 2004-11-21 Mark Kettenis <kettenis@gnu.org>
610 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
611 Reorder includes a bit. Fix comment.
612 * Makefile.in (inf-ptrace.o): Update dependencies.
614 2004-11-21 Andreas Schwab <schwab@suse.de>
616 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
617 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
618 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
619 to glibc_skip_solib_resolver.
620 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
622 * Makefile.in (m68klinux-tdep.o): Update dependencies.
624 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
626 * infttrace.h (ttrace_write_reg_64): Add prototype.
627 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
629 (store_inferior_registers): Correct formatting. Replace uses of
630 deprecated_registers with calls to regcache_raw_read,
631 regcache_raw_write_part and regcache_raw_read_part.
633 2004-11-21 Mark Kettenis <kettenis@gnu.org>
635 * config/pa/hppahpux.mh: Remove file.
636 * config/pa/hpux1020.mh: Remove file.
638 2004-11-20 Andreas Schwab <schwab@suse.de>
640 * configure.host: Set host floatformat for m68k.
642 2004-11-20 Eli Zaretskii <eliz@gnu.org>
644 * config/djgpp/fnchange.lst: Resolve file-name clash between
645 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
647 2004-11-20 Mark Kettenis <kettenis@gnu.org>
649 * hppa-hpux-nat.c: New file.
650 * config/pa/hpux.mh (NATDEPFILES): New file.
651 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
652 (hppa-hpux-nat.o): New dependency.
653 * configure.host: Remove hppa*-*-hpux10.20.
654 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
656 * inf-ptrace.c: Fix coding style.
658 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
659 * infptrace.c (call_ptrace): Simply call ptrace with four
662 * dbxread.c (process_one_symbol): Fix a few coding standard
663 issues. Improve code formatting.
665 * dbxread.c: Include "gdb_string.h".
666 (record_minimal_symbol, read_ofile_symtab): Replace
667 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
668 * Makefile.in (dbxread.o): Update dependencies.
670 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
671 of bytes read for aligned LEB128 encodings.
673 2004-11-19 Mark Kettenis <kettenis@gnu.org>
675 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
676 parse_and_eval_address to u_long before converting it to a pointer
678 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
679 ps_strings from int to u_long.
680 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
681 u_long instead of CORE_ADDR.
683 2004-11-18 Mark Kettenis <kettenis@gnu.org>
685 * dbxread.c (process_one_symbol): Do not adjust address of first
686 N_SLINE stab for a function for code generated by non-GCC
689 2004-11-18 Kevin Buettner <kevinb@redhat.com>
691 * solib-null.c: New file.
693 2004-11-17 Andrew Cagney <cagney@gnu.org>
695 * MAINTAINERS: Drop MIPS and remote.
697 2004-11-15 Andrew Cagney <cagney@gnu.org>
699 * findvar.c (value_of_register): Set the frame ID.
700 * value.c (value_primitive_field): Copy the frame ID.
701 * valops.c (value_assign): Simplify lval_register case, there's
704 2004-11-14 Daniel Jacobowitz <dan@debian.org>
706 * Makefile.in (mips-linux-tdep.o): Update dependencies.
707 * mips-linux-tdep.c: Include "regcache.h".
708 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
710 2004-11-14 Daniel Jacobowitz <dan@debian.org>
712 * Makefile.in (linux-thread-db.o): Fix typo in last change.
714 2004-11-14 Daniel Jacobowitz <dan@debian.org>
716 * linux-thread-db.c: New file, renamed from thread-db.c.
717 * thread-db.c: Remove.
718 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
719 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
720 to linux-thread-db.o.
721 * config/arm/linux.mh (NATDEPFILES): Likewise.
722 * config/i386/linux.mh (NATDEPFILES): Likewise.
723 * config/i386/linux64.mh (NATDEPFILES): Likewise.
724 * config/ia64/linux.mh (NATDEPFILES): Likewise.
725 * config/m32r/linux.mh (NATDEPFILES): Likewise.
726 * config/m68k/linux.mh (NATDEPFILES): Likewise.
727 * config/mips/linux.mh (NATDEPFILES): Likewise.
728 * config/pa/linux.mh (NATDEPFILES): Likewise.
729 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
730 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
731 * config/s390/s390.mh (NATDEPFILES): Likewise.
732 * config/sparc/linux.mh (NATDEPFILES): Likewise.
733 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
735 2004-11-13 Andrew Cagney <cagney@gnu.org>
737 * config/i386/i386lynx.mh: Delete file.
738 * config/i386/i386lynx.mt: Delete file.
739 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
740 * i386ly-tdep.c: Delete.
742 * config/tm-lynx.h: Delete, inline contents ...
743 * config/rs6000/tm-rs6000ly.h: ... here.
745 * config/tm-sysv4.h: Delete file, inlining contents.
746 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
747 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
748 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
750 * regcache.h (deprecated_register_valid): Delete.
751 (deprecated_registers): Delete.
752 * regcache.c (deprecated_register_valid): Delete.
753 (deprecated_registers): Delete.
754 (deprecated_read_register_byte, _initialize_regcache)
755 (deprecated_write_register_bytes, build_regcache): Update.
756 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
758 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
759 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
761 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
762 v850-*-* under removed.
763 * configure.host: Delete ns32k-*-netbsd*.
764 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
765 ns32k-*-netbsd*, and v850*-*-*.
766 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
768 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
769 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
770 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
771 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
772 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
773 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
774 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
775 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
776 * v850-tdep.c: Delete.
778 2004-11-13 Joel Brobecker <brobecker@gnat.com>
780 * irix5-nat.c (fetch_core_registers): Replace use of
781 deprecated_registers by equivalent code.
783 2004-11-13 Joel Brobecker <brobecker@gnat.com>
785 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
786 with equivalent code.
787 (fill_fpregset): Likewise.
789 2004-11-13 Andrew Cagney <cagney@gnu.org>
791 * MAINTAINERS: Do not list "Deleted" architectures.
793 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
794 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
796 * NEWS: Mention that vxworks was deleted.
797 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
798 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
799 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
800 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
801 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
802 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
803 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
804 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
805 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
806 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
807 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
808 * remote-vxmips.c, remote-vx.c: Delete.
809 * remote-vx68.c: Delete.
810 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
811 * config/m68k/os68k.mt, ada-lang.h: Ditto.
812 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
813 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
815 2004-11-13 Eli Zaretskii <eliz@gnu.org>
817 * config/i386/xm-go32.h: Don't include fopen-bin.h.
818 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
820 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
821 branch that doesn't define CRLF_SOURCE_FILES; always use
823 (print_source_lines_base, forward_search_command)
824 (reverse_search_command): Enable the code that accepts DOS-style
825 CRLF line endings on all platforms (this removes the need for
828 * defs.h: Fix wording of the comment before FOPEN_RB.
829 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
831 * config/djgpp/fnchange.lst: Group renames for opcode directory
834 * config/djgpp/djconfig.sh: Replace file names that don't exist
835 anymore with existing files, for checking the unpacked
838 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
839 Export pre-cooked values in configure-* targets that begin with
840 "@test -f stage_last".
842 2004-11-12 Andrew Cagney <cagney@gnu.org>
844 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
845 * value.h (struct value): Update comment.
846 * valops.c (value_assign): Fold lval_reg_fame_relative into
848 * findvar.c (value_from_register, locate_var_value): Ditto.
850 2004-11-12 Randolph Chung <tausq@debian.org>
852 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
853 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
854 (write_exp_msymbol): Remove conditional check for symbols starting
855 with $. Update comments.
857 2004-11-12 Randolph Chung <tausq@debian.org>
859 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
860 so_lib_thread_start_addr.
861 * pa64solib.h (so_list): Forward declare.
862 (pa64_solib_thread_start_addr): Prototype.
863 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
864 (no_shared_libraries): Remove.
865 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
866 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
867 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
868 the elf solib handler to find the start address.
870 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
871 files to the target makefile.
872 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
873 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
874 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
876 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
877 files for symbol reading and shared library handling here.
878 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
879 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
880 without bringing in 64-bit support.
882 2004-11-12 Andrew Cagney <cagney@gnu.org>
884 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
885 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
886 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
887 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
888 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
889 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
890 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
892 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
893 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
894 (VALUE_REGNUM): Define.
895 (struct value): Delete location.regnum, rename "regno" to
897 * value.c, valops.c, valarith.c, findvar.c: Update.
899 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
900 (VALUE_BITPOS): Delete.
901 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
902 * value.c (value_type, value_offset, value_bitpos)
903 (value_bitsize): New functions. Update references.
904 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
905 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
906 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
907 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
908 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
909 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
910 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
911 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
912 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
914 2004-11-12 Andrew Cagney <cagney@gnu.org>
916 * cris-tdep.c (cris_register_offset): Delete, never called.
917 (cris_spec_reg_applicable): Delete cris_ver_sim.
918 * MAINTAINERS: List d10v as OBSOLETE.
919 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
920 FOPEN_WB et.al., defined by "fopen-bin.h".
922 2004-11-12 Randolph Chung <tausq@debian.org>
924 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
925 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
926 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
927 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
929 2004-11-12 Mark Kettenis <kettenis@jive.nl>
931 * tui/tui-io.c: Don't include "terminal.h".
932 * Makefile.in (tui-io.o): Update dependencies.
934 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
936 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
937 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
938 set_gdbarch_regset_from_core_section for core file support.
939 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
942 2004-11-11 Randolph Chung <tausq@debian.org>
944 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
945 stop_after_branch parameter and use it to determine if we should look
946 at the delay slot of the first branch insn to find prologue insns.
947 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
948 (hppa_frame_cache): Likewise.
950 2004-11-11 Randolph Chung <tausq@debian.org>
952 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
953 register so that it can be unwound from anywhere in the prologue.
955 2004-11-10 msnyder <msnyder@redhat.com>
957 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
958 must invalidate lr_reg (so we don't try to save it again).
959 Ditto for cr_offset and cr_reg.
961 2004-11-05 Jon Beniston <jon@beniston.com>
963 Committed by Andrew Cagney.
964 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
965 when an unexpected packet is received, as the target stubs
966 continually retransmit the same packet until ACKed.
968 2004-11-10 Randolph Chung <tausq@debian.org>
970 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
973 2004-11-10 Randolph Chung <tausq@debian.org>
975 * blockframe.c (inside_entry_func): Move to .....
976 * frame.c (inside_entry_func): ... here, and make static.
977 (backtrace_past_entry): New flag.
978 (get_prev_frame): Stop backtrace at the entry function if enabled
979 by flag. Update comments.
980 (_initialize_frame): Add command to set backtrace_past_entry flag.
981 * defs.h (inside_entry_func): Remove prototype.
983 2004-11-10 Mark Kettenis <kettenis@gnu.org>
985 * dwarf2read.c: Fix formatting.
987 2004-11-10 Andrew Cagney <cagney@gnu.org>
989 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
990 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
991 macros with function declarations.
992 * value.c (coerce_ref, coerce_array, coerce_number)
993 (coerce_enum): New functions.
994 (value_as_long, value_as_address): Update.
995 * ada-lang.c (ada_coerce_ref, ada_value_binop)
996 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
997 * jv-lang.c (evaluate_subexp_java): Update.
998 * valarith.c (value_less, value_neg, value_complement)
999 (value_binop, value_add, value_subscript, value_x_binop)
1000 (value_logical_not, value_sub): Update.
1001 * valops.c (check_field, value_struct_elt, value_ind)
1002 (value_find_oload_method_list, value_cast, value_assign): Update.
1003 * eval.c (evaluate_subexp_standard): Update.
1005 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1007 * mips-tdep.c (mips32_relative_offset): Change return type to
1008 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1010 2004-11-10 Randolph Chung <tausq@debian.org>
1012 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1013 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1014 (hppa_fetch_pointer_argument): Likewise.
1015 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1016 deprecated_read_memory_nobpt.
1017 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1018 add_set_cmd sequence with add_setshow_boolean_cmd.
1020 2004-11-09 Andrew Cagney <cagney@gnu.org>
1022 GDB 6.3 released from GDB 6.3 branch.
1024 2004-11-09 Andrew Cagney <cagney@gnu.org>
1026 * values.c: Rename to ...
1027 * value.c: ..., new file.
1028 * Makefile.in: Update.
1030 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1032 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1035 2004-11-09 Andrew Cagney <cagney@gnu.org>
1039 * value.h (struct value): Delete field bfd_section.
1040 (VALUE_BFD_SECTION): Delete macro.
1041 (COERCE_REF): Update.
1042 (value_at, value_at_lazy): Delete asection parameter.
1043 * printcmd.c (print_formatted, x_command): Update.
1044 (do_examine): Delete asection parameter.
1045 (next_section): Delete variable.
1046 * valops.c (value_cast, value_at, value_at_lazy)
1047 (value_coerce_function, value_addr, value_ind, value_string)
1048 (find_rt_vbase_offset, value_full_object): Update.
1049 * hpacc-abi.c (hpacc_virtual_fn_field)
1050 (hpacc_value_rtti_type): Update.
1051 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1052 (gnuv3_baseclass_offset): Update.
1053 * f-valprint.c (f_val_print): Update.
1054 * c-valprint.c (c_val_print): Update.
1055 * p-valprint.c (pascal_val_print): Update.
1056 * jv-valprint.c (java_value_print): Update.
1057 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1058 * ada-lang.c (ada_value_primitive_packed_val)
1059 (ada_evaluate_subexp): Update.
1060 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1061 * expprint.c (print_subexp_standard): Update.
1062 * infcall.c (call_function_by_hand): Update.
1063 * valarith.c (value_add): Update.
1064 * eval.c (evaluate_subexp_standard): Update.
1065 * values.c (allocate_value, value_copy, value_static_field): Update.
1066 * findvar.c (read_var_value, locate_var_value): Update.
1068 2004-11-09 Andrew Cagney <cagney@gnu.org>
1070 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1071 * Makefile.in: Update all dependencies.
1073 2004-11-08 Andrew Cagney <cagney@gnu.org>
1075 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1076 (sentinel_frame_unwinder): Add the prev_pc method.
1077 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1078 available. Do not handle the sentinel-frame case.
1079 * frame-unwind.h (frame_prev_register_ftype): Define.
1080 (struct frame_unwind): Add prev_pc;
1082 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1084 * configure.in: Check for ncurses/term.h.
1085 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1086 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1087 * tui/tui.c: Don't include term.h.
1088 * configure, config.in: Rebuilt.
1090 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1092 * m68kbsd-nat.c: Include "inf-ptrace.h".
1093 (_initialize_m68kbsd_nat): Fix pasto.
1094 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1096 2004-11-08 Randolph Chung <tausq@debian.org>
1098 * infrun.c (debug_infrun): New variable.
1099 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1100 (handle_inferior_event, keep_going): Likewise.
1101 (_initialize_infrun): Register "set debug infrun" command.
1103 2004-11-08 Andreas Schwab <schwab@suse.de>
1105 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1106 PTRACE_EVENT_VFORKDONE.
1107 (child_follow_fork): Adjust.
1109 2004-11-08 Andrew Cagney <cagney@gnu.org>
1111 * README: Refer to 6.3, not 6.2, update directory listing droppng
1112 references to intl/ and mmalloc/.
1113 * PROBLEMS: Refer to 6.3 not 6.2.
1115 * PROBLEMS: Delete no-longer applicable problems.
1117 2004-11-07 Andrew Cagney <cagney@redhat.com>
1118 Daniel Jacobowitz <dan@debian.org>
1119 Roland McGrath <roland@redhat.com>
1121 * Makefile.in (symfile-mem.o): Update dependencies.
1122 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1123 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1124 * inf-ptrace.c (inf_ptrace_attach): Call
1125 observer_notify_inferior_created.
1126 * inftarg.c (child_attach): Likewise.
1127 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1128 (symbol_file_add_from_memory): Take NAME argument. Use it for
1129 the new BFD's filename.
1130 (add_symbol_file_from_memory_command): Update call to
1131 symbol_file_add_from_memory.
1132 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1133 (symbol_file_add_from_memory_wrapper): New.
1134 (_initialize_symfile_mem): Register add_vsyscall_page as an
1135 inferior_created observer.
1137 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1139 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1140 fetch_inferior_registers. Make static.
1141 (m68kbsd_store_inferior_registers): Rename from
1142 store_inferior_registers. Make static.
1143 (_initialize_m68kbsd_nat): Construct and add target vector.
1144 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1145 inftarg.o. Add inf-ptrace.o.
1146 (NAT_FILE): Set to tm-solib.h.
1147 (LOADLIBES): New variable.
1148 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1149 inftarg.o. Add inf-ptrace.o.
1150 (NAT_FILE): Delete variable.
1151 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1152 inftarg.o. Add inf-ptrace.o.
1153 (NAT_FILE): Set to tm-solib.h.
1154 * config/m68k/nm-nbsdaout.h: Remove file.
1156 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1158 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1159 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1160 (dwarf2_signal_frame_unwind): New.
1161 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1162 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1164 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1166 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1168 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1169 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1170 to only include the structure members we actually need.
1171 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1172 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1173 only include the structure members we actually need.
1174 (mipsnbsd_init_abi): Update.
1176 * mips64obsd-nat.c: Include "mips-tdep.h".
1177 (MIPS64OBSD_NUM_REGS): Remove define.
1178 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1179 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1180 floating-point registers correctly.
1181 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1183 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1185 (mips64obsd_sigframe_init): New function.
1186 (mips64obsd_sigframe): New variable.
1187 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1189 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1191 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1193 * alpha-mdebug-tdep.c: #include mdebugread.h.
1194 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1195 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1197 2004-11-05 Andrew Cagney <cagney@gnu.org>
1199 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1200 CFI and the init_reg method leave the register unspecified.
1201 Include the register name in the "Incomplete CFI data" complaint.
1202 Supress leading zeros in the address.
1204 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1206 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1207 skipping a personality routine in a CIE augmentation.
1209 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1211 * defs.h (fatal, vfatal): New function prototypes.
1212 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1214 (backtrace_command): Change to call backtrace_command_stub via
1215 catch_errors instead of calling backtrace_command_1 directly.
1216 (backtrace_full_command): Ditto.
1217 * utils.c (error_stream_1): New static function.
1218 (verror): Change to call error_stream_1 instead of error_stream.
1219 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1220 (vfatal, fatal): New functions.
1222 2004-11-05 Andrew Cagney <cagney@gnu.org>
1224 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1225 when not using selected frame.
1227 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1229 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1230 personality routine in a CIE augmentation.
1232 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1234 * stack.c (set_current_sal_from_frame): New function.
1235 (print_args_stub): Use it.
1236 (print_frame_info): Don't set sal here.
1238 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1240 * dwarf2-frame.c (read_encoded_value): Change type of third
1241 argument to `unsigned char *'. Add support for LEB128 encodings.
1243 2004-11-04 Jim Blandy <jimb@redhat.com>
1245 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1246 prevent cross-objfile references.
1247 (make_cv_type): Doc fix. Don't create cross-objfile references,
1248 even for stub types.
1249 (replace_type): Add assertion to prevent cross-objfile references.
1250 (check_typedef): Never resolve a stub type by copying over a type
1253 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1255 * Makefile.in (m32r-tdep.o): Update dependencies.
1256 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1257 ABI-specific overrides.
1259 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1261 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1262 unnecessary parallel execution bit.
1263 (m32r_memory_remove_breakpoint): Ditto.
1264 (m32r_breakpoint_from_pc): Update.
1266 2004-11-03 Randolph Chung <tausq@debian.org>
1268 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1269 frame_func_unwind to locate the unwind entry.
1270 (hppa_frame_this_id): Likewise.
1272 2004-11-03 Andrew Cagney <cagney@gnu.org>
1274 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1275 packet, obsolete configurations, end-of-life deprecated_registers.
1277 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1279 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1280 encodings as well as unsigned encodings.
1282 2004-11-02 Andrew Cagney <cagney@gnu.org>
1284 * value.h (COERCE_VARYING_ARRAY): Delete.
1285 * valops.c (value_cast, value_slice): Delete use.
1286 * valarith.c (value_subscript, value_concat): Delete use.
1288 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1290 * NEWS: GDB understands GNAT Ada.
1292 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1294 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1295 (amd64-sol2-tdep.o): Add dependencies.
1296 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1297 config/i386/sol2-64.mt: New files.
1298 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1299 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1300 (supply_gregset): Correct order of arguments to
1301 amd64_supply_native_gregset.
1302 (fill_gregset): Correct order of arguments to
1303 amd64_collect_native_gregset.
1304 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1305 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1306 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1307 for definition of NEW_PROC_API.
1308 * configure: Regenerate.
1310 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1312 * MAINTAINERS (Write After Approval): Add myself.
1314 2004-11-01 Andrew Cagney <cagney@gnu.org>
1316 * configure.tgt: Mark d10v-*-* as obsolete.
1317 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1319 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1321 * values.c (modify_field): Correct handling of bit-fields that
1322 don't fit in 32 bits. Use unsigned operations throughout and
1323 simplify the code a bit. Document preconditions.
1325 2004-10-31 Andrew Cagney <cagney@gnu.org>
1327 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1328 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1329 (in_plt_section): Delete.
1331 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1332 (mips_gdbarch_init): Do not set same.
1334 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1335 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1337 * gdbarch.sh (in_solib_call_trampoline): Delete.
1338 * gdbarch.h, gdbarch.c: Re-generate.
1340 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1341 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1342 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1343 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1344 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1346 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1348 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1349 (mipsnbsd_fetch_inferior_registers): Rename from
1350 fetch_inferior_registers. Make static.
1351 (mipsnbsd_store_inferior_registers): Rename from
1352 store_inferior_registers. Make static.
1353 (_initialize_mipsnbsd_nat): New function and prototype.
1354 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1355 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1356 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1359 2004-10-31 Andrew Cagney <cagney@gnu.org>
1361 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1362 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1363 delete corresponding unused function.
1364 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1365 in_solib_call_trampoline.
1366 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1367 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1368 * config/mips/tm-nbsd.h: Ditto.
1369 * config/arm/tm-linux.h: Ditto.
1370 * config/mips/tm-linux.h: Ditto.
1372 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1373 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1374 in_solib_call_trampoline, delete corresponding unused function.
1375 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1376 (vaxnbsd_aout_init_abi): Ditto.
1377 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1378 (sparc32nbsd_aout_init_abi): Ditto.
1379 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1380 (ppc_linux_init_abi): Ditto.
1381 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1382 (ns32knbsd_init_abi_aout): Ditto.
1383 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1384 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1385 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1386 (m68kbsd_aout_init_abi): Ditto.
1387 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1388 (i386_cygwin_init_abi): Ditto.
1389 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1390 (i386bsd_init_abi): Ditto.
1392 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1393 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1394 isn't used by this architecture.
1395 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1396 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1397 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1398 * s390-tdep.c (s390_gdbarch_init): Ditto.
1399 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1400 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1401 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1402 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1403 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1404 * amd64-tdep.c (amd64_init_abi): Ditto.
1406 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1407 in_solib_call_trampoline to its default value of
1408 generic_in_solib_call_trampoline.
1409 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1410 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1411 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1412 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1413 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1414 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1416 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1418 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1420 * config/mips/tm-mips.h: Delete file.
1421 * remote-mips.c: Delete tm-mips.h from comment.
1422 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1423 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1424 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1425 * config/mips/tm-linux.h: Don't include tm-mips.h.
1426 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1427 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1428 * config/mips/tm-wince.h: Don't include.
1430 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1431 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1432 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1433 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1435 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1436 * mdebugread.c (ecoff_relocate_efi): Delete function.
1437 * objfiles.c (objfile_relocate): Delete #ifdef
1438 MDEBUG_EFI_SYMBOL_NAME code.
1440 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1441 Andrew Cagney <cagney@gnu.org>
1443 * gdbarch.sh (single_step_through_delay): Add.
1444 * gdbarch.h, gdbarch.c: Re-generate.
1445 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1446 (mips_step_skips_delay): Delete.
1447 * mips-tdep.c (mips_single_step_through_delay): Replace
1448 mips_step_skips_delay.
1449 (mips_gdbarch_init): Set single_step_through_delay.
1450 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1452 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1454 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1455 from TRAMP_FRAME frame type.
1457 2004-10-31 Andrew Cagney <cagney@gnu.org>
1459 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1461 * mips-tdep.c (mips_ignore_helper): Delete.
1462 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1463 * infrun.c (handle_inferior_event): Delete #ifdef
1464 DEPRECATED_IGNORE_HELPER_CALL code.
1466 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1468 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1470 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1471 (fill_fpregset): Do not compile for 64-bit systems.
1472 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1473 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1474 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1476 2004-10-30 Andrew Cagney <cagney@gnu.org>
1478 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1479 (struct mdebug_extra_func_info): Define.
1480 * config/alpha/tm-alpha.h: Delete same.
1481 * config/mips/tm-mips.h: Delete same.
1482 * mdebugread.c: Delete same.
1483 * Makefile.in: Update dependencies.
1484 * mips-mdebug-tdep.c: Include "mdebugread.h".
1486 * objfiles.c: Include "mdebugread.h".
1487 * mdebugread.c: Include "mdebugread.h".
1488 (ecoff_relocate_cfi): Delete.
1489 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1490 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1491 * mdebugread.h (ecoff_relocate_efi): New file.
1492 * Makefile.in: Update dependencies.
1494 * mips-tdep.c (struct frame_extra_info): Delete.
1495 (temp_proc_desc): Delete.
1497 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1498 MIPS_EFI_SYMBOL_NAME.
1499 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1500 (struct mdebug_extra_func_info): Replace struct
1501 alpha_extra_func_info and alpha_extra_func_info_t.
1502 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1503 MIPS_EFI_SYMBOL_NAME.
1504 (struct mdebug_extra_func_info): Replace struct
1505 alpha_extra_func_info and alpha_extra_func_info_t.
1506 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1507 * mdebugread.c, alpha-mdebug-tdep.c:
1509 Suggested by Mark Kettenis.
1510 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1511 fields frame_adjust and high_addr.
1512 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1513 (non_heuristic_proc_desc): Delete references.
1515 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1516 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1517 * mips-tdep.c: Update.
1519 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1520 (MIPS_LAST_EMBED_REGNUM): Add.
1521 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1522 (LAST_EMBED_REGNUM): Delete.
1523 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1525 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1526 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1527 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1528 * mips-linux-nat.c: Update.
1530 * mips-tdep.h: Add comments on registers.
1531 (MIPS_UNUSED_REGNUM): Define.
1532 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1533 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1534 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1535 * mips-linux-nat.c, remote-mips.c: Update.
1537 * config/mips/tm-mips.h (t_insn): Delete.
1538 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1539 Replace t_insn with ULONGEST.
1541 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1543 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1544 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1545 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1546 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1547 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1548 (mipsnbsd_core_osabi_sniffer): New function.
1549 (mipsnbsd_init_abi): Set regset_from_core_section.
1550 (_initialize_mipsnbsd_tdep): Remove calls to
1551 deprecated_add_core_fns.
1552 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1553 (mipsnbsd_regset_from_core_section): New functions.
1554 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1555 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1557 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1558 Remove optimization for DEPRECATED_FP_REGNUM.
1560 2004-10-30 Andrew Cagney <cagney@gnu.org>
1562 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1563 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1564 (alpha_setup_arbitrary_frame): Delete.
1565 * mips-tdep.c (setup_arbitrary_frame): Delete.
1566 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1567 (setup_arbitrary_frame): Delete.
1568 * stack.c (parse_frame_specification_1): When specified, call
1569 create_new_frame with two parameters. Delete #ifdef
1570 SETUP_ARBITRARY_FRAME.
1572 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1573 (MIPS_INSTLEN): Delete.
1574 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1575 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1576 * remote-mips.c, mips-tdep.c: Update.
1578 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1579 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1580 * mips-tdep.c (mips_mdebug_frame_cache)
1581 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1582 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1583 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1584 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1585 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1586 (mips_gdbarch_init): Do not append mdebug sniffers.
1587 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1588 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1589 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1590 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1591 * Makefile.in: Update dependencies.
1593 * mips-tdep.h (mips_abi_regsize): Declare.
1594 * mips-tdep.c (mips_abi_regsize): Make non-static.
1596 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1597 (make_mips16_addr): Delete.
1599 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1601 * i386-sol2-nat.c: New file.
1602 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1604 (i386-sol2-nat.o): Update dependencies.
1605 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1608 2004-10-30 Andrew Cagney <cagney@gnu.org>
1610 Total breakage identified by Joel Brobecker.
1611 * mips-tdep.c (after_prologue): Delete.
1612 (mips_skip_prologue): Use skip_prologue_using_sal.
1613 (heuristic_proc_desc): Delete, unused.
1615 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1617 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1618 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1619 Cleanup coding style.
1621 2004-10-30 Andrew Cagney <cagney@gnu.org>
1623 * mips-tdep.h (mips_pc_is_mips16): Declare.
1624 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1625 non-static. Update calls.
1627 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1628 * command.h (add_setshow_enum_cmd): Declare.
1629 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1631 * mips-tdep.c (_initialize_mips_tdep): Use
1632 add_setshow_zinteger_cmd.
1634 * mips-tdep.c (mips_eabi_extract_return_value)
1635 (mips_o64_extract_return_value, mips_o64_store_return_value)
1636 (return_value_location, mips_eabi_reg_struct_has_addr)
1637 (mips_eabi_use_struct_convention)
1638 (mips_eabi_store_return_value): Delete.
1639 (mips_eabi_store_return_value): New function.
1640 (mips_eabi_return_value): New function.
1641 (mips_gdbarch_init): For O64 and EABI, delete
1642 extract_return_value, store_return_value, use_struct_convention
1643 and reg_struct_has_addr, add return_value.
1645 * mips-tdep.c (read_signed_register): Use
1646 regcache_cooked_read_signed.
1648 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1650 * mipsread.c: Cleanup coding style.
1651 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1652 (mipscoff_symfile_finish): Remove prototypes.
1654 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1656 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1657 (mips_mdebug_frame_cache, mips16_scan_prologue)
1658 (mips32_scan_prologue, mips_stub_frame_cache)
1659 (heuristic_proc_start, heuristic_proc_desc)
1660 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1661 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1662 (mips_o32_return_value, mips_o64_push_dummy_call)
1663 (mips_step_skips_delay, mips_skip_trampoline_code)
1664 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1665 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1666 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1667 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1668 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1669 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1670 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1671 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1672 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1673 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1675 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1676 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1678 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1680 * mipsnbsd-nat.c: Include "mips-tdep.h".
1681 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1682 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1684 2004-10-29 Andrew Cagney <cagney@gnu.org>
1686 * stack.c (parse_frame_specification_1): New function based on
1687 parse_frame_specification. Add message and selected_frame_p
1688 paramters. Truely always return non-NULL.
1689 (parse_frame_specification): Call parse_frame_specification_1.
1690 (frame_info): Update. Eliminate target_has_stack check.
1691 (select_frame_command): Update.
1693 2004-10-29 Andrew Cagney <cagney@gnu.org>
1695 * frame.h (get_selected_frame): Add message parameter.
1696 * frame.c (get_selected_frame): Add and use message parameter.
1697 * stack.c (current_frame_command, return_command, locals_info)
1698 (catch_info, args_info, up_silently_base, down_silently_base): Use
1699 get_selected_frame with an explicit message.
1700 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1701 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1702 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1703 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1704 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1705 * breakpoint.c: Update.
1707 2004-10-29 Andrew Cagney <cagney@gnu.org>
1709 * trad-frame.c (trad_frame_get_prev_register): Use
1710 frame_unwind_register instead of frame_register_unwind, do not
1711 recurse the register's location.
1712 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1713 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1714 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1715 * sh-tdep.c (sh_frame_prev_register): Ditto.
1716 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1717 * i386-tdep.c (i386_frame_prev_register): Ditto.
1718 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1719 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1721 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1723 * proc-events.c: Fix several coding-style issues. Consistently
1724 use #ifdef instead of #if defined().
1725 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1727 (_initialize_proc_events): New prototype.
1729 * proc-why.c: Fix several coding-style issues.
1730 (proc_prettyfprint_why): Use ARRAY_SIZE.
1732 2004-10-27 Jim Blandy <jimb@redhat.com>
1734 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1735 manner independent of the host byte order.
1737 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1739 * mips-tdep.c (id_delayed): Remove prototype.
1741 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1743 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1744 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1745 to enum with register numbers.
1746 (enum mips_insn_size): New enum.
1748 2004-10-26 Andrew Cagney <cagney@gnu.org>
1750 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1751 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1752 (mips_gdbarch_init): Update.
1753 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1755 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1756 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1757 IN_SOLIB_RETURN_TRAMPOLINE.
1758 * mips-tdep.c (mips_dump_tdep): Do not print
1759 IN_SOLIB_RETURN_TRAMPOLINE.
1760 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1761 (mips_gdbarch_init): Update.
1763 * mips-tdep.h (mips_software_single_step): Move to here ...
1764 * config/mips/tm-mips.h: ... from here.
1765 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1766 (SOFTWARE_SINGLE_STEP): Delete.
1767 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1769 2004-10-25 Andrew Cagney <cagney@gnu.org>
1771 * NEWS: Add Changes since GDB 6.3 section.
1773 2004-10-23 Andreas Schwab <schwab@suse.de>
1775 * ada-lang.c (grow_vect): Return the new array instead of
1776 expecting pointer to pointer to avoid violation of aliasing rules.
1777 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1779 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1781 * s390-tdep.c (enum pv_boolean): Remove.
1782 (pv_is_array_ref): Remove.
1783 (s390_on_stack): Remove.
1784 (S390_NUM_SPILL_SLOTS): Remove.
1785 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1786 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1787 (s390_store): Track all stores of orginal incoming registers to the
1788 stack constant offsets relative to the CFA, instead of only tracking
1789 stores into specific spill slots.
1790 (s390_load): Likewise.
1791 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1792 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1793 defined as call-saved by the ABI.
1794 (s390_push_dummy_call): Use bottom of dummy call argument save area
1795 as return value, not the top. Do not store to the called function's
1797 (s390_unwind_dummy_id): Adapt accordingly.
1799 2004-10-23 Andrew Cagney <cagney@gnu.org>
1801 * objfiles.h (struct objfile): Rename obj_private to
1802 deprecated_obj_private, sym_private to deprecated_sym_private, and
1803 sym_stab_info to deprecated_sym_stab_info.
1804 * gdb-stabs.h: Update.
1805 * elfread.c: Update.
1806 * dbxread.c: Update.
1807 * coffread.c: Update.
1808 * xcoffread.c: Update.
1809 * symfile.c: Update.
1810 * somread.c: Update.
1811 * nlmread.c: Update.
1812 * mdebugread.c: Update.
1814 * coffread.c: Update.
1816 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1818 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1819 * configure.host: Add mips64*-*-openbsd*.
1820 * configure.tgt: Add mips64*-*-openbsd*.
1821 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1823 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1824 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1826 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1828 * symtab.c (symbol_search_name): Minor reformatting.
1830 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1832 * symtab.h: Fix typo in comment.
1834 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1836 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1837 (dwarf_decode_line_header): Likewise.
1839 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1841 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1843 2004-10-19 Andrew Cagney <cagney@gnu.org>
1845 GDB 6.3 branch created.
1846 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1848 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1850 * dwarf2read.c (set_cu_language): Set language to Ada for
1851 DW_LANG_Ada83 and DW_LANG_Ada95.
1853 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1855 From Andreas Schwab <schwab@suse.de>:
1856 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1857 for xmalloc and xrealloc.
1859 2004-10-15 Andrew Cagney <cagney@gnu.org>
1861 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1862 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1863 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1864 Update dependencies.
1866 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1868 * ada-lang.c (ada_lookup_symbol): Correct comment.
1869 (ada_evaluate_subexp): Change error message for
1870 OP_FUNCALL case so as not to indicate an internal error.
1872 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1874 Committed by Paul Hilfinger.
1875 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1876 type sizes in XVE/XVU types, and emit a warning when that happens,
1877 instead of rounding up the size of the resulting type.
1878 Some minor reformatting.
1879 (ada_is_aligner_type): Do not consider a type as an aligner type
1880 if there is a corresponding XVS type as well.
1881 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1882 have several levels of pointer indirection to the array.
1884 2004-10-15 Jerome Guitton <guitton@gnat.com>
1886 Committed by Paul Hilfinger.
1887 * ada-lang.c (check_size): New function.
1888 (coerce_unspec_val_to_type): call check_size to make sure
1889 that the object size is reasonable.
1890 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1891 Implements the case when we get a reference when we evaluate
1892 the expression of one of the bounds of the slice.
1893 (ada_value_struct_elt): when a packed array field is
1894 a reference, use ada_coerce_ref to dereference it; use
1895 ada_value_ind only if it is a pointer.
1897 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1899 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1900 a bit to avoid the necessity of an advance declaration. Remove
1902 (set_reg_offset): Move implemenation up.
1903 (mips16_get_imm): Likewise.
1904 (mips16_scan_prologue): Likewise.
1905 (reset_saved_regs): Likewise.
1906 (mips32_scan_prologue): Likewise.
1908 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1910 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1911 Remove sp as a parameter, compute it internally instead. Move
1912 prologue scanning limit from heuristic_proc_desc to here.
1913 (mips16_scan_prologue): Likewise.
1914 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1915 by call to mips16_scan_prologue.
1916 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1917 by call to mips32_scan_prologue.
1918 (heuristic_proc_desc): Remove code that's no longer necessary.
1919 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1920 (mips_skip_prologue): Update calls to mips16_scan_prologue
1921 and mips32_scan_prologue.
1923 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1925 * mips-tdep.c (mips16_scan_prologue): Merge code from
1926 mips16_skip_prologue. Now return the address of the first
1927 instruction past the function prologue.
1928 (mips16_skip_prologue): Remove, no longer necessary.
1929 (mips_skip_prologue): Replace call to mips16_skip_prologue
1930 by call to mips16_scan_prologue.
1932 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1934 * mips-tdep.c (mips32_scan_prologue): Merge code from
1935 mips32_skip_prologue. Now return the address of the first
1936 instruction past the function prologue.
1937 (mips32_skip_prologue): Remove. No longer necessary.
1938 (mips16_skip_prologue): Add parameter end_pc instead of
1940 (mips_skip_prologue): Compute the upper limit for the
1941 prologue scanning. Update call to mips16_skip_prologue.
1942 Replace call to mips32_skip_prologue by call to
1943 mips32_scan_prologue.
1945 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1947 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1948 NetBSD system call stubs that store %rp in the ERP slot of the
1951 * source.c: Always define O_BINARY to 0 if not defined already.
1952 (openp): Unconditionally use O_BINARY.
1954 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1955 * event-top.c (gdb_readline2): Likewise.
1957 2004-10-14 Orjan Friberg <orjanf@axis.com>
1959 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1960 deprecated_add_core_fns which was removed by mistake.
1962 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1964 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1965 references to deprecated_registers[] with equivalent code.
1967 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1969 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1970 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1971 instead of explicit test and print statement.
1973 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1975 * sparc-nat.c: Include "inf-ptrace.h".
1976 (sparc_target): New function.
1977 * sparc-nat.h: Update copyright year.
1978 (sparc_target): New prototype.
1979 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1980 (_initialize_sparcnbsd_nat): Construct and add target vector.
1981 * sparc64nbsd-nat.c: Include "target.h".
1982 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1983 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1984 Update dependencies.
1985 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1986 inftarg.o, add inf-ptrace.o.
1987 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1988 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1989 (NAT_FILE): Set to nm-bsd.h.
1990 (LOADLIBES): New variable.
1991 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1992 infarg.o, add inf-ptrace.o.
1993 * config/sparc/nm-nbsdaout.h: Remove file.
1994 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1995 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1996 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1998 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1999 "fopen-same.h". Update comment.
2001 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2003 * i386gnu-nat.c: Include "gdb_string.h".
2004 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2005 registers when the floating-point state isn't initialized.
2006 * Makefile.in (i386gnu-nat.o): Update dependencies.
2008 2004-10-11 David Anderson <davea@sgi.com>
2010 * regcache.c (regcache_raw_read): Comment was missing "to".
2011 Extraneous ' removed.
2012 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2013 comment now describes use.
2015 2004-10-11 Orjan Friberg <orjanf@axis.com>
2017 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2018 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2019 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2020 (cris_sigtramp_frame_sniffer): New functions.
2021 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2022 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2023 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2024 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2025 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2027 (cris_version_update): Remove, replace with ...
2028 (set_cris_version): New function.
2029 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2030 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2031 (_initialize_cris_tdep): Remove CRIS mode command.
2032 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2033 cris-fpless-backtrace command.
2034 (cris_scan_prologue): Fix prologue scanning limit.
2035 (cris_register_type): Update to reflect actual registers.
2036 (cris_register_bytes_ok) Remove.
2037 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2038 Remove set_gdbarch_deprecated_register_size,
2039 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2041 2004-10-10 Andrew Cagney <cagney@gnu.org>
2043 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2046 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2048 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2050 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2052 * mips-tdep.c (mips16_scan_prologue): Renames
2053 mips16_heuristic_proc_desc. Update comment.
2054 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2055 (heuristic_proc_desc): Update calls to the 2 functions above.
2057 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2059 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2060 Update comments. Also immediately return empty cache when the start
2061 address of our function could not be found.
2062 (mips_insn32_frame_cache): Likewise.
2064 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2066 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2067 (mips_insn16_frame_cache): Pass frame cache in call to
2068 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2069 Remove code that became redundant as a consequence.
2070 (mips32_heuristic_proc_desc): No longer compute a fake
2071 procedure descriptor. Compute the full frame cache instead.
2072 Some minor comment reformatting.
2074 2004-10-10 Jim Blandy <jimb@redhat.com>
2076 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2077 reader, tracing bytecode stuff): Remove self.
2079 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2081 * sparc64-linux-tdep.c: Update copyright year. Don't include
2083 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2084 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2085 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2087 * sparc-linux-tdep.c: Update copyright year.
2088 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2089 to struct frame_info *. Use safe_frame_unwind_memory instead of
2090 deprecated_read_memory_nobpt.
2091 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2092 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2093 changed signature of sparc_linux_sigtramp_start.
2094 (sparc32_linux_pc_in_sigtramp): Remove function.
2095 (sparc32_linux_sigtramp_p): New function.
2096 (sparc32_linux_sigtramp_frame_sniffer): Use
2097 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2099 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2101 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2103 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2104 (decode_packed_array_type, value_subscript_packed)
2105 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2106 argument in call to lim_warning.
2108 * configure.in: Really disable the TUI if an enhanced curses
2109 library isn't found.
2110 * configure: Regenerate.
2112 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2114 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2115 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2116 * config/i386/nm-nbsdaout.h: Remove file.
2117 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2118 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2119 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2120 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2121 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2122 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2123 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2124 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2125 (ldd, ld_un, ld_2): Remove defines.
2126 * config/i386/nm-obsd.h: Likewise.
2128 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2130 * ada-lex.l: Remove useless rule whose right-context clause
2131 causes unreferenced static function warning for yyrealloc.
2132 (ada_flex_use): Remove the artificial reference to yyrealloc.
2134 2004-10-08 Andrew Cagney <cagney@gnu.org>
2136 * target.h (struct target_ops): Rename to_xfer_memory to
2137 deprecated_xfer_memory.
2139 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2141 * win32-nat.c: Update.
2142 * v850ice.c: Update.
2143 * uw-thread.c: Update.
2144 * thread-db.c: Update.
2145 * sol-thread.c: Update.
2147 * remote-vx.c: Update.
2148 * remote-st.c: Update.
2149 * remote-sim.c: Update.
2150 * remote-sds.c: Update.
2151 * remote-rdp.c: Update.
2152 * remote-rdi.c: Update.
2153 * remote-mips.c: Update.
2154 * remote-m32r-sdi.c: Update.
2155 * remote-e7000.c: Update.
2157 * ppc-bdm.c: Update.
2158 * nto-procfs.c: Update.
2159 * monitor.c: Update.
2160 * linux-nat.c: Update.
2161 * inftarg.c: Update.
2162 * hpux-thread.c: Update.
2163 * go32-nat.c: Update.
2164 * gnu-nat.c: Update.
2166 * corelow.c: Update.
2167 * bsd-kvm.c: Update.
2168 * aix-thread.c: Update.
2170 2004-10-08 Andrew Cagney <cagney@gnu.org>
2172 * target.c (debug_target): Move to near start of file.
2173 (target_stopped_data_address_p): Re-org logic, add casts.
2175 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2177 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2178 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2179 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2180 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2183 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2185 * target.h (to_stopped_data_address): Change prototype to
2186 take a CORE_ADDR pointer and return an int.
2187 * target.c (update_current_target): Change to_stopped_data_address
2188 to match new prototype.
2189 (debug_to_stopped_data_address): Change appropriately.
2190 * breakpoint.c (bpstat_stop_status): Change call to
2191 target_stopped_data_address to use new prototype.
2192 * frv-tdep.c (frv_have_stopped_data_address): New function.
2193 (frv_stopped_data_address): Change to new prototype and
2195 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2196 prototype and functionality.
2197 (ia64_stopped_by_watchpoint): New function.
2198 * i386-nat.c (i386_stopped_data_address): Change to new
2199 prototype and functionality.
2200 (i386_stopped_by_watchpoint): New function.
2201 * remote.c (remote_stopped_data_address): Change to new prototype
2203 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2204 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2205 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2206 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2207 new i386_stopped_by_watchpoint function.
2208 (i386_stopped_by_watchpoint): New prototype.
2209 (i386_stoppped_data_address): Change to new prototype.
2210 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2211 new ia64_stopped_by_watchpoint function.
2212 (ia64_stopped_by_watchpoint): New prototype.
2213 (ia64_stopped_data_address): Ditto.
2215 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2217 * ada-typeprint.c (ada_print_type): Use int_string for printing
2218 modulus of modular type.
2219 * ada-lang.h (ada_modulus): Change return type to unsigned.
2220 * ada-lang.c (ada_language_arch_info): Correct type of
2222 (ada_modulus): Return unsigned result.
2223 (ada_lookup_symbol): Remove user disambiguation and modify comment
2226 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2228 Committed by Paul Hilfinger.
2229 * ada-lang.c (decode_packed_array): On big-endian targets,
2230 left-justify the value if it comes with a modular type.
2232 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2234 Committed by Paul Hilfinger.
2235 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2236 (is_name_suffix): Add support for "___JM" suffixes.
2237 (ada_check_typedef): Renames ada_completed_type.
2238 Update all users of CHECK_TYPEDEF, check_typedef, and
2239 ada_complete_type to call ada_check_typedef.
2240 * ada-typeprint.c: Likewise.
2241 * ada-valprint.c: Likewise.
2243 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2245 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2247 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2249 * MAINTAINERS: Update e-mail address.
2251 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2253 From Maciej W. Rozycki <macro@mips.com>:
2254 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2255 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2257 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2259 * m32r-tdep.c (decode_prologue): Support functions written
2260 in assembler language. Recognize trap instructions as the
2262 (m32r_frame_unwind_cache): Ditto.
2263 (m32r_skip_prologue): Extend search limit. Quit analyzing
2264 prologue if pc's location is not readable.
2266 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2268 * Makefile.in (.l.c): Do conversions of names of alloc and free
2269 functions that are done for .y.c files, plus special one
2270 for yy_flex_realloc. Also, correct missing-file tests here.
2271 * ada-lex.l (malloc, free): Remove macros.
2272 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2274 (ada_flex_use): Dummy definition to remove warnings about unused
2276 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2277 to suppress warning.
2279 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2281 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2283 (sh_return_value_fpu): Ditto for CPUs with FPU.
2284 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2285 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2286 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2287 RETURN_VALUE functions.
2289 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2291 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2292 (sh_pseudo_register_write): Ditto.
2294 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2296 * sh-tdep.c (IS_MACL_STS): New define.
2298 (IS_MACL_LDS): Ditto.
2299 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2300 instructions in prologue.
2301 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2302 instructions in epilogue.
2304 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2306 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2307 (sh_sh_register_name): Add eight empty register names.
2308 (sh_sh3_register_name): Ditto.
2309 (sh_sh3e_register_name): Ditto.
2310 (sh_sh2e_register_name): Ditto.
2311 (sh_sh2a_register_name): New function, defining SH2A register set.
2312 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2314 (sh_sh_dsp_register_name): Add eight empty register names.
2315 (sh_sh3_dsp_register_name): Ditto.
2316 (sh_sh4_register_name): Ditto.
2317 (sh_sh4_nofpu_register_name): Ditto.
2318 (sh_sh4al_dsp_register_name): Ditto.
2319 (sh2a_show_regs): New function.
2320 (sh2a_nofpu_show_regs): New function.
2321 (sh_sh2a_register_type): New function.
2322 (do_bank_register_info): New function.
2323 (sh_print_pseudo_register): Call do_bank_register_info.
2324 Call sh_print_pseudo_register for valid "bank" register.
2325 (sh_sh2a_register_sim_regno): New function.
2326 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2327 Increment pseudo register count by one for all sh variants with
2328 pseudo registers to accomodate pseudo bank register.
2329 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2330 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2331 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2332 Increment pseudo register numbers.
2334 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2336 * dwarf2read.c (read_subroutine_type): Call make_function_type
2337 instead of lookup_function_type.
2339 2004-10-05 Jim Blandy <jimb@redhat.com>
2341 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2342 (Previous change missed some uses.)
2344 2004-10-05 Andrew Cagney <cagney@gnu.org>
2346 * target.h (deprecated_child_ops): Rename child_ops.
2347 * wince.c: Update copyright. Rename child_ops.
2348 * win32-nat.c: Rename child_ops.
2349 * target.c: Rename child_ops.
2350 * rs6000-nat.c: Rename child_ops.
2351 * linux-nat.c: Rename child_ops.
2352 * infttrace.c: Rename child_ops.
2353 * inftarg.c: Rename child_ops.
2354 * infptrace.c: Rename child_ops.
2355 * hppah-nat.c: Update copyright. Rename child_ops.
2356 * hpux-thread.c: Update copyright. Rename child_ops.
2358 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2360 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2362 2004-10-05 Andrew Cagney <cagney@gnu.org>
2364 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2366 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2368 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2369 (die_ref_table): Remove.
2370 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2371 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2372 the usage of this type.
2373 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2374 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2375 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2376 (dwarf2_create_include_psymtab): Update comment.
2377 (find_partial_die): Remove third argument. Remove unreachable call
2379 (dwarf2_find_containing_comp_unit): Update comments. Change one
2380 assertion to an error. Remove an unreachable error.
2381 (dwarf2_find_comp_unit): Update comments.
2382 (type_at_offset): Remove dead code.
2383 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2384 (store_in_ref_table): Add CU argument.
2385 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2386 inter-compilation-unit references.
2387 (load_full_comp_unit, process_full_comp_unit): New functions, based
2388 on psymtab_to_symtab_1.
2389 (psymtab_to_symtab_1): Use them.
2390 (dwarf2_add_dependence): New function.
2391 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2392 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2393 (partial_die_parent_scope, guess_structure_name): Update for changes
2394 to find_partial_die.
2395 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2396 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2397 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2398 (read_die_and_children): Update call to store_in_ref_table.
2399 (do_free_die_list_cleanup): Remove.
2400 (fixup_partial_die): Update for changes to find_partial_die.
2401 (read_full_die): Handle queueing absolute references.
2402 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2403 (dwarf2_attr, die_specification, die_type)
2404 (die_containing_type, dwarf2_extension): Update calls to
2406 (dump_die): Update DW_FORM_ref* handling.
2407 (dwarf2_get_ref_die_offset): Likewise.
2408 (free_one_comp_unit): Release the dies list.
2409 (dwarf2_mark_helper): New function.
2410 (dwarf2_mark): Use it.
2412 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2414 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2415 when writing to memory.
2417 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2419 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2420 (m32r_extract_struct_value_address): Delete function.
2421 (m32r_return_value): New function.
2422 (m32r_gdbarch_init): Instead of store_return_value,
2423 extract_return_value, deprecated_extract_struct_value_address
2424 and deprecated_use_struct_convention, set return_value.
2426 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2428 * dwarf2read.c (read_subrange_type): Add comment for variable
2431 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2433 * Makefile.in (.l.c): Modify rule for compatibility with recent
2434 versions of flex, and remove most command-line options.
2435 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2438 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2440 Turn on initial Ada support (mainly expression evaluation).
2442 * Makefile.in (SFILES): Remove ada-tasks.c.
2443 (HFILES_NO_SRCDIR): Add ada-lang.h.
2444 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2445 (YYOBJ): Add ada-exp.o.
2446 (rule .l.c): Generalize to not mention ada.
2447 * symtab.c: Include ada-lang.h.
2448 (symbol_natural_name, symbol_demangled_name)
2449 (symbol_search_name): Add Ada case.
2451 2004-10-01 Andrew Cagney <cagney@gnu.org>
2453 * Makefile.in (COMMON_OBS): Add inf-child.o.
2454 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2455 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2456 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2457 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2458 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2459 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2460 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2461 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2462 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2463 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2464 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2465 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2466 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2468 * target.c (xfer_using_stratum): Change return type to LONGEST.
2469 On each iteration offset, readbuf and writebuf.
2470 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2471 partial_length, and read/modify/write predicate, update comments.
2472 Pass buffer.word to ptrace write.
2474 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2476 * symfile.c (init_filename_language_table): Add extensions for
2478 * defs.h (enum language): Add language_ada.
2479 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2480 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2481 (add_symbols_from_enclosing_procs): Make a no-op for now.
2482 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2483 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2484 (find_line_in_linetable, find_next_line_in_linetable)
2485 (read_all_symtabs, is_plausible_func_for_line)
2486 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2487 (is_runtime_sym_defined, check_size): Remove declaration.
2488 (function_name_from_pc, ada_translate_error_message)
2489 (ada_lookup_minimal_symbol): Remove definition.
2490 (ada_add_block_symbols): Remove useless label.
2491 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2492 useless declaration.
2493 (ada_is_exception_sym): Likewise.
2495 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2497 Add m32r-linux support.
2498 * configure.tgt: Add m32r*-*-linux*.
2499 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2500 and m32r-linux-tdep.c.
2501 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2502 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2503 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2505 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2506 config/m32r/linux.mh, config/m32r/linux.mt,
2507 config/m32r/nm-linux.h: New files.
2509 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2511 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2512 (mips32_fetch_instruction): Remove, unused.
2514 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2516 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2517 conditions that will always be true.
2519 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2521 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2522 (vaxbsd_fetch_inferior_registers): Rename from
2523 fetch_inferior_registers. Make static.
2524 (vaxbsd_store_inferior_registers): Rename from
2525 store_inferior_registers. Make static.
2526 (_initialize_vaxbsd_nat): Construct and add target vector.
2527 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2528 inftarg.o. Add inf-child.o and inf-ptrace.o.
2529 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2530 inftarg.o. Add inf-child.o and inf-ptrace.o.
2532 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2533 inftarg.o. Add inf-child.o and inf-ptrace.o.
2535 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2537 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2538 (m88kbsd_fetch_inferior_registers): Rename from
2539 fetch_inferior_registers. Make static.
2540 (m88kbsd_store_inferior_registers): Rename from
2541 store_inferior_registers. Make static.
2542 (_initialize_m88kbsd_nat): New prototype and function.
2543 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2544 inftarg.o. Add inf-child.o and inf-ptrace.o.
2546 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2548 2004-09-30 Andrew Cagney <cagney@gnu.org>
2550 * target.c (target_xfer_partial): New function.
2551 (target_read_memory_partial, target_write_memory_partial)
2552 (default_xfer_partial, target_read_partial, target_write_partial)
2553 (xfer_using_stratum): Use.
2554 (debug_to_xfer_partial): Delete function.
2555 (setup_target_debug): Do not override to_xfer_partial.
2557 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2559 * fork-child.c: Update copyright year. Fix coding style.
2561 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2563 * defs.h (msavestring, mstrsave): Remove prototypes.
2564 * utils.c (msavestring, mstrsave): Remove functions.
2565 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2566 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2568 * source.c (find_and_open_source): Use xstrdup instead of
2571 2004-09-30 Andrew Cagney <cagney@gnu.org>
2573 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2574 (inf_ptrace_xfer_memory): Delete.
2575 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2576 (target_read_memory, target_write_memory): Use xfer_using_stratum
2577 when target_xfer_partial_p.
2578 (debug_target): Move to start of file.
2579 (target_read_memory_partial, target_write_memory_partial): Use
2580 to_xfer_partial when target_xfer_partial_p.
2582 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2583 inf_ptrace_xfer_memory with equivalent code.
2584 * inftarg.c (child_xfer_partial): When performing a write, pass
2585 writebuf to child_xfer_memory.
2587 * target.c (target_read_string): Use target_read_memory instead of
2590 2004-09-29 Andrew Cagney <cagney@gnu.org>
2592 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2593 the address of status.
2595 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2596 (kill_inferior): Inline ptrace_wait call.
2597 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2598 * inftarg.c (child_wait): Inline ptrace_wait call.
2600 * target.h (struct target_ops): Delete field to_post_wait.
2601 (target_post_wait): Delete macro.
2602 (child_post_wait): Delete declaration.
2603 * target.c (update_current_target, update_current_target)
2604 (debug_to_post_wait, setup_target_debug): Delete functions and
2606 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2607 * inftarg.c (child_post_wait): Delete.
2608 (init_child_ops): Do not set to_post_wait.
2609 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2610 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2611 * inf-child.c (inf_child_post_wait): Delete.
2612 (inf_child_target): Do not set to_post_wait.
2613 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2614 (inf_ptrace_target): Do not set to_post_wait.
2616 * wince.c (child_ops): Delete.
2617 * win32-nat.c (child_ops): Delete.
2619 * inftarg.c (inftarg_set_find_memory_regions)
2620 (inftarg_set_make_corefile_notes): Delete functions.
2621 (_initialize_linux_nat): Inline calls.
2623 * target.h (child_ops): Declare.
2624 * inftarg.c (child_ops): Move from here ...
2625 * target.c (child_ops): ... to here.
2626 * wince.c (child_ops): Delete extern declaration.
2627 * win32-nat.c (child_ops): Delete extern declaration.
2628 * linux-nat.c (child_ops): Delete extern declaration.
2629 * hpux-thread.c (child_ops): Delete extern declaration.
2631 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2633 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2635 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2637 * configure.in: Only set host_makefile_frag when building a native
2639 * configure: Regenerate.
2641 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2644 2004-09-28 Andrew Cagney <cagney@gnu.org>
2646 Problem identified by Paul Hilfinger.
2647 * Makefile.in (ada_lex_c): Define.
2648 (ada-lex.o): Delete rule.
2650 * linux-proc.c: Delete file.
2651 * Makefile.in: Update.
2652 * config/sparc/linux64.mh (NATDEPFILES):
2653 * config/sparc/linux.mh (NATDEPFILES): Update.
2654 * config/s390/s390.mh (NATDEPFILES): Update.
2655 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2656 * config/powerpc/linux.mh (NATDEPFILES): Update.
2657 * config/pa/linux.mh (NATDEPFILES): Update.
2658 * config/mips/linux.mh (NATDEPFILES): Update.
2659 * config/m68k/linux.mh (NATDEPFILES): Update.
2660 * config/ia64/linux.mh (NATDEPFILES): Update.
2661 * config/i386/linux64.mh (NATDEPFILES): Update.
2662 * config/i386/linux.mh (NATDEPFILES): Update.
2663 * config/arm/linux.mh (NATDEPFILES): Update.
2664 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2665 * linux-nat.c: Update copyright. Include <sys/param.h>,
2666 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2667 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2668 (O_LARGEFILE): Possibly define.
2669 (_initialize_linux_nat, linux_proc_pending_signals)
2670 (add_line_to_sigset, linux_proc_xfer_memory)
2671 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2672 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2673 (struct linux_corefile_thread_data)
2674 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2675 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2677 2004-09-16 Andrew Cagney <cagney@gnu.org>
2679 * lin-lwp.c: Delete file.
2680 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2681 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2682 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2683 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2684 (linux_nat_attach, detach_callback, linux_nat_detach)
2685 (resume_callback, resume_clear_callback, linux_nat_resume)
2686 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2687 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2688 (status_callback, running_callback, count_events_callback)
2689 (select_singlestep_lwp_callback, select_event_lwp_callback)
2690 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2691 (child_wait, stop_and_resume_callback, linux_nat_wait)
2692 (kill_callback, kill_wait_callback, linux_nat_kill)
2693 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2694 (linux_nat_xfer_memory, linux_nat_thread_alive)
2695 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2696 (_initialize_linux_nat): New functions.
2697 * Makefile.in: Update all dependencies.
2698 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2699 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2700 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2701 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2702 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2703 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2704 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2705 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2706 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2707 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2708 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2709 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2710 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2712 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2714 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2715 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2717 * configure.in: Don't comment out NATDEPFILES in the generated
2718 Makefile if NAT_FILE is unset.
2719 * configure: Regenerate.
2721 2004-09-27 Andrew Cagney <cagney@gnu.org>
2723 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2724 (insert_step_resume_breakpoint): Delete.
2725 (insert_step_resume_breakpoint_at_frame): New function.
2726 (insert_step_resume_breakpoint_at_sal): New function.
2727 (handle_inferior_event, step_into_function)
2728 (insert_step_resume_breakpoint): Simplify by using same.
2730 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2732 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2734 * fbsd-proc.c: Remove file.
2735 * Makefile.in (fbsd-proc.o): Remove dependency.
2737 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2740 * config/i386/nm-fbsd64.h: Remove file.
2741 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2743 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2745 * amd64-nat.h: Update copyright year.
2746 (amd64bsd_target): New prototype.
2747 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2748 (amd64bsd_target): New function.
2749 (amd64bsd_fetch_inferior_registers): Rename from
2750 fetch_inferior_registers. Make static.
2751 (amd64bsd_store_inferior_registers): Rename from
2752 store_inferior_registers. Make static.
2753 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2754 (_initialize_amd64fbsd_nat): Construct and add target vector.
2755 * amd64nbsd-nat.o: Include "target.h".
2756 (_initialize_amd64nbsd_nat): Construct and add target vector.
2757 * amd64obsd-nat.c: Include "target.h".
2758 (_initialize_amd64obsd_nat): Construct and add target vector.
2759 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2760 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2761 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2763 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2764 Remove infptrace.o and inftarg.o. Add inf-child.o and
2766 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2767 (amd64obsd-nat.o): Update dependencies.
2769 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2771 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2772 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2773 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2774 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2775 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2777 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2779 (inf_ptrace_detach): Inline detach call.
2781 * configure.in: Check for waddstr instead of mvwaddstr when
2782 searching for curses library. Check for wborder.
2783 * configure, config.in: Regenerate.
2784 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2787 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2789 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2791 Committed by Andrew Cagney.
2792 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2793 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2795 (fetch_register_using_p): Implement 'p' packet. Based on code by
2797 (remote_fetch_registers): Call fetch_register_using_p.
2798 (init_all_packet_configs, show_remote_cmd)
2799 (_initialize_remote): Add p-packet.
2801 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2803 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2804 instead of call_ptrace. Call wait directly instead of
2806 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2807 (inf_ptrace_wait): Inline ptrace_wait call.
2809 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2811 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2812 rolled back instead.
2814 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2816 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2817 the new argument order.
2819 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2821 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2822 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2823 (struct gdbarch_tdep): Remove.
2824 (struct xstormy16_frame_cache): New frame cache structure.
2825 (xstormy16_register_byte, xstormy16_register_raw_size)
2826 (xstormy16_reg_virtual_type, xstormy16_register_type)
2827 (xstormy16_push_arguments, xstormy16_push_return_address)
2828 (xstormy16_pop_frame, xstormy16_store_struct_return)
2829 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2830 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2831 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2832 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2833 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2834 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2835 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2836 (xstormy16_extract_return_value, xstormy16_store_return_value):
2837 Regcachify. Drop useless struct convention handling.
2838 (xstormy16_register_type, xstormy16_return_value)
2839 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2840 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2841 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2842 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2843 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2844 (xstormy16_unwind_dummy_id) : New functions.
2845 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2846 of xstormy16_scan_prologue.
2847 (xstormy16_frame_unwind): New frame_unwind structure.
2848 (xstormy16_frame_base): New frame_base structure.
2849 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2850 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2852 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2854 * language.c (language_gdbarch_post_init): Fix off-by one error.
2856 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2858 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2859 (struct dwarf2_offset_and_type): New.
2860 (set_die_type, reset_die_and_siblings_types, get_die_type)
2861 (offset_and_type_hash, offset_and_type_eq): New functions.
2862 (read_structure_type, read_enumeration_type, read_array_type)
2863 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2864 (read_tag_reference_type, read_tag_const_type)
2865 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2866 (read_typedef, read_base_type, read_subrange_type): Use
2869 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2871 * Makefile.in (dwarf2read.o): Update dependencies.
2872 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2873 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2875 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2876 mark, and has_form_ref_addr.
2877 (struct dwarf2_per_cu_data): New.
2878 (dwarf2_max_cache_age): New.
2879 (dwarf2_build_psymtabs_hard): Free cached compilation units
2880 after loading. Create and manage the list of compilation units.
2881 Remove unnecessary NULL initialization. Fix indentation.
2882 (psymtab_to_symtab_1): Initialize all of CU.
2883 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2884 (find_partial_die): Use dwarf2_find_containing_comp_unit
2886 (free_stack_comp_unit): Update comments. Clear the per-cu
2887 pointer. Handle aging.
2888 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2889 (age_cached_comp_units, free_one_cached_comp_unit)
2890 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2891 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2892 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2893 (show_dwarf2_cmd): New.
2894 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2895 and "maint show dwarf2 max-cache-age".
2896 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2898 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2901 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2903 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2904 and dwarf2_cu struct pointer as arguments. Change function to use
2905 obstack if provided and use dwarf2_cu to determine language-specific
2907 (partial_die_parent_scope): Change comment to include java. Use
2908 new version of typename_concat instead of obconcat.
2909 (partial_die_full_name): Use typename_concat.
2910 (read_namespace): Ditto.
2911 (read_enumeration_type): Use typename_concat instead of obconcat.
2912 (new_symbol): Ditto.
2913 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2914 (guess_structure_name): Ditto.
2915 (read_subroutine_type): Ditto.
2916 (read_structure_type): Ditto.
2917 (is_vtable_name): Add Java support.
2918 (determine_class_name): Switch to new typename_concat call.
2919 (determine_prefix): Switch to new typename_concat call.
2920 * jv-exp.y (FuncStart): New pattern.
2921 (MethodInvocation): Add support for simple function calls. Change
2922 warning message for other forms of inferior call currently not
2924 * valarith.c (value_subscript): Treat an array with upper-bound
2925 of -1 as unknown size.
2927 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2929 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2930 (lookup_partial_symtab): Use symtab_to_fullname.
2932 2004-09-19 Jim Blandy <jimb@redhat.com>
2934 * minsyms.c (lookup_minimal_symbol): Doc fix.
2936 2004-09-20 Andrew Cagney <cagney@gnu.org>
2938 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2940 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2941 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2943 * infptrace.c: Update.
2945 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2947 * symtab.c (output_source_filename): Mark first argument as const.
2948 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2949 for "info sources" output.
2951 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2953 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2954 <machine/vmparam.h>.
2955 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2956 (register_u_addr): Remove prototype.
2958 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2960 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2961 (i386bsd_fetch_inferior_registers): Rename from
2962 fetch_inferior_registers. Make static.
2963 (i386bsd_store_inferior_registers): Rename from
2964 store_inferior_registers. Make static.
2965 (i386bsd_target): New function.
2966 * i386bsd-nat.h: New file.
2967 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2969 (i386fbsd_resume): Rename from child_resume. Make static.
2970 (_initialize_i386fbsd_nat): Construct and add target vector.
2971 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2972 (_initialize_i386nbsd_nat): Construct and add target vector.
2973 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2975 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2976 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2977 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2978 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2979 (LOADLIBES): New variable.
2980 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2981 inf-ptrace.o. Remove inftarg.o.
2982 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2983 inf-ptrace.o. Remove inftarg.o.
2984 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2985 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2986 (LOADLIBES): New variable.
2987 * Makefile.in (i386bsd_nat_h): New variable.
2988 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2991 * sparc64nbsd-tdep.c: Include "objfiles.h".
2992 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2993 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2994 svr4_lp64_fetch_link_map_offsets.
2995 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2997 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2998 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2999 svr4_lp64_fetch_link_map_offsets.
3000 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3003 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3004 * fbsd-nat.h: New file.
3005 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3006 (fbsd_nat_h): New variable.
3007 (fbsd-nat.o): New dependency.
3009 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3010 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3012 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3015 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3017 * ada-exp.y (type_int): New function to add layer of abstraction
3018 around references to expression types.
3020 (type_long_long): Ditto.
3021 (type_float): Ditto.
3022 (type_double): Ditto.
3023 (type_long_double): Ditto.
3025 (type_system_address): Ditto.
3026 (simple_exp): Use type_* functions in place of builtin_*
3029 (write_var_from_name): Ditto.
3030 (write_object_renaming): Ditto.
3031 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3033 (build_ada_types): Remove, replacing with...
3034 (ada_language_arch_info): New function to initialize primitive
3035 type vector in language_arch_info.
3036 (ada_array_length): Remove use of builtin_type_ada_int.
3037 (value_pos_atr): Ditto.
3038 (ada_evaluate_subexp): Ditto.
3039 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3040 builtin_type_ada_long_long, builtin_type_ada_char,
3041 builtin_type_ada_float, builtin_type_ada_double,
3042 builtin_type_ada_long_double, builtin_type_ada_natural,
3043 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3044 (ada_builtin_types): Remove.
3045 (ada_language_defn): Remove entries for la_builtin_type_vector and
3046 string_char_type and use ada_language_arch_info.
3047 (_initialize_ada_language): Do type-vector initialization along
3048 the lines of c-lang.c.
3049 (ada_create_fundamental_type): Break up line.
3050 (ada_dump_symtab): Remove unused function.
3051 (enum ada_primitive_types): Define.
3052 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3053 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3054 builtin_type_ada_float, builtin_type_ada_double,
3055 builtin_type_ada_long_double, builtin_type_ada_natural,
3056 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3057 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3058 (processInt): Ditto.
3059 (processReal): Ditto.
3060 (name_lookup): Ditto.
3061 * ada-typeprint.c (print_range): Use builtin_type_int, not
3062 builtin_type_ada_int.
3064 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3066 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3068 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3069 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3070 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3071 * configure.in: Improve checks for curses library by checking for
3072 mvwaddstr instead of initscr. Drop HP curses in favour of
3073 standard curses on HP-UX.
3074 * configure: Regenerated.
3076 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3078 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3079 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3080 Minor formatting changes.
3081 (empty_array): Slight rewrite for formatting.
3082 (emit_char,parse,ada_language_defn,build_ada_types,
3083 ada_is_exception_sym, _initialize_ada_language): Move
3085 (ada_dump_symtab): Remove unused definition.
3086 (ada_maybe_exception_partial_symbol): Remove unused definition.
3088 2004-09-16 Andrew Cagney <cagney@gnu.org>
3090 * inf-child.c: Include "gdb_string.h".
3091 (inf_child_core_file_to_sym_file): Delete.
3092 (inf_child_target): Set to_fetch_registers and to_store_registers.
3093 * inf-ptrace.c: Include "gdb_string.h".
3094 * Makefile.in: Update all dependencies.
3096 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3099 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3101 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3102 call to heuristic_proc_desc. Remove code that became redundant
3104 (read_next_frame_reg): Remove special case for SP_REGNUM.
3105 (set_reg_offset): Fix small typo.
3106 (reset_saved_regs): New procedure.
3107 (mips32_heuristic_proc_desc): No longer compute a fake
3108 procedure descriptor. Compute the full frame cache instead.
3109 Some minor comment reformatting.
3111 2004-09-14 Andrew Cagney <cagney@gnu.org>
3113 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3116 * thread-db.c (thread_db_new_objfile): Assume that there is a
3119 2004-09-13 Jim Blandy <jimb@redhat.com>
3121 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3122 so that its storage isn't referenced after its lifetime ends.
3124 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3125 and never assigned to. Delete it, and the 'if (use_buffer)'
3126 clauses. Delete 'raw_buffer', since it is now unused.
3128 2004-09-13 Andrew Cagney <cagney@gnu.org>
3130 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3131 * configure: Re-generate.
3132 * nlm/Makefile.in (TAGS): Update.
3133 * Makefile.in (TAGS): Update.
3134 * config/vax/nbsd.mt (TM_FILE): Update.
3135 * config/sparc/vxworks.mt (TM_FILE): Update.
3136 * config/sparc/sol2.mt (TM_FILE): Update.
3137 * config/sparc/sol2-64.mt (TM_FILE): Update.
3138 * config/sparc/obsd64.mt (TM_FILE): Update.
3139 * config/sparc/obsd.mt (TM_FILE): Update.
3140 * config/sparc/nbsd64.mt (TM_FILE): Update.
3141 * config/sparc/nbsd.mt (TM_FILE): Update.
3142 * config/sparc/linux64.mt (TM_FILE): Update.
3143 * config/sparc/linux.mt (TM_FILE): Update.
3144 * config/sparc/fbsd.mt (TM_FILE): Update.
3145 * config/sh/wince.mt (TM_FILE): Update.
3146 * config/sh/nbsd.mt (TM_FILE): Update.
3147 * config/sh/linux.mt (TM_FILE): Update.
3148 * config/sh/embed.mt (TM_FILE): Update.
3149 * config/s390/s390.mt (TM_FILE): Update.
3150 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3151 * config/rs6000/rs6000.mt (TM_FILE): Update.
3152 * config/rs6000/aix4.mt (TM_FILE): Update.
3153 * config/powerpc/vxworks.mt (TM_FILE): Update.
3154 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3155 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3156 * config/powerpc/obsd.mt (TM_FILE): Update.
3157 * config/powerpc/nbsd.mt (TM_FILE): Update.
3158 * config/powerpc/linux.mt (TM_FILE): Update.
3159 * config/powerpc/aix.mt (TM_FILE): Update.
3160 * config/pa/obsd.mt (TM_FILE): Update.
3161 * config/pa/linux.mt (TM_FILE): Update.
3162 * config/pa/hppahpux.mt (TM_FILE): Update.
3163 * config/pa/hppa64.mt (TM_FILE): Update.
3164 * config/pa/hppa.mt (TM_FILE): Update.
3165 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3166 * config/mips/wince.mt (TM_FILE): Update.
3167 * config/mips/vxmips.mt (TM_FILE): Update.
3168 * config/mips/nbsd.mt (TM_FILE): Update.
3169 * config/mips/linux.mt (TM_FILE): Update.
3170 * config/mips/irix6.mt (TM_FILE): Update.
3171 * config/mips/irix5.mt (TM_FILE): Update.
3172 * config/mips/embed.mt (TM_FILE): Update.
3173 * config/m68k/vxworks68.mt (TM_FILE): Update.
3174 * config/m68k/st2000.mt (TM_FILE): Update.
3175 * config/m68k/os68k.mt (TM_FILE): Update.
3176 * config/m68k/obsd.mt (TM_FILE): Update.
3177 * config/m68k/nbsd.mt (TM_FILE): Update.
3178 * config/m68k/monitor.mt (TM_FILE): Update.
3179 * config/m68k/linux.mt (TM_FILE): Update.
3180 * config/m68k/cisco.mt (TM_FILE): Update.
3181 * config/ia64/linux.mt (TM_FILE): Update.
3182 * config/ia64/aix.mt (TM_FILE): Update.
3183 * config/ia64/ia64.mt (TM_FILE): Update.
3184 * config/i386/vxworks.mt (TM_FILE): Update.
3185 * config/i386/obsd64.mt (TM_FILE): Update.
3186 * config/i386/obsd.mt (TM_FILE): Update.
3187 * config/i386/nto.mt (TM_FILE): Update.
3188 * config/i386/nbsd64.mt (TM_FILE): Update.
3189 * config/i386/nbsd.mt (TM_FILE): Update.
3190 * config/i386/linux64.mt (TM_FILE): Update.
3191 * config/i386/linux.mt (TM_FILE): Update.
3192 * config/i386/i386sol2.mt (TM_FILE): Update.
3193 * config/i386/i386lynx.mt (TM_FILE): Update.
3194 * config/i386/fbsd64.mt (TM_FILE): Update.
3195 * config/i386/fbsd.mt (TM_FILE): Update.
3196 * config/i386/cygwin.mt (TM_FILE): Update.
3197 * config/h8300/h8300.mt (TM_FILE): Update.
3198 * config/frv/frv.mt (TM_FILE): Update.
3199 * config/cris/cris.mt (TM_FILE): Update.
3200 * config/arm/wince.mt (TM_FILE): Update.
3201 * config/arm/nbsd.mt (TM_FILE): Update.
3202 * config/arm/linux.mt (TM_FILE): Update.
3203 * config/arm/embed.mt (TM_FILE): Update.
3204 * config/alpha/nbsd.mt (TM_FILE): Update.
3205 * config/alpha/fbsd.mt (TM_FILE): Update.
3206 * config/alpha/alpha.mt (TM_FILE): Update.
3207 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3208 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3210 Eliminate event_loop_p, always has the value 1.
3211 * defs.h (event_loop_p): Delete macro.
3212 * breakpoint.c (until_break_command): Simplify.
3213 * utils.c (prompt_for_continue): Simplify.
3214 * tracepoint.c (read_actions): Simplify.
3215 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3216 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3217 (set_prompt, init_main): Simplify.
3218 (init_signals, disconnect): Delete, unused.
3219 * remote.c (remote_async_resume)
3220 (extended_remote_async_create_inferior): Simplify.
3221 * mi/mi-interp.c (mi_input): Delete, unused.
3222 (mi_interpreter_resume, mi_command_loop): Simplify.
3223 * interps.c (current_interp_command_loop): Simplify.
3224 * infrun.c (proceed): Simplify.
3225 * infcmd.c (run_command, continue_command, step_1, jump_command)
3226 (until_command, advance_command, finish_command)
3227 (interrupt_target_command): Simplify.
3228 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3230 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3231 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3232 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3233 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3234 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3235 * mips-tdep.c (mips_dump_tdep): Do not print same.
3237 2004-09-12 Andrew Cagney <cagney@gnu.org>
3239 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3241 * Makefile.in (valprint.o): Delete explict rule.
3243 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3244 reported by Dave Anderson.
3246 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3248 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3250 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3251 Andrew Cagney <cagney@gnu.org>
3253 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3254 (mi_cmd_data_list_register_values)
3255 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3256 the register number computation.
3258 2004-09-12 Andrew Cagney <cagney@gnu.org>
3260 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3261 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3262 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3263 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3265 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3266 inf-ptrace.o and inf-child.o.
3267 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3268 * Makefile.in: Update dependencies.
3270 2004-09-11 Andrew Cagney <cagney@gnu.org>
3272 * language.c (hex_string, hex_string_custom): Move from here ...
3273 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3274 (CELLSIZE): Increase to 50.
3275 * language.h (hex_string, hex_string_custom): Move from here ...
3276 * defs.h: ... to here.
3277 * Makefile.in: Update all dependencies.
3279 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3281 * language.c (local_hex_format_custom): Remove.
3282 (local_hex_string): Rename to hex_string, use C format, and move to
3284 (local_hex_string_custom): Rename to hex_string_custom and change
3285 interface. Now uses C format. Move to utils.c
3286 (local_octal_format_custom): Remove.
3287 (local_decimal_format_custom): Remove.
3288 (unknown_language_defn): Remove language-specific number
3290 (auto_language_defn): Ditto.
3291 (local_language_defn): Ditto.
3292 * language.h (struct language_format_info): Delete declaration.
3293 (struct language_defn): Remove language_format_info fields
3294 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3295 (local_binary_format): Remove macro.
3296 (local_binary_format_prefix): Remove macro.
3297 (local_binary_format_specifier): Remove macro.
3298 (local_binary_format_suffix): Remove macro.
3299 (local_octal_format): Remove macro.
3300 (local_octal_format_prefix): Remove macro.
3301 (local_octal_format_specifier): Remove macro.
3302 (local_octal_format_suffix): Remove macro.
3303 (local_decimal_format): Remove macro.
3304 (local_decimal_format_prefix): Remove macro.
3305 (local_decimal_format_specifier): Remove macro.
3306 (local_decimal_format_suffix): Remove macro.
3307 (local_hex_format): Remove macro.
3308 (local_hex_format_prefix): Remove macro.
3309 (local_hex_format_specifier): Remove macro.
3310 (local_hex_format_suffix): Remove macro.
3311 (local_decimal_format_custom): Remove.
3312 (local_octal_format_custom): Remove.
3313 (local_hex_format_custom): Remove.
3314 (local_hex_string): Rename to hex_string and move to defs.h.
3315 (local_hex_string_custom): Rename to hex_string_custom, change
3316 interface, and move to defs.h.
3317 * utils.c: (int_string): New function.
3318 (hex_string): New function (from language.c).
3319 (hex_string_custom): New function (from language.c).
3320 (octal2str): New function.
3321 (decimal2str): Add width parameter.
3322 (paddr_u): Use new decimal2str interface.
3324 * defs.h (hex_string): Declare.
3325 (hex_string_custom): Declare.
3326 (int_string): Declare.
3327 * printcmd.c (print_scalar_formatted): Remove localized binary
3329 * valprint.c (print_longest): Use int_string.
3330 (print_floating): Use C hex format.
3331 (print_hex_chars): Ditto.
3332 (print_binary_chars): Remove language-specific formatting.
3333 (print_octal_chars): Use C octal format.
3334 (print_decimal_chars): Delocalize format.
3335 (print_decimal): Remove.
3336 * ada-lang.c (ada_language_defn): Remove language-specific number
3338 * p-lang.c (pascal_language_defn): Ditto.
3339 * c-lang.c (c_language_defn): Ditto.
3340 (cplus_language_defn): Ditto.
3341 (asm_language_defn): Ditto.
3342 (minimal_language_defn): Ditto.
3343 * f-lang.c (f_language_defn): Ditto.
3344 * jv-lang.c (java_language_defn): Ditto.
3345 * m2-lang.c (m2_language_defn): Ditto.
3346 * scm-lang.c (scm_language_defn): Ditto.
3347 * objc-lang.c (objc_language_defn): Ditto.
3348 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3350 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3351 * ui-out.c (ui_out_field_core_addr): Ditto.
3352 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3353 * exec.c (print_section_info): Ditto.
3354 * i387-tdep.c (print_i387_status_word): Ditto.
3355 (print_i387_control_word): Ditto.
3356 (i387_print_float_info): Ditto.
3357 * maint.c (maint_print_section_info): Ditto.
3358 * solib.c (info_sharedlibrary_command): Ditto.
3359 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3360 * symtab.c (print_msymbol_info): Ditto.
3361 * tracepoint.c (tracepoints_info): Ditto.
3362 * solib-frv.c (lm_base): Ditto.
3363 (frv_current_sos): Ditto.
3364 (enable_break2): Ditto.
3365 (enable_break): Ditto.
3366 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3367 (process_one_symbol): Ditto.
3368 * infcmd.c (program_info): Ditto.
3369 * mdebugread.c (parse_partial_symbols): Ditto.
3370 * symfile.c (add_symbol_file_command): Ditto.
3371 * cli/cli-cmds.c (edit_command): Ditto.
3372 (list_command): Ditto.
3373 * infcall.c (call_function_by_hand): Ditto.
3374 * remote-vx.c (vx_run_files_info): Ditto.
3379 * aix-thread.c (pdc_symbol_addrs): Ditto.
3380 (pdc_read_regs): Ditto.
3381 (pdc_write_regs): Ditto.
3382 (pdc_read_data): Ditto.
3383 (pdc_write_data): Ditto.
3384 * d10v-tdep.c (display_trace): Ditto.
3385 * rs6000-nat.c (find_toc_address): Ditto.
3386 * aix-thread.c: Don't include language.h.
3387 * buildsym.c: Ditto.
3389 * mdebugread.c: Ditto.
3390 * rs6000-nat.c: Ditto.
3391 * buildsym.c (make_blockvector): Use renamed hex_string.
3393 2004-09-10 Jason Molenda (jmolenda@apple.com)
3395 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3396 chars after 'if' or 'while' commands in user-defined commands.
3398 2004-09-08 Jim Blandy <jimb@redhat.com>
3400 Fix bug reported and analyzed by Olivier Crete:
3401 * symfile.c (copy_section_addr_info): New function.
3402 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3403 original set of address arguments, instead of handwritten code
3404 that uses one length to allocate and a different length to
3405 initialize. Use make_cleanup_free_section_addr_info.
3406 * symfile.h (copy_section_addr_info): New declaration.
3407 * utils.c: #include "symfile.h".
3408 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3410 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3411 * Makefile.in (utils.o): Update dependencies.
3413 2004-09-08 Andrew Cagney <cagney@gnu.org>
3415 * thread-db.c (keep_thread_db): Delete.
3416 (thread_db_new_objfile, thread_db_create_inferior)
3417 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3419 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3421 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3422 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3423 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3424 (i386_frameless_signal_p): Remove prototype.
3425 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3426 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3428 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3429 instead of FP0_REGNUM.
3430 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3431 of FP0_REGNUM and FPC_REGNUM.
3433 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3434 (sunos_solib_create_inferior_hook): Don't call
3435 sunos_relocate_main_executable.
3437 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3438 solib_svr4_fetch_link_map_offsets to
3439 svr4_ilp32_fetch_link_map_offsets.
3440 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3441 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3442 svr4_ilp32_fetch_link_map_offsets.
3443 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3445 2004-09-07 Jim Blandy <jimb@redhat.com>
3447 * frame.h (frame_register): Doc fix.
3449 2004-09-07 Andrew Cagney <cagney@gnu.org>
3451 * vx-share/wait.h: Delete #ifdef USG.
3452 * utils.c (request_quit): Ditto.
3453 * tui/tui.c (tui_reset): Ditto.
3455 * remote-sds.c: Ditto.
3456 * remote-rdi.c: Ditto.
3457 * mdebugread.c: Ditto.
3458 * m68klinux-nat.c: Ditto.
3459 * infttrace.c: Ditto.
3460 * infptrace.c: Ditto.
3461 * i386v-nat.c: Ditto.
3464 * core-aout.c: Ditto.
3466 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3468 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3469 heuristic_proc_desc.
3470 (mips_insn32_frame_cache): Likewise.
3472 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3474 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3475 left behind by error.
3477 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3479 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3480 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3482 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3484 * config/rs6000/xm-aix4.h: Remove this file.
3485 * config/rs6000/aix4.mh (XM_FILE): Delete.
3487 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3489 * config/rs6000/xm-rs6000.h: Remove this file.
3490 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3492 2004-09-03 Andrew Cagney <cagney@gnu.org>
3494 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3495 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3498 * mips-tdep.c (temp_saved_regs): Delete.
3499 (set_reg_offset): Replace saved_regs parameter with this_cache.
3500 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3501 (mips32_heuristic_proc_desc): Add this_cache parameter.
3502 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3503 (after_prologue): Pass a NULL this_cache.
3505 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3506 non-kernel trap prologues.
3508 * mips-tdep.c (find_proc_desc): Delete function.
3509 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3511 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3512 mips_insn32_frame_cache.
3514 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3515 Simplify as NEXT_FRAME is NULL.
3516 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3518 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3520 (mips_skip_prologue): Update.
3522 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3523 "cur_frame" parameter.
3524 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3525 (mips_insn32_frame_cache, find_proc_desc): Update
3527 * config/vax/nm-obsd.h: Delete file.
3528 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3529 * config/vax/nm-nbsd.h: Delete file.
3530 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3531 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3532 * config/sh/nm-nbsd.h: Delete file.
3533 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3534 * config/rs6000/nm-rs6000ly.h: Delete file.
3535 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3536 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3537 * config/powerpc/nm-obsd.h: Delete file.
3538 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3539 * config/powerpc/nm-nbsd.h: Delete file.
3540 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3541 * config/pa/nm-obsd.h: Delete file.
3542 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3543 * config/mips/nm-nbsd.h: Delete file.
3544 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3545 * config/m88k/nm-obsd.h: Delete file.
3546 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3547 * config/m68k/nm-nbsd.h: Delete file.
3548 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3549 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3550 * config/i386/nm-nbsd.h: Delete file.
3551 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3552 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3553 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3554 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3555 * config/i386/nm-i386lynx.h: Delete file.
3556 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3557 * config/arm/nm-nbsd.h: Delete file.
3558 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3559 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3561 * config/i386/tm-fbsd.h: Delete file.
3562 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3563 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3565 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3566 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3567 * config/rs6000/aix4.mt (TM_FILE): Set to
3568 config/rs6000/tm-rs6000.h.
3569 * config/powerpc/tm-ppc-aix.h: Delete file.
3570 * config/powerpc/aix.mt (TM_FILE): Set to
3571 config/rs6000/tm-rs6000.h.
3572 * config/m68k/tm-linux.h: Delete file.
3573 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3574 * config/i386/tm-linux64.h: Delete file.
3575 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3576 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3578 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3579 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3580 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3581 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3582 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3583 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3584 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3585 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3586 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3588 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3591 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3593 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3594 Minor reformatting. Some code factoring.
3596 2004-09-02 Andrew Cagney <cagney@gnu.org>
3598 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3599 * config/vax/tm-nbsd.h: Delete file.
3600 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3601 * config/sparc/tm-vxworks.h: Delete file.
3602 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3603 * config/sparc/tm-nbsd.h: Delete file.
3604 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3605 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3606 * config/sparc/tm-linux.h: Delete file.
3607 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3608 * config/s390/tm-linux.h: Delete file.
3609 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3610 * config/pa/tm-bsd.h: Delete file.
3611 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3612 * config/m68k/tm-obsd.h: Delete file.
3613 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3614 * config/m68k/tm-nbsd.h: Delete file.
3615 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3616 * config/i386/tm-vxworks.h: Delete file.
3617 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3618 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3619 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3620 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3621 * config/i386/tm-nbsd.h: Delete file.
3622 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3623 * config/i386/tm-i386lynx.h: Delete file.
3624 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3625 * config/cris/tm-cris.h: Delete file.
3627 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3628 * configure: Re-generate.
3629 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3630 * config/arm/tm-nbsd.h: Delete file.
3632 * config/powerpc/tm-ppcle-sim.h: Delete.
3633 * config/powerpc/tm-ppcle-eabi.h: Delete.
3634 * config/powerpc/tm-nbsd.h: Delete.
3635 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3636 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3639 * config/i386/nto.mh (NAT_FILE): Delete.
3640 * config/i386/nm-nto.h: Delete.
3642 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3643 * config/m68k/tm-os68k.h: Ditto.
3644 * config/m68k/tm-monitor.h: Ditto.
3645 * config/m68k/tm-cisco.h: Ditto.
3646 * config/m68k/st2000.mt (TM_FILE): Delete.
3647 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3648 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3649 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3650 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3652 * config/m68k/tm-st2000.h: Delete.
3653 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3654 * config/sparc/fbsd.mt (TM_FILE): Delete.
3655 * config/sparc/tm-fbsd.h: Delete.
3657 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3658 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3659 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3661 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3662 GDB_TM_FILE and GDB_XM_FILE.
3663 * gdbarch.c: Re-generate.
3664 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3665 quotes in macro definition.
3666 * configure.in: Re-generate.
3668 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3669 validating architecture methods.
3670 * gdbarch.c: Re-generate.
3672 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3673 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3674 GDB_MULTI_ARCH_PARTIAL.
3675 * gdbarch.h: Re-generate.
3677 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3678 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3679 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3680 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3681 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3682 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3683 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3684 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3685 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3686 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3687 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3688 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3690 2004-09-01 Andrew Cagney <cagney@gnu.org>
3692 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3693 and main_func_highpc.
3694 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3695 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3696 * nlmread.c (nlm_symfile_read): Update.
3698 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3700 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3701 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3702 (find_proc_desc): Remove dead code.
3704 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3706 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3708 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3710 * observer.sh: Add struct so_list declaration.
3711 * Makefile.in: Add dependencies on observer.h for solib.c and
3713 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3715 (_initialize_breakpoint): Register
3716 disable_breakpoints_in_unloaded_shlib as an observer of the
3717 "solib unloaded" observation event.
3718 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3719 call decode_line_1 so unfound breakpoint errors are silent.
3720 * solib.c (update_solib_list): When a solib is discovered to have
3721 been unloaded by the program, notify all observers of the
3722 "solib unloaded" observation event.
3724 2004-09-01 Andrew Cagney <cagney@gnu.org>
3726 * frame.c: Include "objfiles.h".
3727 (inside_main_func): New function.
3728 (get_prev_frame): Use new inside_main_func.
3729 * Makefile.in (frame.o): Update dependencies.
3730 * defs.h (inside_main_func): Delete declaration.
3731 * blockframe.c (inside_main_func): Delete function.
3733 2004-08-31 Jim Blandy <jimb@redhat.com>
3735 * dwarf2read.c (is_vtable_name): New function, based on logic from
3736 read_structure_type, but passing the correct length to strncmp,
3737 and using 'sizeof' instead of 'strlen'.
3738 (read_structure_type): Call it.
3740 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3742 * config/powerpc/aix.mh: Add comment.
3744 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3746 * MAINTAINERS: Add self to Write-After-Approval.
3748 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3750 * MAINTAINERS: Add self to Write-After-Approval.
3752 2004-08-30 Andrew Cagney <cagney@gnu.org>
3754 Fix PR breakpoints/1757.
3755 * infrun.c (struct execution_control_state): Replace
3756 remove_breakpoints_on_following_step with
3757 step_after_step_resume_breakpoint.
3758 (init_execution_control_state): Update.
3759 (handle_inferior_event): For signals, when stepping off a
3760 breakpoint, set step_after_step_resume_breakpoint. When
3761 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3762 (keep_going): Delete code handling
3763 remove_breakpoints_on_following_step.
3765 2004-08-29 David Lecomber <david@streamline-computing.com>
3768 * language.h (enum array_ordering): New enum.
3769 * language.h (struct language_defn): New la_array_ordering
3771 * language.c (unknown_language_defn, auto_language_defn)
3772 (local_language_defn): Ditto.
3773 * ada-lang.c (ada_language_defn): Ditto.
3774 * c-lang.c (c_language_defn, cplus_language_defn)
3775 (asm_language_defn, minimal_language_defn): Ditto.
3776 * f-lang.c (f_language_defn): Ditto.
3777 * jv-lang.c (java_language_defn): Ditto.
3778 * m2-lang.c (f_language_defn): Ditto.
3779 * objc-lang.c (objc_language_defn): Ditto.
3780 * p-lang.c (pascal_language_defn): Ditto.
3781 * scm-lang.c (scm_language_defn): Ditto.
3782 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3783 oriented large to small in type structure.
3784 * dwarf2read.c (read_array_order): New function.
3785 (read_array_type): Use read_array_order to check row/column
3788 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3790 * target.c (target_resize_to_sections): Check
3791 current_target.to_sections for an old value when updating.
3793 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3795 * procfs.c (dbx_link_bpt_addr): New static global variable.
3796 (dbx_link_shadow_contents): New static global variable.
3797 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3798 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3800 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3801 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3803 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3804 after the inferior has been forked.
3805 (remove_dbx_link_breakpoint): New function.
3806 (dbx_link_addr): New function.
3807 (insert_dbx_link_bpt_in_file): New function.
3808 (insert_dbx_link_bpt_in_region): New function.
3809 (insert_dbx_link_breakpoint): New function.
3810 (proc_trace_syscalls_1): New function, extracted from
3811 proc_trace_syscalls.
3812 (proc_trace_syscalls): Replace extract code by call to
3813 proc_trace_syscalls_1.
3814 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3817 2004-08-25 Jim Blandy <jimb@redhat.com>
3819 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3821 2004-08-25 Andrew Cagney <cagney@gnu.org>
3823 * infrun.c (struct execution_control_state): Delete field
3824 "stepping_through_sigtramp".
3825 (init_execution_control_state): Do not set same.
3826 (context_switch): Do not pass same to save_infrun_state and
3828 * gdbthread.h (struct thread_info): Delete field
3829 stepping_through_sigtramp.
3830 (save_infrun_state, load_infrun_state): Delete parameter
3831 stepping_through_sigtramp.
3832 * thread.c (load_infrun_state, save_infrun_state): Update.
3834 * infrun.c: Re-indent. Move expression operators to the beginning
3835 of the line. Remove long disabled #if 0 code.
3837 2004-08-24 Andrew Cagney <cagney@gnu.org>
3839 * doublest.h (floatformat_ieee_quad): Rename
3840 floatformat_ia64_quad.
3841 * doublest.c (floatformat_ieee_quad): Rename
3842 floatformat_ia64_quad.
3843 (_initialize_doublest): Update.
3845 2004-08-24 Jim Blandy <jimb@redhat.com>
3847 * dwarf2expr.h (struct dwarf_expr_context): New members
3848 'num_pieces' and 'pieces', for returning the result of an
3849 expression that uses DW_OP_piece.
3850 (struct dwarf_expr_piece): New struct type.
3851 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3853 (free_dwarf_expr_context): Free pieces, if any.
3854 (add_piece): New function.
3855 (execute_stack_op): Implement DW_OP_piece.
3856 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3857 expression is a list of pieces, print an error message.
3858 (dwarf2_loc_desc_needs_frame): If the expression yields
3859 pieces, and any piece is in a register, then we need a frame.
3861 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3862 the stack until we've decided what sort of result the evaluation
3863 has produced. Use separate variables, with more specific names.
3865 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3867 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3868 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3869 (arm_netbsd_init_abi_common): Register them.
3871 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3873 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3875 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3876 safe_frame_unwind_memory instead of target_read_memory.
3878 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3880 (fetch_register, store_register): Remove prototypes.
3881 (child_resume): Reorganize code and comments such that it is
3882 grouped a bit more logically.
3883 (attach): Explicitly compare errno against 0.
3884 (detach): Likewise. Use perror_with_name instead of
3886 * Makefile.in (infptrace.o): Update dependencies.
3888 * ia64-linux-nat.c: Update copyright year.
3889 (fetch_debug_register, store_debug_register)
3890 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3892 * config/ia64/nm-linux.h: Update copyright year.
3893 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3895 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3896 from CORE_ADDR to struct frame_info *. Use
3897 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3898 (amd64_linux_sigtramp_p): Adjust for changed signature of
3899 and64_linux_sigtramp_start
3901 * gdb_ptrace.h: GNU/Linux.
3903 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3906 * infptrace.c: Include "gdb_assert.h".
3907 (PTRACE_XFER_TYPE): Remove define.
3908 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3909 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3911 (fetch_inferior_registers, store_inferior_registers): Remove
3912 redundant culry braces. Tweak comment. s/regno/regnum.
3913 * Makefile.in (infptrace.o): Update dependencies.
3915 * configure.in: Change test for return type of ptrace to default
3916 to `long' instead of `int'.
3917 * configure: Regenerate.
3919 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3921 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3923 * configure.in: Check for ttrace function.
3924 * configure, config.in: Regenerate.
3926 * gdb_ptrace.h: New file.
3927 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3929 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3930 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3931 (attach): Don't define PT_ATTACH.
3932 (detach): Don't define PT_DETACH.
3933 * Makefile.in (gdb_ptrace_h): New variable.
3934 (infptrace.o): Update dependencies.
3936 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3938 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3939 instead of `int' if not already defined.
3940 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3942 * infptrace.c (call_ptrace): Revert change that replaced
3943 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3945 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3947 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3950 * linux-nat.c (kill_inferior): Add missing third and fourth
3951 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3953 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3956 * proc-why.c (proc_prettyfprint_why): Fix format string.
3958 * solib-osf.c (osf_current_sos): Remove unsused label.
3960 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3962 * configure, config.in: Regenerate.
3963 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3964 <ncurses/ncurses.h>.
3966 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3967 * config/nm-nbsd.h: Update copyright year.
3968 (PTRACE_ARG3_TYPE): Remove define.
3970 * sparc-nat.c (fetch_inferior_registers)
3971 (store_inferior_registers, sparc_xfer_wcookie):
3972 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3974 * alphabsd-nat.c (fetch_inferior_registers):
3975 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3977 * amd64bsd-nat.c (fetch_inferior_registers)
3978 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3980 * armnbsd-nat.c: Update copyright year.
3981 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3982 (store_register, store_regs, store_fp_register, store_fp_regs):
3983 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3984 * hppabsd-nat.c (fetch_inferior_registers)
3985 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3987 * i386bsd-nat.c (fetch_inferior_registers)
3988 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3989 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3990 * m68kbsd-nat.c (fetch_inferior_registers)
3991 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3993 * m88kbsd-nat.c (fetch_inferior_registers)
3994 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3996 * mipsnbsd-nat.c: Update copyright year.
3997 (fetch_inferior_registers, store_inferior_registers):
3998 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3999 * ns32knbsd-nat.c: Update copyright year.
4000 (fetch_inferior_registers, store_inferior_registers):
4001 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4002 * ppcnbsd-nat.c (fetch_inferior_registers):
4003 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4005 * ppcobsd-nat.c (fetch_inferior_registers):
4006 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4008 * shnbsd-nat.c: Update copyright year.
4009 (fetch_inferior_registers, store_inferior_registers):
4010 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4011 * vaxbsd-nat.c (fetch_inferior_registers)
4012 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4015 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4017 * infptrace.c (call_ptrace, child_resume, attach, detach)
4018 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4019 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4020 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4023 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4025 * defs.h: Remove out-of-date comment.
4026 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4027 [!GETENV_PROVIDED] (getenv): Remove prototype.
4029 * standalone.c: Remove file.
4030 * Makefile.in (standalone.o): Remove dependency.
4032 * i386-linux-nat.c (dummy_sse_values): Remove function and
4034 (i386_linux_dr_get): Fix typo in comment.
4035 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4037 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4039 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4041 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4044 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4046 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4047 parenthesis in definition.
4048 * configure: Regenerated.
4050 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4052 * PROBLEMS: Mention build/1411.
4054 2004-08-09 Robert Millan <robertmh@gnu.org>
4056 Committed by Nathanael Nerode.
4057 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4058 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4060 2004-08-12 Andrew Cagney <cagney@gnu.org>
4062 * NEWS: Mention fixes in GDB 6.2.1.
4063 * PROBLEMS: Remove mention of mips-irix.
4065 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4067 * config/powerpc/xm-aix.h: Delete.
4068 * config/powerpc/aix.mh (MH_FILE): Remove.
4069 * config/powerpc/aix432.mh (MH_FILE): Remove.
4071 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4073 * config/powerpc/aix.mh: Remove obsolete comment.
4074 * config/powerpc/aix432.mh: Likewise.
4076 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4078 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4080 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4082 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4083 this file is now empty.
4084 * config/xm-aix4.h: Remove, this file is no longer included
4087 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4089 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4090 that file is now empty.
4091 (termdef): Remove prototype, function no longer used.
4093 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4095 * doc/gdbint.texinfo (Host Definition): Remove documentation
4096 for USE_O_NOCTTY, no longer used.
4097 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4098 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4100 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4102 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4103 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4104 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4106 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4108 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4109 instead of FIVE_ARG_PTRACE.
4111 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4112 (new_tty): Use O_NOCTTY unconditionally.
4114 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4116 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4117 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4120 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4122 * xcoff_symfile_finish: Replace last call to xmfree by call
4125 2004-08-10 Andrew Cagney <cagney@gnu.org>
4127 * main.c (captured_main): Delete call to init_malloc.
4128 * defs.h (init_malloc): Delete declaration.
4129 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4130 (init_malloc): Delete functions.
4132 * defs.h (xmfree): Delete.
4133 * utils.c (xmfree): Delete function.
4134 (xfree): Inline calls to xmfree and mfree.
4135 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4136 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4137 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4138 * somread.c (som_symfile_finish): Ditto.
4139 * objfiles.c (allocate_objfile, free_objfile):
4140 * nlmread.c (nlm_symfile_finish): Ditto.
4141 * hpread.c (hpread_symfile_finish): Ditto.
4142 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4143 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4144 * coffread.c (coff_symfile_finish): Ditto.
4146 * defs.h (xmcalloc): Delete declaration.
4147 * utils.c (xmcalloc): Delete.
4148 (xcalloc): Inline calls to xmcalloc and mcalloc.
4149 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4151 * symtab.c (create_demangled_names_hash): Ditto.
4153 * defs.h (xmrealloc): Delete.
4154 * utils.c (xmrealloc): Delete.
4155 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4156 * symmisc.c (extend_psymbol_list): Use xrealloc.
4157 * source.c (find_source_lines): Ditto.
4158 * hpread.c (hpread_lookup_type): Ditto.
4159 * dbxread.c (add_bincl_to_list): Ditto.
4161 * utils.c (xmmalloc): Delete.
4162 (xmalloc): Inline xmmalloc and mmalloc calls.
4163 (msavestring): Use xmalloc.
4164 * defs.h (xmmalloc): Delete declaration.
4165 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4167 * symmisc.c (extend_psymbol_list): Ditto.
4168 * symfile.c (init_psymbol_list): Ditto.
4169 * source.c (find_source_lines): Ditto.
4170 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4171 * elfread.c (elf_symtab_read): Ditto.
4172 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4173 * coffread.c (coff_symfile_init): Ditto.
4175 2004-08-10 David Carlton <carlton@bactrian.org>
4177 * MAINTAINERS: Remove David Carlton from c++ testsuite
4180 2004-08-10 Jerome Guitton <guitton@gnat.com>
4182 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4183 print a line feed before the prompt.
4185 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4187 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4189 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4191 General cleanup of the AIX xm include file:
4192 * config/xm-aix4.h (fd_set): Remove undefine.
4193 Remove include of <sys/select.h>.
4194 (HAVE_TERMIO): Remove define.
4196 (NULL): Remove redefine.
4197 (alloca): Remove #pragma.
4198 (vfork): Remove define.
4200 (SIGWINCH_HANDLER): Remove.
4201 (SIGWINCH_HANDLER_BODY): Remove.
4203 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4205 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4206 GDB_OSABI_OPENBSD_ELF.
4208 2004-08-07 Robert Millan <robertmh@gnu.org>
4210 * bsd-kvm.c: Check for nlist.h before including it.
4212 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4214 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4215 sigcontext' offset consistency checks for ancient BSD.
4217 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4219 * configure.in: Check for <sys/types.h>. Check return and
4220 argument types of ptrace.
4221 * configure, config.in: Regenerate.
4223 2004-08-09 Jim Blandy <jimb@redhat.com>
4225 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4226 rs6000_register_sim_regno): Doc fixes.
4228 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4230 * mips-tdep.c: Include "floatformat.h".
4231 (n32n64_floatformat_always_valid): New function.
4232 (floatformat_n32n64_long_double_big): New constant.
4233 (mips_gdbarch_init): Set size and format of long double
4234 for N32 and N64 ABIs.
4235 * Makefile.in (mips-tdep.o): Update dependencies.
4237 2004-08-08 Andrew Cagney <cagney@gnu.org>
4239 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4240 print. Improve script's error messages.
4241 * gdbarch.h: Re-generate.
4243 * gdbarch.sh (pformat): New function.
4244 (float_format, double_format, long_double_format): List with bit
4245 members. Use pformat when printing.
4246 * gdbarch.c, gdbarch.h: Re-generate.
4248 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4250 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4251 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4252 (ppcnbsd_supply_pcb): New function.
4253 (_initialize_ppcnbsd_nat): New prototype and function.
4254 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4255 (LOADLIBES): New variable.
4256 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4258 2004-08-08 Andrew Cagney <cagney@gnu.org>
4260 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4261 (builtin_type_ieee_double, builtin_type_ia64_quad)
4262 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4263 BE/LE floating-point types.
4264 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4265 (builtin_type_ieee_double, builtin_type_ia64_quad)
4266 (builtin_type_ia64_spill): Declare.
4267 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4268 (floatformat_ieee_double, floatformat_arm_ext)
4269 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4270 of LE/BE floatformats.
4271 * doublest.h: (struct floatformat, floatformat_ieee_single)
4272 (floatformat_ieee_double, floatformat_arm_ext)
4273 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4275 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4277 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4279 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4280 instead of regcache_raw_supply when storing the registers.
4282 * i386gnu-nat.c: Update copyright year.
4283 (gnu_store_registers): Don't use deprecated_registers and
4284 deprecated_registers_valid. Use regcache_valid_p and
4285 regcache_raw_supply instead.
4287 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4290 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4291 variables. Incapitalized "process".
4293 * configure.in: Add cursesX to the list of possible curses libs.
4294 Add cursesX.h to the list of possible curses headers.
4295 * configure, config.in: Regenerate.
4297 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4299 * configure.in: Test for struct lwp in <sys/lwp.h>.
4300 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4301 the offset of l_addr in struct lwp.
4303 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4305 * bsd-kvm.c: Include "gdbcore.h"
4306 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4308 2004-08-07 Andrew Cagney <cagney@gnu.org>
4310 * gdbtypes.c (build_flt, build_complex): New functions.
4311 (gdbtypes_post_init): Use.
4313 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4315 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4316 through to builtin_type_uint128.
4318 * c-exp.y: Use builtin_type function to obtain builtin types.
4320 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4322 * gdbtypes.c (gdbtypes_post_init): Update.
4323 (build_gdbtypes): Move initialization of builtin_type_int0
4324 through to builtin_type_uint128 from here ...
4325 (_initialize_gdbtypes): ... to here.
4326 * d10v-tdep.c (d10v_register_type): Update.
4328 * doublest.c: Update copyright.
4329 (floatformat_from_length): Call error when floatformat is NULL.
4330 (extract_floating_by_length): Remove NULL fmt check.
4331 (store_floating_by_length): Ditto.
4333 2004-08-07 Andrew Cagney <cagney@gnu.org>
4335 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4336 that the register is valid.
4338 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4340 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4341 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4342 struct frame_info *. Use safe_frame_unwind_memory instead of
4343 deprecated_read_memory_nobpt.
4344 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4345 changed signature of i386_linux_sigtramp_start and
4346 i386_linux_rt_sigtramp_start.
4348 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4349 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4350 instead of deprecated_read_memory_nobpt.
4351 (i386nbsd_sigtramp_p): Adjust for changed signature of
4352 i386nbsd_sigtramp_offset.
4354 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4355 safe_frame_unwind_memory instead of target_read_memory.
4357 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4359 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4360 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4361 (_initialize_kernel_u_addr): Remove prototype and function.
4362 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4364 * xcoffread.c: Likewise.
4366 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4368 * vax-nat.c: New file.
4369 * vaxbsd-nat.c: Tweak comment.
4370 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4372 (vax-nat.o): New dependency.
4373 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4374 (vax-*-ultrix2*): Remove.
4375 * config/vax/vax.mh: New file.
4376 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4377 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4378 (vax_register_u_addr): New prototype.
4379 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4380 * config/vax/vaxult2.mh: Remove file.
4381 * config/vax/vaxult.mh: Remove file.
4382 * config/vax/vaxbsd.mh: Remove file.
4383 * config/vax/vax.mt (TM_FILE): Remove.
4384 * config/vax/tm-vaxbsd.h: Remove file.
4386 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4388 * aix-thread.c (get_signaled_thread): New function.
4389 (iter_trap): Delete, no longer used.
4390 (iter_tid): New function.
4391 (pd_update): Find the thread that received the SIGTRAP signal
4392 by first locating the kernel thread, and then finding its
4395 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4397 * lin-lwp.c (child_wait): Continue inferior after processing
4398 PTRACE_EVENT_CLONE event.
4400 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4402 * MAINTAINERS: Add self to Write-After-Approval.
4404 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4406 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4407 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4409 2004-08-05 Andrew Cagney <cagney@gnu.org>
4411 * config/xm-sysv4.h: Delete file.
4412 * config/mips/xm-irix5.h: Delete file.
4413 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4414 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4415 * config/ia64/xm-aix.h: Delete file.
4416 * config/ia64/aix.mh (XM_FILE): Delete.
4417 * config/pa/xm-hppah.h: Delete file.
4418 * config/pa/hpux11w.mh (XM_FILE): Delete.
4419 * config/pa/hpux11.mh (XM_FILE): Delete.
4420 * config/pa/hpux1020.mh (XM_FILE): Delete.
4421 * config/pa/hppahpux.mh (XM_FILE): Delete.
4423 * config/alpha/xm-alphalinux.h: Delete file.
4424 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4425 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4426 * config/alpha/xm-alphaosf.h: Delete file.
4427 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4428 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4429 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4430 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4432 * config/i386/xm-i386v.h: Delete file.
4433 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4434 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4435 * config/i386/xm-i386sco.h: Delete file.
4436 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4437 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4438 * config/i386/xm-i386v4.h: Delete file.
4439 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4440 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4441 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4442 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4444 * config/vax/xm-vax.h: Delete file.
4445 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4446 * config/vax/xm-vaxult2.h: Delete file.
4447 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4448 * config/vax/vaxult2.mh (XM_FILE): Delete.
4449 * config/vax/xm-vaxult.h: Delete file.
4450 * config/vax/vaxult.mh (XM_FILE): Delete.
4451 * config/vax/xm-vaxbsd.h: Delete file.
4452 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4454 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4455 * gdbarch.h, gdbarch.c: Re-generate.
4456 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4457 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4458 * frame.h: Delete deprecated_read_fp from comments.
4459 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4460 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4462 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4464 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4465 trampoline in OpenBSD 3.5-current.
4467 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4470 * Makefile.in: Remove embedded page breaks.
4472 2004-08-04 Jim Blandy <jimb@redhat.com>
4474 * regcache.c (regcache_raw_read): Assert that, after calling
4475 target_fetch_registers, the register we're reading is cached.
4477 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4478 a call to 'internal_error', with a more helpful error message.
4479 * rs6000-tdep.c (e500_pseudo_register_read,
4480 e500_pseudo_register_write, rs6000_store_return_value): Same.
4482 2004-08-04 Andrew Cagney <cagney@gnu.org>
4484 * Makefile.in: Update dependencies.
4486 2004-08-04 Jim Blandy <jimb@redhat.com>
4488 Change the layout of the PowerPC E500 raw register cache to allow
4489 the lower 32-bit halves of the GPRS to be their own raw registers,
4490 not pseudoregisters.
4491 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4492 add ppc_ev0_upper_regnum flag.
4493 * rs6000-tdep.c: #include "reggroups.h".
4494 (spe_register_p): Recognize the ev upper half registers as SPE
4496 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4498 (e500_move_ev_register): New function.
4499 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4500 vector registers are the pseudo-registers now, formed by splicing
4501 together the gprs and the upper-half registers.
4502 (e500_register_reggroup_p): New function.
4504 (P8, A4): New macro.
4505 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4506 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4508 (registers_e500): Rearrange register set so that the raw register
4509 set contains 32-bit GPRs and upper-half registers, and the SPE
4510 vector registers become pseudo-registers.
4511 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4512 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4513 register numbers are now the same for the E500 as they are for
4514 other PowerPC variants. Register e500_register_reggroup_p as the
4515 register group function for the E500.
4516 * Makefile.in (rs6000-tdep.o): Update dependencies.
4518 Adapt PPC E500 native support to the new raw regcache layout.
4519 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4520 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4521 (fetch_spe_register, store_spe_register): Handle fetching/storing
4522 all the SPE registers at once, if regno == -1. These now take
4523 over the job of fetch_spe_registers and store_spe_registers.
4524 (fetch_spe_registers, store_spe_registers): Deleted.
4525 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4526 unconditionally; they're always raw. Fetch/store SPE upper half
4527 registers, if present, instead of ev registers.
4528 (fetch_register, store_register): Remove sanity checks: gprs are
4529 never pseudo-registers now, so we never need to even mention any
4530 registers that are ever pseudoregisters.
4532 Use a fixed register numbering when communicating with the PowerPC
4534 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4535 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4536 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4538 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4539 init_sim_regno_table.
4540 * Makefile.in (gdb_sim_ppc_h): New variable.
4541 (rs6000-tdep.o): Update dependencies.
4543 2004-08-02 Andrew Cagney <cagney@gnu.org>
4545 * cris-tdep.c (cris_register_size): Restore function, still used
4548 * gdbarch.sh (deprecated_target_read_fp)
4549 (deprecated_frame_locals_address, deprecated_frame_args_address)
4550 (deprecated_frame_chain_valid, deprecated_frame_chain)
4551 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4552 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4553 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4554 * gdbarch.h, gdbarch.c: Re-generate.
4555 * regcache.c (deprecated_read_fp): Do not call
4556 DEPRECATED_TARGET_READ_FP_P.
4557 * infcmd.c (default_print_registers_info): Do not call
4558 DEPRECATED_DO_REGISTERS_INFO.
4559 * frame-base.c (default_frame_locals_address): Do not call
4560 DEPRECATED_FRAME_LOCALS_ADDRESS.
4561 (default_frame_args_address): Do not call
4562 DEPRECATED_FRAME_ARGS_ADDRESS.
4564 * gdbarch.sh (deprecated_register_raw_size)
4565 (deprecated_register_virtual_size:int): Delete.
4566 * gdbarch.h, gdbarch.c: Re-generate.
4567 * cris-tdep.c (cris_register_size): Delete.
4568 (cris_gdbarch_init): Update.
4569 * alpha-tdep.c (alpha_register_raw_size)
4570 (alpha_register_virtual_size): Delete.
4571 (alpha_gdbarch_init): Update.
4573 * gdbarch.sh (deprecated_register_virtual_type)
4574 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4575 (deprecated_dummy_write_sp): Delete.
4576 * gdbarch.h, gdbarch.c: Re-generate.
4578 * gdbarch.sh (deprecated_register_bytes): Delete.
4579 * gdbarch.h, gdbarch.c: Re-generate.
4580 * regcache.c (deprecated_register_bytes): New function.
4581 * regcache.h (deprecated_register_bytes): Declare.
4582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4583 * v850-tdep.c (v850_gdbarch_init): Update.
4584 * sh64-tdep.c (sh64_gdbarch_init): Update.
4585 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4586 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4587 * mcore-tdep.c (mcore_gdbarch_init): Update.
4588 * cris-tdep.c (cris_gdbarch_init): Update.
4589 * arm-tdep.c (arm_gdbarch_init): Update.
4590 * remote.c (init_remote_state): Update.
4591 * remote-vx.c (vx_prepare_to_store): Update.
4592 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4593 * irix5-nat.c (fetch_core_registers): Update.
4594 * cris-tdep.c (cris_register_bytes_ok): Update.
4595 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4597 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4598 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4599 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4600 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4601 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4602 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4603 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4604 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4605 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4606 with mips_insn16 and mips_insn32.
4608 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4609 * rs6000-tdep.c (rs6000_push_dummy_call)
4610 (rs6000_extract_return_value): Use register_size.
4611 * xstormy16-tdep.c (xstormy16_get_saved_register)
4612 (xstormy16_extract_return_value): Ditto.
4613 * valops.c (value_assign): Ditto.
4614 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4615 * v850-tdep.c (v850_extract_return_value): Ditto.
4616 * tracepoint.c (collect_symbol): Ditto.
4617 * target.c (debug_print_register): Ditto.
4618 * stack.c (frame_info): Ditto.
4619 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4620 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4621 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4622 (store_register_using_P): Ditto.
4623 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4624 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4625 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4626 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4627 * regcache.c (deprecated_read_register_bytes)
4628 (deprecated_write_register_bytes, read_register)
4629 (write_register): Ditto.
4630 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4631 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4632 * monitor.c (monitor_supply_register, monitor_fetch_register)
4633 (monitor_store_register): Ditto.
4634 * mn10300-tdep.c (mn10300_pop_frame_regular)
4635 (mn10300_print_register): Ditto.
4636 * mipsv4-nat.c (fill_fpregset): Ditto.
4637 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4638 (mips64_fill_fpregset): Ditto.
4639 * mi/mi-main.c (register_changed_p, get_register)
4640 (mi_cmd_data_write_register_values): Ditto.
4641 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4642 * irix5-nat.c (fill_gregset, fetch_core_registers):
4643 * infrun.c (write_inferior_status_register): Ditto.
4644 * infptrace.c (fetch_register, store_register): Ditto.
4645 * infcmd.c (default_print_registers_info): Ditto.
4646 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4647 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4648 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4649 * hpux-thread.c (hpux_thread_fetch_registers)
4650 (hpux_thread_store_registers): Ditto.
4651 * hppah-nat.c (store_inferior_registers, fetch_register):
4652 * findvar.c (value_from_register): Ditto.
4653 * dve3900-rom.c (fetch_bitmapped_register):
4654 * cris-tdep.c (cris_gdbarch_init): Ditto.
4655 * alpha-tdep.h: Ditto.
4656 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4658 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4659 DEPRECATED_REGISTER_RAW_SIZE from comments.
4660 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4661 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4662 DEPRECATED_REGISTER_RAW_SIZE.
4663 * findvar.c (value_of_register): Simplify by assuming that the
4664 registers raw and virtual sizes are identical.
4665 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4667 * arch-utils.c (generic_register_size): Simplify by assuming
4670 * regcache.c (legacy_read_register_gen, real_register)
4671 (legacy_write_register_gen): Delete, not used.
4673 * regcache.c (struct regcache_descr): Delete legacy_p.
4674 (init_legacy_regcache_descr): Delete function.
4675 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4676 Do not use deprecated register functions.
4677 (regcache_raw_read, deprecated_write_register_gen):
4678 (deprecated_read_register_gen, regcache_raw_write): Delete code
4679 predicated on legacy_p.
4680 (register_size): Delete check against register raw size.
4682 * cris-tdep.c (cris_register_type): Replace
4683 cris_register_virtual_type.
4684 (cris_gdbarch_init): Update, set register_type.
4686 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4687 * gdbarch.h, gdbarch.c: Re-generate.
4688 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4689 (arm_gdbarch_init) Do not set frameless function invocation.
4690 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4691 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4692 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4693 (frv_gdbarch_init): Do not set frameless function invocation.
4694 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4695 * sh-tdep.c (sh_gdbarch_init): Ditto.
4696 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4698 * avr-tdep.c (avr_gdbarch_init): Ditto.
4700 * blockframe.c (legacy_frame_chain_valid): Delete function.
4702 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4703 and pc. Update comments.
4704 (pc_in_dummy_frame): Delete function.
4705 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4707 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4708 call_hi, top and pc, use the id.
4709 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4711 * dummy-frame.c: Include "gdb_string.h".
4712 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4713 (generic_save_dummy_frame_tos): Delete.
4714 (dummy_frame_push): New function, replaces above.
4715 * dummy-frame.h: Update copyright.
4716 (dummy_frame_push): Declare.
4717 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4718 (generic_save_call_dummy_addr): Delete declarations.
4719 * infcall.c: Include "dummy-frame.h".
4720 (call_function_by_hand): Add locals caller_regcache,
4721 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4722 with call to frame_save_as_regcache plus cleanup. Delete calls to
4723 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4724 Move clear_proceed_status to just before the resume, add call to
4725 dummy_frame_push (discard cleanup).
4726 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4727 (dummy-frame.o): Add $(gdb_string_h).
4729 2004-08-01 Andrew Cagney <cagney@gnu.org>
4731 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4732 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4733 * dummy-frame.c (find_dummy_frame): Delete.
4734 (struct dummy_frame_cache, dummy_frame_sniffer)
4735 (dummy_frame_prev_register, dummy_frame_this_id)
4736 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4737 frame unwinder using a dummy_frame_cache.
4739 2004-08-01 Andrew Cagney <cagney@gnu.org>
4741 * frame.h (frame_save_as_regcache): Declare.
4742 * frame.c (frame_save_as_regcache): New function.
4743 (do_frame_read_register): Replace do_frame_unwind_register.
4744 (frame_pop): Use frame_save_as_regcache.
4745 * dummy-frame.c (generic_push_dummy_frame): Use
4746 frame_save_as_regcache.
4748 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4750 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4751 file as included until we record the first line in the linetable.
4753 2004-08-01 Andrew Cagney <cagney@gnu.org>
4755 * frame.h (deprecated_pop_dummy_frame)
4756 (deprecated_read_register_dummy)
4757 (deprecated_generic_find_dummy_frame): Delete.
4758 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4759 (deprecated_read_register_dummy)
4760 (deprecated_find_dummy_frame_regcache)
4761 (discard_innermost_dummy)
4762 (deprecated_pop_dummy_frame): Delete.
4763 (dummy_frame_this_id): Simplify.
4764 (struct dummy_frame): Delete "fp" and "sp".
4765 (find_dummy_frame): Simplify.
4766 (generic_push_dummy_frame): Do not set "fp" or "sp".
4767 (fprint_dummy_frames): Do not print "fp" and "sp"
4769 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4771 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4772 (struct i386_insn): New structure.
4773 (i386_match_insn): New function.
4774 (i386_frame_setup_skip_insns): New variable.
4775 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4776 array i386_frame_setup_insns of instructions that should be
4777 skipped inside the frame setup sequence.
4779 2004-08-01 Andrew Cagney <cagney@gnu.org>
4781 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4782 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4783 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4784 * stack.c (frame_info): Delete references to
4785 DEPRECATED_FRAME_INIT_SAVED_REGS and
4786 deprecated_get_frame_saved_regs.
4787 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4788 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4789 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4790 (frame_unwind_register_signed)
4791 (frame_unwind_register_unsigned)
4792 (frame_unwind_unsigned_register): Use register_size.
4793 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4794 (deprecated_frame_xmalloc_with_cleanup)
4795 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4796 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4798 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4799 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4800 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4801 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4803 * infcall.c (call_function_by_hand): Do not use
4804 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4805 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4806 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4807 DEPRECATED_STACK_ALIGN.
4809 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4811 Committed by Andrew Cagney.
4812 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4814 2004-08-01 Andrew Cagney <cagney@gnu.org>
4816 * mips-tdep.c (mips16_frame_cache)
4817 (mips16_frame_this_id, mips16_frame_prev_register)
4818 (mips16_frame_unwind, mips16_frame_sniffer)
4819 (mips16_frame_base_address, mips16_frame_base)
4820 (mips16_frame_base_sniffer, mips32_frame_cache)
4821 (mips32_frame_this_id, mips32_frame_prev_register)
4822 (mips32_frame_unwind, mips32_frame_sniffer)
4823 (mips32_frame_base_address, mips32_frame_base)
4824 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4825 separate heuristic mips16 and mips32 unwinders.
4826 (mips_stub_frame_cache, mips_stub_frame_this_id)
4827 (mips_stub_frame_prev_register)
4828 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4829 (mips_stub_frame_base_address, mips_stub_frame_base)
4830 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4831 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4832 match true mdebug frames.
4833 (non_heuristic_proc_desc): Add forward declaration.
4835 2004-08-01 Andrew Cagney <cagney@gnu.org>
4837 * config/mips/tm-irix6.h: Delete file.
4838 * config/mips/tm-irix5.h: Delete file.
4839 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4840 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4842 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4843 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4844 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4845 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4846 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4847 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4848 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4849 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4850 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4851 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4852 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4853 (TARGET_SIGNAL_RAW_VALUES): Delete.
4854 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4856 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4857 (TARGET_HW_WATCH_LIMIT): Delete.
4858 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4859 * minimon.h: Delete file.
4861 * trad-frame.c (trad_frame_get_this_base)
4862 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4864 * trad-frame.h (trad_frame_set_this_base)
4865 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4867 2004-07-31 Andrew Cagney <cagney@gnu.org>
4869 * trad-frame.c (trad_frame_get_prev_register): Rename
4870 trad_frame_get_prev_register.
4871 * vax-tdep.c (vax_frame_prev_register): Update.
4872 * trad-frame.h: Update.
4873 * trad-frame.c (trad_frame_get_register): Update.
4874 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4875 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4877 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4878 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4880 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4882 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4884 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4886 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4888 * s390-tdep.c (s390_frame_prev_register)
4889 (s390_stub_frame_prev_register)
4890 (s390_sigtramp_frame_prev_register): Update.
4891 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4892 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4893 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4894 * m88k-tdep.c (m88k_frame_prev_register)
4895 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4896 * m32r-tdep.c (m32r_frame_prev_register): Update.
4897 * hppa-tdep.c (hppa_frame_prev_register_helper)
4898 * frv-tdep.c (frv_frame_prev_register): Update.
4899 * d10v-tdep.c (d10v_frame_prev_register): Update.
4900 * cris-tdep.c (cris_frame_prev_register): Update.
4901 * avr-tdep.c (avr_frame_prev_register): Update.
4902 * arm-tdep.c (arm_prologue_prev_register)
4903 (arm_sigtramp_prev_register): Update.
4905 2004-07-31 Andrew Cagney <cagney@gnu.org>
4907 * frame.h (legacy_saved_regs_unwind)
4908 (legacy_frame_chain_valid, legacy_frame_p)
4909 (enum frame_type): Delete UNKNOWN_FRAME.
4910 * dummy-frame.c (dummy_frame_this_id): Simplify.
4911 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4912 * frame.c (struct frame_info): Delete the field "type".
4913 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4914 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4915 (legacy_saved_regs_unwind, legacy_frame_p)
4916 (frame_type_from_pc): Delete.
4917 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4918 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4920 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4922 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4925 * mips-nat.c: Remove file.
4926 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4927 (mips-nat.o): Remove dependency.
4929 * infptrace.c: Update copyright year.
4930 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4931 explicitly setting the buffer to all zeroes.
4933 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4934 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4936 2004-07-30 Andrew Cagney <cagney@gnu.org>
4938 * GDB 6.2 released from gdb_6_2-branch.
4940 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4942 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4944 * exec.c (exec_file_attach):
4945 * nto-tdep.c (nto_find_and_open_solib):
4946 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4947 * solib.c (solib_open):
4948 * somsolib.c (som_solib_sizeof_symbol_table):
4949 * source.c (is_regular_file, openp, open_source_file):
4950 * symfile.c (symfile_bfd_open):
4951 * wince.c (upload_to_device): Differentiate between the search for
4952 binary and source files.
4954 2004-07-30 Andrew Cagney <cagney@gnu.org>
4956 * complaints.c (_initialize_complaints): Pass NULL to
4957 add_setshow_zinteger_cmd for help_doc.
4958 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4960 2004-07-30 Andrew Cagney <cagney@gnu.org>
4963 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4964 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4965 $(PACKAGE).pot and update-po.
4966 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4967 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4968 (update-po): New rules.
4969 (localedir): Define using autoconf.
4970 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4971 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4972 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4973 * configure.in: Generate CATALOGS and LINGUAS from contents of
4974 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4975 * configure: Re-generate.
4976 * po/gdbtext: New file
4978 2004-07-30 Jerome Guitton <guitton@gnat.com>
4980 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4983 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4985 * dwarf2read.c (read_file_scope): Set producer if attribute
4987 (struct dwarf2_cu): Added new member producer.
4989 2004-07-30 Jerome Guitton <guitton@gnat.com>
4991 * inflow.c (kill_command): release file handles in BFD.
4992 * exec.c (exec_file_attach): Ditto.
4993 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4995 2004-07-29 Andrew Cagney <cagney@gnu.org>
4997 * PROBLEMS (mips-irix): Note that it is broken.
4999 2004-07-29 Andrew Cagney <cagney@gnu.org>
5001 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5002 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5004 * config/xm-nbsd.h: Delete file.
5005 * config/arm/xm-nbsd.h: Delete file.
5006 * config/i386/xm-nbsd.h: Delete file.
5007 * config/ns32k/xm-nbsd.h: Delete file.
5008 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5009 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5010 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5011 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5012 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5014 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5015 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5016 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5017 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5018 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5019 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5021 * config/powerpc/xm-linux.h: Delete empty file.
5022 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5023 * config/powerpc/linux.mh (XM_FILE): Delete.
5024 * config/m68k/xm-linux.h: Delete empty file.
5025 * config/m68k/linux.mh (XM_FILE): Delete.
5026 * config/ia64/xm-linux.h: Delete empty file.
5027 * config/ia64/linux.mh (XM_FILE): Delete.
5028 * config/arm/xm-linux.h: Delete empty file.
5029 * config/arm/linux.mh (XM_FILE): Delete.
5031 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5032 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5033 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5034 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5035 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5036 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5037 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5038 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5040 * config/m68k/xm-m68k.h: Delete file.
5041 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5043 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5044 * config/pa/xm-linux.h: Delete empty file.
5045 * config/pa/linux.mh (XM_FILE): Delete.
5046 * config/i386/xm-i386.h: Delete empty file.
5047 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5049 * config/i386/obsdaout.mh (XM_FILE): Delete.
5050 * config/i386/obsd64.mh (XM_FILE): Delete.
5051 * config/i386/fbsd64.mh (XM_FILE): Delete.
5052 * config/i386/nto.mh (XM_FILE): Delete.
5053 * config/i386/obsd.mh (XM_FILE): Delete.
5054 * config/i386/linux64.mh (XM_FILE): Delete.
5055 * config/i386/linux.mh (XM_FILE): Delete.
5056 * config/i386/i386sol2.mh (XM_FILE): Delete.
5057 * config/i386/i386gnu.mh (XM_FILE): Delete.
5058 * config/i386/fbsd.mh (XM_FILE): Delete.
5059 * config/i386/nbsd64.mh (XM_FILE): Delete.
5061 2004-07-29 Andrew Cagney <cagney@gnu.org>
5063 * config/pa/xm-linux.h: Do not include "floatformat.h".
5064 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5065 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5066 * config/i386/xm-i386.h: Do not include "floatformat.h".
5067 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5068 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5069 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5070 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5071 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5072 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5073 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5074 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5075 * configure, config.in: Regenerate.
5076 * configure.host (gdb_host_float_format, gdb_host_double_format)
5077 (gdb_host_long_double_format): Set according to the host.
5079 2004-07-29 Andrew Cagney <cagney@gnu.org>
5081 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5083 2004-07-28 Andrew Cagney <cagney@gnu.org>
5085 * PROBLEMS: Mention threads/1650.
5086 * NEWS: Mention the NPTL fix.
5088 2004-07-28 Andrew Cagney <cagney@gnu.org>
5090 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5091 (add_setshow_cmd_full): Make static.
5092 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5093 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5094 * cli/cli-decode.c (add_setshow_filename_cmd)
5095 (add_setshow_string_cmd): New functions.
5096 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5097 * mips-tdep.c (_initialize_mips_tdep): Update.
5098 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5099 * cli/cli-logging.c (_initialize_cli_logging): Update.
5100 * complaints.c (_initialize_complaints): Update.
5101 * remote.c (_initialize_remote): Update.
5103 2004-07-28 Andrew Cagney <cagney@gnu.org>
5105 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5106 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5107 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5108 print parameters. Make string parameters constant.
5109 * command.h: Update. Update copyright.
5110 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5111 * observer.c (_initialize_observer): Ditto.
5112 * frame.c (_initialize_frame): Ditto.
5113 * complaints.c (_initialize_complaints): Ditto.
5114 * maint.c (_initialize_maint_cmds): Ditto.
5115 * target.c (initialize_targets): Ditto.
5116 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5117 * infcall.c (_initialize_infcall): Ditto.
5118 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5119 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5120 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5121 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5122 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5124 2004-07-28 Andrew Cagney <cagney@gnu.org>
5126 * gdbtypes.c (lookup_primitive_typename): Delete function.
5127 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5128 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5129 * gdbtypes.c (lookup_typename): Ditto.
5130 * f-exp.y (yylex): Ditto.
5131 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5133 * scm-lang.c (c_builtin_types): Delete extern declaration.
5134 (scm_language_defn): Replace
5135 string_char_type and primitive_type_vector with
5136 la_language_arch_info.
5137 * jv-lang.c (java_language_defn): Replace
5138 string_char_type and primitive_type_vector with
5139 la_language_arch_info.
5140 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5141 c_builtin_types in comment.
5142 * c-lang.h (struct language_arch_info): Declare opaque.
5143 (c_language_arch_info): Declare.
5144 (c_builtin_types): Delete declaration.
5145 * c-lang.c (c_language_arch_info): Set string_char_type to
5146 builtin_char, not builtin_true_char. Make global.
5147 (c_builtin_types): Delete array.
5148 (asm_language_defn, minimal_language_defn): Replace
5149 string_char_type and primitive_type_vector with
5150 la_language_arch_info.
5152 2004-07-28 Andrew Cagney <cagney@gnu.org>
5154 * gdbtypes.h (struct builtin_type): Rename true_char to
5156 * gdbtypes.c (gdbtypes_post_init): Update.
5157 * c-lang.c (arch_info): New function.
5158 (enum c_primitive_types): New enum.
5159 (c_language_defn): Instead of string_char_type and
5160 primitive_type_vector set la_language_arch_info.
5162 2004-07-28 Andrew Cagney <cagney@gnu.org>
5164 * language.h (struct language_arch_info): Fix typo
5165 s/primative/primitive/.
5166 * gdbtypes.c (lookup_primitive_typename): Ditto.
5167 * language.c (language_lookup_primitive_type_by_name)
5168 (unknown_language_arch_info): Ditto.
5170 2004-07-27 Andrew Cagney <cagney@gnu.org>
5172 * defs.h (enum language): Add nr_languages.
5173 * language.h (struct language_arch_info): Define.
5174 (struct language_defn): Add la_language_arch_info.
5175 (language_lookup_primative_type_by_name): Declare.
5176 (language_string_char_type): Declare.
5177 * language.c (_initialize_language, language_gdbarch_post_init)
5178 (struct language_gdbarch, language_gdbarch_data): Implement
5179 per-architecture language information.
5180 (unknown_language_arch_info, language_string_char_type)
5181 (language_lookup_primative_type_by_name): New functions.
5182 (unknown_language_defn, auto_language_defn)
5183 (local_language_defn): Set la_language_arch_info to
5184 unknown_language_arch_info.
5185 (unknown_builtin_types): Delete.
5186 * gdbtypes.c (lookup_primitive_typename): Use
5187 language_lookup_primative_type_by_name.
5188 (create_string_type): Use language_string_char_type.
5189 * values.c (value_from_string): Use language_string_char_type.
5190 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5191 * p-lang.c (pascal_language_defn): Ditto.
5192 * m2-lang.c (m2_language_defn): Ditto.
5193 * jv-lang.c (java_language_defn): Ditto.
5194 * objc-lang.c (objc_language_defn): Ditto.
5195 * f-lang.c (f_language_defn): Ditto.
5196 * c-lang.c (c_language_defn, cplus_language_defn)
5197 (asm_language_defn, minimal_language_defn): Ditto.
5199 2004-07-27 Andrew Cagney <cagney@gnu.org>
5201 * gdbtypes.h (struct builtin_type): Declare.
5202 (builtin_type): Declare.
5203 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5204 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5205 (gdbtypes_post_init): New function.
5206 (builtin_type): New function.
5208 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5210 * remote-m32r-sdi.c: Fix breakpoint bug.
5211 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5212 recv_char_data, recv_long_data): New functions to replace communication
5215 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5217 Document PR threads/1650.
5218 * PROBLEMS (Threads): Document problem with many threads
5220 2004-07-26 Andrew Cagney <cagney@gnu.org>
5222 * gdb-mi.el: Move from here ...
5223 * mi/gdb-mi.el: ... to here.
5225 2004-07-26 Andrew Cagney <cagney@gnu.org>
5227 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5228 * main.c (captured_main): When in batch mode always detach.
5230 2004-07-26 Andrew Cagney <cagney@gnu.org>
5232 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5233 and h8300 as broken.
5234 * NEWS: END-OF-LIFE frame compatibility module.
5235 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5238 2004-07-26 Andrew Cagney <cagney@gnu.org>
5240 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5241 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5242 * wince.c (_initialize_wince): Update.
5243 * win32-nat.c (_initialize_win32_nat): Update.
5244 * varobj.c (_initialize_varobj): Update.
5245 * valops.c (_initialize_valops): Update.
5246 * utils.c (initialize_utils, initialize_utils): Update.
5247 * tui/tui-win.c (_initialize_tui_win): Update.
5248 * top.c (init_main): Update.
5249 * symfile.c (_initialize_symfile): Update.
5250 * source.c (_initialize_source): Update.
5251 * somsolib.c (_initialize_som_solib): Update.
5252 * solib.c (_initialize_solib): Update.
5253 * solib-frv.c (_initialize_frv_solib): Update.
5254 * serial.c (_initialize_serial): Update.
5255 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5256 * remote.c (_initialize_remote, _initialize_remote): Update.
5257 * remote-vx.c (_initialize_vx): Update.
5258 * remote-utils.c (_initialize_sr_support): Update.
5259 * remote-sds.c (_initialize_remote_sds): Update.
5260 * remote-mips.c (_initialize_remote_mips): Update.
5261 * remote-e7000.c (_initialize_remote_e7000): Update.
5262 * proc-api.c (_initialize_proc_api): Update.
5263 * printcmd.c: Update.
5264 * parse.c (_initialize_parse): Update.
5265 * pa64solib.c (_initialize_pa64_solib): Update.
5266 * p-valprint.c (_initialize_pascal_valprint): Update.
5267 * monitor.c (_initialize_remote_monitors): Update.
5268 * mips-tdep.c (_initialize_mips_tdep): Update.
5269 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5270 * maint.c (_initialize_maint_cmds): Update.
5271 * lin-lwp.c (_initialize_lin_lwp): Update.
5272 * language.c (_initialize_language): Update.
5273 * kod.c (_initialize_kod): Update.
5274 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5275 * i386-tdep.c (_initialize_i386_tdep): Update.
5276 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5277 * gdbarch.sh: Update.
5278 * gdbarch.c: Re-generate.
5279 * gdb-events.sh: Update.
5280 * gdb-events.c: Re-generate.
5281 * frame.c (_initialize_frame): Update.
5283 * demangle.c (_initialize_demangler): Update.
5284 * dcache.c (_initialize_dcache): Update.
5285 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5286 * cp-valprint.c (_initialize_cp_valprint): Update.
5287 * corefile.c (_initialize_core): Update.
5288 * command.h: Update.
5289 * cli/cli-decode.h: Update.
5290 * cli/cli-cmds.c (init_cli_cmds): Update.
5291 * charset.c (_initialize_charset): Update.
5292 * breakpoint.c (_initialize_breakpoint): Update.
5293 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5294 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5295 * aix-thread.c (_initialize_aix_thread): Update.
5297 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5299 Partial fix for PR backtrace/1718.
5300 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5301 that GCC migrates into the prolugue. Don't handle any
5302 instructions that clobber %ebx.
5304 2004-07-23 Andrew Cagney <cagney@gnu.org>
5306 Use regcache_raw_collect instead of regcache_collect.
5307 * regcache.h (regcache_collect): Delete declaration.
5308 * regcache.c (regcache_colect): Delete function.
5309 * win32-nat.c (do_child_store_inferior_registers): Update.
5310 * sol-thread.c (sol_thread_store_registers): Update.
5311 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5312 * rs6000-nat.c (store_register): Update.
5313 * remote.c (store_register_using_P, remote_store_registers): Update.
5314 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5315 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5316 (fill_vrregset, store_spe_registers, fill_gregset)
5317 (fill_gregset): Update.
5318 * nto-procfs.c (procfs_store_registers): Update.
5319 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5320 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5321 * m68klinux-nat.c (store_register, fill_gregset): Update.
5322 * m68k-tdep.c (fill_gregset): Update.
5323 * infptrace.c (store_register): Update.
5324 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5325 * i386-linux-nat.c (store_register, fill_gregset): Update.
5326 * hppa-linux-nat.c (fill_gregset): Update.
5327 * go32-nat.c (store_register): Update.
5328 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5329 (store_fp_regs): Update.
5330 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5331 (store_nwfpe_extended, store_fpregister, store_fpregs)
5332 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5333 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5334 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5335 (store_regs_user_thread, store_regs_kernel_thread): Update.
5337 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5339 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5340 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5342 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5343 member of `struct comp_unit'.
5345 2004-07-23 Andrew Cagney <cagney@gnu.org>
5347 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5348 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5350 2004-07-23 Martin Hunt <hunt@redhat.com>
5351 Kevin Buettner <kevinb@redhat.com>
5353 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5354 alignment was being added to the offset instead of multiplied.
5356 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5358 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5359 changed signal trampoline in OpenBSD 3.5-current.
5361 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5362 <machine/pcb.h> and "bsd-kvm.h".
5363 (sparc64nbsd_supply_pcb): New function.
5364 (_initialize_sparc64nbsd_nat): Renamed from
5365 _initialize_sparcnbsd_nat. Enable libkvm interface.
5366 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5367 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5368 (LOADLIBES): New variable.
5370 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5372 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5374 2004-07-21 Andrew Cagney <cagney@gnu.org>
5376 Use regcache_raw_supply instead of supply_register.
5377 * regcache.h (supply_register): Delete declaration.
5378 * regcache.c (supply_register): Delete function.
5379 * wince.c (do_child_fetch_inferior_registers): Update.
5380 * win32-nat.c (do_child_fetch_inferior_registers)
5381 (fetch_elf_core_registers): Update.
5382 * v850ice.c (v850ice_fetch_registers): Update.
5383 * thread-db.c (thread_db_store_registers): Update.
5384 * sol-thread.c (sol_thread_store_registers): Update.
5385 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5386 * rs6000-nat.c (fetch_register): Update.
5387 * rom68k-rom.c (rom68k_supply_one_register): Update.
5388 * remote.c (remote_wait, remote_async_wait): Update.
5389 * remote-st.c (get_hex_regs): Update.
5390 * remote-sim.c (gdbsim_fetch_register): Update.
5391 * remote-sds.c (sds_fetch_registers): Update.
5392 * remote-rdp.c (remote_rdp_fetch_register): Update.
5393 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5394 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5395 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5396 * remote-hms.c (init_hms_cmds): Update.
5397 * remote-est.c (init_est_cmds): Update.
5398 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5399 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5400 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5401 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5402 (fetch_register, supply_vrregset, supply_vrregset)
5403 (fetch_spe_registers): Update.
5404 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5405 * monitor.c (monitor_supply_register): Update.
5406 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5407 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5408 (mipsnbsd_supply_fpreg): Update.
5409 * mips-nat.c (fetch_inferior_registers)
5410 (fetch_core_registers): Update.
5411 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5412 (supply_fpregset, mips64_supply_gregset)
5413 (mips64_supply_fpregset): Update.
5414 * m68klinux-nat.c (fetch_register, supply_gregset)
5415 (supply_fpregset): Update.
5416 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5417 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5418 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5419 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5420 * infptrace.c (fetch_register): Update.
5421 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5422 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5423 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5424 (gnu_fetch_registers, gnu_store_registers): Update.
5425 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5426 * i386-linux-nat.c (fetch_register, supply_gregset)
5427 (dummy_sse_values): Update.
5428 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5429 * hppah-nat.c (fetch_register): Update.
5430 * hppa-linux-nat.c (fetch_register, supply_gregset)
5431 (supply_fpregset): Update.
5432 * go32-nat.c (fetch_register): Update.
5433 * dve3900-rom.c (fetch_bitmapped_register)
5434 (_initialize_r3900_rom): Update.
5435 * cris-tdep.c (supply_gregset): Update.
5436 * abug-rom.c (init_abug_cmds): Update.
5437 * core-aout.c (fetch_core_registers): Update.
5438 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5439 (fetch_register, fetch_fp_register): Update.
5440 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5441 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5442 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5443 * alphanbsd-tdep.c (fetch_core_registers): Update.
5444 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5445 * alpha-nat.c (fetch_osf_core_registers)
5446 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5447 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5448 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5450 2004-07-21 Andrew Cagney <cagney@gnu.org>
5452 * PROBLEMS: Mention breakpoints/1702.
5453 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5454 that is known to work.
5456 2004-07-21 Andrew Cagney <cagney@gnu.org>
5458 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5459 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5460 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5461 (handle_inferior_event): Wrap call to deprecated
5462 IGNORE_HELPER_CALL in #ifdef.
5463 * config/mips/tm-nbsd.h: Update.
5465 2004-07-20 Jim Blandy <jimb@redhat.com>
5467 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5468 bfd_mach_ppc has no segment registers.
5470 Include PowerPC SPR numbers for special-purpose registers.
5471 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5472 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5473 new member in initializer.
5474 (S, S4, SN4, S64): New macros for defining special-purpose
5476 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5477 registers_403, registers_403GC, registers_505, registers_860,
5478 registers_601, registers_602, registers_603, registers_604,
5479 registers_750, registers_e500): Use them.
5481 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5482 replace references with expression used to initialize variable.
5484 2004-07-20 Andrew Cagney <cagney@gnu.org>
5486 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5488 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5489 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5490 (s390_sigtramp_frame_sniffer): Update.
5491 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5492 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5493 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5494 (mips32_fetch_instruction): Update.
5495 * mcore-tdep.c (get_insn): Update.
5496 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5497 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5498 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5499 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5500 (i386_linux_rt_sigtramp_start): Update.
5501 * i386-linux-nat.c (child_resume): Update.
5502 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5503 * hppa-linux-tdep.c (insns_match_pattern): Update.
5504 * gdbcore.h: Update.
5505 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5506 * frame.c (safe_frame_unwind_memory): Update.
5507 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5508 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5509 * alpha-tdep.c (alpha_read_insn): Update.
5511 2004-07-20 Andrew Cagney <cagney@gnu.org>
5513 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5514 containing both bytes and mask. Add "frame_type".
5515 * tramp-frame.c (tramp_frame_start): Update.
5516 (tramp_frame_prepend_unwinder): Update.
5517 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5518 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5519 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5520 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5522 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5524 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5525 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5526 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5527 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5529 2004-07-17 Andrew Cagney <cagney@gnu.org>
5531 * NEWS, PROBLEMS: Update for 6.2.
5533 * README: Update to 6.2.
5535 * utils.c (xvasprintf): Call xstrvprintf.
5537 * parse.c: Update copyright.
5538 (null_post_parser): Eliminate ARGSUSED.
5540 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5541 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5542 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5544 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5545 * ppc-linux-nat.c: Use "Linux kernel".
5546 * hppa-linux-tdep.c: Use GNU/Linux.
5547 * hppa-linux-nat.c: Use GNU/Linux.
5548 * dwarfread.c: Add [sic] to use of Linux.
5550 * hppa-linux-nat.c: Do not include <string.h>.
5551 (supply_fpregset): Remove "register" attribute.
5553 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5555 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5557 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5558 * configure, config.in: Regenerated.
5560 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5562 (vaxbsd_supply_pcb): New function.
5563 (_initialize_vaxbsd_nat): New prototype and function.
5564 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5566 (LOADLIBES): New variable.
5567 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5568 (LOADLIBES): New variable.
5569 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5570 (LOADLIBES): New variable.
5571 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5573 2004-07-16 Andrew Cagney <cagney@gnu.org>
5575 * defs.h (event_loop_p): Replace variable declaration with macro,
5577 * main.c (captured_main): Delete options "-async" and "-noasync".
5578 (event_loop_p): Delete variable.
5579 * NEWS: Mention that "-async" and "-noasync" were removed.
5581 2004-07-16 Andrew Cagney <cagney@gnu.org>
5583 * remote-m32r-sdi.c: Re-indent.
5585 2004-07-16 Jim Blandy <jimb@redhat.com>
5587 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5588 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5589 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5590 missing MPC823 SPRs.
5591 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5592 incorrect. (This was corrected in GDB's register name tables on
5595 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5596 should be "esasrr" ("ESA Save and Restore Register").
5598 2004-07-16 Andrew Cagney <cagney@gnu.org>
5600 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5601 calls, no longer applicable. Update comments and rename parameter
5602 "step_frame" to "return_frame".
5604 2004-07-16 Andrew Cagney <cagney@gnu.org>
5606 * frame.c (fprint_field): New function.
5607 (fprint_frame_id): Use fprint_field.
5609 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5611 * ada-lang.c (ada_language_defn): Remove commented out code.
5613 2004-07-15 Jim Blandy <jimb@redhat.com>
5615 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5616 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5618 2004-07-14 Jim Blandy <jimb@redhat.com>
5620 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5622 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5624 * ppc-tdep.h (ppc_num_srs): New enum constant.
5626 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5627 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5628 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5629 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5630 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5631 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5632 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5633 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5634 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5635 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5636 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5637 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5638 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5639 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5640 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5641 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5642 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5643 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5644 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5645 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5646 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5647 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5648 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5649 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5650 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5651 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5652 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5653 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5654 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5655 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5656 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5657 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5658 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5659 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5660 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5661 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5662 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5663 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5664 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5665 special-purpose register numbers.
5667 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5668 manual mentions 'md_twb', but many mention 'm_twb', and at that
5669 point in the register list.)
5671 2004-07-14 Andrew Cagney <cagney@gnu.org>
5673 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5674 instead of "internal-error".
5676 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5678 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5679 that was inserted inside a comment.
5681 2004-07-10 Randolph Chung <tausq@debian.org>
5683 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5685 (hppa_hpux_push_dummy_code): New function.
5686 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5687 Set find_global_pointer method.
5689 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5691 * NEWS: Mention BSD libkvm interface.
5693 2004-07-10 Michael Snyder <msnyder@redhat.com>
5695 * symfile.c (generic_load): Comment typo.
5696 * stack.c (get_selected_block): Ditto.
5697 * regcache.c (regcache_cooked_read): Ditto.
5698 * monitor.c (monitor_debug): Ditto.
5699 * mips-tdep.c (mips_read_pc): Ditto.
5700 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5701 * gdb_mbuild.sh: Ditto.
5702 * gdbarch.sh: Ditto.
5705 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5707 * ada-tasks.c: Remove file.
5709 Remove ARI problems:
5711 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5714 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5716 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5717 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5718 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5719 (UMIN_OF_SIZE): Remove.
5720 (max_of_type): New function to replace orphan macro in gdbtypes.h
5721 (min_of_type): Ditto.
5722 (discrete_type_high_bound): Use max_of_type.
5723 (discrete_type_low_bound): Use min_of_type.
5724 (possible_user_operator_p): Move operator to beginning of line.
5725 (ada_is_variant_part): Ditto.
5726 (ensure_lval): Rewrite to avoid deprecated operations.
5727 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5728 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5729 (ada_enum_name): Remove assignments in 'if' statements.
5730 (build_ada_types): Add gdbarch parameter.
5731 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5732 with gdbarch_data_register_post_init.
5733 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5736 * ada-valprint.c (inspect_it): Remove declaration.
5737 (repeat_count_threshold): Remove declaration.
5738 (ada_print_floating): Remove assignments in 'if' statements.
5739 (print_str): Move operator to beginning of line.
5741 2004-07-08 Jim Blandy <jimb@redhat.com>
5743 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5745 2004-07-08 Bob Rossi <bob@brasko.net>
5747 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5749 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5751 * language.h (struct_language_defn): Add new function pointer:
5752 la_class_name_from_physname. Also add new prototype for
5753 language_class_name_from_physname.
5754 * language.c (language_class_name_from_physname): New function.
5755 (unk_lang_class_name): Ditto.
5756 (unknown_language_defn, auto_language_defn): Change
5757 to add unk_lang_class_name function pointer for
5758 la_class_name_from_physname.
5759 (local_language_defn): Ditto.
5760 * dwarf2read.c (guess_structure_name): Change to call
5761 language_class_name_from_physname.
5762 (determine_class_name): Ditto.
5763 * cp-support.c (class_name_from_physname): Renamed.
5764 (cp_class_name_from_physname): New name of function.
5765 * cp-support.h: Ditto.
5766 * c-lang.c (c_language_defn): Change to add NULL
5767 for class_name_from_physname function pointer.
5768 (cplus_language_defn): Change to add cp_class_name_from_physname.
5769 * jv-lang.c (java_class_name_physname): New function.
5770 (java_find_last_component): New static routine.
5771 (java_language_defn): Add java_class_name_from_physname pointer.
5772 * ada-lang.c (ada_language_defn): Change to add NULL
5773 for class_name_from_physname function pointer.
5774 * f-lang.c (f_language_defn): Ditto.
5775 * m2-lang.c (m2_language_defn): Ditto.
5776 * objc-lang.c (objc_language_defn): Ditto.
5777 * p-lang.c (pascal_language_defn): Ditto.
5778 * scm-lang.c (scm_language_defn): Ditto.
5780 2004-07-06 Andrew Cagney <cagney@gnu.org>
5782 Patch from Bart Robinson.
5783 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5784 (O_LARGEFILE): Define to 0, if not defined.
5786 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5788 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5789 <machine/pcb.h> and "bsd-kvm.h".
5790 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5791 (m68kbsd_supply_pcb): New function.
5792 (_initialize_m68kbsd_nat): New prototype and function.
5793 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5794 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5795 (LOADLIBES): New variable.
5796 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5797 (LOADLIBES): New variable.
5799 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5801 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5803 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5805 (bsd_kvm_cmdlist): New variable.
5806 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5807 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5808 command and "kvm proc" command.
5809 * Makefile.in (bsd-kvm.o): Update dependencies.
5811 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5813 * osabi.c: Update copyright year.
5814 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5815 notes if EI_OSABI is set to ELFOSABI_HPUX.
5817 2004-07-01 Michael Snyder <msnyder@redhat.com>
5819 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5820 that seems to have gotten whacked out of line.
5822 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5824 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5827 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5829 * ada-lang.c (decode_packed_array): Minor change to comment.
5830 (ada_value_slice_ptr): New function.
5831 (ada_value_slice): New function.
5832 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5833 test. Don't know why it is there.
5834 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5835 to avoid dereferencing huge arrays from which one is slicing.
5836 (empty_array): Correct to return an array rather than
5838 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5839 on empty arrays (let'em use 'FIRST instead).
5841 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5843 Address complaints from gdb_ari.sh:
5845 * ada-exp.y: Include gdb_string.h rather than string.h.
5846 (convert_char_literal): Reformat declaration.
5847 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5848 * ada-lex.l: Change use of free to xfree (the macro would do so
5849 anyway, but this is harmless).
5850 Include gdb_string.h rather than string.h.
5851 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5853 * ada-lang.c (parse): Remove K&Rism in parameter list.
5854 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5856 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5858 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5861 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5863 * alphabsd-nat.c: Update copyright year.
5864 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5866 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5868 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5869 (i386_cygwin_in_solib_call_trampoline): New function.
5870 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5871 and skip_trampoline_code gdbarch methods.
5873 2004-06-29 Jim Blandy <jimb@redhat.com>
5875 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5876 name actually used in the dependency lists.
5878 2004-06-29 Randolph Chung <tausq@debian.org>
5880 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5882 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5884 * win32-nat.c (child_pid_to_exec_file): New function.
5885 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5888 2004-06-28 Andrew Cagney <cagney@gnu.org>
5890 * defs.h (xstrvprintf): Declare.
5891 * utils.c (xstrvprintf): New function.
5892 (internal_vproblem, xstrprintf, xasprintf)
5893 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5894 * serial.c (serial_printf): Ditto.
5895 * complaints.c (vcomplaint): Ditto.
5897 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5899 * infcmd.c (attach_command): Move call to target_terminal_inferior
5900 behind loading symbol table.
5902 2004-06-28 Andrew Cagney <cagney@gnu.org>
5904 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5905 change - add back extern deprecated_ui_loop_hook declaration.
5907 2004-06-28 Andrew Cagney <cagney@gnu.org>
5909 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5911 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5912 (c_value_of_variable): Ditto.
5913 * utils.c (internal_vproblem): Ditto.
5914 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5915 * remote.c (add_packet_config_cmd): Ditto.
5916 * remote-rdp.c (rdp_set_command_line): Ditto.
5917 * regcache.c (regcache_dump): Ditto.
5918 * frv-tdep.c (new_variant, new_variant): Ditto.
5919 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5920 (fbsd_find_memory_regions): Ditto.
5921 * breakpoint.c (create_thread_event_breakpoint)
5922 (create_breakpoints): Ditto.
5923 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5924 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5926 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5928 * ada-lang.c: Re-indent file, with some massaging to help indent
5929 a bit when the result is otherwise really too ugly.
5931 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5933 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5934 code_addr_p and special_addr_p to 'unsigned int'.
5936 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5938 * i386v4-nat.c: Update copyright year and tweak comment.
5939 (regmap): Remove trailing comma.
5940 (supply_gregset): Rename local variable i to regnum. Call
5941 regcache_raw_supply instead of supply_register.
5942 (fill_gregset): Rename argument regno to regnum. Call
5943 regcache_raw_collect instead of regcache_collect.
5945 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5947 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5949 (frame_id_build, frame_id_build_special): Update comments.
5950 (frame_id_build_wild): New prototype.
5951 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5952 struct frame_id fields.
5953 (frame_id_build_wild): New function.
5954 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5956 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5958 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5961 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5963 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5965 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5967 * ada-lang.c: Re-indent file.
5969 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5971 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5972 (no_symtab_msg): Likewise.
5974 2004-06-27 Andreas Schwab <schwab@suse.de>
5976 * source.c: Fix whitespace.
5978 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5980 * configure.in: Include <sys/param.h> for td_pcb test.
5981 * configure: Regenerated.
5983 * i386nbsd-nat.c: New file.
5984 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5985 i386obsd-nat.c and i386obsd-tdep.c.
5986 (i386nbsd-nat.o): New dependency.
5987 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5989 (LOADLIBES): New variable.
5990 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5992 (LOADLIBES): New variable.
5994 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5995 (LOADLIBES): New variable.
5997 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5998 fetching from BSD_KVM_PADDR. Correctly lookup address for
6001 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6003 (amd64fbsd_supply_pcb): New funcion.
6004 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6006 2004-06-27 <david@streamline-computing.com>
6008 Partial fix for PR cli/1056.
6009 * valarith.c: Check for zero in division and remainder
6012 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6014 * i387-tdep.c: Remove excessive whitespace.
6016 2004-06-26 Andrew Cagney <cagney@gnu.org>
6018 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6019 * gdb-events.h, gdb-events.c: Re-generate.
6020 * tui/tui-hooks.c (tui_install_hooks): Update.
6021 (tui_remove_hooks): Update.
6022 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6024 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6026 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6027 (gregset_t, fpregset_t): Remove typedefs.
6028 (REG_OFFSET): Rename argument.
6029 (amd64bsd_r_reg_offset): Rename from reg_offset.
6030 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6032 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6034 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6036 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6038 * vax-tdep.c: Tweak comment.
6040 Add OpenBSD/hppa support.
6041 * NEWS (New native configurations): Mention OpenBSD/hppa.
6042 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6043 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6045 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6046 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6047 * configure.host: Add hppa*-*-openbsd*.
6048 * configure.tgt: Add hppa*-*-openbsd*.
6050 2004-06-25 Andrew Cagney <cagney@gnu.org>
6052 * defs.h (deprecated_ui_loop_hook): Deprecated.
6053 * wince.c (child_wait): Update.
6054 * win32-nat.c (child_wait): Update.
6055 * v850ice.c (v850ice_wait): Update.
6056 * top.c (deprecated_ui_loop_hook): Update.
6058 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6059 (do_unix_readchar): Update.
6060 * ser-tcp.c (net_open): Update.
6061 * remote-sim.c (gdb_os_poll_quit): Update.
6062 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6064 2004-06-24 Andrew Cagney <cagney@gnu.org>
6066 * defs.h (deprecated_pre_add_symbol_hook)
6067 (deprecated_post_add_symbol_hook): Deprecated.
6068 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6069 (symbol_file_add_with_addrs_or_offsets): Update references.
6071 2004-06-24 Andrew Cagney <cagney@gnu.org>
6073 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6074 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6075 * wince.c (ui_loop_hook): Delete extern declaration.
6076 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6077 * v850ice.c (ui_loop_hook): Delete extern declaration..
6078 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6079 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6080 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6081 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6082 ui_loop_hook declaration.
6084 2004-06-24 Andrew Cagney <cagney@gnu.org>
6086 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6087 entry_func_highpc fields.
6088 * objfiles.c (init_entry_point_info): Do not clear
6089 entry_func_lowpc and entry_func_highpc.
6090 (objfile_relocate): Do not relocate entry_func_lowpc and
6092 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6094 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6096 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6097 entry_func_lowpc and entry_func_highpc with call to
6100 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6102 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6103 quad-precision floating point arguments in registers.
6105 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6107 From Michael Mueller <m.mueller99@kay-mueller.de>:
6108 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6111 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6113 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6115 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6116 untriggered watchpoints to a separate if clause. Update function
6117 comment regarding STOPPED_BY_WATCHPOINT argument.
6119 2004-06-22 Jim Blandy <jimb@redhat.com>
6121 * gdbarch.sh: Doc fix.
6123 2004-06-21 Martin Hunt <hunt@redhat.com>
6124 Kevin Buettner <kevinb@redhat.com>
6126 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6127 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6128 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6129 to set_gdbarch_sp_regnum(). Use cooked register number.
6130 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6132 2004-06-21 Andrew Cagney <cagney@gnu.org>
6134 * gdbarch.sh: When the macro field is empty, do not generate a
6135 macro definition. When the macro field is "=", generate the macro
6136 name from the upper-case function name.
6137 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6138 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6139 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6140 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6141 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6142 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6143 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6144 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6145 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6146 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6147 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6148 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6149 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6150 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6151 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6152 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6153 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6154 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6155 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6156 (DEPRECATED_USE_STRUCT_CONVENTION)
6157 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6158 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6159 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6160 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6161 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6162 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6163 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6164 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6165 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6166 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6167 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6168 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6169 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6170 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6171 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6172 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6173 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6174 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6176 2004-06-21 Andrew Cagney <cagney@gnu.org>
6178 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6179 macro name, and the function rather than macro value. Only wrap
6180 macro print statements in #ifdef. Move format logic to where it
6182 * gdbarch.c: Re-generate.
6184 * gdbarch.sh (read): Delete "print_p" and "description", add
6185 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6186 Delete references to print_p.
6187 (TARGET_ARCHITECTURE): Delete print predicate.
6188 * gdbarch.c: Re-generate.
6190 * gdbarch.sh: Check that multi-arch methods do not provide a
6192 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6193 (print_registers_info, print_float_info, print_vector_info)
6194 (adjust_breakpoint_address, remote_translate_xfer_address)
6195 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6196 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6197 name from the multi-arch definition.
6199 2004-06-20 Andrew Cagney <cagney@gnu.org>
6201 * gdbarch.sh: Sort by the function, instead of macro name.
6202 * gdbarch.c: Re-generate.
6204 2004-06-20 Andrew Cagney <cagney@gnu.org>
6206 * gdbarch.sh: Use the function, instead of macro name in
6207 errors and the log file.
6208 (return_value): Remove stray ":" in spec.
6210 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6211 * gdbarch.h, gdbarch.c: Re-generate.
6212 * Makefile.in (arch-utils.o): Update dependencies.
6213 * values.c (using_struct_return): Move code calling
6214 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6215 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6216 to legacy_return_value, simplify.
6217 * infcmd.c (print_return_value): Move code calling
6218 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6219 to legacy_return_value, simplify.
6220 * infcall.c (call_function_by_hand): Move code calling
6221 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6222 * arch-utils.c: Update copyright. Include "gdbcore.h".
6223 (legacy_return_value): New function.
6224 * arch-utils.h: Update copyright.
6225 (legacy_return_value): Declare.
6227 2004-06-20 Andrew Cagney <cagney@gnu.org>
6229 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6230 * gdbarch.h, gdbarch.c: Re-generate.
6231 * values.c (using_struct_return): Update call.
6232 * mcore-tdep.c: Update comment.
6233 * infcall.c (call_function_by_hand): Update comment.
6234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6235 * arch-utils.h (always_use_struct_convention): Update.
6236 * v850-tdep.c (v850_gdbarch_init): Update.
6237 * sh64-tdep.c (sh64_gdbarch_init): Update.
6238 * sh-tdep.c (sh_gdbarch_init): Update.
6239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6240 * mips-tdep.c (mips_gdbarch_init): Update.
6241 * mcore-tdep.c (mcore_gdbarch_init): Update.
6242 * m32r-tdep.c (m32r_gdbarch_init): Update.
6243 * ia64-tdep.c (ia64_gdbarch_init): Update.
6244 * h8300-tdep.c (h8300_gdbarch_init): Update.
6245 * frv-tdep.c (frv_gdbarch_init): Update.
6246 * cris-tdep.c (cris_gdbarch_init): Update.
6247 * arm-tdep.c (arm_gdbarch_init): Update.
6248 * alpha-tdep.c (alpha_gdbarch_init): Update.
6250 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6252 * PROBLEMS: Add more specific information, and a work-around,
6255 2004-06-18 Andrew Cagney <cagney@gnu.org>
6257 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6258 * gdbarch.h, gdbarch.c: Re-generate.
6259 * ada-lang.c (ada_finish_decode_line_1): Update.
6260 * infrun.c (handle_inferior_event): Update.
6261 * infcall.c (find_function_addr): Update.
6262 * linespec.c (minsym_found): Update.
6263 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6265 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6266 * cli/cli-cmds.c (disassemble_command): Update.
6267 * vax-tdep.c (vax_gdbarch_init): Update.
6269 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6271 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6273 2004-06-17 Andrew Cagney <cagney@gnu.org>
6275 GDB 6.1.1 released from the GDB 6.1 branch.
6276 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6279 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6282 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6283 operation as a uleb128. Found by Michael Coulter.
6285 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6287 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6289 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6290 to ada-lang.h; this is needed to be able to implement the kill command
6293 (task_entry): Ditto.
6295 (ada_build_task_list): Ditto.
6297 * ada-lang.c: Conditionalize routines and data structures related
6298 to breakpoints, exceptions, completion, and symbol caching on
6299 GNAT_GDB, since these are not yet used in the submitted public sources.
6300 (ada_main_name): Editorial: Move definition out of exception-related
6303 2004-06-15 Andrew Cagney <cagney@gnu.org>
6305 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6306 deprecated_pc_in_call_dummy.
6308 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6310 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6311 bfd_get_section_size_before_reloc or _raw_size.
6312 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6313 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6314 (dwarf2_read_section): Likewise.
6315 * elfread.c (elf_locate_sections): Likewise.
6316 * gcore.c (derive_heap_segment): Likewise.
6317 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6318 * remote-e7000.c (e7000_load): Likewise.
6319 * remote-m32r-sdi.c (m32r_load): Likewise.
6320 * remote-mips.c (mips_load_srec): Likewise.
6321 (pmon_load_fast): Likewise.
6322 * remote.c (compare_sections_command): Likewise.
6323 * symfile.c (add_section_size_callback): Likewise.
6324 (load_section_callback): Likewise.
6325 (pc_in_unmapped_range): Likewise.
6326 (pc_in_mapped_range): Likewise.
6327 (sections_overlap): Likewise.
6328 (list_overlays_command): Likewise.
6329 (simple_overlay_update_1): Likewise.
6330 (simple_overlay_update): Likewise.
6331 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6332 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6334 2004-06-14 Randolph Chung <tausq@debian.org>
6336 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6337 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6339 (hppa_hpux_inferior_created): New function.
6340 (hppa_hpux_init_abi): Register observer.
6341 * symfile.c (hp_cxx_exception_support_initialized)
6342 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6343 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6345 2004-06-14 Randolph Chung <tausq@debian.org>
6347 * MAINTAINERS (Write After Approval): Alphabetize my entry
6350 2004-06-14 Andrew Cagney <cagney@gnu.org>
6352 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6353 testsuite maintainer.
6355 2004-06-13 Andrew Cagney <cagney@gnu.org>
6357 * infcmd.c (print_return_value): Fix logic, allow
6358 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6360 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6361 defining any macros.
6362 * gdbarch.h: Re-generate.
6364 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6365 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6366 * gdbarch.h: Re-generate.
6368 * values.c (generic_use_struct_convention): Don't check gcc_p.
6370 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6371 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6372 * gdbarch.h, gdbarch.c: Regenerate.
6373 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6374 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6376 deprecated_max_register_raw_size and
6377 deprecated_max_register_virtual_size.
6378 * v850-tdep.c (v850_gdbarch_init): Ditto.
6379 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6381 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6382 * cris-tdep.c (cris_gdbarch_init): Ditto.
6384 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6385 * gdbarch.h, gdbarch.c: Re-generate.
6386 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6387 (m68hc11_use_struct_convention): Delete function.
6388 (m68hc11_extract_struct_value_address): Delete function.
6389 (m68hc11_return_value): New function.
6390 (m68hc11_gdbarch_init): Instead of store_return_value,
6391 extract_return_value, return_value_on_stack,
6392 deprecated_extract_struct_value_address and use_struct_convention,
6394 * values.c (using_struct_return): Do not call
6395 RETURN_VALUE_ON_STACK.
6396 * arch-utils.h (generic_return_value_on_stack_not): Delete
6398 * arch-utils.c (generic_return_value_on_stack_not): Delete
6401 2004-06-12 Andrew Cagney <cagney@gnu.org>
6403 * values.c (register_value_being_returned): Delete function.
6404 * infcmd.c (legacy_return_value): Delete function.
6405 * infcall.c (call_function_by_hand): Inline
6406 "register_value_being_returned", simplify.
6407 * values.c (using_struct_return): Update comment, refer to
6408 print_return_value instead of register_value_being_returned.
6409 * infcmd.c (print_return_value): Inline calls to
6410 register_value_being_returned and legacy_return_value. Simplify.
6412 2004-06-11 Randolph Chung <tausq@debian.org>
6414 * somread.c (som_symtab_read): Exclude gcc local symbols.
6416 2004-06-11 Randolph Chung <tausq@debian.org>
6418 * infrun.c (handle_inferior_event): Handle the case when a
6419 trampoline ends up in the runtime resolver, and if the trampoline
6420 has no name. Rearrange the code so that all the trampoline
6421 processing happens before other step-out-of-range handling.
6423 2004-06-11 Martin Hunt <hunt@redhat.com>
6425 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6428 2004-06-10 Andrew Cagney <cagney@gnu.org>
6430 * blockframe.c (legacy_inside_entry_func): Delete.
6431 (legacy_frame_chain_valid): Inline call to
6432 legacy_inside_entry_func, simplify.
6434 2004-06-10 Bob Rossi <bob@brasko.net>
6436 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6437 * dwarf2read.c (partial_die_info): Add dirname field.
6438 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6439 (read_partial_die): Save away DW_AT_comp_dir.
6440 * defs.h (symtab_to_filename): Removed.
6441 * source.c (find_and_open_source): Added.
6442 (open_source_file): Just calls find_and_open_source.
6443 (symtab_to_filename): Removed.
6444 (symtab_to_fullname, psymtab_to_fullname): Added.
6445 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6446 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6448 * symtab.h (partial_symtab): Add dirname field.
6449 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6450 (mi_cmd_file_list_exec_source_file): Call new function
6451 symtab_to_fullname to find fullname.
6452 (mi_cmd_file_list_exec_source_files): Added.
6453 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6454 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6456 2004-06-10 Andrew Cagney <cagney@gnu.org>
6458 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6459 to generic_use_struct_convention, the default value.
6461 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6464 * ns32k-tdep.c (ns32k_push_arguments): New function.
6465 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6466 * infcall.c (call_function_by_hand): Call error instead of
6467 legacy_push_arguments.
6468 * value.h (legacy_push_arguments): Delete declaration.
6469 * valops.c (legacy_push_arguments): Delete function.
6470 (value_push): Delete function.
6472 2004-06-10 Brian Ford <ford@vss.fsi.com>
6474 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6475 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6477 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6479 2004-06-10 Andrew Cagney <cagney@gnu.org>
6481 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6482 * gdbarch.h, gdbarch.c: Re-generate.
6483 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6485 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6486 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6487 deprecated_pc_in_call_dummy instead of
6488 DEPRECATED_PC_IN_CALL_DUMMY.
6489 (arm_skip_prologue): Ditto.
6490 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6491 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6492 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6493 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6495 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6496 (sh64_init_extra_frame_info, sh64_get_saved_register)
6497 (sh64_pop_frame): Ditto.
6498 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6499 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6500 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6501 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6502 (h8300_pop_frame): Ditto.
6503 * blockframe.c (legacy_inside_entry_func)
6504 (legacy_frame_chain_valid): Ditto.
6505 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6506 to deprecated_pc_in_call_dummy.
6508 2004-06-09 Andrew Cagney <cagney@gnu.org>
6510 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6511 provide a default value.
6512 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6513 * gdbarch.h, gdbarch.c: Re-generate.
6514 * arch-utils.c (generic_convert_register_p): Rename
6515 legacy_convert_register_p
6516 (legacy_register_to_value, legacy_value_to_register): Delete
6518 * arch-utils.h (generic_convert_register_p): Rename
6519 legacy_convert_register_p.
6520 (legacy_register_to_value, legacy_value_to_register): Delete
6523 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6524 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6525 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6526 * gdbarch.h, gdbarch.c: Re-generate.
6527 * infcmd.c (default_print_registers_info): Simplify.
6528 * findvar.c (value_of_register): Simplify.
6529 * mi/mi-main.c (get_register): Simplify.
6530 * arch-utils.c (legacy_convert_register_p): Always return 0.
6531 (legacy_register_to_value, legacy_value_to_register): Always call
6534 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6535 #ifdef CLEAR_INSN_CACHE code.
6536 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6537 Delete #ifdef CLEAR_DEFERRED_STORES code.
6539 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6541 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6543 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6545 * config/mips/mipsv4.mh: Delete file.
6547 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6549 (hpread_adjust_stack_address): Delete declaration.
6551 2004-06-08 Andrew Cagney <cagney@gnu.org>
6553 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6554 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6555 PTRACE_ATTACH / PTRACE_DETACH available call error.
6556 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6557 * infttrace.c (update_thread_state_after_attach, attach, detach):
6558 Remove #ifdef wrappers.
6559 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6560 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6561 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6562 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6563 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6564 * config/nm-linux.h (ATTACH_DETACH): Delete.
6565 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6566 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6567 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6568 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6569 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6571 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6573 * configure.in: Set $configdir to the right OS specific value.
6574 Use value when setting $tcldir and $tkdir.
6575 * configure: Regenerate.
6577 2004-06-06 Paul Brook <paul@codesourcery.com>
6579 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6582 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6584 * ada-lang.c (lookup_symbol_in_language): New function to allow
6585 re-use of another language's symbol lookup code. (Placed here
6586 temporarily while Ada support is being integrated into the public
6588 (restore_language): New auxiliary function for
6589 lookup_symbol_in_language.
6590 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6591 temporarily while Ada support is being integrated into the public
6594 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6596 * Makefile.in (check//%): New.
6598 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6599 (mn10300_store_return_value): Rewrite.
6600 (mn10300_type_align): New.
6601 (mn10300_use_struct_convention): Rewrite.
6602 (mn10300_return_value): New, using all of the above.
6603 (mn10300_pop_frame_regular): Add saved_regs_size.
6604 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6606 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6607 regs if PC is on movm.
6609 2004-06-07 Jim Blandy <jimb@redhat.com>
6611 Add native Linux support for the PowerPC E500.
6612 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6613 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6614 all architectures except the E500.
6615 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6617 (struct gdb_evrregset_t): New type.
6618 (have_ptrace_getsetevrregs): New variable.
6619 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6620 fetch_spe_registers): New functions.
6621 (fetch_register): Call fetch_spe_register as appropriate.
6622 Assert that we're only passed raw register numbers.
6623 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6624 Don't fetch gprs if they're pseudoregisters.
6625 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6626 store_spe_registers): New functions.
6627 (store_register): Call store_spe_register as appropriate.
6628 Assert that we're only passed raw register numbers.
6629 (store_ppc_registers): Call store_spe_registers as appropriate.
6630 Don't store gprs if they're pseudoregisters.
6632 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6634 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6635 struct if one exists, even if we are dealing with a zombie thread.
6637 2004-06-07 Andrew Cagney <cagney@gnu.org>
6639 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6640 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6641 Rename PC_REQUIRES_RUN_BEFORE_USE.
6642 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6645 2004-06-07 Randolph Chung <tausq@debian.org>
6647 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6648 unwinding after sp has been saved to the stack but before the end
6649 of the prologue, and after the fp has been modified but before it has
6650 been saved to the stack.
6651 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6652 Remove superfluous definitions.
6653 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6655 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6657 Committed by Randolph Chung.
6658 * hppa-linux-nat.c: Include the correct version of the header file
6659 depending on the kernel version.
6661 2004-06-06 Randolph Chung <tausq@debian.org>
6663 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6664 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6666 2004-06-06 Randolph Chung <tausq@debian.org>
6668 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6669 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6670 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6671 * hppa-tdep.c (hppa_symbol_address): New function definition.
6672 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6674 2004-06-06 Randolph Chung <tausq@debian.org>
6676 * hppa-tdep.h (struct value): Forward declaration.
6677 (gdbarch_tdep): Define tdep find_global_pointer method.
6678 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6679 associated with the function we are trying to call, and write it
6681 (hppa32_convert_from_funct_ptr_addr): New function.
6682 (hppa_find_global_pointer): New function.
6683 (hppa_gdbarch_init): Set default find_global_pointer method; set
6684 convert_from_func_ptr_addr method.
6685 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6686 (hppa_linux_init_abi): Set find_global_pointer method.
6687 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6689 2004-06-06 Randolph Chung <tausq@debian.org>
6691 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6692 to struct value *function.
6693 * gdbarch.c: Regenerate.
6694 * gdbarch.h: Likewise.
6695 * infcall.c (call_function_by_hand): Pass entire function value
6698 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6699 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6700 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6701 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6702 * arm-tdep.c (arm_push_dummy_call): Likewise.
6703 * avr-tdep.c (avr_push_dummy_call): Likewise.
6704 * cris-tdep.c (cris_push_dummy_call): Likewise.
6705 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6706 * frv-tdep.c (frv_push_dummy_call): Likewise.
6707 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6708 * hppa-tdep.c (hppa32_push_dummy_call)
6709 (hppa64_push_dummy_call): Likewise.
6710 * i386-tdep.c (i386_push_dummy_call): Likewise.
6711 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6712 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6713 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6714 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6715 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6716 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6717 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6718 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6719 (ppc64_sysv_abi_push_dummy_call): Likewise.
6720 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6721 (ppc64_sysv_abi_push_dummy_call): Likewise.
6722 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6723 * s390-tdep.c (s390_push_dummy_call): Likewise.
6724 * sh-tdep.c (sh_push_dummy_call_fpu)
6725 (sh_push_dummy_call_nofpu): Likewise.
6726 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6727 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6728 * vax-tdep.c (vax_push_dummy_call): Likewise.
6730 2004-06-04 Jim Blandy <jimb@redhat.com>
6732 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6733 gdbarch argument to register_size.
6735 * rs6000-tdep.c (rs6000_store_return_value): Use
6736 regcache_cooked_write_part instead of
6737 deprecated_write_register_bytes.
6738 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6739 not gdbarch_deprecated_store_return_value.
6741 * ppc-linux-nat.c (store_register, fetch_register): Remove
6742 incorrect assertions. Simplify and generalize handling of
6743 transfers whose sizes are not multiples of, or less than, sizeof
6746 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6748 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6749 as a new thread event.
6750 * thread-db.c (thread_get_info_callback): If the thread is a
6751 zombie, return TD_THR_ZOMBIE.
6752 (thread_from_lwp): If thread_get_info_callback returns
6753 TD_THR_ZOMBIE, check if the thread is still on the thread list
6754 and return a -1 ptid if not found.
6755 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6756 change the status to TARGET_WAITKIND_SPURIOUS.
6758 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6760 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6761 double values in little endian mode.
6763 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6765 Committed by Andrew Cagney.
6766 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6767 after last enum constant to avoid error from IBM C
6770 2004-06-02 Jim Blandy <jimb@redhat.com>
6772 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6773 to 'message', and make it local to the lone block that uses it.
6775 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6777 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6779 * ada-exp.y: Update copyright notice.
6782 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6783 SPECIAL_VARIABLE and unify the treatment of these cases.
6785 (write_attribute_call0): Remove.
6786 (write_attribute_call1): Remove.
6787 (write_attribute_calln): Remove.
6788 (save_qualifier): Add missing semicolon.
6790 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6791 temporarily disabled to allow compilation with FSF head version.
6793 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6794 use individual operators (OP_*) for all attributes.
6795 (exp syntax): Use write_int.
6796 Handle STRING literals with OP_STRING.
6797 (variable syntax): Add limit parameter to calls to
6798 write_object_renaming.
6800 (temp_parse_space): New definition to hold entities that need
6801 only live until the next call to ada_parse.
6802 (string_to_operator): Rename fields of ada_opname_table entries.
6804 (write_var_from_sym): Record block.
6805 (write_var_from_name): Minor reformatting.
6806 Make sure saved name is properly encoded in the case of multiple
6807 matches, and set its language to Ada.
6809 Modify to indicate unresolved name as symbol in the UNRESOLVED
6810 namespace, allocated in temp_parse_space.
6811 (write_int): New function.
6813 (write_object_renaming): Add max_depth parameter to limit
6814 chains of object renamings.
6815 Handle case where root of renaming expression is itself a renaming.
6816 Use temp_parse_space for temporary name buffer.
6817 Handle renamings to dereferenced pointers (___XEXA suffices).
6819 (ada_parse, yyerror, string_to_operator,
6820 write_var_from_sym, write_var_from_name, write_attribute_call0,
6821 write_attribute_call1, write_attribute_calln,
6822 write_object_renaming): Protoize.
6824 (_initialize_ada_exp): New function.
6826 * ada-lang.c: Update copyright notice.
6827 General terminology change to conform to GNAT compiler usage:
6828 mangle => encode, demangle => decode
6829 Include gdb_obstack.h.
6838 (ADA_RETAIN_DOTS): Make sure this is defined.
6839 (TRUNCATION_TOWARDS_ZERO): Define.
6840 (struct string_vector): Define.
6841 (unresolved_names): Remove definition.
6842 (xnew_string_vector): New function.
6843 (string_vector_append): New function.
6844 (extract_string): Make static.
6845 (ada_unqualified_name): New function.
6846 (add_angle_brackets): New function.
6847 (function_name_from_pc): New function.
6848 (place_on_stack): Rename to ensure_lval.
6850 (ensure_lval): Renamed from place_on_stack.
6851 Make identity on lvals.
6853 (is_nonfunction): New interface.
6854 Only symbols in LOC_CONST class can be enumerals.
6855 (fill_in_ada_prototype): Remove; now independent of language.
6856 (add_defn_to_vec): Add obstack and symtab arguments.
6857 Use obstack to hold collected definitions.
6858 (num_defns_collected): New function.
6859 (defns_collected): New function.
6860 (ada_resolve_subexp): Rename to resolve_subexp.
6861 (resolve_subexp): Renamed from ada_resolve_subexp.
6862 (ada_op_name): Return non-const result.
6863 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6866 (to_fixed_array_type): Add declaration.
6867 (coerce_unspec_val_to_type): Remove offset parameter.
6868 (find_sal_from_funcs_and_line): New interface.
6869 (find_line_in_linetable): Ditto.
6871 (all_sals_for_line): Rename to ada_sals_for_line and make
6873 Add new parameter. When set, do not ask the user to choose the
6874 instance, but use the first one found instead.
6875 Use given line number in returned sals.
6877 Skip the prologue if funfirstline is set.
6878 Correct for memory leak when 0 lines found.
6880 (value_pos_atr): Use pos_atr.
6881 (pos_atr): New function.
6882 (standard_lookup): Add block parameter.
6884 (makeTimeStart): Remove declaration and uses.
6885 (makeTimeStop): Remove declaration and uses.
6887 (ada_completer_word_break_characters): Allow for VMS.
6888 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6889 (raise_sym_name): New constant.
6890 (raise_unhandled_sym_name): New constant.
6891 (raise_assert_sym_name): New constant.
6892 (process_raise_exception_name): New constant.
6893 (longest_exception_template): New constant.
6894 (warning_limit): New variable to limit warnings during expression
6896 (warnings_issued): New variable to keep track of warnings issued.
6897 (known_runtime_file_name_patterns): New constant.
6898 (known_auxiliary_function_name_patterns): New constant.
6899 (symbol_list_obstack): New variable.
6901 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6902 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6903 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6904 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6905 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6906 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6907 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6908 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6911 (ada_get_field_index): New function.
6912 (lim_warning): New function.
6913 (ada_translate_error_message): New function.
6914 (MAX_OF_SIZE): New function.
6915 (MIN_OF_SIZE): New function.
6916 (UMAX_OF_SIZE): New function.
6917 (UMIN_OF_SIZE): New function.
6918 (discrete_type_high_bound): New function.
6919 (discrete_type_low_bound): New function.
6920 (base_type): New function.
6921 (do_command): Remove.
6923 (ada_update_initial_language): Use language_ada, not language_unknown.
6924 (ada_encode): Renamed from ada_mangle.
6925 Obey ADA_RETAIN_DOTS.
6926 (ada_decode): Renamed from ada_demangle.
6927 Update coding conventions.
6928 (decoded_names_store): New hash table.
6929 (ada_decode_symbol): New function.
6930 (ada_la_decode): New function.
6932 (modify_general_field): Correct computations of offset and bit
6934 (desc_base_type): Handle ref types, too.
6935 (ada_is_direct_array_type): New function.
6937 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6938 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6939 (ada_is_bogus_array_descriptor,ada_type_of_array,
6940 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6941 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6942 ada_is_array_descriptor_type.
6944 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6945 (ada_is_packed_array_type): Handle pointers or
6946 references to packed arrays as well.
6947 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6948 (decode_packed_array_type): Search for the packed array type
6949 symbol in the currently selected block and associated
6951 Use lookup_symbol again.
6953 (decode_packed_array): Handle pointers and references.
6954 Update call to coerce_unspec_val_to_type.
6955 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6956 (ada_value_primitive_packed_val): Improve comment.
6958 (ada_index_type): Substitute int type for "undefined".
6959 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6960 ada_array_langth, ada_is_string_type): Use renamed
6961 ada_is_simple_array_type.
6962 (empty_array): New function.
6964 (ada_resolve): Rename to resolve.
6965 (resolve): Make static.
6966 Call renamed resolve_subexp.
6968 (ada_resolve_subexp): Rename to resolve_subexp.
6969 (resolve_subexp): Update comment.
6970 Decomment disabled code.
6971 Add LOC_COMPUTED* cases.
6972 Modify to use temporary struct symbols (marked as being in
6973 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6974 OP_UNRESOLVED_VALUE.
6975 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6978 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6979 Use new ada_lookup_symbol_list interface.
6980 Use new ada_resolve_function interface.
6981 Remove OP_TYPE case.
6983 (ada_args_match): Idiot proof against null actuals.
6984 Use intermediate variables to clarify.
6985 (ada_resolve_function): Update comment and interface.
6986 (mangled_ordered_before): Rename to encoded_ordered_before and
6988 (sort_choices): Update comment and interface.
6989 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6990 (user_select_syms): New interface.
6991 Use new sort_choices interface.
6992 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6993 (possible_user_operator_p): Idiot-proof against null values.
6994 (ada_simple_renamed_entity): Don't make cleanup; rely on
6995 caller to free result string.
6996 Remove const from return type.
6997 (make_array_descriptor): Rename uses of place_on_stack to
6999 Make sure that arrays are on stack.
7001 (HASH_SIZE): Define.
7002 (struct cache_entry): Define.
7003 (cache_space): Define.
7005 (clear_ada_sym_cache): New function.
7006 (find_entry): New function.
7007 (lookup_cached_symbol): New function.
7008 (defn_vector_size): Define.
7009 (cache_symbol): New function.
7010 (defn_symbols): Remove.
7012 (standard_lookup): Use lookup_symbol_in_language to get effect of
7016 (symbol_completion_match): New function.
7017 (symbol_completion_add): New function.
7018 (ada_make_symbol_completion_list): New function.
7020 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7021 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7022 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7023 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7025 (ada_lookup_simple_minsym): New function.
7026 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7028 (add_symbols_from_enclosing_procs): New interface.
7029 Conditionalize more helpfully.
7030 Don't bother if program isn't running.
7031 Use new interface to get_frame_block.
7032 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7034 (remove_extra_symbols): New interface.
7035 (xget_renaming_scope): New function.
7036 (is_package_name): New function.
7037 (renaming_is_visible): New function.
7038 (remove_out_of_scope_renamings): New function.
7040 (ada_lookup_symbol_list): New interface.
7041 Properly reinitialize the symbol list obstack.
7042 Don't call add_symbols_from_enclosing_procs if we start from a
7043 static or global block.
7044 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7045 add_symbols_from_enclosing_procs.
7046 Add symtab data to cached entries.
7047 Handle symbols prefixed with
7048 "standard__" specially; strip prefix and don't look in local symbols.
7049 Do not include out of scope renaming symbols in list of
7051 Add const to block parameter.
7052 Move check for non-local, non-global symbols earlier.
7053 Remove timing stuff.
7054 (ada_lookup_symbol): New interface.
7055 Find symtab as well.
7056 (ada_lookup_symbol_nonlocal): New function.
7058 (is_name_suffix): Enhance suffix detection to recognize
7059 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7060 (is_dot_digits_suffix): New function.
7061 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7063 (ada_add_block_symbols): New interface. Use obstack to return results
7064 in a vector of struct ada_symbol_infos. Add symtab argument.
7065 Use new interface to add_defn_to_vec.
7066 Remove calls to fill_in_ada_prototype.
7067 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7069 (ada_finish_decode_line_1): Add const qualification to local to fix
7071 Start looking in static block for functions to avoid attempts
7072 to search frame chain for up-level variables.
7073 Adapt to new ada_sals_for_line interface.
7074 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7075 Handle quoting of the function name inside the spec string.
7076 Skip prologue when funfirstline is set and update the
7077 function documentation to that effect.
7079 (debug_print_lines, debug_print_block, debug_print_blocks,
7080 debug_print_symtab): Remove.
7082 (ada_main_name): New function.
7083 (ada_exception_breakpoint_type): New function.
7084 (is_known_support_routine): New function.
7085 (ada_find_printable_frame): Renamed from find_printable_frame and made
7087 Remove level parameter.
7088 Use new interface to select_frame.
7090 (begin_command): Remove.
7091 (ada_adjust_exception_stop): New function.
7092 (ada_print_exception_stop): New function.
7093 (exception_name_from_cond): New function.
7094 (ada_report_exception_break): Replace disabled code with
7095 conditionalization on GNAT_GDB.
7096 Get the exception name from the condition string.
7097 Remove and move functionality into new functions
7098 ada_print_exception_breakpoint_task and
7099 ada_print_exception_breakpoint_nontask.
7100 (error_breakpoint_runtime_sym_not_found): New function.
7101 (is_runtime_sym_defined): New function.
7102 (ada_breakpoint_rewrite): Uncomment suppressed code.
7103 Use symbolic error-message and runtime-symbol names.
7104 Surround runtime symbol names in quotes.
7105 Allow non-specific breakpoints on exceptions and assertions before
7108 (ada_is_tagged_type): Add parameter.
7109 (ada_is_tag_type): New function.
7110 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7111 (ada_variant_discrim_type): Ditto.
7112 (value_tag_from_contents_and_address): New function.
7113 (type_from_tag): New function.
7114 (struct tag_args): New structure used to communicate with
7116 (ada_tag_name_1): New function.
7117 (ada_tag_name): New function.
7119 (ada_scan_number): Update comment.
7120 (find_struct_field): New function.
7121 (ada_search_struct_field): Make static.
7122 (ada_value_struct_elt): New version that returns references when
7123 given pointers or references to structs.
7124 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7125 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7127 (ada_value_ind): Use new ada_to_fixed_value interface.
7128 (ada_coerce_ref): Ditto.
7129 (field_offset): Remove.
7131 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7132 (ada_find_renaming_symbol): New function.
7133 (ada_prefer_type): Prefer named types over unnamed ones.
7134 (variant_field_index): New function.
7135 (contains_variant_part): Removed: subsumed by variant_field_index.
7136 (ada_template_to_fixed_record_type): New function, mostly from
7137 template_to_fixed_record_type.
7138 (template_to_fixed_record_type):
7139 Do not scan the type fields beyond the last one; prevents a
7141 Handle case where variant field is listed BEFORE discriminant it
7143 Fix calculation of record length when bit length is
7144 not evenly divisible by char length.
7145 Move code to ada_template_to_fixed_record_type and call it.
7147 (template_to_static_fixed_type): Revise comment.
7148 Modify to work on ordinary record types as well as templates,
7149 so as to handle fields that use ___XVE or ___XVU encodings.
7150 (to_record_with_fixed_variant_part): Fill out comment.
7151 Initialize C++ stuff in right type.
7152 Allow case where DVAL is null.
7153 Handle case where variant field is not last.
7154 Fix typo concerning record length.
7155 (to_fixed_record_type): Decomment disabled code.
7156 (to_fixed_record_type): Use variant_field_index instead of
7157 contains_variant_part.
7158 (to_fixed_variant_branch_type): Ditto.
7159 (to_fixed_array_type): Decomment disabled code.
7160 (ada_to_fixed_type): Convert tagged types to the specific type.
7161 Deactivate the size-check for array types in order to avoid
7162 some false size alarms.
7163 (to_static_fixed_type): Decomment disabled code.
7164 Modify to call template_to_static_fixed_type
7165 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7166 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7167 Remove valaddr argument, as it is never really used.
7168 (ada_to_fixed_value): Change interface to act on single struct value*
7170 (adjust_pc_past_prologue): New function.
7171 (ada_attribute_name): Modify to take enum exp_opcode argument.
7173 (ada_enum_name): Recognize new homonym-distinguishing convention.
7174 Adjust local variable's type to remove compiler warning.
7175 Fix a small problem in the part that unqualifies the enumeration name.
7176 (ada_value_binop): New function.
7177 (ada_value_equal): New function.
7179 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7180 Don't give error message when not doing normal evaluation
7181 and a tagged type doesn't seem to contain a structure member.
7182 Give error message for packed arrays.
7183 For indexing arrays, handle pointers to packed arrays correctly.
7184 Handle case of 'first and 'last attributes of bare integral type
7185 without encoded subtype info.
7186 Remove some unnecessary casts.
7187 Fix uninitialized value of type in computing 'first, 'last, or 'length
7189 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7190 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7192 Attributes are now exp_opcode values.
7193 Correct treatment of 'modulus.
7194 Better error message for taking 'length of wrong kind of type;
7196 Change EVAL_NORMAL to noside for consistency.
7197 Use ada_value_binop for DIV, MOD, REM.
7198 Make special case out of array of length 0, since an argument
7199 of 0 upsets some platforms' malloc.
7200 Use OP_STRING instead of OP_ARRAY.
7201 For slice, add check that we have an array type before extracting
7202 a slice out of it. Avoids a SEGV.
7203 When evaluating an array slice, if the array type is a reference to
7204 an aligner type, then replace the aligner type by the actual type.
7205 Decomment disabled code.
7206 Remove some dead code.
7207 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7208 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7209 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7210 and UNOP_MBR to UNOP_IN_RANGE.
7211 If an array type has a parallel ___XVE type, then use it.
7212 Turn arrays into pointers for lvalue arrays.
7213 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7214 bounds error and handle 0-length slices.
7216 When selecting fields, apply ada_to_fixed_value (because the fields
7217 might have ___XVU or ___XVE encodings even if not dynamic.)
7218 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7219 (ada_is_system_address_type): New function.
7221 (get_var_value): Use new interface to ada_lookup_symbol_list.
7222 (get_int_var_value): New interface.
7223 (to_fixed_range_type): Allow unknown bound, with warning.
7224 (ada_is_modular_type): Decomment disabled code.
7225 (ADA_OPERATORS): New definition.
7226 (ada_operator_length): New function.
7227 (ada_expr_op_name): New function.
7228 (ada_forward_operator_length): New function.
7229 (ada_dump_subexp_body): New function.
7230 (ada_print_subexp): New function.
7231 (ada_exp_descriptor): New constant.
7232 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7233 (ada_language_defn): Add ada_exp_descriptor entry.
7234 Change ada_parse => parse.
7235 Add post-parser entry.
7236 Use ada-specific non-local symbol lookup.
7237 Don't use C-style arrays.
7238 String lower-bound is 1.
7239 Decomment disabled code.
7240 (parse): New function.
7241 New fields ada_translate_error_message, ada_lookup_symbol,
7242 ada_lookup_minimal_symbol.
7244 * ada-lang.h: Update copyright dates.
7245 Replace the mangle/demangle terminology throughout by the
7246 more appropriate encode/decode one.
7247 Include breakpoint.h.
7248 Forward declare struct partial_symbol, struct block.
7249 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7250 (EXTRACT_ADDRESS): Remove.
7251 (EXTRACT_INT): Remove.
7252 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7253 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7254 (MAX_RENAMING_CHAIN_LENGTH): Define.
7255 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7257 (enum task_states): Remove.
7258 ada_task_states: Remove.
7259 (fat_string): Remove.
7260 (struct entry_call): Remove.
7261 (struct task_fields): Remove.
7262 (struct task_entry): Remove.
7264 (struct ada_symbol_info): Define.
7265 (enum ada_attribute): Remove.
7266 (enum ada_operator): Define.
7268 (ada_get_field_index): Declare.
7269 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7270 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7271 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7272 (ada_lookup_symbol_list): New interface.
7273 (ada_decode_symbol): Declare.
7274 (ada_decode): Declare.
7275 (ada_lookup_symbol): New interface.
7276 (ada_update_initial_language): Declare.
7277 (ada_lookup_simple_minsym): Declare.
7278 (user_select_syms): New interface.
7279 (ada_sals_for_line): Declare.
7280 (ada_is_tagged_type): New interface.
7281 (ada_tag_name): Declare.
7282 (ada_lookup_struct_elt_type): Remove declaration.
7283 (ada_search_struct_field): Remove declaration.
7284 (ada_attribute_name): New interface.
7285 (ada_is_system_address_type): Declare.
7286 (ada_to_fixed_value): Remove declaration.
7287 (ada_template_to_fixed_record_type_1): Declare.
7288 (get_int_var_value): New interface.
7289 (ada_find_any_symbol): Declare.
7290 (ada_find_renaming_symbol): Declare.
7291 (ada_mangle): Rename to ada_encode.
7292 (ada_simple_renamed_entity): Remove const.
7293 (ada_main_name): Declare.
7294 (get_current_task): Rename to ada_get_current_task.
7295 (get_entry_number): Remove declaration.
7296 (ada_report_exception_break): Remove declaration.
7297 (ada_print_exception_breakpoint_nontask): Declare.
7298 (ada_print_exception_breakpoint_task): Declare.
7299 (ada_find_printable_frame): Declare.
7301 * ada-lex.l: Update copyright notices.
7302 Use xmalloc and xfree instead of malloc and free.
7303 Use new interface to name_lookup.
7304 Use new interface to
7305 ada_mangle=>ada_encode.
7306 Redo handling of '$...' variable to parallel current treatment
7308 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7309 digit_to_int, strtoulst, processInt, processReal, processId,
7310 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7313 (processInt): Use cast to remove harmless warning.
7314 (processReal): Modify to get rid of compiler warning on scan formats.
7316 (processId): Replace xmalloc with obstack_alloc for name and remove
7317 call to ada_name_string_cleanup.
7318 Remove obsolete disabled code.
7319 (name_lookup): Ditto.
7321 Use obsavestring on temp_parse_space instead of savestring
7322 on name, and remove call to ada_name_string_cleanup.
7323 Free string returned from ada_simple_renamed_entity.
7324 Use new interface to ada_lookup_symbol_list.
7325 Decomment disabled code.
7326 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7328 When a type name lookup succeeds as a result of
7329 lookup_primitive_typename, check for regular type entry that has not
7331 Limit length of chain of renamed symbols we are willing to follow.
7332 Do not break names beginning with "standard__" into segments.
7333 (block_lookup): Use new interface to ada_lookup_symbol_list.
7335 * ada-typeprint.c: Update copyright notice.
7336 (demangled_type_name): Rename to decoded_type_name.
7337 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7338 (print_range_bound): Correct handling of negative
7339 bounds that make the index type looked unsigned under STABS.
7340 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7341 (print_range_type_named): Use the builtin int type if no type
7342 corresponding to the given type name could be found.
7343 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7344 Add some bullet-proofing.
7345 (print_variant_clauses): Allow for variant branches with ___XVU
7346 encodings that are not dynamic fields.
7347 Use new interface to ada_is_tagged_type.
7348 (print_record_type): Allow for fields with ___XVE encodings that
7349 are not dynamic fields.
7350 Use new interface to ada_is_tagged_type.
7351 (ada_print_type): ada_is_array_descriptor =>
7352 ada_is_array_descriptor_type.
7354 * ada-valprint.c: Update copyright notice.
7355 Include gdb_string.h
7357 (ui_memcpy): New function.
7358 (ada_print_floating): New function.
7359 (ada_print_str): Order arguments correctly.
7360 Correct handling of empty arrays and arrays of 0-length items.
7361 ada_is_array_descriptor => ada_is_array_descriptor_type
7362 Print values of type System.Address in hexadecimal format.
7363 Use ada_print_floating to print floating-point numbers in Ada format.
7364 Print class tag values with type names.
7365 No longer print the address of reference values. Avoids
7366 a potential confusion.
7367 (ada_value_print): Stop printing the object type for reference
7368 values, but preserve that behavior for access types. Avoids
7369 a potential confusion.
7370 Simplify one conditional expression, as the first part is now
7372 ada_is_array_descriptor => ada_is_array_descriptor_type
7373 Add check for arrays for null records, and print them by hand.
7375 2004-06-01 Jim Blandy <jimb@redhat.com>
7377 * ppc-tdep.h: Delete unused 'regoff' member.
7378 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7380 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7383 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7384 (hpread_read_struct_type): Likewise.
7386 2004-06-01 Andrew Cagney <cagney@gnu.org>
7388 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7389 instead of xasprintf.
7390 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7391 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7392 (mi_cmd_data_list_register_names)
7393 (mi_cmd_data_list_changed_registers)
7394 (mi_cmd_data_list_register_values)
7395 (get_register, mi_cmd_data_write_register_values)
7396 (mi_cmd_data_write_register_values)
7397 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7398 (mi_cmd_target_download, mi_cmd_target_select)
7399 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7400 (mi_execute_cli_command, mi_execute_async_cli_command)
7401 (mi_execute_async_cli_command): Ditto.
7402 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7403 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7405 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7406 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7407 error_last_message instead of mi_error_last_message.
7408 * mi/mi-main.c (mi_error_last_message): Delete function.
7410 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7411 "invalid number of columns" error. Delete redundant "out of
7414 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7416 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7417 (gregset_t, fpregset_t): Remove typedefs.
7418 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7419 (REG_OFFSET): Rename argument.
7420 (i386bsd_r_reg_offset): Rename from reg_offset.
7421 (REG_ADDR): Remove macro.
7422 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7424 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7425 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7426 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7427 instead of supply_gregset.
7428 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7429 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7430 instead of fill_gregset.
7431 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7433 * i386bsd-nat.c: Don't include "gregset.h".
7434 (supply_gregset, fill_gregset): Make static.
7435 (supply_fpregset, fill_fpregset): Remove.
7436 * Makefile.in (i386bsd-nat.o): Update dependencies.
7438 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7440 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7441 "gdb_assert.h". Con't include "gregset.h".
7442 (fbsd_make_corefile_notes): Use regset-based core file support
7443 instead off fill_gregset and fill_fpregset.
7444 * Makefile.in (fbsd-proc.o): Update dependencies.
7446 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7448 (m88k_frame_prev_register): Simplify code a bit.
7450 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7451 (amd64_collect_fpregset): New function.
7452 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7454 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7456 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7457 (i386_collect_gregset): New function.
7458 (i386_supply_fpregset): Adjust comment.
7459 (i386_collect_fpregset): New function.
7460 (i386_regset_from_core_section): Use i386_collect_gregset and
7461 i386_collect_fpregset.
7463 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7464 handle VALUEP being null.
7466 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7468 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7470 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7472 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7473 assembler in OpenBSD 3.5-current.
7474 (amd64obsd_sigcontext_addr): Likewise.
7476 2004-05-28 Jim Blandy <jimb@redhat.com>
7478 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7479 register set, so our regcache isn't declared "legacy" and our E500
7480 pseudoregister read and write functions aren't ignored.
7481 (rs6000_register_byte, rs6000_register_raw_size,
7482 rs6000_register_virtual_type, rs6000_register_convertible,
7483 rs6000_register_convert_to_virtual,
7484 rs6000_register_convert_to_raw): Deleted.
7485 (rs6000_register_type, rs6000_convert_register_p,
7486 rs6000_register_to_value, rs6000_value_to_register): New
7488 (rs6000_gdbarch_init): Don't register
7489 gdbarch_deprecated_register_size,
7490 gdbarch_deprecated_register_bytes,
7491 gdbarch_deprecated_register_byte,
7492 gdbarch_deprecated_register_raw_size,
7493 gdbarch_deprecated_register_virtual_type,
7494 gdbarch_deprecated_register_convertible,
7495 gdbarch_deprecated_register_convert_to_virtual, or
7496 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7497 register gdbarch_register_type, gdbarch_convert_register_p,
7498 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7500 2004-05-26 Jim Blandy <jimb@redhat.com>
7502 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7503 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7504 functions, updated to match the register numberings used in GCC.
7505 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7506 rs6000_dwarf2_reg_to_regnum as register number conversions
7507 functions for STABS and Dwarf2.
7509 2004-05-26 Randolph Chung <tausq@debian.org>
7511 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7514 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7516 * NEWS: Document new "start" command.
7518 2004-05-25 Randolph Chung <tausq@debian.org>
7520 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7523 2004-05-25 Randolph Chung <tausq@debian.org>
7525 * hppa-hpux-tdep.c (offsetof): Define.
7526 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7527 (hppa32_hpux_frame_base_before_sigtramp)
7528 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7529 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7530 (hppa64_hpux_frame_base_before_sigtramp)
7531 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7533 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7534 (hppa_hpux_sigtramp_frame_unwind_cache)
7535 (hppa_hpux_sigtramp_frame_this_id)
7536 (hppa_hpux_sigtramp_frame_prev_register)
7537 (hppa_hpux_sigtramp_frame_unwind)
7538 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7539 (hppa_hpux_init_abi): Register sigtramp unwinder.
7540 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7542 2004-05-25 Randolph Chung <tausq@debian.org>
7544 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7545 and multiple stack unwinds.
7546 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7548 2004-05-25 Andrew Cagney <cagney@gnu.org>
7550 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7551 * symfile-mem.h: Delete file.
7552 * symfile-mem.c: Do not include "symfile-mem.h".
7553 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7554 "struct bfd_section". When an error do not bother returning NULL.
7555 (add_symbol_file_from_memory_command): Use "struct bfd" and
7556 "struct bfd_section".
7557 * Makefile.in (symfile_mem_h): Delete.
7558 (symfile-mem.o): Update dependencies.
7560 2004-05-25 Nick Roberts <nickrob@gnu.org>
7562 * gdb-mi.el: New file.
7564 2004-05-25 Andrew Cagney <cagney@gnu.org>
7566 * inftarg.c: Include "observer.h".
7567 (child_attach, child_create_inferior): Notify inferior_created.
7568 * corelow.c: Include "observer.h".
7569 (core_open): Notify inferior_created.
7570 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7572 2004-05-25 Andrew Cagney <cagney@gnu.org>
7574 * target.h (struct target_ops): Add from_tty to
7576 (target_create_inferior, find_default_create_inferior): Update.
7577 * infcmd.c (run_command): Update.
7578 * wince.c (child_create_inferior): Update.
7579 * win32-nat.c (child_create_inferior): Update.
7580 * uw-thread.c (uw_thread_create_inferior): Update.
7581 * thread-db.c (thread_db_create_inferior): Update.
7582 * target.c (debug_to_create_inferior)
7583 (find_default_create_inferior): Update.
7584 (maybe_kill_then_create_inferior): Update.
7585 * sol-thread.c (sol_thread_create_inferior): Update.
7586 * remote.c (extended_remote_async_create_inferior)
7587 (extended_remote_create_inferior): Update.
7588 * remote-vx.c (vx_create_inferior): Update.
7589 * remote-st.c (st2000_create_inferior): Update.
7590 * remote-sim.c (gdbsim_create_inferior): Update.
7591 * remote-sds.c (sds_create_inferior): Update.
7592 * remote-rdp.c (remote_rdp_create_inferior): Update.
7593 * remote-rdi.c (arm_rdi_create_inferior): Update.
7594 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7595 * remote-e7000.c (e7000_create_inferior): Update.
7596 * procfs.c (procfs_create_inferior): Update.
7597 * ocd.c (ocd_create_inferior): Update.
7598 * ocd.h (ocd_create_inferior): Update.
7599 * nto-procfs.c (procfs_create_inferior): Update.
7600 * monitor.c (monitor_create_inferior): Update.
7601 * lin-lwp.c (lin_lwp_create_inferior): Update.
7602 * inftarg.c (child_create_inferior): Update.
7603 * hpux-thread.c (hpux_thread_create_inferior): Update.
7604 * gnu-nat.c (gnu_create_inferior): Update.
7606 2004-05-25 Andrew Cagney <cagney@gnu.com>
7608 * MAINTAINERS: Update e-mail address.
7610 2004-05-24 Randolph Chung <tausq@debian.org>
7612 * thread.c (info_threads_command, thread_apply_all_command)
7613 (thread_apply_command, thread_command, do_captured_thread_select):
7614 Remove HPUXHPPA-specific code.
7616 2004-05-24 Randolph Chung <tausq@debian.org>
7618 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7620 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7623 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7625 * infcmd.c (kill_if_already_running): New function, extracted
7627 (run_command): Replace extracted code by call to
7628 kill_if_already_running().
7629 (start_command): New function.
7630 (_initialize_infcmd): Add "start" command.
7632 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7634 Add OpenBSD/m88k support.
7635 * NEWS (New native configurations): Mention OpenBSD/m88k.
7636 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7637 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7638 * Makefile.in (m88k_tdep_h): New variable.
7639 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7640 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7641 * configure.host: Add m88*-*-openbsd*.
7642 * configure.tgt: Add m88*-*-openbsd*.
7644 2004-05-24 Jim Blandy <jimb@redhat.com>
7646 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7649 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7651 * symtab.c (fixup_section): Search section table when lookup by
7654 2004-05-24 Randolph Chung <tausq@debian.org>
7656 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7659 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7661 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7662 register number in regcache_raw_collect call.
7663 (m68kbsd_collect_fpregset): Likewise.
7664 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7666 * regset.h (struct regset): Add back `regset' member.
7668 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7670 * configure.in: Check for td_pcb in `struct thread'.
7671 * configure, config.in: Regenerated.
7673 * dpx2-nat.c: Remove file.
7674 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7675 (dpx2-nat.o): Remove dependencies.
7677 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7678 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7679 (amd64obsd_supply_pcb): New function.
7680 (_initialize_amd64obsd_nat): Enable libkvm interface.
7681 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7682 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7683 (LOADLIBES): New variable.
7685 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7686 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7687 (sparc32nbsd_supply_pcb): New function.
7688 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7689 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7690 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7691 (LOADLIBES): New variable.
7693 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7695 * bsd-kvm.c, bsd-kvm.h: New files.
7696 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7698 (i386fbsd_supply_pcb): New function.
7699 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7700 (i386fbsd-nat.o): Update dependencies.
7701 (bsd_kvm_h): New variable.
7702 (bsd-kvm.o): New dependency.
7703 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7704 (LOADLIBES): New variable.
7706 * regset.c: Tweak comment.
7707 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7709 * regset.h: Update copyright year.
7710 (struct regset): Remove `descr' member, add `gdbarch' member.
7711 (regset_alloc): Adjust prototype and comment.
7712 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7713 (i386_supply_fpregset): Likewise.
7714 (i386_regset_from_core_section): Update call to regset_alloc.
7715 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7717 (i386obsd_aout_regset_from_core_section): Update call to
7719 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7721 (i386nbsd_aout_regset_from_core_section): Update call to
7723 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7725 (amd64_regset_from_core_section): Update call to regset_alloc.
7726 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7728 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7729 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7730 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7731 (sparc32nbsd_init_abi): Update call to regset_alloc.
7732 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7733 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7734 (sparc64obsd_init_abi): Update call to regset_alloc.
7735 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7736 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7737 (sparc64nbsd_init_abi): Update call to regset_alloc.
7738 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7739 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7740 (sparc64fbsd_init_abi): Update call to regset_alloc.
7742 2004-05-22 Jim Blandy <jimb@redhat.com>
7744 * ppc-tdep.h (spe_register_p): New declaration.
7745 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7747 * rs6000-tdep.c (spe_register_p): New function.
7748 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7750 (rs6000_gdbarch_init): Initialize the new members of the tdep
7753 2004-05-21 Jim Blandy <jimb@redhat.com>
7755 * ppc-linux-nat.c (fetch_register): Move code back to be next
7756 to the comment that describes it. (Moved code, instead of
7757 comment, for symmetry with store_register.)
7759 Allocate regset structures in the gdbarch's obstack, not using
7761 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7762 Add 'arch' argument. Allocate the regset on arch's obstack, not
7764 * regset.h (regset_alloc): Update declaration.
7765 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7767 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7768 * i386-tdep.c (i386_regset_from_core_section): Same.
7769 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7770 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7771 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7772 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7773 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7774 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7776 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7778 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7780 2004-05-21 Jim Blandy <jimb@redhat.com>
7782 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7783 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7785 2004-05-20 Jim Blandy <jimb@redhat.com>
7787 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7789 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7791 * regset.h: Make prototype const-correct.
7792 * regset.c (regset_xmalloc): Make const-correct.
7794 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7796 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7797 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7798 (symbol_search_name): Declare.
7800 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7801 (iter_name_next_hashed): Ditto.
7802 (iter_name_next_linear): Ditto.
7803 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7805 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7806 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7807 (symbol_search_name): New function.
7809 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7811 * minsyms.c (build_minimal_symbol_hash_tables): Change
7812 test for adding to demangled hash table to check for difference
7813 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7815 2004-05-19 Jim Blandy <jimb@redhat.com>
7817 Use a constructor function to create regset structures.
7818 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7819 (struct regset): Use supply_regset_ftype. Add new
7820 'collect_regset' member.
7821 (regset_xmalloc): New declaration.
7822 * regset.c: New file.
7823 * am64-tdep.c (amd64_regset_from_core_section): Use
7824 regset_xmalloc to construct regset structures.
7825 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7826 * i386-tdep.c (i386_regset_from_core_section): Same.
7827 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7828 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7829 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7830 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7831 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7832 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7833 * Makefile.in (COMMON_OBS): Add regset.o.
7834 (regset.o): New rule.
7836 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7838 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7839 and pthread_cond_wait.c.
7841 2004-05-18 Jim Blandy <jimb@redhat.com>
7843 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7844 before the mach-specific switch, and then let the individual cases
7845 override the defaults, rather than leaving them uninitialized
7846 until the switch and then setting them in each case.
7848 2004-05-18 Randolph Chung <tausq@debian.org>
7850 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7851 millicode functions.
7853 2004-05-18 Randolph Chung <tausq@debian.org>
7855 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7856 references to dld_flags_buffer consistent.
7858 2004-05-18 Randolph Chung <tausq@debian.org>
7860 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7861 it for unwinding the stack.
7863 2004-05-18 Randolph Chung <tausq@debian.org>
7865 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7866 Undefine these so we can overide them using gdbarch.
7868 2004-05-18 Randolph Chung <tausq@debian.org>
7870 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7871 handling for 64-bit HPUX (elf).
7873 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7875 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7877 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7878 * ia64-tdep.c (examine_prologue): Likewise.
7879 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7880 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7882 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7884 * vax-tdep.c (vax_return_value): Implement
7885 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7887 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7889 * vax-tdep.c (vax_return_value): Fix typo.
7891 2004-05-17 Andrew Cagney <cagney@redhat.com>
7893 * MAINTAINERS: Mark Salter was also responsible for
7896 * NEWS: Mention signal fixes.
7898 2004-05-17 Randolph Chung <tausq@debian.org>
7900 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7901 check to see if we are unwinding an export stub. Export stubs clobber
7902 the %rp in the call path and stores the original rp in a stack slot.
7904 2004-05-17 Jim Blandy <jimb@redhat.com>
7906 * MAINTAINERS: Update address for J.T. Conklin.
7908 2004-05-17 Randolph Chung <tausq@debian.org>
7910 * hppa-tdep.c: Remove superfluous #include's.
7911 * Makefile.in (hppa-tdep.o): Update dependencies.
7913 2004-05-17 Randolph Chung <tausq@debian.org>
7915 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7916 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7917 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7918 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7919 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7920 Remove static function declarations.
7922 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7924 * alphabsd-nat.c: Update copyright year.
7925 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7927 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7930 * m68k-tdep.c (m68k_svr4_return_value): Implement
7931 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7933 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7935 * sol-thread.c Update copyright year. Fix various coding
7936 standards violations. Tweak a few comments.
7937 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7940 2004-05-15 Randolph Chung <tausq@debian.org>
7942 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7943 as pointer instead of array reference since HPUX compiler does
7944 not accept unsized array arguments.
7945 * somsolib.c (dld_flags_buffer): Use constant array size.
7947 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7949 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7950 offset with decimal offset.
7951 (amd64obsd_sigcontext_addr): Return correct address for entire
7954 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7955 instead of get_frame_base.
7957 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7958 (fill_gregset): Use regcache_raw_collect.
7960 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7963 * config/sparc/tm-nbsd64.h: Remove file.
7964 * config/tm-sunos.h: Remove file.
7966 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7968 * rs6000-tdep.c (store_param_on_stack_p): New function,
7969 an improved version of some code extracted from skip_prologue().
7970 (skip_prologue): Use store_param_on_stack_p() to detect
7971 instructions saving a parameter on the stack. Detect when r0
7972 is used to save a parameter.
7973 Do not mark "li rx, SIMM" instructions as part of the prologue,
7974 unless the following instruction is also part of the prologue.
7976 2004-05-14 Andrew Cagney <cagney@redhat.com>
7978 * infrun.c (handle_inferior_event): Simplify
7979 STEP_OVER_UNDEBUGGABLE.
7981 * infrun.c (handle_step_into_function): Delete function.
7982 (handle_inferior_event): Inline calls to
7983 handle_step_into_function.
7985 2004-05-14 Jerome Guitton <guitton@gnat.com>
7987 * rs6000-nat.c: Fix a comment.
7989 2004-05-12 David Anderson <davea@sgi.com>
7991 Committed by Jim Blandy <jimb@redhat.com>:
7992 * regcache.c (struct regcache_descr): fix comment spelling.
7994 2004-05-13 J. Brobecker <brobecker@gnat.com>
7996 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7997 Fixes a link link failure.
7999 2004-05-13 J. Brobecker <brobecker@gnat.com>
8001 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8002 error that was causing the build to fail.
8004 2004-05-13 J. Brobecker <brobecker@gnat.com>
8006 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8007 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8009 2004-05-13 Andrew Cagney <cagney@redhat.com>
8011 * infrun.c (handle_inferior_event): Check for
8012 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8013 calls. Update comments.
8015 2004-05-13 Jim Blandy <jimb@redhat.com>
8017 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8018 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8019 (store_regs_user_thread, store_regs_kernel_thread): Use
8020 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8021 * ppc-linux-nat.c (fill_gregset): Same.
8022 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8023 (ppc_linux_sigtramp_cache): Same.
8024 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8025 (ppcnbsd_sigtramp_cache_init): Same.
8026 * rs6000-nat.c (fetch_core_registers): Same.
8027 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8028 (rs6000_frame_cache): Same.
8030 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8031 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8032 of assuming that the gprs are numbered starting with zero.
8033 * ppc-linux-nat.c (fill_gregset): Same.
8034 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8035 * ppcnbsd-nat.c (getregs_supplies): Same.
8036 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8037 * rs6000-nat.c (fetch_core_registers): Same.
8038 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8040 2004-05-07 Michael Snyder <msnyder@redhat.com>
8042 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8043 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8045 2004-05-13 Andrew Cagney <cagney@redhat.com>
8047 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8049 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8051 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8052 base_address for shared libraries.
8054 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8056 * MAINTAINERS (write after approval): Add myself.
8058 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8060 * breakpoint.c (bpstat_stop_status): Add new argument
8061 STOPPED_BY_WATCHPOINT. Use it instead of testing
8062 target_stopped_data_address agaist 0 to check whether
8063 or not we stopped due to a hardware watchpoint.
8064 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8065 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8068 2004-05-12 Jim Blandy <jimb@redhat.com>
8070 * configure.in: When checking whether we should use the -bbigtoc
8071 option, don't forget to restore the original value of LDFLAGS.
8072 * configure: Regenerated.
8074 2004-05-12 Andrew Cagney <cagney@redhat.com>
8076 * thread.c (load_infrun_state): Delete step_sp.
8077 * infrun.c (context_switch): Ditto.
8078 * inferior.h (step_sp): Ditto.
8079 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8080 * gdbthread.h (struct thread_info, save_infrun_state)
8081 (restore_infrun_state): Ditto.
8083 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8085 * MAINTAINERS (write after approval): Add myself.
8087 2004-05-12 Andrew Cagney <cagney@redhat.com>
8089 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8090 eliminate reference to step_sp.
8091 (struct execution_control_state, init_execution_control_state)
8092 (handle_inferior_event, keep_going): Delete update_step_sp and
8094 * infcmd.c (step_sp): Note that variable is unused.
8096 2004-05-11 Andrew Cagney <cagney@redhat.com>
8098 * infrun.c (step_over_function): Delete function.
8099 (handle_step_into_function): Use insert_step_resume_breakpoint.
8100 (insert_step_resume_breakpoint): Fix assertion.
8102 2004-05-11 Nick Roberts <nickrob@gnu.org>
8104 * utils.c (defaulted_query): Just use the normal query input type
8105 when printing the annotations.
8107 2004-05-11 Andrew Cagney <cagney@redhat.com>
8109 * infrun.c (handle_inferior_event): Simplify code handling
8110 step-into or return-from a signal trampoline.
8112 2004-05-11 Andrew Cagney <cagney@redhat.com>
8114 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8115 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8117 2004-05-10 Jim Blandy <jimb@redhat.com>
8119 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8120 with a call to internal_error.
8122 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8123 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8124 processor variant lacks those registers.
8125 (ppc_floating_point_unit_p): Change description to make it clear
8126 that this returns info about the ISA, not the ABI.
8127 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8128 return true or false by checking tdep->ppc_fp0_regnum and
8129 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8130 arch/mach switching done in rs6000_gdbarch_init; it's better to
8131 keep that logic there, and just check the results here.
8132 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8133 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8134 floating-point registers.
8135 (ppc_supply_fpregset, ppc_collect_fpregset)
8136 (rs6000_push_dummy_call, rs6000_extract_return_value)
8137 (rs6000_store_return_value): Assert that we have floating-point
8139 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8140 (rs6000_frame_cache): Don't note the locations at which
8141 floating-point registers were saved if we have no fprs.
8142 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8144 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8145 (store_regs_user_thread, store_regs_kernel_thread): Only call
8146 supply_fprs / fill_fprs if we actually have floating-point
8148 (special_register_p): Check ppc_fpscr_regnum before matching
8150 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8151 supply / collect fpscr if we don't have it.
8152 * ppc-bdm.c: #include "gdb_assert.h".
8153 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8154 have floating-point registers, since I can't test this code on
8155 FP-free systems to adapt it.
8156 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8157 fpscr and floating point register numbers if they don't exist.
8158 (fetch_register): Assert that we have floating-point registers
8159 before we reach the code that handles them.
8160 (store_register): Same. And use tdep instead of calling
8162 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8164 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8165 fprs and fpscr if we don't have them.
8166 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8168 * ppcnbsd-nat.c: #include "gdb_assert.h".
8169 (getfpregs_supplies): Assert that we have floating-point registers.
8170 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8171 * ppcobsd-tdep.c: #include "gdb_assert.h".
8172 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8173 have floating-point registers.
8174 * rs6000-nat.c (regmap): Don't match against the fpscr and
8175 floating point register numbers if they don't exist.
8176 (fetch_inferior_registers, store_inferior_registers,
8177 fetch_core_registers): Only fetch / store / supply the
8178 floating-point registers and the fpscr if we have them.
8179 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8180 (ppcobsd-tdep.o): Update dependencies.
8182 2004-05-10 Andrew Cagney <cagney@redhat.com>
8184 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8185 (context_switch): Do not switch through_sigtramp_breakpoint.
8186 * gdbthread.h (save_infrun_state, load_infrun_state)
8187 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8188 and structure member.
8189 * thread.c (load_infrun_state, save_infrun_state): Update.
8191 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8193 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8195 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8197 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8199 * aclocal.m4: Regenerate.
8201 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8203 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8205 2004-05-10 Andrew Cagney <cagney@redhat.com>
8207 * infrun.c (check_sigtramp2): Delete function.
8208 (handle_inferior_event): When single stepping, and taking a
8209 signal, set a breakpoint at the signal return address. Delete
8210 redundant calls to check_sigtramp2.
8211 (insert_step_resume_breakpoint): New function.
8212 (through_sigtramp_breakpoint, handle_inferior_event)
8213 (follow_exec, wait_for_inferior, fetch_inferior_event)
8214 (currently_stepping, keep_going): Delete most uses of
8215 through_sigtramp_breakpoint, not that it should be deleted.
8216 (delete_breakpoint_current_contents): Delete function.
8218 2004-05-10 Randolph Chung <tausq@debian.org>
8220 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8222 * config/pa/tm-linux.h: New file.
8224 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8226 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8227 of prefixes. Don't print the prefix twice in the CLI.
8229 2004-05-10 Jim Blandy <jimb@redhat.com>
8231 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8232 collect all the gprs.
8234 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8235 loop collecting gprs.
8237 2004-05-09 Andrew Cagney <cagney@redhat.com>
8239 * remote-vx.c (net_step): Delete step-range code.
8240 * remote.c (remote_resume, init_all_packet_configs)
8241 (set_remote_protocol_E_packet_cmd)
8242 (show_remote_protocol_E_packet_cmd)
8243 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8244 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8245 (show_remote_protocol_e_packet_cmd): Ditto.
8247 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8249 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8251 * hppa-tdep.h: Update copyright year.
8252 (struct trad_frame_saved_reg): Add opaque declaration.
8254 * amd64-tdep.c (amd64_return_value): Implement
8255 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8257 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8258 (m68k_value_to_register): New functions.
8259 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8262 * defs.h (enum return_value_convention): Add
8263 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8264 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8265 * infcmd.c (legacy_return_value): New function.
8266 (print_return_value): Rwerite to implement
8267 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8268 * values.c (using_struct_return): Check for inequality to
8269 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8270 RETURN_VALUE_STRUCT_CONVENTION.
8271 * i386-tdep.c (i386_return_value): Implement
8272 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8274 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8275 include "symtab.h", "opcode/vax.h" and "inferior.h".
8276 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8277 to read_memory_unsigned_integer.
8278 (vax_gdbarch_init): Reorder.
8279 (_initialize_vax_tdep): Spell out prototype.
8280 * Makefile.in (vax-tdep.o): Update dependencies.
8282 2004-05-08 Andrew Cagney <cagney@redhat.com>
8284 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8285 * target.c (target_detach, target_disconnect): Ditto.
8287 * infcall.c (call_function_by_hand): When no
8288 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8289 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8290 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8291 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8292 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8294 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8295 * gdbarch.h, gdbarch.c: Re-generate.
8296 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8297 deprecated_fix_call_dummy.
8298 * v850-tdep.c (v850_gdbarch_init): Ditto.
8299 * infcall.c (call_function_by_hand): Do not call
8300 DEPRECATED_FIX_CALL_DUMMY.
8302 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8303 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8304 * gdbarch.h, gdbarch.c: Re-generate.
8305 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8306 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8307 deprecated_sizeof_call_dummy_words.
8308 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8310 * v850-tdep.c (v850_gdbarch_init): Ditto.
8311 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8312 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8314 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8315 * arch-utils.h (legacy_call_dummy_words)
8316 (legacy_sizeof_call_dummy_words): Delete declarations.
8317 * arch-utils.c (legacy_call_dummy_words)
8318 (legacy_sizeof_call_dummy_words): Delete variables.
8320 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8321 * gdbarch.h, gdbarch.c: Re-generate.
8322 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8323 * infcall.c (call_function_by_hand): Eliminate call to
8324 DEPRECATED_PUSH_DUMMY_FRAME.
8325 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8327 (ns32k_push_dummy_frame): Delete function.
8329 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8330 deprecated_call_dummy_breakpoint_offset or
8331 deprecated_call_dummy_start_offset.
8332 * dummy-frame.c, arm-tdep.c: Update comments.
8333 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8334 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8335 * gdbarch.h, gdbarch.c: Re-generate.
8337 * infcall.c (legacy_push_dummy_code): Delete function.
8338 (push_dummy_code): Delete call.
8340 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8341 * gdbarch.h, gdbarch.c: Re-generate.
8342 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8343 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8344 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8345 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8347 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8348 (struct frame_info): Delete opaque declaration.
8349 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8350 * frame.c (get_frame_type): Delete call.
8352 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8354 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8355 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8357 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8359 * alphanbsd-tdep.c: Include "gdb_string.h".
8360 * armnbsd-tdep.c: Update copyright year.
8361 Include "gdb_string.h".
8362 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8365 * delta68-nat.c: Remove file.
8366 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8367 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8368 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8369 (delta68-nat.o): Remove dependency.
8371 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8373 (m68k_gdbarch_init): Don't set
8374 deprecated_frameless_function_invocation.
8376 2004-05-07 Randolph Chung <tausq@debian.org>
8378 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8379 read_memory_nobpt for code reading when doing frame unwinding.
8380 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8382 2004-05-07 Randolph Chung <tausq@debian.org>
8384 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8385 instead of sp, handle sigaltstack case.
8386 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8387 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8388 signal handler and not that of the caller.
8389 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8390 hppa_linux_sigtramp_find_sigcontext.
8392 2004-05-07 Randolph Chung <tausq@debian.org>
8394 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8396 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8397 * hppa-linux-nat.c (fetch_register, store_register): Define.
8398 (fetch_inferior_registers, store_inferior_registers): Define.
8399 (supply_gregset): Add comment and clean up some unneeded code.
8400 (fill_gregset): Add comment and fix so that it saves registers in
8401 the right place in the gregset.
8402 (fill_fpregset): Fix buffer overrun problem.
8403 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8405 2004-05-07 Randolph Chung <tausq@debian.org>
8407 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8408 do common handling of the pcoqt register.
8409 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8410 to use helper function.
8411 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8412 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8413 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8414 generic fallback unwinder when all else fails.
8415 (hppa_gdbarch_init): Add fallback sniffer.
8416 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8417 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8418 to use helper function.
8420 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8422 * config/djgpp/fnchange.lst: Add translation rules for
8423 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8425 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8427 * frame.c (get_prev_frame_1): Work around GCC bug.
8428 * frame.h: Add comment about GCC bug.
8430 2004-05-07 Andrew Cagney <cagney@redhat.com>
8432 * observer.c: Include "commands.h" and "gdbcmd.h".
8433 (observer_debug, _initialize_observer): Add the
8434 command "set/show debug observer".
8435 * observer.sh: When observer debugging, log notify calls.
8436 * Makefile.in (observer.o): Update dependencies.
8438 2004-05-07 Jason Molenda (jmolenda@apple.com)
8440 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8442 2004-05-07 Jim Blandy <jimb@redhat.com>
8444 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8445 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8446 to recognize gpr regnums, instead of assuming that
8447 tdep->ppc_fp0_regnum marks the end of the general-purpose
8450 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8451 the given architecture has floating-point registers.
8453 2004-05-07 Andrew Cagney <cagney@redhat.com>
8455 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8457 * gdbarch.h, gdbarch.c: Re-generate.
8458 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8459 deprecated_use_generic_dummy_frames.
8461 2004-05-07 Brian Ford <ford@vss.fsi.com>
8463 * NEWS: Mention Cygwin DWARF 2 support.
8465 2004-05-07 Andrew Cagney <cagney@redhat.com>
8467 * objfiles.h (struct entry_info): Delete unused fields
8468 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8469 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8470 * mipsread.c (mipscoff_symfile_read): Update.
8471 * mdebugread.c (parse_partial_symbols): Update.
8472 * dwarfread.c (read_file_scope): Update.
8473 * dwarf2read.c (read_file_scope): Update.
8474 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8475 * coffread.c (complete_symtab): Update.
8477 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8479 * infcall.c (_initialize_infcall): Fix typo.
8481 2004-05-07 Andrew Cagney <cagney@redhat.com>
8483 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8484 * command.h (add_setshow_zinteger_cmd): Declare.
8486 2004-05-06 Randolph Chung <tausq@debian.org>
8488 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8489 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8490 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8491 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8492 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8493 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8494 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8496 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8497 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8498 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8499 (hppa64_hpux_frame_find_saved_regs_in_sig)
8500 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8501 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8502 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8503 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8504 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8505 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8506 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8507 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8508 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8509 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8510 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8511 (hppa32_register_type, hppa_cannot_store_register)
8512 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8513 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8514 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8515 * pa64solib.c (pa64_solib_have_load_event)
8516 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8517 (pa64_solib_unloaded_library_pathname): Likewise.
8518 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8519 (som_solib_library_pathname): Likewise.
8521 2004-05-05 Jim Ingham <jingham@apple.com>
8523 * breakpoint.c (create_breakpoints): Copy the ignore count and
8524 thread id over from the pended breakpoint to the actual
8527 2004-05-05 Andrew Cagney <cagney@redhat.com>
8529 * gdbarch.sh (PARM_BOUNDARY): Delete.
8530 gdbarch.h, gdbarch.c: Re-generate.
8531 * valops.c (PARM_BOUNDARY): Delete macro.
8532 (value_push): Delete PARM_BOUNDARY code.
8533 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8535 2004-05-04 Jim Blandy <jimb@redhat.com>
8537 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8538 Don't assume that the gprs, fprs, and UISA sprs are
8539 contiguous, start at register number zero, and end with fpscr.
8540 Instead, use the numbers from the tdep structure.
8542 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8543 should no longer be used in code specific to the RS6000 and its
8545 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8546 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8547 tdep->ppc_fp0_regnum.
8548 (ppc_supply_fpregset, ppc_collect_fpregset)
8549 (rs6000_push_dummy_call, rs6000_extract_return_value)
8550 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8551 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8553 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8554 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8556 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8557 bdm_ppc_store_registers): Same.
8558 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8559 (store_register, fill_fpregset): Same.
8560 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8561 (ppc_linux_supply_fpregset): Same.
8562 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8563 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8566 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8567 ppc64_sysv_abi_return_value): Same.
8568 * rs6000-nat.c (regmap, fetch_inferior_registers)
8569 (store_inferior_registers, fetch_core_registers): Same.
8571 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8573 * m68knbsd-nat.c: Remove file.
8574 * m68knbsd-tdep.c: Remove file.
8575 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8577 * configure.host: Add m68k-*-netbsdelf*.
8578 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8579 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8580 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8582 * config/m68k/nbsdelf.mh: New file.
8583 * config/m68k/nbsd.mt: New file.
8584 * config/m68k/nbsdaout.mt: Remove file.
8585 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8586 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8587 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8588 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8589 (use_struct_convention): Remove prototype.
8590 (USE_STRUCT_CONVENTION): Remove define.
8591 * config/m68k/xm-nbsd.h: Remove file.
8593 2004-05-04 Michael Snyder <msnyder@redhat.com>
8595 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8596 reg_struct_return method (as gcc usually does for cross targets).
8598 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8600 Committed by Andrew Cagney.
8601 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8602 alignment padding when accessing ucontext struct members.
8604 2004-05-04 Jim Blandy <jimb@redhat.com>
8606 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8607 'ppc_gplast_regnum' member.
8608 (ppc_num_gprs): New enum constant.
8609 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8610 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8611 * rs6000-nat.c (regmap, fetch_inferior_registers,
8612 store_inferior_registers): Same.
8613 * rs6000-tdep.c (e500_pseudo_register_read)
8614 (e500_pseudo_register_write): Same.
8615 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8617 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8618 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8619 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8620 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8622 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8624 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8625 * rs6000-nat.c (regmap, fetch_inferior_registers)
8626 (store_inferior_registers): Same.
8628 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8631 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8633 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8634 failure detected by recent versions of GCC.
8635 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8636 to be consistent with the usage in dwarf2_create_include_psymtab.
8638 2004-05-03 Michael Snyder <msnyder@redhat.com>
8640 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8641 (heuristic_proc_start): Whitespace cleanup.
8643 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8645 * sun3-nat.c: Remove file.
8646 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8648 (ALLDEPFILES): Remove sun3-nat.c.
8649 (sun3-nat.o): Remove dependencies.
8651 * i386-interix-nat.c, i386-interix-tdep.c,
8652 config/i386/nm-interix.h, config/i386/interix.mh,
8653 config/i386/interix.mt: Remove files.
8654 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8657 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8659 * m68k-tdep.h (struct gdbarch_tdep): Add member
8660 struct_value_regnum.
8661 (m68k_svr4_init_abi): New prototype.
8662 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8663 different calling conventions.
8664 (m68k_extract_return_value): Remove code dealing with single-field
8666 (m68k_store_return_value): Remove code dealing with single-field
8667 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8668 (m68k_extract_struct_value_address): Remove function.
8669 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8670 (m68k_reg_struct_return_p, m68k_return_value)
8671 (m68k_svr4_return_value): New functions.
8672 (m68k_use_struct_convention): Remove function.
8673 (m68k_push_dummy_call): Use new struct_value_regnum member of
8674 `struct gdbarch_tdep' instead of hardcoded register number to
8676 (m68k_svr4_init_abi): New function.
8677 (m68k_gdbarch_init): Don't set extract_return_value,
8678 store_return_values, deprecated_extract_struct_value_address and
8679 use_struct_convention. Set return_value instead. Initialize new
8680 struct_value_regnum member of `struct gdbarch_tdep'.
8681 * m68klinux-tdep.c: Update copyright year.
8682 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8683 (m68k_linux_extract_struct_value_address): Remove function.
8684 (m68k_linux_init_abi): Don't set extract_return_value,
8685 store_return_values, deprecated_extract_struct_value_address and
8686 use_struct_convention. Call m68k_svr4_init_abi but override the
8687 new struct_value_regnum member of `struct gdbarch_tdep'.
8688 * Makefile.in (m68k-tdep.o): Update dependencies.
8690 2004-05-03 J. Brobecker <brobecker@gnat.com>
8692 * dwarf2read.c (line_header): Add new included_p field in
8694 (partial_die_info): New field has_stmt_list. New field line_offset.
8695 (dwarf2_create_include_psymtab): New function.
8696 (dwarf2_build_include_psymtabs): New function.
8697 (add_file_name): Add forward declaration. Initialize new field.
8698 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8699 to be able to determine the list of files included by the
8700 given unit, and build their associated psymtabs.
8701 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8703 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8704 (read_file_scope): Update call to dwarf_decode_lines.
8705 (read_partial_die): Handle DW_AT_stmt_list attributes.
8707 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8710 * configure.in: Revert special case for osf5.*.
8711 * configure: Regenerate.
8713 2004-05-02 Jim Blandy <jimb@redhat.com>
8715 Move the symbol-file-from-memory functions into their own file.
8716 * symfile-mem.c, symfile-mem.h: New files.
8717 * symfile.c (symbol_file_add_from_bfd): New function.
8718 (symbol_file_add): Call symbol_file_add_from_bfd.
8719 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8720 Moved to symfile-mem.c.
8721 (_initialize_symfile): Move definition of
8722 add-symbol-file-from-memory command to symfile-mem.c.
8723 * symfile.h (symbol_file_add_from_bfd): New declaration.
8724 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8725 * config/powerpc/linux.mt (TDEPFILES): Same.
8726 * Makefile.in (SFILES): Add symfile-mem.c.
8727 (symfile_mem_h): New variable.
8728 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8729 (symfile-mem.o): New rule.
8731 2004-05-01 Andrew Cagney <cagney@redhat.com>
8733 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8734 frame_find_by_id instead of frame_relative_level.
8735 (do_enable_breakpoint): Ditto.
8736 * thread.c: Update copyright.
8737 (info_threads_command): Ditto, simplify.
8739 * frame.c (deprecated_generic_get_saved_register): Delete
8740 function, moved to "xstormy16-tdep.c".
8741 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8742 deprecated_generic_get_saved_register from "frame.c".
8743 (xstormy16_frame_saved_register): Call
8744 xstormy16_get_saved_register.
8745 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8747 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8748 * frame.h (deprecated_generic_get_saved_register): Delete.
8750 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8752 * dwarfread.c: Update documentation on the state of dwarf-1.
8754 2004-05-01 Andrew Cagney <cagney@redhat.com>
8756 * stack.c (select_frame_command): Delete call to
8757 frame_relative_level.
8758 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8760 (frame_info): Do not print FRAMELESS.
8761 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8762 (catch_info): Delete #if0 code.
8764 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8765 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8766 of frame_relative_level.
8767 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8769 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8770 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8771 frame_relative_level.
8773 * frame.h (deprecated_set_frame_type): Delete declaration.
8774 * frame.c (deprecated_set_frame_type): Delete function, update
8777 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8778 * gdbarch.h, gdbarch.c: Re-generate.
8779 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8780 (shnbsd_pc_in_sigtramp): Delete.
8781 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8783 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8785 * frame.h: Update comments.
8786 * ppc-linux-tdep.c: Update comments.
8787 * breakpoint.c (bpstat_what): Update comments.
8789 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8790 m68klinux-tdep.o's dependencies, were previously added to
8793 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8794 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8795 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8796 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8797 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8799 * Makefile.in (m68klinux-nat.o): Update dependencies.
8800 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8801 (m68k_linux_sigtramp_frame_cache)
8802 (m68k_linux_sigtramp_frame_this_id)
8803 (m68k_linux_sigtramp_frame_prev_register)
8804 (m68k_linux_sigtramp_frame_unwind)
8805 (m68k_linux_sigtramp_frame_sniffer)
8806 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8807 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8808 names, use trad-frame.h.
8809 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8810 (struct m68k_sigtramp_info): Delete.
8811 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8812 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8813 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8814 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8817 * infrun.c (check_sigtramp2): Delete check for
8818 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8820 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8822 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8824 2004-05-01 Andrew Cagney <cagney@redhat.com>
8826 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8827 (frv_linux_sigtramp_frame_cache)
8828 (frv_linux_sigtramp_frame_this_id)
8829 (frv_linux_sigtramp_frame_prev_register)
8830 (frv_linux_sigtramp_frame_unwind)
8831 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8832 include "linux" in function and variable names, directly call
8833 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8834 the latest trad-frame code.
8835 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8836 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8837 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8838 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8839 * frv-tdep.c (frv_sigtramp_frame_cache)
8840 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8841 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8843 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8844 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8845 (frv_set_sigcontext_reg_addr): Delete function.
8847 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8848 (DEPRECATED_SIGTRAMP_END): Delete.
8849 * gdbarch.h, gdbarch.c: Re-generate.
8850 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8851 * config/vax/tm-vaxbsd.h: Update copyright.
8852 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8853 (DEPRECATED_IN_SIGTRAMP): Define.
8854 * config/m68k/tm-nbsd.h: Update copyright.
8855 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8856 (DEPRECATED_IN_SIGTRAMP): Define.
8858 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8860 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8861 encondings. Fixes PR gdb/1628.
8863 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8864 DW_CFA_restore state without a matching DW_CFA_remember_state
8865 instead of aborting. Fixes PR backtrace/1589.
8867 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8869 * MAINTAINERS: Add self as AIX maintainer.
8870 Update my e-mail address in write-after-approval section.
8872 2004-04-30 Andrew Cagney <cagney@redhat.com>
8874 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8875 (legacy_get_prev_frame): Ditto.
8877 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8878 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8879 * mipsread.c (sigtramp_address): Delete extern variable.
8880 (mipscoff_new_init): Delete reference.
8881 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8882 (fixup_sigtramp): Delete function.
8883 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8884 (fixup_sigtramp): Delete declarations.
8886 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8887 deprecated_pc_in_sigtramp.
8888 (ppcnbsd_pc_in_sigtramp): Delete function.
8890 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8892 * config/m68k/nm-nbsd.h: Tweak comments.
8893 * config/m68k/nm-nbsdaout.h: Likewise.
8895 2004-04-30 Andrew Cagney <cagney@redhat.com>
8897 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8898 legacy_pc_in_sigtramp.
8899 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8901 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8903 Add OpenBSD/m68k support.
8904 * NEWS (New native configurations): Mention OpenBSD/m68k.
8905 * m68kbsd-tdep.c: New file.
8906 * m68kbsd-nat.c: New file.
8907 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8908 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8909 * configure.host: Add m68k-*-openbsd.
8910 * configure.tgt: Add m68k-*-openbsd.
8911 * config/m68k/tm-obsd.h: New file.
8912 * config/m68k/obsd.mt: New file.
8913 * config/m68k/obsd.mh: New file.
8914 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8917 2004-04-30 Andrew Cagney <cagney@redhat.com>
8919 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8920 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8922 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8924 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8925 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8927 2004-04-30 Brian Ford <ford@vss.fsi.com>
8929 Revert 2004-04-16 change.
8930 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8931 (i386_coff_init_abi): Remove.
8932 * i386-tdep.h (i386_coff_init_abi): Remove.
8933 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8935 2004-04-30 Andrew Cagney <cagney@redhat.com>
8937 * blockframe.c (find_pc_partial_function): Delete use of
8938 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8939 DEPRECATED_SIGTRAMP_END.
8941 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8942 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8943 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8944 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8945 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8947 * defs.h (deprecated_inside_entry_file): Delete declaration.
8948 * blockframe.c (deprecated_inside_entry_file): Delete function.
8949 (legacy_frame_chain_valid): Delete call.
8950 * sh64-tdep.c (sh64_frame_chain): Delete call.
8951 * objfiles.h: Update comments.
8952 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8954 * frame.c (get_prev_frame): Delete call, update comments.
8956 2004-04-30 Brian Ford <ford@vss.fsi.com>
8958 * MAINTAINERS (Write After Approval): Add myself.
8960 2004-04-30 Andrew Cagney <cagney@redhat.com>
8962 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8963 * gdbarch.h, gdbarch.c: Re-generate.
8964 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8967 2004-04-30 Andrew Cagney <cagney@redhat.com>
8969 * gdb-events.sh (selected_thread_changed)
8970 (selected_frame_level_changed, target_changed): Delete.
8971 * gdb-events.h, gdb-events.c: Re-generate.
8972 * valops.c (value_assign): Update.
8973 * stack.c (select_frame_command, up_silently_base)
8974 (down_silently_base): Update.
8976 2004-04-29 Andrew Cagney <cagney@redhat.com>
8978 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8979 registers correctly.
8980 (print_gp_register_row, mips32_heuristic_proc_desc)
8981 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8982 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8983 references to mips_isa_regsize.
8985 2004-04-29 Andrew Cagney <cagney@redhat.com>
8987 * mips-tdep.c (struct gdbarch_tdep): Delete
8988 mips_fp_register_double.
8989 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8991 (mips_gdbarch_init): Do not set mips_fp_register_double.
8992 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8994 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8996 Committed by Andrew Cagney.
8997 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9000 2004-04-29 Andrew Cagney <cagney@redhat.com>
9002 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9003 gdbarch, use mips_abi, update callers.
9004 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9005 mips_abi_regsize, update callers.
9006 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9007 mips_default_abi_regsize.
9008 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9009 mips_default_abi_regsize.
9011 2004-04-29 Andrew Cagney <cagney@redhat.com>
9013 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9014 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9015 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9016 mips_default_abi_regsize.
9017 (mips_isa_regsize): Rename mips_regisze.
9018 * mipsnbsd-tdep.c: Update.
9019 * mips-linux-tdep.c: Update.
9020 * irix5-nat.c: Update.
9021 * mips-tdep.h (mips_isa_regsize): Update.
9023 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9024 Delete all disabled code.
9025 * gdb-events.h, gdb-events.c: Re-generate.
9027 2004-04-19 Jerome Guitton <guitton@gnat.com>
9028 Mark Kettenis <kettenis@gnu.org>
9030 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9031 the function begins with a branch instruction.
9033 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9035 * i386-tdep.c: Fix spelling mistakes.
9037 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9038 Andrew Cagney <cagney@redhat.com>
9040 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9042 * acconfig.h: Provide default _KMEMUSER value.
9043 * config.in, configure: Re-generate.
9044 * NEWS: Mention fix.
9046 2004-04-24 Randolph Chung <tausq@debian.org>
9048 * configure.host (hppa*-*-linux*): New target.
9049 * configure.tgt (hppa*-*-linux*): Likewise.
9050 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9051 gdbarch_init_osabi() call earlier so that osabi-specific frame
9052 unwinders can be registered first.
9053 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9055 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9056 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9057 * config/pa/linux.mh: New file.
9058 * config/pa/linux.mt: New file.
9059 * config/pa/nm-linux.h: New file.
9060 * config/pa/xm-linux.h: New file.
9061 * hppa-linux-nat.c: New file.
9062 * hppa-linux-tdep.c: New file.
9064 2004-04-28 Randolph Chung <tausq@debian.org>
9066 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9068 (hppa32_push_dummy_call): Fix small struct and floating point argument
9069 passing, and make sure the stack frame is properly aligned.
9071 2004-04-28 Andrew Cagney <cagney@redhat.com>
9073 * stack.c (print_stack_frame): Fix description.
9075 * NEWS: Mention gdb/gdbserver/configure execute permission
9076 changed. PR server/519.
9078 2004-04-28 Andrew Cagney <cagney@redhat.com>
9080 * stack.c (print_stack_frame_stub): Delete declaration.
9081 (struct print_stack_frame_args, print_stack_frame)
9082 (print_frame_info, print_frame): Replace "source" with print what.
9083 Replace "print" with "print_level". Replace "args" with
9085 * frame.h (show_and_print_stack_frame, print_stack_frame)
9086 (print_frame_info): Update declarations.
9087 * stack.c (select_and_print_frame, frame_command)
9088 (current_frame_command, up_command, down_command): Update calls -
9089 use get_selected_frame, pass "enum print_what" for source, do not
9090 call frame_relative_level.
9091 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9092 * remote-rdp.c (remote_rdp_open): Ditto.
9093 * remote-mips.c (common_open): Ditto.
9094 * remote-e7000.c (e7000_start_remote): Ditto.
9095 * ocd.c (ocd_start_remote): Ditto.
9096 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9097 * infrun.c (normal_stop): Ditto.
9098 * inflow.c (kill_command): Ditto.
9099 * infcmd.c (finish_command): Ditto.
9100 * corelow.c (core_open): Ditto.
9101 * tracepoint.c (finish_tfind_command): Ditto.
9102 * thread.c (info_threads_command, info_threads_command)
9103 (restore_current_thread, do_captured_thread_select): Ditto.
9104 * ada-tasks.c (task_command): Ditto.
9106 2004-04-26 Orjan Friberg <orjanf@axis.com>
9108 * frame.c: Include "observer.h".
9109 (frame_observer_target_changed): New function.
9110 (_initialize_frame): Attach target_changed observer.
9111 * regcache.c: Include "observer.h".
9112 (regcache_observer_target_changed): New function.
9113 (_initialize_regcache): Attach target_changed observer.
9114 * valops.c: Include "observer.h".
9115 (value_assign): Notify target_changed event when modifying register.
9116 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9118 2004-04-26 Orjan Friberg <orjanf@axis.com>
9120 From Paul Koning <pkoning@equallogic.com>:
9121 * breakpoint.c (free_valchain): New function.
9122 (insert_bp_location, delete_breakpoint): Use free_valchain.
9123 (remove_breakpoint): Do not remove the valchain.
9124 (bpstat_stop_status): If not stopped by watchpoint, skip
9125 watchpoints when generating stop status list.
9126 * infrun.c (handle_inferior_event): Make
9127 stepped_after_stopped_by_watchpoint a global variable.
9128 * remote.c (remote_stopped_data_address): Return watch data
9129 address rather than zero if stepped_after_stopped_by_watchpoint is
9132 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9135 * configure.in: Check for curses after termcap.
9136 On osf5.*, do not check for ncurses.
9137 * configure: Regenerate.
9139 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9141 * ppcobsd-nat.c: Include "ppc-tdep.h".
9142 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9144 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9145 Fixes PR tdep/1623 and PR tdep/1624.
9147 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9149 * xmodem.h, xmodem.c: Remove files.
9150 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9152 2004-04-23 Randolph Chung <tausq@debian.org>
9154 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9155 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9156 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9157 for handling stackless frames.
9158 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9160 2004-04-23 Randolph Chung <tausq@debian.org>
9162 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9163 starts at a pc before the frame is created.
9165 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9167 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9169 2004-04-23 Jerome Guitton <guitton@gnat.com>
9171 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9172 use convert_typed_floating to get the appropriate format.
9174 2004-04-22 Randolph Chung <tausq@debian.org>
9176 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9177 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9178 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9179 (hppa_sign_extend): Add prototype.
9180 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9181 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9182 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9183 hppa targets will also use these functions.
9184 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9185 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9186 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9187 (hppa_gdbarch_init): Remove gdbarch setting of
9188 skip_trampoline_code, in_solib_call_trampoline and
9189 in_solib_return_trampoline.
9190 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9191 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9192 hppa_in_solib_call_trampoline.
9193 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9194 Moved from hppa-tdep.c.
9195 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9196 in_solib_call_trampoline and in_solib_return_trampoline.
9198 2004-04-22 Randolph Chung <tausq@debian.org>
9200 * hppa-tdep.c (hppa_debug): New variable.
9201 (find_unwind_entry, hppa_frame_cache): Add debug output.
9202 (_initialize_hppa_tdep): Add command to set debug flag.
9204 2004-04-22 Andrew Cagney <cagney@redhat.com>
9206 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9208 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9209 signal trampoline unwinder.
9210 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9212 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9214 Add OpenBSD/powerpc support.
9215 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9216 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9217 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9218 (ppc_collect_fpregset): New prototypes.
9219 * ppcobsd-nat.c: New file.
9220 * ppcobsd-tdep.c: New file.
9221 * ppcobsd-tdep.h: New file.
9222 * rs6000-tdep.c: Include "regset.h".
9223 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9224 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9226 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9227 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9228 (rs6000-tdep.o): Update dependencies.
9229 * configure.host: Add powerpc-*-openbsd.
9230 * configure.tgt: Add powerpc-*-openbsd.
9231 * config/powerpc/obsd.mh: New file.
9232 * config/powerpc/nm-obsd.h: New file.
9233 * config/powerpc/obsd.mt: New file.
9235 2004-04-22 Andrew Cagney <cagney@redhat.com>
9237 * frame.h (show_frame_info): Delete declaration.
9239 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9240 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9241 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9242 * frv-tdep.c (frv_frame_this_id): Ditto.
9243 * avr-tdep.c (avr_frame_this_id): Ditto.
9245 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9247 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9249 2004-04-22 Jim Blandy <jimb@redhat.com>
9251 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9252 register number zero.
9254 2004-04-21 Michael Snyder <msnyder@redhat.com>
9256 * mips-tdep.c (heuristic_proc_start):
9257 Warning() already prefixes "Warning: ".
9259 2004-04-21 Andrew Cagney <cagney@redhat.com>
9261 * annotate.h (deprecated_annotate_starting_hook)
9262 (deprecated_annotate_stopped_hook)
9263 (deprecated_annotate_exited_hook)
9264 (deprecated_annotate_signal_hook)
9265 (deprecated_annotate_signalled_hook): Deprecate.
9266 * tracepoint.h (deprecated_create_tracepoint_hook)
9267 (deprecated_delete_tracepoint_hook)
9268 (deprecated_modify_tracepoint_hook)
9269 (deprecated_trace_find_hook)
9270 (deprecated_trace_start_stop_hook): Deprecate.
9271 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9272 * remote.h (deprecated_target_resume_hook)
9273 (deprecated_target_wait_loop_hook): Deprecate.
9274 * gdbcore.h (deprecated_exec_file_display_hook)
9275 (deprecated_file_changed_hook): Deprecate.
9276 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9277 * defs.h (deprecated_modify_breakpoint_hook)
9278 (deprecated_command_loop_hook, deprecated_show_load_progress)
9279 (deprecated_print_frame_info_listing_hook)
9280 (deprecated_query_hook, deprecated_warning_hook)
9281 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9282 (deprecated_delete_breakpoint_hook)
9283 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9284 (deprecated_readline_begin_hook, deprecated_readline_hook)
9285 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9286 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9287 (deprecated_context_hook, deprecated_target_wait_hook)
9288 (deprecated_attach_hook, deprecated_detach_hook)
9289 (deprecated_call_command_hook, deprecated_set_hook)
9290 (deprecated_error_hook, deprecated_error_begin_hook)
9291 (deprecated_ui_load_progress_hook): Deprecate.
9292 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9293 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9294 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9295 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9296 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9297 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9298 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9299 * annotate.c, aix-thread.c: Update.
9301 2004-04-21 Andrew Cagney <cagney@redhat.com>
9303 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9304 * vaxnbsd-tdep.c: Include "gdb_string.h".
9306 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9307 (add_symbol_file_from_memory_command): #if 0 function body, call
9310 2004-04-21 Andrew Cagney <cagney@redhat.com>
9312 * gdbcore.h: Update copyright.
9313 (deprecated_add_core_fns): Rename add_core_fns.
9314 * win32-nat.c (_initialize_core_win32): Update.
9315 * sun3-nat.c (_initialize_core_sun3): Update.
9316 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9317 * rs6000-nat.c (_initialize_core_rs6000): Update.
9318 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9319 * nto-tdep.c (_initialize_nto_tdep): Update.
9320 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9321 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9322 * mips-nat.c (_initialize_core_mips): Update.
9323 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9324 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9325 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9326 * lynx-nat.c (_initialize_core_lynx): Update.
9327 * irix5-nat.c (_initialize_core_irix5): Update.
9328 * i386-interix-nat.c (_initialize_core_interix): Update.
9329 * cris-tdep.c (_initialize_cris_tdep): Update.
9330 * corelow.c (deprecated_add_core_fns): Update.
9331 * core-regset.c (_initialize_core_regset): Update.
9332 * core-aout.c (_initialize_core_aout): Update.
9333 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9334 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9335 * alpha-nat.c (_initialize_core_alpha): Update.
9337 2004-04-21 Jim Blandy <jimb@redhat.com>
9339 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9341 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9343 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9345 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9346 (read_attribute_value): Update calls to dwarf_alloc_block.
9347 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9349 (psymtab_to_symtab_1): Likewise. Clean up using
9350 free_stack_comp_unit.
9351 (add_to_cu_func_list): Use the comp_unit_obstack.
9353 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9355 * dwarf2read.c (dwarf2_flag_true_p): New function.
9356 (die_is_declaration): Use the function above. Add some comments.
9358 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9360 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9361 architecture when registering sparcnbsd_core_osabi_sniffer.
9364 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9366 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9369 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9370 * i386-tdep.c: Correct register numbering scheme comments
9372 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9373 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9374 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9375 (i386_gdb_arch_init): Likewise.
9377 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9378 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9381 * m68k-tdep.h: Tweak comments.
9382 * m68k-tdep.c: Tweak comment.
9384 2004-04-17 Randolph Chung <tausq@debian.org>
9386 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9387 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9388 (hppa_hpux_som_init_abi): Set is_elf to 0.
9389 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9390 * hppa-tdep.c (low_text_segment_address): Remove global.
9391 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9392 section offset to calculate segment address.
9393 (internalize_unwinds): Define low_text_segment_address as local and
9394 pass to record_text_segment_lowaddr for ELF targets.
9395 (hppa_gdbarch_init): Zero fill tdep structure.
9396 (hppa_dump_tdep): Print tdep structure.
9397 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9399 2004-04-17 Randolph Chung <tausq@debian.org>
9401 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9402 (hppa_gdbarch_init): Set pseudo_register_read.
9403 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9404 * regcache.c (supply_register): Remove check for
9405 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9407 2004-04-17 Randolph Chung <tausq@debian.org>
9409 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9410 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9411 (hpread_adjust_stack_address): Move to hpread.c.
9412 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9413 obj_private_struct): Move from tm-hppa.h.
9414 * hpread.c (hppa-tdep.h): Include.
9415 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9416 (hpread_read_function_type, hpread_read_doc_function_type)
9417 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9419 * pa64solib.c (hppa-tdep.h): Include.
9420 * somsolib.c (hppa-tdep.h): Include.
9421 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9422 inferior_status): Remove unused forward declarations.
9423 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9424 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9425 obj_private_struct): Move to hppa-tdep.h.
9426 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9428 2004-04-17 Randolph Chung <tausq@debian.org>
9430 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9431 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9432 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9433 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9434 Remove forward declaration and make static.
9435 (hppa_reg_struct_has_addr): Remove.
9437 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9439 * observer.sh: Move comments in sed command to first column.
9441 2004-04-16 Jason Molenda (jmolenda@apple.com)
9443 * frame.c: Minor typeo corrections in comments.
9445 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9447 * observer.c (observer_test_first_notification_function): Update
9449 (observer_test_second_notification_function): Likewise.
9450 (observer_test_third_notification_function): Likewise.
9452 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9454 From Brian Ford <ford@vss.fsi.com>:
9455 * i386-tdep.c (i386_coff_init_abi): New function.
9456 * i386-tdep.h (i386_coff_init_abi): New prototype.
9457 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9458 register number translation functions for DWARF and DWARF 2.
9460 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9462 * dwarf2read.c: Back out my previous change, it was incorrect.
9464 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9466 * dwarf2read.c: Include "hashtab.h".
9467 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9469 (struct partial_die_info): Add comments. Use bitfields to reduce
9470 memory footprint. Add scope, scope_set, has_specification,
9471 spec_offset, die_parent, die_child, and die_sibling.
9472 (peek_die_abbrev): Add prototype.
9473 (partial_read_comp_unit_head): New function, broken out from
9474 dwarf2_build_psymtabs_hard.
9475 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9476 Use partial_read_comp_unit_head. Initialize the CU and
9477 comp_unit_obstack. Update calls to read_partial_die and
9478 scan_partial_symbols. Use free_stack_comp_unit and
9480 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9481 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9482 Update calls to helper functions. Remove NAMESPACE argument.
9484 (partial_die_parent_scope, partial_die_full_name): New functions.
9485 (add_partial_symbol): Remove namespace argument. Update call to
9486 pdi_needs_namespace. Use partial_die_full_name. Handle
9487 DW_TAG_namespace. Check has_namespace_info flag.
9488 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9489 tag. Handle namespaces.
9490 (add_partial_namespace, add_partial_enumeration): Simplify.
9491 (guess_structure_name): New function, derived from
9492 add_partial_structure.
9493 (add_partial_structure): Remove.
9494 (determine_class_name): Update comment.
9495 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9496 (is_type_tag_for_partial, load_partial_dies): New functions.
9497 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9498 Record specifications instead of following them immediately.
9499 (find_partial_die_in_comp_unit, find_partial_die)
9500 (fixup_partial_die, free_stack_comp_unit)
9501 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9502 (partial_die_hash, partial_die_eq): New functions.
9503 * Makefile.in (hashtab_h): Define.
9504 (dwarf2read.o): Update dependencies.
9505 (observer_inc, observer_h): Move to the correct section.
9507 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9509 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9510 (die_is_declaration): Use the function above. Add comment.
9512 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9514 * dwarf2read.c (read_structure_scope): Identify stub types
9515 using die_is_declaration() only.
9517 2004-04-15 Roland McGrath <roland@redhat.com>
9519 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9520 argument instead of NAME.
9521 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9522 in call to symbol_file_add_with_addrs_or_offsets.
9523 (build_addr_info): New function, helper for ...
9524 (symbol_file_add_from_memory): New function.
9525 (add_symbol_file_from_memory_command): New function using that.
9526 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9527 (pre_add_symbol_hook): Add const to argument type.
9528 * symfile.h (symbol_file_add_from_memory): Declare it.
9530 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9532 * NEWS (New native configurations): Mention OpenBSD/vax.
9533 * configure.host: Add vax-*-openbsd*.
9534 * config/vax/obsd.mh: New file.
9535 * config/vax/nm-obsd.h: New file.
9537 * vax-tdep.c: Include "regset.h".
9538 (vax_supply_gregset): New function.
9539 (vax_gregset): New variable.
9540 (vax_regset_from_core_section): New function.
9541 (vax_gdbarch_init): Set regset_from_core_section.
9542 * Makefile.in (vax-tdep.o): Update dependencies.
9544 2004-04-15 Andrew Cagney <cagney@redhat.com>
9546 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9547 (observer_normal_stop_notification_stub)
9548 (observer_attach_normal_stop, observer_detach_normal_stop):
9549 Delete, replaced by #include "observer.inc".
9550 * infrun.c (normal_stop): Pass "stop_bpstat" to
9551 observer_notify_normal_stop.
9552 * Makefile.in (observer_inc): Define.
9553 (observer.o): Update dependencies.
9554 (observer.h, observer.inc): New rules.
9555 * observer.h: Delete file.
9556 * observer.sh: New file.
9558 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9560 * vax-tdep.c (vax_frame_cache): Fix typo.
9562 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9564 * NEWS (New native configurations): Mention NetBSD/vax.
9565 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9566 * config/vax/nbsdelf.mh: New file.
9567 * config/vax/nbsdaout.mh: New file.
9568 * config/vax/nm-nbsd.h: New file.
9569 * config/vax/nm-nbsdaout.h: New file.
9571 * vaxnbsd-tdep.c: New file.
9572 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9573 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9574 * config/vax/nbsd.mt: New file.
9575 * config/vax/tm-nbsd.h: New file.
9577 * Makefile.in (vaxbsd-nat.o): New dependency.
9579 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9580 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9581 struct_addr arguments. Don't push return value address.
9582 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9583 arguments to vax_store_arguments. Store return value address in
9585 (vax_store_struct_return, vax_extract_return_value)
9586 (vax_store_return_value): Remove functions.
9587 (vax_return_value): New function.
9588 (vax_gdbarch_init): Set return value. Don't set
9589 deprecated_store_struct_return, deprecated_extract_struct_return
9590 and deprecated_store_return_value.
9592 2004-04-14 Andreas Schwab <schwab@suse.de>
9594 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9596 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9598 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9600 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9601 (vax_unwind_dummy_id): New functions.
9602 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9603 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9605 (vax_fix_call_dummy): Remove function.
9606 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9607 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9608 call_dummy_location, deprecated_call_dummy_words,
9609 deprecated_sizeof_call_dummy_words,
9610 deprecated_call_dummy_breakpoint_offset,
9611 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9612 and deprecated_dummy_write_sp.
9614 2004-04-13 David Carlton <carlton@kealia.com>
9616 * MAINTAINERS: Move myself to "paper trail" section.
9618 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9620 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9622 (vax_frame_init_saved_regs): Remove function.
9623 (vax_sigtramp_saved_pc): Remove function.
9624 (vax_frame_saved_pc): Remove function.
9625 (vax_frame_args_address): Remove function.
9626 (vax_frame_num_args): Rewrite.
9627 (vax_frame_chain): Remove function.
9628 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9630 (vax_pop_frame): Likewise.
9631 (vax_saved_pc_after_call): Remove function.
9632 (struct vax_frame_cache): New structure.
9633 (vax_frame_cache): New function.
9634 (vax_frame_this_id): New function.
9635 (vax_frame_prev_register): New function.
9636 (vax_frame_unwind): New variable.
9637 (vax_frame_sniffer): New function.
9638 (vax_frame_base_address): New function.
9639 (vax_frame_args_address): New function.
9640 (vax_frame_base): New variable.
9641 (vax_unwind_pc): New function.
9642 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9643 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9644 deprecated_frame_chain, deprecated_frame_saved_pc,
9645 deprecated_frame_args_address and
9646 deprecated_frame_init_saved_regs.
9647 * Makefile.in (vax-tdep.o): Update dependencies.
9649 * vaxbsd-nat.c: New file.
9651 * vax-tdep.h: Update copyright year. Adjust comments.
9652 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9653 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9654 (vax_regnum): New enum. Replacing...
9655 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9656 (VAX_PS_REGNUM): ... these removed macros.
9657 * vax-tdep.c (vax_register_name): Remove prototype.
9658 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9659 (vax_register_byte, vax_register_raw_size,
9660 vax_register_virtual_size, vax_register_virtual_type): Remove
9662 (vax_register_type): New function.
9663 (vax_breakpoint_from_pc): Reorganize.
9664 (vax_gdbarch_init): Set register_type. Don't set
9665 deprecated_register_size, deprecated_register_bytes,
9666 deprecated_register_byte, deprecated_register_raw_size,
9667 deprecated_max_register_raw_size,
9668 deprecated_register_virtual_size,
9669 deprecated_max_register_virtual_size and
9670 deprecated_register_virtual_type. Add comment on stack direction.
9672 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9674 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9675 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9676 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9678 2004-04-10 Randolph Chung <tausq@debian.org>
9680 * MAINTAINERS (write after approval): Add myself.
9682 2004-04-07 Randolph Chung <tausq@debian.org>
9684 * hppa-tdep.c (hppa_inner_than): Remove.
9685 (is_pa_2): Remove unused static variable.
9686 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9688 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9690 * language.h (language_defn): Add new la_post_parser field.
9691 * parser-defs.h (null_post_parser): New declaration (default for
9694 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9695 insert call to that function.
9696 (parse_exp_in_context): New function, including code formerly in
9697 parse_exp_1. Calls language-dependent post-parser after
9699 (parse_expression_in_context): New exported function.
9700 (null_post_parser): New definition.
9701 * expression.h (parse_expression_in_context): Add declaration.
9703 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9704 * c-lang.c (c_language_defn): Ditto.
9705 (cplus_language_defn): Ditto.
9706 (asm_language_defn): Ditto.
9707 (minimal_language_defn): Ditto.
9708 * f-lang.c (f_language_defn): Ditto.
9709 * jv-lang.c (java_language_defn): Ditto.
9710 * language.c (unknown_language_defn): Ditto.
9711 (auto_language_defn): Ditto.
9712 (local_language_defn): Ditto.
9713 * m2-lang.c (m2_language_defn): Ditto.
9714 * scm-lang.c (scm_language_defn): Ditto.
9715 * obj-lang.c (objc_language_defn): Ditto.
9717 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9719 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9720 (amd64nbsd_mcontext_addr): New function.
9721 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9722 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9723 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9725 * corelow.c (core_xfer_partial): Fix coding standards violation.
9726 Add support for TARGET_OBJECT_WCOOKIE.
9728 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9729 deprecated_pc_in_sigtramp.
9730 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9731 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9732 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9733 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9734 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9735 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9736 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9738 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9739 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9742 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9743 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9744 (amd64_collect_fxsave): Likewise.
9746 * i386-sol2-tdep.c: Include "gdb_string.h".
9747 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9749 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9751 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9753 * i386-sol2-tdep.c: Include "solib-svr4.h".
9754 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9755 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9756 * config/i386/tm-i386sol2.h: Include :solib.h".
9757 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9758 solib-svr4.o and solib-legacy.o.
9759 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9762 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9764 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9765 whether a register is supplied by PTRACE_GETFPREGS.
9766 (store_inferior_registers): Likewise.
9767 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9768 whether a register is supplied by PT_GETFPREGS.
9769 (store_inferior_registers): Likewise.
9771 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9772 * config/i386/linux64.mt (TDEPFILES): Likewise.
9774 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9776 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9777 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9778 the program counter is in the range specified by `struct
9780 * amd64-linux-tdep.c: Include "symtab.h".
9781 (amd64_linux_pc_in_sigtramp): Remove function.
9782 (amd64_linux_sigtramp_p): New function.
9783 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9784 deprecated_pc_in_sigtramp.
9785 * amd64nbsd-tdep.c: Include "symtab.h".
9786 (amd64nbsd_sigtramp_p): New function.
9787 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9788 deprecated_pc_in_sigtramp.
9789 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9791 (amd64obsd_pc_in_sigtramp): Remove function.
9792 (amd64obsd_sigtramp_p): New function.
9793 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9794 deprecated_pc_in_sigtramp.
9795 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9796 (i386bsd_pc_ins_sigtramp): Remove prototype.
9797 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9798 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9799 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9800 the program counter is in the range specified by `struct
9802 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9803 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9804 (i386_go32_pc_in_sigtramp): Remove function.
9805 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9806 Initialize TDEP->sigtramp_p.
9807 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9808 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9809 deprecated_pc_in_sigtramp.
9810 * i386-linux-tdep.c: Adjust comments.
9811 (i386_linux_pc_in_sigtramp): Remove function.
9812 (i386_linux_sigtramp_p): New function.
9813 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9814 deprecated_pc_in_sigtramp.
9815 * i386-nto-tdep.c: Update copyright year.
9816 (i386nto_pc_in_sigtramp): Remove function.
9817 (i386nto_sigtramp_p): New function.
9818 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9820 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9821 deprecated_pc_in_sigtramp.
9822 * i386-sol2-tdep.c: Update copyright year.
9823 (i386_sol2_pc_in_sigtramp): Remove function.
9824 (i386_sol2_sigtramp_p): New function.
9825 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9826 deprecated_pc_in_sigtramp.
9827 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9828 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9829 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9830 deprecated_sigtramp_start and deprecated_sigtramp_end.
9831 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9832 (i386nbsd_pc_in_sigtramp): Remove function.
9833 (i386nbsd_sigtramp_p): New function.
9834 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9835 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9836 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9837 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9838 (i386obsd_pc_in_sigtramp): Remove function.
9839 (i386obsd_sigtramp_p): New function.
9840 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9842 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9843 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9845 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9846 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9849 * config/i386/i386aout.mt: Remove file.
9851 * configure.tgt: Remove i[34567]86-*-go32*,
9852 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9853 and i[34567]86-*-isc*. Set gdb_target to i386 for
9854 i[34567]86-*-netware* and i[34567]86-*-*.
9855 * config/i386/i386.mt: New file.
9856 * config/i386/embed.mt: Remove file.
9857 * config/i386/go32.mt: Remove file.
9858 * config/i386/i386nw.mt: Remove file.
9859 * config/i386/i386v.mt: Remove file.
9860 * config/i386/tm-go32.h: Remove file.
9862 * tui/tui-hooks.c: Include "readline/readline.h" after
9863 "gdb_curses.h" instead of before.
9864 * tui/tui-io.c: Likewise.
9866 * tui/tui.c: Fix typo in comment.
9868 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9870 2004-04-08 Andrew Cagney <cagney@redhat.com>
9872 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9873 (deprecated_exception_support_initialized): Declare.
9874 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9875 (initialize_hp_cxx_exception_support)
9876 (child_enable_exception_callback): Update.
9877 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9878 (deprecated_exception_support_initialized): Rename
9879 deprecated_exception_catchpoints_are_fragile and
9880 deprecated_exception_support_initialized.
9881 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9883 * symtab.c (deprecated_hp_som_som_object_present): Rename
9884 hp_som_som_object_present.
9885 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9886 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9887 Update. Delete extern declaration.
9888 * valops.c (hp_som_som_object_present): Ditto.
9889 * parse.c (deprecated_hp_som_som_object_present)
9890 (parse_nested_classes_for_hpacc): Ditto.
9891 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9892 * hppa-hpux-tdep.c (hp_som_som_object_present)
9893 (initialize_hp_cxx_exception_support): Ditto.
9894 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9895 * cp-valprint.c (hp_som_som_object_present)
9896 (cp_print_class_method): Ditto.
9897 * c-typeprint.c (hp_som_som_object_present):
9898 (c_type_print_base): Ditto.
9899 * c-exp.y (hp_som_som_object_present): Ditto.
9901 2004-04-08 Andrew Cagney <cagney@redhat.com>
9903 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9904 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9905 (frame_unwind_find_by_frame): Re-implement the unwind code so
9906 that it can both prepend and append sniffers. Replace
9907 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9908 * tramp-frame.c (tramp_frame_append): Use
9909 frame_unwind_prepend_unwinder.
9910 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9911 frame_unwind_register_unwinder.
9912 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9914 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9915 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9916 (mips_linux_init_abi): Update.
9918 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9920 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9921 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9924 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9926 * ia64-tdep.c (elf.h): Don't include.
9927 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9929 2004-04-07 Jason Molenda (jmolenda@apple.com)
9931 * frame.h: Typeo corrections in comments.
9933 2004-04-07 Jim Blandy <jimb@redhat.com>
9935 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9938 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9940 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9941 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9942 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9943 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9945 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9947 * config/sparc/tm-sol2.h: Update copyright year. Include
9950 * sparc-sol2-tdep.c: Update copyright year. Include
9952 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9953 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9954 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9955 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9958 2004-04-06 Andrew Cagney <cagney@redhat.com>
9960 * infttrace.c: Include "infttrace.h".
9961 * infttrace.h: Include "target.h".
9962 * Makefile.in (infttrace_h): Update.
9963 (infttrace.o): Update.
9965 2004-04-06 Andrew Cagney <cagney@redhat.com>
9967 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9968 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9969 move extern declarations from here ...
9970 * infttrace.h: ... to here.
9971 * Makefile.in (hppah-nat.o): Update dependencies.
9973 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9974 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9975 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9976 (hppa_breakpoint_from_pc): Delete.
9978 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9980 2004-04-05 Andrew Cagney <cagney@redhat.com>
9982 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9983 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9986 2004-04-06 Randolph Chung <tausq@debian.org>
9988 Committed by Andrew Cagney (mechanical change).
9989 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9990 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9991 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9992 child_enable_exception_callback, current_ex_event,
9993 null_symtab_and_line, child_get_current_exception_event,
9994 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9995 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9996 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9997 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9998 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9999 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10000 Move hpux-specific definitions ...
10001 * hppa-hpux-tdep.c: ... to here.
10003 2004-04-05 Andrew Cagney <cagney@redhat.com>
10005 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10006 skip_prologue_using_sal.
10008 2004-04-05 Andrew Cagney <cagney@redhat.com>
10010 * config/i386/tm-i386.h: Delete file.
10011 * config/i386/tm-vxworks.h: Update copyright, do not include
10013 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10014 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10015 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10016 * config/i386/ncr3000.mt (TM_FILE): Delete.
10017 * config/i386/interix.mt (TM_FILE): Delete.
10018 * config/i386/i386v.mt (TM_FILE): Delete.
10019 * config/i386/i386nw.mt (TM_FILE): Delete.
10020 * config/i386/i386gnu.mt (TM_FILE): Delete.
10021 * config/i386/i386aout.mt (TM_FILE): Delete.
10022 * config/i386/embed.mt (TM_FILE): Delete.
10024 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10026 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10027 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10028 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10029 (accg7_regnum): New constants.
10030 (last_spr_regnum, last_pseudo_regnum): Update.
10031 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10032 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10033 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10034 for accg registers.
10035 (frv_register_sim_regno): Update spr_map[].
10037 2004-04-04 Andrew Cagney <cagney@redhat.com>
10039 * config/mips/xm-riscos.h: Delete.
10040 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10041 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10042 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10043 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10044 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10045 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10046 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10047 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10048 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10049 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10050 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10051 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10052 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10053 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10054 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10055 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10056 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10057 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10058 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10059 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10060 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10061 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10062 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10063 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10064 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10065 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10067 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10068 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10069 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10070 * configure.host: Remove m680[01]0-sun-sunos3*,
10071 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10072 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10073 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10074 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10076 * NEWS: Mention removed systems.
10078 2004-04-04 Andrew Cagney <cagney@redhat.com>
10080 GDB 6.1 release created from 6.1 branch.
10082 2004-04-04 Andrew Cagney <cagney@redhat.com>
10084 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10085 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10086 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10088 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10089 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10090 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10092 2004-04-03 Jim Blandy <jimb@redhat.com>
10094 * MAINTAINERS: Chris Faylor has changed employers; add him to
10095 "paper trail" section, and update his E-mail address.
10097 2004-04-03 Andrew Cagney <cagney@redhat.com>
10099 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10100 generic dummy frames.
10101 * dummy-frame.c: Update copyright.
10102 (dummy_frame_sniffer): Delete check for generic dummy frames.
10104 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10105 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10106 (REG_PARM_STACK_SPACE): Delete.
10107 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10108 Inline reference to REG_PARM_STACK_SPACE.
10110 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10111 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10112 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10113 (FRAME_BASE_BEFORE_SIGTRAMP)
10114 (hppa32_hpux_frame_base_before_sigtramp)
10115 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10116 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10117 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10118 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10119 (FRAME_BASE_BEFORE_SIGTRAMP)
10120 (hppa64_hpux_frame_base_before_sigtramp)
10121 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10123 2004-04-03 Andrew Cagney <cagney@redhat.com>
10125 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10127 2004-04-02 Andrew Cagney <cagney@redhat.com>
10129 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10130 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10131 * dummy-frame.h: Delete out-of-date comments.
10132 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10133 * gdbarch.h, gdbarch.c: Re-generate.
10135 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10137 Committed by Andrew Cagney <cagney@redhat.com>.
10138 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10139 into account an instruction saving a register if we have already
10140 seen an earlier instruction saving that same register.
10142 2004-04-02 Andrew Cagney <cagney@redhat.com>
10144 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10145 * gdbarch.h, gdbarch.c: Re-generate.
10146 * frame.c (legacy_get_prev_frame): Delete references to
10147 DEPRECATED_INIT_FRAME_PC_FIRST.
10149 * infrun.c (pc_in_sigtramp): Delete function.
10150 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10153 2004-04-02 Andrew Cagney <cagney@redhat.com>
10155 * infrun.c (handle_step_into_function): Delete code conditional on
10157 (handle_inferior_event, step_over_function): Ditto.
10159 2004-04-02 Andrew Cagney <cagney@redhat.com>
10161 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10162 "previous frame inner to this frame" test.
10164 2004-04-02 Andrew Cagney <cagney@redhat.com>
10166 * frame.c (safe_frame_unwind_memory): New function.
10167 * frame.h (safe_frame_unwind_memory): Declare. Update description
10168 of /safe_/ methods.
10169 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10170 "next_frame". Use safe_frame_unwind_memory.
10171 (tramp_frame_sniffer): Update call to tramp_frame_start.
10173 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10175 * dwarf2read.c (dwarf2_objfile_data_key): New.
10176 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10177 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10178 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10179 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10180 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10181 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10182 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10184 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10185 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10186 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10187 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10188 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10189 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10191 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10193 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10194 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10195 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10196 (read_partial_die, read_full_die, read_indirect_string)
10197 (dwarf_decode_line_header, dwarf_decode_macros)
10198 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10199 Update uses of removed variables.
10200 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10202 (_initialize_dwarf2_read): New function.
10203 * symfile.h (dwarf2_has_info): Update prototype.
10204 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10205 * elfread.c (elf_symfile_read): Likewise.
10207 2004-04-01 Jim Blandy <jimb@redhat.com>
10209 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10210 function for register numbers on all the rs6000-derived targets.
10211 (rs6000_gdbarch_init): Don't register a separate
10212 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10213 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10216 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10219 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10221 * valarith.c: Update copyright notice.
10222 (value_add): Handle range types.
10223 (value_sub): Ditto.
10224 (value_equal): Ditto.
10225 (value_less): Ditto.
10226 (value_neg): Ditto.
10227 (value_complement): Ditto.
10228 (value_binop): Simplify slightly by using is_integral_type and
10229 eliminiating unnecessary COERCE_ENUMs.
10231 2004-03-31 Andrew Cagney <cagney@redhat.com>
10233 * frame.h (frame_unwind_id): Declare.
10234 * frame.c (frame_unwind_id): New function.
10235 (get_prev_frame_1): New function.
10236 (frame_debug_got_null_frame): New function.
10237 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10238 code proper to prev_frame, update description.
10239 * infrun.c (step_over_function): Use frame_unwind_id.
10241 2004-04-31 J. Brobecker <brobecker@gnat.com>
10243 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10244 (hppa64_push_dummy_call): Likewise.
10246 2004-03-30 Jim Blandy <jimb@redhat.com>
10248 From Ulrich Weigand:
10249 * utils.c (query): Do not use a va_list variable multiple times.
10251 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10253 * Makefile.in (linux_nat_h): Update dependencies.
10254 * configure.in: Check for <gnu/libc-version.h>.
10255 * configure: Regenerate.
10256 * config.in: Regenerate.
10257 * linux-nat.h: Include "target.h". Add waitstatus field to
10259 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10260 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10262 (lin_lwp_handle_extended): New function. Handle clone events.
10263 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10264 thread exit events.
10265 (child_wait): Handle clone events.
10266 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10267 * linux-nat.c (linux_enable_event_reporting): Turn on
10268 PTRACE_O_TRACECLONE.
10269 (linux_handle_extended_wait): Handle clone events.
10270 * thread-db.c: Include <gnu/libc-version.h>.
10271 (struct private_thread_info): Add dying flag.
10272 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10274 (attach_thread): Update comments. Handle dying threads.
10275 (detach_thread): Set the dying flag.
10276 (check_event): Always call attach_thread.
10278 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10280 * mips-tdep.c (mips_pdr_data): New.
10281 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10282 (_initialize_mips_tdep): Initialize mips_pdr_data.
10284 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10286 * minsyms.c (install_minimal_symbols): Move dropping leading
10287 char from linkage name from here...
10288 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10289 test for "__gnu_compiled*" symbols.
10291 2004-03-28 Jim Blandy <jimb@redhat.com>
10293 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10294 registers to temp register r0 and byte stores as prologue
10297 2004-03-28 Andrew Cagney <cagney@redhat.com>
10299 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10302 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10304 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10305 and switch the layout to force a display of register window.
10307 2004-02-26 J. Brobecker <brobecker@gnat.com>
10309 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10310 of the INTEGER class.
10312 2004-03-26 Jim Blandy <jimb@redhat.com>
10314 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10315 bytes long on PPC GNU/Linux.
10317 2004-03-26 David Carlton <carlton@kealia.com>
10319 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10321 2004-03-25 Andrew Cagney <cagney@redhat.com>
10323 * PROBLEMS: Add general section titles, remove references to
10326 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10328 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10330 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10331 FP_REGISTER_VIRTUAL_SIZE.
10332 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10333 of DEPRECATED_REGISTER_RAW_SIZE.
10334 (arm_register_type): Add gdbarch argument.
10335 (arm_register_raw_size, arm_register_virtual_size): Delete.
10336 (arm_register_byte, arm_extract_return_value)
10337 (arm_store_return_value, arm_get_longjmp_target): Update references
10338 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10339 (arm_gdbarch_init): Likewise. Don't set
10340 deprecated_register_raw_size, deprecated_register_virtual_size,
10341 deprecated_max_register_raw_size,
10342 deprecated_max_register_virtual_size, or
10343 deprecated_max_register_virtual_type. Do set register_type.
10344 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10345 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10346 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10347 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10348 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10349 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10351 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10352 (remote_rdp_store_register): Likewise.
10354 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10356 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10357 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10358 to after osabi initialization.
10359 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10360 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10362 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10363 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10365 (mips_linux_init_abi): Append signal trampoline unwinders.
10367 2004-03-24 Andrew Cagney <cagney@redhat.com>
10369 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10370 * tramp-frame.c: Include "gdb_assert.h".
10371 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10373 (tramp_frame_append): Validate the tramp frame's instructions.
10374 * Makefile.in (tramp-frame.o): Update dependencies.
10376 2004-03-23 Andrew Cagney <cagney@redhat.com>
10378 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10380 2004-03-23 Andrew Cagney <cagney@redhat.com>
10382 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10383 Nasser as past testsuite/lib/ (and other) maintainers.
10385 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10387 * infcmd.c (attach_command): Reread symbols if we already have
10390 2004-03-23 Andrew Cagney <cagney@redhat.com>
10392 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10394 2004-03-23 Andrew Cagney <cagney@redhat.com>
10396 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10397 * gdbarch.h, gdbarch.c: Re-generate.
10398 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10399 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10400 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10401 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10402 (DEPRECATED_SIGTRAMP_START): Update.
10403 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10404 (DEPRECATED_SIGTRAMP_START): Update.
10405 * blockframe.c (find_pc_sect_partial_function): Update.
10406 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10408 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10410 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10413 2004-03-23 Andrew Cagney <cagney@redhat.com>
10415 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10416 predicate, deprecate.
10417 * gdbarch.h, gdbarch.c: Re-generate.
10418 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10419 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10420 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10421 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10422 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10423 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10424 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10425 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10426 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10427 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10428 * blockframe.c (find_pc_partial_function): Update.
10429 * breakpoint.c (bpstat_what): Update.
10430 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10431 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10432 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10433 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10434 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10435 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10436 * i386-nto-tdep.c (i386nto_init_abi): Update.
10437 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10438 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10439 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10440 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10441 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10442 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10443 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10444 * infrun.c (pc_in_sigtramp): Update.
10445 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10446 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10447 * mips-tdep.c (mips_gdbarch_init): Update.
10448 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10449 * ppc-linux-tdep.c: Update comment.
10450 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10451 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10452 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10453 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10454 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10455 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10456 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10457 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10458 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10459 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10461 2004-03-23 Andrew Cagney <cagney@redhat.com>
10463 * tramp-frame.h, tramp-frame.h: New files.
10464 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10465 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10467 * Makefile.in: Update all dependencies.
10469 2004-03-23 Andrew Cagney <cagney@redhat.com>
10471 * Makefile.in (trad_frame_h): Add $(frame_h).
10472 * trad-frame.h: Update copyright. Include "frame.h".
10473 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10474 (trad_frame_set_id, trad_frame_get_id): Declare.
10475 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10476 * trad-frame.c: Update copyright.
10477 (struct trad_frame_cache): Define.
10478 (trad_frame_cache_zalloc): New function.
10479 (trad_frame_set_id, trad_frame_get_id): New functions.
10480 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10482 2004-03-22 Andrew Cagney <cagney@redhat.com>
10484 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10485 s390_pltstub_unwind_cache.
10486 (s390_stub_frame_unwind_cache): Rename
10487 s390_pltstub_frame_unwind_cache.
10488 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10489 (s390_stub_frame_prev_register): Rename
10490 s390_pltstub_frame_prev_register.
10491 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10492 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10494 From Ulrich Weigand:
10495 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10496 pointer calls like PLT calls.
10498 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10500 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10501 PC rather than the partial function start address. Use the start
10502 address to sanity check the found PDR.
10504 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10506 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10507 linux_handle_extended_wait.
10509 2004-03-22 Andrew Cagney <cagney@redhat.com>
10511 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10514 * frame.h (generic_pop_current_frame): Delete declaration.
10515 (deprecate_pop_dummy_frame): Deprecate
10516 generic_pop_dummy_frame.
10517 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10518 (generic_pop_current_frame): Delete function.
10519 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10520 generic_pop_current_frame.
10521 * v850-tdep.c (v850_pop_frame): Update.
10522 * mcore-tdep.c (mcore_pop_frame): Update.
10523 * sh64-tdep.c (sh64_pop_frame): Update.
10524 * h8300-tdep.c (h8300_pop_frame): Update.
10526 2004-03-22 Andrew Cagney <cagney@redhat.com>
10528 * frame.h (deprecated_pc_in_call_dummy): Rename
10529 generic_pc_in_call_dummy.
10530 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10531 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10532 generic_pc_in_call_dummy.
10533 (pc_in_dummy_frame): Make static.
10534 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10535 * gdbarch.h, gdbarch.c: Re-generate.
10536 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10537 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10538 (legacy_get_prev_frame): Ditto.
10539 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10542 2004-03-21 Andrew Cagney <cagney@redhat.com>
10544 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10545 declaration and out-of-date comment.
10546 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10548 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10549 deprecated_pc_in_call_dummy.
10551 * infrun.c (handle_inferior_event): For non legacy frames, use the
10552 frame ID and frame type to identify a signal trampoline. Update
10555 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10557 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10558 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10560 2004-03-21 Andrew Cagney <cagney@redhat.com>
10562 * frame-unwind.h: Update copyright.
10563 (struct frame_data): Add opaque declaration.
10564 (frame_sniffer_ftype): Declare.
10565 (struct frame_unwind): Add "unwind_data" and "sniffer".
10566 (frame_unwind_register_unwinder): Declare.
10567 (frame_unwind_find_by_frame): Add parameter "this_cache".
10568 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10569 (legacy_get_prev_frame, legacy_get_prev_frame)
10570 (get_frame_type): Pass the prologue_cache to
10571 frame_unwind_find_by_frame.
10572 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10574 (frame_unwind_register_unwinder): New function.
10575 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10577 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10579 * bcache.c (print_percentage): Use floating point to avoid
10580 incorrect results when portion*100 overflows.
10582 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10584 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10585 (ppc_linux_init_extra_frame_info)
10586 (ppc_linux_frameless_function_invocation)
10587 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10588 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10589 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10590 (rs6000_frame_chain): Delete declarations.
10591 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10592 (ppc_linux_init_extra_frame_info)
10593 (ppc_linux_frameless_function_invocation)
10594 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10595 (ppc_linux_init_abi): Remove registration of above deleted functions.
10596 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10597 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10598 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10599 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10600 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10601 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10602 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10603 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10604 frame management for all OSABIs.
10606 2004-03-19 Andrew Cagney <cagney@redhat.com>
10608 Committed by Kevin Buettner <kevinb@redhat.com>.
10610 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10612 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10613 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10614 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10615 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10616 unwinders. #ifdef legacy frame code.
10617 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10619 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10620 (struct rs6000_frame_cache, rs6000_frame_cache)
10621 (rs6000_frame_this_id, rs6000_frame_prev_register)
10622 (rs6000_frame_sniffer, rs6000_frame_unwind)
10623 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10624 (rs6000_frame_base): Implement a traditional frame unwinder.
10625 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10628 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10630 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10631 breakpoint address for watchpoints or the catch eventpoints.
10632 Add new paramter ``bptype''. Adjust all callers.
10634 2004-03-19 Andrew Cagney <cagney@redhat.com>
10636 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10638 * PROBLEMS: Delete note that ARM does not use frame code, problem
10641 2004-03-18 Andrew Cagney <cagney@redhat.com>
10643 * stack.c (return_command): Delete code wrapped in #ifdef
10644 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10646 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10648 2004-03-18 Andrew Cagney <cagney@redhat.com>
10650 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10651 DEPRECATED_IN_SIGTRAMP.
10652 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10653 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10654 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10655 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10656 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10657 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10658 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10659 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10660 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10661 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10663 2004-03-18 Andrew Cagney <cagney@redhat.com>
10665 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10666 (struct frame_base_table_entry): Define.
10667 (struct frame_base_table): Re-implement as a linked list.
10668 (frame_base_init): Re-implement.
10669 (frame_base_table): Delete function.
10670 (append_predicate): Delete function.
10671 (frame_base_append_sniffer): Update.
10672 (frame_base_set_default): Update.
10673 (frame_base_find_by_frame): Update.
10674 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10675 * Makefile.in (frame-base.o): Update dependencies.
10677 2004-03-17 Andrew Cagney <cagney@redhat.com>
10679 * frame.c (legacy_get_prev_frame): Pass correct frame to
10680 frame_unwind_find_by_frame.
10682 2004-03-17 David Carlton <carlton@kealia.com>
10684 * NEWS: Mention C++ nested types and namespaces
10686 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10688 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10689 and "Regressions since gdb 5.3.". Add known regressions since
10692 2004-03-16 David Carlton <carlton@kealia.com>
10694 * dwarf2read.c (process_structure_scope): Process children even
10695 when we're a declaration.
10697 2004-03-16 Andrew Cagney <cagney@redhat.com>
10699 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10700 * blockframe.c (find_pc_partial_function)
10701 (find_pc_sect_partial_function): Merge into a single
10702 find_pc_partial_function.
10704 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10706 * i386bsd-nat.c: s/regno/regnum/g.
10707 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10709 (store_inferior_registers): Likewise.
10711 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10713 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10714 of i387_fill_fsave.
10715 (store_inferior_registers): Call i387_collect_fsave and
10716 i387_collect_fxsave instead of i387_fill_fsave and
10719 2004-03-15 Andrew Cagney <cagney@redhat.com>
10721 * Makefile.in (frame-unwind.o): Update dependencies.
10722 * frame-unwind.c: Include "gdb_obstack.h".
10723 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10725 (append_predicate): Delete function.
10726 (struct frame_unwind_table_entry): New structure.
10727 (struct frame_unwind_table): Replace "sniffer" with "head" and
10729 (frame_unwind_append_sniffer): Update.
10730 (frame_unwind_find_by_frame): Update.
10731 (_initialize_frame_unwind): Registe frame_unwind_init using
10732 gdbarch_data_register_pre_init.
10734 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10736 * i386bsd-nat.c: Update copyright year.
10737 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10738 define unconditionally.
10740 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10742 * i387-tdep.h (i387_collect_fsave): New prototype.
10743 * i387-tdep.c (i387_collect_fsave): New function containing most
10744 of the code from i387_fill_fsave.
10745 (i387_fill_fsave): Call i387_collect_fsave.
10747 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10749 * i386-linux-tdep.c: Update copyright year.
10750 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10751 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10752 svr4_ilp32_link_map_offsets instead of
10753 i386_linux_svr4_fetch_link_map_offsets.
10755 2004-03-15 David Carlton <carlton@kealia.com>
10757 Fix for PR c++/1553:
10758 * dwarf2read.c (read_structure_type): Determine type name by
10759 calling determine_class_name.
10760 (determine_class_name): New.
10761 (determine_prefix): Look at TYPE_TAG_NAME and call
10762 determine_class_name when appropriate.
10763 (determine_prefix_aux, class_name): Delete.
10764 (read_namespace): Set die->type.
10766 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10768 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10769 unused macro definition. The definition in target.h (or perhaps
10770 elsewhere) takes precedence.
10772 2004-03-15 Andrew Cagney <cagney@redhat.com>
10774 * ppc-tdep.h: Update copyright.
10775 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10776 function signatures to match "regsets.h".
10777 * ppc-linux-tdep.c: Include "regset.h".
10778 (ELF_GREGSET_SIZE): Delete.
10779 (right_supply_register): New function.
10780 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10781 using right_supply_register.
10782 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10784 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10785 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10786 (_initialize_ppc_linux_tdep): Do not register
10787 ppc_linux_regset_core_fns.
10788 (ppc_linux_regset_from_core_section): Replace
10789 fetch_core_registers.
10790 (ppc_linux_regset_core_fns): Delete.
10791 * ppc-linux-nat.c: (right_fill_reg): New function.
10792 (supply_gregset): Update call to ppc_linux_supply_gregset.
10793 (fill_gregset): Clear the register set, use right_fill_reg.
10794 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10795 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10797 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10800 2004-03-15 Andrew Cagney <cagney@redhat.com>
10802 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10803 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10804 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10805 and register_gdbarch_data.
10806 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10807 (struct gdbarch_data): Replace "init" by "pre_init" and
10809 * gdbarch.h, gdbarch.c: Re-generate.
10810 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10811 with"obstack", use OBSTACK_ZALLOC.
10812 (dwarf2_frame_ops): Delete.
10813 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10814 (dwarf2_frame_init_reg): Use gdbarch_data.
10815 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10816 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10817 (_initialize_svr4_solib): Update.
10818 * user-regs.c (_initialize_user_regs): Update.
10819 * reggroups.c (_initialize_reggroup): Update.
10820 * regcache.c (_initialize_regcache): Update.
10821 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10822 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10823 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10824 * frame-unwind.c (_initialize_frame_unwind): Update.
10825 * frame-base.c (_initialize_frame_base): Update.
10826 * user-regs.c (user_reg_add): Update.
10827 * reggroups.c (reggroup_add): Update.
10828 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10829 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10830 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10831 * frame-base.c (frame_base_table): Update.
10832 * remote.c (_initialize_remote): Update.
10833 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10835 2004-03-15 Andrew Cagney <cagney@redhat.com>
10837 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10839 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10841 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10842 * frv-linux-tdep.c: New file.
10843 * frv-tdep.c (struct gdbarch_tdep): Add new field
10844 ``sigcontext_reg_addr''.
10845 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10846 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10847 (frv_sigramp_frame_sniffer): New functions.
10848 (frv_sigtramp_frame_unwind): New static global.
10849 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10851 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10852 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10854 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10856 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10857 but not via a call to error(), when unable to read memory.
10859 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10861 * frv-tdep.c (frv_call_dummy_words): Delete.
10862 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10864 2004-03-15 Andrew Cagney <cagney@redhat.com>
10866 * infrun.c (handle_step_into_function, step_over_function): Only
10867 update and use STEP_FRAME_ID when the system is using legacy
10868 frames. Update comments.
10870 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10872 * amd64-linux-tdep.h: Remove file.
10873 * amd64-linux-tdep.c: Don't include "inferior.h" and
10874 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10875 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10876 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10877 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10878 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10880 (user_to_gdb_regmap): Remove variable.
10881 (amd64_linux_gregset_reg_offset): New variable.
10882 (amd64_core_fns): Remove variable.
10883 (fetch_core_registers): Remove function.
10884 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10886 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10887 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10888 * Makefile.in (amd64_linux_tdep_h): Remove.
10889 (amd64-linux-nat.o): Update dependencies.
10890 (amd64-linux-tdep.o): Update dependencies.
10892 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10893 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10895 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10897 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10898 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10900 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10902 * dwarf2read.c (read_structure_type): Rename from
10903 read_structure_scope. Don't create a symbol or call process_die.
10904 Return immediately if die->type is set. Call read_type_die before
10905 dwarf2_add_member_fn.
10906 (process_structure_scope): New function.
10907 (read_enumeration_type, process_enumeration_scope): New functions,
10908 broken out from read_enumeration. Don't create the enumeration
10909 type if it has already been created.
10910 (read_enumeration): Removed.
10911 (process_die): Call read_structure_type, process_structure_scope,
10912 read_enumeration_type, and process_enumeration_scope. Just call
10913 new_symbol for base and subrange types. Add a comment about other
10915 (read_type_die): Call read_enumeration_type.
10916 (add_partial_structure, new_symbol): Update comments.
10918 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10920 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10922 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10924 * tui/tui-win.h (tui_get_cmd_list): Declare.
10925 * tui/tui-win.c (tui_command): New function.
10926 (tui_get_cmd_list): New function.
10927 (_initialize_tui_win): Moved initialization of tui command in
10930 * tui/tui-data.c (init_content_element): Setup new data members.
10931 (init_win_info): Likewise.
10932 (free_content_elements): Free it.
10933 * tui/tui-data.h (struct tui_data_element): Store the register
10935 (struct tui_data_info): Keep the current register group.
10937 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10939 * tui/tui-regs.h (tui_show_registers): Update prototype.
10940 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10941 (tui_resize_all): No need to calculate anything for register window.
10942 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10943 (tui_set_register_element, tui_set_general_regs_content): Remove.
10944 (tui_set_special_regs_content): Remove.
10945 (tui_set_general_and_special_regs_content): Remove.
10946 (tui_set_float_regs_content): Remove.
10947 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10948 (tui_set_regs_content): Remove.
10949 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10950 (tui_v_show_registers_command_support): Remove.
10951 (tui_show_registers): Use a reggroup to specify the registers to show.
10952 (tui_show_register_group): New function.
10953 (tui_display_registers_from): Compute the layout of register window
10954 and refresh with new API; be sure to delete old register windows.
10955 (tui_check_register_values): Update to use tui_get_register and
10957 (tui_display_register): Just refresh the register window part.
10958 (tui_register_format): Format registers and save in tui_data_element.
10959 (tui_get_register): New to combine tui_reg_value_has_changed and
10960 tui_get_register_raw_value; fix to use the new gdb API.
10961 (tui_show_float_command): Renamed tui_reg_float_command.
10962 (tui_show_general_command): Renamed tui_reg_general_command.
10963 (tui_show_special_command): Renamed tui_reg_system_command.
10964 (_initialize_tui_regs): Remove unused commands.
10966 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10968 * NEWS (New native configurations): Mention OpenBSD/amd64.
10970 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10971 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10973 * config/i386/nm-fbsd64.h: Likewise.
10974 * config/i386/nm-obsd.h: Likewise.
10975 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10976 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10978 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10980 * frv-tdep.c (set_variant_scratch_registers): New function.
10981 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10984 From Richard Sandiford <rsandifo@redhat.com>:
10985 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10987 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10989 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10990 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10991 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10992 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10993 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10994 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10995 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10996 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10997 definitions from frv-tdep.c to frv-tdep.h.
10999 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11001 Add shared library support for FR-V FDPIC ABI:
11002 * Makefile.in (solib-frv.o): Add dependencies.
11003 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11005 (frv_push_dummy_call): Add support for FDPIC ABI.
11006 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11008 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11009 (frv_fdpic_find_canonical_descriptor): Declare.
11010 * solib-frv.c: New file.
11011 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11012 * config/frv/tm-frv.h (solib.h): Include.
11014 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11016 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11017 (frv-tdep.o): Update dependencies.
11018 * frv-tdep.h: New file.
11019 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11020 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11022 (struct gdbarch_tdep): Add new member ``frv_abi''.
11023 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11025 (new_variant): Set ``frv_abi'' field.
11026 (gdb_arch_init): Detect FDPIC executables.
11028 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11030 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11033 2004-03-11 Andrew Cagney <cagney@redhat.com>
11035 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11037 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11039 * solist.h (master_so_list): New function.
11040 * solib.c (master_so_list): Likewise.
11041 * solib-svr4.c (enable_break): Iterate over so_list entries
11042 obtained from master list instead of entries obtained directly
11043 via svr4_current_sos().
11045 2004-03-10 Ben Elliston <bje@gnu.org>
11047 * MAINTAINERS: Update my mail address.
11049 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11051 * remote-m32r-sdi.c: Support hardware watchpoint.
11053 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11055 * user-regs.c: Update copyright years.
11056 (struct user_regs): Rename to gdb_user_regs.
11057 (append_user_reg, builtin_user_regs, user_regs_init)
11058 (user_reg_add, user_reg_map_name_to_regnum)
11059 (usernum_to_user_reg): Update.
11061 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11063 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11064 (skip_children): New functions.
11065 (locate_pdi_sibling): Call skip_children.
11067 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11069 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11070 * gdbtypes.c (check_typedef): Update comments.
11072 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11074 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11075 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11076 pointer. Update comment about comp_unit_head.
11077 (struct abbrev_info): Shorten two int flags.
11078 (dwarf_alloc_abbrev): Take a CU argument.
11079 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11080 each time through the loop. Update cleanup argument.
11081 (psymtab_to_symtab_1): Update cleanup call.
11082 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11084 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11085 Just call obstack_free and clear the pointer.
11087 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11089 * infrun.c (handle_inferior_event): Remove short-circuit code for
11090 events in a different thread.
11092 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11094 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11095 print the whole transfer.
11096 (initialize_targets): Update description of "set debug target".
11098 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11100 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11102 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11104 * MAINTAINERS (write after approval): Add myself.
11106 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11108 * sh-tdep.c (sh_print_registers_info): Use for loop.
11109 Don't skip multiple registers when a float register is encountered.
11111 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11114 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11115 to official SH documentation.
11117 2004-03-07 Andrew Cagney <cagney@redhat.com>
11119 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11122 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11124 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11125 (arm_get_next_pc): Handle BX and BLX.
11127 2004-03-07 Andrew Cagney <cagney@redhat.com>
11129 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11130 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11132 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11133 (hppa_target_read_fp): Delete.
11134 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11135 register_virtual_size, max_register_raw_size,
11136 max_register_virtual_size, register_byte, register_size,
11137 target_read_fp, fp_regnum, and register_bytes. Set register_type
11138 instead of register_virtual_type.
11139 (hppa32_register_type, hppa64_register_type): Replace
11140 hppa32_register_virtual_type and hppa64_register_virtual_type.
11141 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11142 (HPPA_FP_REGNUM): Define.
11144 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11146 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11147 (pa_do_registers_info): Delete.
11148 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11149 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11150 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11152 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11153 GDB_TARGET_IS_HPPA code.
11154 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11155 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11156 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11157 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11158 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11159 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11160 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11161 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11162 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11163 (hppa_frameless_function_invocation, hppa64_store_return_value)
11164 (hppa_store_struct_return, hppa64_extract_return_value)
11165 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11166 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11167 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11168 (find_proc_framesize, deposit_21, restore_pc_queue)
11169 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11170 (rp_saved, pc_in_linker_stub): Delete.
11172 Unconditionally enable 64-bit frame and ABI code.
11173 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11174 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11175 push_dummy_frame, fix_call_dummy, push_arguments,
11176 call_dummy_location, extract_return_value, use_struct_convention,
11177 store_return_value, store_struct_return, saved_pc_after_call,
11178 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11179 frame_chain, frame_chain_valid, frameless_function_invocation,
11180 frame_saved_pc, and pop_frame.
11182 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11183 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11184 (hppa_gdbarch_init): Do not set PC_REGNUM.
11186 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11188 * config/alpha/tm-fbsd.h: Remove file.
11189 * config/alpha/fbsd.mt: Tweak comment.
11190 (TM_FILE): Set to tm-alpha.h.
11192 2004-03-05 Andrew Cagney <cagney@redhat.com>
11194 * infrun.c (step_over_function): When non-legacy code, and no
11195 step_frame_id, use the unwinder to get the caller's frame ID.
11197 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11199 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11200 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11201 bfd_arch_unknown. Adjust comment.
11203 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11204 * i386obsd-tdep.c: Correct spelling in comment.
11205 * i386nbsd-tdep.c: Correct spelling in comment.
11206 * sparc-tdep.c: Correct spelling in comments.
11208 2004-03-05 David Carlton <carlton@kealia.com>
11210 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11213 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11215 * sparc-tdep.c: Fix typo in comment.
11217 2004-03-04 J. Brobecker <brobecker@gnat.com>
11219 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11221 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11223 * dwarf2read.c: Add comment describing memory lifetimes.
11224 (struct dwarf2_pinfo): Update comment.
11225 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11226 (read_enumeration, new_symbol): Don't use obsavestring.
11228 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11230 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11231 instead of amd64_fill_fxsave.
11232 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11233 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11235 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11236 Reorganize code a bit.
11238 2004-03-04 Orjan Friberg <orjanf@axis.com>
11240 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11241 when the frame pointer is pushed. Don't set the frame pointer's
11242 address on the stack unless it's actually located there.
11243 Set the SRP's address on the stack correctly when the PC is still in
11245 (cris_return_value): New function.
11246 (cris_gdbarch_init): Clear deprecated store_return_value,
11247 extract_return_value.
11249 2004-03-02 Jim Blandy <jimb@redhat.com>
11251 * stabsread.c (reg_value_complaint): The maximum register number
11252 is one less than the number of registers.
11254 2004-03-02 Andrew Cagney <cagney@redhat.com>
11256 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11257 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11258 trailing comma and redundant assignment of I386_ST0_REGNUM.
11259 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11260 32-bit segment registers.
11262 2004-03-01 Andrew Cagney <cagney@redhat.com>
11264 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11265 use frame_relative_level and get_next_frame.
11267 2004-02-29 Andrew Cagney <cagney@redhat.com>
11269 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11270 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11271 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11274 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11276 * inflow.c (terminal_inferior): Don't give up the terminal if we
11277 previously couldn't get the inferior's terminal state.
11279 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11281 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11284 2004-02-28 Andrew Cagney <cagney@redhat.com>
11286 * NEWS: Refer to GDB 6.1.
11287 * README: Refer to GDB 6.1.
11288 * PROBLEMS: Refer to GDB 6.1.
11290 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11292 * thread-db.c (disable_thread_signals): Remove unused function.
11294 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11296 * amd64-nat.c: Include "gdb_string.h".
11297 (amd64_collect_native_gregset): Zero-extend the 32-bit
11298 general-purpose registers and %eip.
11300 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11301 * amd64-tdep.c (amd64_collect_fxsave): New function.
11302 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11304 * i387-tdep.h: Update copyright year.
11305 (i387_collect_fxsave): New prototype.
11306 * i387-tdep.c: Update copyright year.
11307 (i387_collect_fxsave): New function containing most of the code
11308 from i387_fill_fxsave.
11309 (i387_fill_fxsave): Call i387_collect_fxsave.
11311 2004-02-28 Andrew Cagney <cagney@redhat.com>
11313 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11314 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11316 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11318 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11320 2004-02-28 Andrew Cagney <cagney@redhat.com>
11322 * utils.c: Use "", instead of <>, to include readline.
11323 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11324 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11325 * source.c, solib.c, exec.c, event-top.c: Ditto.
11326 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11327 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11328 * Makefile.in: Update all dependencies.
11329 (readline_tilde_h, readline_history_h): Define.
11330 (readline_headers): Delete.
11332 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11334 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11335 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11336 "config/i386/tm-lx64.h".
11338 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11339 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11340 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11342 2004-02-28 Andrew Cagney <cagney@redhat.com>
11344 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11346 * breakpoint.c (_initialize_breakpoint): Use
11347 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11348 Add help to show command.
11350 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11352 * i386-nat.c: Reformat to be closer to coding standards.
11353 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11354 `retval'. Make variables `align' and `size' local to while-loop.
11355 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11356 (_initialize_i386_nat): New prototype.
11358 * tui/tui.c: Include <readline/readline.h> instead of
11359 "readline/readline.h". Include it after <term.h> and
11362 2004-02-27 Andrew Cagney <cagney@redhat.com>
11364 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11365 the new frame unwind code.
11366 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11367 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11370 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11371 "return_value" and "push_dummy_call".
11372 (hppa32_use_struct_convention): Delete unused function.
11373 (hppa32_store_return_value): Delete unused function.
11374 (hppa32_extract_return_value): Delete unused function.
11375 (hppa32_stack_align): Delete function.
11377 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11379 * coffread.c (enter_linenos): Don't let rawptr reference memory
11380 outside linetab[]'s limits.
11382 2004-02-27 Andrew Cagney <cagney@redhat.com>
11384 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11385 inferior stack space - the stack needs to grow upwards.
11386 (hppa32_frame_align): New function.
11387 (hppa64_frame_align): Replace hppa_frame_align.
11388 (hppa_gdbarch_init): Update.
11390 2004-02-26 Orjan Friberg <orjanf@axis.com>
11392 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11393 (dwarf2-frame.h): Include.
11394 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11395 Remove static variables related to ABI setting.
11396 (struct gdbarch_tdep): Remove cris_abi member.
11397 (struct frame_extra_info): Remove.
11398 (cris_unwind_cache, stack_item): New structs.
11399 (cris_frame_unwind, cris_frame_base): New variables.
11400 (push_stack_item, pop_stack_item)
11401 (cris_frame_unwind_cache, cris_frame_this_id)
11402 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11403 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11404 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11405 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11406 (cris_reg_struct_has_addr): New functions.
11407 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11408 (cris_frame_saved_pc, cris_saved_pc_after_call,
11409 (cris_store_struct_return, cris_frameless_function_invocation)
11410 (cris_pop_frame, cris_skip_prologue_main)
11411 (cris_abi_original_store_return_value)
11412 (cris_abi_v2_store_return_value)
11413 (cris_abi_original_extract_return_value)
11414 (cris_abi_v2_extract_return_value)
11415 (cris_abi_original_reg_struct_has_addr)
11416 (cris_abi_v2_reg_struct_has_addr)
11417 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11418 (cris_push_return_address, cris_abi_update): Remove.
11419 (_initialize_cris_tdep): Remove ABI command.
11420 (cris_dump_tdep): Ditto.
11421 (cris_gdbarch_init): Remove ABI command.
11422 Set store_return_value, extract_return_value, push_dummy_code,
11423 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11424 frame_unwind_append_sniffer, frame_base_set_default.
11425 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11426 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11427 sizeof_call_dummy_words, get_saved_register, push_return_address,
11428 pop_frame, store_struct_return, frame_init_saved_regs,
11429 init_extra_frame_info, frameless_function_invocation, frame_chain,
11430 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11433 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11435 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11436 * valprint.c (print_hex_chars): Change from static to external.
11437 (print_char_chars): New function.
11438 * printcmd.c (print_scalar_formatted): For integer and enum types
11439 that are longer than LONGEST, perform processing via appropriate
11440 print_*_chars routines.
11442 2004-02-26 Andrew Cagney <cagney@redhat.com>
11444 * Makefile.in: Update dependencies.
11445 Changes from Ulrich Weigand,
11446 * s390-tdep.c: Include "dwarf2-frame.h".
11447 (s390_dwarf2_frame_init_reg): New function.
11448 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11449 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11451 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11453 * breakpoint.c (pending_break_support): New setting variable.
11454 (break_command_1): Account for pending_break_support setting
11455 when creating pending breakpoints.
11456 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11457 (_initialize_breakpoint): Add "set breakpoint pending" and
11458 "show breakpoint pending" commands.
11460 2004-02-26 Andrew Cagney <cagney@redhat.com>
11463 * charset.c (backslashable, backslashed, represented): Remove 'e'
11464 from list of escaped characters, not part of ISO-C.
11466 2004-02-25 J. Brobecker <brobecker@gnat.com>
11468 From Peter Schauer <schauer@pdf.de>:
11469 * tui/tui.c: Move system header includes after local includes.
11470 Fixes a build failure on solaris systems.
11472 2004-02-25 J. Brobecker <brobecker@gnat.com>
11474 * configure.in: Refine the previous change.
11475 * configure: Regenerate.
11477 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11479 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11480 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11481 "amd64-tdep.h" instead of "x86-64-tdep.h".
11482 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11483 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11484 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11485 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11486 and "x86-64-tdep.c".
11487 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11488 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11489 and "x86-64-tdep.c".
11490 * amd64bsd-nat.c: Update copyright year.
11491 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11492 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11494 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11496 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11498 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11500 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11502 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11504 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11505 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11506 * Makefile.in (amd64_linux_tdep_h): Renamed from
11507 x86_64_linux_tdep_h.
11508 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11509 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11510 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11511 (amd64obsd-tdep.o): Update dependencies.
11512 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11514 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11516 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11517 amd64-linux-nat.c amd64-linux-tdep.c.
11518 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11519 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11520 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11521 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11522 amd64-tdep.o and amd64-linux-tdep.o.
11523 (TM_FILE): Set to tm-linux64.h.
11524 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11525 (NAT_FILE): Set to nm-linux64.h.
11526 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11527 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11529 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11531 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11534 2004-02-25 Roland McGrath <roland@redhat.com>
11536 * remote.c (remote_protocol_qPart_auxv): New variable.
11537 (init_all_packet_configs): Initialize it.
11538 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11539 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11540 (show_remote_cmd): Call it.
11541 (_initialize_remote): Initialize commands.
11542 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11543 service TARGET_OBJECT_AUXV requests.
11545 2004-02-25 J. Brobecker <brobecker@gnat.com>
11547 * configure.in: Make sure that the wborder function is available.
11548 Otherwise, search for it in the cur_colr library.
11549 * configure: Regenerate.
11551 2004-02-25 Andrew Cagney <cagney@redhat.com>
11553 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11555 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11557 * config/i386/tm-x86-64linux.h: Tweak comments.
11559 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11561 * MAINTAINERS: Add self to write-after-approval list.
11563 2004-02-25 Andrew Cagney <cagney@redhat.com>
11565 PR cli/1566. Problem found, and fix suggested by David Allan.
11566 * cli/cli-script.c (execute_control_command): Unconditionally
11567 install a cleanup. Default "ret" to "invalid_control". Use
11568 "break" instead of "return" to escape from the switch.
11570 2004-02-24 J. Brobecker <brobecker@gnat.com>
11572 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11573 with the lines macro defined in term.h on AiX.
11574 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11575 a collision with the label_width macro defined in term.h on AiX.
11577 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11579 Committed by Kevin Buettner <kevinb@redhat.com>.
11581 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11582 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11583 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11584 instead of ia64_write_pc().
11585 * ia64-linux-tdep.c (regcache.h): Include.
11586 (ia64_linux_write_pc): New function.
11588 2004-02-23 Roland McGrath <roland@redhat.com>
11590 * auxv.c (info_auxv_command): Fix typos in error messages.
11592 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11594 * x86-64-tdep.h: Tweak comment.
11595 (enum amd64_regnum): New.
11596 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11597 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11598 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11599 (X86_64_XMM1_REGNUM): Removed.
11600 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11601 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11602 prototypes for renamed functions.
11603 * x86-64-tdep.c: Fix typo.
11604 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11606 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11607 Use constants from `enum amd64_regnum' for register numbers.
11608 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11609 (amd64_analyze_prologue, amd64_frame_cache,
11610 amd64_sigtramp_frame_cache): Use constants from `enum
11611 amd64_regnum' for register numbers.
11612 (amd64_supply_fpregset): Adjust for renamed functions.
11613 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11614 `enum amd64_regnum' for register numbers.
11615 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11616 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11617 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11618 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11619 (amd64_linux_fill_gregset): Adjust for renamed macros.
11620 (fetch_core_registers): Adjust for renamed functions.
11621 (amd64_linux_init_abi): Adjust for renamed functions.
11622 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11624 * amd64-nat.c: Adjust for renamed macros.
11625 * amd64bsd-nat.c (fetch_inferior_registers)
11626 (store_inferior_registers): Use constants from `enum amd64_regnum'
11627 for register numbers. Adjust for renamed variables.
11628 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11630 (_initialize_amd64fbsd_nat): Use constants from `enum
11631 amd64_regnum' for register numbers.
11632 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11633 `enum amd64_regnum' for register numbers.
11634 (amd64fbsd_init_abi): Adjust for renamed functions.
11635 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11636 `enum amd64_regnum' for register numbers.
11637 (amd64nbsd_init_abi): Adjust for renamed functions.
11638 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11639 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11640 `enum amd64_regnum' for register numbers.
11641 (amd64obsd_init_abi): Adjust for renamed functions.
11642 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11644 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11646 * breakpoint.c (print_one_breakpoint): Do not output spaces
11647 after printing <PENDING> for a pending breakpoint.
11649 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11651 * printcmd.c (print_scalar_formatted): Initialize val_long
11652 to remove compiler warning message.
11654 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11656 * defs.h (nquery, yquery): New prototypes.
11657 * breakpoint.c (break_command_1): Use new nquery interface.
11658 * utils.c (defaulted_query, nquery, yquery): New functions.
11660 2004-02-23 Andrew Cagney <cagney@redhat.com>
11662 * hppa-tdep.c (hppa_frame_align): New function.
11663 (hppa32_push_dummy_call): New function.
11664 (hppa64_push_dummy_call): New function.
11665 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11668 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11669 FIX_CALL_DUMMY when push_dummy_call is available.
11670 (call_function_by_hand, push_dummy_code): Ditto.
11672 2004-02-22 Andrew Cagney <cagney@redhat.com>
11674 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11675 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11676 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11677 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11678 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11679 call_dummy_location to ON_STACK.
11681 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11683 * x86-64-linux-tdep.c: Tweak comment.
11684 (amd64_linux_supply_gregset): Renamed from
11685 x86_64_linux_supply_gresget.
11686 (amd64_linux_fill_gregset): Renamed from
11687 x86_64_linux_fill_gregset.
11688 (fetch_core_registers): Adjust for renamed functions.
11689 (amd64_core_fns): Renamed from x86_64_core_fns.
11690 (amd64_linux_sigtramp_start): Renamed from
11691 x86_64_linux_sigtramp_start.
11692 (amd64_linux_pc_in_sigtramp): Renamed from
11693 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11694 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11695 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11696 (amd64_linux_sigcontext_addr): Renamed from
11697 x86_64_linux_sigcontext_addr.
11698 (amd64_linux_sc_reg_offset): Renamed from
11699 x86_64_linux_sc_reg_offset.
11700 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11701 Adjust for renamed functions and variables.
11702 (_initialize_amd64_linux_tdep): Renamed from
11703 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11705 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11706 Adjust for renamed functions.
11708 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11709 from x86_64_linux_gregset64_reg_offset.
11710 (amd64_linux_gregset32_reg_offset): Rename from
11711 x86_64_linux_gregset64_reg_offset.
11712 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11713 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11714 (amd64_linux_dr_set_control): Renamed from
11715 x86_64_linux_dr_set_control. Adjust for renamed functions.
11716 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11717 Adjust for renamed functions.
11718 (amd64_linux_dr_reset_addr): Renamed from
11719 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11720 (amd64_linux_dr_get_status): Renamed from
11721 x86_64_linux_dr_get_status. Adjust for renamed functions.
11722 (_initialize_amd64_linux_nat): Renamed from
11723 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11725 * config/i386/nm-x86-64linux.h: Update copyright year.
11726 Adjust for renamed functions.
11728 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11729 amd64fbsd_sigtramp_start.
11730 (amd64fbsd_sigtramp_end_addr): Renamed from
11731 amd64fbsd_sigtramp_end.
11732 (amd64fbsd_init_abi): Adjust for renamed variables.
11733 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11735 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11736 amd64fbsd_sigtramp_start.
11737 (amd64fbsd_sigtramp_end_addr): Renamed from
11738 amd64fbsd_sigtramp_end.
11740 2004-02-22 Andrew Cagney <cagney@redhat.com>
11742 * hppa-tdep.c (hppa32_return_value): New function.
11743 (hppa64_return_value): New function.
11744 (hppa_gdbarch_init): Set return_value; keep disabled.
11746 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11747 struct-return and inferior function call methods.
11749 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11751 (struct hppa_frame_cache): Define.
11752 (hppa_frame_cache, hppa_frame_this_id): New functions.
11753 (hppa_frame_prev_register): New function.
11754 (hppa_frame_unwind, hppa_frame_base): New variables.
11755 (hppa_frame_unwind_sniffer): New function.
11756 (hppa_frame_base_address, hppa_unwind_pc): New function.
11757 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11758 sniffer, and frame base sniffer; keep disabled.
11759 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11760 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11762 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11763 to predicates for "seriously old code".
11765 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11768 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11770 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11772 * config/pa/tm-hppa.h: Update copyright.
11773 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11774 (deprecated_init_frame_pc_default): Delete declaration.
11775 (hppa_frame_init_saved_regs): Delete declaration.
11776 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11777 * hppa-tdep.c: Include "arch-utils.h".
11778 (hppa_gdbarch_init): Set deprecated init_frame_pc
11779 and deprecated frame_init_saved_regs.
11780 (hppa_frame_init_saved_regs): Make static.
11782 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11784 Remove old 386BSD support.
11785 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11786 * configure.host: Remove i[34567]86-*-bsd*.
11787 * configure.tgt: Remove i[34567]86-*-bsd*.
11788 * i386b-nat.c: Removed.
11789 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11790 (i386b-nat.o): Remove dependencies.
11792 * config/i386/i386bsd.mh: Removed.
11793 * config/i386/i386bsd.mt: Removed.
11794 * config/i386/nm-i386bsd.h: Removed.
11795 * config/i386/tm-i386bsd.h: Removed.
11796 * config/i386/xm-i386bsd.h: Removed.
11798 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11800 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11801 (amd64fbsd_init_abi): Set link map offsets.
11802 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11803 (amd64nbsd_init_abi): Set link map offsets.
11804 * amd64obsd-tdep.c: Include "solib-svr4.h".
11805 (amd64obsd_init_abi): Set link map offsets.
11806 * i386fbsd-tdep.c: Include "solib-svr4.h".
11807 (i386fbsd_init_abi): Set link map offsets.
11808 * i386nbsd-tdep.c: Include "solib-svr4.h".
11809 (i386nbsdelf_init_abi): Set link map offsets.
11810 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11811 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11812 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11813 solib-legacy.o and core-aout.o. Reformat.
11814 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11815 solib-svr4.o, solib-legacy.o. Reformat.
11816 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11817 * config/i386/nbsdelf.mh: Reformat.
11818 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11819 solib-svr4.o, solib-legacy.o and corelow.o.
11820 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11821 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11822 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11823 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11824 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11825 (TM_FILE): Set to tm-fbsd.h.
11826 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11827 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11829 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11831 (TM_FILE): Set to nm-nbsd.h.
11832 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11833 Simplify shared library support. Don't include "elf/common.h".
11834 (SVR4_SHARED_LIBS): Don't define.
11835 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11837 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11838 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11839 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11840 Don't include "i386/tm-i386.h". Include "solib.h".
11841 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11842 Don't include "i386/tm-i386.h".
11843 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11844 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11845 Include "i386/xm-i386.h".
11846 (HOST_LONG_DOUBLE_FORMAT): Remove.
11848 Fix OpenBSD/i386 sigtramp recognition.
11849 * i386-tdep.h: Update copyright year.
11850 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11851 (i386bsd_sigtramp_end): New prototypes.
11852 (i386fbsd_sigtramp_start_addr): Renamed from
11853 i386fbsd_sigtramp_start.
11854 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11855 (i386obsd_sigtramp_start_addr): Renamed from
11856 i386obsd_sigtramp_start.
11857 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11858 * i386bsd-tdep.c: Update copyright year.
11859 (i386bsd_pc_in_sigtramp): Make public.
11860 * i386fbsd-nat.c: Update copyright year.
11861 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11862 * i386fbsd-tdep.c: Update copyright year.
11863 (i386fbsd_sigtramp_start_addr): Renamed from
11864 i386fbsd_sigtramp_start.
11865 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11866 (i386fbsdaout_init_abi): Adjust for renamed variables.
11867 * i386obsd-nat.c: Update copyright year.
11868 (_initialize_i386obsd_nat): Adjust for renamed variables.
11869 * i386obsd-tdep.c: Include "target.h".
11870 (i386obsd_page_size): New variable.
11871 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11872 (i386obsd_sigtramp_end): New functions.
11873 (i386obsd_sigtramp_start_addr): Renamed from
11874 i386obsd_sigtramp_start.
11875 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11876 (i386obsd_init_abi): Adjust for renamed variables. Set
11877 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11878 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11880 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11881 trampoline change in OpenBSD kernel.
11883 * amd64-nat.c: Update copyright year.
11884 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11885 architecture from REGCACHE.
11887 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11888 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11890 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11892 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11893 i[34567]86-*-openbsd3.[0-3].
11894 * config/i386/obsdaout.mh: New file.
11896 * config/i386/obsd.mh (MH_FLAGS): Remove.
11899 * i386obsd-tdep.c: Update copyright years. Include
11901 (i386obsd_init_abi): Don't set regset_from_core_section here.
11902 (i386obsd_aout_init_abi): New function. Set
11903 regset_from_core_section here.
11904 (i386obsd_elf_init_abi): New function.
11905 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11906 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11907 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11908 (TM_FILE): Set to tm-nbsd.h.
11910 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11913 * solib-svr4.h: Update copyright year.
11914 (svr4_ilp32_fetch_link_map_offsets)
11915 (svr4_lp64_fetch_link_map_offsets): New prototype.
11916 * solib-svr4.c: Update copyright year.
11917 (svr4_ilp32_fetch_link_map_offsets)
11918 (svr4_lp64_fetch_link_map_offsets): New function.
11920 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11922 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11923 to the partial symbol table.
11925 2004-02-20 J. brobecker <brobecker@gnat.com>
11927 * PROBLEMS: Add description of problem documented under gdb/1560.
11929 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11931 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11933 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11935 (amd64obsd_init_abi): Reorder initializations. Use
11936 amd64obsd_r_reg_offset to initialize the general-purpose register
11937 set details. Set regset_from_core_section.
11938 (_initialize_amd64obsd_tdep): Rename from
11939 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11940 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11941 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11943 * NEWS (New native configurations): Mention OpenBSD/alpha.
11944 * configure.tgt: Add alpha*-*-openbsd*.
11945 * configure.host: Add alpha*-*-openbsd*.
11946 * alphanbsd-tdep.c: Update copyright year.
11947 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11949 2004-02-20 Andrew Cagney <cagney@redhat.com>
11952 * configure.tgt: Delete target "none-*-*".
11953 * configure.host: Delete host "none-*-*".
11954 * config/none/none.mh: Delete file.
11955 * config/none/none.mt: Delete file.
11956 * config/none/xm-none.h: Delete file.
11957 * config/none/tm-none.h: Delete file.
11958 * config/none/nm-none.h: Delete file.
11960 2004-02-19 Fred Fish <fnf@redhat.com>
11962 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11963 cache->uses_fp prior to setting it.
11965 2004-02-19 Fred Fish <fnf@redhat.com>
11967 Fix for PR breakpoint/1558.
11968 * sh-tdep.c (IS_JSR): New macro.
11969 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11971 2004-02-19 Jim Blandy <jimb@redhat.com>
11973 * findvar.c (value_from_register): Doc fix.
11975 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11977 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11978 type being greater than sizeof of host's LONGEST. Always use
11979 unpack_long() unless format 'f' chosen.
11981 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11983 Committed by Elena Zannoni <ezannoni@redhat.com>
11985 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11986 contains a symbol wich is the best, non-exact match for the given
11987 pc. Update comments.
11989 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11991 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11992 macro, which was part of the now removed Mach 3 port.
11993 * utils.c (request_quit): Ditto.
11995 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11997 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11998 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12000 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12002 Committed by Mark Kettenis <kettenis@gnu.org>.
12004 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12007 2004-02-18 Andrew Cagney <cagney@redhat.com>
12009 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12010 CONFIG_INSTALL and CONFIG_UNINSTALL.
12011 * configure: Re-generate.
12012 * interps.h (INTERP_TUI): Define.
12013 * Makefile.in: Update dependencies.
12015 (tui-main.o): Specify dependencies.
12016 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12017 * tui/tui-main.c: New file.
12019 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12021 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12022 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12024 * configure.host: Add x86_64-*-openbsd*.
12025 * configure.tgt: Add x86_64-*-openbsd*.
12026 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12028 * tui/tui.c: Don't include <malloc.h>.
12030 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12031 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12034 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12035 static. Remove extraneous whitespace.
12036 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12039 2004-02-17 Jim Blandy <jimb@redhat.com>
12041 * findvar.c (value_from_register): Doc fix.
12043 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12045 Committed by Jim Blandy <jimb@redhat.com>.
12047 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12048 CORE_ADDR as type for selectors. Correct types for GNU run time
12049 message lookup function to use double indirection.
12050 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12051 * objc-lang.h (lookup_child_selector): Adapt prototype.
12053 * s390-nat.c (SUBOFF): New macro.
12054 (supply_gregset, fill_gregset): Use it to handle debugging
12055 of 32-bit exectuables running under a 64-bit kernel.
12056 * s390-tdep.c: Include "solib-svr4.h".
12057 (s390_svr4_fetch_link_map_offset): New function.
12058 (s390x_svr_fetch_link_map_offset): Likewise.
12059 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12060 * Makefile.in (s390-tdep.o): Update dependencies.
12062 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12064 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12065 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12066 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12067 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12068 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12069 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12070 S390_SIGNAL_FRAMESIZE,
12071 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12072 (struct frame_extra_info): Remove.
12073 (s390_memset_extra_info): Remove.
12074 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12075 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12076 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12077 (is_rse): Renamed to ...
12078 (is_rsy): ... this. Support long displacements.
12079 (is_rxe): Renamed to ...
12080 (is_rxy): ... this. Support long displacements.
12081 (compute_x_addr): Support long displacements.
12082 (struct s390_prologue_data): New data type.
12083 (s390_on_stack): Change API to use struct s390_prologue_data.
12084 (s390_store): Reimplement.
12085 (s390_load): New function.
12086 (s390_get_signal_frame_info): Remove.
12087 (s390_get_frame_info): Remove, replace by ...
12088 (s390_analyze_prolog): ... this new function.
12089 (s390_check_function_end): Remove.
12090 (s390_function_start): Remove.
12091 (s390_frameless_function_invokation): Remove.
12092 (s390_is_sigreturn): Remove.
12093 (s390_init_frame_pc_first): Remove.
12094 (s390_init_frame_extra_info): Remove.
12095 (s390_frame_init_saved_regs): Remove.
12096 (s390_frame_saved_pc_nofix): Remove.
12097 (s390_frame_saved_pc): Remove.
12098 (s390_frame_chain): Remove.
12099 (s390_fp_regnum, s390_read_fp): Remove.
12100 (s390_pop_frame_regular, s390_pop_frame): Remove.
12101 (s390_saved_pc_after_call): Remove.
12102 (s390_skip_prologue): Reimplement.
12103 (s390_in_function_epilogue_p): Support long displacements.
12104 (struct s390_unwind_cache): New data structure.
12105 (s390_frame_unwind_cache): New function.
12106 (s390_prologue_frame_unwind_cache): Likewise.
12107 (s390_backchain_frame_unwind_cache): Likewise.
12108 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12109 (s390_frame_unwind): Define.
12110 (s390_frame_sniffer): New function.
12111 (struct s390_pltstub_unwind_cache): New data structure.
12112 (s390_pltstub_frame_unwind_cache): New function.
12113 (s390_pltstub_frame_this_id): Likewise.
12114 (s390_pltstub_frame_prev_register): Likewise.
12115 (s390_pltstub_frame_unwind): Define.
12116 (s390_pltstub_frame_sniffer): New function.
12117 (struct s390_sigtramp_unwind_cache): New data structure.
12118 (s390_sigtramp_frame_unwind_cache): New function.
12119 (s390_sigtramp_frame_this_id): Likewise.
12120 (s390_sigtramp_frame_prev_register): Likewise.
12121 (s390_sigtramp_frame_unwind): Define.
12122 (s390_sigtramp_frame_sniffer): New function.
12123 (s390_frame_base_address, s390_local_base_address): New functions.
12124 (s390_frame_base): Define.
12125 (s390_unwind_pc, s390_unwind_sp): New function.
12126 (s390_push_dummy_call): Use new frame base location.
12127 (s390_unwind_dummy_id): Likewise.
12128 (s390_gdbarch_init): Remove calls to:
12129 set_gdbarch_frameless_function_invocation,
12130 set_gdbarch_deprecated_init_frame_pc,
12131 set_gdbarch_deprecated_frame_chain,
12132 set_gdbarch_deprecated_frame_init_saved_regs,
12133 set_gdbarch_deprecated_pop_frame,
12134 set_gdbarch_deprecated_init_extra_frame_info,
12135 set_gdbarch_deprecated_init_frame_pc_first,
12136 set_gdbarch_deprecated_target_read_fp,
12137 set_gdbarch_deprecated_frame_saved_pc,
12138 set_gdbarch_deprecated_saved_pc_after_call,
12139 set_gdbarch_deprecated_fp_regnum.
12141 set_gdbarch_in_solib_call_trampoline,
12142 frame_unwind_append_sniffer,
12143 frame_base_set_default,
12144 set_gdbarch_unwind_pc,
12145 set_gdbarch_unwind_sp.
12146 * Makefile.in (s390-tdep.o): Update dependencies.
12148 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12149 (S390_STACK_FRAME_OVERHEAD): Remove.
12150 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12151 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12152 (s390_promote_integer_argument): Remove.
12153 (s390_cannot_extract_struct_value_address): Remove.
12154 (s390_use_struct_convention, s390_store_struct_return): Remove.
12155 (s390_extract_return_value, s390_store_return_value): Remove.
12156 (s390_return_value_convention, s390_return_value): New functions.
12157 (is_float_singleton): Handle typedefs.
12158 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12159 Remove, replace by ...
12160 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12161 s390_function_arg_integer): ... these new functions.
12162 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12163 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12164 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12167 set_gdbarch_deprecated_store_struct_return,
12168 set_gdbarch_deprecated_extract_return_value,
12169 set_gdbarch_deprecated_store_return_value,
12170 set_gdbarch_use_struct_convention,
12171 set_gdbarch_extract_struct_value_address,
12172 set_gdbarch_deprecated_pc_in_call_dummy,
12173 set_gdbarch_deprecated_push_arguments,
12174 set_gdbarch_deprecated_save_dummy_frame_tos,
12175 set_gdbarch_deprecated_push_return_address,
12176 set_gdbarch_deprecated_sizeof_call_dummy_words,
12177 set_gdbarch_deprecated_call_dummy_words,
12178 set_gdbarch_deprecated_dummy_write_sp.
12180 set_gdbarch_push_dummy_call,
12181 set_gdbarch_unwind_dummy_id,
12182 set_gdbarch_return_value.
12184 * config/s390/nm-linux.h: Update comments.
12185 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12186 (STOPPED_BY_WATCHPOINT): Redefine.
12187 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12188 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12189 (s390_stopped_by_watchpoint): Likewise.
12190 (watch_area_cnt): Remove.
12191 * s390-nat.c: Update comments.
12192 (watch_area): Remove typedef.
12193 Global replace watch_area by struct watch_area.
12194 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12195 (s390_stopped_by_watchpoint): Remove pid argument,
12196 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12197 (s390_fix_watch_points): Remove pid argument,
12198 use s390_inferior_tid. Recompute area spanned by watchpoints.
12199 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12200 argument. Reimplement.
12202 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12203 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12204 (FETCH_INFERIOR_REGISTERS): Define.
12205 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12207 * config/s390/s390x.mt: Remove.
12208 * config/s390/tm-s390.h: Remove.
12209 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12210 (TARGET_ELF64): Remove.
12211 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12212 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12213 s390*-*-* case; always set gdb_target to s390.
12214 * regformats/reg-s390.dat: Remove control registers.
12215 * regformats/reg-s390x.dat: Likewise.
12216 * s390-tdep.h: New file.
12217 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12218 Include "inferior.h" and "s390-tdep.h".
12219 Remove private definition of offsetof.
12220 (s390_register_u_addr): Remove.
12221 (regmap_gregset, regmap_fpregset): Define.
12222 (supply_gregset, fill_gregset): Reimplement.
12223 (supply_fpregset, fill_fpregset): Likewise.
12224 (s390_inferior_tid): New function.
12225 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12226 (fetch_inferior_registers, store_inferior_registers): Likewise.
12227 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12228 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12229 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12230 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12231 (struct gdbarch_tdep): Define.
12232 (struct s390_register_info): Define.
12233 (s390_register_info): New variable.
12234 (s390_register_name): Reimplement.
12235 (s390_register_type): New function.
12236 (s390_register_raw_size, s390x_register_raw_size): Remove.
12237 (s390_cannot_fetch_register): Remove.
12238 (s390_register_byte): Remove.
12239 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12240 (s390_dwarf_regmap): New variable.
12241 (s390_dwarf_reg_to_regnum): New function.
12242 (s390_stab_reg_to_regnum): Remove.
12243 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12244 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12245 (s390_convert_register_p): Likewise.
12246 (s390_register_to_value, s390_value_to_register): Likewise.
12247 (s390_register_reggroup_p): Likewise.
12248 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12249 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12250 (s390_supply_regset, s390_regset_from_core_section): New functions.
12251 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12252 (S390_FPR_SIZE): Likewise.
12253 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12254 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12255 (S390_NUM_GPRS): Move here from tm-s390.h.
12256 (S390_NUM_FPRS): Likewise.
12257 (s390_in_function_epilogue_p): New function.
12258 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12259 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12260 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12261 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12262 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12264 set_gdbarch_deprecated_max_register_raw_size,
12265 set_gdbarch_deprecated_max_register_virtual_size,
12266 set_gdbarch_deprecated_register_byte,
12267 set_gdbarch_cannot_fetch_register,
12268 set_gdbarch_cannot_store_register,
12269 set_gdbarch_deprecated_register_size,
12270 set_gdbarch_deprecated_register_raw_size,
12271 set_gdbarch_deprecated_register_virtual_size,
12272 set_gdbarch_deprecated_register_virtual_type,
12273 set_gdbarch_deprecated_register_bytes.
12275 set_gdbarch_num_pseudo_regs,
12276 set_gdbarch_register_type,
12277 set_gdbarch_convert_register_p,
12278 set_gdbarch_register_to_value,
12279 set_gdbarch_value_to_register,
12280 set_gdbarch_register_reggroup_p,
12281 set_gdbarch_regset_from_core_section,
12282 set_gdbarch_pseudo_register_read,
12283 set_gdbarch_pseudo_register_write,
12284 set_gdbarch_in_function_epilogue_p.
12285 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12286 (s390_tdep_h): New variable.
12288 2004-02-17 Jim Blandy <jimb@redhat.com>
12290 * findvar.c (value_from_register): If the type has no length, just
12291 return an acceptable value --- don't report an internal error.
12293 * stabsread.c (read_type): If we find any type numbers that are
12294 forward references, complain if the references aren't resolved by
12295 the time we're finished reading.
12296 (cleanup_undefined_types): Make error message more appropriate for
12299 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12301 * Makefile.in (defs_h): Remove dependency on progress_h.
12302 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12304 * main.c (captured_main): Delete use of START_PROGRESS and
12307 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12309 * objfiles.c (terminate_minimal_symbol_table): Add back
12310 initialization of MSYMBOL_TYPE.
12312 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12314 Committed by Andrew Cagney.
12315 * Makefile.in (ia64_tdep_h): New macro.
12316 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12317 (ia64-tdep.o): Likewise.
12318 * ia64-tdep.h: New file.
12319 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12320 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12321 (ia64_aix_sigcontext_register_address): Likewise.
12322 (ia64_linux_getunwind_table): Delete declaration.
12323 * ia64-linux-tdep.c: Likewise.
12325 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12327 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12328 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12329 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12331 2004-02-17 Andrew Cagney <cagney@redhat.com>
12333 * symtab.c (skip_prologue_using_sal): New function.
12334 * symtab.h (skip_prologue_using_sal): Declare.
12335 * frv-tdep.c: Include "symtab.h".
12336 (skip_prologue_using_sal): Delete function.
12337 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12338 * rs6000-tdep.c (refine_prologue_limit): Mention
12339 skip_prologue_using_sal.
12340 * ia64-tdep.c (refine_prologue_limit): Ditto.
12341 * Makefile.in: Update dependencies.
12343 2004-02-16 Andrew Cagney <cagney@redhat.com>
12345 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12346 START_INFERIOR_TRAPS_EXPECTED.
12347 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12348 START_INFERIOR_TRAPS_EXPECTED.
12349 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12351 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12352 macro, moved to "nm-osf.h". Update copyright.
12353 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12356 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12357 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12358 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12359 frameless_look_for_prologue.
12360 * frame.h (legacy_frameless_look_for_prologue): Rename
12361 frameless_look_for_prologue.
12362 * gdbarch.h, gdbarch.c: Re-generate.
12363 * sh64-tdep.c (sh64_gdbarch_init): Update.
12364 * sh-tdep.c (sh_gdbarch_init): Update.
12365 * s390-tdep.c (s390_gdbarch_init): Update.
12366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12367 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12368 * m68k-tdep.c (m68k_gdbarch_init): Update.
12369 (delta68_frame_args_address): Update.
12370 * m32r-tdep.c (m32r_gdbarch_init): Update.
12371 * hppa-tdep.c (hppa_gdbarch_init): Update.
12372 * h8300-tdep.c (h8300_gdbarch_init): Update.
12373 * frv-tdep.c (frv_gdbarch_init): Update.
12374 (frv_frameless_function_invocation): Update.
12375 * cris-tdep.c (cris_gdbarch_init): Update.
12376 (cris_frameless_function_invocation): Update.
12377 * avr-tdep.c (avr_gdbarch_init): Update.
12378 * arm-tdep.c (arm_gdbarch_init): Update.
12379 * stack.c (frame_info): Update, call predicate.
12380 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12381 * frame.c (legacy_get_prev_frame): Update, call predicate..
12382 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12383 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12384 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12386 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12387 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12388 * vax-tdep.c (vax_gdbarch_init): Ditto.
12390 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12393 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12395 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12398 2004-02-16 Andrew Cagney <cagney@redhat.com>
12400 * tui/tui-windata.c: Include "gdb_string.h".
12401 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12402 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12403 * Makefile.in: Update dependencies.
12405 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12407 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12408 * infrun.c: Include "gdb_assert.h".
12409 (singlestep_ptid, saved_singlestep_ptid)
12410 (stepping_past_singlestep_breakpoint): New variables.
12411 (resume): Set singlestep_ptid. Check for singlestep thread
12413 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12414 (handle_inferior_event): Handle singlestep thread hop.
12416 2004-02-16 Andrew Cagney <cagney@redhat.com>
12418 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12419 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12420 (dwarf2_frame_init_reg): Ditto.
12422 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12423 suggested by Joshua Neuheisel
12425 * configure.in: Always check for curses, including pdcurses.
12426 Warn, instead of error, when no curses are found. Enable TUI when
12427 curses is available.
12428 * configure: Re-generate.
12430 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12432 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12433 sh_sh4_register_convert_to_virtual.
12434 (sh_register_convert_to_raw): Rename from
12435 sh_sh4_register_convert_to_raw.
12436 (sh_pseudo_register_read): Accomodate above name change.
12437 (sh_pseudo_register_write): Ditto.
12439 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12441 * sh-tdep.c (sh_generic_register_name): Remove.
12442 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12444 2004-02-15 Andrew Cagney <cagney@redhat.com>
12446 * configure.in (build_warnings): Add -Wunused-function.
12447 * configure: Re-generate.
12449 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12450 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12452 * procfs.c (procfs_init_inferior): Assume that
12453 START_INFERIOR_TRAPS_EXPECTED is defined.
12454 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12455 * config/ns32k/tm-nbsd.h: Delete file,
12456 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12458 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12459 * config/vax/tm-vax.h: Delete file.
12461 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12462 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12463 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12464 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12465 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12466 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12467 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12469 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12471 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12472 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12473 (struct dwarf2_frame_ops): New.
12474 (dwarf2_frame_default_init_reg): New function, based on
12475 dwarf2_frame_init_reg.
12476 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12477 (dwarf2_frame_init_reg): Call architecture-specific function.
12478 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12479 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12480 instead of dwarf2_frame_data.
12481 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12482 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12484 2004-02-15 Andrew Cagney <cagney@redhat.com>
12486 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12487 register_gdbarch_swap.
12488 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12489 * f-lang.c (_initialize_f_language): Update, use
12490 DEPRECATED_REGISTER_GDBARCH_SWAP.
12491 * remote.c (_initialize_remote): Ditto.
12492 * regcache.c (_initialize_regcache): Ditto.
12493 * parse.c (_initialize_parse): Ditto.
12494 * infrun.c (_initialize_infrun): Ditto.
12495 * mi/mi-main.c (_initialize_mi_main): Ditto.
12496 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12498 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12499 poking .cacheable directly.
12500 * symfile.c (symfile_bfd_open): Ditto.
12502 * Makefile.in: Update all dependencies.
12504 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12505 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12506 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12507 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12508 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12510 2004-02-14 Andrew Cagney <cagney@redhat.com>
12512 * arch-utils.c (legacy_convert_register_p): Check
12513 DEPRECATED_REGISTER_CONVERTIBLE_P.
12514 * findvar.c (value_of_register): Ditto.
12516 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12517 * gdbarch.h, gdbarch.c: Re-generate.
12518 * arch-utils.c (deprecated_register_convertible_not): Delete.
12519 * arch-utils.h (deprecated_register_convertible_not): Delete.
12520 * mi/mi-main.c (get_register): Update. Update copyright.
12521 * infcmd.c (default_print_registers_info): Update.
12523 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12524 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12525 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12526 * gdbarch.h, gdbarch.c: Re-generate.
12527 * frame.c (deprecated_get_next_frame_hack): Delete function.
12528 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12529 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12531 * infcall.c (call_function_by_hand): Update.
12533 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12535 * symfile.c (init_entry_point_info, entry_point_address): Move
12537 * objfiles.c (init_entry_point_info, entry_point_address):..to
12539 * symfile.h (init_entry_point_info, entry_point_address): Remove
12541 * objfiles.h (init_entry_point_info, entry_point_address):Add
12543 * cris-tdep.c: Remove include of symfile.h. Add include of
12545 * infcall.c: Ditto.
12546 * mcore-tdep.c: Ditto.
12547 * mn10300-tdep.c: Ditto.
12548 * sh64-tdep.c: Ditto.
12549 * v850-tdep.c: Ditto.
12550 * arm-tdep.c: Remove include of symfile.h.
12551 * blockframe.c: Ditto.
12552 * coffread.c: Ditto.
12553 * dbxread.c: Ditto.
12554 * dwarf2read.c: Ditto.
12555 * dwarfread.c: Ditto.
12556 * frv-tdep.c: Ditto.
12557 * ia64-tdep.c: Ditto.
12558 * mdebugread.c: Ditto.
12559 * mipsread.c: Ditto.
12560 * rs6000-tdep.c: Ditto.
12561 * s390-tdep.c: Ditto.
12562 * sh-tdep.c: Ditto.
12563 * xstormy16-tdep.c: Ditto.
12564 * gdbarch.sh: Remove include of symfile.h.
12565 * gdbarch.c: Regenerate.
12566 * solib-irix.c (enable_break): Use entry_point_address().
12567 Add comment about include file.
12568 * xcoffread.c: Add comment about include file.
12569 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12570 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12571 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12572 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12573 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12575 2004-02-13 Andrew Cagney <cagney@redhat.com>
12577 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12578 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12580 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12582 2004-02-12 Fred Fish <fnf@redhat.com>
12584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12585 set_gdbarch_store_return_value.
12587 2004-02-12 Andrew Cagney <cagney@redhat.com>
12589 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12590 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12591 (interrupt_query): Ditto.
12592 (ofunc): Delete unused variable.
12593 * cris-tdep.c (cris_abi): Delete unused function.
12594 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12595 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12596 (cris_get_asr_quick_shift_steps): Ditto.
12597 (cris_skip_prologue_frameless_p): Ditto.
12598 * arm-tdep.c (arm_push_return_address): Delete unused function.
12599 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12600 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12601 * s390-tdep.c (s390_function_start): Delete unused function.
12603 2004-02-12 Andrew Cagney <cagney@redhat.com>
12605 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12606 gdbarch.h, gdbarch.c: Re-generate.
12607 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12608 to generic_prologue_frameless_p.
12609 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12610 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12612 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12614 * mips-linux-tdep.c: Include "frame.h".
12615 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12616 (mips_linux_skip_resolver): New functions.
12617 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12618 and set_gdbarch_in_solib_call_trampoline.
12619 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12620 to after set_gdbarch_in_solib_return_trampoline. Only set the
12621 solib hooks to mips16 functions if the OS ABI is unknown.
12622 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12623 including "config/tm-linux.h".
12624 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12625 * Makefile.in (mips-linux-tdep.o): Update.
12627 2004-02-11 David Carlton <carlton@kealia.com>
12629 * linespec.c (decode_compound): Only look for a class symbol when
12630 considering all but the rightmost component.
12632 2004-02-11 Andrew Cagney <cagney@redhat.com>
12634 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12635 abi code are are separatly grouped.
12637 2004-02-11 Andrew Cagney <cagney@redhat.com>
12639 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12640 * gdbarch.h, gdbarch.c: Re-generate.
12641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12642 * v850-tdep.c (v850_gdbarch_init): Update.
12643 * sh64-tdep.c (sh64_gdbarch_init): Update.
12644 * sh-tdep.c (sh_gdbarch_init): Update.
12645 * s390-tdep.c (s390_gdbarch_init): Update.
12646 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12647 * mips-tdep.c (mips_gdbarch_init): Update.
12648 * mcore-tdep.c (mcore_gdbarch_init): Update.
12649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12650 * m32r-tdep.c (m32r_gdbarch_init): Update.
12651 * ia64-tdep.c (ia64_gdbarch_init): Update.
12652 * hppa-tdep.c (hppa_gdbarch_init): Update.
12653 * h8300-tdep.c (h8300_gdbarch_init): Update.
12654 * frv-tdep.c (frv_gdbarch_init): Update.
12655 * d10v-tdep.c (d10v_gdbarch_init): Update.
12656 * cris-tdep.c (cris_gdbarch_init): Update.
12657 * avr-tdep.c (avr_gdbarch_init): Update.
12658 * arm-tdep.c (arm_gdbarch_init): Update.
12659 * alpha-tdep.c (alpha_gdbarch_init): Update.
12661 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12663 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12665 (sh_sh4al_dsp_register_name): Ditto.
12667 2004-02-10 Andrew Cagney <cagney@redhat.com>
12669 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12670 (mips_init_frame_pc_first): Delete function.
12671 (mips_frame_saved_pc): Delete function.
12672 (mips_frame_chain): Delete function.
12673 (mips_init_extra_frame_info): Delete function.
12674 (mips_xfer_register): Delete unused variable "reg".
12675 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12676 (mips_n32n64_return_value): Delete unused variable "reg".
12677 (mips_n32n64_return_value): Delete unused variable "pos".
12678 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12679 (mips_o32_return_value): Delete unused variable "pos".
12680 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12681 (mips_print_fp_register): Delete unused variable "namelen"
12682 (mips_print_fp_register): Delete unused variable "flt2"
12683 (get_frame_pointer): Delete function.
12684 (cached_proc_desc): Delete static variable.
12685 (mips_pop_frame): Delete function.
12686 (mips_find_saved_regs): Delete function.
12687 (mips_get_saved_register): Delete function.
12688 (mips_saved_pc_after_call): Delete function.
12689 (SIGFRAME_BASE): Delete macro.
12690 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12691 (SIGFRAME_PC_OFF): Delete macro.
12692 (SIGFRAME_REGSAVE_OFF): Delete macro.
12693 (mips_dump_tdep): Do not print deleted macro definitions.
12695 2004-02-10 Andrew Cagney <cagney@redhat.com>
12697 * Makefile.in (SFILES): Remove explictly listed tui files.
12698 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12700 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12702 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12703 to use paddr functions to format ia64 addresses and long values.
12704 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12705 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12706 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12707 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12708 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12710 2004-02-10 Andrew Cagney <cagney@redhat.com>
12712 * defs.h: Do not include "tui.h".
12713 * gdb_curses.h: New file.
12714 * tui/tui-hooks.h: New file.
12715 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12716 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12717 (tui_initialize_io): Delete declaration.
12718 (tui_initialize_readline: Delete redundant declaration.
12719 (struct tui_point): Delete definition.
12720 * tui/tui-data.h (struct tui_point): Define.
12721 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12722 * utils.c: Include "tui/tui.h".
12723 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12724 * printcmd.c [TUI]: Include "tui/tui.h".
12725 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12726 * tui/tui-command.c: Include "gdb_curses.h".
12727 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12728 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12729 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12730 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12731 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12732 * Makefile.in: Update all dependencies.
12733 (tui_hooks_h, gdb_curses_h): Define.
12734 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12736 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12738 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12739 auxf2. Add comments about some other rarely used fields.
12741 2004-02-10 Andrew Cagney <cagney@redhat.com>
12743 * Makefile.in (init.c): Fix script removing duplicates. Problem
12744 reported by Peter Schauer.
12746 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12748 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12749 obstack_specify_allocation.
12750 * objfiles.c (allocate_objfile): Ditto.
12751 * solib-sunos.c (solib_add_common_symbols)
12752 (allocate_rt_common_objfile): Ditto.
12753 * symfile.c (reread_symbols): Ditto.
12754 * gdb_obstack.h: Add comment.
12756 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12758 * linespec.c (decode_line_1, locate_first_half)
12759 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12760 commented out code.
12762 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12764 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12767 2004-02-09 Andrew Cagney <cagney@redhat.com>
12769 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12770 fails, try find_pc_section. Fix PR c++/1267.
12771 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12772 instead of find_pc_mapped_section.
12773 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12774 not default to the section containing PC. Fix PR symtab/1519.
12776 2004-02-09 Andrew Cagney <cagney@redhat.com>
12778 * Makefile.in (mips-tdep.o): Update dependencies.
12779 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12781 (mips_unwind_pc): Return the pseudo PC register.
12782 (mips_unwind_dummy_id): New function.
12783 (mips16_fetch_instruction): New function.
12784 (mips32_fetch_instruction): New function.
12785 (struct mips_frame_cache): Define.
12786 (mips_mdebug_frame_cache): New function.
12787 (mips_mdebug_frame_this_id): New function.
12788 (mips_mdebug_frame_prev_register): New function.
12789 (mips_mdebug_frame_unwind): Define.
12790 (mips_mdebug_frame_sniffer): New function.
12791 (mips_mdebug_frame_base_address): New function.
12792 (mips_mdebug_frame_base): Define.
12793 (mips_mdebug_frame_base_sniffer): New function.
12794 (mips_gdbarch_init): Append unwind and base sniffers. Set
12797 2004-02-08 Andrew Cagney <cagney@redhat.com>
12799 * frame.c: Print both the register number and name.
12801 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12802 and a sed into a single sed. Make .c and .o patterns more robust.
12804 (INIT_FILES): Replace OBS with COMMON_OBS.
12805 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12807 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12809 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12810 the PT_WCOOKIE request.
12812 2004-02-08 Andrew Cagney <cagney@redhat.com>
12814 * mips-tdep.c (mips_unwind_pc): New function.
12815 (mips_gdbarch_init): Set mips_unwind_pc.
12817 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12818 (get_frame_id): Allow the UNKNOWN_FRAME.
12819 (frame_register_unwind, get_frame_type): Ditto.
12821 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12822 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12823 unwind_dummy_id indicates a legacy frame.
12825 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12826 * configure: Re-generate.
12828 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12831 2004-02-08 Andrew Cagney <cagney@redhat.com>
12833 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12835 * configure: Re-generate.
12836 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12837 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12838 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12839 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12840 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12841 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12842 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12843 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12844 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12845 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12847 2004-02-07 Andrew Cagney <cagney@redhat.com>
12849 * Makefile.in: Update all dependencies.
12851 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12852 * configure: Re-generate.
12853 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12854 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12855 (COMMON_OBS): Add "main.o" and "annotate.o".
12856 (ANNOTATE_OBS): Delete.
12857 (OBS): Remove ANNOTATE_OBS.
12858 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12860 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12861 against CONFIG_OBS and "main.o".
12862 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12863 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12865 * tui/tui-command.c: Include "gdb_string.h", delete register
12866 attribute, use ISO-C function signatures.
12867 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12868 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12869 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12870 * tui/tui.c: Ditto.
12872 * tui/tui-command.c: Change variable and function names to lower
12874 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12875 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12876 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12877 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12878 * tui/tui-winsource.c, tui/tui.c: Ditto.
12880 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12882 * buildsym.c (free_pending_blocks, finish_block)
12883 (record_pending_block, make_blockvector, end_symtab): Replace
12884 symbol_obstack with objfile_obstack.
12885 * coffread.c (process_coff_symbol, coff_read_struct_type)
12886 (coff_read_enum_type): Ditto.
12887 * cp-namespace.c (initialize_namespace_symtab)
12888 (check_one_possible_namespace_symbol): Ditto.
12889 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12890 (dwarf2_symbol_mark_computed): Ditto.
12891 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12892 * elfread.c (elf_symtab_read): Ditto.
12893 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12894 (hpread_read_enum_type, hpread_read_function_type)
12895 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12897 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12898 (java_link_class_type): Ditto.
12899 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12900 (new_symbol): Ditto.
12901 * minsyms.c (install_minimal_symbols): Ditto.
12902 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12903 (terminate_minimal_symbol_table): Replace symbol_obstack with
12905 (free_objfile): Remove freeing of symbol_obstack.
12906 * objfiles.h: Remove symbol_obstack field.
12907 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12909 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12911 (solib_add_common_symbols): Replace symbol_obstack with
12913 * somsolib.c (som_solib_add): Ditto.
12914 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12915 (common_block_start, common_block_end): Ditto.
12916 * symfile.c (reread_symbols): Remove freeing and init of
12918 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12919 * symfile.h: Update comment.
12920 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12922 * symtab.c (symbol_set_names): Replace symbol_obstack with
12924 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12926 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12927 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12930 2004-02-07 Andrew Cagney <cagney@redhat.com>
12932 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12933 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12934 fields and variables.
12935 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12936 (m_beInvisible): Delete macro.
12937 * tui/tui-data.h: Fix case case fields and variables.
12938 (m_genWinPtrIsNull): Delete macro.
12939 (tui_win_list): Rename winList.
12940 (TUI_SRC_WIN): Rename srcWin.
12941 (TUI_DISASM_WIN): Rename disassemWin.
12942 (TUI_DATA_WIN): Rename dataWin.
12943 (TUI_CMD_WIN): Rename cmdWin.
12944 (m_genWinPtrNotNull): Delete macro.
12945 (m_winPtrIsNull): Delete macro.
12946 (m_winPtrNotNull): Delete macro.
12947 (tui_win_is_source_type): Replace m_winIsSourceType
12948 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12949 (tui_win_has_locator): Replace m_hasLocator.
12950 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12951 m_setWinHighlightOff.
12952 * tui/tui-data.c: Update references.
12953 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12954 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12955 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12956 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12957 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12958 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12959 * tui/tui-winsource.c, tui/tui.c: Ditto.
12961 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12963 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12964 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12967 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12968 variable `i6' to `i7'.
12969 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12971 2004-02-07 Andrew Cagney <cagney@redhat.com>
12973 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12974 (TuiPoint, TuiPointPtr): Ditto.
12975 (TuiStatus, TuiStatusPtr): Ditto.
12976 (TuiWinType, TuiWinTypePtr): Ditto.
12977 (struct tui_point): Rename _TuiPoint.
12978 (tui_get_low_disassembly_address): Rename
12979 tuiGetLowDisassemblyAddress.
12980 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12981 (tuiFree): Delete declaration.
12982 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12983 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12984 * tui/tui.c (tuiFree): Delete function.
12985 * cli/cli-cmds.c (disassemble_command): Update references.
12986 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12987 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12988 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12989 * tui/tui-winsource.c: Ditto.
12991 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12993 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12994 coffstab_build_psymtabs, elfstab_build_psymtabs)
12995 (stabsect_build_psymtabs): Replace psymbol_obstack with
12997 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12998 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13000 * dwarfread.c (scan_compilation_units): Ditto.
13001 * elfread.c (elfstab_offset_sections): Ditto.
13002 * hppa-tdep.c (read_unwind_info): Ditto.
13003 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13004 (hpread_end_psymtab): Ditto.
13005 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13006 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13008 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13009 * objfiles.c (add_to_objfile_sections)
13010 (build_objfile_section_table): Ditto.
13011 (allocate_objfile): Remove init of psymbol_obstack.
13012 (free_objfile): Remove freeing of psymbol_obstack.
13013 * objfiles.h (struct objfile): Remove field
13014 psymbol_obstack. Update comments.
13015 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13016 psymbol_obstack with objfile_obstack.
13017 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13019 * somread.c (som_symfile_offsets, init_import_symbols)
13020 (init_export_symbols): Replace psymbol_obstack with
13022 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13023 * symfile.c (default_symfile_offsets, syms_from_objfile)
13024 (reread_symbols): Remove freeing and init of psymbol_obstack.
13025 (cashier_psymtab): Update comment.
13026 * symmisc.c (print_objfile_statistics): Don't report stats for
13028 * symtab.h (struct general_symbol_info, struct partial_symtab):
13030 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13031 (xcoff_symfile_offsets): Replace psymbol_obstack with
13034 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13036 * objfiles.h (struct objfile): Add objfile_obstack field.
13037 Remove type_obstack field.
13039 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13040 read_structure_scope read_enumeration, new_symbol): Replace
13041 type_obstack with objfile_obstack.
13042 * dwarfread.c (struct_type, enum_type): Ditto.
13043 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13044 (lookup_fundamental_type): Ditto.
13045 * gdbtypes.h (TYPE_ALLOC): Ditto.
13046 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13047 (hpread_read_doc_function_type, hpread_read_struct_type)
13048 (fix_static_member_physnames, hpread_read_array_type)
13049 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13050 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13051 (java_link_class_type): Ditto.
13052 * mdebugread.c (parse_type): Ditto.
13053 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13054 * solib-sunos.c (solib_add_common_symbols): Ditto.
13055 * stabsread.c (define_symbol, read_type, read_member_functions,
13056 read_cpp_abbrev, read_one_struct_field): Ditto.
13057 * symfile.c (reread_symbols): Ditto.
13058 * symmisc.c (print_objfile_statistics): Ditto.
13060 2004-02-07 Andrew Cagney <cagney@redhat.com>
13062 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13063 (tui_exec_info_content): Rename TuiExecInfoContent.
13064 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13065 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13066 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13067 (TuiList, TuiListPtr): Ditto.
13068 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13069 (TuiDataType, TuiDataTypePtr): Ditto.
13070 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13071 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13072 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13073 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13074 (TuiDataElement, TuiDataElementPtr): Ditto.
13075 (TuiWinElement, TuiWinElementPtr): Ditto.
13076 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13077 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13078 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13079 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13080 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13081 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13082 * tui/tui-command.c, tui/tui-data.c: Update references.
13083 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13084 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13085 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13086 * tui/tui-winsource.c, tui/tui.c: Ditto.
13088 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13090 * dwarf2-frame.h: Update copyright.
13091 (enum dwarf2_frame_reg_rule): New.
13092 (struct dwarf2_frame_state_reg): New.
13093 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13094 * dwarf2-frame.c: Update copyright.
13095 (enum dwarf2_reg_rule): Remove.
13096 (struct dwarf2_frame_state): Remove defenition of `struct
13097 dwarf2_frame_state_reg'.
13098 (read_reg): Call get_frame_arch to get the architecture instead of
13099 using CURRENT_GDBARCH.
13100 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13102 (dwarf2_frame_init_reg): New function.
13103 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13104 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13105 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13106 tags with DWARF2_FRAME_.
13107 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13108 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13109 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13111 2004-02-06 Andrew Cagney <cagney@redhat.com>
13113 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13114 (enum tui_data_type): Rename _TuiDataType.
13115 (struct tui_layout_def): Rename _TuiLayoutDef.
13116 (struct tui_source_element): Rename _TuiSourceElement.
13117 (struct tui_data_element): Rename _TuiDataElement.
13118 (struct tui_command_element): Rename _TuiCommandElement.
13119 (struct tui_locator_element): Rename _TuiLocatorElement.
13120 (union tui_which_element): Define.
13121 (struct tui_win_element): Rename _TuiWinElement.
13122 (struct tui_data_info): Rename _TuiDataInfo.
13123 (struct tui_source_info): Rename _TuiSourceInfo.
13124 (struct tui_command_info): Rename _TuiCommandInfo.
13125 (tui_initialize_static_data): Rename initializeStaticData.
13126 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13127 (tui_alloc_win_info): Rename allocWinInfo.
13128 (tui_init_generic_part): Rename initGenericPart.
13129 (tui_init_win_info): Rename initWinInfo.
13130 (tui_alloc_content): Rename allocContent.
13131 (tui_add_content_elements): Rename addContentElements.
13132 (tui_init_content_element): Rename initContentElement.
13133 (tui_free_window): Rename freeWindow.
13134 (tui_free_win_content): Rename freeWinContent.
13135 (tui_free_data_content): Rename freeDataContent.
13136 (tui_free_all_source_wins_content): Rename
13137 freeAllSourceWinsContent.
13138 (tui_del_window): Rename tuiDelWindow.
13139 (tui_del_data_windows): Rename tuiDelDataWindows.
13140 (tui_partial_win_by_name): Rename partialWinByName.
13141 (tui_win_name): Rename winName.
13142 (tui_current_layout): Rename currentLayout.
13143 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13144 (tui_term_height): Rename termHeight.
13145 (tui_set_term_height_to): Rename setTermHeightTo.
13146 (tui_term_width): Rename termWidth.
13147 (tui_set_term_width_to): Rename setTermWidthTo.
13148 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13149 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13150 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13151 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13152 (tui_source_windows): Rename sourceWindows.
13153 (tui_clear_source_windows): Rename clearSourceWindows.
13154 (tui_clear_source_windows_detail): Rename
13155 clearSourceWindowsDetail.
13156 (tui_clear_win_detail): Rename clearWinDetail.
13157 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13158 (tui_default_tab_len): Rename tuiDefaultTabLen.
13159 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13160 (tui_win_with_focus): Rename tuiWinWithFocus.
13161 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13162 (tui_layout_def): Rename tuiLayoutDef.
13163 (tui_win_resized): Rename tuiWinResized.
13164 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13165 (tui_next_win): Rename tuiNextWin.
13166 (tui_prev_win): Rename tuiPrevWin.
13167 (tui_add_to_source_windows): Rename addToSourceWindows.
13168 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13169 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13170 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13171 * tui/tui.c, tui/tui-data.c: Ditto.
13172 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13173 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13175 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13176 (struct symtab): Declare.
13177 (tui_set_source_content): Rename tuiSetSourceContent.
13178 (tui_show_symtab_source): Rename tuiShowSource.
13179 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13180 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13181 * tui/tui-source.c: Update copyright. Update references.
13182 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13183 * tui/tui-stack.c: Update references.
13185 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13186 (struct tui_win_info): Declare.
13187 (tui_scroll_forward): Rename tuiScrollForward.
13188 (tui_scroll_backward): Rename tuiScrollBackward.
13189 (tui_scroll_left): Rename tuiScrollLeft.
13190 (tui_scroll_right): Rename tuiScrollRight.
13191 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13192 (tui_resize_all): Rename tuiResizeAll.
13193 (tui_refresh_all_win): Rename tuiRefreshAll.
13194 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13195 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13196 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13197 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13199 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13200 (tui_erase_data_content): Rename tuiEraseDataContent.
13201 (tui_display_all_data): Rename tuiDisplayAllData.
13202 (tui_check_data_values): Rename tuiCheckDataValues.
13203 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13204 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13205 (tui_first_data_element_no_in_line): Rename
13206 tuiFirstDataElementNoInLine.
13207 (tui_delete_data_content_windows): Rename
13208 tuiDeleteDataContentWindows.
13209 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13210 (tui_display_data_from): Rename tuiDisplayDataFrom.
13211 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13212 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13213 * tui/tui-win.c, tui/tui-regs.c: Update references.
13214 * tui/tui-layout.c, tui/tui.c: Update references.
13216 * tui/tui-wingeneral.h: Update copyright.
13217 (m_allBeVisible): Delete macro.
13218 (m_allBeInvisible): Delete macro.
13219 (struct tui_gen_win_info): Declare.
13220 (struct tui_win_info): Declare.
13221 (tui_unhighlight_win): Rename unhighlightWin.
13222 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13223 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13224 (tui_make_window): Rename makeWindow.
13225 (tui_copy_win): Rename copyWin.
13226 (tui_box_win): Rename boxWin.
13227 (tui_highlight_win): Rename highlightWin.
13228 (tui_check_and_display_highlight_if_needed): Rename
13229 checkAndDisplayHighlightIfNeeded.
13230 (tui_refresh_all): Rename refreshAll.
13231 (tui_delete_win): Rename tuiDelwin.
13232 (tui_refresh_win): Rename tuiRefreshWin.
13233 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13234 (tui_make_visible, tui_make_invisible): New functions.
13235 (tui_make_all_visible, tui_make_all_invisible): New functions.
13236 (make_all_visible): Rename makeAllVisible.
13237 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13238 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13239 * tui/tui-windata.c, tui/tui-win.c: Update references.
13240 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13241 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13243 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13245 * proc-api.c (write_with_trace): Initialize local variable to
13246 silence compiler warning.
13248 2004-02-06 Andrew Cagney <cagney@redhat.com>
13250 * tui/tui-source.h: Do not include "defs.h".
13251 (struct tui_win_info): Declare.
13252 (tui_set_source_content_nil): Declare.
13253 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13254 (union tui_line_or_address): Rename _TuiLineOrAddress.
13255 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13256 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13257 (tui_update_source_window_as_is): Rename
13258 tuiUpdateSourceWindowAsIs.
13259 (tui_update_source_windows_with_addr): Rename
13260 tuiUpdateSourceWindowsWithAddr.
13261 (tui_update_source_windows_with_line): Rename
13262 tuiUpdateSourceWindowsWithLine.
13263 (tui_clear_source_content): Rename tuiClearSourceContent.
13264 (tui_erase_source_content): Rename tuiEraseSourceContent.
13265 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13266 (tui_show_source_content): Rename tuiShowSourceContent.
13267 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13268 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13269 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13270 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13271 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13272 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13273 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13274 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13275 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13276 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13277 (struct tui_win_info): Declare.
13278 * tui/tui-stack.c: Update references.
13279 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13280 * tui/tui-win.c, tui/tui-source.c: Ditto.
13281 * tui/tui.c, tui/tui-disasm.c: Ditto.
13283 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13285 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13286 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13288 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13290 * infrun.c (handle_inferior_event): Allow for breakpoint
13291 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13292 and SIGEMT. Update comments.
13293 * NEWS (Revised SPARC target): Mention support for non-executable
13296 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13298 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13299 * inftarg.c: Update copyright year.
13300 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13301 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13302 (sparc_xfer_wcookie): New function.
13303 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13304 * Makefile.in (sparc-nat.o): Update dependencies.
13305 * config/sparc/nm-nbsd.h: Include "target.h".
13306 (NATIVE_XFER_WCOOKIE): New define.
13307 (sparc_xfer_wcookie): New prototype.
13309 2004-02-04 Andrew Cagney <cagney@redhat.com>
13311 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13312 SYSCALL_TRAP function.
13313 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13315 2004-02-04 Andrew Cagney <cagney@redhat.com>
13316 Daniel Jacobowitz <drow@mvista.com>
13318 * objfiles.h: Delete comments refering to inside_entry_func and
13319 DEPRECATED_FRAME_CHAIN_VALID.
13320 * defs.h (inside_entry_func): Update prototype..
13321 * blockframe.c (inside_entry_func): Rename to
13322 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13323 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13325 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13327 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13328 outside of #ifdef SOLIB_ADD region.
13329 (do_restore_lang_radix_cleanup): Ditto.
13330 (resolve_pending_breakpoint): Ditto.
13332 2004-02-03 Andrew Cagney <cagney@redhat.com>
13334 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13335 (process_note_abi_tag_sections): Delete unused function.
13336 (ia64_read_fp): Delete unused function.
13337 (gdbarch_extract_struct_value_address): Delete declaration.
13339 2004-02-02 Andrew Cagney <cagney@redhat.com>
13341 * vax-tdep.c (vax_frame_chain): Delete call to
13342 deprecated_inside_entry_file.
13343 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13345 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13347 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13348 column that's "empty" or "same value" when eliminating REG_RA
13351 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13353 * NEWS: Add information about new pending breakpoint support.
13355 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13357 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13358 and pending fields for pending breakpoint support.
13359 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13360 (condition_command): Only parse condition if not a pending
13362 (print_one_breakpoint): Add support for pending breakpoints.
13363 (describe_other_breakpoints): Add checks to verify we are not
13364 dealing with pending breakpoints.
13365 (check_duplicates): Don't check pending breakpoints.
13366 (set_raw_breakpoint): Initialize pending flag.
13367 (do_restore_lang_radix_cleanup): New cleanup routine.
13368 (resolve_pending_breakpoint): New function.
13369 (re_enable_breakpoints_in_shlibs): Try and resolve any
13370 pending breakpoints via resolve_pending_breakpoint.
13371 (mention): Add pending breakpoint support.
13372 (parse_breakpoint_sals): Add new parameter to pass to
13373 decode_line_1 to indicate silent errors when files or functions
13374 are not found. Change all callers.
13375 (do_captured_parse_breakpoint): New function.
13376 (break_command_1): Change prototype to return an rc value and to
13377 take an optional pending breakpoint pointer. Support creating
13378 a pending breakpoint if a "not found" form of error occurs when
13379 parsing the breakpoint. Also support resolving an existing pending
13380 breakpoint and be silent if the resolution fails.
13381 (create_breakpoints): Change prototype to take pending breakpoint
13382 pointer. When resolving a pending breakpoint, use the new pointer
13383 to provide a conditional or commands added by the end-user.
13384 (delete_breakpoint): Add appropriate check for pending.
13385 (breakpoint_re_set_one): Ditto.
13386 (do_enable_breakpoint): Ditto.
13388 2004-02-02 David Carlton <carlton@kealia.com>
13390 * valops.c (enum oload_classification): New.
13391 (find_overload_match): Break implementation into separate
13392 functions; delete #if 0'd code; look for symbols within
13394 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13395 (find_oload_champ,oload_method_static,classify_oload_match): New.
13396 * cp-support.h: Add declaration for cp_func_name; update
13397 declaration for make_symbol_overload_list.
13398 * cp-support.c (cp_func_name): New.
13399 (overload_list_add_symbol): Fix comment, use
13400 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13401 (make_symbol_overload_list): Take a function name and a namespace
13402 instead of a symbol; change implementation.
13403 (make_symbol_overload_list_using): New.
13404 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13406 2004-02-02 Fred Fish <fnf@redhat.com>
13408 * main.c (gdb_stdtarg): Move definition to group with other
13409 gdb_stdtarg definitions and update copyright years.
13410 * remote-sim.c (gdb_os_write_stderr): Write output to
13411 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13412 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13413 gdb_stderr stream and update copyright years.
13415 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13417 * Makefile.in (mips-linux-nat.o): Update dependencies.
13418 * mips-linux-nat.c: Include mips-tdep.h.
13420 2004-02-01 Roland McGrath <roland@redhat.com>
13422 * sol-thread.c (sol_thread_xfer_partial): New function.
13423 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13424 (init_sol_core_ops): Likewise.
13426 * procfs.c (procfs_xfer_partial): New function.
13427 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13428 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13430 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13431 procfs_xfer_auxv function.
13433 * procfs.c (procfs_make_note_section): If we can read
13434 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13435 * linux-proc.c (linux_make_note_section): Likewise.
13437 * auxv.h: New file.
13438 * auxv.c: New file.
13439 * Makefile.in (auxv_h): New variable.
13440 (COMMON_OBS): Add auxv.o here.
13441 (auxv.o): New target.
13443 * corelow.c (core_xfer_partial): New function.
13444 (init_core_ops): Use it for core_ops.to_xfer_partial.
13446 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13447 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13448 macro if that is defined.
13450 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13452 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13453 and check the specified thread for each breakpoint.
13454 * breakpoint.h (bpstat_stop_status): Update prototype.
13455 * infrun.c (handle_inferior_event): Update calls to
13456 bpstat_stop_status.
13458 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13460 * Makefile.in (cli-cmds.o): Add $(readline_h).
13462 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13464 * cli/cli-cmds.c: Include readline.h.
13465 (complete_command): Pass the start of the last word to
13468 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13470 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13471 argument, and change first argument to a CORE_ADDR.
13472 * breakpoint.h (bpstat_stop_status): Update prototype.
13473 * infrun.c (adjust_pc_after_break): Add a new comment.
13474 (handle_inferior_event): Update calls to bpstat_stop_status.
13476 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13478 * breakpoint.h: Update copyright years.
13480 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13482 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13483 (bpstat_stop_status): Don't decrement PC.
13484 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13486 * infrun.c (adjust_pc_after_break): New function.
13487 (handle_inferior_event): Call it, early. Remove later references
13488 to DECR_PC_AFTER_BREAK.
13489 (normal_stop): Add commentary.
13491 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13493 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13494 2004-01-27 double-free fix.
13496 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13498 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13499 (sparc32_frame_prev_register): Handle StackGhost.
13500 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13502 2004-01-29 Roland McGrath <roland@redhat.com>
13504 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13505 * configure: Regenerated.
13507 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13508 * Makefile.in (procfs.o): Add dep.
13510 2004-01-28 Andrew Cagney <cagney@redhat.com>
13512 * tui/tui-stack.h: Update copyright.
13513 (struct frame_info): Add opaque declaration.
13514 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13515 (tui_show_locator_content): Rename tuiShowLocatorContent.
13516 (tui_show_frame_info): Rename tuiShowFrameInfo.
13517 * tui/tui-stack.c: Update copyright. Update references.
13518 * tui/tui-winsource.c: Update references.
13519 * tui/tui-win.c: Update references.
13520 * tui/tui-layout.c: Update references.
13521 * tui/tui-hooks.c: Update copyright, update references.
13522 * tui/tui.c: Update copyright, update references.
13523 * tui/tui-disasm.c: Update references.
13525 2004-01-28 David Carlton <carlton@kealia.com>
13527 * dwarf2read.c (add_partial_structure): Use demangled name if
13528 namespace equals "".
13530 2004-01-27 Jim Blandy <jimb@redhat.com>
13532 Clean up misapplied patch:
13533 * dwarf2read.c (determine_prefix): Change one of the two forward
13534 declarations for 'determine_prefix_aux' to a declaration for this.
13535 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13536 argument to 'die_specification'.
13538 * dwarf2read.c (read_func_scope): Re-indent comment.
13540 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13542 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13543 b->exp to NULL after freeing so that error during re-parsing or
13544 evaluation of expressions associated with breakpoint don't
13545 eventually lead to re-freeing of storage.
13546 Committed by Andrew Cagney.
13548 2004-01-27 Andrew Cagney <cagney@redhat.com>
13550 * source.c (ambiguous_line_spec): Delete undefined declaration.
13551 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13552 (m32r_set_server_address, m32r_set_download_path): Ditto.
13553 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13555 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13557 * dwarf2read.c: Update calls to changed and renamed functions, and
13558 references to moved variables.
13560 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13561 language, language_defn, list_in_scope, and ftypes members.
13562 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13563 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13564 (baseaddr): Remove globals.
13566 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13567 (set_cu_language, die_is_declaration, die_specification)
13568 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13569 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13570 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13571 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13573 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13574 cu.list_in_scope. Don't initialize cu_header_offset.
13575 (add_partial_symbol): Add local baseaddr.
13576 (psymtab_to_symtab_1): Add local baseaddr. Use
13577 objfile->section_offsets for consistency. Don't initialize
13578 cu_header_offset; do initialize cu.header.offset and
13580 (read_file_scope, read_func_scope, read_lexical_block_scope)
13581 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13583 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13585 * PROBLEMS: Add gdb/1516.
13587 2003-12-29 Robert Millan <robertmh@gnu.org>
13589 Patch committed by Andrw Cagney.
13590 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13591 * configure.tgt: Match knetbsd*-gnu.
13593 2004-01-26 Andrew Cagney <cagney@redhat.com>
13595 * breakpoint.c (catch_command_1): Delete #ifdef code.
13596 (catch_fork_command_1): Delete #ifdef wrapper.
13597 (catch_exec_command_1): Ditto.
13598 (catch_load_command_1): Ditto.
13599 (catch_unload_command_1): Ditto.
13601 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13602 (catch_breakpoint): Delete #if0ed function.
13603 (disable_catch_breakpoint): Ditto.
13604 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13605 (disable_catch, enable_catch, delete_catch): Ditto.
13607 2004-01-26 Andrew Cagney <cagney@redhat.com>
13609 * remote.c (echo_check, quit_flag): Delete variables.
13610 (cisco_kernel_mode): Delete variable.
13611 (minitelnet_return, tty_input, escape_count): Delete variables.
13612 (remote_cisco_mode): Delete variable.
13613 (remote_cisco_open, remote_cisco_close): Delete function.
13614 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13615 (init_remote_cisco_ops): Delete function.
13616 (_initialize_remote): Do not install "remote cisco" code.
13617 (read_frame): Delete cisco specific code.
13618 (remote_info_process): Delete function.
13619 (remote_wait): Delete cisco specific code.
13620 (remote_cisco_section_offsets): Delete function.
13621 (remote_cisco_objfile_relocate): Delete function.
13622 (remote_async_wait): Delete cisco specific code.
13623 (minitelnet, readtty, readsocket): Delete function.
13625 2004-01-26 Andrew Cagney <cagney@redhat.com>
13627 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13628 comments mentioning extract_returned_value_address.
13629 * infcmd.c (print_return_value): Update. Add comments on
13630 extract_returned_value_address.
13631 * stack.c (return_command): Add comments on
13632 extract_returned_value_address.
13633 * values.c: Update comment.
13634 * m32r-tdep.c: Update comment.
13635 * sparc-tdep.c: Update comment.
13636 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13638 * sh64-tdep.c (sh64_gdbarch_init): Update.
13639 * sh-tdep.c (sh_gdbarch_init): Update.
13640 * s390-tdep.c (s390_gdbarch_init): Update.
13641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13642 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13643 * m68k-tdep.c (m68k_gdbarch_init): Update.
13644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13645 * m32r-tdep.c (m32r_gdbarch_init): Update.
13646 * ia64-tdep.c (ia64_gdbarch_init): Update.
13647 * h8300-tdep.c (h8300_gdbarch_init): Update.
13648 * frv-tdep.c (frv_gdbarch_init): Update.
13649 * arm-tdep.c (arm_gdbarch_init): Update.
13650 * alpha-tdep.c (alpha_gdbarch_init): Update.
13652 2004-01-26 Andrew Cagney <cagney@redhat.com>
13654 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13655 SYMBOL_LOCATION_FUNCS
13656 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13657 "struct symbol_ops".
13658 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13659 type to "struct symbol_ops".
13660 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13661 (struct symbol): Replace ".aux_value.loc.funcs" and
13662 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13663 (SYMBOL_OBJFILE): Delete macro.
13664 (SYMBOL_LOCATION_FUNCS): Delete macro.
13665 (SYMBOL_LOCATION_BATON): Update.
13666 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13667 intead of SYMBOL_LOCATION_FUNCS.
13668 * ax-gdb.c (gen_var_ref): Ditto.
13669 * printcmd.c (address_info): Ditto.
13670 * findvar.c (read_var_value): Ditto.
13671 (symbol_read_needs_frame): Ditto.
13673 2004-01-26 Andrew Cagney <cagney@redhat.com>
13675 * dwarf2read.c (read_func_scope): Document frame-base hack.
13677 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13679 * infcmd.c (print_return_value): Plug memory leak; delete
13680 ui_stream object. Rename argument `structure_return' to
13683 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13685 * infcmd.c (print_return_value): Wrap long lines.
13686 (finish_command_continuation, finish_command): Remove unused
13687 variable `funcaddr'. Fix some coding-standards problems.
13689 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13690 SECT_SIZE is large enough, not whether it's exactly the right size.
13691 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13692 TDEP->fpregset to zero.
13694 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13695 floating-point registers for traditional NetBSD core files.
13696 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13697 TDEP->sizeof_fpregset here.
13699 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13701 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13702 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13703 function with code split out from
13704 sparc32nbsd_sigcontext_frame_cache.
13705 (sparc32nbsd_sigcontext_frame_cache): Use
13706 sparc32nbsd_sigcontext_saved_regs.
13707 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13709 * sparcobsd-tdep.c: New file.
13710 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13711 (sparcobsd-tdep.o): New dependency.
13712 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13713 * config/sparc/obsd.mt: New file.
13715 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13716 TDEP->fpregset to be initialized to enable core file register
13719 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13721 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13722 Add opaque declarations.
13723 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13724 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13725 function with code split out from
13726 sparc64nbsd_sigcontext_frame_cache.
13727 (sparc64nbsd_sigcontext_frame_cache): Use
13728 sparc64nbsd_sigcontext_saved_regs.
13729 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13731 * sparc64obsd-tdep.c: New file.
13732 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13733 (sparc64obsd-tdep.o): New dependency.
13734 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13735 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13736 * config/sparc/obsd64.mt: New file.
13738 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13739 read the instruction at PC.
13741 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13742 value of GDB_OSABI_DEFAULT.
13743 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13744 instead of GDB_OSABI_NETBSD_AOUT.
13746 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13748 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13751 2004-01-23 Andrew Cagney <cagney@redhat.com>
13753 * printcmd.c (display_command): Replace tui_set_display call with
13754 tui_set_layout_for_display_command.
13755 * tui/tui.h (enum tui_win_type): Define.
13756 (tui_set_layout): Delete declaration.
13757 (tui_set_layout_for_display_command): Rename set_tui_layout.
13758 * tui/tui-data.h (enum tui_layout_type): Define.
13759 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13761 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13762 (tui_default_win_height): Rename tuiDefaultWinHeight.
13763 (tui_default_win_viewport_height): Rename
13764 tuiDefaultWinViewportHeight.
13765 (tui_set_layout): RenametuiSetLayout.
13766 * tui/tui-layout.c: Update references.
13767 * tui/tui.c: Update references.
13768 * tui/tui-disasm.c: Update references.
13770 2004-01-23 David Carlton <carlton@kealia.com>
13772 Partial workaround for PR c++/1511:
13773 * cp-namespace.c: Include frame.h.
13774 (cp_lookup_transparent_type): New
13775 (cp_lookup_transparent_type_loop): New.
13776 * cp-support.h: Declare cp_lookup_transparent_type.
13777 * symtab.c (basic_lookup_transparent_type): Renamed from
13778 lookup_transparent_type.
13779 (lookup_transparent_type): Replace old body by a call to
13780 current_language->la_lookup_transparent_type.
13781 * symtab.h: Update copyright. Declare
13782 basic_lookup_transparent_type.
13783 * language.h: Update copyright.
13784 (struct language_defn): Add la_lookup_transparent_type.
13785 * language.c: Update copyright.
13786 (unknown_language_defn): Add basic_lookup_transparent_type.
13787 (auto_language_defn): Add basic_lookup_transparent_type.
13788 (local_language_defn): Add basic_lookup_transparent_type.
13789 * ada-lang.c: Update copyright.
13790 (ada_language_defn): Add basic_lookup_transparent_type.
13791 * c-lang.c: Update copyright.
13792 (c_language_defn): Add basic_lookup_transparent_type.
13793 (cplus_language_defn): Add basic_lookup_transparent_type.
13794 (asm_language_defn): Add basic_lookup_transparent_type.
13795 (minimal_language_defn): Add basic_lookup_transparent_type.
13796 * f-lang.c: Update copyright.
13797 (f_language_defn): Add basic_lookup_transparent_type.
13798 * jv-lang.c: Update copyright.
13799 (java_language_defn): Add basic_lookup_transparent_type.
13800 * m2-lang.c: Update copyright.
13801 (m2_language_defn): Add basic_lookup_transparent_type.
13802 * objc-lang.c: Update copyright.
13803 (objc_language_defn): Add basic_lookup_transparent_type.
13804 * p-lang.c: Update copyright.
13805 (p_language_defn): Add basic_lookup_transparent_type.
13806 * scm-lang.c: Update copyright.
13807 (scm_language_defn): Add basic_lookup_transparent_type.
13808 * Makefile.in (cp-namespace.o): Depend on frame.h.
13810 2004-01-23 David Carlton <carlton@kealia.com>
13812 Patch for PR c++/1520:
13813 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13814 properly if we have a specification die.
13815 (determine_prefix_aux): Rename from determine_prefix.
13816 (determine_prefix): Like the old determine_prefix, but never
13819 2004-01-23 Theodore A. Roth <troth@openavr.org>
13821 * avr-tdep.c: Update copyright.
13822 (avr_iaddr_p): Delete unused function.
13823 (avr_saddr_p): Delete unused function.
13825 2004-01-23 David Carlton <carlton@kealia.com>
13827 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13828 Fix for PR symtab/1534.
13830 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13832 * NEWS (New native configurations): Mention OpenBSD/sparc and
13834 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13835 * configure.host: Likewise.
13836 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13837 handler for OpenBSD.
13838 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13840 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13842 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13843 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13845 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13846 * cli/cli-cmds.c (shell_escape): Likewise.
13848 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13849 OpenBSD .note.openbsd.ident sections.
13851 2004-01-22 David Carlton <carlton@kealia.com>
13853 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13854 get_scope_pc_bounds.
13855 (read_file_scope): Ditto.
13856 (get_scope_pc_bounds): New function, produced by extracting code
13857 from the above two functions, consolidating it, and adding support
13858 for DW_TAG_namespace.
13860 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13862 * osabi.c (MAX_NOTESZ): New define.
13863 (check_note): New function.
13864 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13867 2004-01-21 Roland McGrath <roland@redhat.com>
13869 * MAINTAINERS (write after approval): Add myself.
13871 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13873 * utils.c (init_page_info): Move declarations of `rows' and
13874 `cols' before the __GO32__-specific code. Move the closing brace
13875 outside the #ifdef __GO32__..#endif block.
13876 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13878 2004-01-21 Paul Brook <paul@codesourcery.com>
13880 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13881 BPSTAT_WHAT_CHECK_SHLIBS.
13883 2004-01-21 Paul Brook <paul@codesourcery.com>
13885 * MAINTAINERS: Add myself to write-after-approval.
13887 2004-01-20 Andrew Cagney <cagney@redhat.com>
13889 * ax-gdb.c (print_axs_value): Delete unused function.
13890 * jv-lang.c (java_lookup_type): Delete unused function.
13891 * cli/cli-dump.c (dump_filetype): Delete unused function.
13892 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13893 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13894 (mips_getstring): Delete unused function.
13895 (pmon_insert_breakpoint): Delete #if0ed function.
13896 (PMON_MAX_BP): Delete #if0ed MACRO.
13897 (mips_pmon_bp_info): Delete #if0ed variable.
13898 (pmon_remove_breakpoint): Delete #if0ed function.
13899 * monitor.c (monitor_write_even_block): Delete unused function.
13900 (monitor_write_memory_block): Delete #if0ed code.
13901 * dink32-rom.c (dink32_load): Delete unused function.
13902 (_initialize_dink32_rom): Delete #if0ed code.
13903 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13905 * tui/tui-command.c: Update references.
13906 * tui/tui-io.c: Update references.
13907 * tui/tui-command.h: Update copyright.
13908 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13910 * source.c (ambiguous_line_spec): Delete never-defined function.
13911 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13912 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13913 * cli/cli-cmds.c (validate_comname): Ditto.
13915 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13917 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13918 (tui_show_disassem): Rename tuiShowDisassem.
13919 (tui_show_disassem_and_update_source): Rename
13920 tuiVerticalDisassemScroll.
13921 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13922 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13923 * tui/tui.h: Update copyright.
13924 (enum tui_status): Define.
13925 * tui/tui-data.h (enum tui_scroll_direction): Define.
13926 * tui/tui-disasm.c: Update copyright. Update references.
13927 * tui/tui-winsource.c: Update copyright. Update references.
13928 * tui/tui-win.c: Update references.
13929 * tui/tui-layout.c: Update references.
13931 2004-01-20 Andrew Cagney <cagney@redhat.com>
13933 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13934 sym2 to start of block.
13936 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13938 * MAINTAINERS: Delete mmalloc.
13939 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13940 * NEWS: Mention removal of --with-malloc.
13941 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13942 * config.in: Regenerate.
13943 * configure: Regenerate.
13944 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13945 USE_MMALLOC, MMCHECK_FORCE.
13946 * gdbinit.in: Remove mmalloc.
13947 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13948 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13949 * config/i386/go32.mh: Likewise.
13950 * config/i386/interix.mh: Likewise.
13951 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13953 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13955 * linespec.c (decode_variable, symtab_from_filename): Call
13956 error_silent with error message instead of throwing an exception
13958 * defs.h (error_silent, error_output_message): Add prototypes.
13959 (catch_exceptions_with_msg): Ditto.
13960 * utils.c (error_silent, error_output_message): New functions.
13961 * top.c (catch_exceptions_with_msg): New function.
13963 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13965 * mi/mi-cmds.h (enum print_values): Add definition.
13967 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13968 type and value for simple data types and just the name and type
13969 for complex ones, if required.
13971 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13972 children, if required.
13974 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13976 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13977 unused declarations.
13979 2004-01-19 Andrew Cagney <cagney@redhat.com>
13981 * top.h (mapped_symbol_files): Delete declaration.
13982 * main.c (captured_main): Delete option "m" and "mapped".
13983 * objfiles.c (mapped_symbol_files): Delete variable.
13984 * symfile.c (symbol_file_command): Delete mmap code.
13985 (symbol_file_add_with_addrs_or_offsets): Ditto.
13986 (add_symbol_file_command, reread_separate_symbols): Ditto.
13987 * objfiles.h (OBJF_MAPPED): Delete.
13988 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13989 (free_objfile) [USE_MMALLOC]: Ditto.
13990 (open_existing_mapped_file): Delete function.
13991 (open_mapped_file): Delete function.
13992 (map_to_file): Delete function.
13994 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13996 * infrun.c (step_into_function): Account for possible breakpoint
13997 adjustment when computing ``stop_func_start''.
13999 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14001 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14002 the region size against the size of a pointer, not the size of
14003 a register as given by DEPRECATED_REGISTER_SIZE.
14005 2004-01-19 Andrew Cagney <cagney@redhat.com>
14007 * tui/tui-regs.h: Include "tui-data.h".
14008 (tuiFirstRegElementNoInLine): Delete declaration.
14009 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14010 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14011 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14012 (tui_calculate_regs_column_count): Rename
14013 tuiCalculateRegsColumnCount.
14014 (tui_check_register_values): Rename tuiCheckRegisterValues.
14015 (tui_show_registers): Rename tuiShowRegisters.
14016 (tui_display_registers_from_line): Rename
14017 tuiDisplayRegistersFromLine.
14018 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14019 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14020 (tui_first_reg_element_no_inline): Rename
14021 tuiFirstRegElementNoInLine.
14022 * tui/tui-data.h: Update copyright.
14023 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14024 * tui/tui-windata.c: Update copyright, update references.
14025 * tui/tui-regs.c: Update copyright, update references.
14026 * tui/tui-win.c: Update copyright, update references.
14027 * tui/tui-layout.c: Update copyright, update references.
14029 2004-01-18 Andrew Cagney <cagney@redhat.com>
14031 * tui/tui-io.c: Update copyright.
14032 (key_is_end_sequence, key_is_backspace): New functions.
14033 (key_is_command_char, key_is_start_sequence): New function.
14034 (tui_getc): Update references.
14035 * tui/tui-io.h: Update copyright.
14036 (m_tuiStartNewLine): Delete macro.
14037 (m_isBackspace, m_isDeleteChar): Delete macros.
14038 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14039 (m_isNextPage, m_isPrevPage): Delete macros.
14040 (m_isLeftArrow, m_isRightArrow): Delete macros.
14041 (m_isXdbStyleCommandChar): Delete macro.
14042 (key_is_start_sequence): Declare, replace m_isStartSequence.
14043 (key_is_end_sequence): Declare, replace m_isEndSequence.
14044 (key_is_backspace): Declare ,replace m_isBackspace.
14045 (key_is_command_char): Declare, replace m_isCommandChar.
14046 * tui/tui-command.c: Update copyright.
14047 (tuiDispatchCtrlChar): Update references.
14049 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14052 * tui/tui-command.c: Rename tui/tuiCommand.c.
14053 * tui/tui-command.h: Rename tui/tuiCommand.h.
14054 * tui/tui-data.c: Rename tui/tuiData.c.
14055 * tui/tui-data.h: Rename tui/tuiData.h.
14056 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14057 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14058 * tui/tui-io.c: Rename tui/tuiIO.c.
14059 * tui/tui-io.h: Rename tui/tuiIO.h.
14060 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14061 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14062 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14063 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14064 * tui/tui-source.c: Rename tui/tuiSource.c.
14065 * tui/tui-source.h: Rename tui/tuiSource.h.
14066 * tui/tui-stack.c: Rename tui/tuiStack.c.
14067 * tui/tui-stack.h: Rename tui/tuiStack.h.
14068 * tui/tui-win.c: Rename tui/tuiWin.c.
14069 * tui/tui-win.h: Rename tui/tuiWin.h.
14070 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14071 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14072 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14073 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14074 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14075 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14076 * tui/tui-file.c: Update includes.
14077 * tui/tui-hooks.c: Update includes.
14078 * tui/tui-interp.c: Update includes.
14079 * tui/tui.c: Update includes.
14080 * Makefile.in: Update all tui/ dependencies.
14081 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14083 * Makefile.in: Update copyright. Update dependencies.
14085 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14088 2004-01-18 Andrew Cagney <cagney@redhat.com>
14090 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14091 instead of register_gdbarch_init.
14093 * remote-sds.c (tohex): Delete unused function. Update copyright.
14094 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14095 * v850-tdep.c (v850_register_virtual_size): Ditto.
14096 * target.c (normal_target_post_startup_inferior): Ditto.
14097 * source.c (ambiguous_line_spec): Ditto.
14098 * remote.c (adapt_remote_get_threadinfo): Ditto.
14099 * mi/mi-out.c (out_field_fmt): Ditto.
14100 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14101 (output_control_change_notification): Ditto.
14102 * m68k-tdep.c (m68k_register_byte): Ditto.
14103 (m68k_remote_breakpoint_from_pc): Ditto.
14104 * ui-out.c (init_ui_out_state): Delete unused declaration.
14105 * stabsread.c (search_value): Ditto.
14106 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14107 * maint.c (print_section_table): Ditto.
14108 * infrun.c (set_follow_fork_mode_command): Ditto.
14110 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14112 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14113 DW_CFA_def_cfa_exporession. Add support for
14114 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14115 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14117 2004-01-18 Andrew Cagney <cagney@redhat.com>
14119 * ocd.c: Update copyright.
14120 (bdm_read_register_command): Delete unused function.
14121 (_initialize_remote_ocd): Delete commented out reference.
14122 (get_quoted_char, reset_packet): Delete #if0ed function.
14123 (output_packet, put_quoted_char): Delete #if0ed function.
14124 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14125 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14126 (BDM_BREAKPOINT): Delete #if0ed macro.
14127 (remote_timeout): Delete #if0ed variable.
14129 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14131 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14132 (core-sol2.o): Remove dependency.
14133 * core-sol2.c: Remove file.
14135 2004-01-17 Andrew Cagney <cagney@redhat.com>
14137 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14138 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14141 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14143 * remote.c: Update copyright years.
14145 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14147 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14149 2004-01-17 Andrew Cagney <cagney@redhat.com>
14151 * mdebugread.c: Update copyright.
14152 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14153 (parse_type, parse_procedure): Ditto.
14154 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14156 * cris-tdep.c (cris_store_struct_return): Put back accidently
14159 * gdbarch.sh: Update copyright year.
14160 * gdbarch.h, gdbarch.c: Re-generate.
14162 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14164 Suggested by George Anzinger.
14165 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14166 correct stack offset. Include unknown opcode numbers in the error
14169 2004-01-17 Andrew Cagney <cagney@redhat.com>
14171 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14172 extract_struct_value_address, i386 does not set it.
14173 * sparc64-tdep.c (sparc64_init_abi): Do not set
14174 extract_struct_value_address, never called.
14175 (sparc64_extract_struct_value_address): Delete function.
14176 * m68hc11-tdep.c: Update copyright.
14177 (m68hc11_gdbarch_init): Delete redundant assignment of
14178 extract_struct_value_address.
14179 * i386-tdep.c: Update copyright.
14180 (i386_gdbarch_init): Do not set extract_struct_value_address,
14182 (i386_extract_struct_value_address): Delete function.
14183 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14184 extract_struct_value_address, never called.
14185 (sparc32_extract_struct_value_address): #if 0 function. Add
14186 comments explaining its future.
14188 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14190 * arm-tdep.c (arm_write_pc): New function.
14191 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14193 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14195 * breakpoint.c (must_shift_inst_regs): Delete.
14196 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14197 and SHIFT_INST_REGS.
14198 * infcmd.c (step_1, step_1_continuation): Delete references to
14200 * infrun.c (keep_going): Likewise.
14201 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14202 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14204 2004-01-17 Andrew Cagney <cagney@redhat.com>
14206 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14207 * gdbarch.h, gdbarch.c: Re-generate.
14208 * infcmd.c (print_return_value): Delete reference to
14209 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14211 * cris-tdep.c (cris_gdbarch_init): Do not set
14212 deprecated_extract_struct_value_address.
14214 * xstormy16-tdep.c: Update copyright.
14215 (xstormy16_extract_struct_value_address): Update to current
14216 extract struct value address interface.
14217 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14218 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14219 current extract struct value address interface.
14220 (sh64_gdbarch_init): Set extract_struct_value_address.
14222 * cris-tdep.c: Update copyright.
14223 (cris_extract_struct_value_address): Delete function.
14224 (struct_return_address): Delete variable.
14225 (cris_store_struct_return): Do not set struct_return_address.
14227 * mcore-tdep.c: Update copyright.
14228 (mcore_extract_struct_value_address): Delete function. Update
14230 (mcore_gdbarch_init): Update.
14231 * mn10300-tdep.c: Update copyright.
14232 (mn10300_extract_struct_value_address): Delete function.
14233 (mn10300_gdbarch_init): Update.
14234 * v850-tdep.c: Update copyright.
14235 (v850_extract_struct_value_address): Delete.
14236 (v850_gdbarch_init): Update.
14237 * ns32k-tdep.c: Update copyright.
14238 (ns32k_extract_struct_value_address): Delete.
14239 (ns32k_gdbarch_init): Update.
14240 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14241 (hppa_gdbarch_init): Update.
14242 * vax-tdep.c: Update copyright.
14243 (vax_extract_struct_value_address): Delete.
14244 (vax_gdbarch_init): Update.
14246 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14247 * gdbarch.h, gdbarch.c: Re-generate.
14248 * procfs.c (procfs_fetch_registers): Delete reference to
14249 DEPRECATED_NPC_REGNUM.
14250 (procfs_store_registers): Ditto.
14251 * regcache.c (generic_target_write_pc): Simplify.
14252 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14254 * core-sol2.c (fetch_core_registers): Replace
14255 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14257 * hppa-tdep.c: Update copyright year.
14258 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14260 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14262 * mips-tdep.c (mips_write_pc): New function.
14263 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14264 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14265 (mips_find_saved_regs, mips_software_single_step: Ditto.
14266 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14267 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14269 2004-01-17 Andrew Cagney <cagney@redhat.com>
14271 * mips-tdep.c: Re-indent. Group functions by ABI.
14273 2004-01-17 Andrew Cagney <cagney@redhat.com>
14275 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14276 * gdbarch.c: Re-generate.
14277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14278 DECR_PC_AFTER_BREAK to zero.
14279 * vax-tdep.c (vax_gdbarch_init): Ditto.
14280 * v850-tdep.c (v850_gdbarch_init): Ditto.
14281 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14282 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14283 * sh-tdep.c (sh_gdbarch_init): Ditto.
14284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14285 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14286 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14287 * mips-tdep.c (mips_gdbarch_init): Ditto.
14288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14290 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14291 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14292 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14293 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14294 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14295 * frv-tdep.c (frv_gdbarch_init): Ditto.
14296 * cris-tdep.c (cris_gdbarch_init): Ditto.
14297 * avr-tdep.c (avr_gdbarch_init): Ditto.
14298 * arm-tdep.c (arm_gdbarch_init): Ditto.
14299 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14301 2004-01-17 J. Brobecker <brobecker@gnat.com>
14303 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14304 Delete, no longer used.
14305 (read_subrange_type): New function, mostly extracted from
14307 (read_array_type): Replace extracted code by call to
14308 read_subrange_type().
14309 (dwarf2_get_attr_constant_value): New function.
14310 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14311 (add_partial_symbol): Likewise.
14312 (process_die): Likewise.
14313 (new_symbol): Likewise.
14314 (read_type_die): Likewise.
14316 2004-01-16 Andrew Cagney <cagney@redhat.com>
14318 * symfile.c: Update copyright year.
14319 (compare_symbols): Delete unused function.
14320 * stabsread.c: Update copyright year.
14321 (lrs_general_complaint): Delete unused function.
14322 (ref_search_value): Ditto.
14323 (get_substring): Delete declaration.
14324 * sh64-tdep.c: Update copyright year.
14325 (sh64_get_gdb_regnum): Delete unused function.
14326 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14327 Delete unused function.
14329 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14331 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14332 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14334 2004-01-16 Andrew Cagney <cagney@redhat.com>
14336 Changes from Peter Schauer.
14337 * rs6000-tdep.c: Update copyright year.
14338 (rs6000_push_dummy_call): Update the stack pointer before
14339 accessing the corresponding stack region.
14340 * rs6000-nat.c: Update copyright year.
14341 (set_host_arch): Set "info.abfd" to "exec_bfd".
14343 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14345 * blockframe.c: Update copyright year.
14346 (inside_entry_func): Don't treat a zero PC specially.
14348 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14350 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14352 (gcore_create_callback): Ditto. Skip any memory segment that has
14353 no permissions set.
14355 2004-01-14 David Carlton <carlton@kealia.com>
14357 Change symbols for C++ nested types to contain the fully qualified
14358 name, if possible. (At least in the DWARF-2 case.) Partial fix
14359 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14361 * c-exp.y (qualified_type): Handle types nested within classes.
14362 * cp-namespace.c: Update comments.
14363 (cp_set_block_scope): Delete #if 0.
14364 (cp_lookup_nested_type): Handle types nested within classes.
14365 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14367 (add_partial_symbol): Add the name of the enclosing namespace to
14369 (pdi_needs_namespace): New.
14370 (add_partial_namespace): Tweak comment.
14371 (add_partial_structure): New.
14372 (psymtab_to_symtab_1): Initialize processing_current_prefix
14374 (process_die): instead of here.
14375 (read_structure_scope): Try to figure out the name of the class or
14376 namespace that the structure might be defined within.
14377 (read_enumeration): Generate fully-qualified names, if possible.
14378 (read_namespace): Don't set name to NULL.
14379 (die_specification): New.
14380 (new_symbol): Generate fully-qualified names for types.
14381 (read_type_die): Determine appropriate prefix.
14382 (determine_prefix): New.
14383 (typename_concat): New.
14385 * valops.c (value_aggregate_elt): Pass NOSIDE to
14386 value_struct_elt_for_reference.
14387 (value_struct_elt_for_reference): Make static, add NOSIDE
14388 parameter, call value_maybe_namespace_elt as a last resort.
14389 (value_namespace_elt): Break out code into
14390 value_maybe_namespace_elt.
14391 (value_maybe_namespace_elt): New.
14393 2004-01-12 Andrew Cagney <cagney@redhat.com>
14395 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14396 cooked floating-point registers.
14397 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14398 and value_to_register.
14400 2004-01-13 Andrew Cagney <cagney@redhat.com>
14402 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14403 * gdbarch.c: Re-generate.
14404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14405 FUNCTION_START_OFFSET.
14406 * v850-tdep.c (v850_gdbarch_init): Ditto.
14407 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14408 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14409 * sh-tdep.c (sh_gdbarch_init): Ditto.
14410 * s390-tdep.c (s390_gdbarch_init): Ditto.
14411 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14412 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14413 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14414 * mips-tdep.c (mips_gdbarch_init): Ditto.
14415 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14416 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14418 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14420 * i386-tdep.c (i386_gdbarch_init): Ditto.
14421 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14422 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14423 * frv-tdep.c (frv_gdbarch_init): Ditto.
14424 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14425 * cris-tdep.c (cris_gdbarch_init): Ditto.
14426 * avr-tdep.c (avr_gdbarch_init): Ditto.
14427 * arm-tdep.c (arm_gdbarch_init): Ditto.
14428 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14430 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14432 * infrun.c (follow_fork_mode_ask): Remove.
14433 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14434 (follow_fork): Simplify and remove internal error for
14435 follow_fork_mode_ask.
14436 (_initialize_infrun): Update "set follow-fork-mode" help text.
14438 2004-01-13 Andrew Cagney <cagney@redhat.com>
14440 * configure.in: Update copyright year.
14441 (build_warnings): Add -Wunused-label.
14442 * configure: Re-generate.
14444 2004-01-12 Andrew Cagney <cagney@redhat.com>
14446 * exec.h (exec_ops): Make "extern".
14448 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14449 the function is void.
14450 (mips_pseudo_register_write): Ditto.
14452 2004-01-12 Andrew Cagney <cagney@redhat.com>
14454 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14455 call. Never defined.
14456 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14457 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14458 (struct sparc_gregset, struct regcache): Ditto.
14459 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14461 2004-01-12 Andrew Cagney <cagney@redhat.com>
14463 * mi/ChangeLog: Delete file. Renamed to ...
14464 * mi/ChangeLog-1999-2003: New file.
14465 * tui/ChangeLog: Delete file. Renamed to ...
14466 * tui/ChangeLog-1998-2003: New file.
14468 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14470 * sparc64nbsd-tdep.c: Include "regset.h".
14471 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14473 (fetch_core_registers): Remove function.
14474 (sparc64nbsd_core_fns): Remove variable.
14475 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14477 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14478 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14479 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14481 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14482 sparc_extract_struct_value_address.
14483 (sparc32_gdbarch_init): Set extract_struct_value_address.
14484 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14486 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14487 return_value_on_stack.
14489 * NEWS: Mention that %cs and %ss have been added to the AMD64
14492 * frame.c: Update copyright year.
14493 (get_prev_frame): Improve comment.
14495 * sparc64fbsd-tdep.c: Include "regset.h".
14496 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14498 (fetch_core_registers): Remove function.
14499 (sparc64fbsd_core_fns): Remove variable.
14500 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14502 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14503 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14504 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14506 * sparcnbsd-tdep.c: Include "regset.h".
14507 (fetch_core_registers): Remove function.
14508 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14509 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14511 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14513 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14515 * sparc-tdep.h (struct regset): Provide opaque declaration.
14516 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14517 fpregset and sizeof_fpregset members.
14518 * sparc-tdep.c (struct regset): Provide opaque declaration.
14519 (sparc_regset_from_core_section): New function.
14520 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14521 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14522 Set regset_from_core_section when appropriate.
14524 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14526 * x86-64-tdep.c (amd64_non_pod_p): New function.
14527 (amd64_classify_aggregate): Return class memory for non-POD
14528 C++ structure types.
14530 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14531 argument. Use it to reserve a register if necessary.
14532 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14533 amd64_push_arguments.
14535 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14537 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14538 register numbers in comments.
14539 * x86-64-tdep.h: Update copyright year.
14540 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14541 Adjust for addition of %cs and %ss.
14542 * amd64fbsd-nat.c: Update copyright year.
14543 (reg_offset): Add register offsets for %cs and %ss.
14544 * amd64fbsd-tdep.c: Update copyright year.
14545 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14546 (amd64fbsd_sc_reg_offset): Likewise.
14547 * x86-64-linux-nat.c: Update copyright year.
14548 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14550 * amd64nbsd-nat.c: Update copyright year.
14551 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14552 * amd64nbsd-tdep.c: Update copyright year.
14553 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14554 * x86-64-linux-tdep.c: Update copyright year.
14555 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14556 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14557 * regformats/reg-x86-64.dat: Add %cs and %ss.
14559 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14560 variables to prevent long lines. Update comments to reflect
14563 2004-01-09 David Carlton <carlton@kealia.com>
14565 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14566 * dwarf2read.c (read_namespace): Pull out name-generating code
14567 into namespace_name. Rename previous_namespace to previous_prefix
14568 and processing_current_namespace to processing_current_prefix..
14569 (namespace_name): New function.
14570 (add_partial_symbol): Substitute uses of pdi->name with
14572 * cp-support.h: Rename processing_current_namespace to
14573 processing_current_prefix.
14574 Update copyright year.
14575 * cp-namespace.c: Rename processing_current_namespace to
14576 processing_current_prefix.
14577 Update copyright year.
14579 2004-01-09 Andrew Cagney <cagney@redhat.com>
14581 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14583 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14585 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14587 (process_one_symbol): Deal with N_PATCH stabs.
14589 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14591 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14593 Update copyright year.
14595 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14597 * config/pa/tm-hppa.h: Update extern declarations for
14598 hppa32_hpux_frame_saved_pc_in_sigtramp,
14599 hppa32_hpux_frame_base_before_sigtramp, and
14600 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14602 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14604 * config/pa/tm-hppah.h: Update copyright years.
14606 2004-01-08 Andrew Cagney <cagney@redhat.com>
14608 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14609 (mips_o32_reg_struct_has_addr): Delete function.
14610 (mips_gdbarch_init): Update.
14611 (mips_extract_struct_value_address): Delete function.
14613 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14615 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14618 2004-01-07 Andrew Cagney <cagney@redhat.com>
14620 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14621 architecture's elf flags (when available).
14623 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14624 FPU to the start, check the MIPS FPU when looking for an old
14626 (set_mipsfpu_single_command): Update the architecture.
14627 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14629 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14630 (mips_mask_address_p): Add "tdep" parameter.
14631 (show_mask_address, mips_addr_bits_remove): Update.
14632 (mips_dump_tdep): Update.
14633 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14634 (MIPS_STACK_ARGSIZE): Delete macro.
14635 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14636 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14637 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14638 (mips_dump_tdep): Update.
14639 (MIPS_SAVED_REGSIZE): Delete macro.
14640 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14641 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14642 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14643 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14644 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14645 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14646 (mips_pop_frame, return_value_location): Update.
14647 (mips_n32n64_return_value, mips_dump_tdep): Update.
14649 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14652 * mips-tdep.c: Update copyright.
14653 (mips_gdbarch_init): Merge two code blocks handling the register
14654 name and number layout.
14656 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14658 * tracepoint.c (validate_actionline): Fix segv at EOF
14660 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14662 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14663 properly for static fields.
14665 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14666 Jason Molenda <jmolenda@apple.com>
14668 * disasm.c: Update copyright to include 2004.
14669 (do_mixed_source_and_assembly): For uiout asm list
14670 and tuple cleanups, initialize to null_cleanup instead of
14671 NULL and do so prior to loop. Only reset when we close off
14672 the tuple/list. Move check for whether to close off the
14673 asm tuple/list to after dump_insns call where it will be run
14674 on each loop iteration.
14676 2004-01-05 Andrew Cagney <cagney@redhat.com>
14678 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14679 should be a switch case and not a label.
14680 * mips-tdep.c (mips32_next_pc): Delete unused labels
14681 "greater_equal_branch" and "less_zero_branch".
14682 * jv-valprint.c (java_print_value_fields): Delete unused label
14685 * target.c (unpush_target): Only close a target that is in the
14688 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14690 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14691 address from [sp + 64] instead of %o2.
14693 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14694 fixes PR backtrace/1476.
14696 2004-01-05 Andrew Cagney <cagney@redhat.com>
14698 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14699 move to start of file.
14700 * i386-tdep.h (struct regcache): Add opaque declaration.
14701 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14703 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14704 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14705 * win32-nat.c (fake_create_process): Use ISO C style definition.
14706 * stabsread.c (define_symbol): Delete #ifndef
14707 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14708 stabs_argument_has_addr call, macro never defined.
14710 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14712 * op50-rom.c: Delete.
14713 * w89k-rom.c: Delete.
14714 * Makefile.in: Remove references.
14716 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14718 * x86-64-tdep.c: Update copyright year.
14719 (struct amd64_register_info): Rename from x86_64_register_info.
14720 (amd64_register_info): Rename from x86_64_register_info.
14721 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14722 (amd64_register_name): Rename from x86_64_register_name.
14723 (amd64_register_type): Rename from x86_64_register_type.
14724 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14725 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14726 (amd64_dwarf_reg_to_regnum): Rename from
14727 x86_64_dwarf_reg_to_regnum.
14728 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14729 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14730 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14731 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14732 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14733 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14734 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14735 (amd64_frame_cache): Rename from x86_64_frame_cache.
14736 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14737 (amd64_frame_prev_register): Rename from
14738 x86_64_frame_prev_register.
14739 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14740 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14741 (amd64_sigtramp_frame_cache): Rename from
14742 x86_64_sigtramp_frame_cache.
14743 (amd64_sigtramp_frame_prev_register): Rename from
14744 x86_64_sigtramp_frame_prev_register.
14745 (amd64_sigtramp_frame_unwind): Rename from
14746 x86_64_sigtramp_frame_unwind.
14747 (amd64_sigtramp_frame_sniffer): Rename from
14748 x86_64_sigtramp_frame_sniffer.
14749 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14750 (amd64_frame_base): Rename from x86_64_frame_base.
14751 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14752 (amd64_frame_align): Rename from x86_64_frame_align.
14753 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14754 (amd64_regset_from_core_section): Rename from
14755 x86_64_regset_from_core_section.
14756 (x86_64_init_abi): Update comments.
14758 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14760 * MAINTAINERS (write after approval): Add myself.
14762 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14764 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14767 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14769 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14770 such that it mentions a specific version of GCC that exhibits this
14773 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14775 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14776 structure that has a single `float' member, store it in %f1 in
14779 * sparc-sol2-nat.c: Add missing '\'.
14781 * sparc-tdep.c (sparc32_return_value): New function.
14782 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14784 (sparc32_gdbarch_init): Set return_value, don't set
14785 extract_return_value, store_return_value, use_struct_convention
14786 and return_value_on_stack.
14788 * sparc-sol2-nat.c: Add missing ')'.
14790 2004-01-03 J. Brobecker <brobecker@gnat.com>
14792 * infrun.c (handle_step_into_function): New function.
14793 (handle_inferior_event): Extract out some code into the new
14796 2004-01-03 J. Brobecker <brobecker@gnat.com>
14798 * infrun.c (handle_inferior_event): Move the declaration of
14799 real_stop_pc inside the if blocks where it is used.
14801 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14803 * sparc64-tdep.c (sparc64_16_byte_align_p)
14804 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14805 Use check_typedef to get subtypes of structures and unions.
14806 (sparc64_store_return_value): Fix calculation of the appropriate
14807 offset into VALBUF when storing a structure or union.
14808 (sparc64_return_value): New function.
14809 (sparc64_use_struct_convention): Remove function.
14810 (sparc64_init_abi): Set return_value, don't set
14811 extract_return_value, store_return_value and
14812 use_struct_convention.
14814 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14816 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14817 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14818 gdb/config/alpha/xm-alphaosf.h,
14819 gdb/config/powerpc/tm-ppcle-eabi.h,
14820 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14821 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14822 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14823 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14824 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14825 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14826 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14827 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14828 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14829 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14830 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14831 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14832 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14833 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14834 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14835 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14836 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14837 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14838 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14839 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14840 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14841 Remove lines for .cvsignore files.
14843 2004-01-03 J. Brobecker <brobecker@gnat.com>
14845 * infrun.c: Back out the previous change.
14847 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14849 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14850 sparc-*-sunos4* to the list of REMOVED configurations.
14852 * configure.tgt: Add back sparc-*-vxworks*.
14853 * remote-vxsparc.c: Remove all includes except for "defs.h",
14854 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14855 Include "sparc-tdep.h".
14856 (SPARC_R_G1): New define.
14857 (vxsparc_gregset): New variable.
14858 (ext_format_sparc): Remove extern declaration.
14859 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14860 sparc32_supply_fpregset.
14861 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14862 sparc_collect_rwindow and sparc32_collect_fpregset.
14863 * config/sparc/tm-vxworks.h: New file, based on recently removed
14865 * config/sparc/vxworks.mt: New file, based on recently removed
14868 2004-01-03 J. Brobecker <brobecker@gnat.com>
14870 * infrun.c (handle_step_into_function): New function.
14871 (handle_inferior_event): Extract out some code into the new
14874 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14876 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14877 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14878 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14879 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14880 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14881 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14882 (sparc_nat_h): New variable.
14883 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14884 (tm-sun4os4.h): Remove dependency.
14885 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14886 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14887 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14888 sparc-tdep.o): Update dependencies.
14889 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14890 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14891 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14893 * configure.host: Remove existing sparc-*-lynxos*,
14894 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14895 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14896 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14897 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14899 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14900 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14901 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14902 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14903 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14904 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14905 sparc64-*-solaris2* and sparc64-*-* triplets.
14906 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14907 "symtab.h" and "objfiles.h".
14908 (BIAS): Remove define.
14909 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14910 (X_DISP19): Remove macros.
14911 (sparc_fetch_instruction): Remove function.
14912 (struct gdbarch_tdep): Remove definition.
14913 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14914 (sparc_breakpoint_from_pc): Remove function.
14915 (struct sparc64_frame_cache): Remove definition.
14916 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14917 sparc64_unwind_pc): Remove functions.
14918 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14919 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14920 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14921 (sparc64_frame_cache): Change return type to `struct
14922 sparc_frame_cache *'. Simply call sparc_frame_cache.
14923 (sparc64_frame_this_id, sparc64_frame_prev_register,
14924 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14925 instead of `struct sparc64_frame_cache.
14926 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14927 sparc_analyze_control_transfer, sparc_software_single_step,
14928 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14929 _initialize_sparc64_tdep): Remove functions.
14930 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14931 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14933 (sparc64_supply_gregset, sparc64_collect_gregset,
14934 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14935 (sparc64_init_abi): New function.
14936 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14937 inclusion guard. Include "sparc-tdep.h".
14939 (r_tstate_offset, r_fprs_offset): New defines.
14940 (enum sparc_regnum): Remove defenition.
14941 (enum sparc64_regnum): Reformat.
14942 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14943 (sparc64_init_abi, sparc64_supply_gregset,
14944 sparc64_collect_gregset, sparc64_supply_fpregset,
14945 sparc64_collect_fpregset): New prototypes.
14946 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14947 Add extern declarations.
14948 (sparc64_sol2_init_abi): New prototype.
14949 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14950 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14952 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14954 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14956 (_initialize_sparc64fbsd_nat): Remove initialization of
14957 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14958 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14959 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14960 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14961 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14962 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14963 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14964 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14965 (sparc64fbsd_r_y_offset): Remove variables.
14966 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14967 Make static and const.
14968 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14969 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14971 (sparc64fbsd_gregset): New variable.
14972 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14973 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14974 and sparc64_supply_fpregset.
14975 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14976 (sparc64fbsd_sigtramp_frame_this_id)
14977 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14978 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14979 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14980 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14981 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14982 * sparcnbsd-tdep.c: Update copyright year. Include
14983 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14984 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14985 "value.h" and "sparcnbsd-tdep.h".
14986 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14987 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14988 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14989 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14991 (sparcnbsd_gregset): New variable.
14992 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14993 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14994 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14995 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14996 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14998 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14999 (sparc32nbsd_sigcontext_frame_this_id)
15000 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15001 (sparc32nbsd_sigcontext_frame_unwind): New variable.
15002 (sparc32nbsd_sigtramp_frame_sniffer): New function.
15003 (sparcnbsd_get_longjmp_target_32,
15004 sparcnbsd_get_longjmp_target_64): Remove functions.
15005 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15006 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15007 sparcnbsd_init_elf): Remove.
15008 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15009 (sparcnbsd_elf_init_abi): New functions.
15010 (_initialize_sparcnbsd_tdep): New prototype.
15011 (_initialize_sparnbsd_tdep): Update.
15012 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15013 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15014 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15015 * config/sparc/linux.mh: Update comment.
15016 (XM_FILE, HOST_IPC): Remove variables.
15017 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15019 * config/sparc/linux.mt: Update comment.
15020 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15021 * config/sparc/nbsd.mt: Reformat.
15022 * config/sparc/nbsd64.mh: Update comment.
15023 (NATDEPFILES): Add sparc-nat.o.
15024 * config/sparc/nbsd64.mt: Update comment.
15025 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15026 (TM_FILE): Set to tm-nbsd.h.
15027 * config/sparc/nbsdelf.mh: Update comment.
15028 (NATDEPFILES): Add sparc-nat.o.
15030 * config/sparc/nbsdaout.mh: Update comment.
15031 (NATDEPFILES): Add sparc-nat.o
15033 * config/sparc/nm-linux.h: Update copyright year. Don't include
15034 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15036 (KERNEL_U_SIZE): Remove define.
15037 (kernel_u_size): Remove prototype.
15038 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15039 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15041 (CHILD_PREPARE_TO_STORE): Remove define.
15042 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15043 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15044 sparcnbsd-nat.c: Rewrite files.
15045 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15046 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15047 sparcnbsd-tdep.h: Remove files.
15048 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15049 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15050 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15051 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15052 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15053 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15054 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15055 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15056 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15057 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15058 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15059 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15060 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15061 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15062 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15063 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15064 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15065 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15066 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15068 2004-01-02 Andrew Cagney <cagney@redhat.com>
15070 From 2003-12-18 Kazuhiro Inaoka:
15071 * configure.host: Add m32r-linux target.
15073 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15075 * top.c (print_gdb_version): Update year to 2004.
15077 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15079 * MAINTAINERS: Add myself to the write-after-approval category.
15081 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15083 From Bernardo Innocenti <bernie@develer.com>:
15084 * configure.tgt: Add uClinux target.
15086 2004-01-02 Andrew Cagney <cagney@redhat.com>
15088 * utils.c (do_my_cleanups): Make static, add forward declaration.
15089 * defs.h (do_my_cleanups): Delete declaration.
15091 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15093 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15094 bfd/ChangeLog-0203.
15096 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15098 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15099 in <machine/reg.h>.
15100 * configure, config.in: Regenerate.
15102 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15103 tui/ChangeLog-1998-2003.
15109 version-control: never