1 2004-12-18 Mark Kettenis <kettenis@gnu.org>
3 * somread.c: Include "solib-som.h".
4 (som_symfile_init, som_new_init, som_symfile_read,
5 som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
7 * Makefile.in (somread.o): Update dependencies.
9 2004-12-17 Jim Blandy <jimb@redhat.com>
11 * remote.c (fetch_register_using_p): Indentation cleanup.
13 2004-12-17 Randolph Chung <tausq@debian.org>
15 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
16 (find_stub_with_shl_get): Make static.
18 2004-12-17 Randolph Chung <tausq@debian.org>
20 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
21 (in_opd_section): New.
22 (hppa32_hpux_find_global_pointer): Rename from
23 hppa_hpux_som_find_global_pointer.
24 (hppa64_hpux_find_global_pointer): New.
26 (hppa_hpux_search_pattern): New.
27 (hppa32_hpux_search_dummy_call_sequence): New.
28 (hppa64_hpux_search_dummy_call_sequence): New.
29 (hppa_hpux_find_import_stub_for_addr): New.
30 (hppa_hpux_sr_for_addr): New.
31 (hppa_hpux_find_dummy_bpaddr): New.
32 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
33 (hppa_hpux_som_init_abi): Set find_global_pointer method to
34 hppa32_hpux_find_global_pointer instead of
35 hppa_hpux_som_find_global_pointer.
36 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
37 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
38 (read_unwind_info): Use function to initialize objfile-private data.
39 (hppa32_push_dummy_call): Don't automatically set the RP if there is
40 a push_dummy_code method.
41 (hppa64_push_dummy_call): Retrieve and set the global pointer.
42 Don't automatically set the RP if there is a push_dummy_code method.
43 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
44 dummy_call_sequence_addr members.
45 (hppa_init_objfile_priv_data): New prototype.
47 2004-12-17 Joel Brobecker <brobecker@gnat.com>
49 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
50 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
51 * solib-som.c (som_solib_create_inferior_hook): Replace stub
52 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
53 extends the search to all objfiles, not just shared libraries.
54 Remove unused variable.
56 2004-12-16 Michael Snyder <msnyder@redhat.com>
58 * MAINTAINERS: Add myself as maintainer for mn10300.
59 * NEWS: Mention mn10300.
61 2004-12-15 Kevin Buettner <kevinb@redhat.com>
63 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
66 2004-12-14 Randolph Chung <tausq@debian.org>
68 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
69 (hppa_gdbarch_init): Set in_epilogue_p method.
71 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
73 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
74 sh_default_extract_return_value.
75 (sh_extract_return_value_fpu): Rename from
76 sh3e_sh4_extract_return_value.
77 (sh_store_return_value_nofpu): Rename from
78 sh_default_store_return_value.
79 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
80 (sh_return_value_nofpu): Accomodate above changes.
81 (sh_return_value_fpu): Ditto.
83 2004-12-13 Jerome Guitton <guitton@gnat.com>
85 * stabsread.c (read_huge_number): Add support for reading octal
86 signed number in twos complement, based on the size of this
88 (read_range_type): Add support for reading octal signed bounds
89 in twos complements, based on the size of the type.
90 (read_type_number, read_cpp_abbrev, read_member_functions,
91 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
92 read_struct_type, read_array_type, read_enum_type,
93 read_sun_builtin_type, read_sun_floating_type): Update calls to
95 (read_type): Update call to read_range_type.
97 2004-12-13 Randolph Chung <tausq@debian.org>
99 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
100 solib_get_solib_by_pc method through target vector.
101 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
102 method through target vector.
104 2004-12-13 Joel Brobecker <brobecker@gnat.com>
106 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
107 parameter name to make it clear that we already have a next
108 frame. Return the sigcontext from that next frame instead
109 of the frame following it.
111 2004-12-13 Randolph Chung <tausq@debian.org>
113 * Makefile.in (pa64solib_h, somsolib_h): Delete.
114 (solib_pa64_h, solib_som_h): New.
115 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
116 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
117 (pa64solib.o, somsolib.o): Delete.
118 (solib-pa64.o, solib-som.o): New.
119 * hppa-hpux-tdep.c: Include new solib interfaces.
120 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
121 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
122 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
123 is available, use it to determine the base of unwind records.
124 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
125 * hpread.c: Replace somsolib.h with solib-som.h.
126 (hpread_process_one_debug_symbol): Use target vector to get thread
128 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
129 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
130 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
131 * config/pa/tm-hppah.h: Use new solib interface.
133 2004-12-13 Randolph Chung <tausq@debian.org>
135 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
136 sections to be trampolines too.
138 2004-12-13 Ben Elliston <bje@au.ibm.com>
140 * f-exp.y (typename): Remove unused nonterminal.
143 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
145 Committed by Andrew Cagney.
146 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
149 2004-12-12 Andrew Cagney <cagney@gnu.org>
151 * frame.c (get_prev_frame): When unwinding normal frames, check
152 that the PC isn't zero.
153 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
156 * MAINTAINERS: Reword description of what "Target Instruction Set
157 Architectures" covers.
159 2004-12-12 Mark Kettenis <kettenis@gnu.org>
161 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
163 2004-12-11 Mark Kettenis <kettenis@gnu.org>
165 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
166 (hppa_hpux_save_state_offset): New function, replacing variable
168 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
170 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
171 Use new hppa_hpux_save_state_offset function. Add special
172 handling for handling 64-bit "flags" register.
173 (hppa_hpux_store_register): Likewise.
174 (hppa_hpux_child_can_run): Tweak comment.
176 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
177 (inf_ttrace_attach): Likewise.
178 (inf_ttrace_resume_callback): New function.
179 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
180 lwps and call inf_ttrace_resume_callback instead.
181 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
183 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
185 2004-12-10 Michael Snyder <msnyder@redhat.com>
187 * mn10300-tdep.c: New file. This is a re-implementation of
188 the mn10300 target back-end using the new frame api etc.
189 * mn10300-tdep.h: New file.
190 * config/mn10300/mn10300.mt: New file (or replace old file).
191 * configure.tgt: Add mn10300 target.
193 2004-12-10 Mark Kettenis <kettenis@gnu.org>
195 * configure.host (hppa*-*-hpux11*): Remove.
196 * config/pa/hpux11.mh: Remove file.
198 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
201 2004-12-10 Kris Warkentin <kewarken@qnx.com>
203 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
204 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
205 function and nto_set_target function.
206 (struct nto_target_ops): Put comments inline with struct. Add osabi
207 sniffer hook. Redefine macros to permit testing/assignment. Remove
208 nto_ prefix from members.
209 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
210 dynamically to support arbitrary root paths. Check for basename of
211 lib in search path and then check for absolute.
212 (nto_in_dynsym_resolve_code): New function.
213 (nto_core_sniffer): New function.
214 (regset_core_fns): Register core sniffer.
215 (nto_initialize_signals): New function.
216 (_initialize_nto_tdep): Move signal initialization code to above to
217 avoid initialization race conditions.
218 (nto_set_target): New function.
219 * nto-procfs.c: Minor formatting/indenting changes.
220 (procfs_is_nto_target): New function.
221 (procfs_open): Set nto_is_nto_target.
222 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
223 initialization race conditions.
224 (procfs_create_inferior): Resume inferior after creation.
225 * i386-nto-tdep.c: Declare i386_nto_target.
226 (init_i386nto_ops): Initialize i386_nto_target instead of
228 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
229 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
230 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
233 2004-12-10 Mark Kettenis <kettenis@gnu.org>
235 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
236 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
237 (hppa_hpux_init_abi): Reformat long line.
239 2004-12-09 Mark Kettenis <kettenis@gnu.org>
241 * hppa-hpux-tdep.c: Include "regset.h".
242 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
243 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
244 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
245 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
246 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
247 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
249 (hppa_hpux_regset): New variable.
250 (hppa_hpux_regset_from_core_section): New function.
251 (hppa_hpux_init_abi): Set regset_from_core_section.
252 (hppa_hpux_core_osabi_sniffer): New function.
253 (_initialize_hppa_hpux_tdep): Register
254 hppa_hpux_core_osabi_sniffer.
255 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
256 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
258 2004-12-09 Randolph Chung <tausq@debian.org>
260 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
261 text and data sections.
262 (pa64_current_sos): Also include the dld in the list of current shared
264 (pa64_solib_get_solib_by_pc): Update comments.
265 (pa64_solib_get_text_base): New function.
266 (pa64_solib_select): Set solib_get_text_base method.
268 2004-12-08 Daniel Jacobowitz <dan@debian.org>
270 * linux-thread-db.c (BUILD_THREAD): Delete.
271 (thread_get_info_callback): Include LWP ID in thread ID.
272 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
273 (lwp_from_thread): Use the LWP ID from the thread ID.
275 2004-12-07 Randolph Chung <tausq@debian.org>
277 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
278 register for both 32- and 64-bit targets.
280 2004-12-07 Randolph Chung <tausq@debian.org>
282 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
283 are unwinding through a dummy frame.
285 2004-12-07 Randolph Chung <tausq@debian.org>
287 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
288 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
289 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
290 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
293 2004-12-07 Randolph Chung <tausq@debian.org>
295 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
296 unwinding from a frame with pc == 0.
297 (hppa_stub_frame_this_id): Likewise.
298 (hppa_stub_frame_prev_register): Only provide real values if the frame
301 2004-12-07 Randolph Chung <tausq@debian.org>
303 * solib-som.c: New file.
304 * solib-som.h: New file.
305 * solib-pa64.c: New file.
306 * solib-pa64.h: New file.
308 2004-12-07 Mark Kettenis <kettenis@gnu.org>
310 * Makefile.in (inf-ttrace.o): Fix typo.
312 2004-12-07 Jim Blandy <jimb@redhat.com>
314 * remote.c (remote_threads_info, remote_current_thread): Use
315 strtoul to parse thread ID numbers.
317 2004-12-07 Mark Kettenis <kettenis@gnu.org>
319 * inf-ttrace.c: Include "gdbthread.h".
320 (inf_ttrace_num_lwps): New variable.
321 (inf_ttrace_num_lwps_in_syscall): Renamed from
322 inf_ttrace_num_threads_in_syscall.
323 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
324 TTEVT_LWP_TERMINATE events.
325 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
327 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
328 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
329 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
331 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
332 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
333 TTEVT_LWP_TERMINATE events.
334 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
335 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
336 * Makefile.in (inf-ttrace.o): Update dependencies.
338 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
340 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
341 Make global. Remove HP-UX specific code. Use
342 frame_unwind_register_unsigned instead of
343 frame_unwind_register_signed.
344 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
345 Remove HP-UX specific code.
346 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
347 (hppa_frame_prev_register_helper): Set "flags" register to zero
348 for all unwound frames.
349 (hppa_gdbarch_init): Adjust.
350 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
351 (hppa_hpux_read_pc, hppa_hpux_write_pc)
352 (hppa_hpux_unwind_pc): New functions.
353 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
355 2004-12-07 Andreas Schwab <schwab@suse.de>
357 * main.c (long_options): Add entry for "-l".
358 (print_gdb_help): Add line for -l option.
361 2004-12-05 Randolph Chung <tausq@debian.org>
363 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
364 DEPRECATED_REGISTER_BYTE.
366 2004-12-05 Randolph Chung <tausq@debian.org>
368 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
371 2004-12-05 Mark Kettenis <kettenis@gnu.org>
373 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
374 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
376 * hppa-hpux-tdep.c: Update copyright notice and year.
378 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
380 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
381 (get_field, put_field): Assert that the format is one we can handle.
382 Simplify logic accordingly.
383 (floatformat_normalize_byteorder): New function.
384 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
385 to normalize and select modified byte order. Pass modified byte order
387 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
389 (convert_doublest_to_floatformat): Select an appropriate intermediate
390 byte order if necessary. Always convert to the final format before
393 2004-12-04 Daniel Jacobowitz <dan@debian.org>
396 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
397 Suggested by Joshua Neuheisel.
399 2004-12-03 Randolph Chung <tausq@debian.org>
401 * gdbarch.sh (instruction_nullified): Delete.
402 * gdbarch.c: Regenerate.
403 * gdbarch.h: Regenerate.
404 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
406 (hppa_unwind_pc): Likewise.
407 (hppa_instruction_nullified): Delete.
408 (hppa_gdbarch_init): Don't set instruction_nullified method.
409 * infrun.c (infwait_states): Remove infwait_nullified_state.
410 (handle_inferior_event): Remove handling of infwait_nullified_state.
411 Remove handling of nullified instructions.
413 2004-12-03 Mark Kettenis <kettenis@gnu.org>
415 * inf-ttrace.c: Include <sys/mman.h>.
416 (struct inf_ttrace_page): New.
417 (struct inf_ttrace_page_dict): New.
418 (inf_ttrace_num_threads_in_syscall)
419 (inf_ttrace_reenable_page_protections): New variables.
420 (inf_ttrace_enable_syscall_events)
421 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
422 (inf_ttrace_add_page, inf_ttrace_insert_page)
423 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
424 (inf_ttrace_enable_page_protections)
425 (inf_ttrace_disable_page_protections)
426 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
427 (inf_ttrace_can_use_hw_breakpoint)
428 (inf_ttrace_region_size_ok_for_hw_watchpoint)
429 (inf_ttrace_stopped_by_watchpoint): New functions.
430 (inf_ttrace_him): Remove unsused varaible `tts'.
431 (inf_ttrace_create_inferior): Add assertionts.
432 (inf_ttrace_mourn_inferior): Clear page dictionary.
433 (inf_ttrace_attach): Set initial event mask.
434 (inf_ttrace_detach): Reset number of threads in system call.
435 (inf_ttrace_wait): Deal with system call events.
436 (inf_ttrace_target): Initialize "hardware" watchpoint-related
437 parts of the target vector.
438 (_initialize_inf_ttrace): New prototype and function.
440 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
441 type of `gp' variable.
443 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
445 * README: Remove config.if from directory listing.
447 2004-12-01 Joel Brobecker <brobecker@gnat.com>
449 * alpha-tdep.c (alpha_register_name): Add comment.
450 (alpha_cannot_fetch_register): Exclude registers numbers which
451 are no longer used from the list of registers that can be fetched.
452 (alpha_cannot_store_register): Exclude registers numbers which
453 are no longer used from the list of registers that can be stored.
454 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
455 core_reg_mapping array.
457 2004-12-01 Joel Brobecker <brobecker@gnat.com>
459 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
460 the register value from the correct frame.
462 2004-11-30 Randolph Chung <tausq@debian.org>
464 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
465 (hppa_linux_in_dyncall): Check that we are inside the range of
466 $$dyncall, not necessarily at the first insn.
467 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
468 even if the pc does not point to the first insn of the trampoline.
470 2004-11-30 Randolph Chung <tausq@debian.org>
472 * breakpoint.c (break_at_finish_command): Delete.
473 (break_at_finish_command_1): Delete.
474 (break_at_finish_at_depth_command): Delete.
475 (break_at_finish_at_depth_command_1): Delete.
476 (tbreak_at_finish_command): Delete.
477 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
480 2004-11-30 Andrew Cagney <cagney@gnu.org>
482 * config/nm-gnu.h: Delete file.
483 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
485 * config/nm-sysv4.h: Delete file.
486 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
487 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
488 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
489 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
490 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
492 2004-11-29 Andrew Cagney <cagney@gnu.org>
494 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
495 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
496 as can-commit architecture developers.
498 2004-11-29 Mark Kettenis <kettenis@gnu.org>
500 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
501 (sparc32_skip_prologue): Skip instructions that store arguments in
502 registers into their corresponding stack slots.
504 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
506 * config/m68k/obsd.mh (NAT_FILE): Likewise.
508 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
509 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
510 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
511 sparc32nbsd_elf_init_abi. Remove duplicate code.
513 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
514 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
515 * config/sparc/nm-nbsd.h: Remove file.
516 * config/sparc/nm-nbsdaout.h: Remove file.
518 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
519 (sparc_xfer_partial): New function.
520 (sparc_target): Save value of to_xfer_partial from ptrace vector.
523 * fork-child.c (fork_inferior): Fork instead of vfork if
524 PRE_TRACE_FUN is non-null.
526 2004-11-24 Fred Fish <fnf@specifixinc.com>
528 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
529 compiler generated function calls made as part of a prologue.
531 2004-11-23 Mark Kettenis <kettenis@gnu.org>
533 * inf-ttrace.c: New file.
534 * inf-ttrace.h: New file.
535 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
536 Include "inf-ttrace.h".
537 (ss_mpsfu_high): Define to ss_tlsp if necessary.
538 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
539 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
541 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
542 instead of inf_ptrace_target.
543 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
544 * Makefile.in (inf_ttrace_h): New variable.
545 (hppa-hpux-nat.o): Update dependency.
546 (inf-ttrace.o): New dependency.
547 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
549 2004-11-23 Randolph Chung <tausq@debian.org>
551 * arch-utils.c (generic_instruction_nullified): New.
552 * arch-utils.h (generic_instruction_nullified): New.
553 * gdbarch.sh (instruction_nullified): New method.
554 * gdbarch.c: Regenerate.
555 * gdbarch.h: Regenerate.
556 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
557 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
559 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
560 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
561 static. Rewrite to work directly off the passed regcache.
562 (hppa_gdbarch_init): Set instruction_nullified method.
564 2004-11-23 Joel Brobecker <brobecker@gnat.com>
566 * sparc-tdep.c (sparc_is_unimp_insn): New function.
567 (sparc32_frame_cache): For functions where there is no debugging
568 information to help us determine whether it's a struct-return
569 function or not, fallback on checking whether the instruction
570 at the return address is an "unimp" instruction or not.
572 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
574 * MAINTAINERS: Add myself to write after approval section.
576 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
577 hpux-thread.c to suppress children from running.
578 (hppa_hpux_child_can_run): New function.
579 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
580 * hpux-thread.c: Include string.h and hppa-tdep.h.
581 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
582 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
583 (hpux_thread_store_registers): Replace deprecated_registers with
584 calls to regcache_raw_read.
585 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
587 2004-11-21 Mark Kettenis <kettenis@gnu.org>
589 * sparc64fbsd-nat.c: Update copyright year.
590 (_initialize_sparc64fbsd_nat): Construct and add target vector.
591 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
594 2004-11-21 Daniel Jacobowitz <dan@debian.org>
596 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
598 2004-11-21 Daniel Jacobowitz <dan@debian.org>
600 * linux-nat.c (my_waitpid): New function.
601 (linux_test_for_tracefork): Make more robust and verbose. Take
602 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
603 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
604 argument. Update calls to linux_test_for_tracefork.
605 (linux_enable_event_reporting, child_follow_fork)
606 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
607 (child_insert_exec_catchpoint): Update calls to
608 linux_supports_tracefork and linux_supports_tracevforkdone.
610 2004-11-21 Daniel Jacobowitz <dan@debian.org>
612 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
613 (value_subscripted_rvalue): Likewise.
614 * valops.c (search_struct_field, value_slice): Likewise.
616 2004-11-21 Mark Kettenis <kettenis@gnu.org>
618 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
619 Reorder includes a bit. Fix comment.
620 * Makefile.in (inf-ptrace.o): Update dependencies.
622 2004-11-21 Andreas Schwab <schwab@suse.de>
624 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
625 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
626 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
627 to glibc_skip_solib_resolver.
628 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
630 * Makefile.in (m68klinux-tdep.o): Update dependencies.
632 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
634 * infttrace.h (ttrace_write_reg_64): Add prototype.
635 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
637 (store_inferior_registers): Correct formatting. Replace uses of
638 deprecated_registers with calls to regcache_raw_read,
639 regcache_raw_write_part and regcache_raw_read_part.
641 2004-11-21 Mark Kettenis <kettenis@gnu.org>
643 * config/pa/hppahpux.mh: Remove file.
644 * config/pa/hpux1020.mh: Remove file.
646 2004-11-20 Andreas Schwab <schwab@suse.de>
648 * configure.host: Set host floatformat for m68k.
650 2004-11-20 Eli Zaretskii <eliz@gnu.org>
652 * config/djgpp/fnchange.lst: Resolve file-name clash between
653 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
655 2004-11-20 Mark Kettenis <kettenis@gnu.org>
657 * hppa-hpux-nat.c: New file.
658 * config/pa/hpux.mh (NATDEPFILES): New file.
659 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
660 (hppa-hpux-nat.o): New dependency.
661 * configure.host: Remove hppa*-*-hpux10.20.
662 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
664 * inf-ptrace.c: Fix coding style.
666 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
667 * infptrace.c (call_ptrace): Simply call ptrace with four
670 * dbxread.c (process_one_symbol): Fix a few coding standard
671 issues. Improve code formatting.
673 * dbxread.c: Include "gdb_string.h".
674 (record_minimal_symbol, read_ofile_symtab): Replace
675 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
676 * Makefile.in (dbxread.o): Update dependencies.
678 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
679 of bytes read for aligned LEB128 encodings.
681 2004-11-19 Mark Kettenis <kettenis@gnu.org>
683 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
684 parse_and_eval_address to u_long before converting it to a pointer
686 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
687 ps_strings from int to u_long.
688 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
689 u_long instead of CORE_ADDR.
691 2004-11-18 Mark Kettenis <kettenis@gnu.org>
693 * dbxread.c (process_one_symbol): Do not adjust address of first
694 N_SLINE stab for a function for code generated by non-GCC
697 2004-11-18 Kevin Buettner <kevinb@redhat.com>
699 * solib-null.c: New file.
701 2004-11-17 Andrew Cagney <cagney@gnu.org>
703 * MAINTAINERS: Drop MIPS and remote.
705 2004-11-15 Andrew Cagney <cagney@gnu.org>
707 * findvar.c (value_of_register): Set the frame ID.
708 * value.c (value_primitive_field): Copy the frame ID.
709 * valops.c (value_assign): Simplify lval_register case, there's
712 2004-11-14 Daniel Jacobowitz <dan@debian.org>
714 * Makefile.in (mips-linux-tdep.o): Update dependencies.
715 * mips-linux-tdep.c: Include "regcache.h".
716 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
718 2004-11-14 Daniel Jacobowitz <dan@debian.org>
720 * Makefile.in (linux-thread-db.o): Fix typo in last change.
722 2004-11-14 Daniel Jacobowitz <dan@debian.org>
724 * linux-thread-db.c: New file, renamed from thread-db.c.
725 * thread-db.c: Remove.
726 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
727 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
728 to linux-thread-db.o.
729 * config/arm/linux.mh (NATDEPFILES): Likewise.
730 * config/i386/linux.mh (NATDEPFILES): Likewise.
731 * config/i386/linux64.mh (NATDEPFILES): Likewise.
732 * config/ia64/linux.mh (NATDEPFILES): Likewise.
733 * config/m32r/linux.mh (NATDEPFILES): Likewise.
734 * config/m68k/linux.mh (NATDEPFILES): Likewise.
735 * config/mips/linux.mh (NATDEPFILES): Likewise.
736 * config/pa/linux.mh (NATDEPFILES): Likewise.
737 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
738 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
739 * config/s390/s390.mh (NATDEPFILES): Likewise.
740 * config/sparc/linux.mh (NATDEPFILES): Likewise.
741 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
743 2004-11-13 Andrew Cagney <cagney@gnu.org>
745 * config/i386/i386lynx.mh: Delete file.
746 * config/i386/i386lynx.mt: Delete file.
747 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
748 * i386ly-tdep.c: Delete.
750 * config/tm-lynx.h: Delete, inline contents ...
751 * config/rs6000/tm-rs6000ly.h: ... here.
753 * config/tm-sysv4.h: Delete file, inlining contents.
754 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
755 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
756 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
758 * regcache.h (deprecated_register_valid): Delete.
759 (deprecated_registers): Delete.
760 * regcache.c (deprecated_register_valid): Delete.
761 (deprecated_registers): Delete.
762 (deprecated_read_register_byte, _initialize_regcache)
763 (deprecated_write_register_bytes, build_regcache): Update.
764 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
766 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
767 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
769 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
770 v850-*-* under removed.
771 * configure.host: Delete ns32k-*-netbsd*.
772 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
773 ns32k-*-netbsd*, and v850*-*-*.
774 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
776 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
777 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
778 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
779 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
780 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
781 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
782 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
783 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
784 * v850-tdep.c: Delete.
786 2004-11-13 Joel Brobecker <brobecker@gnat.com>
788 * irix5-nat.c (fetch_core_registers): Replace use of
789 deprecated_registers by equivalent code.
791 2004-11-13 Joel Brobecker <brobecker@gnat.com>
793 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
794 with equivalent code.
795 (fill_fpregset): Likewise.
797 2004-11-13 Andrew Cagney <cagney@gnu.org>
799 * MAINTAINERS: Do not list "Deleted" architectures.
801 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
802 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
804 * NEWS: Mention that vxworks was deleted.
805 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
806 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
807 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
808 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
809 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
810 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
811 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
812 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
813 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
814 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
815 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
816 * remote-vxmips.c, remote-vx.c: Delete.
817 * remote-vx68.c: Delete.
818 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
819 * config/m68k/os68k.mt, ada-lang.h: Ditto.
820 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
821 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
823 2004-11-13 Eli Zaretskii <eliz@gnu.org>
825 * config/i386/xm-go32.h: Don't include fopen-bin.h.
826 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
828 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
829 branch that doesn't define CRLF_SOURCE_FILES; always use
831 (print_source_lines_base, forward_search_command)
832 (reverse_search_command): Enable the code that accepts DOS-style
833 CRLF line endings on all platforms (this removes the need for
836 * defs.h: Fix wording of the comment before FOPEN_RB.
837 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
839 * config/djgpp/fnchange.lst: Group renames for opcode directory
842 * config/djgpp/djconfig.sh: Replace file names that don't exist
843 anymore with existing files, for checking the unpacked
846 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
847 Export pre-cooked values in configure-* targets that begin with
848 "@test -f stage_last".
850 2004-11-12 Andrew Cagney <cagney@gnu.org>
852 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
853 * value.h (struct value): Update comment.
854 * valops.c (value_assign): Fold lval_reg_fame_relative into
856 * findvar.c (value_from_register, locate_var_value): Ditto.
858 2004-11-12 Randolph Chung <tausq@debian.org>
860 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
861 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
862 (write_exp_msymbol): Remove conditional check for symbols starting
863 with $. Update comments.
865 2004-11-12 Randolph Chung <tausq@debian.org>
867 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
868 so_lib_thread_start_addr.
869 * pa64solib.h (so_list): Forward declare.
870 (pa64_solib_thread_start_addr): Prototype.
871 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
872 (no_shared_libraries): Remove.
873 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
874 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
875 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
876 the elf solib handler to find the start address.
878 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
879 files to the target makefile.
880 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
881 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
882 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
884 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
885 files for symbol reading and shared library handling here.
886 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
887 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
888 without bringing in 64-bit support.
890 2004-11-12 Andrew Cagney <cagney@gnu.org>
892 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
893 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
894 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
895 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
896 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
897 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
898 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
900 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
901 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
902 (VALUE_REGNUM): Define.
903 (struct value): Delete location.regnum, rename "regno" to
905 * value.c, valops.c, valarith.c, findvar.c: Update.
907 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
908 (VALUE_BITPOS): Delete.
909 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
910 * value.c (value_type, value_offset, value_bitpos)
911 (value_bitsize): New functions. Update references.
912 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
913 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
914 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
915 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
916 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
917 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
918 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
919 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
920 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
922 2004-11-12 Andrew Cagney <cagney@gnu.org>
924 * cris-tdep.c (cris_register_offset): Delete, never called.
925 (cris_spec_reg_applicable): Delete cris_ver_sim.
926 * MAINTAINERS: List d10v as OBSOLETE.
927 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
928 FOPEN_WB et.al., defined by "fopen-bin.h".
930 2004-11-12 Randolph Chung <tausq@debian.org>
932 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
933 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
934 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
935 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
937 2004-11-12 Mark Kettenis <kettenis@jive.nl>
939 * tui/tui-io.c: Don't include "terminal.h".
940 * Makefile.in (tui-io.o): Update dependencies.
942 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
944 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
945 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
946 set_gdbarch_regset_from_core_section for core file support.
947 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
950 2004-11-11 Randolph Chung <tausq@debian.org>
952 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
953 stop_after_branch parameter and use it to determine if we should look
954 at the delay slot of the first branch insn to find prologue insns.
955 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
956 (hppa_frame_cache): Likewise.
958 2004-11-11 Randolph Chung <tausq@debian.org>
960 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
961 register so that it can be unwound from anywhere in the prologue.
963 2004-11-10 msnyder <msnyder@redhat.com>
965 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
966 must invalidate lr_reg (so we don't try to save it again).
967 Ditto for cr_offset and cr_reg.
969 2004-11-05 Jon Beniston <jon@beniston.com>
971 Committed by Andrew Cagney.
972 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
973 when an unexpected packet is received, as the target stubs
974 continually retransmit the same packet until ACKed.
976 2004-11-10 Randolph Chung <tausq@debian.org>
978 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
981 2004-11-10 Randolph Chung <tausq@debian.org>
983 * blockframe.c (inside_entry_func): Move to .....
984 * frame.c (inside_entry_func): ... here, and make static.
985 (backtrace_past_entry): New flag.
986 (get_prev_frame): Stop backtrace at the entry function if enabled
987 by flag. Update comments.
988 (_initialize_frame): Add command to set backtrace_past_entry flag.
989 * defs.h (inside_entry_func): Remove prototype.
991 2004-11-10 Mark Kettenis <kettenis@gnu.org>
993 * dwarf2read.c: Fix formatting.
995 2004-11-10 Andrew Cagney <cagney@gnu.org>
997 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
998 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
999 macros with function declarations.
1000 * value.c (coerce_ref, coerce_array, coerce_number)
1001 (coerce_enum): New functions.
1002 (value_as_long, value_as_address): Update.
1003 * ada-lang.c (ada_coerce_ref, ada_value_binop)
1004 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1005 * jv-lang.c (evaluate_subexp_java): Update.
1006 * valarith.c (value_less, value_neg, value_complement)
1007 (value_binop, value_add, value_subscript, value_x_binop)
1008 (value_logical_not, value_sub): Update.
1009 * valops.c (check_field, value_struct_elt, value_ind)
1010 (value_find_oload_method_list, value_cast, value_assign): Update.
1011 * eval.c (evaluate_subexp_standard): Update.
1013 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1015 * mips-tdep.c (mips32_relative_offset): Change return type to
1016 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1018 2004-11-10 Randolph Chung <tausq@debian.org>
1020 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1021 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1022 (hppa_fetch_pointer_argument): Likewise.
1023 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1024 deprecated_read_memory_nobpt.
1025 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1026 add_set_cmd sequence with add_setshow_boolean_cmd.
1028 2004-11-09 Andrew Cagney <cagney@gnu.org>
1030 GDB 6.3 released from GDB 6.3 branch.
1032 2004-11-09 Andrew Cagney <cagney@gnu.org>
1034 * values.c: Rename to ...
1035 * value.c: ..., new file.
1036 * Makefile.in: Update.
1038 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1040 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1043 2004-11-09 Andrew Cagney <cagney@gnu.org>
1047 * value.h (struct value): Delete field bfd_section.
1048 (VALUE_BFD_SECTION): Delete macro.
1049 (COERCE_REF): Update.
1050 (value_at, value_at_lazy): Delete asection parameter.
1051 * printcmd.c (print_formatted, x_command): Update.
1052 (do_examine): Delete asection parameter.
1053 (next_section): Delete variable.
1054 * valops.c (value_cast, value_at, value_at_lazy)
1055 (value_coerce_function, value_addr, value_ind, value_string)
1056 (find_rt_vbase_offset, value_full_object): Update.
1057 * hpacc-abi.c (hpacc_virtual_fn_field)
1058 (hpacc_value_rtti_type): Update.
1059 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1060 (gnuv3_baseclass_offset): Update.
1061 * f-valprint.c (f_val_print): Update.
1062 * c-valprint.c (c_val_print): Update.
1063 * p-valprint.c (pascal_val_print): Update.
1064 * jv-valprint.c (java_value_print): Update.
1065 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1066 * ada-lang.c (ada_value_primitive_packed_val)
1067 (ada_evaluate_subexp): Update.
1068 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1069 * expprint.c (print_subexp_standard): Update.
1070 * infcall.c (call_function_by_hand): Update.
1071 * valarith.c (value_add): Update.
1072 * eval.c (evaluate_subexp_standard): Update.
1073 * values.c (allocate_value, value_copy, value_static_field): Update.
1074 * findvar.c (read_var_value, locate_var_value): Update.
1076 2004-11-09 Andrew Cagney <cagney@gnu.org>
1078 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1079 * Makefile.in: Update all dependencies.
1081 2004-11-08 Andrew Cagney <cagney@gnu.org>
1083 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1084 (sentinel_frame_unwinder): Add the prev_pc method.
1085 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1086 available. Do not handle the sentinel-frame case.
1087 * frame-unwind.h (frame_prev_register_ftype): Define.
1088 (struct frame_unwind): Add prev_pc;
1090 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1092 * configure.in: Check for ncurses/term.h.
1093 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1094 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1095 * tui/tui.c: Don't include term.h.
1096 * configure, config.in: Rebuilt.
1098 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1100 * m68kbsd-nat.c: Include "inf-ptrace.h".
1101 (_initialize_m68kbsd_nat): Fix pasto.
1102 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1104 2004-11-08 Randolph Chung <tausq@debian.org>
1106 * infrun.c (debug_infrun): New variable.
1107 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1108 (handle_inferior_event, keep_going): Likewise.
1109 (_initialize_infrun): Register "set debug infrun" command.
1111 2004-11-08 Andreas Schwab <schwab@suse.de>
1113 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1114 PTRACE_EVENT_VFORKDONE.
1115 (child_follow_fork): Adjust.
1117 2004-11-08 Andrew Cagney <cagney@gnu.org>
1119 * README: Refer to 6.3, not 6.2, update directory listing droppng
1120 references to intl/ and mmalloc/.
1121 * PROBLEMS: Refer to 6.3 not 6.2.
1123 * PROBLEMS: Delete no-longer applicable problems.
1125 2004-11-07 Andrew Cagney <cagney@redhat.com>
1126 Daniel Jacobowitz <dan@debian.org>
1127 Roland McGrath <roland@redhat.com>
1129 * Makefile.in (symfile-mem.o): Update dependencies.
1130 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1131 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1132 * inf-ptrace.c (inf_ptrace_attach): Call
1133 observer_notify_inferior_created.
1134 * inftarg.c (child_attach): Likewise.
1135 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1136 (symbol_file_add_from_memory): Take NAME argument. Use it for
1137 the new BFD's filename.
1138 (add_symbol_file_from_memory_command): Update call to
1139 symbol_file_add_from_memory.
1140 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1141 (symbol_file_add_from_memory_wrapper): New.
1142 (_initialize_symfile_mem): Register add_vsyscall_page as an
1143 inferior_created observer.
1145 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1147 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1148 fetch_inferior_registers. Make static.
1149 (m68kbsd_store_inferior_registers): Rename from
1150 store_inferior_registers. Make static.
1151 (_initialize_m68kbsd_nat): Construct and add target vector.
1152 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1153 inftarg.o. Add inf-ptrace.o.
1154 (NAT_FILE): Set to tm-solib.h.
1155 (LOADLIBES): New variable.
1156 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1157 inftarg.o. Add inf-ptrace.o.
1158 (NAT_FILE): Delete variable.
1159 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1160 inftarg.o. Add inf-ptrace.o.
1161 (NAT_FILE): Set to tm-solib.h.
1162 * config/m68k/nm-nbsdaout.h: Remove file.
1164 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1166 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1167 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1168 (dwarf2_signal_frame_unwind): New.
1169 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1170 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1172 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1174 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1176 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1177 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1178 to only include the structure members we actually need.
1179 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1180 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1181 only include the structure members we actually need.
1182 (mipsnbsd_init_abi): Update.
1184 * mips64obsd-nat.c: Include "mips-tdep.h".
1185 (MIPS64OBSD_NUM_REGS): Remove define.
1186 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1187 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1188 floating-point registers correctly.
1189 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1191 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1193 (mips64obsd_sigframe_init): New function.
1194 (mips64obsd_sigframe): New variable.
1195 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1197 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1199 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1201 * alpha-mdebug-tdep.c: #include mdebugread.h.
1202 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1203 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1205 2004-11-05 Andrew Cagney <cagney@gnu.org>
1207 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1208 CFI and the init_reg method leave the register unspecified.
1209 Include the register name in the "Incomplete CFI data" complaint.
1210 Supress leading zeros in the address.
1212 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1214 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1215 skipping a personality routine in a CIE augmentation.
1217 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1219 * defs.h (fatal, vfatal): New function prototypes.
1220 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1222 (backtrace_command): Change to call backtrace_command_stub via
1223 catch_errors instead of calling backtrace_command_1 directly.
1224 (backtrace_full_command): Ditto.
1225 * utils.c (error_stream_1): New static function.
1226 (verror): Change to call error_stream_1 instead of error_stream.
1227 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1228 (vfatal, fatal): New functions.
1230 2004-11-05 Andrew Cagney <cagney@gnu.org>
1232 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1233 when not using selected frame.
1235 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1237 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1238 personality routine in a CIE augmentation.
1240 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1242 * stack.c (set_current_sal_from_frame): New function.
1243 (print_args_stub): Use it.
1244 (print_frame_info): Don't set sal here.
1246 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1248 * dwarf2-frame.c (read_encoded_value): Change type of third
1249 argument to `unsigned char *'. Add support for LEB128 encodings.
1251 2004-11-04 Jim Blandy <jimb@redhat.com>
1253 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1254 prevent cross-objfile references.
1255 (make_cv_type): Doc fix. Don't create cross-objfile references,
1256 even for stub types.
1257 (replace_type): Add assertion to prevent cross-objfile references.
1258 (check_typedef): Never resolve a stub type by copying over a type
1261 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1263 * Makefile.in (m32r-tdep.o): Update dependencies.
1264 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1265 ABI-specific overrides.
1267 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1269 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1270 unnecessary parallel execution bit.
1271 (m32r_memory_remove_breakpoint): Ditto.
1272 (m32r_breakpoint_from_pc): Update.
1274 2004-11-03 Randolph Chung <tausq@debian.org>
1276 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1277 frame_func_unwind to locate the unwind entry.
1278 (hppa_frame_this_id): Likewise.
1280 2004-11-03 Andrew Cagney <cagney@gnu.org>
1282 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1283 packet, obsolete configurations, end-of-life deprecated_registers.
1285 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1287 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1288 encodings as well as unsigned encodings.
1290 2004-11-02 Andrew Cagney <cagney@gnu.org>
1292 * value.h (COERCE_VARYING_ARRAY): Delete.
1293 * valops.c (value_cast, value_slice): Delete use.
1294 * valarith.c (value_subscript, value_concat): Delete use.
1296 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1298 * NEWS: GDB understands GNAT Ada.
1300 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1302 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1303 (amd64-sol2-tdep.o): Add dependencies.
1304 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1305 config/i386/sol2-64.mt: New files.
1306 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1307 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1308 (supply_gregset): Correct order of arguments to
1309 amd64_supply_native_gregset.
1310 (fill_gregset): Correct order of arguments to
1311 amd64_collect_native_gregset.
1312 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1313 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1314 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1315 for definition of NEW_PROC_API.
1316 * configure: Regenerate.
1318 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1320 * MAINTAINERS (Write After Approval): Add myself.
1322 2004-11-01 Andrew Cagney <cagney@gnu.org>
1324 * configure.tgt: Mark d10v-*-* as obsolete.
1325 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1327 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1329 * values.c (modify_field): Correct handling of bit-fields that
1330 don't fit in 32 bits. Use unsigned operations throughout and
1331 simplify the code a bit. Document preconditions.
1333 2004-10-31 Andrew Cagney <cagney@gnu.org>
1335 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1336 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1337 (in_plt_section): Delete.
1339 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1340 (mips_gdbarch_init): Do not set same.
1342 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1343 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1345 * gdbarch.sh (in_solib_call_trampoline): Delete.
1346 * gdbarch.h, gdbarch.c: Re-generate.
1348 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1349 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1350 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1351 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1352 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1354 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1356 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1357 (mipsnbsd_fetch_inferior_registers): Rename from
1358 fetch_inferior_registers. Make static.
1359 (mipsnbsd_store_inferior_registers): Rename from
1360 store_inferior_registers. Make static.
1361 (_initialize_mipsnbsd_nat): New function and prototype.
1362 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1363 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1364 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1367 2004-10-31 Andrew Cagney <cagney@gnu.org>
1369 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1370 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1371 delete corresponding unused function.
1372 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1373 in_solib_call_trampoline.
1374 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1375 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1376 * config/mips/tm-nbsd.h: Ditto.
1377 * config/arm/tm-linux.h: Ditto.
1378 * config/mips/tm-linux.h: Ditto.
1380 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1381 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1382 in_solib_call_trampoline, delete corresponding unused function.
1383 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1384 (vaxnbsd_aout_init_abi): Ditto.
1385 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1386 (sparc32nbsd_aout_init_abi): Ditto.
1387 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1388 (ppc_linux_init_abi): Ditto.
1389 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1390 (ns32knbsd_init_abi_aout): Ditto.
1391 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1392 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1393 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1394 (m68kbsd_aout_init_abi): Ditto.
1395 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1396 (i386_cygwin_init_abi): Ditto.
1397 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1398 (i386bsd_init_abi): Ditto.
1400 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1401 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1402 isn't used by this architecture.
1403 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1404 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1405 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1406 * s390-tdep.c (s390_gdbarch_init): Ditto.
1407 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1408 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1409 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1410 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1411 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1412 * amd64-tdep.c (amd64_init_abi): Ditto.
1414 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1415 in_solib_call_trampoline to its default value of
1416 generic_in_solib_call_trampoline.
1417 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1418 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1419 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1420 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1421 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1422 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1424 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1426 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1428 * config/mips/tm-mips.h: Delete file.
1429 * remote-mips.c: Delete tm-mips.h from comment.
1430 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1431 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1432 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1433 * config/mips/tm-linux.h: Don't include tm-mips.h.
1434 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1435 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1436 * config/mips/tm-wince.h: Don't include.
1438 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1439 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1440 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1441 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1443 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1444 * mdebugread.c (ecoff_relocate_efi): Delete function.
1445 * objfiles.c (objfile_relocate): Delete #ifdef
1446 MDEBUG_EFI_SYMBOL_NAME code.
1448 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1449 Andrew Cagney <cagney@gnu.org>
1451 * gdbarch.sh (single_step_through_delay): Add.
1452 * gdbarch.h, gdbarch.c: Re-generate.
1453 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1454 (mips_step_skips_delay): Delete.
1455 * mips-tdep.c (mips_single_step_through_delay): Replace
1456 mips_step_skips_delay.
1457 (mips_gdbarch_init): Set single_step_through_delay.
1458 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1460 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1462 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1463 from TRAMP_FRAME frame type.
1465 2004-10-31 Andrew Cagney <cagney@gnu.org>
1467 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1469 * mips-tdep.c (mips_ignore_helper): Delete.
1470 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1471 * infrun.c (handle_inferior_event): Delete #ifdef
1472 DEPRECATED_IGNORE_HELPER_CALL code.
1474 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1476 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1478 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1479 (fill_fpregset): Do not compile for 64-bit systems.
1480 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1481 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1482 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1484 2004-10-30 Andrew Cagney <cagney@gnu.org>
1486 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1487 (struct mdebug_extra_func_info): Define.
1488 * config/alpha/tm-alpha.h: Delete same.
1489 * config/mips/tm-mips.h: Delete same.
1490 * mdebugread.c: Delete same.
1491 * Makefile.in: Update dependencies.
1492 * mips-mdebug-tdep.c: Include "mdebugread.h".
1494 * objfiles.c: Include "mdebugread.h".
1495 * mdebugread.c: Include "mdebugread.h".
1496 (ecoff_relocate_cfi): Delete.
1497 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1498 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1499 * mdebugread.h (ecoff_relocate_efi): New file.
1500 * Makefile.in: Update dependencies.
1502 * mips-tdep.c (struct frame_extra_info): Delete.
1503 (temp_proc_desc): Delete.
1505 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1506 MIPS_EFI_SYMBOL_NAME.
1507 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1508 (struct mdebug_extra_func_info): Replace struct
1509 alpha_extra_func_info and alpha_extra_func_info_t.
1510 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1511 MIPS_EFI_SYMBOL_NAME.
1512 (struct mdebug_extra_func_info): Replace struct
1513 alpha_extra_func_info and alpha_extra_func_info_t.
1514 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1515 * mdebugread.c, alpha-mdebug-tdep.c:
1517 Suggested by Mark Kettenis.
1518 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1519 fields frame_adjust and high_addr.
1520 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1521 (non_heuristic_proc_desc): Delete references.
1523 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1524 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1525 * mips-tdep.c: Update.
1527 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1528 (MIPS_LAST_EMBED_REGNUM): Add.
1529 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1530 (LAST_EMBED_REGNUM): Delete.
1531 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1533 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1534 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1535 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1536 * mips-linux-nat.c: Update.
1538 * mips-tdep.h: Add comments on registers.
1539 (MIPS_UNUSED_REGNUM): Define.
1540 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1541 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1542 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1543 * mips-linux-nat.c, remote-mips.c: Update.
1545 * config/mips/tm-mips.h (t_insn): Delete.
1546 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1547 Replace t_insn with ULONGEST.
1549 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1551 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1552 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1553 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1554 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1555 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1556 (mipsnbsd_core_osabi_sniffer): New function.
1557 (mipsnbsd_init_abi): Set regset_from_core_section.
1558 (_initialize_mipsnbsd_tdep): Remove calls to
1559 deprecated_add_core_fns.
1560 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1561 (mipsnbsd_regset_from_core_section): New functions.
1562 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1563 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1565 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1566 Remove optimization for DEPRECATED_FP_REGNUM.
1568 2004-10-30 Andrew Cagney <cagney@gnu.org>
1570 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1571 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1572 (alpha_setup_arbitrary_frame): Delete.
1573 * mips-tdep.c (setup_arbitrary_frame): Delete.
1574 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1575 (setup_arbitrary_frame): Delete.
1576 * stack.c (parse_frame_specification_1): When specified, call
1577 create_new_frame with two parameters. Delete #ifdef
1578 SETUP_ARBITRARY_FRAME.
1580 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1581 (MIPS_INSTLEN): Delete.
1582 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1583 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1584 * remote-mips.c, mips-tdep.c: Update.
1586 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1587 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1588 * mips-tdep.c (mips_mdebug_frame_cache)
1589 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1590 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1591 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1592 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1593 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1594 (mips_gdbarch_init): Do not append mdebug sniffers.
1595 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1596 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1597 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1598 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1599 * Makefile.in: Update dependencies.
1601 * mips-tdep.h (mips_abi_regsize): Declare.
1602 * mips-tdep.c (mips_abi_regsize): Make non-static.
1604 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1605 (make_mips16_addr): Delete.
1607 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1609 * i386-sol2-nat.c: New file.
1610 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1612 (i386-sol2-nat.o): Update dependencies.
1613 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1616 2004-10-30 Andrew Cagney <cagney@gnu.org>
1618 Total breakage identified by Joel Brobecker.
1619 * mips-tdep.c (after_prologue): Delete.
1620 (mips_skip_prologue): Use skip_prologue_using_sal.
1621 (heuristic_proc_desc): Delete, unused.
1623 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1625 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1626 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1627 Cleanup coding style.
1629 2004-10-30 Andrew Cagney <cagney@gnu.org>
1631 * mips-tdep.h (mips_pc_is_mips16): Declare.
1632 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1633 non-static. Update calls.
1635 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1636 * command.h (add_setshow_enum_cmd): Declare.
1637 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1639 * mips-tdep.c (_initialize_mips_tdep): Use
1640 add_setshow_zinteger_cmd.
1642 * mips-tdep.c (mips_eabi_extract_return_value)
1643 (mips_o64_extract_return_value, mips_o64_store_return_value)
1644 (return_value_location, mips_eabi_reg_struct_has_addr)
1645 (mips_eabi_use_struct_convention)
1646 (mips_eabi_store_return_value): Delete.
1647 (mips_eabi_store_return_value): New function.
1648 (mips_eabi_return_value): New function.
1649 (mips_gdbarch_init): For O64 and EABI, delete
1650 extract_return_value, store_return_value, use_struct_convention
1651 and reg_struct_has_addr, add return_value.
1653 * mips-tdep.c (read_signed_register): Use
1654 regcache_cooked_read_signed.
1656 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1658 * mipsread.c: Cleanup coding style.
1659 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1660 (mipscoff_symfile_finish): Remove prototypes.
1662 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1664 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1665 (mips_mdebug_frame_cache, mips16_scan_prologue)
1666 (mips32_scan_prologue, mips_stub_frame_cache)
1667 (heuristic_proc_start, heuristic_proc_desc)
1668 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1669 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1670 (mips_o32_return_value, mips_o64_push_dummy_call)
1671 (mips_step_skips_delay, mips_skip_trampoline_code)
1672 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1673 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1674 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1675 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1676 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1677 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1678 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1679 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1680 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1681 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1683 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1684 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1686 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1688 * mipsnbsd-nat.c: Include "mips-tdep.h".
1689 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1690 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1692 2004-10-29 Andrew Cagney <cagney@gnu.org>
1694 * stack.c (parse_frame_specification_1): New function based on
1695 parse_frame_specification. Add message and selected_frame_p
1696 paramters. Truely always return non-NULL.
1697 (parse_frame_specification): Call parse_frame_specification_1.
1698 (frame_info): Update. Eliminate target_has_stack check.
1699 (select_frame_command): Update.
1701 2004-10-29 Andrew Cagney <cagney@gnu.org>
1703 * frame.h (get_selected_frame): Add message parameter.
1704 * frame.c (get_selected_frame): Add and use message parameter.
1705 * stack.c (current_frame_command, return_command, locals_info)
1706 (catch_info, args_info, up_silently_base, down_silently_base): Use
1707 get_selected_frame with an explicit message.
1708 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1709 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1710 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1711 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1712 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1713 * breakpoint.c: Update.
1715 2004-10-29 Andrew Cagney <cagney@gnu.org>
1717 * trad-frame.c (trad_frame_get_prev_register): Use
1718 frame_unwind_register instead of frame_register_unwind, do not
1719 recurse the register's location.
1720 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1721 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1722 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1723 * sh-tdep.c (sh_frame_prev_register): Ditto.
1724 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1725 * i386-tdep.c (i386_frame_prev_register): Ditto.
1726 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1727 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1729 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1731 * proc-events.c: Fix several coding-style issues. Consistently
1732 use #ifdef instead of #if defined().
1733 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1735 (_initialize_proc_events): New prototype.
1737 * proc-why.c: Fix several coding-style issues.
1738 (proc_prettyfprint_why): Use ARRAY_SIZE.
1740 2004-10-27 Jim Blandy <jimb@redhat.com>
1742 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1743 manner independent of the host byte order.
1745 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1747 * mips-tdep.c (id_delayed): Remove prototype.
1749 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1751 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1752 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1753 to enum with register numbers.
1754 (enum mips_insn_size): New enum.
1756 2004-10-26 Andrew Cagney <cagney@gnu.org>
1758 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1759 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1760 (mips_gdbarch_init): Update.
1761 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1763 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1764 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1765 IN_SOLIB_RETURN_TRAMPOLINE.
1766 * mips-tdep.c (mips_dump_tdep): Do not print
1767 IN_SOLIB_RETURN_TRAMPOLINE.
1768 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1769 (mips_gdbarch_init): Update.
1771 * mips-tdep.h (mips_software_single_step): Move to here ...
1772 * config/mips/tm-mips.h: ... from here.
1773 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1774 (SOFTWARE_SINGLE_STEP): Delete.
1775 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1777 2004-10-25 Andrew Cagney <cagney@gnu.org>
1779 * NEWS: Add Changes since GDB 6.3 section.
1781 2004-10-23 Andreas Schwab <schwab@suse.de>
1783 * ada-lang.c (grow_vect): Return the new array instead of
1784 expecting pointer to pointer to avoid violation of aliasing rules.
1785 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1787 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1789 * s390-tdep.c (enum pv_boolean): Remove.
1790 (pv_is_array_ref): Remove.
1791 (s390_on_stack): Remove.
1792 (S390_NUM_SPILL_SLOTS): Remove.
1793 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1794 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1795 (s390_store): Track all stores of orginal incoming registers to the
1796 stack constant offsets relative to the CFA, instead of only tracking
1797 stores into specific spill slots.
1798 (s390_load): Likewise.
1799 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1800 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1801 defined as call-saved by the ABI.
1802 (s390_push_dummy_call): Use bottom of dummy call argument save area
1803 as return value, not the top. Do not store to the called function's
1805 (s390_unwind_dummy_id): Adapt accordingly.
1807 2004-10-23 Andrew Cagney <cagney@gnu.org>
1809 * objfiles.h (struct objfile): Rename obj_private to
1810 deprecated_obj_private, sym_private to deprecated_sym_private, and
1811 sym_stab_info to deprecated_sym_stab_info.
1812 * gdb-stabs.h: Update.
1813 * elfread.c: Update.
1814 * dbxread.c: Update.
1815 * coffread.c: Update.
1816 * xcoffread.c: Update.
1817 * symfile.c: Update.
1818 * somread.c: Update.
1819 * nlmread.c: Update.
1820 * mdebugread.c: Update.
1822 * coffread.c: Update.
1824 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1826 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1827 * configure.host: Add mips64*-*-openbsd*.
1828 * configure.tgt: Add mips64*-*-openbsd*.
1829 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1831 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1832 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1834 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1836 * symtab.c (symbol_search_name): Minor reformatting.
1838 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1840 * symtab.h: Fix typo in comment.
1842 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1844 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1845 (dwarf_decode_line_header): Likewise.
1847 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1849 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1851 2004-10-19 Andrew Cagney <cagney@gnu.org>
1853 GDB 6.3 branch created.
1854 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1856 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1858 * dwarf2read.c (set_cu_language): Set language to Ada for
1859 DW_LANG_Ada83 and DW_LANG_Ada95.
1861 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1863 From Andreas Schwab <schwab@suse.de>:
1864 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1865 for xmalloc and xrealloc.
1867 2004-10-15 Andrew Cagney <cagney@gnu.org>
1869 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1870 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1871 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1872 Update dependencies.
1874 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1876 * ada-lang.c (ada_lookup_symbol): Correct comment.
1877 (ada_evaluate_subexp): Change error message for
1878 OP_FUNCALL case so as not to indicate an internal error.
1880 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1882 Committed by Paul Hilfinger.
1883 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1884 type sizes in XVE/XVU types, and emit a warning when that happens,
1885 instead of rounding up the size of the resulting type.
1886 Some minor reformatting.
1887 (ada_is_aligner_type): Do not consider a type as an aligner type
1888 if there is a corresponding XVS type as well.
1889 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1890 have several levels of pointer indirection to the array.
1892 2004-10-15 Jerome Guitton <guitton@gnat.com>
1894 Committed by Paul Hilfinger.
1895 * ada-lang.c (check_size): New function.
1896 (coerce_unspec_val_to_type): call check_size to make sure
1897 that the object size is reasonable.
1898 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1899 Implements the case when we get a reference when we evaluate
1900 the expression of one of the bounds of the slice.
1901 (ada_value_struct_elt): when a packed array field is
1902 a reference, use ada_coerce_ref to dereference it; use
1903 ada_value_ind only if it is a pointer.
1905 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1907 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1908 a bit to avoid the necessity of an advance declaration. Remove
1910 (set_reg_offset): Move implemenation up.
1911 (mips16_get_imm): Likewise.
1912 (mips16_scan_prologue): Likewise.
1913 (reset_saved_regs): Likewise.
1914 (mips32_scan_prologue): Likewise.
1916 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1918 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1919 Remove sp as a parameter, compute it internally instead. Move
1920 prologue scanning limit from heuristic_proc_desc to here.
1921 (mips16_scan_prologue): Likewise.
1922 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1923 by call to mips16_scan_prologue.
1924 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1925 by call to mips32_scan_prologue.
1926 (heuristic_proc_desc): Remove code that's no longer necessary.
1927 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1928 (mips_skip_prologue): Update calls to mips16_scan_prologue
1929 and mips32_scan_prologue.
1931 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1933 * mips-tdep.c (mips16_scan_prologue): Merge code from
1934 mips16_skip_prologue. Now return the address of the first
1935 instruction past the function prologue.
1936 (mips16_skip_prologue): Remove, no longer necessary.
1937 (mips_skip_prologue): Replace call to mips16_skip_prologue
1938 by call to mips16_scan_prologue.
1940 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1942 * mips-tdep.c (mips32_scan_prologue): Merge code from
1943 mips32_skip_prologue. Now return the address of the first
1944 instruction past the function prologue.
1945 (mips32_skip_prologue): Remove. No longer necessary.
1946 (mips16_skip_prologue): Add parameter end_pc instead of
1948 (mips_skip_prologue): Compute the upper limit for the
1949 prologue scanning. Update call to mips16_skip_prologue.
1950 Replace call to mips32_skip_prologue by call to
1951 mips32_scan_prologue.
1953 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1955 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1956 NetBSD system call stubs that store %rp in the ERP slot of the
1959 * source.c: Always define O_BINARY to 0 if not defined already.
1960 (openp): Unconditionally use O_BINARY.
1962 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1963 * event-top.c (gdb_readline2): Likewise.
1965 2004-10-14 Orjan Friberg <orjanf@axis.com>
1967 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1968 deprecated_add_core_fns which was removed by mistake.
1970 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1972 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1973 references to deprecated_registers[] with equivalent code.
1975 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1977 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1978 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1979 instead of explicit test and print statement.
1981 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1983 * sparc-nat.c: Include "inf-ptrace.h".
1984 (sparc_target): New function.
1985 * sparc-nat.h: Update copyright year.
1986 (sparc_target): New prototype.
1987 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1988 (_initialize_sparcnbsd_nat): Construct and add target vector.
1989 * sparc64nbsd-nat.c: Include "target.h".
1990 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1991 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1992 Update dependencies.
1993 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1994 inftarg.o, add inf-ptrace.o.
1995 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1996 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1997 (NAT_FILE): Set to nm-bsd.h.
1998 (LOADLIBES): New variable.
1999 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2000 infarg.o, add inf-ptrace.o.
2001 * config/sparc/nm-nbsdaout.h: Remove file.
2002 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2003 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2004 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2006 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2007 "fopen-same.h". Update comment.
2009 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2011 * i386gnu-nat.c: Include "gdb_string.h".
2012 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2013 registers when the floating-point state isn't initialized.
2014 * Makefile.in (i386gnu-nat.o): Update dependencies.
2016 2004-10-11 David Anderson <davea@sgi.com>
2018 * regcache.c (regcache_raw_read): Comment was missing "to".
2019 Extraneous ' removed.
2020 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2021 comment now describes use.
2023 2004-10-11 Orjan Friberg <orjanf@axis.com>
2025 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2026 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2027 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2028 (cris_sigtramp_frame_sniffer): New functions.
2029 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2030 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2031 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2032 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2033 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2035 (cris_version_update): Remove, replace with ...
2036 (set_cris_version): New function.
2037 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2038 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2039 (_initialize_cris_tdep): Remove CRIS mode command.
2040 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2041 cris-fpless-backtrace command.
2042 (cris_scan_prologue): Fix prologue scanning limit.
2043 (cris_register_type): Update to reflect actual registers.
2044 (cris_register_bytes_ok) Remove.
2045 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2046 Remove set_gdbarch_deprecated_register_size,
2047 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2049 2004-10-10 Andrew Cagney <cagney@gnu.org>
2051 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2054 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2056 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2058 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2060 * mips-tdep.c (mips16_scan_prologue): Renames
2061 mips16_heuristic_proc_desc. Update comment.
2062 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2063 (heuristic_proc_desc): Update calls to the 2 functions above.
2065 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2067 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2068 Update comments. Also immediately return empty cache when the start
2069 address of our function could not be found.
2070 (mips_insn32_frame_cache): Likewise.
2072 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2074 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2075 (mips_insn16_frame_cache): Pass frame cache in call to
2076 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2077 Remove code that became redundant as a consequence.
2078 (mips32_heuristic_proc_desc): No longer compute a fake
2079 procedure descriptor. Compute the full frame cache instead.
2080 Some minor comment reformatting.
2082 2004-10-10 Jim Blandy <jimb@redhat.com>
2084 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2085 reader, tracing bytecode stuff): Remove self.
2087 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2089 * sparc64-linux-tdep.c: Update copyright year. Don't include
2091 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2092 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2093 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2095 * sparc-linux-tdep.c: Update copyright year.
2096 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2097 to struct frame_info *. Use safe_frame_unwind_memory instead of
2098 deprecated_read_memory_nobpt.
2099 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2100 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2101 changed signature of sparc_linux_sigtramp_start.
2102 (sparc32_linux_pc_in_sigtramp): Remove function.
2103 (sparc32_linux_sigtramp_p): New function.
2104 (sparc32_linux_sigtramp_frame_sniffer): Use
2105 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2107 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2109 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2111 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2112 (decode_packed_array_type, value_subscript_packed)
2113 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2114 argument in call to lim_warning.
2116 * configure.in: Really disable the TUI if an enhanced curses
2117 library isn't found.
2118 * configure: Regenerate.
2120 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2122 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2123 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2124 * config/i386/nm-nbsdaout.h: Remove file.
2125 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2126 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2127 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2128 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2129 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2130 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2131 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2132 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2133 (ldd, ld_un, ld_2): Remove defines.
2134 * config/i386/nm-obsd.h: Likewise.
2136 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2138 * ada-lex.l: Remove useless rule whose right-context clause
2139 causes unreferenced static function warning for yyrealloc.
2140 (ada_flex_use): Remove the artificial reference to yyrealloc.
2142 2004-10-08 Andrew Cagney <cagney@gnu.org>
2144 * target.h (struct target_ops): Rename to_xfer_memory to
2145 deprecated_xfer_memory.
2147 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2149 * win32-nat.c: Update.
2150 * v850ice.c: Update.
2151 * uw-thread.c: Update.
2152 * thread-db.c: Update.
2153 * sol-thread.c: Update.
2155 * remote-vx.c: Update.
2156 * remote-st.c: Update.
2157 * remote-sim.c: Update.
2158 * remote-sds.c: Update.
2159 * remote-rdp.c: Update.
2160 * remote-rdi.c: Update.
2161 * remote-mips.c: Update.
2162 * remote-m32r-sdi.c: Update.
2163 * remote-e7000.c: Update.
2165 * ppc-bdm.c: Update.
2166 * nto-procfs.c: Update.
2167 * monitor.c: Update.
2168 * linux-nat.c: Update.
2169 * inftarg.c: Update.
2170 * hpux-thread.c: Update.
2171 * go32-nat.c: Update.
2172 * gnu-nat.c: Update.
2174 * corelow.c: Update.
2175 * bsd-kvm.c: Update.
2176 * aix-thread.c: Update.
2178 2004-10-08 Andrew Cagney <cagney@gnu.org>
2180 * target.c (debug_target): Move to near start of file.
2181 (target_stopped_data_address_p): Re-org logic, add casts.
2183 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2185 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2186 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2187 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2188 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2191 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2193 * target.h (to_stopped_data_address): Change prototype to
2194 take a CORE_ADDR pointer and return an int.
2195 * target.c (update_current_target): Change to_stopped_data_address
2196 to match new prototype.
2197 (debug_to_stopped_data_address): Change appropriately.
2198 * breakpoint.c (bpstat_stop_status): Change call to
2199 target_stopped_data_address to use new prototype.
2200 * frv-tdep.c (frv_have_stopped_data_address): New function.
2201 (frv_stopped_data_address): Change to new prototype and
2203 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2204 prototype and functionality.
2205 (ia64_stopped_by_watchpoint): New function.
2206 * i386-nat.c (i386_stopped_data_address): Change to new
2207 prototype and functionality.
2208 (i386_stopped_by_watchpoint): New function.
2209 * remote.c (remote_stopped_data_address): Change to new prototype
2211 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2212 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2213 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2214 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2215 new i386_stopped_by_watchpoint function.
2216 (i386_stopped_by_watchpoint): New prototype.
2217 (i386_stoppped_data_address): Change to new prototype.
2218 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2219 new ia64_stopped_by_watchpoint function.
2220 (ia64_stopped_by_watchpoint): New prototype.
2221 (ia64_stopped_data_address): Ditto.
2223 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2225 * ada-typeprint.c (ada_print_type): Use int_string for printing
2226 modulus of modular type.
2227 * ada-lang.h (ada_modulus): Change return type to unsigned.
2228 * ada-lang.c (ada_language_arch_info): Correct type of
2230 (ada_modulus): Return unsigned result.
2231 (ada_lookup_symbol): Remove user disambiguation and modify comment
2234 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2236 Committed by Paul Hilfinger.
2237 * ada-lang.c (decode_packed_array): On big-endian targets,
2238 left-justify the value if it comes with a modular type.
2240 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2242 Committed by Paul Hilfinger.
2243 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2244 (is_name_suffix): Add support for "___JM" suffixes.
2245 (ada_check_typedef): Renames ada_completed_type.
2246 Update all users of CHECK_TYPEDEF, check_typedef, and
2247 ada_complete_type to call ada_check_typedef.
2248 * ada-typeprint.c: Likewise.
2249 * ada-valprint.c: Likewise.
2251 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2253 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2255 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2257 * MAINTAINERS: Update e-mail address.
2259 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2261 From Maciej W. Rozycki <macro@mips.com>:
2262 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2263 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2265 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2267 * m32r-tdep.c (decode_prologue): Support functions written
2268 in assembler language. Recognize trap instructions as the
2270 (m32r_frame_unwind_cache): Ditto.
2271 (m32r_skip_prologue): Extend search limit. Quit analyzing
2272 prologue if pc's location is not readable.
2274 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2276 * Makefile.in (.l.c): Do conversions of names of alloc and free
2277 functions that are done for .y.c files, plus special one
2278 for yy_flex_realloc. Also, correct missing-file tests here.
2279 * ada-lex.l (malloc, free): Remove macros.
2280 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2282 (ada_flex_use): Dummy definition to remove warnings about unused
2284 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2285 to suppress warning.
2287 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2289 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2291 (sh_return_value_fpu): Ditto for CPUs with FPU.
2292 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2293 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2294 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2295 RETURN_VALUE functions.
2297 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2299 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2300 (sh_pseudo_register_write): Ditto.
2302 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2304 * sh-tdep.c (IS_MACL_STS): New define.
2306 (IS_MACL_LDS): Ditto.
2307 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2308 instructions in prologue.
2309 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2310 instructions in epilogue.
2312 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2314 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2315 (sh_sh_register_name): Add eight empty register names.
2316 (sh_sh3_register_name): Ditto.
2317 (sh_sh3e_register_name): Ditto.
2318 (sh_sh2e_register_name): Ditto.
2319 (sh_sh2a_register_name): New function, defining SH2A register set.
2320 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2322 (sh_sh_dsp_register_name): Add eight empty register names.
2323 (sh_sh3_dsp_register_name): Ditto.
2324 (sh_sh4_register_name): Ditto.
2325 (sh_sh4_nofpu_register_name): Ditto.
2326 (sh_sh4al_dsp_register_name): Ditto.
2327 (sh2a_show_regs): New function.
2328 (sh2a_nofpu_show_regs): New function.
2329 (sh_sh2a_register_type): New function.
2330 (do_bank_register_info): New function.
2331 (sh_print_pseudo_register): Call do_bank_register_info.
2332 Call sh_print_pseudo_register for valid "bank" register.
2333 (sh_sh2a_register_sim_regno): New function.
2334 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2335 Increment pseudo register count by one for all sh variants with
2336 pseudo registers to accomodate pseudo bank register.
2337 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2338 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2339 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2340 Increment pseudo register numbers.
2342 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2344 * dwarf2read.c (read_subroutine_type): Call make_function_type
2345 instead of lookup_function_type.
2347 2004-10-05 Jim Blandy <jimb@redhat.com>
2349 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2350 (Previous change missed some uses.)
2352 2004-10-05 Andrew Cagney <cagney@gnu.org>
2354 * target.h (deprecated_child_ops): Rename child_ops.
2355 * wince.c: Update copyright. Rename child_ops.
2356 * win32-nat.c: Rename child_ops.
2357 * target.c: Rename child_ops.
2358 * rs6000-nat.c: Rename child_ops.
2359 * linux-nat.c: Rename child_ops.
2360 * infttrace.c: Rename child_ops.
2361 * inftarg.c: Rename child_ops.
2362 * infptrace.c: Rename child_ops.
2363 * hppah-nat.c: Update copyright. Rename child_ops.
2364 * hpux-thread.c: Update copyright. Rename child_ops.
2366 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2368 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2370 2004-10-05 Andrew Cagney <cagney@gnu.org>
2372 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2374 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2376 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2377 (die_ref_table): Remove.
2378 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2379 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2380 the usage of this type.
2381 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2382 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2383 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2384 (dwarf2_create_include_psymtab): Update comment.
2385 (find_partial_die): Remove third argument. Remove unreachable call
2387 (dwarf2_find_containing_comp_unit): Update comments. Change one
2388 assertion to an error. Remove an unreachable error.
2389 (dwarf2_find_comp_unit): Update comments.
2390 (type_at_offset): Remove dead code.
2391 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2392 (store_in_ref_table): Add CU argument.
2393 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2394 inter-compilation-unit references.
2395 (load_full_comp_unit, process_full_comp_unit): New functions, based
2396 on psymtab_to_symtab_1.
2397 (psymtab_to_symtab_1): Use them.
2398 (dwarf2_add_dependence): New function.
2399 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2400 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2401 (partial_die_parent_scope, guess_structure_name): Update for changes
2402 to find_partial_die.
2403 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2404 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2405 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2406 (read_die_and_children): Update call to store_in_ref_table.
2407 (do_free_die_list_cleanup): Remove.
2408 (fixup_partial_die): Update for changes to find_partial_die.
2409 (read_full_die): Handle queueing absolute references.
2410 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2411 (dwarf2_attr, die_specification, die_type)
2412 (die_containing_type, dwarf2_extension): Update calls to
2414 (dump_die): Update DW_FORM_ref* handling.
2415 (dwarf2_get_ref_die_offset): Likewise.
2416 (free_one_comp_unit): Release the dies list.
2417 (dwarf2_mark_helper): New function.
2418 (dwarf2_mark): Use it.
2420 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2422 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2423 when writing to memory.
2425 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2427 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2428 (m32r_extract_struct_value_address): Delete function.
2429 (m32r_return_value): New function.
2430 (m32r_gdbarch_init): Instead of store_return_value,
2431 extract_return_value, deprecated_extract_struct_value_address
2432 and deprecated_use_struct_convention, set return_value.
2434 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2436 * dwarf2read.c (read_subrange_type): Add comment for variable
2439 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2441 * Makefile.in (.l.c): Modify rule for compatibility with recent
2442 versions of flex, and remove most command-line options.
2443 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2446 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2448 Turn on initial Ada support (mainly expression evaluation).
2450 * Makefile.in (SFILES): Remove ada-tasks.c.
2451 (HFILES_NO_SRCDIR): Add ada-lang.h.
2452 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2453 (YYOBJ): Add ada-exp.o.
2454 (rule .l.c): Generalize to not mention ada.
2455 * symtab.c: Include ada-lang.h.
2456 (symbol_natural_name, symbol_demangled_name)
2457 (symbol_search_name): Add Ada case.
2459 2004-10-01 Andrew Cagney <cagney@gnu.org>
2461 * Makefile.in (COMMON_OBS): Add inf-child.o.
2462 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2463 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2464 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2465 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2466 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2467 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2468 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2469 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2470 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2471 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2472 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2473 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2474 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2476 * target.c (xfer_using_stratum): Change return type to LONGEST.
2477 On each iteration offset, readbuf and writebuf.
2478 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2479 partial_length, and read/modify/write predicate, update comments.
2480 Pass buffer.word to ptrace write.
2482 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2484 * symfile.c (init_filename_language_table): Add extensions for
2486 * defs.h (enum language): Add language_ada.
2487 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2488 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2489 (add_symbols_from_enclosing_procs): Make a no-op for now.
2490 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2491 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2492 (find_line_in_linetable, find_next_line_in_linetable)
2493 (read_all_symtabs, is_plausible_func_for_line)
2494 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2495 (is_runtime_sym_defined, check_size): Remove declaration.
2496 (function_name_from_pc, ada_translate_error_message)
2497 (ada_lookup_minimal_symbol): Remove definition.
2498 (ada_add_block_symbols): Remove useless label.
2499 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2500 useless declaration.
2501 (ada_is_exception_sym): Likewise.
2503 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2505 Add m32r-linux support.
2506 * configure.tgt: Add m32r*-*-linux*.
2507 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2508 and m32r-linux-tdep.c.
2509 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2510 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2511 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2513 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2514 config/m32r/linux.mh, config/m32r/linux.mt,
2515 config/m32r/nm-linux.h: New files.
2517 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2519 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2520 (mips32_fetch_instruction): Remove, unused.
2522 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2524 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2525 conditions that will always be true.
2527 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2529 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2530 (vaxbsd_fetch_inferior_registers): Rename from
2531 fetch_inferior_registers. Make static.
2532 (vaxbsd_store_inferior_registers): Rename from
2533 store_inferior_registers. Make static.
2534 (_initialize_vaxbsd_nat): Construct and add target vector.
2535 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2536 inftarg.o. Add inf-child.o and inf-ptrace.o.
2537 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2538 inftarg.o. Add inf-child.o and inf-ptrace.o.
2540 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2541 inftarg.o. Add inf-child.o and inf-ptrace.o.
2543 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2545 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2546 (m88kbsd_fetch_inferior_registers): Rename from
2547 fetch_inferior_registers. Make static.
2548 (m88kbsd_store_inferior_registers): Rename from
2549 store_inferior_registers. Make static.
2550 (_initialize_m88kbsd_nat): New prototype and function.
2551 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2552 inftarg.o. Add inf-child.o and inf-ptrace.o.
2554 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2556 2004-09-30 Andrew Cagney <cagney@gnu.org>
2558 * target.c (target_xfer_partial): New function.
2559 (target_read_memory_partial, target_write_memory_partial)
2560 (default_xfer_partial, target_read_partial, target_write_partial)
2561 (xfer_using_stratum): Use.
2562 (debug_to_xfer_partial): Delete function.
2563 (setup_target_debug): Do not override to_xfer_partial.
2565 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2567 * fork-child.c: Update copyright year. Fix coding style.
2569 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2571 * defs.h (msavestring, mstrsave): Remove prototypes.
2572 * utils.c (msavestring, mstrsave): Remove functions.
2573 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2574 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2576 * source.c (find_and_open_source): Use xstrdup instead of
2579 2004-09-30 Andrew Cagney <cagney@gnu.org>
2581 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2582 (inf_ptrace_xfer_memory): Delete.
2583 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2584 (target_read_memory, target_write_memory): Use xfer_using_stratum
2585 when target_xfer_partial_p.
2586 (debug_target): Move to start of file.
2587 (target_read_memory_partial, target_write_memory_partial): Use
2588 to_xfer_partial when target_xfer_partial_p.
2590 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2591 inf_ptrace_xfer_memory with equivalent code.
2592 * inftarg.c (child_xfer_partial): When performing a write, pass
2593 writebuf to child_xfer_memory.
2595 * target.c (target_read_string): Use target_read_memory instead of
2598 2004-09-29 Andrew Cagney <cagney@gnu.org>
2600 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2601 the address of status.
2603 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2604 (kill_inferior): Inline ptrace_wait call.
2605 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2606 * inftarg.c (child_wait): Inline ptrace_wait call.
2608 * target.h (struct target_ops): Delete field to_post_wait.
2609 (target_post_wait): Delete macro.
2610 (child_post_wait): Delete declaration.
2611 * target.c (update_current_target, update_current_target)
2612 (debug_to_post_wait, setup_target_debug): Delete functions and
2614 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2615 * inftarg.c (child_post_wait): Delete.
2616 (init_child_ops): Do not set to_post_wait.
2617 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2618 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2619 * inf-child.c (inf_child_post_wait): Delete.
2620 (inf_child_target): Do not set to_post_wait.
2621 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2622 (inf_ptrace_target): Do not set to_post_wait.
2624 * wince.c (child_ops): Delete.
2625 * win32-nat.c (child_ops): Delete.
2627 * inftarg.c (inftarg_set_find_memory_regions)
2628 (inftarg_set_make_corefile_notes): Delete functions.
2629 (_initialize_linux_nat): Inline calls.
2631 * target.h (child_ops): Declare.
2632 * inftarg.c (child_ops): Move from here ...
2633 * target.c (child_ops): ... to here.
2634 * wince.c (child_ops): Delete extern declaration.
2635 * win32-nat.c (child_ops): Delete extern declaration.
2636 * linux-nat.c (child_ops): Delete extern declaration.
2637 * hpux-thread.c (child_ops): Delete extern declaration.
2639 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2641 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2643 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2645 * configure.in: Only set host_makefile_frag when building a native
2647 * configure: Regenerate.
2649 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2652 2004-09-28 Andrew Cagney <cagney@gnu.org>
2654 Problem identified by Paul Hilfinger.
2655 * Makefile.in (ada_lex_c): Define.
2656 (ada-lex.o): Delete rule.
2658 * linux-proc.c: Delete file.
2659 * Makefile.in: Update.
2660 * config/sparc/linux64.mh (NATDEPFILES):
2661 * config/sparc/linux.mh (NATDEPFILES): Update.
2662 * config/s390/s390.mh (NATDEPFILES): Update.
2663 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2664 * config/powerpc/linux.mh (NATDEPFILES): Update.
2665 * config/pa/linux.mh (NATDEPFILES): Update.
2666 * config/mips/linux.mh (NATDEPFILES): Update.
2667 * config/m68k/linux.mh (NATDEPFILES): Update.
2668 * config/ia64/linux.mh (NATDEPFILES): Update.
2669 * config/i386/linux64.mh (NATDEPFILES): Update.
2670 * config/i386/linux.mh (NATDEPFILES): Update.
2671 * config/arm/linux.mh (NATDEPFILES): Update.
2672 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2673 * linux-nat.c: Update copyright. Include <sys/param.h>,
2674 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2675 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2676 (O_LARGEFILE): Possibly define.
2677 (_initialize_linux_nat, linux_proc_pending_signals)
2678 (add_line_to_sigset, linux_proc_xfer_memory)
2679 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2680 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2681 (struct linux_corefile_thread_data)
2682 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2683 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2685 2004-09-16 Andrew Cagney <cagney@gnu.org>
2687 * lin-lwp.c: Delete file.
2688 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2689 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2690 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2691 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2692 (linux_nat_attach, detach_callback, linux_nat_detach)
2693 (resume_callback, resume_clear_callback, linux_nat_resume)
2694 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2695 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2696 (status_callback, running_callback, count_events_callback)
2697 (select_singlestep_lwp_callback, select_event_lwp_callback)
2698 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2699 (child_wait, stop_and_resume_callback, linux_nat_wait)
2700 (kill_callback, kill_wait_callback, linux_nat_kill)
2701 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2702 (linux_nat_xfer_memory, linux_nat_thread_alive)
2703 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2704 (_initialize_linux_nat): New functions.
2705 * Makefile.in: Update all dependencies.
2706 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2707 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2708 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2709 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2710 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2711 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2712 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2713 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2714 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2715 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2716 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2717 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2718 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2720 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2722 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2723 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2725 * configure.in: Don't comment out NATDEPFILES in the generated
2726 Makefile if NAT_FILE is unset.
2727 * configure: Regenerate.
2729 2004-09-27 Andrew Cagney <cagney@gnu.org>
2731 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2732 (insert_step_resume_breakpoint): Delete.
2733 (insert_step_resume_breakpoint_at_frame): New function.
2734 (insert_step_resume_breakpoint_at_sal): New function.
2735 (handle_inferior_event, step_into_function)
2736 (insert_step_resume_breakpoint): Simplify by using same.
2738 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2740 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2742 * fbsd-proc.c: Remove file.
2743 * Makefile.in (fbsd-proc.o): Remove dependency.
2745 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2748 * config/i386/nm-fbsd64.h: Remove file.
2749 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2751 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2753 * amd64-nat.h: Update copyright year.
2754 (amd64bsd_target): New prototype.
2755 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2756 (amd64bsd_target): New function.
2757 (amd64bsd_fetch_inferior_registers): Rename from
2758 fetch_inferior_registers. Make static.
2759 (amd64bsd_store_inferior_registers): Rename from
2760 store_inferior_registers. Make static.
2761 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2762 (_initialize_amd64fbsd_nat): Construct and add target vector.
2763 * amd64nbsd-nat.o: Include "target.h".
2764 (_initialize_amd64nbsd_nat): Construct and add target vector.
2765 * amd64obsd-nat.c: Include "target.h".
2766 (_initialize_amd64obsd_nat): Construct and add target vector.
2767 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2768 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2769 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2771 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2772 Remove infptrace.o and inftarg.o. Add inf-child.o and
2774 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2775 (amd64obsd-nat.o): Update dependencies.
2777 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2779 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2780 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2781 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2782 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2783 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2785 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2787 (inf_ptrace_detach): Inline detach call.
2789 * configure.in: Check for waddstr instead of mvwaddstr when
2790 searching for curses library. Check for wborder.
2791 * configure, config.in: Regenerate.
2792 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2795 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2797 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2799 Committed by Andrew Cagney.
2800 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2801 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2803 (fetch_register_using_p): Implement 'p' packet. Based on code by
2805 (remote_fetch_registers): Call fetch_register_using_p.
2806 (init_all_packet_configs, show_remote_cmd)
2807 (_initialize_remote): Add p-packet.
2809 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2811 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2812 instead of call_ptrace. Call wait directly instead of
2814 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2815 (inf_ptrace_wait): Inline ptrace_wait call.
2817 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2819 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2820 rolled back instead.
2822 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2824 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2825 the new argument order.
2827 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2829 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2830 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2831 (struct gdbarch_tdep): Remove.
2832 (struct xstormy16_frame_cache): New frame cache structure.
2833 (xstormy16_register_byte, xstormy16_register_raw_size)
2834 (xstormy16_reg_virtual_type, xstormy16_register_type)
2835 (xstormy16_push_arguments, xstormy16_push_return_address)
2836 (xstormy16_pop_frame, xstormy16_store_struct_return)
2837 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2838 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2839 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2840 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2841 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2842 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2843 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2844 (xstormy16_extract_return_value, xstormy16_store_return_value):
2845 Regcachify. Drop useless struct convention handling.
2846 (xstormy16_register_type, xstormy16_return_value)
2847 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2848 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2849 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2850 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2851 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2852 (xstormy16_unwind_dummy_id) : New functions.
2853 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2854 of xstormy16_scan_prologue.
2855 (xstormy16_frame_unwind): New frame_unwind structure.
2856 (xstormy16_frame_base): New frame_base structure.
2857 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2858 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2860 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2862 * language.c (language_gdbarch_post_init): Fix off-by one error.
2864 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2866 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2867 (struct dwarf2_offset_and_type): New.
2868 (set_die_type, reset_die_and_siblings_types, get_die_type)
2869 (offset_and_type_hash, offset_and_type_eq): New functions.
2870 (read_structure_type, read_enumeration_type, read_array_type)
2871 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2872 (read_tag_reference_type, read_tag_const_type)
2873 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2874 (read_typedef, read_base_type, read_subrange_type): Use
2877 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2879 * Makefile.in (dwarf2read.o): Update dependencies.
2880 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2881 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2883 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2884 mark, and has_form_ref_addr.
2885 (struct dwarf2_per_cu_data): New.
2886 (dwarf2_max_cache_age): New.
2887 (dwarf2_build_psymtabs_hard): Free cached compilation units
2888 after loading. Create and manage the list of compilation units.
2889 Remove unnecessary NULL initialization. Fix indentation.
2890 (psymtab_to_symtab_1): Initialize all of CU.
2891 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2892 (find_partial_die): Use dwarf2_find_containing_comp_unit
2894 (free_stack_comp_unit): Update comments. Clear the per-cu
2895 pointer. Handle aging.
2896 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2897 (age_cached_comp_units, free_one_cached_comp_unit)
2898 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2899 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2900 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2901 (show_dwarf2_cmd): New.
2902 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2903 and "maint show dwarf2 max-cache-age".
2904 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2906 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2909 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2911 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2912 and dwarf2_cu struct pointer as arguments. Change function to use
2913 obstack if provided and use dwarf2_cu to determine language-specific
2915 (partial_die_parent_scope): Change comment to include java. Use
2916 new version of typename_concat instead of obconcat.
2917 (partial_die_full_name): Use typename_concat.
2918 (read_namespace): Ditto.
2919 (read_enumeration_type): Use typename_concat instead of obconcat.
2920 (new_symbol): Ditto.
2921 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2922 (guess_structure_name): Ditto.
2923 (read_subroutine_type): Ditto.
2924 (read_structure_type): Ditto.
2925 (is_vtable_name): Add Java support.
2926 (determine_class_name): Switch to new typename_concat call.
2927 (determine_prefix): Switch to new typename_concat call.
2928 * jv-exp.y (FuncStart): New pattern.
2929 (MethodInvocation): Add support for simple function calls. Change
2930 warning message for other forms of inferior call currently not
2932 * valarith.c (value_subscript): Treat an array with upper-bound
2933 of -1 as unknown size.
2935 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2937 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2938 (lookup_partial_symtab): Use symtab_to_fullname.
2940 2004-09-19 Jim Blandy <jimb@redhat.com>
2942 * minsyms.c (lookup_minimal_symbol): Doc fix.
2944 2004-09-20 Andrew Cagney <cagney@gnu.org>
2946 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2948 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2949 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2951 * infptrace.c: Update.
2953 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2955 * symtab.c (output_source_filename): Mark first argument as const.
2956 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2957 for "info sources" output.
2959 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2961 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2962 <machine/vmparam.h>.
2963 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2964 (register_u_addr): Remove prototype.
2966 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2968 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2969 (i386bsd_fetch_inferior_registers): Rename from
2970 fetch_inferior_registers. Make static.
2971 (i386bsd_store_inferior_registers): Rename from
2972 store_inferior_registers. Make static.
2973 (i386bsd_target): New function.
2974 * i386bsd-nat.h: New file.
2975 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2977 (i386fbsd_resume): Rename from child_resume. Make static.
2978 (_initialize_i386fbsd_nat): Construct and add target vector.
2979 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2980 (_initialize_i386nbsd_nat): Construct and add target vector.
2981 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2983 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2984 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2985 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2986 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2987 (LOADLIBES): New variable.
2988 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2989 inf-ptrace.o. Remove inftarg.o.
2990 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2991 inf-ptrace.o. Remove inftarg.o.
2992 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2993 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2994 (LOADLIBES): New variable.
2995 * Makefile.in (i386bsd_nat_h): New variable.
2996 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2999 * sparc64nbsd-tdep.c: Include "objfiles.h".
3000 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3001 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3002 svr4_lp64_fetch_link_map_offsets.
3003 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
3005 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3006 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3007 svr4_lp64_fetch_link_map_offsets.
3008 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3011 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3012 * fbsd-nat.h: New file.
3013 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3014 (fbsd_nat_h): New variable.
3015 (fbsd-nat.o): New dependency.
3017 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3018 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3020 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3023 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3025 * ada-exp.y (type_int): New function to add layer of abstraction
3026 around references to expression types.
3028 (type_long_long): Ditto.
3029 (type_float): Ditto.
3030 (type_double): Ditto.
3031 (type_long_double): Ditto.
3033 (type_system_address): Ditto.
3034 (simple_exp): Use type_* functions in place of builtin_*
3037 (write_var_from_name): Ditto.
3038 (write_object_renaming): Ditto.
3039 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3041 (build_ada_types): Remove, replacing with...
3042 (ada_language_arch_info): New function to initialize primitive
3043 type vector in language_arch_info.
3044 (ada_array_length): Remove use of builtin_type_ada_int.
3045 (value_pos_atr): Ditto.
3046 (ada_evaluate_subexp): Ditto.
3047 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3048 builtin_type_ada_long_long, builtin_type_ada_char,
3049 builtin_type_ada_float, builtin_type_ada_double,
3050 builtin_type_ada_long_double, builtin_type_ada_natural,
3051 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3052 (ada_builtin_types): Remove.
3053 (ada_language_defn): Remove entries for la_builtin_type_vector and
3054 string_char_type and use ada_language_arch_info.
3055 (_initialize_ada_language): Do type-vector initialization along
3056 the lines of c-lang.c.
3057 (ada_create_fundamental_type): Break up line.
3058 (ada_dump_symtab): Remove unused function.
3059 (enum ada_primitive_types): Define.
3060 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3061 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3062 builtin_type_ada_float, builtin_type_ada_double,
3063 builtin_type_ada_long_double, builtin_type_ada_natural,
3064 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3065 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3066 (processInt): Ditto.
3067 (processReal): Ditto.
3068 (name_lookup): Ditto.
3069 * ada-typeprint.c (print_range): Use builtin_type_int, not
3070 builtin_type_ada_int.
3072 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3074 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3076 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3077 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3078 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3079 * configure.in: Improve checks for curses library by checking for
3080 mvwaddstr instead of initscr. Drop HP curses in favour of
3081 standard curses on HP-UX.
3082 * configure: Regenerated.
3084 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3086 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3087 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3088 Minor formatting changes.
3089 (empty_array): Slight rewrite for formatting.
3090 (emit_char,parse,ada_language_defn,build_ada_types,
3091 ada_is_exception_sym, _initialize_ada_language): Move
3093 (ada_dump_symtab): Remove unused definition.
3094 (ada_maybe_exception_partial_symbol): Remove unused definition.
3096 2004-09-16 Andrew Cagney <cagney@gnu.org>
3098 * inf-child.c: Include "gdb_string.h".
3099 (inf_child_core_file_to_sym_file): Delete.
3100 (inf_child_target): Set to_fetch_registers and to_store_registers.
3101 * inf-ptrace.c: Include "gdb_string.h".
3102 * Makefile.in: Update all dependencies.
3104 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3107 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3109 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3110 call to heuristic_proc_desc. Remove code that became redundant
3112 (read_next_frame_reg): Remove special case for SP_REGNUM.
3113 (set_reg_offset): Fix small typo.
3114 (reset_saved_regs): New procedure.
3115 (mips32_heuristic_proc_desc): No longer compute a fake
3116 procedure descriptor. Compute the full frame cache instead.
3117 Some minor comment reformatting.
3119 2004-09-14 Andrew Cagney <cagney@gnu.org>
3121 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3124 * thread-db.c (thread_db_new_objfile): Assume that there is a
3127 2004-09-13 Jim Blandy <jimb@redhat.com>
3129 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3130 so that its storage isn't referenced after its lifetime ends.
3132 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3133 and never assigned to. Delete it, and the 'if (use_buffer)'
3134 clauses. Delete 'raw_buffer', since it is now unused.
3136 2004-09-13 Andrew Cagney <cagney@gnu.org>
3138 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3139 * configure: Re-generate.
3140 * nlm/Makefile.in (TAGS): Update.
3141 * Makefile.in (TAGS): Update.
3142 * config/vax/nbsd.mt (TM_FILE): Update.
3143 * config/sparc/vxworks.mt (TM_FILE): Update.
3144 * config/sparc/sol2.mt (TM_FILE): Update.
3145 * config/sparc/sol2-64.mt (TM_FILE): Update.
3146 * config/sparc/obsd64.mt (TM_FILE): Update.
3147 * config/sparc/obsd.mt (TM_FILE): Update.
3148 * config/sparc/nbsd64.mt (TM_FILE): Update.
3149 * config/sparc/nbsd.mt (TM_FILE): Update.
3150 * config/sparc/linux64.mt (TM_FILE): Update.
3151 * config/sparc/linux.mt (TM_FILE): Update.
3152 * config/sparc/fbsd.mt (TM_FILE): Update.
3153 * config/sh/wince.mt (TM_FILE): Update.
3154 * config/sh/nbsd.mt (TM_FILE): Update.
3155 * config/sh/linux.mt (TM_FILE): Update.
3156 * config/sh/embed.mt (TM_FILE): Update.
3157 * config/s390/s390.mt (TM_FILE): Update.
3158 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3159 * config/rs6000/rs6000.mt (TM_FILE): Update.
3160 * config/rs6000/aix4.mt (TM_FILE): Update.
3161 * config/powerpc/vxworks.mt (TM_FILE): Update.
3162 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3163 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3164 * config/powerpc/obsd.mt (TM_FILE): Update.
3165 * config/powerpc/nbsd.mt (TM_FILE): Update.
3166 * config/powerpc/linux.mt (TM_FILE): Update.
3167 * config/powerpc/aix.mt (TM_FILE): Update.
3168 * config/pa/obsd.mt (TM_FILE): Update.
3169 * config/pa/linux.mt (TM_FILE): Update.
3170 * config/pa/hppahpux.mt (TM_FILE): Update.
3171 * config/pa/hppa64.mt (TM_FILE): Update.
3172 * config/pa/hppa.mt (TM_FILE): Update.
3173 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3174 * config/mips/wince.mt (TM_FILE): Update.
3175 * config/mips/vxmips.mt (TM_FILE): Update.
3176 * config/mips/nbsd.mt (TM_FILE): Update.
3177 * config/mips/linux.mt (TM_FILE): Update.
3178 * config/mips/irix6.mt (TM_FILE): Update.
3179 * config/mips/irix5.mt (TM_FILE): Update.
3180 * config/mips/embed.mt (TM_FILE): Update.
3181 * config/m68k/vxworks68.mt (TM_FILE): Update.
3182 * config/m68k/st2000.mt (TM_FILE): Update.
3183 * config/m68k/os68k.mt (TM_FILE): Update.
3184 * config/m68k/obsd.mt (TM_FILE): Update.
3185 * config/m68k/nbsd.mt (TM_FILE): Update.
3186 * config/m68k/monitor.mt (TM_FILE): Update.
3187 * config/m68k/linux.mt (TM_FILE): Update.
3188 * config/m68k/cisco.mt (TM_FILE): Update.
3189 * config/ia64/linux.mt (TM_FILE): Update.
3190 * config/ia64/aix.mt (TM_FILE): Update.
3191 * config/ia64/ia64.mt (TM_FILE): Update.
3192 * config/i386/vxworks.mt (TM_FILE): Update.
3193 * config/i386/obsd64.mt (TM_FILE): Update.
3194 * config/i386/obsd.mt (TM_FILE): Update.
3195 * config/i386/nto.mt (TM_FILE): Update.
3196 * config/i386/nbsd64.mt (TM_FILE): Update.
3197 * config/i386/nbsd.mt (TM_FILE): Update.
3198 * config/i386/linux64.mt (TM_FILE): Update.
3199 * config/i386/linux.mt (TM_FILE): Update.
3200 * config/i386/i386sol2.mt (TM_FILE): Update.
3201 * config/i386/i386lynx.mt (TM_FILE): Update.
3202 * config/i386/fbsd64.mt (TM_FILE): Update.
3203 * config/i386/fbsd.mt (TM_FILE): Update.
3204 * config/i386/cygwin.mt (TM_FILE): Update.
3205 * config/h8300/h8300.mt (TM_FILE): Update.
3206 * config/frv/frv.mt (TM_FILE): Update.
3207 * config/cris/cris.mt (TM_FILE): Update.
3208 * config/arm/wince.mt (TM_FILE): Update.
3209 * config/arm/nbsd.mt (TM_FILE): Update.
3210 * config/arm/linux.mt (TM_FILE): Update.
3211 * config/arm/embed.mt (TM_FILE): Update.
3212 * config/alpha/nbsd.mt (TM_FILE): Update.
3213 * config/alpha/fbsd.mt (TM_FILE): Update.
3214 * config/alpha/alpha.mt (TM_FILE): Update.
3215 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3216 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3218 Eliminate event_loop_p, always has the value 1.
3219 * defs.h (event_loop_p): Delete macro.
3220 * breakpoint.c (until_break_command): Simplify.
3221 * utils.c (prompt_for_continue): Simplify.
3222 * tracepoint.c (read_actions): Simplify.
3223 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3224 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3225 (set_prompt, init_main): Simplify.
3226 (init_signals, disconnect): Delete, unused.
3227 * remote.c (remote_async_resume)
3228 (extended_remote_async_create_inferior): Simplify.
3229 * mi/mi-interp.c (mi_input): Delete, unused.
3230 (mi_interpreter_resume, mi_command_loop): Simplify.
3231 * interps.c (current_interp_command_loop): Simplify.
3232 * infrun.c (proceed): Simplify.
3233 * infcmd.c (run_command, continue_command, step_1, jump_command)
3234 (until_command, advance_command, finish_command)
3235 (interrupt_target_command): Simplify.
3236 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3238 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3239 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3240 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3241 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3242 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3243 * mips-tdep.c (mips_dump_tdep): Do not print same.
3245 2004-09-12 Andrew Cagney <cagney@gnu.org>
3247 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3249 * Makefile.in (valprint.o): Delete explict rule.
3251 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3252 reported by Dave Anderson.
3254 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3256 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3258 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3259 Andrew Cagney <cagney@gnu.org>
3261 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3262 (mi_cmd_data_list_register_values)
3263 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3264 the register number computation.
3266 2004-09-12 Andrew Cagney <cagney@gnu.org>
3268 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3269 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3270 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3271 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3273 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3274 inf-ptrace.o and inf-child.o.
3275 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3276 * Makefile.in: Update dependencies.
3278 2004-09-11 Andrew Cagney <cagney@gnu.org>
3280 * language.c (hex_string, hex_string_custom): Move from here ...
3281 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3282 (CELLSIZE): Increase to 50.
3283 * language.h (hex_string, hex_string_custom): Move from here ...
3284 * defs.h: ... to here.
3285 * Makefile.in: Update all dependencies.
3287 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3289 * language.c (local_hex_format_custom): Remove.
3290 (local_hex_string): Rename to hex_string, use C format, and move to
3292 (local_hex_string_custom): Rename to hex_string_custom and change
3293 interface. Now uses C format. Move to utils.c
3294 (local_octal_format_custom): Remove.
3295 (local_decimal_format_custom): Remove.
3296 (unknown_language_defn): Remove language-specific number
3298 (auto_language_defn): Ditto.
3299 (local_language_defn): Ditto.
3300 * language.h (struct language_format_info): Delete declaration.
3301 (struct language_defn): Remove language_format_info fields
3302 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3303 (local_binary_format): Remove macro.
3304 (local_binary_format_prefix): Remove macro.
3305 (local_binary_format_specifier): Remove macro.
3306 (local_binary_format_suffix): Remove macro.
3307 (local_octal_format): Remove macro.
3308 (local_octal_format_prefix): Remove macro.
3309 (local_octal_format_specifier): Remove macro.
3310 (local_octal_format_suffix): Remove macro.
3311 (local_decimal_format): Remove macro.
3312 (local_decimal_format_prefix): Remove macro.
3313 (local_decimal_format_specifier): Remove macro.
3314 (local_decimal_format_suffix): Remove macro.
3315 (local_hex_format): Remove macro.
3316 (local_hex_format_prefix): Remove macro.
3317 (local_hex_format_specifier): Remove macro.
3318 (local_hex_format_suffix): Remove macro.
3319 (local_decimal_format_custom): Remove.
3320 (local_octal_format_custom): Remove.
3321 (local_hex_format_custom): Remove.
3322 (local_hex_string): Rename to hex_string and move to defs.h.
3323 (local_hex_string_custom): Rename to hex_string_custom, change
3324 interface, and move to defs.h.
3325 * utils.c: (int_string): New function.
3326 (hex_string): New function (from language.c).
3327 (hex_string_custom): New function (from language.c).
3328 (octal2str): New function.
3329 (decimal2str): Add width parameter.
3330 (paddr_u): Use new decimal2str interface.
3332 * defs.h (hex_string): Declare.
3333 (hex_string_custom): Declare.
3334 (int_string): Declare.
3335 * printcmd.c (print_scalar_formatted): Remove localized binary
3337 * valprint.c (print_longest): Use int_string.
3338 (print_floating): Use C hex format.
3339 (print_hex_chars): Ditto.
3340 (print_binary_chars): Remove language-specific formatting.
3341 (print_octal_chars): Use C octal format.
3342 (print_decimal_chars): Delocalize format.
3343 (print_decimal): Remove.
3344 * ada-lang.c (ada_language_defn): Remove language-specific number
3346 * p-lang.c (pascal_language_defn): Ditto.
3347 * c-lang.c (c_language_defn): Ditto.
3348 (cplus_language_defn): Ditto.
3349 (asm_language_defn): Ditto.
3350 (minimal_language_defn): Ditto.
3351 * f-lang.c (f_language_defn): Ditto.
3352 * jv-lang.c (java_language_defn): Ditto.
3353 * m2-lang.c (m2_language_defn): Ditto.
3354 * scm-lang.c (scm_language_defn): Ditto.
3355 * objc-lang.c (objc_language_defn): Ditto.
3356 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3358 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3359 * ui-out.c (ui_out_field_core_addr): Ditto.
3360 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3361 * exec.c (print_section_info): Ditto.
3362 * i387-tdep.c (print_i387_status_word): Ditto.
3363 (print_i387_control_word): Ditto.
3364 (i387_print_float_info): Ditto.
3365 * maint.c (maint_print_section_info): Ditto.
3366 * solib.c (info_sharedlibrary_command): Ditto.
3367 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3368 * symtab.c (print_msymbol_info): Ditto.
3369 * tracepoint.c (tracepoints_info): Ditto.
3370 * solib-frv.c (lm_base): Ditto.
3371 (frv_current_sos): Ditto.
3372 (enable_break2): Ditto.
3373 (enable_break): Ditto.
3374 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3375 (process_one_symbol): Ditto.
3376 * infcmd.c (program_info): Ditto.
3377 * mdebugread.c (parse_partial_symbols): Ditto.
3378 * symfile.c (add_symbol_file_command): Ditto.
3379 * cli/cli-cmds.c (edit_command): Ditto.
3380 (list_command): Ditto.
3381 * infcall.c (call_function_by_hand): Ditto.
3382 * remote-vx.c (vx_run_files_info): Ditto.
3387 * aix-thread.c (pdc_symbol_addrs): Ditto.
3388 (pdc_read_regs): Ditto.
3389 (pdc_write_regs): Ditto.
3390 (pdc_read_data): Ditto.
3391 (pdc_write_data): Ditto.
3392 * d10v-tdep.c (display_trace): Ditto.
3393 * rs6000-nat.c (find_toc_address): Ditto.
3394 * aix-thread.c: Don't include language.h.
3395 * buildsym.c: Ditto.
3397 * mdebugread.c: Ditto.
3398 * rs6000-nat.c: Ditto.
3399 * buildsym.c (make_blockvector): Use renamed hex_string.
3401 2004-09-10 Jason Molenda (jmolenda@apple.com)
3403 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3404 chars after 'if' or 'while' commands in user-defined commands.
3406 2004-09-08 Jim Blandy <jimb@redhat.com>
3408 Fix bug reported and analyzed by Olivier Crete:
3409 * symfile.c (copy_section_addr_info): New function.
3410 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3411 original set of address arguments, instead of handwritten code
3412 that uses one length to allocate and a different length to
3413 initialize. Use make_cleanup_free_section_addr_info.
3414 * symfile.h (copy_section_addr_info): New declaration.
3415 * utils.c: #include "symfile.h".
3416 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3418 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3419 * Makefile.in (utils.o): Update dependencies.
3421 2004-09-08 Andrew Cagney <cagney@gnu.org>
3423 * thread-db.c (keep_thread_db): Delete.
3424 (thread_db_new_objfile, thread_db_create_inferior)
3425 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3427 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3429 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3430 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3431 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3432 (i386_frameless_signal_p): Remove prototype.
3433 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3434 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3436 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3437 instead of FP0_REGNUM.
3438 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3439 of FP0_REGNUM and FPC_REGNUM.
3441 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3442 (sunos_solib_create_inferior_hook): Don't call
3443 sunos_relocate_main_executable.
3445 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3446 solib_svr4_fetch_link_map_offsets to
3447 svr4_ilp32_fetch_link_map_offsets.
3448 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3449 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3450 svr4_ilp32_fetch_link_map_offsets.
3451 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3453 2004-09-07 Jim Blandy <jimb@redhat.com>
3455 * frame.h (frame_register): Doc fix.
3457 2004-09-07 Andrew Cagney <cagney@gnu.org>
3459 * vx-share/wait.h: Delete #ifdef USG.
3460 * utils.c (request_quit): Ditto.
3461 * tui/tui.c (tui_reset): Ditto.
3463 * remote-sds.c: Ditto.
3464 * remote-rdi.c: Ditto.
3465 * mdebugread.c: Ditto.
3466 * m68klinux-nat.c: Ditto.
3467 * infttrace.c: Ditto.
3468 * infptrace.c: Ditto.
3469 * i386v-nat.c: Ditto.
3472 * core-aout.c: Ditto.
3474 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3476 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3477 heuristic_proc_desc.
3478 (mips_insn32_frame_cache): Likewise.
3480 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3482 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3483 left behind by error.
3485 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3487 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3488 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3490 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3492 * config/rs6000/xm-aix4.h: Remove this file.
3493 * config/rs6000/aix4.mh (XM_FILE): Delete.
3495 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3497 * config/rs6000/xm-rs6000.h: Remove this file.
3498 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3500 2004-09-03 Andrew Cagney <cagney@gnu.org>
3502 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3503 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3506 * mips-tdep.c (temp_saved_regs): Delete.
3507 (set_reg_offset): Replace saved_regs parameter with this_cache.
3508 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3509 (mips32_heuristic_proc_desc): Add this_cache parameter.
3510 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3511 (after_prologue): Pass a NULL this_cache.
3513 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3514 non-kernel trap prologues.
3516 * mips-tdep.c (find_proc_desc): Delete function.
3517 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3519 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3520 mips_insn32_frame_cache.
3522 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3523 Simplify as NEXT_FRAME is NULL.
3524 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3526 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3528 (mips_skip_prologue): Update.
3530 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3531 "cur_frame" parameter.
3532 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3533 (mips_insn32_frame_cache, find_proc_desc): Update
3535 * config/vax/nm-obsd.h: Delete file.
3536 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3537 * config/vax/nm-nbsd.h: Delete file.
3538 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3539 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3540 * config/sh/nm-nbsd.h: Delete file.
3541 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3542 * config/rs6000/nm-rs6000ly.h: Delete file.
3543 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3544 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3545 * config/powerpc/nm-obsd.h: Delete file.
3546 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3547 * config/powerpc/nm-nbsd.h: Delete file.
3548 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3549 * config/pa/nm-obsd.h: Delete file.
3550 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3551 * config/mips/nm-nbsd.h: Delete file.
3552 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3553 * config/m88k/nm-obsd.h: Delete file.
3554 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3555 * config/m68k/nm-nbsd.h: Delete file.
3556 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3557 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3558 * config/i386/nm-nbsd.h: Delete file.
3559 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3560 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3561 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3562 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3563 * config/i386/nm-i386lynx.h: Delete file.
3564 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3565 * config/arm/nm-nbsd.h: Delete file.
3566 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3567 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3569 * config/i386/tm-fbsd.h: Delete file.
3570 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3571 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3573 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3574 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3575 * config/rs6000/aix4.mt (TM_FILE): Set to
3576 config/rs6000/tm-rs6000.h.
3577 * config/powerpc/tm-ppc-aix.h: Delete file.
3578 * config/powerpc/aix.mt (TM_FILE): Set to
3579 config/rs6000/tm-rs6000.h.
3580 * config/m68k/tm-linux.h: Delete file.
3581 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3582 * config/i386/tm-linux64.h: Delete file.
3583 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3584 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3586 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3587 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3588 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3589 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3590 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3591 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3592 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3593 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3594 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3596 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3599 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3601 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3602 Minor reformatting. Some code factoring.
3604 2004-09-02 Andrew Cagney <cagney@gnu.org>
3606 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3607 * config/vax/tm-nbsd.h: Delete file.
3608 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3609 * config/sparc/tm-vxworks.h: Delete file.
3610 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3611 * config/sparc/tm-nbsd.h: Delete file.
3612 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3613 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3614 * config/sparc/tm-linux.h: Delete file.
3615 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3616 * config/s390/tm-linux.h: Delete file.
3617 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3618 * config/pa/tm-bsd.h: Delete file.
3619 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3620 * config/m68k/tm-obsd.h: Delete file.
3621 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3622 * config/m68k/tm-nbsd.h: Delete file.
3623 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3624 * config/i386/tm-vxworks.h: Delete file.
3625 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3626 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3627 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3628 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3629 * config/i386/tm-nbsd.h: Delete file.
3630 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3631 * config/i386/tm-i386lynx.h: Delete file.
3632 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3633 * config/cris/tm-cris.h: Delete file.
3635 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3636 * configure: Re-generate.
3637 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3638 * config/arm/tm-nbsd.h: Delete file.
3640 * config/powerpc/tm-ppcle-sim.h: Delete.
3641 * config/powerpc/tm-ppcle-eabi.h: Delete.
3642 * config/powerpc/tm-nbsd.h: Delete.
3643 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3644 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3647 * config/i386/nto.mh (NAT_FILE): Delete.
3648 * config/i386/nm-nto.h: Delete.
3650 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3651 * config/m68k/tm-os68k.h: Ditto.
3652 * config/m68k/tm-monitor.h: Ditto.
3653 * config/m68k/tm-cisco.h: Ditto.
3654 * config/m68k/st2000.mt (TM_FILE): Delete.
3655 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3656 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3657 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3658 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3660 * config/m68k/tm-st2000.h: Delete.
3661 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3662 * config/sparc/fbsd.mt (TM_FILE): Delete.
3663 * config/sparc/tm-fbsd.h: Delete.
3665 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3666 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3667 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3669 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3670 GDB_TM_FILE and GDB_XM_FILE.
3671 * gdbarch.c: Re-generate.
3672 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3673 quotes in macro definition.
3674 * configure.in: Re-generate.
3676 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3677 validating architecture methods.
3678 * gdbarch.c: Re-generate.
3680 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3681 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3682 GDB_MULTI_ARCH_PARTIAL.
3683 * gdbarch.h: Re-generate.
3685 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3686 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3687 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3688 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3689 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3690 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3691 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3692 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3693 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3694 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3695 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3696 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3698 2004-09-01 Andrew Cagney <cagney@gnu.org>
3700 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3701 and main_func_highpc.
3702 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3703 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3704 * nlmread.c (nlm_symfile_read): Update.
3706 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3708 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3709 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3710 (find_proc_desc): Remove dead code.
3712 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3714 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3716 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3718 * observer.sh: Add struct so_list declaration.
3719 * Makefile.in: Add dependencies on observer.h for solib.c and
3721 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3723 (_initialize_breakpoint): Register
3724 disable_breakpoints_in_unloaded_shlib as an observer of the
3725 "solib unloaded" observation event.
3726 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3727 call decode_line_1 so unfound breakpoint errors are silent.
3728 * solib.c (update_solib_list): When a solib is discovered to have
3729 been unloaded by the program, notify all observers of the
3730 "solib unloaded" observation event.
3732 2004-09-01 Andrew Cagney <cagney@gnu.org>
3734 * frame.c: Include "objfiles.h".
3735 (inside_main_func): New function.
3736 (get_prev_frame): Use new inside_main_func.
3737 * Makefile.in (frame.o): Update dependencies.
3738 * defs.h (inside_main_func): Delete declaration.
3739 * blockframe.c (inside_main_func): Delete function.
3741 2004-08-31 Jim Blandy <jimb@redhat.com>
3743 * dwarf2read.c (is_vtable_name): New function, based on logic from
3744 read_structure_type, but passing the correct length to strncmp,
3745 and using 'sizeof' instead of 'strlen'.
3746 (read_structure_type): Call it.
3748 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3750 * config/powerpc/aix.mh: Add comment.
3752 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3754 * MAINTAINERS: Add self to Write-After-Approval.
3756 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3758 * MAINTAINERS: Add self to Write-After-Approval.
3760 2004-08-30 Andrew Cagney <cagney@gnu.org>
3762 Fix PR breakpoints/1757.
3763 * infrun.c (struct execution_control_state): Replace
3764 remove_breakpoints_on_following_step with
3765 step_after_step_resume_breakpoint.
3766 (init_execution_control_state): Update.
3767 (handle_inferior_event): For signals, when stepping off a
3768 breakpoint, set step_after_step_resume_breakpoint. When
3769 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3770 (keep_going): Delete code handling
3771 remove_breakpoints_on_following_step.
3773 2004-08-29 David Lecomber <david@streamline-computing.com>
3776 * language.h (enum array_ordering): New enum.
3777 * language.h (struct language_defn): New la_array_ordering
3779 * language.c (unknown_language_defn, auto_language_defn)
3780 (local_language_defn): Ditto.
3781 * ada-lang.c (ada_language_defn): Ditto.
3782 * c-lang.c (c_language_defn, cplus_language_defn)
3783 (asm_language_defn, minimal_language_defn): Ditto.
3784 * f-lang.c (f_language_defn): Ditto.
3785 * jv-lang.c (java_language_defn): Ditto.
3786 * m2-lang.c (f_language_defn): Ditto.
3787 * objc-lang.c (objc_language_defn): Ditto.
3788 * p-lang.c (pascal_language_defn): Ditto.
3789 * scm-lang.c (scm_language_defn): Ditto.
3790 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3791 oriented large to small in type structure.
3792 * dwarf2read.c (read_array_order): New function.
3793 (read_array_type): Use read_array_order to check row/column
3796 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3798 * target.c (target_resize_to_sections): Check
3799 current_target.to_sections for an old value when updating.
3801 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3803 * procfs.c (dbx_link_bpt_addr): New static global variable.
3804 (dbx_link_shadow_contents): New static global variable.
3805 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3806 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3808 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3809 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3811 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3812 after the inferior has been forked.
3813 (remove_dbx_link_breakpoint): New function.
3814 (dbx_link_addr): New function.
3815 (insert_dbx_link_bpt_in_file): New function.
3816 (insert_dbx_link_bpt_in_region): New function.
3817 (insert_dbx_link_breakpoint): New function.
3818 (proc_trace_syscalls_1): New function, extracted from
3819 proc_trace_syscalls.
3820 (proc_trace_syscalls): Replace extract code by call to
3821 proc_trace_syscalls_1.
3822 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3825 2004-08-25 Jim Blandy <jimb@redhat.com>
3827 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3829 2004-08-25 Andrew Cagney <cagney@gnu.org>
3831 * infrun.c (struct execution_control_state): Delete field
3832 "stepping_through_sigtramp".
3833 (init_execution_control_state): Do not set same.
3834 (context_switch): Do not pass same to save_infrun_state and
3836 * gdbthread.h (struct thread_info): Delete field
3837 stepping_through_sigtramp.
3838 (save_infrun_state, load_infrun_state): Delete parameter
3839 stepping_through_sigtramp.
3840 * thread.c (load_infrun_state, save_infrun_state): Update.
3842 * infrun.c: Re-indent. Move expression operators to the beginning
3843 of the line. Remove long disabled #if 0 code.
3845 2004-08-24 Andrew Cagney <cagney@gnu.org>
3847 * doublest.h (floatformat_ieee_quad): Rename
3848 floatformat_ia64_quad.
3849 * doublest.c (floatformat_ieee_quad): Rename
3850 floatformat_ia64_quad.
3851 (_initialize_doublest): Update.
3853 2004-08-24 Jim Blandy <jimb@redhat.com>
3855 * dwarf2expr.h (struct dwarf_expr_context): New members
3856 'num_pieces' and 'pieces', for returning the result of an
3857 expression that uses DW_OP_piece.
3858 (struct dwarf_expr_piece): New struct type.
3859 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3861 (free_dwarf_expr_context): Free pieces, if any.
3862 (add_piece): New function.
3863 (execute_stack_op): Implement DW_OP_piece.
3864 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3865 expression is a list of pieces, print an error message.
3866 (dwarf2_loc_desc_needs_frame): If the expression yields
3867 pieces, and any piece is in a register, then we need a frame.
3869 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3870 the stack until we've decided what sort of result the evaluation
3871 has produced. Use separate variables, with more specific names.
3873 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3875 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3876 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3877 (arm_netbsd_init_abi_common): Register them.
3879 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3881 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3883 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3884 safe_frame_unwind_memory instead of target_read_memory.
3886 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3888 (fetch_register, store_register): Remove prototypes.
3889 (child_resume): Reorganize code and comments such that it is
3890 grouped a bit more logically.
3891 (attach): Explicitly compare errno against 0.
3892 (detach): Likewise. Use perror_with_name instead of
3894 * Makefile.in (infptrace.o): Update dependencies.
3896 * ia64-linux-nat.c: Update copyright year.
3897 (fetch_debug_register, store_debug_register)
3898 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3900 * config/ia64/nm-linux.h: Update copyright year.
3901 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3903 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3904 from CORE_ADDR to struct frame_info *. Use
3905 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3906 (amd64_linux_sigtramp_p): Adjust for changed signature of
3907 and64_linux_sigtramp_start
3909 * gdb_ptrace.h: GNU/Linux.
3911 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3914 * infptrace.c: Include "gdb_assert.h".
3915 (PTRACE_XFER_TYPE): Remove define.
3916 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3917 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3919 (fetch_inferior_registers, store_inferior_registers): Remove
3920 redundant culry braces. Tweak comment. s/regno/regnum.
3921 * Makefile.in (infptrace.o): Update dependencies.
3923 * configure.in: Change test for return type of ptrace to default
3924 to `long' instead of `int'.
3925 * configure: Regenerate.
3927 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3929 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3931 * configure.in: Check for ttrace function.
3932 * configure, config.in: Regenerate.
3934 * gdb_ptrace.h: New file.
3935 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3937 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3938 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3939 (attach): Don't define PT_ATTACH.
3940 (detach): Don't define PT_DETACH.
3941 * Makefile.in (gdb_ptrace_h): New variable.
3942 (infptrace.o): Update dependencies.
3944 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3946 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3947 instead of `int' if not already defined.
3948 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3950 * infptrace.c (call_ptrace): Revert change that replaced
3951 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3953 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3955 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3958 * linux-nat.c (kill_inferior): Add missing third and fourth
3959 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3961 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3964 * proc-why.c (proc_prettyfprint_why): Fix format string.
3966 * solib-osf.c (osf_current_sos): Remove unsused label.
3968 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3970 * configure, config.in: Regenerate.
3971 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3972 <ncurses/ncurses.h>.
3974 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3975 * config/nm-nbsd.h: Update copyright year.
3976 (PTRACE_ARG3_TYPE): Remove define.
3978 * sparc-nat.c (fetch_inferior_registers)
3979 (store_inferior_registers, sparc_xfer_wcookie):
3980 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3982 * alphabsd-nat.c (fetch_inferior_registers):
3983 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3985 * amd64bsd-nat.c (fetch_inferior_registers)
3986 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3988 * armnbsd-nat.c: Update copyright year.
3989 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3990 (store_register, store_regs, store_fp_register, store_fp_regs):
3991 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3992 * hppabsd-nat.c (fetch_inferior_registers)
3993 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3995 * i386bsd-nat.c (fetch_inferior_registers)
3996 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3997 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3998 * m68kbsd-nat.c (fetch_inferior_registers)
3999 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4001 * m88kbsd-nat.c (fetch_inferior_registers)
4002 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4004 * mipsnbsd-nat.c: Update copyright year.
4005 (fetch_inferior_registers, store_inferior_registers):
4006 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4007 * ns32knbsd-nat.c: Update copyright year.
4008 (fetch_inferior_registers, store_inferior_registers):
4009 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4010 * ppcnbsd-nat.c (fetch_inferior_registers):
4011 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4013 * ppcobsd-nat.c (fetch_inferior_registers):
4014 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4016 * shnbsd-nat.c: Update copyright year.
4017 (fetch_inferior_registers, store_inferior_registers):
4018 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4019 * vaxbsd-nat.c (fetch_inferior_registers)
4020 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4023 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4025 * infptrace.c (call_ptrace, child_resume, attach, detach)
4026 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4027 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4028 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4031 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4033 * defs.h: Remove out-of-date comment.
4034 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4035 [!GETENV_PROVIDED] (getenv): Remove prototype.
4037 * standalone.c: Remove file.
4038 * Makefile.in (standalone.o): Remove dependency.
4040 * i386-linux-nat.c (dummy_sse_values): Remove function and
4042 (i386_linux_dr_get): Fix typo in comment.
4043 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4045 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4047 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4049 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4052 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4054 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4055 parenthesis in definition.
4056 * configure: Regenerated.
4058 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4060 * PROBLEMS: Mention build/1411.
4062 2004-08-09 Robert Millan <robertmh@gnu.org>
4064 Committed by Nathanael Nerode.
4065 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4066 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4068 2004-08-12 Andrew Cagney <cagney@gnu.org>
4070 * NEWS: Mention fixes in GDB 6.2.1.
4071 * PROBLEMS: Remove mention of mips-irix.
4073 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4075 * config/powerpc/xm-aix.h: Delete.
4076 * config/powerpc/aix.mh (MH_FILE): Remove.
4077 * config/powerpc/aix432.mh (MH_FILE): Remove.
4079 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4081 * config/powerpc/aix.mh: Remove obsolete comment.
4082 * config/powerpc/aix432.mh: Likewise.
4084 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4086 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4088 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4090 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4091 this file is now empty.
4092 * config/xm-aix4.h: Remove, this file is no longer included
4095 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4097 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4098 that file is now empty.
4099 (termdef): Remove prototype, function no longer used.
4101 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4103 * doc/gdbint.texinfo (Host Definition): Remove documentation
4104 for USE_O_NOCTTY, no longer used.
4105 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4106 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4108 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4110 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4111 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4112 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4114 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4116 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4117 instead of FIVE_ARG_PTRACE.
4119 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4120 (new_tty): Use O_NOCTTY unconditionally.
4122 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4124 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4125 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4128 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4130 * xcoff_symfile_finish: Replace last call to xmfree by call
4133 2004-08-10 Andrew Cagney <cagney@gnu.org>
4135 * main.c (captured_main): Delete call to init_malloc.
4136 * defs.h (init_malloc): Delete declaration.
4137 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4138 (init_malloc): Delete functions.
4140 * defs.h (xmfree): Delete.
4141 * utils.c (xmfree): Delete function.
4142 (xfree): Inline calls to xmfree and mfree.
4143 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4144 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4145 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4146 * somread.c (som_symfile_finish): Ditto.
4147 * objfiles.c (allocate_objfile, free_objfile):
4148 * nlmread.c (nlm_symfile_finish): Ditto.
4149 * hpread.c (hpread_symfile_finish): Ditto.
4150 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4151 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4152 * coffread.c (coff_symfile_finish): Ditto.
4154 * defs.h (xmcalloc): Delete declaration.
4155 * utils.c (xmcalloc): Delete.
4156 (xcalloc): Inline calls to xmcalloc and mcalloc.
4157 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4159 * symtab.c (create_demangled_names_hash): Ditto.
4161 * defs.h (xmrealloc): Delete.
4162 * utils.c (xmrealloc): Delete.
4163 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4164 * symmisc.c (extend_psymbol_list): Use xrealloc.
4165 * source.c (find_source_lines): Ditto.
4166 * hpread.c (hpread_lookup_type): Ditto.
4167 * dbxread.c (add_bincl_to_list): Ditto.
4169 * utils.c (xmmalloc): Delete.
4170 (xmalloc): Inline xmmalloc and mmalloc calls.
4171 (msavestring): Use xmalloc.
4172 * defs.h (xmmalloc): Delete declaration.
4173 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4175 * symmisc.c (extend_psymbol_list): Ditto.
4176 * symfile.c (init_psymbol_list): Ditto.
4177 * source.c (find_source_lines): Ditto.
4178 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4179 * elfread.c (elf_symtab_read): Ditto.
4180 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4181 * coffread.c (coff_symfile_init): Ditto.
4183 2004-08-10 David Carlton <carlton@bactrian.org>
4185 * MAINTAINERS: Remove David Carlton from c++ testsuite
4188 2004-08-10 Jerome Guitton <guitton@gnat.com>
4190 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4191 print a line feed before the prompt.
4193 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4195 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4197 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4199 General cleanup of the AIX xm include file:
4200 * config/xm-aix4.h (fd_set): Remove undefine.
4201 Remove include of <sys/select.h>.
4202 (HAVE_TERMIO): Remove define.
4204 (NULL): Remove redefine.
4205 (alloca): Remove #pragma.
4206 (vfork): Remove define.
4208 (SIGWINCH_HANDLER): Remove.
4209 (SIGWINCH_HANDLER_BODY): Remove.
4211 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4213 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4214 GDB_OSABI_OPENBSD_ELF.
4216 2004-08-07 Robert Millan <robertmh@gnu.org>
4218 * bsd-kvm.c: Check for nlist.h before including it.
4220 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4222 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4223 sigcontext' offset consistency checks for ancient BSD.
4225 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4227 * configure.in: Check for <sys/types.h>. Check return and
4228 argument types of ptrace.
4229 * configure, config.in: Regenerate.
4231 2004-08-09 Jim Blandy <jimb@redhat.com>
4233 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4234 rs6000_register_sim_regno): Doc fixes.
4236 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4238 * mips-tdep.c: Include "floatformat.h".
4239 (n32n64_floatformat_always_valid): New function.
4240 (floatformat_n32n64_long_double_big): New constant.
4241 (mips_gdbarch_init): Set size and format of long double
4242 for N32 and N64 ABIs.
4243 * Makefile.in (mips-tdep.o): Update dependencies.
4245 2004-08-08 Andrew Cagney <cagney@gnu.org>
4247 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4248 print. Improve script's error messages.
4249 * gdbarch.h: Re-generate.
4251 * gdbarch.sh (pformat): New function.
4252 (float_format, double_format, long_double_format): List with bit
4253 members. Use pformat when printing.
4254 * gdbarch.c, gdbarch.h: Re-generate.
4256 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4258 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4259 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4260 (ppcnbsd_supply_pcb): New function.
4261 (_initialize_ppcnbsd_nat): New prototype and function.
4262 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4263 (LOADLIBES): New variable.
4264 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4266 2004-08-08 Andrew Cagney <cagney@gnu.org>
4268 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4269 (builtin_type_ieee_double, builtin_type_ia64_quad)
4270 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4271 BE/LE floating-point types.
4272 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4273 (builtin_type_ieee_double, builtin_type_ia64_quad)
4274 (builtin_type_ia64_spill): Declare.
4275 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4276 (floatformat_ieee_double, floatformat_arm_ext)
4277 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4278 of LE/BE floatformats.
4279 * doublest.h: (struct floatformat, floatformat_ieee_single)
4280 (floatformat_ieee_double, floatformat_arm_ext)
4281 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4283 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4285 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4287 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4288 instead of regcache_raw_supply when storing the registers.
4290 * i386gnu-nat.c: Update copyright year.
4291 (gnu_store_registers): Don't use deprecated_registers and
4292 deprecated_registers_valid. Use regcache_valid_p and
4293 regcache_raw_supply instead.
4295 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4298 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4299 variables. Incapitalized "process".
4301 * configure.in: Add cursesX to the list of possible curses libs.
4302 Add cursesX.h to the list of possible curses headers.
4303 * configure, config.in: Regenerate.
4305 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4307 * configure.in: Test for struct lwp in <sys/lwp.h>.
4308 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4309 the offset of l_addr in struct lwp.
4311 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4313 * bsd-kvm.c: Include "gdbcore.h"
4314 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4316 2004-08-07 Andrew Cagney <cagney@gnu.org>
4318 * gdbtypes.c (build_flt, build_complex): New functions.
4319 (gdbtypes_post_init): Use.
4321 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4323 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4324 through to builtin_type_uint128.
4326 * c-exp.y: Use builtin_type function to obtain builtin types.
4328 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4330 * gdbtypes.c (gdbtypes_post_init): Update.
4331 (build_gdbtypes): Move initialization of builtin_type_int0
4332 through to builtin_type_uint128 from here ...
4333 (_initialize_gdbtypes): ... to here.
4334 * d10v-tdep.c (d10v_register_type): Update.
4336 * doublest.c: Update copyright.
4337 (floatformat_from_length): Call error when floatformat is NULL.
4338 (extract_floating_by_length): Remove NULL fmt check.
4339 (store_floating_by_length): Ditto.
4341 2004-08-07 Andrew Cagney <cagney@gnu.org>
4343 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4344 that the register is valid.
4346 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4348 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4349 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4350 struct frame_info *. Use safe_frame_unwind_memory instead of
4351 deprecated_read_memory_nobpt.
4352 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4353 changed signature of i386_linux_sigtramp_start and
4354 i386_linux_rt_sigtramp_start.
4356 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4357 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4358 instead of deprecated_read_memory_nobpt.
4359 (i386nbsd_sigtramp_p): Adjust for changed signature of
4360 i386nbsd_sigtramp_offset.
4362 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4363 safe_frame_unwind_memory instead of target_read_memory.
4365 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4367 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4368 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4369 (_initialize_kernel_u_addr): Remove prototype and function.
4370 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4372 * xcoffread.c: Likewise.
4374 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4376 * vax-nat.c: New file.
4377 * vaxbsd-nat.c: Tweak comment.
4378 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4380 (vax-nat.o): New dependency.
4381 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4382 (vax-*-ultrix2*): Remove.
4383 * config/vax/vax.mh: New file.
4384 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4385 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4386 (vax_register_u_addr): New prototype.
4387 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4388 * config/vax/vaxult2.mh: Remove file.
4389 * config/vax/vaxult.mh: Remove file.
4390 * config/vax/vaxbsd.mh: Remove file.
4391 * config/vax/vax.mt (TM_FILE): Remove.
4392 * config/vax/tm-vaxbsd.h: Remove file.
4394 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4396 * aix-thread.c (get_signaled_thread): New function.
4397 (iter_trap): Delete, no longer used.
4398 (iter_tid): New function.
4399 (pd_update): Find the thread that received the SIGTRAP signal
4400 by first locating the kernel thread, and then finding its
4403 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4405 * lin-lwp.c (child_wait): Continue inferior after processing
4406 PTRACE_EVENT_CLONE event.
4408 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4410 * MAINTAINERS: Add self to Write-After-Approval.
4412 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4414 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4415 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4417 2004-08-05 Andrew Cagney <cagney@gnu.org>
4419 * config/xm-sysv4.h: Delete file.
4420 * config/mips/xm-irix5.h: Delete file.
4421 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4422 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4423 * config/ia64/xm-aix.h: Delete file.
4424 * config/ia64/aix.mh (XM_FILE): Delete.
4425 * config/pa/xm-hppah.h: Delete file.
4426 * config/pa/hpux11w.mh (XM_FILE): Delete.
4427 * config/pa/hpux11.mh (XM_FILE): Delete.
4428 * config/pa/hpux1020.mh (XM_FILE): Delete.
4429 * config/pa/hppahpux.mh (XM_FILE): Delete.
4431 * config/alpha/xm-alphalinux.h: Delete file.
4432 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4433 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4434 * config/alpha/xm-alphaosf.h: Delete file.
4435 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4436 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4437 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4438 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4440 * config/i386/xm-i386v.h: Delete file.
4441 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4442 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4443 * config/i386/xm-i386sco.h: Delete file.
4444 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4445 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4446 * config/i386/xm-i386v4.h: Delete file.
4447 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4448 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4449 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4450 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4452 * config/vax/xm-vax.h: Delete file.
4453 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4454 * config/vax/xm-vaxult2.h: Delete file.
4455 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4456 * config/vax/vaxult2.mh (XM_FILE): Delete.
4457 * config/vax/xm-vaxult.h: Delete file.
4458 * config/vax/vaxult.mh (XM_FILE): Delete.
4459 * config/vax/xm-vaxbsd.h: Delete file.
4460 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4462 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4463 * gdbarch.h, gdbarch.c: Re-generate.
4464 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4465 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4466 * frame.h: Delete deprecated_read_fp from comments.
4467 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4468 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4470 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4472 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4473 trampoline in OpenBSD 3.5-current.
4475 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4478 * Makefile.in: Remove embedded page breaks.
4480 2004-08-04 Jim Blandy <jimb@redhat.com>
4482 * regcache.c (regcache_raw_read): Assert that, after calling
4483 target_fetch_registers, the register we're reading is cached.
4485 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4486 a call to 'internal_error', with a more helpful error message.
4487 * rs6000-tdep.c (e500_pseudo_register_read,
4488 e500_pseudo_register_write, rs6000_store_return_value): Same.
4490 2004-08-04 Andrew Cagney <cagney@gnu.org>
4492 * Makefile.in: Update dependencies.
4494 2004-08-04 Jim Blandy <jimb@redhat.com>
4496 Change the layout of the PowerPC E500 raw register cache to allow
4497 the lower 32-bit halves of the GPRS to be their own raw registers,
4498 not pseudoregisters.
4499 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4500 add ppc_ev0_upper_regnum flag.
4501 * rs6000-tdep.c: #include "reggroups.h".
4502 (spe_register_p): Recognize the ev upper half registers as SPE
4504 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4506 (e500_move_ev_register): New function.
4507 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4508 vector registers are the pseudo-registers now, formed by splicing
4509 together the gprs and the upper-half registers.
4510 (e500_register_reggroup_p): New function.
4512 (P8, A4): New macro.
4513 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4514 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4516 (registers_e500): Rearrange register set so that the raw register
4517 set contains 32-bit GPRs and upper-half registers, and the SPE
4518 vector registers become pseudo-registers.
4519 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4520 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4521 register numbers are now the same for the E500 as they are for
4522 other PowerPC variants. Register e500_register_reggroup_p as the
4523 register group function for the E500.
4524 * Makefile.in (rs6000-tdep.o): Update dependencies.
4526 Adapt PPC E500 native support to the new raw regcache layout.
4527 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4528 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4529 (fetch_spe_register, store_spe_register): Handle fetching/storing
4530 all the SPE registers at once, if regno == -1. These now take
4531 over the job of fetch_spe_registers and store_spe_registers.
4532 (fetch_spe_registers, store_spe_registers): Deleted.
4533 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4534 unconditionally; they're always raw. Fetch/store SPE upper half
4535 registers, if present, instead of ev registers.
4536 (fetch_register, store_register): Remove sanity checks: gprs are
4537 never pseudo-registers now, so we never need to even mention any
4538 registers that are ever pseudoregisters.
4540 Use a fixed register numbering when communicating with the PowerPC
4542 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4543 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4544 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4546 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4547 init_sim_regno_table.
4548 * Makefile.in (gdb_sim_ppc_h): New variable.
4549 (rs6000-tdep.o): Update dependencies.
4551 2004-08-02 Andrew Cagney <cagney@gnu.org>
4553 * cris-tdep.c (cris_register_size): Restore function, still used
4556 * gdbarch.sh (deprecated_target_read_fp)
4557 (deprecated_frame_locals_address, deprecated_frame_args_address)
4558 (deprecated_frame_chain_valid, deprecated_frame_chain)
4559 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4560 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4561 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4562 * gdbarch.h, gdbarch.c: Re-generate.
4563 * regcache.c (deprecated_read_fp): Do not call
4564 DEPRECATED_TARGET_READ_FP_P.
4565 * infcmd.c (default_print_registers_info): Do not call
4566 DEPRECATED_DO_REGISTERS_INFO.
4567 * frame-base.c (default_frame_locals_address): Do not call
4568 DEPRECATED_FRAME_LOCALS_ADDRESS.
4569 (default_frame_args_address): Do not call
4570 DEPRECATED_FRAME_ARGS_ADDRESS.
4572 * gdbarch.sh (deprecated_register_raw_size)
4573 (deprecated_register_virtual_size:int): Delete.
4574 * gdbarch.h, gdbarch.c: Re-generate.
4575 * cris-tdep.c (cris_register_size): Delete.
4576 (cris_gdbarch_init): Update.
4577 * alpha-tdep.c (alpha_register_raw_size)
4578 (alpha_register_virtual_size): Delete.
4579 (alpha_gdbarch_init): Update.
4581 * gdbarch.sh (deprecated_register_virtual_type)
4582 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4583 (deprecated_dummy_write_sp): Delete.
4584 * gdbarch.h, gdbarch.c: Re-generate.
4586 * gdbarch.sh (deprecated_register_bytes): Delete.
4587 * gdbarch.h, gdbarch.c: Re-generate.
4588 * regcache.c (deprecated_register_bytes): New function.
4589 * regcache.h (deprecated_register_bytes): Declare.
4590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4591 * v850-tdep.c (v850_gdbarch_init): Update.
4592 * sh64-tdep.c (sh64_gdbarch_init): Update.
4593 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4595 * mcore-tdep.c (mcore_gdbarch_init): Update.
4596 * cris-tdep.c (cris_gdbarch_init): Update.
4597 * arm-tdep.c (arm_gdbarch_init): Update.
4598 * remote.c (init_remote_state): Update.
4599 * remote-vx.c (vx_prepare_to_store): Update.
4600 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4601 * irix5-nat.c (fetch_core_registers): Update.
4602 * cris-tdep.c (cris_register_bytes_ok): Update.
4603 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4605 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4606 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4607 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4608 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4609 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4610 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4611 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4612 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4613 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4614 with mips_insn16 and mips_insn32.
4616 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4617 * rs6000-tdep.c (rs6000_push_dummy_call)
4618 (rs6000_extract_return_value): Use register_size.
4619 * xstormy16-tdep.c (xstormy16_get_saved_register)
4620 (xstormy16_extract_return_value): Ditto.
4621 * valops.c (value_assign): Ditto.
4622 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4623 * v850-tdep.c (v850_extract_return_value): Ditto.
4624 * tracepoint.c (collect_symbol): Ditto.
4625 * target.c (debug_print_register): Ditto.
4626 * stack.c (frame_info): Ditto.
4627 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4628 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4629 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4630 (store_register_using_P): Ditto.
4631 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4632 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4633 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4634 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4635 * regcache.c (deprecated_read_register_bytes)
4636 (deprecated_write_register_bytes, read_register)
4637 (write_register): Ditto.
4638 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4639 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4640 * monitor.c (monitor_supply_register, monitor_fetch_register)
4641 (monitor_store_register): Ditto.
4642 * mn10300-tdep.c (mn10300_pop_frame_regular)
4643 (mn10300_print_register): Ditto.
4644 * mipsv4-nat.c (fill_fpregset): Ditto.
4645 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4646 (mips64_fill_fpregset): Ditto.
4647 * mi/mi-main.c (register_changed_p, get_register)
4648 (mi_cmd_data_write_register_values): Ditto.
4649 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4650 * irix5-nat.c (fill_gregset, fetch_core_registers):
4651 * infrun.c (write_inferior_status_register): Ditto.
4652 * infptrace.c (fetch_register, store_register): Ditto.
4653 * infcmd.c (default_print_registers_info): Ditto.
4654 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4655 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4656 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4657 * hpux-thread.c (hpux_thread_fetch_registers)
4658 (hpux_thread_store_registers): Ditto.
4659 * hppah-nat.c (store_inferior_registers, fetch_register):
4660 * findvar.c (value_from_register): Ditto.
4661 * dve3900-rom.c (fetch_bitmapped_register):
4662 * cris-tdep.c (cris_gdbarch_init): Ditto.
4663 * alpha-tdep.h: Ditto.
4664 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4666 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4667 DEPRECATED_REGISTER_RAW_SIZE from comments.
4668 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4669 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4670 DEPRECATED_REGISTER_RAW_SIZE.
4671 * findvar.c (value_of_register): Simplify by assuming that the
4672 registers raw and virtual sizes are identical.
4673 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4675 * arch-utils.c (generic_register_size): Simplify by assuming
4678 * regcache.c (legacy_read_register_gen, real_register)
4679 (legacy_write_register_gen): Delete, not used.
4681 * regcache.c (struct regcache_descr): Delete legacy_p.
4682 (init_legacy_regcache_descr): Delete function.
4683 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4684 Do not use deprecated register functions.
4685 (regcache_raw_read, deprecated_write_register_gen):
4686 (deprecated_read_register_gen, regcache_raw_write): Delete code
4687 predicated on legacy_p.
4688 (register_size): Delete check against register raw size.
4690 * cris-tdep.c (cris_register_type): Replace
4691 cris_register_virtual_type.
4692 (cris_gdbarch_init): Update, set register_type.
4694 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4695 * gdbarch.h, gdbarch.c: Re-generate.
4696 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4697 (arm_gdbarch_init) Do not set frameless function invocation.
4698 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4699 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4700 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4701 (frv_gdbarch_init): Do not set frameless function invocation.
4702 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4703 * sh-tdep.c (sh_gdbarch_init): Ditto.
4704 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4705 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4706 * avr-tdep.c (avr_gdbarch_init): Ditto.
4708 * blockframe.c (legacy_frame_chain_valid): Delete function.
4710 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4711 and pc. Update comments.
4712 (pc_in_dummy_frame): Delete function.
4713 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4715 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4716 call_hi, top and pc, use the id.
4717 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4719 * dummy-frame.c: Include "gdb_string.h".
4720 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4721 (generic_save_dummy_frame_tos): Delete.
4722 (dummy_frame_push): New function, replaces above.
4723 * dummy-frame.h: Update copyright.
4724 (dummy_frame_push): Declare.
4725 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4726 (generic_save_call_dummy_addr): Delete declarations.
4727 * infcall.c: Include "dummy-frame.h".
4728 (call_function_by_hand): Add locals caller_regcache,
4729 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4730 with call to frame_save_as_regcache plus cleanup. Delete calls to
4731 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4732 Move clear_proceed_status to just before the resume, add call to
4733 dummy_frame_push (discard cleanup).
4734 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4735 (dummy-frame.o): Add $(gdb_string_h).
4737 2004-08-01 Andrew Cagney <cagney@gnu.org>
4739 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4740 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4741 * dummy-frame.c (find_dummy_frame): Delete.
4742 (struct dummy_frame_cache, dummy_frame_sniffer)
4743 (dummy_frame_prev_register, dummy_frame_this_id)
4744 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4745 frame unwinder using a dummy_frame_cache.
4747 2004-08-01 Andrew Cagney <cagney@gnu.org>
4749 * frame.h (frame_save_as_regcache): Declare.
4750 * frame.c (frame_save_as_regcache): New function.
4751 (do_frame_read_register): Replace do_frame_unwind_register.
4752 (frame_pop): Use frame_save_as_regcache.
4753 * dummy-frame.c (generic_push_dummy_frame): Use
4754 frame_save_as_regcache.
4756 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4758 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4759 file as included until we record the first line in the linetable.
4761 2004-08-01 Andrew Cagney <cagney@gnu.org>
4763 * frame.h (deprecated_pop_dummy_frame)
4764 (deprecated_read_register_dummy)
4765 (deprecated_generic_find_dummy_frame): Delete.
4766 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4767 (deprecated_read_register_dummy)
4768 (deprecated_find_dummy_frame_regcache)
4769 (discard_innermost_dummy)
4770 (deprecated_pop_dummy_frame): Delete.
4771 (dummy_frame_this_id): Simplify.
4772 (struct dummy_frame): Delete "fp" and "sp".
4773 (find_dummy_frame): Simplify.
4774 (generic_push_dummy_frame): Do not set "fp" or "sp".
4775 (fprint_dummy_frames): Do not print "fp" and "sp"
4777 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4779 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4780 (struct i386_insn): New structure.
4781 (i386_match_insn): New function.
4782 (i386_frame_setup_skip_insns): New variable.
4783 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4784 array i386_frame_setup_insns of instructions that should be
4785 skipped inside the frame setup sequence.
4787 2004-08-01 Andrew Cagney <cagney@gnu.org>
4789 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4790 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4791 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4792 * stack.c (frame_info): Delete references to
4793 DEPRECATED_FRAME_INIT_SAVED_REGS and
4794 deprecated_get_frame_saved_regs.
4795 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4796 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4797 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4798 (frame_unwind_register_signed)
4799 (frame_unwind_register_unsigned)
4800 (frame_unwind_unsigned_register): Use register_size.
4801 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4802 (deprecated_frame_xmalloc_with_cleanup)
4803 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4804 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4806 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4807 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4808 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4809 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4811 * infcall.c (call_function_by_hand): Do not use
4812 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4813 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4814 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4815 DEPRECATED_STACK_ALIGN.
4817 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4819 Committed by Andrew Cagney.
4820 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4822 2004-08-01 Andrew Cagney <cagney@gnu.org>
4824 * mips-tdep.c (mips16_frame_cache)
4825 (mips16_frame_this_id, mips16_frame_prev_register)
4826 (mips16_frame_unwind, mips16_frame_sniffer)
4827 (mips16_frame_base_address, mips16_frame_base)
4828 (mips16_frame_base_sniffer, mips32_frame_cache)
4829 (mips32_frame_this_id, mips32_frame_prev_register)
4830 (mips32_frame_unwind, mips32_frame_sniffer)
4831 (mips32_frame_base_address, mips32_frame_base)
4832 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4833 separate heuristic mips16 and mips32 unwinders.
4834 (mips_stub_frame_cache, mips_stub_frame_this_id)
4835 (mips_stub_frame_prev_register)
4836 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4837 (mips_stub_frame_base_address, mips_stub_frame_base)
4838 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4839 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4840 match true mdebug frames.
4841 (non_heuristic_proc_desc): Add forward declaration.
4843 2004-08-01 Andrew Cagney <cagney@gnu.org>
4845 * config/mips/tm-irix6.h: Delete file.
4846 * config/mips/tm-irix5.h: Delete file.
4847 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4848 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4850 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4851 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4852 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4853 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4854 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4855 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4856 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4857 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4858 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4859 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4860 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4861 (TARGET_SIGNAL_RAW_VALUES): Delete.
4862 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4864 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4865 (TARGET_HW_WATCH_LIMIT): Delete.
4866 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4867 * minimon.h: Delete file.
4869 * trad-frame.c (trad_frame_get_this_base)
4870 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4872 * trad-frame.h (trad_frame_set_this_base)
4873 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4875 2004-07-31 Andrew Cagney <cagney@gnu.org>
4877 * trad-frame.c (trad_frame_get_prev_register): Rename
4878 trad_frame_get_prev_register.
4879 * vax-tdep.c (vax_frame_prev_register): Update.
4880 * trad-frame.h: Update.
4881 * trad-frame.c (trad_frame_get_register): Update.
4882 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4883 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4885 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4886 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4888 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4890 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4892 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4894 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4896 * s390-tdep.c (s390_frame_prev_register)
4897 (s390_stub_frame_prev_register)
4898 (s390_sigtramp_frame_prev_register): Update.
4899 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4900 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4901 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4902 * m88k-tdep.c (m88k_frame_prev_register)
4903 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4904 * m32r-tdep.c (m32r_frame_prev_register): Update.
4905 * hppa-tdep.c (hppa_frame_prev_register_helper)
4906 * frv-tdep.c (frv_frame_prev_register): Update.
4907 * d10v-tdep.c (d10v_frame_prev_register): Update.
4908 * cris-tdep.c (cris_frame_prev_register): Update.
4909 * avr-tdep.c (avr_frame_prev_register): Update.
4910 * arm-tdep.c (arm_prologue_prev_register)
4911 (arm_sigtramp_prev_register): Update.
4913 2004-07-31 Andrew Cagney <cagney@gnu.org>
4915 * frame.h (legacy_saved_regs_unwind)
4916 (legacy_frame_chain_valid, legacy_frame_p)
4917 (enum frame_type): Delete UNKNOWN_FRAME.
4918 * dummy-frame.c (dummy_frame_this_id): Simplify.
4919 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4920 * frame.c (struct frame_info): Delete the field "type".
4921 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4922 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4923 (legacy_saved_regs_unwind, legacy_frame_p)
4924 (frame_type_from_pc): Delete.
4925 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4926 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4928 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4930 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4933 * mips-nat.c: Remove file.
4934 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4935 (mips-nat.o): Remove dependency.
4937 * infptrace.c: Update copyright year.
4938 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4939 explicitly setting the buffer to all zeroes.
4941 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4942 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4944 2004-07-30 Andrew Cagney <cagney@gnu.org>
4946 * GDB 6.2 released from gdb_6_2-branch.
4948 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4950 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4952 * exec.c (exec_file_attach):
4953 * nto-tdep.c (nto_find_and_open_solib):
4954 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4955 * solib.c (solib_open):
4956 * somsolib.c (som_solib_sizeof_symbol_table):
4957 * source.c (is_regular_file, openp, open_source_file):
4958 * symfile.c (symfile_bfd_open):
4959 * wince.c (upload_to_device): Differentiate between the search for
4960 binary and source files.
4962 2004-07-30 Andrew Cagney <cagney@gnu.org>
4964 * complaints.c (_initialize_complaints): Pass NULL to
4965 add_setshow_zinteger_cmd for help_doc.
4966 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4968 2004-07-30 Andrew Cagney <cagney@gnu.org>
4971 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4972 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4973 $(PACKAGE).pot and update-po.
4974 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4975 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4976 (update-po): New rules.
4977 (localedir): Define using autoconf.
4978 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4979 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4980 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4981 * configure.in: Generate CATALOGS and LINGUAS from contents of
4982 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4983 * configure: Re-generate.
4984 * po/gdbtext: New file
4986 2004-07-30 Jerome Guitton <guitton@gnat.com>
4988 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4991 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4993 * dwarf2read.c (read_file_scope): Set producer if attribute
4995 (struct dwarf2_cu): Added new member producer.
4997 2004-07-30 Jerome Guitton <guitton@gnat.com>
4999 * inflow.c (kill_command): release file handles in BFD.
5000 * exec.c (exec_file_attach): Ditto.
5001 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5003 2004-07-29 Andrew Cagney <cagney@gnu.org>
5005 * PROBLEMS (mips-irix): Note that it is broken.
5007 2004-07-29 Andrew Cagney <cagney@gnu.org>
5009 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5010 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5012 * config/xm-nbsd.h: Delete file.
5013 * config/arm/xm-nbsd.h: Delete file.
5014 * config/i386/xm-nbsd.h: Delete file.
5015 * config/ns32k/xm-nbsd.h: Delete file.
5016 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5017 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5018 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5019 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5020 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5022 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5023 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5024 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5025 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5026 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5027 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5029 * config/powerpc/xm-linux.h: Delete empty file.
5030 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5031 * config/powerpc/linux.mh (XM_FILE): Delete.
5032 * config/m68k/xm-linux.h: Delete empty file.
5033 * config/m68k/linux.mh (XM_FILE): Delete.
5034 * config/ia64/xm-linux.h: Delete empty file.
5035 * config/ia64/linux.mh (XM_FILE): Delete.
5036 * config/arm/xm-linux.h: Delete empty file.
5037 * config/arm/linux.mh (XM_FILE): Delete.
5039 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5040 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5041 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5042 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5043 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5044 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5045 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5046 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5048 * config/m68k/xm-m68k.h: Delete file.
5049 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5051 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5052 * config/pa/xm-linux.h: Delete empty file.
5053 * config/pa/linux.mh (XM_FILE): Delete.
5054 * config/i386/xm-i386.h: Delete empty file.
5055 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5057 * config/i386/obsdaout.mh (XM_FILE): Delete.
5058 * config/i386/obsd64.mh (XM_FILE): Delete.
5059 * config/i386/fbsd64.mh (XM_FILE): Delete.
5060 * config/i386/nto.mh (XM_FILE): Delete.
5061 * config/i386/obsd.mh (XM_FILE): Delete.
5062 * config/i386/linux64.mh (XM_FILE): Delete.
5063 * config/i386/linux.mh (XM_FILE): Delete.
5064 * config/i386/i386sol2.mh (XM_FILE): Delete.
5065 * config/i386/i386gnu.mh (XM_FILE): Delete.
5066 * config/i386/fbsd.mh (XM_FILE): Delete.
5067 * config/i386/nbsd64.mh (XM_FILE): Delete.
5069 2004-07-29 Andrew Cagney <cagney@gnu.org>
5071 * config/pa/xm-linux.h: Do not include "floatformat.h".
5072 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5073 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5074 * config/i386/xm-i386.h: Do not include "floatformat.h".
5075 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5076 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5077 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5078 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5079 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5080 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5081 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5082 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5083 * configure, config.in: Regenerate.
5084 * configure.host (gdb_host_float_format, gdb_host_double_format)
5085 (gdb_host_long_double_format): Set according to the host.
5087 2004-07-29 Andrew Cagney <cagney@gnu.org>
5089 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5091 2004-07-28 Andrew Cagney <cagney@gnu.org>
5093 * PROBLEMS: Mention threads/1650.
5094 * NEWS: Mention the NPTL fix.
5096 2004-07-28 Andrew Cagney <cagney@gnu.org>
5098 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5099 (add_setshow_cmd_full): Make static.
5100 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5101 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5102 * cli/cli-decode.c (add_setshow_filename_cmd)
5103 (add_setshow_string_cmd): New functions.
5104 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5105 * mips-tdep.c (_initialize_mips_tdep): Update.
5106 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5107 * cli/cli-logging.c (_initialize_cli_logging): Update.
5108 * complaints.c (_initialize_complaints): Update.
5109 * remote.c (_initialize_remote): Update.
5111 2004-07-28 Andrew Cagney <cagney@gnu.org>
5113 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5114 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5115 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5116 print parameters. Make string parameters constant.
5117 * command.h: Update. Update copyright.
5118 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5119 * observer.c (_initialize_observer): Ditto.
5120 * frame.c (_initialize_frame): Ditto.
5121 * complaints.c (_initialize_complaints): Ditto.
5122 * maint.c (_initialize_maint_cmds): Ditto.
5123 * target.c (initialize_targets): Ditto.
5124 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5125 * infcall.c (_initialize_infcall): Ditto.
5126 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5127 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5128 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5129 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5130 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5132 2004-07-28 Andrew Cagney <cagney@gnu.org>
5134 * gdbtypes.c (lookup_primitive_typename): Delete function.
5135 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5136 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5137 * gdbtypes.c (lookup_typename): Ditto.
5138 * f-exp.y (yylex): Ditto.
5139 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5141 * scm-lang.c (c_builtin_types): Delete extern declaration.
5142 (scm_language_defn): Replace
5143 string_char_type and primitive_type_vector with
5144 la_language_arch_info.
5145 * jv-lang.c (java_language_defn): Replace
5146 string_char_type and primitive_type_vector with
5147 la_language_arch_info.
5148 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5149 c_builtin_types in comment.
5150 * c-lang.h (struct language_arch_info): Declare opaque.
5151 (c_language_arch_info): Declare.
5152 (c_builtin_types): Delete declaration.
5153 * c-lang.c (c_language_arch_info): Set string_char_type to
5154 builtin_char, not builtin_true_char. Make global.
5155 (c_builtin_types): Delete array.
5156 (asm_language_defn, minimal_language_defn): Replace
5157 string_char_type and primitive_type_vector with
5158 la_language_arch_info.
5160 2004-07-28 Andrew Cagney <cagney@gnu.org>
5162 * gdbtypes.h (struct builtin_type): Rename true_char to
5164 * gdbtypes.c (gdbtypes_post_init): Update.
5165 * c-lang.c (arch_info): New function.
5166 (enum c_primitive_types): New enum.
5167 (c_language_defn): Instead of string_char_type and
5168 primitive_type_vector set la_language_arch_info.
5170 2004-07-28 Andrew Cagney <cagney@gnu.org>
5172 * language.h (struct language_arch_info): Fix typo
5173 s/primative/primitive/.
5174 * gdbtypes.c (lookup_primitive_typename): Ditto.
5175 * language.c (language_lookup_primitive_type_by_name)
5176 (unknown_language_arch_info): Ditto.
5178 2004-07-27 Andrew Cagney <cagney@gnu.org>
5180 * defs.h (enum language): Add nr_languages.
5181 * language.h (struct language_arch_info): Define.
5182 (struct language_defn): Add la_language_arch_info.
5183 (language_lookup_primative_type_by_name): Declare.
5184 (language_string_char_type): Declare.
5185 * language.c (_initialize_language, language_gdbarch_post_init)
5186 (struct language_gdbarch, language_gdbarch_data): Implement
5187 per-architecture language information.
5188 (unknown_language_arch_info, language_string_char_type)
5189 (language_lookup_primative_type_by_name): New functions.
5190 (unknown_language_defn, auto_language_defn)
5191 (local_language_defn): Set la_language_arch_info to
5192 unknown_language_arch_info.
5193 (unknown_builtin_types): Delete.
5194 * gdbtypes.c (lookup_primitive_typename): Use
5195 language_lookup_primative_type_by_name.
5196 (create_string_type): Use language_string_char_type.
5197 * values.c (value_from_string): Use language_string_char_type.
5198 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5199 * p-lang.c (pascal_language_defn): Ditto.
5200 * m2-lang.c (m2_language_defn): Ditto.
5201 * jv-lang.c (java_language_defn): Ditto.
5202 * objc-lang.c (objc_language_defn): Ditto.
5203 * f-lang.c (f_language_defn): Ditto.
5204 * c-lang.c (c_language_defn, cplus_language_defn)
5205 (asm_language_defn, minimal_language_defn): Ditto.
5207 2004-07-27 Andrew Cagney <cagney@gnu.org>
5209 * gdbtypes.h (struct builtin_type): Declare.
5210 (builtin_type): Declare.
5211 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5212 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5213 (gdbtypes_post_init): New function.
5214 (builtin_type): New function.
5216 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5218 * remote-m32r-sdi.c: Fix breakpoint bug.
5219 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5220 recv_char_data, recv_long_data): New functions to replace communication
5223 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5225 Document PR threads/1650.
5226 * PROBLEMS (Threads): Document problem with many threads
5228 2004-07-26 Andrew Cagney <cagney@gnu.org>
5230 * gdb-mi.el: Move from here ...
5231 * mi/gdb-mi.el: ... to here.
5233 2004-07-26 Andrew Cagney <cagney@gnu.org>
5235 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5236 * main.c (captured_main): When in batch mode always detach.
5238 2004-07-26 Andrew Cagney <cagney@gnu.org>
5240 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5241 and h8300 as broken.
5242 * NEWS: END-OF-LIFE frame compatibility module.
5243 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5246 2004-07-26 Andrew Cagney <cagney@gnu.org>
5248 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5249 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5250 * wince.c (_initialize_wince): Update.
5251 * win32-nat.c (_initialize_win32_nat): Update.
5252 * varobj.c (_initialize_varobj): Update.
5253 * valops.c (_initialize_valops): Update.
5254 * utils.c (initialize_utils, initialize_utils): Update.
5255 * tui/tui-win.c (_initialize_tui_win): Update.
5256 * top.c (init_main): Update.
5257 * symfile.c (_initialize_symfile): Update.
5258 * source.c (_initialize_source): Update.
5259 * somsolib.c (_initialize_som_solib): Update.
5260 * solib.c (_initialize_solib): Update.
5261 * solib-frv.c (_initialize_frv_solib): Update.
5262 * serial.c (_initialize_serial): Update.
5263 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5264 * remote.c (_initialize_remote, _initialize_remote): Update.
5265 * remote-vx.c (_initialize_vx): Update.
5266 * remote-utils.c (_initialize_sr_support): Update.
5267 * remote-sds.c (_initialize_remote_sds): Update.
5268 * remote-mips.c (_initialize_remote_mips): Update.
5269 * remote-e7000.c (_initialize_remote_e7000): Update.
5270 * proc-api.c (_initialize_proc_api): Update.
5271 * printcmd.c: Update.
5272 * parse.c (_initialize_parse): Update.
5273 * pa64solib.c (_initialize_pa64_solib): Update.
5274 * p-valprint.c (_initialize_pascal_valprint): Update.
5275 * monitor.c (_initialize_remote_monitors): Update.
5276 * mips-tdep.c (_initialize_mips_tdep): Update.
5277 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5278 * maint.c (_initialize_maint_cmds): Update.
5279 * lin-lwp.c (_initialize_lin_lwp): Update.
5280 * language.c (_initialize_language): Update.
5281 * kod.c (_initialize_kod): Update.
5282 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5283 * i386-tdep.c (_initialize_i386_tdep): Update.
5284 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5285 * gdbarch.sh: Update.
5286 * gdbarch.c: Re-generate.
5287 * gdb-events.sh: Update.
5288 * gdb-events.c: Re-generate.
5289 * frame.c (_initialize_frame): Update.
5291 * demangle.c (_initialize_demangler): Update.
5292 * dcache.c (_initialize_dcache): Update.
5293 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5294 * cp-valprint.c (_initialize_cp_valprint): Update.
5295 * corefile.c (_initialize_core): Update.
5296 * command.h: Update.
5297 * cli/cli-decode.h: Update.
5298 * cli/cli-cmds.c (init_cli_cmds): Update.
5299 * charset.c (_initialize_charset): Update.
5300 * breakpoint.c (_initialize_breakpoint): Update.
5301 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5302 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5303 * aix-thread.c (_initialize_aix_thread): Update.
5305 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5307 Partial fix for PR backtrace/1718.
5308 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5309 that GCC migrates into the prolugue. Don't handle any
5310 instructions that clobber %ebx.
5312 2004-07-23 Andrew Cagney <cagney@gnu.org>
5314 Use regcache_raw_collect instead of regcache_collect.
5315 * regcache.h (regcache_collect): Delete declaration.
5316 * regcache.c (regcache_colect): Delete function.
5317 * win32-nat.c (do_child_store_inferior_registers): Update.
5318 * sol-thread.c (sol_thread_store_registers): Update.
5319 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5320 * rs6000-nat.c (store_register): Update.
5321 * remote.c (store_register_using_P, remote_store_registers): Update.
5322 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5323 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5324 (fill_vrregset, store_spe_registers, fill_gregset)
5325 (fill_gregset): Update.
5326 * nto-procfs.c (procfs_store_registers): Update.
5327 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5328 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5329 * m68klinux-nat.c (store_register, fill_gregset): Update.
5330 * m68k-tdep.c (fill_gregset): Update.
5331 * infptrace.c (store_register): Update.
5332 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5333 * i386-linux-nat.c (store_register, fill_gregset): Update.
5334 * hppa-linux-nat.c (fill_gregset): Update.
5335 * go32-nat.c (store_register): Update.
5336 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5337 (store_fp_regs): Update.
5338 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5339 (store_nwfpe_extended, store_fpregister, store_fpregs)
5340 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5341 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5342 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5343 (store_regs_user_thread, store_regs_kernel_thread): Update.
5345 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5347 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5348 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5350 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5351 member of `struct comp_unit'.
5353 2004-07-23 Andrew Cagney <cagney@gnu.org>
5355 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5356 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5358 2004-07-23 Martin Hunt <hunt@redhat.com>
5359 Kevin Buettner <kevinb@redhat.com>
5361 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5362 alignment was being added to the offset instead of multiplied.
5364 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5366 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5367 changed signal trampoline in OpenBSD 3.5-current.
5369 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5370 <machine/pcb.h> and "bsd-kvm.h".
5371 (sparc64nbsd_supply_pcb): New function.
5372 (_initialize_sparc64nbsd_nat): Renamed from
5373 _initialize_sparcnbsd_nat. Enable libkvm interface.
5374 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5375 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5376 (LOADLIBES): New variable.
5378 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5380 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5382 2004-07-21 Andrew Cagney <cagney@gnu.org>
5384 Use regcache_raw_supply instead of supply_register.
5385 * regcache.h (supply_register): Delete declaration.
5386 * regcache.c (supply_register): Delete function.
5387 * wince.c (do_child_fetch_inferior_registers): Update.
5388 * win32-nat.c (do_child_fetch_inferior_registers)
5389 (fetch_elf_core_registers): Update.
5390 * v850ice.c (v850ice_fetch_registers): Update.
5391 * thread-db.c (thread_db_store_registers): Update.
5392 * sol-thread.c (sol_thread_store_registers): Update.
5393 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5394 * rs6000-nat.c (fetch_register): Update.
5395 * rom68k-rom.c (rom68k_supply_one_register): Update.
5396 * remote.c (remote_wait, remote_async_wait): Update.
5397 * remote-st.c (get_hex_regs): Update.
5398 * remote-sim.c (gdbsim_fetch_register): Update.
5399 * remote-sds.c (sds_fetch_registers): Update.
5400 * remote-rdp.c (remote_rdp_fetch_register): Update.
5401 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5402 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5403 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5404 * remote-hms.c (init_hms_cmds): Update.
5405 * remote-est.c (init_est_cmds): Update.
5406 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5407 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5408 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5409 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5410 (fetch_register, supply_vrregset, supply_vrregset)
5411 (fetch_spe_registers): Update.
5412 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5413 * monitor.c (monitor_supply_register): Update.
5414 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5415 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5416 (mipsnbsd_supply_fpreg): Update.
5417 * mips-nat.c (fetch_inferior_registers)
5418 (fetch_core_registers): Update.
5419 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5420 (supply_fpregset, mips64_supply_gregset)
5421 (mips64_supply_fpregset): Update.
5422 * m68klinux-nat.c (fetch_register, supply_gregset)
5423 (supply_fpregset): Update.
5424 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5425 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5426 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5427 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5428 * infptrace.c (fetch_register): Update.
5429 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5430 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5431 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5432 (gnu_fetch_registers, gnu_store_registers): Update.
5433 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5434 * i386-linux-nat.c (fetch_register, supply_gregset)
5435 (dummy_sse_values): Update.
5436 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5437 * hppah-nat.c (fetch_register): Update.
5438 * hppa-linux-nat.c (fetch_register, supply_gregset)
5439 (supply_fpregset): Update.
5440 * go32-nat.c (fetch_register): Update.
5441 * dve3900-rom.c (fetch_bitmapped_register)
5442 (_initialize_r3900_rom): Update.
5443 * cris-tdep.c (supply_gregset): Update.
5444 * abug-rom.c (init_abug_cmds): Update.
5445 * core-aout.c (fetch_core_registers): Update.
5446 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5447 (fetch_register, fetch_fp_register): Update.
5448 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5449 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5450 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5451 * alphanbsd-tdep.c (fetch_core_registers): Update.
5452 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5453 * alpha-nat.c (fetch_osf_core_registers)
5454 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5455 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5456 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5458 2004-07-21 Andrew Cagney <cagney@gnu.org>
5460 * PROBLEMS: Mention breakpoints/1702.
5461 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5462 that is known to work.
5464 2004-07-21 Andrew Cagney <cagney@gnu.org>
5466 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5467 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5468 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5469 (handle_inferior_event): Wrap call to deprecated
5470 IGNORE_HELPER_CALL in #ifdef.
5471 * config/mips/tm-nbsd.h: Update.
5473 2004-07-20 Jim Blandy <jimb@redhat.com>
5475 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5476 bfd_mach_ppc has no segment registers.
5478 Include PowerPC SPR numbers for special-purpose registers.
5479 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5480 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5481 new member in initializer.
5482 (S, S4, SN4, S64): New macros for defining special-purpose
5484 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5485 registers_403, registers_403GC, registers_505, registers_860,
5486 registers_601, registers_602, registers_603, registers_604,
5487 registers_750, registers_e500): Use them.
5489 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5490 replace references with expression used to initialize variable.
5492 2004-07-20 Andrew Cagney <cagney@gnu.org>
5494 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5496 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5497 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5498 (s390_sigtramp_frame_sniffer): Update.
5499 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5500 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5501 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5502 (mips32_fetch_instruction): Update.
5503 * mcore-tdep.c (get_insn): Update.
5504 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5505 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5506 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5507 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5508 (i386_linux_rt_sigtramp_start): Update.
5509 * i386-linux-nat.c (child_resume): Update.
5510 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5511 * hppa-linux-tdep.c (insns_match_pattern): Update.
5512 * gdbcore.h: Update.
5513 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5514 * frame.c (safe_frame_unwind_memory): Update.
5515 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5516 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5517 * alpha-tdep.c (alpha_read_insn): Update.
5519 2004-07-20 Andrew Cagney <cagney@gnu.org>
5521 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5522 containing both bytes and mask. Add "frame_type".
5523 * tramp-frame.c (tramp_frame_start): Update.
5524 (tramp_frame_prepend_unwinder): Update.
5525 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5526 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5527 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5528 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5530 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5532 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5533 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5534 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5535 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5537 2004-07-17 Andrew Cagney <cagney@gnu.org>
5539 * NEWS, PROBLEMS: Update for 6.2.
5541 * README: Update to 6.2.
5543 * utils.c (xvasprintf): Call xstrvprintf.
5545 * parse.c: Update copyright.
5546 (null_post_parser): Eliminate ARGSUSED.
5548 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5549 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5550 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5552 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5553 * ppc-linux-nat.c: Use "Linux kernel".
5554 * hppa-linux-tdep.c: Use GNU/Linux.
5555 * hppa-linux-nat.c: Use GNU/Linux.
5556 * dwarfread.c: Add [sic] to use of Linux.
5558 * hppa-linux-nat.c: Do not include <string.h>.
5559 (supply_fpregset): Remove "register" attribute.
5561 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5563 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5565 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5566 * configure, config.in: Regenerated.
5568 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5570 (vaxbsd_supply_pcb): New function.
5571 (_initialize_vaxbsd_nat): New prototype and function.
5572 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5574 (LOADLIBES): New variable.
5575 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5576 (LOADLIBES): New variable.
5577 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5578 (LOADLIBES): New variable.
5579 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5581 2004-07-16 Andrew Cagney <cagney@gnu.org>
5583 * defs.h (event_loop_p): Replace variable declaration with macro,
5585 * main.c (captured_main): Delete options "-async" and "-noasync".
5586 (event_loop_p): Delete variable.
5587 * NEWS: Mention that "-async" and "-noasync" were removed.
5589 2004-07-16 Andrew Cagney <cagney@gnu.org>
5591 * remote-m32r-sdi.c: Re-indent.
5593 2004-07-16 Jim Blandy <jimb@redhat.com>
5595 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5596 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5597 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5598 missing MPC823 SPRs.
5599 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5600 incorrect. (This was corrected in GDB's register name tables on
5603 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5604 should be "esasrr" ("ESA Save and Restore Register").
5606 2004-07-16 Andrew Cagney <cagney@gnu.org>
5608 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5609 calls, no longer applicable. Update comments and rename parameter
5610 "step_frame" to "return_frame".
5612 2004-07-16 Andrew Cagney <cagney@gnu.org>
5614 * frame.c (fprint_field): New function.
5615 (fprint_frame_id): Use fprint_field.
5617 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5619 * ada-lang.c (ada_language_defn): Remove commented out code.
5621 2004-07-15 Jim Blandy <jimb@redhat.com>
5623 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5624 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5626 2004-07-14 Jim Blandy <jimb@redhat.com>
5628 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5630 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5632 * ppc-tdep.h (ppc_num_srs): New enum constant.
5634 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5635 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5636 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5637 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5638 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5639 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5640 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5641 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5642 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5643 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5644 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5645 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5646 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5647 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5648 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5649 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5650 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5651 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5652 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5653 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5654 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5655 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5656 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5657 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5658 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5659 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5660 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5661 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5662 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5663 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5664 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5665 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5666 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5667 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5668 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5669 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5670 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5671 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5672 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5673 special-purpose register numbers.
5675 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5676 manual mentions 'md_twb', but many mention 'm_twb', and at that
5677 point in the register list.)
5679 2004-07-14 Andrew Cagney <cagney@gnu.org>
5681 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5682 instead of "internal-error".
5684 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5686 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5687 that was inserted inside a comment.
5689 2004-07-10 Randolph Chung <tausq@debian.org>
5691 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5693 (hppa_hpux_push_dummy_code): New function.
5694 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5695 Set find_global_pointer method.
5697 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5699 * NEWS: Mention BSD libkvm interface.
5701 2004-07-10 Michael Snyder <msnyder@redhat.com>
5703 * symfile.c (generic_load): Comment typo.
5704 * stack.c (get_selected_block): Ditto.
5705 * regcache.c (regcache_cooked_read): Ditto.
5706 * monitor.c (monitor_debug): Ditto.
5707 * mips-tdep.c (mips_read_pc): Ditto.
5708 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5709 * gdb_mbuild.sh: Ditto.
5710 * gdbarch.sh: Ditto.
5713 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5715 * ada-tasks.c: Remove file.
5717 Remove ARI problems:
5719 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5722 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5724 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5725 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5726 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5727 (UMIN_OF_SIZE): Remove.
5728 (max_of_type): New function to replace orphan macro in gdbtypes.h
5729 (min_of_type): Ditto.
5730 (discrete_type_high_bound): Use max_of_type.
5731 (discrete_type_low_bound): Use min_of_type.
5732 (possible_user_operator_p): Move operator to beginning of line.
5733 (ada_is_variant_part): Ditto.
5734 (ensure_lval): Rewrite to avoid deprecated operations.
5735 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5736 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5737 (ada_enum_name): Remove assignments in 'if' statements.
5738 (build_ada_types): Add gdbarch parameter.
5739 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5740 with gdbarch_data_register_post_init.
5741 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5744 * ada-valprint.c (inspect_it): Remove declaration.
5745 (repeat_count_threshold): Remove declaration.
5746 (ada_print_floating): Remove assignments in 'if' statements.
5747 (print_str): Move operator to beginning of line.
5749 2004-07-08 Jim Blandy <jimb@redhat.com>
5751 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5753 2004-07-08 Bob Rossi <bob@brasko.net>
5755 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5757 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5759 * language.h (struct_language_defn): Add new function pointer:
5760 la_class_name_from_physname. Also add new prototype for
5761 language_class_name_from_physname.
5762 * language.c (language_class_name_from_physname): New function.
5763 (unk_lang_class_name): Ditto.
5764 (unknown_language_defn, auto_language_defn): Change
5765 to add unk_lang_class_name function pointer for
5766 la_class_name_from_physname.
5767 (local_language_defn): Ditto.
5768 * dwarf2read.c (guess_structure_name): Change to call
5769 language_class_name_from_physname.
5770 (determine_class_name): Ditto.
5771 * cp-support.c (class_name_from_physname): Renamed.
5772 (cp_class_name_from_physname): New name of function.
5773 * cp-support.h: Ditto.
5774 * c-lang.c (c_language_defn): Change to add NULL
5775 for class_name_from_physname function pointer.
5776 (cplus_language_defn): Change to add cp_class_name_from_physname.
5777 * jv-lang.c (java_class_name_physname): New function.
5778 (java_find_last_component): New static routine.
5779 (java_language_defn): Add java_class_name_from_physname pointer.
5780 * ada-lang.c (ada_language_defn): Change to add NULL
5781 for class_name_from_physname function pointer.
5782 * f-lang.c (f_language_defn): Ditto.
5783 * m2-lang.c (m2_language_defn): Ditto.
5784 * objc-lang.c (objc_language_defn): Ditto.
5785 * p-lang.c (pascal_language_defn): Ditto.
5786 * scm-lang.c (scm_language_defn): Ditto.
5788 2004-07-06 Andrew Cagney <cagney@gnu.org>
5790 Patch from Bart Robinson.
5791 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5792 (O_LARGEFILE): Define to 0, if not defined.
5794 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5796 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5797 <machine/pcb.h> and "bsd-kvm.h".
5798 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5799 (m68kbsd_supply_pcb): New function.
5800 (_initialize_m68kbsd_nat): New prototype and function.
5801 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5802 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5803 (LOADLIBES): New variable.
5804 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5805 (LOADLIBES): New variable.
5807 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5809 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5811 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5813 (bsd_kvm_cmdlist): New variable.
5814 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5815 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5816 command and "kvm proc" command.
5817 * Makefile.in (bsd-kvm.o): Update dependencies.
5819 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5821 * osabi.c: Update copyright year.
5822 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5823 notes if EI_OSABI is set to ELFOSABI_HPUX.
5825 2004-07-01 Michael Snyder <msnyder@redhat.com>
5827 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5828 that seems to have gotten whacked out of line.
5830 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5832 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5835 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5837 * ada-lang.c (decode_packed_array): Minor change to comment.
5838 (ada_value_slice_ptr): New function.
5839 (ada_value_slice): New function.
5840 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5841 test. Don't know why it is there.
5842 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5843 to avoid dereferencing huge arrays from which one is slicing.
5844 (empty_array): Correct to return an array rather than
5846 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5847 on empty arrays (let'em use 'FIRST instead).
5849 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5851 Address complaints from gdb_ari.sh:
5853 * ada-exp.y: Include gdb_string.h rather than string.h.
5854 (convert_char_literal): Reformat declaration.
5855 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5856 * ada-lex.l: Change use of free to xfree (the macro would do so
5857 anyway, but this is harmless).
5858 Include gdb_string.h rather than string.h.
5859 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5861 * ada-lang.c (parse): Remove K&Rism in parameter list.
5862 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5864 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5866 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5869 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5871 * alphabsd-nat.c: Update copyright year.
5872 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5874 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5876 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5877 (i386_cygwin_in_solib_call_trampoline): New function.
5878 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5879 and skip_trampoline_code gdbarch methods.
5881 2004-06-29 Jim Blandy <jimb@redhat.com>
5883 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5884 name actually used in the dependency lists.
5886 2004-06-29 Randolph Chung <tausq@debian.org>
5888 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5890 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5892 * win32-nat.c (child_pid_to_exec_file): New function.
5893 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5896 2004-06-28 Andrew Cagney <cagney@gnu.org>
5898 * defs.h (xstrvprintf): Declare.
5899 * utils.c (xstrvprintf): New function.
5900 (internal_vproblem, xstrprintf, xasprintf)
5901 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5902 * serial.c (serial_printf): Ditto.
5903 * complaints.c (vcomplaint): Ditto.
5905 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5907 * infcmd.c (attach_command): Move call to target_terminal_inferior
5908 behind loading symbol table.
5910 2004-06-28 Andrew Cagney <cagney@gnu.org>
5912 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5913 change - add back extern deprecated_ui_loop_hook declaration.
5915 2004-06-28 Andrew Cagney <cagney@gnu.org>
5917 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5919 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5920 (c_value_of_variable): Ditto.
5921 * utils.c (internal_vproblem): Ditto.
5922 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5923 * remote.c (add_packet_config_cmd): Ditto.
5924 * remote-rdp.c (rdp_set_command_line): Ditto.
5925 * regcache.c (regcache_dump): Ditto.
5926 * frv-tdep.c (new_variant, new_variant): Ditto.
5927 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5928 (fbsd_find_memory_regions): Ditto.
5929 * breakpoint.c (create_thread_event_breakpoint)
5930 (create_breakpoints): Ditto.
5931 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5932 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5934 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5936 * ada-lang.c: Re-indent file, with some massaging to help indent
5937 a bit when the result is otherwise really too ugly.
5939 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5941 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5942 code_addr_p and special_addr_p to 'unsigned int'.
5944 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5946 * i386v4-nat.c: Update copyright year and tweak comment.
5947 (regmap): Remove trailing comma.
5948 (supply_gregset): Rename local variable i to regnum. Call
5949 regcache_raw_supply instead of supply_register.
5950 (fill_gregset): Rename argument regno to regnum. Call
5951 regcache_raw_collect instead of regcache_collect.
5953 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5955 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5957 (frame_id_build, frame_id_build_special): Update comments.
5958 (frame_id_build_wild): New prototype.
5959 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5960 struct frame_id fields.
5961 (frame_id_build_wild): New function.
5962 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5964 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5966 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5969 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5971 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5973 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5975 * ada-lang.c: Re-indent file.
5977 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5979 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5980 (no_symtab_msg): Likewise.
5982 2004-06-27 Andreas Schwab <schwab@suse.de>
5984 * source.c: Fix whitespace.
5986 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5988 * configure.in: Include <sys/param.h> for td_pcb test.
5989 * configure: Regenerated.
5991 * i386nbsd-nat.c: New file.
5992 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5993 i386obsd-nat.c and i386obsd-tdep.c.
5994 (i386nbsd-nat.o): New dependency.
5995 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5997 (LOADLIBES): New variable.
5998 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6000 (LOADLIBES): New variable.
6002 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6003 (LOADLIBES): New variable.
6005 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6006 fetching from BSD_KVM_PADDR. Correctly lookup address for
6009 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6011 (amd64fbsd_supply_pcb): New funcion.
6012 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6014 2004-06-27 <david@streamline-computing.com>
6016 Partial fix for PR cli/1056.
6017 * valarith.c: Check for zero in division and remainder
6020 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6022 * i387-tdep.c: Remove excessive whitespace.
6024 2004-06-26 Andrew Cagney <cagney@gnu.org>
6026 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6027 * gdb-events.h, gdb-events.c: Re-generate.
6028 * tui/tui-hooks.c (tui_install_hooks): Update.
6029 (tui_remove_hooks): Update.
6030 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6032 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6034 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6035 (gregset_t, fpregset_t): Remove typedefs.
6036 (REG_OFFSET): Rename argument.
6037 (amd64bsd_r_reg_offset): Rename from reg_offset.
6038 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6040 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6042 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6044 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6046 * vax-tdep.c: Tweak comment.
6048 Add OpenBSD/hppa support.
6049 * NEWS (New native configurations): Mention OpenBSD/hppa.
6050 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6051 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6053 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6054 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6055 * configure.host: Add hppa*-*-openbsd*.
6056 * configure.tgt: Add hppa*-*-openbsd*.
6058 2004-06-25 Andrew Cagney <cagney@gnu.org>
6060 * defs.h (deprecated_ui_loop_hook): Deprecated.
6061 * wince.c (child_wait): Update.
6062 * win32-nat.c (child_wait): Update.
6063 * v850ice.c (v850ice_wait): Update.
6064 * top.c (deprecated_ui_loop_hook): Update.
6066 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6067 (do_unix_readchar): Update.
6068 * ser-tcp.c (net_open): Update.
6069 * remote-sim.c (gdb_os_poll_quit): Update.
6070 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6072 2004-06-24 Andrew Cagney <cagney@gnu.org>
6074 * defs.h (deprecated_pre_add_symbol_hook)
6075 (deprecated_post_add_symbol_hook): Deprecated.
6076 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6077 (symbol_file_add_with_addrs_or_offsets): Update references.
6079 2004-06-24 Andrew Cagney <cagney@gnu.org>
6081 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6082 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6083 * wince.c (ui_loop_hook): Delete extern declaration.
6084 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6085 * v850ice.c (ui_loop_hook): Delete extern declaration..
6086 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6087 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6088 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6089 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6090 ui_loop_hook declaration.
6092 2004-06-24 Andrew Cagney <cagney@gnu.org>
6094 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6095 entry_func_highpc fields.
6096 * objfiles.c (init_entry_point_info): Do not clear
6097 entry_func_lowpc and entry_func_highpc.
6098 (objfile_relocate): Do not relocate entry_func_lowpc and
6100 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6102 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6104 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6105 entry_func_lowpc and entry_func_highpc with call to
6108 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6110 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6111 quad-precision floating point arguments in registers.
6113 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6115 From Michael Mueller <m.mueller99@kay-mueller.de>:
6116 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6119 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6121 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6123 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6124 untriggered watchpoints to a separate if clause. Update function
6125 comment regarding STOPPED_BY_WATCHPOINT argument.
6127 2004-06-22 Jim Blandy <jimb@redhat.com>
6129 * gdbarch.sh: Doc fix.
6131 2004-06-21 Martin Hunt <hunt@redhat.com>
6132 Kevin Buettner <kevinb@redhat.com>
6134 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6135 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6136 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6137 to set_gdbarch_sp_regnum(). Use cooked register number.
6138 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6140 2004-06-21 Andrew Cagney <cagney@gnu.org>
6142 * gdbarch.sh: When the macro field is empty, do not generate a
6143 macro definition. When the macro field is "=", generate the macro
6144 name from the upper-case function name.
6145 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6146 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6147 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6148 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6149 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6150 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6151 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6152 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6153 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6154 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6155 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6156 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6157 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6158 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6159 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6160 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6161 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6162 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6163 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6164 (DEPRECATED_USE_STRUCT_CONVENTION)
6165 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6166 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6167 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6168 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6169 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6170 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6171 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6172 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6173 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6174 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6175 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6176 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6177 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6178 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6179 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6180 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6181 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6182 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6184 2004-06-21 Andrew Cagney <cagney@gnu.org>
6186 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6187 macro name, and the function rather than macro value. Only wrap
6188 macro print statements in #ifdef. Move format logic to where it
6190 * gdbarch.c: Re-generate.
6192 * gdbarch.sh (read): Delete "print_p" and "description", add
6193 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6194 Delete references to print_p.
6195 (TARGET_ARCHITECTURE): Delete print predicate.
6196 * gdbarch.c: Re-generate.
6198 * gdbarch.sh: Check that multi-arch methods do not provide a
6200 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6201 (print_registers_info, print_float_info, print_vector_info)
6202 (adjust_breakpoint_address, remote_translate_xfer_address)
6203 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6204 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6205 name from the multi-arch definition.
6207 2004-06-20 Andrew Cagney <cagney@gnu.org>
6209 * gdbarch.sh: Sort by the function, instead of macro name.
6210 * gdbarch.c: Re-generate.
6212 2004-06-20 Andrew Cagney <cagney@gnu.org>
6214 * gdbarch.sh: Use the function, instead of macro name in
6215 errors and the log file.
6216 (return_value): Remove stray ":" in spec.
6218 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6219 * gdbarch.h, gdbarch.c: Re-generate.
6220 * Makefile.in (arch-utils.o): Update dependencies.
6221 * values.c (using_struct_return): Move code calling
6222 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6223 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6224 to legacy_return_value, simplify.
6225 * infcmd.c (print_return_value): Move code calling
6226 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6227 to legacy_return_value, simplify.
6228 * infcall.c (call_function_by_hand): Move code calling
6229 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6230 * arch-utils.c: Update copyright. Include "gdbcore.h".
6231 (legacy_return_value): New function.
6232 * arch-utils.h: Update copyright.
6233 (legacy_return_value): Declare.
6235 2004-06-20 Andrew Cagney <cagney@gnu.org>
6237 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6238 * gdbarch.h, gdbarch.c: Re-generate.
6239 * values.c (using_struct_return): Update call.
6240 * mcore-tdep.c: Update comment.
6241 * infcall.c (call_function_by_hand): Update comment.
6242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6243 * arch-utils.h (always_use_struct_convention): Update.
6244 * v850-tdep.c (v850_gdbarch_init): Update.
6245 * sh64-tdep.c (sh64_gdbarch_init): Update.
6246 * sh-tdep.c (sh_gdbarch_init): Update.
6247 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6248 * mips-tdep.c (mips_gdbarch_init): Update.
6249 * mcore-tdep.c (mcore_gdbarch_init): Update.
6250 * m32r-tdep.c (m32r_gdbarch_init): Update.
6251 * ia64-tdep.c (ia64_gdbarch_init): Update.
6252 * h8300-tdep.c (h8300_gdbarch_init): Update.
6253 * frv-tdep.c (frv_gdbarch_init): Update.
6254 * cris-tdep.c (cris_gdbarch_init): Update.
6255 * arm-tdep.c (arm_gdbarch_init): Update.
6256 * alpha-tdep.c (alpha_gdbarch_init): Update.
6258 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6260 * PROBLEMS: Add more specific information, and a work-around,
6263 2004-06-18 Andrew Cagney <cagney@gnu.org>
6265 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6266 * gdbarch.h, gdbarch.c: Re-generate.
6267 * ada-lang.c (ada_finish_decode_line_1): Update.
6268 * infrun.c (handle_inferior_event): Update.
6269 * infcall.c (find_function_addr): Update.
6270 * linespec.c (minsym_found): Update.
6271 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6273 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6274 * cli/cli-cmds.c (disassemble_command): Update.
6275 * vax-tdep.c (vax_gdbarch_init): Update.
6277 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6279 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6281 2004-06-17 Andrew Cagney <cagney@gnu.org>
6283 GDB 6.1.1 released from the GDB 6.1 branch.
6284 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6287 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6290 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6291 operation as a uleb128. Found by Michael Coulter.
6293 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6295 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6297 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6298 to ada-lang.h; this is needed to be able to implement the kill command
6301 (task_entry): Ditto.
6303 (ada_build_task_list): Ditto.
6305 * ada-lang.c: Conditionalize routines and data structures related
6306 to breakpoints, exceptions, completion, and symbol caching on
6307 GNAT_GDB, since these are not yet used in the submitted public sources.
6308 (ada_main_name): Editorial: Move definition out of exception-related
6311 2004-06-15 Andrew Cagney <cagney@gnu.org>
6313 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6314 deprecated_pc_in_call_dummy.
6316 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6318 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6319 bfd_get_section_size_before_reloc or _raw_size.
6320 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6321 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6322 (dwarf2_read_section): Likewise.
6323 * elfread.c (elf_locate_sections): Likewise.
6324 * gcore.c (derive_heap_segment): Likewise.
6325 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6326 * remote-e7000.c (e7000_load): Likewise.
6327 * remote-m32r-sdi.c (m32r_load): Likewise.
6328 * remote-mips.c (mips_load_srec): Likewise.
6329 (pmon_load_fast): Likewise.
6330 * remote.c (compare_sections_command): Likewise.
6331 * symfile.c (add_section_size_callback): Likewise.
6332 (load_section_callback): Likewise.
6333 (pc_in_unmapped_range): Likewise.
6334 (pc_in_mapped_range): Likewise.
6335 (sections_overlap): Likewise.
6336 (list_overlays_command): Likewise.
6337 (simple_overlay_update_1): Likewise.
6338 (simple_overlay_update): Likewise.
6339 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6340 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6342 2004-06-14 Randolph Chung <tausq@debian.org>
6344 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6345 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6347 (hppa_hpux_inferior_created): New function.
6348 (hppa_hpux_init_abi): Register observer.
6349 * symfile.c (hp_cxx_exception_support_initialized)
6350 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6351 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6353 2004-06-14 Randolph Chung <tausq@debian.org>
6355 * MAINTAINERS (Write After Approval): Alphabetize my entry
6358 2004-06-14 Andrew Cagney <cagney@gnu.org>
6360 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6361 testsuite maintainer.
6363 2004-06-13 Andrew Cagney <cagney@gnu.org>
6365 * infcmd.c (print_return_value): Fix logic, allow
6366 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6368 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6369 defining any macros.
6370 * gdbarch.h: Re-generate.
6372 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6373 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6374 * gdbarch.h: Re-generate.
6376 * values.c (generic_use_struct_convention): Don't check gcc_p.
6378 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6379 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6380 * gdbarch.h, gdbarch.c: Regenerate.
6381 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6382 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6384 deprecated_max_register_raw_size and
6385 deprecated_max_register_virtual_size.
6386 * v850-tdep.c (v850_gdbarch_init): Ditto.
6387 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6388 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6389 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6390 * cris-tdep.c (cris_gdbarch_init): Ditto.
6392 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6393 * gdbarch.h, gdbarch.c: Re-generate.
6394 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6395 (m68hc11_use_struct_convention): Delete function.
6396 (m68hc11_extract_struct_value_address): Delete function.
6397 (m68hc11_return_value): New function.
6398 (m68hc11_gdbarch_init): Instead of store_return_value,
6399 extract_return_value, return_value_on_stack,
6400 deprecated_extract_struct_value_address and use_struct_convention,
6402 * values.c (using_struct_return): Do not call
6403 RETURN_VALUE_ON_STACK.
6404 * arch-utils.h (generic_return_value_on_stack_not): Delete
6406 * arch-utils.c (generic_return_value_on_stack_not): Delete
6409 2004-06-12 Andrew Cagney <cagney@gnu.org>
6411 * values.c (register_value_being_returned): Delete function.
6412 * infcmd.c (legacy_return_value): Delete function.
6413 * infcall.c (call_function_by_hand): Inline
6414 "register_value_being_returned", simplify.
6415 * values.c (using_struct_return): Update comment, refer to
6416 print_return_value instead of register_value_being_returned.
6417 * infcmd.c (print_return_value): Inline calls to
6418 register_value_being_returned and legacy_return_value. Simplify.
6420 2004-06-11 Randolph Chung <tausq@debian.org>
6422 * somread.c (som_symtab_read): Exclude gcc local symbols.
6424 2004-06-11 Randolph Chung <tausq@debian.org>
6426 * infrun.c (handle_inferior_event): Handle the case when a
6427 trampoline ends up in the runtime resolver, and if the trampoline
6428 has no name. Rearrange the code so that all the trampoline
6429 processing happens before other step-out-of-range handling.
6431 2004-06-11 Martin Hunt <hunt@redhat.com>
6433 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6436 2004-06-10 Andrew Cagney <cagney@gnu.org>
6438 * blockframe.c (legacy_inside_entry_func): Delete.
6439 (legacy_frame_chain_valid): Inline call to
6440 legacy_inside_entry_func, simplify.
6442 2004-06-10 Bob Rossi <bob@brasko.net>
6444 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6445 * dwarf2read.c (partial_die_info): Add dirname field.
6446 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6447 (read_partial_die): Save away DW_AT_comp_dir.
6448 * defs.h (symtab_to_filename): Removed.
6449 * source.c (find_and_open_source): Added.
6450 (open_source_file): Just calls find_and_open_source.
6451 (symtab_to_filename): Removed.
6452 (symtab_to_fullname, psymtab_to_fullname): Added.
6453 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6454 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6456 * symtab.h (partial_symtab): Add dirname field.
6457 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6458 (mi_cmd_file_list_exec_source_file): Call new function
6459 symtab_to_fullname to find fullname.
6460 (mi_cmd_file_list_exec_source_files): Added.
6461 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6462 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6464 2004-06-10 Andrew Cagney <cagney@gnu.org>
6466 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6467 to generic_use_struct_convention, the default value.
6469 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6472 * ns32k-tdep.c (ns32k_push_arguments): New function.
6473 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6474 * infcall.c (call_function_by_hand): Call error instead of
6475 legacy_push_arguments.
6476 * value.h (legacy_push_arguments): Delete declaration.
6477 * valops.c (legacy_push_arguments): Delete function.
6478 (value_push): Delete function.
6480 2004-06-10 Brian Ford <ford@vss.fsi.com>
6482 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6483 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6485 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6487 2004-06-10 Andrew Cagney <cagney@gnu.org>
6489 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6490 * gdbarch.h, gdbarch.c: Re-generate.
6491 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6493 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6494 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6495 deprecated_pc_in_call_dummy instead of
6496 DEPRECATED_PC_IN_CALL_DUMMY.
6497 (arm_skip_prologue): Ditto.
6498 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6499 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6500 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6501 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6503 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6504 (sh64_init_extra_frame_info, sh64_get_saved_register)
6505 (sh64_pop_frame): Ditto.
6506 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6507 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6508 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6509 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6510 (h8300_pop_frame): Ditto.
6511 * blockframe.c (legacy_inside_entry_func)
6512 (legacy_frame_chain_valid): Ditto.
6513 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6514 to deprecated_pc_in_call_dummy.
6516 2004-06-09 Andrew Cagney <cagney@gnu.org>
6518 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6519 provide a default value.
6520 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6521 * gdbarch.h, gdbarch.c: Re-generate.
6522 * arch-utils.c (generic_convert_register_p): Rename
6523 legacy_convert_register_p
6524 (legacy_register_to_value, legacy_value_to_register): Delete
6526 * arch-utils.h (generic_convert_register_p): Rename
6527 legacy_convert_register_p.
6528 (legacy_register_to_value, legacy_value_to_register): Delete
6531 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6532 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6533 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6534 * gdbarch.h, gdbarch.c: Re-generate.
6535 * infcmd.c (default_print_registers_info): Simplify.
6536 * findvar.c (value_of_register): Simplify.
6537 * mi/mi-main.c (get_register): Simplify.
6538 * arch-utils.c (legacy_convert_register_p): Always return 0.
6539 (legacy_register_to_value, legacy_value_to_register): Always call
6542 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6543 #ifdef CLEAR_INSN_CACHE code.
6544 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6545 Delete #ifdef CLEAR_DEFERRED_STORES code.
6547 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6549 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6551 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6553 * config/mips/mipsv4.mh: Delete file.
6555 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6557 (hpread_adjust_stack_address): Delete declaration.
6559 2004-06-08 Andrew Cagney <cagney@gnu.org>
6561 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6562 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6563 PTRACE_ATTACH / PTRACE_DETACH available call error.
6564 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6565 * infttrace.c (update_thread_state_after_attach, attach, detach):
6566 Remove #ifdef wrappers.
6567 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6568 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6569 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6570 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6571 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6572 * config/nm-linux.h (ATTACH_DETACH): Delete.
6573 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6574 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6575 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6576 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6577 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6579 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6581 * configure.in: Set $configdir to the right OS specific value.
6582 Use value when setting $tcldir and $tkdir.
6583 * configure: Regenerate.
6585 2004-06-06 Paul Brook <paul@codesourcery.com>
6587 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6590 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6592 * ada-lang.c (lookup_symbol_in_language): New function to allow
6593 re-use of another language's symbol lookup code. (Placed here
6594 temporarily while Ada support is being integrated into the public
6596 (restore_language): New auxiliary function for
6597 lookup_symbol_in_language.
6598 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6599 temporarily while Ada support is being integrated into the public
6602 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6604 * Makefile.in (check//%): New.
6606 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6607 (mn10300_store_return_value): Rewrite.
6608 (mn10300_type_align): New.
6609 (mn10300_use_struct_convention): Rewrite.
6610 (mn10300_return_value): New, using all of the above.
6611 (mn10300_pop_frame_regular): Add saved_regs_size.
6612 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6614 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6615 regs if PC is on movm.
6617 2004-06-07 Jim Blandy <jimb@redhat.com>
6619 Add native Linux support for the PowerPC E500.
6620 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6621 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6622 all architectures except the E500.
6623 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6625 (struct gdb_evrregset_t): New type.
6626 (have_ptrace_getsetevrregs): New variable.
6627 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6628 fetch_spe_registers): New functions.
6629 (fetch_register): Call fetch_spe_register as appropriate.
6630 Assert that we're only passed raw register numbers.
6631 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6632 Don't fetch gprs if they're pseudoregisters.
6633 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6634 store_spe_registers): New functions.
6635 (store_register): Call store_spe_register as appropriate.
6636 Assert that we're only passed raw register numbers.
6637 (store_ppc_registers): Call store_spe_registers as appropriate.
6638 Don't store gprs if they're pseudoregisters.
6640 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6642 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6643 struct if one exists, even if we are dealing with a zombie thread.
6645 2004-06-07 Andrew Cagney <cagney@gnu.org>
6647 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6648 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6649 Rename PC_REQUIRES_RUN_BEFORE_USE.
6650 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6653 2004-06-07 Randolph Chung <tausq@debian.org>
6655 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6656 unwinding after sp has been saved to the stack but before the end
6657 of the prologue, and after the fp has been modified but before it has
6658 been saved to the stack.
6659 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6660 Remove superfluous definitions.
6661 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6663 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6665 Committed by Randolph Chung.
6666 * hppa-linux-nat.c: Include the correct version of the header file
6667 depending on the kernel version.
6669 2004-06-06 Randolph Chung <tausq@debian.org>
6671 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6672 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6674 2004-06-06 Randolph Chung <tausq@debian.org>
6676 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6677 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6678 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6679 * hppa-tdep.c (hppa_symbol_address): New function definition.
6680 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6682 2004-06-06 Randolph Chung <tausq@debian.org>
6684 * hppa-tdep.h (struct value): Forward declaration.
6685 (gdbarch_tdep): Define tdep find_global_pointer method.
6686 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6687 associated with the function we are trying to call, and write it
6689 (hppa32_convert_from_funct_ptr_addr): New function.
6690 (hppa_find_global_pointer): New function.
6691 (hppa_gdbarch_init): Set default find_global_pointer method; set
6692 convert_from_func_ptr_addr method.
6693 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6694 (hppa_linux_init_abi): Set find_global_pointer method.
6695 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6697 2004-06-06 Randolph Chung <tausq@debian.org>
6699 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6700 to struct value *function.
6701 * gdbarch.c: Regenerate.
6702 * gdbarch.h: Likewise.
6703 * infcall.c (call_function_by_hand): Pass entire function value
6706 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6707 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6708 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6709 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6710 * arm-tdep.c (arm_push_dummy_call): Likewise.
6711 * avr-tdep.c (avr_push_dummy_call): Likewise.
6712 * cris-tdep.c (cris_push_dummy_call): Likewise.
6713 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6714 * frv-tdep.c (frv_push_dummy_call): Likewise.
6715 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6716 * hppa-tdep.c (hppa32_push_dummy_call)
6717 (hppa64_push_dummy_call): Likewise.
6718 * i386-tdep.c (i386_push_dummy_call): Likewise.
6719 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6720 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6721 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6722 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6723 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6724 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6725 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6726 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6727 (ppc64_sysv_abi_push_dummy_call): Likewise.
6728 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6729 (ppc64_sysv_abi_push_dummy_call): Likewise.
6730 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6731 * s390-tdep.c (s390_push_dummy_call): Likewise.
6732 * sh-tdep.c (sh_push_dummy_call_fpu)
6733 (sh_push_dummy_call_nofpu): Likewise.
6734 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6735 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6736 * vax-tdep.c (vax_push_dummy_call): Likewise.
6738 2004-06-04 Jim Blandy <jimb@redhat.com>
6740 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6741 gdbarch argument to register_size.
6743 * rs6000-tdep.c (rs6000_store_return_value): Use
6744 regcache_cooked_write_part instead of
6745 deprecated_write_register_bytes.
6746 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6747 not gdbarch_deprecated_store_return_value.
6749 * ppc-linux-nat.c (store_register, fetch_register): Remove
6750 incorrect assertions. Simplify and generalize handling of
6751 transfers whose sizes are not multiples of, or less than, sizeof
6754 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6756 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6757 as a new thread event.
6758 * thread-db.c (thread_get_info_callback): If the thread is a
6759 zombie, return TD_THR_ZOMBIE.
6760 (thread_from_lwp): If thread_get_info_callback returns
6761 TD_THR_ZOMBIE, check if the thread is still on the thread list
6762 and return a -1 ptid if not found.
6763 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6764 change the status to TARGET_WAITKIND_SPURIOUS.
6766 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6768 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6769 double values in little endian mode.
6771 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6773 Committed by Andrew Cagney.
6774 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6775 after last enum constant to avoid error from IBM C
6778 2004-06-02 Jim Blandy <jimb@redhat.com>
6780 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6781 to 'message', and make it local to the lone block that uses it.
6783 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6785 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6787 * ada-exp.y: Update copyright notice.
6790 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6791 SPECIAL_VARIABLE and unify the treatment of these cases.
6793 (write_attribute_call0): Remove.
6794 (write_attribute_call1): Remove.
6795 (write_attribute_calln): Remove.
6796 (save_qualifier): Add missing semicolon.
6798 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6799 temporarily disabled to allow compilation with FSF head version.
6801 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6802 use individual operators (OP_*) for all attributes.
6803 (exp syntax): Use write_int.
6804 Handle STRING literals with OP_STRING.
6805 (variable syntax): Add limit parameter to calls to
6806 write_object_renaming.
6808 (temp_parse_space): New definition to hold entities that need
6809 only live until the next call to ada_parse.
6810 (string_to_operator): Rename fields of ada_opname_table entries.
6812 (write_var_from_sym): Record block.
6813 (write_var_from_name): Minor reformatting.
6814 Make sure saved name is properly encoded in the case of multiple
6815 matches, and set its language to Ada.
6817 Modify to indicate unresolved name as symbol in the UNRESOLVED
6818 namespace, allocated in temp_parse_space.
6819 (write_int): New function.
6821 (write_object_renaming): Add max_depth parameter to limit
6822 chains of object renamings.
6823 Handle case where root of renaming expression is itself a renaming.
6824 Use temp_parse_space for temporary name buffer.
6825 Handle renamings to dereferenced pointers (___XEXA suffices).
6827 (ada_parse, yyerror, string_to_operator,
6828 write_var_from_sym, write_var_from_name, write_attribute_call0,
6829 write_attribute_call1, write_attribute_calln,
6830 write_object_renaming): Protoize.
6832 (_initialize_ada_exp): New function.
6834 * ada-lang.c: Update copyright notice.
6835 General terminology change to conform to GNAT compiler usage:
6836 mangle => encode, demangle => decode
6837 Include gdb_obstack.h.
6846 (ADA_RETAIN_DOTS): Make sure this is defined.
6847 (TRUNCATION_TOWARDS_ZERO): Define.
6848 (struct string_vector): Define.
6849 (unresolved_names): Remove definition.
6850 (xnew_string_vector): New function.
6851 (string_vector_append): New function.
6852 (extract_string): Make static.
6853 (ada_unqualified_name): New function.
6854 (add_angle_brackets): New function.
6855 (function_name_from_pc): New function.
6856 (place_on_stack): Rename to ensure_lval.
6858 (ensure_lval): Renamed from place_on_stack.
6859 Make identity on lvals.
6861 (is_nonfunction): New interface.
6862 Only symbols in LOC_CONST class can be enumerals.
6863 (fill_in_ada_prototype): Remove; now independent of language.
6864 (add_defn_to_vec): Add obstack and symtab arguments.
6865 Use obstack to hold collected definitions.
6866 (num_defns_collected): New function.
6867 (defns_collected): New function.
6868 (ada_resolve_subexp): Rename to resolve_subexp.
6869 (resolve_subexp): Renamed from ada_resolve_subexp.
6870 (ada_op_name): Return non-const result.
6871 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6874 (to_fixed_array_type): Add declaration.
6875 (coerce_unspec_val_to_type): Remove offset parameter.
6876 (find_sal_from_funcs_and_line): New interface.
6877 (find_line_in_linetable): Ditto.
6879 (all_sals_for_line): Rename to ada_sals_for_line and make
6881 Add new parameter. When set, do not ask the user to choose the
6882 instance, but use the first one found instead.
6883 Use given line number in returned sals.
6885 Skip the prologue if funfirstline is set.
6886 Correct for memory leak when 0 lines found.
6888 (value_pos_atr): Use pos_atr.
6889 (pos_atr): New function.
6890 (standard_lookup): Add block parameter.
6892 (makeTimeStart): Remove declaration and uses.
6893 (makeTimeStop): Remove declaration and uses.
6895 (ada_completer_word_break_characters): Allow for VMS.
6896 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6897 (raise_sym_name): New constant.
6898 (raise_unhandled_sym_name): New constant.
6899 (raise_assert_sym_name): New constant.
6900 (process_raise_exception_name): New constant.
6901 (longest_exception_template): New constant.
6902 (warning_limit): New variable to limit warnings during expression
6904 (warnings_issued): New variable to keep track of warnings issued.
6905 (known_runtime_file_name_patterns): New constant.
6906 (known_auxiliary_function_name_patterns): New constant.
6907 (symbol_list_obstack): New variable.
6909 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6910 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6911 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6912 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6913 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6914 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6915 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6916 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6919 (ada_get_field_index): New function.
6920 (lim_warning): New function.
6921 (ada_translate_error_message): New function.
6922 (MAX_OF_SIZE): New function.
6923 (MIN_OF_SIZE): New function.
6924 (UMAX_OF_SIZE): New function.
6925 (UMIN_OF_SIZE): New function.
6926 (discrete_type_high_bound): New function.
6927 (discrete_type_low_bound): New function.
6928 (base_type): New function.
6929 (do_command): Remove.
6931 (ada_update_initial_language): Use language_ada, not language_unknown.
6932 (ada_encode): Renamed from ada_mangle.
6933 Obey ADA_RETAIN_DOTS.
6934 (ada_decode): Renamed from ada_demangle.
6935 Update coding conventions.
6936 (decoded_names_store): New hash table.
6937 (ada_decode_symbol): New function.
6938 (ada_la_decode): New function.
6940 (modify_general_field): Correct computations of offset and bit
6942 (desc_base_type): Handle ref types, too.
6943 (ada_is_direct_array_type): New function.
6945 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6946 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6947 (ada_is_bogus_array_descriptor,ada_type_of_array,
6948 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6949 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6950 ada_is_array_descriptor_type.
6952 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6953 (ada_is_packed_array_type): Handle pointers or
6954 references to packed arrays as well.
6955 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6956 (decode_packed_array_type): Search for the packed array type
6957 symbol in the currently selected block and associated
6959 Use lookup_symbol again.
6961 (decode_packed_array): Handle pointers and references.
6962 Update call to coerce_unspec_val_to_type.
6963 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6964 (ada_value_primitive_packed_val): Improve comment.
6966 (ada_index_type): Substitute int type for "undefined".
6967 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6968 ada_array_langth, ada_is_string_type): Use renamed
6969 ada_is_simple_array_type.
6970 (empty_array): New function.
6972 (ada_resolve): Rename to resolve.
6973 (resolve): Make static.
6974 Call renamed resolve_subexp.
6976 (ada_resolve_subexp): Rename to resolve_subexp.
6977 (resolve_subexp): Update comment.
6978 Decomment disabled code.
6979 Add LOC_COMPUTED* cases.
6980 Modify to use temporary struct symbols (marked as being in
6981 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6982 OP_UNRESOLVED_VALUE.
6983 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6986 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6987 Use new ada_lookup_symbol_list interface.
6988 Use new ada_resolve_function interface.
6989 Remove OP_TYPE case.
6991 (ada_args_match): Idiot proof against null actuals.
6992 Use intermediate variables to clarify.
6993 (ada_resolve_function): Update comment and interface.
6994 (mangled_ordered_before): Rename to encoded_ordered_before and
6996 (sort_choices): Update comment and interface.
6997 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6998 (user_select_syms): New interface.
6999 Use new sort_choices interface.
7000 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7001 (possible_user_operator_p): Idiot-proof against null values.
7002 (ada_simple_renamed_entity): Don't make cleanup; rely on
7003 caller to free result string.
7004 Remove const from return type.
7005 (make_array_descriptor): Rename uses of place_on_stack to
7007 Make sure that arrays are on stack.
7009 (HASH_SIZE): Define.
7010 (struct cache_entry): Define.
7011 (cache_space): Define.
7013 (clear_ada_sym_cache): New function.
7014 (find_entry): New function.
7015 (lookup_cached_symbol): New function.
7016 (defn_vector_size): Define.
7017 (cache_symbol): New function.
7018 (defn_symbols): Remove.
7020 (standard_lookup): Use lookup_symbol_in_language to get effect of
7024 (symbol_completion_match): New function.
7025 (symbol_completion_add): New function.
7026 (ada_make_symbol_completion_list): New function.
7028 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7029 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7030 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7031 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7033 (ada_lookup_simple_minsym): New function.
7034 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7036 (add_symbols_from_enclosing_procs): New interface.
7037 Conditionalize more helpfully.
7038 Don't bother if program isn't running.
7039 Use new interface to get_frame_block.
7040 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7042 (remove_extra_symbols): New interface.
7043 (xget_renaming_scope): New function.
7044 (is_package_name): New function.
7045 (renaming_is_visible): New function.
7046 (remove_out_of_scope_renamings): New function.
7048 (ada_lookup_symbol_list): New interface.
7049 Properly reinitialize the symbol list obstack.
7050 Don't call add_symbols_from_enclosing_procs if we start from a
7051 static or global block.
7052 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7053 add_symbols_from_enclosing_procs.
7054 Add symtab data to cached entries.
7055 Handle symbols prefixed with
7056 "standard__" specially; strip prefix and don't look in local symbols.
7057 Do not include out of scope renaming symbols in list of
7059 Add const to block parameter.
7060 Move check for non-local, non-global symbols earlier.
7061 Remove timing stuff.
7062 (ada_lookup_symbol): New interface.
7063 Find symtab as well.
7064 (ada_lookup_symbol_nonlocal): New function.
7066 (is_name_suffix): Enhance suffix detection to recognize
7067 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7068 (is_dot_digits_suffix): New function.
7069 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7071 (ada_add_block_symbols): New interface. Use obstack to return results
7072 in a vector of struct ada_symbol_infos. Add symtab argument.
7073 Use new interface to add_defn_to_vec.
7074 Remove calls to fill_in_ada_prototype.
7075 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7077 (ada_finish_decode_line_1): Add const qualification to local to fix
7079 Start looking in static block for functions to avoid attempts
7080 to search frame chain for up-level variables.
7081 Adapt to new ada_sals_for_line interface.
7082 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7083 Handle quoting of the function name inside the spec string.
7084 Skip prologue when funfirstline is set and update the
7085 function documentation to that effect.
7087 (debug_print_lines, debug_print_block, debug_print_blocks,
7088 debug_print_symtab): Remove.
7090 (ada_main_name): New function.
7091 (ada_exception_breakpoint_type): New function.
7092 (is_known_support_routine): New function.
7093 (ada_find_printable_frame): Renamed from find_printable_frame and made
7095 Remove level parameter.
7096 Use new interface to select_frame.
7098 (begin_command): Remove.
7099 (ada_adjust_exception_stop): New function.
7100 (ada_print_exception_stop): New function.
7101 (exception_name_from_cond): New function.
7102 (ada_report_exception_break): Replace disabled code with
7103 conditionalization on GNAT_GDB.
7104 Get the exception name from the condition string.
7105 Remove and move functionality into new functions
7106 ada_print_exception_breakpoint_task and
7107 ada_print_exception_breakpoint_nontask.
7108 (error_breakpoint_runtime_sym_not_found): New function.
7109 (is_runtime_sym_defined): New function.
7110 (ada_breakpoint_rewrite): Uncomment suppressed code.
7111 Use symbolic error-message and runtime-symbol names.
7112 Surround runtime symbol names in quotes.
7113 Allow non-specific breakpoints on exceptions and assertions before
7116 (ada_is_tagged_type): Add parameter.
7117 (ada_is_tag_type): New function.
7118 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7119 (ada_variant_discrim_type): Ditto.
7120 (value_tag_from_contents_and_address): New function.
7121 (type_from_tag): New function.
7122 (struct tag_args): New structure used to communicate with
7124 (ada_tag_name_1): New function.
7125 (ada_tag_name): New function.
7127 (ada_scan_number): Update comment.
7128 (find_struct_field): New function.
7129 (ada_search_struct_field): Make static.
7130 (ada_value_struct_elt): New version that returns references when
7131 given pointers or references to structs.
7132 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7133 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7135 (ada_value_ind): Use new ada_to_fixed_value interface.
7136 (ada_coerce_ref): Ditto.
7137 (field_offset): Remove.
7139 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7140 (ada_find_renaming_symbol): New function.
7141 (ada_prefer_type): Prefer named types over unnamed ones.
7142 (variant_field_index): New function.
7143 (contains_variant_part): Removed: subsumed by variant_field_index.
7144 (ada_template_to_fixed_record_type): New function, mostly from
7145 template_to_fixed_record_type.
7146 (template_to_fixed_record_type):
7147 Do not scan the type fields beyond the last one; prevents a
7149 Handle case where variant field is listed BEFORE discriminant it
7151 Fix calculation of record length when bit length is
7152 not evenly divisible by char length.
7153 Move code to ada_template_to_fixed_record_type and call it.
7155 (template_to_static_fixed_type): Revise comment.
7156 Modify to work on ordinary record types as well as templates,
7157 so as to handle fields that use ___XVE or ___XVU encodings.
7158 (to_record_with_fixed_variant_part): Fill out comment.
7159 Initialize C++ stuff in right type.
7160 Allow case where DVAL is null.
7161 Handle case where variant field is not last.
7162 Fix typo concerning record length.
7163 (to_fixed_record_type): Decomment disabled code.
7164 (to_fixed_record_type): Use variant_field_index instead of
7165 contains_variant_part.
7166 (to_fixed_variant_branch_type): Ditto.
7167 (to_fixed_array_type): Decomment disabled code.
7168 (ada_to_fixed_type): Convert tagged types to the specific type.
7169 Deactivate the size-check for array types in order to avoid
7170 some false size alarms.
7171 (to_static_fixed_type): Decomment disabled code.
7172 Modify to call template_to_static_fixed_type
7173 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7174 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7175 Remove valaddr argument, as it is never really used.
7176 (ada_to_fixed_value): Change interface to act on single struct value*
7178 (adjust_pc_past_prologue): New function.
7179 (ada_attribute_name): Modify to take enum exp_opcode argument.
7181 (ada_enum_name): Recognize new homonym-distinguishing convention.
7182 Adjust local variable's type to remove compiler warning.
7183 Fix a small problem in the part that unqualifies the enumeration name.
7184 (ada_value_binop): New function.
7185 (ada_value_equal): New function.
7187 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7188 Don't give error message when not doing normal evaluation
7189 and a tagged type doesn't seem to contain a structure member.
7190 Give error message for packed arrays.
7191 For indexing arrays, handle pointers to packed arrays correctly.
7192 Handle case of 'first and 'last attributes of bare integral type
7193 without encoded subtype info.
7194 Remove some unnecessary casts.
7195 Fix uninitialized value of type in computing 'first, 'last, or 'length
7197 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7198 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7200 Attributes are now exp_opcode values.
7201 Correct treatment of 'modulus.
7202 Better error message for taking 'length of wrong kind of type;
7204 Change EVAL_NORMAL to noside for consistency.
7205 Use ada_value_binop for DIV, MOD, REM.
7206 Make special case out of array of length 0, since an argument
7207 of 0 upsets some platforms' malloc.
7208 Use OP_STRING instead of OP_ARRAY.
7209 For slice, add check that we have an array type before extracting
7210 a slice out of it. Avoids a SEGV.
7211 When evaluating an array slice, if the array type is a reference to
7212 an aligner type, then replace the aligner type by the actual type.
7213 Decomment disabled code.
7214 Remove some dead code.
7215 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7216 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7217 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7218 and UNOP_MBR to UNOP_IN_RANGE.
7219 If an array type has a parallel ___XVE type, then use it.
7220 Turn arrays into pointers for lvalue arrays.
7221 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7222 bounds error and handle 0-length slices.
7224 When selecting fields, apply ada_to_fixed_value (because the fields
7225 might have ___XVU or ___XVE encodings even if not dynamic.)
7226 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7227 (ada_is_system_address_type): New function.
7229 (get_var_value): Use new interface to ada_lookup_symbol_list.
7230 (get_int_var_value): New interface.
7231 (to_fixed_range_type): Allow unknown bound, with warning.
7232 (ada_is_modular_type): Decomment disabled code.
7233 (ADA_OPERATORS): New definition.
7234 (ada_operator_length): New function.
7235 (ada_expr_op_name): New function.
7236 (ada_forward_operator_length): New function.
7237 (ada_dump_subexp_body): New function.
7238 (ada_print_subexp): New function.
7239 (ada_exp_descriptor): New constant.
7240 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7241 (ada_language_defn): Add ada_exp_descriptor entry.
7242 Change ada_parse => parse.
7243 Add post-parser entry.
7244 Use ada-specific non-local symbol lookup.
7245 Don't use C-style arrays.
7246 String lower-bound is 1.
7247 Decomment disabled code.
7248 (parse): New function.
7249 New fields ada_translate_error_message, ada_lookup_symbol,
7250 ada_lookup_minimal_symbol.
7252 * ada-lang.h: Update copyright dates.
7253 Replace the mangle/demangle terminology throughout by the
7254 more appropriate encode/decode one.
7255 Include breakpoint.h.
7256 Forward declare struct partial_symbol, struct block.
7257 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7258 (EXTRACT_ADDRESS): Remove.
7259 (EXTRACT_INT): Remove.
7260 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7261 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7262 (MAX_RENAMING_CHAIN_LENGTH): Define.
7263 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7265 (enum task_states): Remove.
7266 ada_task_states: Remove.
7267 (fat_string): Remove.
7268 (struct entry_call): Remove.
7269 (struct task_fields): Remove.
7270 (struct task_entry): Remove.
7272 (struct ada_symbol_info): Define.
7273 (enum ada_attribute): Remove.
7274 (enum ada_operator): Define.
7276 (ada_get_field_index): Declare.
7277 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7278 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7279 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7280 (ada_lookup_symbol_list): New interface.
7281 (ada_decode_symbol): Declare.
7282 (ada_decode): Declare.
7283 (ada_lookup_symbol): New interface.
7284 (ada_update_initial_language): Declare.
7285 (ada_lookup_simple_minsym): Declare.
7286 (user_select_syms): New interface.
7287 (ada_sals_for_line): Declare.
7288 (ada_is_tagged_type): New interface.
7289 (ada_tag_name): Declare.
7290 (ada_lookup_struct_elt_type): Remove declaration.
7291 (ada_search_struct_field): Remove declaration.
7292 (ada_attribute_name): New interface.
7293 (ada_is_system_address_type): Declare.
7294 (ada_to_fixed_value): Remove declaration.
7295 (ada_template_to_fixed_record_type_1): Declare.
7296 (get_int_var_value): New interface.
7297 (ada_find_any_symbol): Declare.
7298 (ada_find_renaming_symbol): Declare.
7299 (ada_mangle): Rename to ada_encode.
7300 (ada_simple_renamed_entity): Remove const.
7301 (ada_main_name): Declare.
7302 (get_current_task): Rename to ada_get_current_task.
7303 (get_entry_number): Remove declaration.
7304 (ada_report_exception_break): Remove declaration.
7305 (ada_print_exception_breakpoint_nontask): Declare.
7306 (ada_print_exception_breakpoint_task): Declare.
7307 (ada_find_printable_frame): Declare.
7309 * ada-lex.l: Update copyright notices.
7310 Use xmalloc and xfree instead of malloc and free.
7311 Use new interface to name_lookup.
7312 Use new interface to
7313 ada_mangle=>ada_encode.
7314 Redo handling of '$...' variable to parallel current treatment
7316 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7317 digit_to_int, strtoulst, processInt, processReal, processId,
7318 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7321 (processInt): Use cast to remove harmless warning.
7322 (processReal): Modify to get rid of compiler warning on scan formats.
7324 (processId): Replace xmalloc with obstack_alloc for name and remove
7325 call to ada_name_string_cleanup.
7326 Remove obsolete disabled code.
7327 (name_lookup): Ditto.
7329 Use obsavestring on temp_parse_space instead of savestring
7330 on name, and remove call to ada_name_string_cleanup.
7331 Free string returned from ada_simple_renamed_entity.
7332 Use new interface to ada_lookup_symbol_list.
7333 Decomment disabled code.
7334 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7336 When a type name lookup succeeds as a result of
7337 lookup_primitive_typename, check for regular type entry that has not
7339 Limit length of chain of renamed symbols we are willing to follow.
7340 Do not break names beginning with "standard__" into segments.
7341 (block_lookup): Use new interface to ada_lookup_symbol_list.
7343 * ada-typeprint.c: Update copyright notice.
7344 (demangled_type_name): Rename to decoded_type_name.
7345 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7346 (print_range_bound): Correct handling of negative
7347 bounds that make the index type looked unsigned under STABS.
7348 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7349 (print_range_type_named): Use the builtin int type if no type
7350 corresponding to the given type name could be found.
7351 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7352 Add some bullet-proofing.
7353 (print_variant_clauses): Allow for variant branches with ___XVU
7354 encodings that are not dynamic fields.
7355 Use new interface to ada_is_tagged_type.
7356 (print_record_type): Allow for fields with ___XVE encodings that
7357 are not dynamic fields.
7358 Use new interface to ada_is_tagged_type.
7359 (ada_print_type): ada_is_array_descriptor =>
7360 ada_is_array_descriptor_type.
7362 * ada-valprint.c: Update copyright notice.
7363 Include gdb_string.h
7365 (ui_memcpy): New function.
7366 (ada_print_floating): New function.
7367 (ada_print_str): Order arguments correctly.
7368 Correct handling of empty arrays and arrays of 0-length items.
7369 ada_is_array_descriptor => ada_is_array_descriptor_type
7370 Print values of type System.Address in hexadecimal format.
7371 Use ada_print_floating to print floating-point numbers in Ada format.
7372 Print class tag values with type names.
7373 No longer print the address of reference values. Avoids
7374 a potential confusion.
7375 (ada_value_print): Stop printing the object type for reference
7376 values, but preserve that behavior for access types. Avoids
7377 a potential confusion.
7378 Simplify one conditional expression, as the first part is now
7380 ada_is_array_descriptor => ada_is_array_descriptor_type
7381 Add check for arrays for null records, and print them by hand.
7383 2004-06-01 Jim Blandy <jimb@redhat.com>
7385 * ppc-tdep.h: Delete unused 'regoff' member.
7386 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7388 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7391 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7392 (hpread_read_struct_type): Likewise.
7394 2004-06-01 Andrew Cagney <cagney@gnu.org>
7396 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7397 instead of xasprintf.
7398 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7399 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7400 (mi_cmd_data_list_register_names)
7401 (mi_cmd_data_list_changed_registers)
7402 (mi_cmd_data_list_register_values)
7403 (get_register, mi_cmd_data_write_register_values)
7404 (mi_cmd_data_write_register_values)
7405 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7406 (mi_cmd_target_download, mi_cmd_target_select)
7407 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7408 (mi_execute_cli_command, mi_execute_async_cli_command)
7409 (mi_execute_async_cli_command): Ditto.
7410 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7411 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7413 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7414 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7415 error_last_message instead of mi_error_last_message.
7416 * mi/mi-main.c (mi_error_last_message): Delete function.
7418 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7419 "invalid number of columns" error. Delete redundant "out of
7422 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7424 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7425 (gregset_t, fpregset_t): Remove typedefs.
7426 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7427 (REG_OFFSET): Rename argument.
7428 (i386bsd_r_reg_offset): Rename from reg_offset.
7429 (REG_ADDR): Remove macro.
7430 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7432 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7433 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7434 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7435 instead of supply_gregset.
7436 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7437 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7438 instead of fill_gregset.
7439 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7441 * i386bsd-nat.c: Don't include "gregset.h".
7442 (supply_gregset, fill_gregset): Make static.
7443 (supply_fpregset, fill_fpregset): Remove.
7444 * Makefile.in (i386bsd-nat.o): Update dependencies.
7446 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7448 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7449 "gdb_assert.h". Con't include "gregset.h".
7450 (fbsd_make_corefile_notes): Use regset-based core file support
7451 instead off fill_gregset and fill_fpregset.
7452 * Makefile.in (fbsd-proc.o): Update dependencies.
7454 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7456 (m88k_frame_prev_register): Simplify code a bit.
7458 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7459 (amd64_collect_fpregset): New function.
7460 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7462 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7464 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7465 (i386_collect_gregset): New function.
7466 (i386_supply_fpregset): Adjust comment.
7467 (i386_collect_fpregset): New function.
7468 (i386_regset_from_core_section): Use i386_collect_gregset and
7469 i386_collect_fpregset.
7471 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7472 handle VALUEP being null.
7474 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7476 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7478 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7480 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7481 assembler in OpenBSD 3.5-current.
7482 (amd64obsd_sigcontext_addr): Likewise.
7484 2004-05-28 Jim Blandy <jimb@redhat.com>
7486 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7487 register set, so our regcache isn't declared "legacy" and our E500
7488 pseudoregister read and write functions aren't ignored.
7489 (rs6000_register_byte, rs6000_register_raw_size,
7490 rs6000_register_virtual_type, rs6000_register_convertible,
7491 rs6000_register_convert_to_virtual,
7492 rs6000_register_convert_to_raw): Deleted.
7493 (rs6000_register_type, rs6000_convert_register_p,
7494 rs6000_register_to_value, rs6000_value_to_register): New
7496 (rs6000_gdbarch_init): Don't register
7497 gdbarch_deprecated_register_size,
7498 gdbarch_deprecated_register_bytes,
7499 gdbarch_deprecated_register_byte,
7500 gdbarch_deprecated_register_raw_size,
7501 gdbarch_deprecated_register_virtual_type,
7502 gdbarch_deprecated_register_convertible,
7503 gdbarch_deprecated_register_convert_to_virtual, or
7504 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7505 register gdbarch_register_type, gdbarch_convert_register_p,
7506 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7508 2004-05-26 Jim Blandy <jimb@redhat.com>
7510 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7511 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7512 functions, updated to match the register numberings used in GCC.
7513 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7514 rs6000_dwarf2_reg_to_regnum as register number conversions
7515 functions for STABS and Dwarf2.
7517 2004-05-26 Randolph Chung <tausq@debian.org>
7519 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7522 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7524 * NEWS: Document new "start" command.
7526 2004-05-25 Randolph Chung <tausq@debian.org>
7528 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7531 2004-05-25 Randolph Chung <tausq@debian.org>
7533 * hppa-hpux-tdep.c (offsetof): Define.
7534 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7535 (hppa32_hpux_frame_base_before_sigtramp)
7536 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7537 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7538 (hppa64_hpux_frame_base_before_sigtramp)
7539 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7541 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7542 (hppa_hpux_sigtramp_frame_unwind_cache)
7543 (hppa_hpux_sigtramp_frame_this_id)
7544 (hppa_hpux_sigtramp_frame_prev_register)
7545 (hppa_hpux_sigtramp_frame_unwind)
7546 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7547 (hppa_hpux_init_abi): Register sigtramp unwinder.
7548 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7550 2004-05-25 Randolph Chung <tausq@debian.org>
7552 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7553 and multiple stack unwinds.
7554 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7556 2004-05-25 Andrew Cagney <cagney@gnu.org>
7558 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7559 * symfile-mem.h: Delete file.
7560 * symfile-mem.c: Do not include "symfile-mem.h".
7561 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7562 "struct bfd_section". When an error do not bother returning NULL.
7563 (add_symbol_file_from_memory_command): Use "struct bfd" and
7564 "struct bfd_section".
7565 * Makefile.in (symfile_mem_h): Delete.
7566 (symfile-mem.o): Update dependencies.
7568 2004-05-25 Nick Roberts <nickrob@gnu.org>
7570 * gdb-mi.el: New file.
7572 2004-05-25 Andrew Cagney <cagney@gnu.org>
7574 * inftarg.c: Include "observer.h".
7575 (child_attach, child_create_inferior): Notify inferior_created.
7576 * corelow.c: Include "observer.h".
7577 (core_open): Notify inferior_created.
7578 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7580 2004-05-25 Andrew Cagney <cagney@gnu.org>
7582 * target.h (struct target_ops): Add from_tty to
7584 (target_create_inferior, find_default_create_inferior): Update.
7585 * infcmd.c (run_command): Update.
7586 * wince.c (child_create_inferior): Update.
7587 * win32-nat.c (child_create_inferior): Update.
7588 * uw-thread.c (uw_thread_create_inferior): Update.
7589 * thread-db.c (thread_db_create_inferior): Update.
7590 * target.c (debug_to_create_inferior)
7591 (find_default_create_inferior): Update.
7592 (maybe_kill_then_create_inferior): Update.
7593 * sol-thread.c (sol_thread_create_inferior): Update.
7594 * remote.c (extended_remote_async_create_inferior)
7595 (extended_remote_create_inferior): Update.
7596 * remote-vx.c (vx_create_inferior): Update.
7597 * remote-st.c (st2000_create_inferior): Update.
7598 * remote-sim.c (gdbsim_create_inferior): Update.
7599 * remote-sds.c (sds_create_inferior): Update.
7600 * remote-rdp.c (remote_rdp_create_inferior): Update.
7601 * remote-rdi.c (arm_rdi_create_inferior): Update.
7602 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7603 * remote-e7000.c (e7000_create_inferior): Update.
7604 * procfs.c (procfs_create_inferior): Update.
7605 * ocd.c (ocd_create_inferior): Update.
7606 * ocd.h (ocd_create_inferior): Update.
7607 * nto-procfs.c (procfs_create_inferior): Update.
7608 * monitor.c (monitor_create_inferior): Update.
7609 * lin-lwp.c (lin_lwp_create_inferior): Update.
7610 * inftarg.c (child_create_inferior): Update.
7611 * hpux-thread.c (hpux_thread_create_inferior): Update.
7612 * gnu-nat.c (gnu_create_inferior): Update.
7614 2004-05-25 Andrew Cagney <cagney@gnu.com>
7616 * MAINTAINERS: Update e-mail address.
7618 2004-05-24 Randolph Chung <tausq@debian.org>
7620 * thread.c (info_threads_command, thread_apply_all_command)
7621 (thread_apply_command, thread_command, do_captured_thread_select):
7622 Remove HPUXHPPA-specific code.
7624 2004-05-24 Randolph Chung <tausq@debian.org>
7626 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7628 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7631 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7633 * infcmd.c (kill_if_already_running): New function, extracted
7635 (run_command): Replace extracted code by call to
7636 kill_if_already_running().
7637 (start_command): New function.
7638 (_initialize_infcmd): Add "start" command.
7640 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7642 Add OpenBSD/m88k support.
7643 * NEWS (New native configurations): Mention OpenBSD/m88k.
7644 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7645 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7646 * Makefile.in (m88k_tdep_h): New variable.
7647 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7648 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7649 * configure.host: Add m88*-*-openbsd*.
7650 * configure.tgt: Add m88*-*-openbsd*.
7652 2004-05-24 Jim Blandy <jimb@redhat.com>
7654 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7657 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7659 * symtab.c (fixup_section): Search section table when lookup by
7662 2004-05-24 Randolph Chung <tausq@debian.org>
7664 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7667 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7669 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7670 register number in regcache_raw_collect call.
7671 (m68kbsd_collect_fpregset): Likewise.
7672 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7674 * regset.h (struct regset): Add back `regset' member.
7676 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7678 * configure.in: Check for td_pcb in `struct thread'.
7679 * configure, config.in: Regenerated.
7681 * dpx2-nat.c: Remove file.
7682 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7683 (dpx2-nat.o): Remove dependencies.
7685 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7686 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7687 (amd64obsd_supply_pcb): New function.
7688 (_initialize_amd64obsd_nat): Enable libkvm interface.
7689 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7690 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7691 (LOADLIBES): New variable.
7693 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7694 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7695 (sparc32nbsd_supply_pcb): New function.
7696 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7697 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7698 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7699 (LOADLIBES): New variable.
7701 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7703 * bsd-kvm.c, bsd-kvm.h: New files.
7704 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7706 (i386fbsd_supply_pcb): New function.
7707 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7708 (i386fbsd-nat.o): Update dependencies.
7709 (bsd_kvm_h): New variable.
7710 (bsd-kvm.o): New dependency.
7711 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7712 (LOADLIBES): New variable.
7714 * regset.c: Tweak comment.
7715 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7717 * regset.h: Update copyright year.
7718 (struct regset): Remove `descr' member, add `gdbarch' member.
7719 (regset_alloc): Adjust prototype and comment.
7720 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7721 (i386_supply_fpregset): Likewise.
7722 (i386_regset_from_core_section): Update call to regset_alloc.
7723 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7725 (i386obsd_aout_regset_from_core_section): Update call to
7727 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7729 (i386nbsd_aout_regset_from_core_section): Update call to
7731 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7733 (amd64_regset_from_core_section): Update call to regset_alloc.
7734 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7736 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7737 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7738 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7739 (sparc32nbsd_init_abi): Update call to regset_alloc.
7740 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7741 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7742 (sparc64obsd_init_abi): Update call to regset_alloc.
7743 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7744 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7745 (sparc64nbsd_init_abi): Update call to regset_alloc.
7746 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7747 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7748 (sparc64fbsd_init_abi): Update call to regset_alloc.
7750 2004-05-22 Jim Blandy <jimb@redhat.com>
7752 * ppc-tdep.h (spe_register_p): New declaration.
7753 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7755 * rs6000-tdep.c (spe_register_p): New function.
7756 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7758 (rs6000_gdbarch_init): Initialize the new members of the tdep
7761 2004-05-21 Jim Blandy <jimb@redhat.com>
7763 * ppc-linux-nat.c (fetch_register): Move code back to be next
7764 to the comment that describes it. (Moved code, instead of
7765 comment, for symmetry with store_register.)
7767 Allocate regset structures in the gdbarch's obstack, not using
7769 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7770 Add 'arch' argument. Allocate the regset on arch's obstack, not
7772 * regset.h (regset_alloc): Update declaration.
7773 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7775 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7776 * i386-tdep.c (i386_regset_from_core_section): Same.
7777 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7778 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7779 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7780 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7781 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7782 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7784 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7786 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7788 2004-05-21 Jim Blandy <jimb@redhat.com>
7790 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7791 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7793 2004-05-20 Jim Blandy <jimb@redhat.com>
7795 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7797 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7799 * regset.h: Make prototype const-correct.
7800 * regset.c (regset_xmalloc): Make const-correct.
7802 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7804 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7805 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7806 (symbol_search_name): Declare.
7808 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7809 (iter_name_next_hashed): Ditto.
7810 (iter_name_next_linear): Ditto.
7811 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7813 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7814 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7815 (symbol_search_name): New function.
7817 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7819 * minsyms.c (build_minimal_symbol_hash_tables): Change
7820 test for adding to demangled hash table to check for difference
7821 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7823 2004-05-19 Jim Blandy <jimb@redhat.com>
7825 Use a constructor function to create regset structures.
7826 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7827 (struct regset): Use supply_regset_ftype. Add new
7828 'collect_regset' member.
7829 (regset_xmalloc): New declaration.
7830 * regset.c: New file.
7831 * am64-tdep.c (amd64_regset_from_core_section): Use
7832 regset_xmalloc to construct regset structures.
7833 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7834 * i386-tdep.c (i386_regset_from_core_section): Same.
7835 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7836 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7837 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7838 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7839 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7840 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7841 * Makefile.in (COMMON_OBS): Add regset.o.
7842 (regset.o): New rule.
7844 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7846 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7847 and pthread_cond_wait.c.
7849 2004-05-18 Jim Blandy <jimb@redhat.com>
7851 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7852 before the mach-specific switch, and then let the individual cases
7853 override the defaults, rather than leaving them uninitialized
7854 until the switch and then setting them in each case.
7856 2004-05-18 Randolph Chung <tausq@debian.org>
7858 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7859 millicode functions.
7861 2004-05-18 Randolph Chung <tausq@debian.org>
7863 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7864 references to dld_flags_buffer consistent.
7866 2004-05-18 Randolph Chung <tausq@debian.org>
7868 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7869 it for unwinding the stack.
7871 2004-05-18 Randolph Chung <tausq@debian.org>
7873 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7874 Undefine these so we can overide them using gdbarch.
7876 2004-05-18 Randolph Chung <tausq@debian.org>
7878 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7879 handling for 64-bit HPUX (elf).
7881 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7883 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7885 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7886 * ia64-tdep.c (examine_prologue): Likewise.
7887 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7888 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7890 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7892 * vax-tdep.c (vax_return_value): Implement
7893 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7895 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7897 * vax-tdep.c (vax_return_value): Fix typo.
7899 2004-05-17 Andrew Cagney <cagney@redhat.com>
7901 * MAINTAINERS: Mark Salter was also responsible for
7904 * NEWS: Mention signal fixes.
7906 2004-05-17 Randolph Chung <tausq@debian.org>
7908 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7909 check to see if we are unwinding an export stub. Export stubs clobber
7910 the %rp in the call path and stores the original rp in a stack slot.
7912 2004-05-17 Jim Blandy <jimb@redhat.com>
7914 * MAINTAINERS: Update address for J.T. Conklin.
7916 2004-05-17 Randolph Chung <tausq@debian.org>
7918 * hppa-tdep.c: Remove superfluous #include's.
7919 * Makefile.in (hppa-tdep.o): Update dependencies.
7921 2004-05-17 Randolph Chung <tausq@debian.org>
7923 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7924 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7925 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7926 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7927 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7928 Remove static function declarations.
7930 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7932 * alphabsd-nat.c: Update copyright year.
7933 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7935 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7938 * m68k-tdep.c (m68k_svr4_return_value): Implement
7939 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7941 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7943 * sol-thread.c Update copyright year. Fix various coding
7944 standards violations. Tweak a few comments.
7945 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7948 2004-05-15 Randolph Chung <tausq@debian.org>
7950 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7951 as pointer instead of array reference since HPUX compiler does
7952 not accept unsized array arguments.
7953 * somsolib.c (dld_flags_buffer): Use constant array size.
7955 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7957 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7958 offset with decimal offset.
7959 (amd64obsd_sigcontext_addr): Return correct address for entire
7962 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7963 instead of get_frame_base.
7965 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7966 (fill_gregset): Use regcache_raw_collect.
7968 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7971 * config/sparc/tm-nbsd64.h: Remove file.
7972 * config/tm-sunos.h: Remove file.
7974 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7976 * rs6000-tdep.c (store_param_on_stack_p): New function,
7977 an improved version of some code extracted from skip_prologue().
7978 (skip_prologue): Use store_param_on_stack_p() to detect
7979 instructions saving a parameter on the stack. Detect when r0
7980 is used to save a parameter.
7981 Do not mark "li rx, SIMM" instructions as part of the prologue,
7982 unless the following instruction is also part of the prologue.
7984 2004-05-14 Andrew Cagney <cagney@redhat.com>
7986 * infrun.c (handle_inferior_event): Simplify
7987 STEP_OVER_UNDEBUGGABLE.
7989 * infrun.c (handle_step_into_function): Delete function.
7990 (handle_inferior_event): Inline calls to
7991 handle_step_into_function.
7993 2004-05-14 Jerome Guitton <guitton@gnat.com>
7995 * rs6000-nat.c: Fix a comment.
7997 2004-05-12 David Anderson <davea@sgi.com>
7999 Committed by Jim Blandy <jimb@redhat.com>:
8000 * regcache.c (struct regcache_descr): fix comment spelling.
8002 2004-05-13 J. Brobecker <brobecker@gnat.com>
8004 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8005 Fixes a link link failure.
8007 2004-05-13 J. Brobecker <brobecker@gnat.com>
8009 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8010 error that was causing the build to fail.
8012 2004-05-13 J. Brobecker <brobecker@gnat.com>
8014 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8015 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8017 2004-05-13 Andrew Cagney <cagney@redhat.com>
8019 * infrun.c (handle_inferior_event): Check for
8020 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8021 calls. Update comments.
8023 2004-05-13 Jim Blandy <jimb@redhat.com>
8025 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8026 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8027 (store_regs_user_thread, store_regs_kernel_thread): Use
8028 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8029 * ppc-linux-nat.c (fill_gregset): Same.
8030 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8031 (ppc_linux_sigtramp_cache): Same.
8032 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8033 (ppcnbsd_sigtramp_cache_init): Same.
8034 * rs6000-nat.c (fetch_core_registers): Same.
8035 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8036 (rs6000_frame_cache): Same.
8038 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8039 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8040 of assuming that the gprs are numbered starting with zero.
8041 * ppc-linux-nat.c (fill_gregset): Same.
8042 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8043 * ppcnbsd-nat.c (getregs_supplies): Same.
8044 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8045 * rs6000-nat.c (fetch_core_registers): Same.
8046 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8048 2004-05-07 Michael Snyder <msnyder@redhat.com>
8050 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8051 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8053 2004-05-13 Andrew Cagney <cagney@redhat.com>
8055 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8057 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8059 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8060 base_address for shared libraries.
8062 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8064 * MAINTAINERS (write after approval): Add myself.
8066 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8068 * breakpoint.c (bpstat_stop_status): Add new argument
8069 STOPPED_BY_WATCHPOINT. Use it instead of testing
8070 target_stopped_data_address agaist 0 to check whether
8071 or not we stopped due to a hardware watchpoint.
8072 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8073 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8076 2004-05-12 Jim Blandy <jimb@redhat.com>
8078 * configure.in: When checking whether we should use the -bbigtoc
8079 option, don't forget to restore the original value of LDFLAGS.
8080 * configure: Regenerated.
8082 2004-05-12 Andrew Cagney <cagney@redhat.com>
8084 * thread.c (load_infrun_state): Delete step_sp.
8085 * infrun.c (context_switch): Ditto.
8086 * inferior.h (step_sp): Ditto.
8087 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8088 * gdbthread.h (struct thread_info, save_infrun_state)
8089 (restore_infrun_state): Ditto.
8091 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8093 * MAINTAINERS (write after approval): Add myself.
8095 2004-05-12 Andrew Cagney <cagney@redhat.com>
8097 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8098 eliminate reference to step_sp.
8099 (struct execution_control_state, init_execution_control_state)
8100 (handle_inferior_event, keep_going): Delete update_step_sp and
8102 * infcmd.c (step_sp): Note that variable is unused.
8104 2004-05-11 Andrew Cagney <cagney@redhat.com>
8106 * infrun.c (step_over_function): Delete function.
8107 (handle_step_into_function): Use insert_step_resume_breakpoint.
8108 (insert_step_resume_breakpoint): Fix assertion.
8110 2004-05-11 Nick Roberts <nickrob@gnu.org>
8112 * utils.c (defaulted_query): Just use the normal query input type
8113 when printing the annotations.
8115 2004-05-11 Andrew Cagney <cagney@redhat.com>
8117 * infrun.c (handle_inferior_event): Simplify code handling
8118 step-into or return-from a signal trampoline.
8120 2004-05-11 Andrew Cagney <cagney@redhat.com>
8122 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8123 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8125 2004-05-10 Jim Blandy <jimb@redhat.com>
8127 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8128 with a call to internal_error.
8130 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8131 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8132 processor variant lacks those registers.
8133 (ppc_floating_point_unit_p): Change description to make it clear
8134 that this returns info about the ISA, not the ABI.
8135 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8136 return true or false by checking tdep->ppc_fp0_regnum and
8137 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8138 arch/mach switching done in rs6000_gdbarch_init; it's better to
8139 keep that logic there, and just check the results here.
8140 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8141 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8142 floating-point registers.
8143 (ppc_supply_fpregset, ppc_collect_fpregset)
8144 (rs6000_push_dummy_call, rs6000_extract_return_value)
8145 (rs6000_store_return_value): Assert that we have floating-point
8147 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8148 (rs6000_frame_cache): Don't note the locations at which
8149 floating-point registers were saved if we have no fprs.
8150 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8152 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8153 (store_regs_user_thread, store_regs_kernel_thread): Only call
8154 supply_fprs / fill_fprs if we actually have floating-point
8156 (special_register_p): Check ppc_fpscr_regnum before matching
8158 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8159 supply / collect fpscr if we don't have it.
8160 * ppc-bdm.c: #include "gdb_assert.h".
8161 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8162 have floating-point registers, since I can't test this code on
8163 FP-free systems to adapt it.
8164 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8165 fpscr and floating point register numbers if they don't exist.
8166 (fetch_register): Assert that we have floating-point registers
8167 before we reach the code that handles them.
8168 (store_register): Same. And use tdep instead of calling
8170 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8172 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8173 fprs and fpscr if we don't have them.
8174 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8176 * ppcnbsd-nat.c: #include "gdb_assert.h".
8177 (getfpregs_supplies): Assert that we have floating-point registers.
8178 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8179 * ppcobsd-tdep.c: #include "gdb_assert.h".
8180 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8181 have floating-point registers.
8182 * rs6000-nat.c (regmap): Don't match against the fpscr and
8183 floating point register numbers if they don't exist.
8184 (fetch_inferior_registers, store_inferior_registers,
8185 fetch_core_registers): Only fetch / store / supply the
8186 floating-point registers and the fpscr if we have them.
8187 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8188 (ppcobsd-tdep.o): Update dependencies.
8190 2004-05-10 Andrew Cagney <cagney@redhat.com>
8192 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8193 (context_switch): Do not switch through_sigtramp_breakpoint.
8194 * gdbthread.h (save_infrun_state, load_infrun_state)
8195 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8196 and structure member.
8197 * thread.c (load_infrun_state, save_infrun_state): Update.
8199 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8201 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8203 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8205 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8207 * aclocal.m4: Regenerate.
8209 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8211 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8213 2004-05-10 Andrew Cagney <cagney@redhat.com>
8215 * infrun.c (check_sigtramp2): Delete function.
8216 (handle_inferior_event): When single stepping, and taking a
8217 signal, set a breakpoint at the signal return address. Delete
8218 redundant calls to check_sigtramp2.
8219 (insert_step_resume_breakpoint): New function.
8220 (through_sigtramp_breakpoint, handle_inferior_event)
8221 (follow_exec, wait_for_inferior, fetch_inferior_event)
8222 (currently_stepping, keep_going): Delete most uses of
8223 through_sigtramp_breakpoint, not that it should be deleted.
8224 (delete_breakpoint_current_contents): Delete function.
8226 2004-05-10 Randolph Chung <tausq@debian.org>
8228 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8230 * config/pa/tm-linux.h: New file.
8232 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8234 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8235 of prefixes. Don't print the prefix twice in the CLI.
8237 2004-05-10 Jim Blandy <jimb@redhat.com>
8239 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8240 collect all the gprs.
8242 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8243 loop collecting gprs.
8245 2004-05-09 Andrew Cagney <cagney@redhat.com>
8247 * remote-vx.c (net_step): Delete step-range code.
8248 * remote.c (remote_resume, init_all_packet_configs)
8249 (set_remote_protocol_E_packet_cmd)
8250 (show_remote_protocol_E_packet_cmd)
8251 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8252 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8253 (show_remote_protocol_e_packet_cmd): Ditto.
8255 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8257 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8259 * hppa-tdep.h: Update copyright year.
8260 (struct trad_frame_saved_reg): Add opaque declaration.
8262 * amd64-tdep.c (amd64_return_value): Implement
8263 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8265 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8266 (m68k_value_to_register): New functions.
8267 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8270 * defs.h (enum return_value_convention): Add
8271 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8272 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8273 * infcmd.c (legacy_return_value): New function.
8274 (print_return_value): Rwerite to implement
8275 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8276 * values.c (using_struct_return): Check for inequality to
8277 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8278 RETURN_VALUE_STRUCT_CONVENTION.
8279 * i386-tdep.c (i386_return_value): Implement
8280 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8282 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8283 include "symtab.h", "opcode/vax.h" and "inferior.h".
8284 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8285 to read_memory_unsigned_integer.
8286 (vax_gdbarch_init): Reorder.
8287 (_initialize_vax_tdep): Spell out prototype.
8288 * Makefile.in (vax-tdep.o): Update dependencies.
8290 2004-05-08 Andrew Cagney <cagney@redhat.com>
8292 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8293 * target.c (target_detach, target_disconnect): Ditto.
8295 * infcall.c (call_function_by_hand): When no
8296 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8297 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8298 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8299 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8300 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8302 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8303 * gdbarch.h, gdbarch.c: Re-generate.
8304 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8305 deprecated_fix_call_dummy.
8306 * v850-tdep.c (v850_gdbarch_init): Ditto.
8307 * infcall.c (call_function_by_hand): Do not call
8308 DEPRECATED_FIX_CALL_DUMMY.
8310 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8311 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8314 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8315 deprecated_sizeof_call_dummy_words.
8316 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8318 * v850-tdep.c (v850_gdbarch_init): Ditto.
8319 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8320 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8322 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8323 * arch-utils.h (legacy_call_dummy_words)
8324 (legacy_sizeof_call_dummy_words): Delete declarations.
8325 * arch-utils.c (legacy_call_dummy_words)
8326 (legacy_sizeof_call_dummy_words): Delete variables.
8328 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8329 * gdbarch.h, gdbarch.c: Re-generate.
8330 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8331 * infcall.c (call_function_by_hand): Eliminate call to
8332 DEPRECATED_PUSH_DUMMY_FRAME.
8333 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8335 (ns32k_push_dummy_frame): Delete function.
8337 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8338 deprecated_call_dummy_breakpoint_offset or
8339 deprecated_call_dummy_start_offset.
8340 * dummy-frame.c, arm-tdep.c: Update comments.
8341 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8342 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8343 * gdbarch.h, gdbarch.c: Re-generate.
8345 * infcall.c (legacy_push_dummy_code): Delete function.
8346 (push_dummy_code): Delete call.
8348 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8349 * gdbarch.h, gdbarch.c: Re-generate.
8350 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8351 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8352 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8353 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8355 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8356 (struct frame_info): Delete opaque declaration.
8357 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8358 * frame.c (get_frame_type): Delete call.
8360 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8362 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8363 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8365 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8367 * alphanbsd-tdep.c: Include "gdb_string.h".
8368 * armnbsd-tdep.c: Update copyright year.
8369 Include "gdb_string.h".
8370 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8373 * delta68-nat.c: Remove file.
8374 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8375 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8376 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8377 (delta68-nat.o): Remove dependency.
8379 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8381 (m68k_gdbarch_init): Don't set
8382 deprecated_frameless_function_invocation.
8384 2004-05-07 Randolph Chung <tausq@debian.org>
8386 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8387 read_memory_nobpt for code reading when doing frame unwinding.
8388 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8390 2004-05-07 Randolph Chung <tausq@debian.org>
8392 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8393 instead of sp, handle sigaltstack case.
8394 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8395 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8396 signal handler and not that of the caller.
8397 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8398 hppa_linux_sigtramp_find_sigcontext.
8400 2004-05-07 Randolph Chung <tausq@debian.org>
8402 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8404 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8405 * hppa-linux-nat.c (fetch_register, store_register): Define.
8406 (fetch_inferior_registers, store_inferior_registers): Define.
8407 (supply_gregset): Add comment and clean up some unneeded code.
8408 (fill_gregset): Add comment and fix so that it saves registers in
8409 the right place in the gregset.
8410 (fill_fpregset): Fix buffer overrun problem.
8411 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8413 2004-05-07 Randolph Chung <tausq@debian.org>
8415 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8416 do common handling of the pcoqt register.
8417 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8418 to use helper function.
8419 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8420 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8421 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8422 generic fallback unwinder when all else fails.
8423 (hppa_gdbarch_init): Add fallback sniffer.
8424 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8425 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8426 to use helper function.
8428 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8430 * config/djgpp/fnchange.lst: Add translation rules for
8431 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8433 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8435 * frame.c (get_prev_frame_1): Work around GCC bug.
8436 * frame.h: Add comment about GCC bug.
8438 2004-05-07 Andrew Cagney <cagney@redhat.com>
8440 * observer.c: Include "commands.h" and "gdbcmd.h".
8441 (observer_debug, _initialize_observer): Add the
8442 command "set/show debug observer".
8443 * observer.sh: When observer debugging, log notify calls.
8444 * Makefile.in (observer.o): Update dependencies.
8446 2004-05-07 Jason Molenda (jmolenda@apple.com)
8448 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8450 2004-05-07 Jim Blandy <jimb@redhat.com>
8452 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8453 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8454 to recognize gpr regnums, instead of assuming that
8455 tdep->ppc_fp0_regnum marks the end of the general-purpose
8458 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8459 the given architecture has floating-point registers.
8461 2004-05-07 Andrew Cagney <cagney@redhat.com>
8463 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8465 * gdbarch.h, gdbarch.c: Re-generate.
8466 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8467 deprecated_use_generic_dummy_frames.
8469 2004-05-07 Brian Ford <ford@vss.fsi.com>
8471 * NEWS: Mention Cygwin DWARF 2 support.
8473 2004-05-07 Andrew Cagney <cagney@redhat.com>
8475 * objfiles.h (struct entry_info): Delete unused fields
8476 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8477 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8478 * mipsread.c (mipscoff_symfile_read): Update.
8479 * mdebugread.c (parse_partial_symbols): Update.
8480 * dwarfread.c (read_file_scope): Update.
8481 * dwarf2read.c (read_file_scope): Update.
8482 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8483 * coffread.c (complete_symtab): Update.
8485 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8487 * infcall.c (_initialize_infcall): Fix typo.
8489 2004-05-07 Andrew Cagney <cagney@redhat.com>
8491 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8492 * command.h (add_setshow_zinteger_cmd): Declare.
8494 2004-05-06 Randolph Chung <tausq@debian.org>
8496 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8497 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8498 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8499 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8500 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8501 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8502 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8504 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8505 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8506 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8507 (hppa64_hpux_frame_find_saved_regs_in_sig)
8508 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8509 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8510 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8511 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8512 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8513 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8514 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8515 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8516 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8517 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8518 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8519 (hppa32_register_type, hppa_cannot_store_register)
8520 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8521 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8522 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8523 * pa64solib.c (pa64_solib_have_load_event)
8524 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8525 (pa64_solib_unloaded_library_pathname): Likewise.
8526 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8527 (som_solib_library_pathname): Likewise.
8529 2004-05-05 Jim Ingham <jingham@apple.com>
8531 * breakpoint.c (create_breakpoints): Copy the ignore count and
8532 thread id over from the pended breakpoint to the actual
8535 2004-05-05 Andrew Cagney <cagney@redhat.com>
8537 * gdbarch.sh (PARM_BOUNDARY): Delete.
8538 gdbarch.h, gdbarch.c: Re-generate.
8539 * valops.c (PARM_BOUNDARY): Delete macro.
8540 (value_push): Delete PARM_BOUNDARY code.
8541 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8543 2004-05-04 Jim Blandy <jimb@redhat.com>
8545 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8546 Don't assume that the gprs, fprs, and UISA sprs are
8547 contiguous, start at register number zero, and end with fpscr.
8548 Instead, use the numbers from the tdep structure.
8550 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8551 should no longer be used in code specific to the RS6000 and its
8553 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8554 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8555 tdep->ppc_fp0_regnum.
8556 (ppc_supply_fpregset, ppc_collect_fpregset)
8557 (rs6000_push_dummy_call, rs6000_extract_return_value)
8558 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8559 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8561 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8562 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8564 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8565 bdm_ppc_store_registers): Same.
8566 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8567 (store_register, fill_fpregset): Same.
8568 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8569 (ppc_linux_supply_fpregset): Same.
8570 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8571 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8573 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8574 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8575 ppc64_sysv_abi_return_value): Same.
8576 * rs6000-nat.c (regmap, fetch_inferior_registers)
8577 (store_inferior_registers, fetch_core_registers): Same.
8579 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8581 * m68knbsd-nat.c: Remove file.
8582 * m68knbsd-tdep.c: Remove file.
8583 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8585 * configure.host: Add m68k-*-netbsdelf*.
8586 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8587 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8588 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8590 * config/m68k/nbsdelf.mh: New file.
8591 * config/m68k/nbsd.mt: New file.
8592 * config/m68k/nbsdaout.mt: Remove file.
8593 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8594 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8595 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8596 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8597 (use_struct_convention): Remove prototype.
8598 (USE_STRUCT_CONVENTION): Remove define.
8599 * config/m68k/xm-nbsd.h: Remove file.
8601 2004-05-04 Michael Snyder <msnyder@redhat.com>
8603 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8604 reg_struct_return method (as gcc usually does for cross targets).
8606 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8608 Committed by Andrew Cagney.
8609 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8610 alignment padding when accessing ucontext struct members.
8612 2004-05-04 Jim Blandy <jimb@redhat.com>
8614 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8615 'ppc_gplast_regnum' member.
8616 (ppc_num_gprs): New enum constant.
8617 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8618 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8619 * rs6000-nat.c (regmap, fetch_inferior_registers,
8620 store_inferior_registers): Same.
8621 * rs6000-tdep.c (e500_pseudo_register_read)
8622 (e500_pseudo_register_write): Same.
8623 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8625 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8626 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8627 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8628 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8630 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8632 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8633 * rs6000-nat.c (regmap, fetch_inferior_registers)
8634 (store_inferior_registers): Same.
8636 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8639 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8641 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8642 failure detected by recent versions of GCC.
8643 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8644 to be consistent with the usage in dwarf2_create_include_psymtab.
8646 2004-05-03 Michael Snyder <msnyder@redhat.com>
8648 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8649 (heuristic_proc_start): Whitespace cleanup.
8651 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8653 * sun3-nat.c: Remove file.
8654 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8656 (ALLDEPFILES): Remove sun3-nat.c.
8657 (sun3-nat.o): Remove dependencies.
8659 * i386-interix-nat.c, i386-interix-tdep.c,
8660 config/i386/nm-interix.h, config/i386/interix.mh,
8661 config/i386/interix.mt: Remove files.
8662 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8665 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8667 * m68k-tdep.h (struct gdbarch_tdep): Add member
8668 struct_value_regnum.
8669 (m68k_svr4_init_abi): New prototype.
8670 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8671 different calling conventions.
8672 (m68k_extract_return_value): Remove code dealing with single-field
8674 (m68k_store_return_value): Remove code dealing with single-field
8675 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8676 (m68k_extract_struct_value_address): Remove function.
8677 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8678 (m68k_reg_struct_return_p, m68k_return_value)
8679 (m68k_svr4_return_value): New functions.
8680 (m68k_use_struct_convention): Remove function.
8681 (m68k_push_dummy_call): Use new struct_value_regnum member of
8682 `struct gdbarch_tdep' instead of hardcoded register number to
8684 (m68k_svr4_init_abi): New function.
8685 (m68k_gdbarch_init): Don't set extract_return_value,
8686 store_return_values, deprecated_extract_struct_value_address and
8687 use_struct_convention. Set return_value instead. Initialize new
8688 struct_value_regnum member of `struct gdbarch_tdep'.
8689 * m68klinux-tdep.c: Update copyright year.
8690 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8691 (m68k_linux_extract_struct_value_address): Remove function.
8692 (m68k_linux_init_abi): Don't set extract_return_value,
8693 store_return_values, deprecated_extract_struct_value_address and
8694 use_struct_convention. Call m68k_svr4_init_abi but override the
8695 new struct_value_regnum member of `struct gdbarch_tdep'.
8696 * Makefile.in (m68k-tdep.o): Update dependencies.
8698 2004-05-03 J. Brobecker <brobecker@gnat.com>
8700 * dwarf2read.c (line_header): Add new included_p field in
8702 (partial_die_info): New field has_stmt_list. New field line_offset.
8703 (dwarf2_create_include_psymtab): New function.
8704 (dwarf2_build_include_psymtabs): New function.
8705 (add_file_name): Add forward declaration. Initialize new field.
8706 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8707 to be able to determine the list of files included by the
8708 given unit, and build their associated psymtabs.
8709 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8711 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8712 (read_file_scope): Update call to dwarf_decode_lines.
8713 (read_partial_die): Handle DW_AT_stmt_list attributes.
8715 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8718 * configure.in: Revert special case for osf5.*.
8719 * configure: Regenerate.
8721 2004-05-02 Jim Blandy <jimb@redhat.com>
8723 Move the symbol-file-from-memory functions into their own file.
8724 * symfile-mem.c, symfile-mem.h: New files.
8725 * symfile.c (symbol_file_add_from_bfd): New function.
8726 (symbol_file_add): Call symbol_file_add_from_bfd.
8727 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8728 Moved to symfile-mem.c.
8729 (_initialize_symfile): Move definition of
8730 add-symbol-file-from-memory command to symfile-mem.c.
8731 * symfile.h (symbol_file_add_from_bfd): New declaration.
8732 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8733 * config/powerpc/linux.mt (TDEPFILES): Same.
8734 * Makefile.in (SFILES): Add symfile-mem.c.
8735 (symfile_mem_h): New variable.
8736 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8737 (symfile-mem.o): New rule.
8739 2004-05-01 Andrew Cagney <cagney@redhat.com>
8741 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8742 frame_find_by_id instead of frame_relative_level.
8743 (do_enable_breakpoint): Ditto.
8744 * thread.c: Update copyright.
8745 (info_threads_command): Ditto, simplify.
8747 * frame.c (deprecated_generic_get_saved_register): Delete
8748 function, moved to "xstormy16-tdep.c".
8749 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8750 deprecated_generic_get_saved_register from "frame.c".
8751 (xstormy16_frame_saved_register): Call
8752 xstormy16_get_saved_register.
8753 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8755 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8756 * frame.h (deprecated_generic_get_saved_register): Delete.
8758 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8760 * dwarfread.c: Update documentation on the state of dwarf-1.
8762 2004-05-01 Andrew Cagney <cagney@redhat.com>
8764 * stack.c (select_frame_command): Delete call to
8765 frame_relative_level.
8766 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8768 (frame_info): Do not print FRAMELESS.
8769 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8770 (catch_info): Delete #if0 code.
8772 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8773 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8774 of frame_relative_level.
8775 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8777 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8778 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8779 frame_relative_level.
8781 * frame.h (deprecated_set_frame_type): Delete declaration.
8782 * frame.c (deprecated_set_frame_type): Delete function, update
8785 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8786 * gdbarch.h, gdbarch.c: Re-generate.
8787 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8788 (shnbsd_pc_in_sigtramp): Delete.
8789 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8791 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8793 * frame.h: Update comments.
8794 * ppc-linux-tdep.c: Update comments.
8795 * breakpoint.c (bpstat_what): Update comments.
8797 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8798 m68klinux-tdep.o's dependencies, were previously added to
8801 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8802 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8803 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8804 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8805 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8807 * Makefile.in (m68klinux-nat.o): Update dependencies.
8808 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8809 (m68k_linux_sigtramp_frame_cache)
8810 (m68k_linux_sigtramp_frame_this_id)
8811 (m68k_linux_sigtramp_frame_prev_register)
8812 (m68k_linux_sigtramp_frame_unwind)
8813 (m68k_linux_sigtramp_frame_sniffer)
8814 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8815 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8816 names, use trad-frame.h.
8817 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8818 (struct m68k_sigtramp_info): Delete.
8819 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8820 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8821 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8822 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8825 * infrun.c (check_sigtramp2): Delete check for
8826 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8828 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8830 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8832 2004-05-01 Andrew Cagney <cagney@redhat.com>
8834 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8835 (frv_linux_sigtramp_frame_cache)
8836 (frv_linux_sigtramp_frame_this_id)
8837 (frv_linux_sigtramp_frame_prev_register)
8838 (frv_linux_sigtramp_frame_unwind)
8839 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8840 include "linux" in function and variable names, directly call
8841 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8842 the latest trad-frame code.
8843 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8844 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8845 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8846 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8847 * frv-tdep.c (frv_sigtramp_frame_cache)
8848 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8849 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8851 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8852 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8853 (frv_set_sigcontext_reg_addr): Delete function.
8855 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8856 (DEPRECATED_SIGTRAMP_END): Delete.
8857 * gdbarch.h, gdbarch.c: Re-generate.
8858 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8859 * config/vax/tm-vaxbsd.h: Update copyright.
8860 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8861 (DEPRECATED_IN_SIGTRAMP): Define.
8862 * config/m68k/tm-nbsd.h: Update copyright.
8863 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8864 (DEPRECATED_IN_SIGTRAMP): Define.
8866 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8868 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8869 encondings. Fixes PR gdb/1628.
8871 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8872 DW_CFA_restore state without a matching DW_CFA_remember_state
8873 instead of aborting. Fixes PR backtrace/1589.
8875 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8877 * MAINTAINERS: Add self as AIX maintainer.
8878 Update my e-mail address in write-after-approval section.
8880 2004-04-30 Andrew Cagney <cagney@redhat.com>
8882 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8883 (legacy_get_prev_frame): Ditto.
8885 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8886 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8887 * mipsread.c (sigtramp_address): Delete extern variable.
8888 (mipscoff_new_init): Delete reference.
8889 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8890 (fixup_sigtramp): Delete function.
8891 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8892 (fixup_sigtramp): Delete declarations.
8894 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8895 deprecated_pc_in_sigtramp.
8896 (ppcnbsd_pc_in_sigtramp): Delete function.
8898 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8900 * config/m68k/nm-nbsd.h: Tweak comments.
8901 * config/m68k/nm-nbsdaout.h: Likewise.
8903 2004-04-30 Andrew Cagney <cagney@redhat.com>
8905 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8906 legacy_pc_in_sigtramp.
8907 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8909 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8911 Add OpenBSD/m68k support.
8912 * NEWS (New native configurations): Mention OpenBSD/m68k.
8913 * m68kbsd-tdep.c: New file.
8914 * m68kbsd-nat.c: New file.
8915 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8916 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8917 * configure.host: Add m68k-*-openbsd.
8918 * configure.tgt: Add m68k-*-openbsd.
8919 * config/m68k/tm-obsd.h: New file.
8920 * config/m68k/obsd.mt: New file.
8921 * config/m68k/obsd.mh: New file.
8922 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8925 2004-04-30 Andrew Cagney <cagney@redhat.com>
8927 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8928 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8930 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8932 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8933 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8935 2004-04-30 Brian Ford <ford@vss.fsi.com>
8937 Revert 2004-04-16 change.
8938 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8939 (i386_coff_init_abi): Remove.
8940 * i386-tdep.h (i386_coff_init_abi): Remove.
8941 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8943 2004-04-30 Andrew Cagney <cagney@redhat.com>
8945 * blockframe.c (find_pc_partial_function): Delete use of
8946 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8947 DEPRECATED_SIGTRAMP_END.
8949 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8950 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8951 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8952 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8953 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8955 * defs.h (deprecated_inside_entry_file): Delete declaration.
8956 * blockframe.c (deprecated_inside_entry_file): Delete function.
8957 (legacy_frame_chain_valid): Delete call.
8958 * sh64-tdep.c (sh64_frame_chain): Delete call.
8959 * objfiles.h: Update comments.
8960 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8962 * frame.c (get_prev_frame): Delete call, update comments.
8964 2004-04-30 Brian Ford <ford@vss.fsi.com>
8966 * MAINTAINERS (Write After Approval): Add myself.
8968 2004-04-30 Andrew Cagney <cagney@redhat.com>
8970 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8971 * gdbarch.h, gdbarch.c: Re-generate.
8972 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8975 2004-04-30 Andrew Cagney <cagney@redhat.com>
8977 * gdb-events.sh (selected_thread_changed)
8978 (selected_frame_level_changed, target_changed): Delete.
8979 * gdb-events.h, gdb-events.c: Re-generate.
8980 * valops.c (value_assign): Update.
8981 * stack.c (select_frame_command, up_silently_base)
8982 (down_silently_base): Update.
8984 2004-04-29 Andrew Cagney <cagney@redhat.com>
8986 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8987 registers correctly.
8988 (print_gp_register_row, mips32_heuristic_proc_desc)
8989 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8990 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8991 references to mips_isa_regsize.
8993 2004-04-29 Andrew Cagney <cagney@redhat.com>
8995 * mips-tdep.c (struct gdbarch_tdep): Delete
8996 mips_fp_register_double.
8997 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8999 (mips_gdbarch_init): Do not set mips_fp_register_double.
9000 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9002 2004-04-29 Joel Brobecker <brobecker@gnat.com>
9004 Committed by Andrew Cagney.
9005 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9008 2004-04-29 Andrew Cagney <cagney@redhat.com>
9010 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9011 gdbarch, use mips_abi, update callers.
9012 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9013 mips_abi_regsize, update callers.
9014 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9015 mips_default_abi_regsize.
9016 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9017 mips_default_abi_regsize.
9019 2004-04-29 Andrew Cagney <cagney@redhat.com>
9021 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9022 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9023 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9024 mips_default_abi_regsize.
9025 (mips_isa_regsize): Rename mips_regisze.
9026 * mipsnbsd-tdep.c: Update.
9027 * mips-linux-tdep.c: Update.
9028 * irix5-nat.c: Update.
9029 * mips-tdep.h (mips_isa_regsize): Update.
9031 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9032 Delete all disabled code.
9033 * gdb-events.h, gdb-events.c: Re-generate.
9035 2004-04-19 Jerome Guitton <guitton@gnat.com>
9036 Mark Kettenis <kettenis@gnu.org>
9038 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9039 the function begins with a branch instruction.
9041 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9043 * i386-tdep.c: Fix spelling mistakes.
9045 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9046 Andrew Cagney <cagney@redhat.com>
9048 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9050 * acconfig.h: Provide default _KMEMUSER value.
9051 * config.in, configure: Re-generate.
9052 * NEWS: Mention fix.
9054 2004-04-24 Randolph Chung <tausq@debian.org>
9056 * configure.host (hppa*-*-linux*): New target.
9057 * configure.tgt (hppa*-*-linux*): Likewise.
9058 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9059 gdbarch_init_osabi() call earlier so that osabi-specific frame
9060 unwinders can be registered first.
9061 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9063 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9064 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9065 * config/pa/linux.mh: New file.
9066 * config/pa/linux.mt: New file.
9067 * config/pa/nm-linux.h: New file.
9068 * config/pa/xm-linux.h: New file.
9069 * hppa-linux-nat.c: New file.
9070 * hppa-linux-tdep.c: New file.
9072 2004-04-28 Randolph Chung <tausq@debian.org>
9074 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9076 (hppa32_push_dummy_call): Fix small struct and floating point argument
9077 passing, and make sure the stack frame is properly aligned.
9079 2004-04-28 Andrew Cagney <cagney@redhat.com>
9081 * stack.c (print_stack_frame): Fix description.
9083 * NEWS: Mention gdb/gdbserver/configure execute permission
9084 changed. PR server/519.
9086 2004-04-28 Andrew Cagney <cagney@redhat.com>
9088 * stack.c (print_stack_frame_stub): Delete declaration.
9089 (struct print_stack_frame_args, print_stack_frame)
9090 (print_frame_info, print_frame): Replace "source" with print what.
9091 Replace "print" with "print_level". Replace "args" with
9093 * frame.h (show_and_print_stack_frame, print_stack_frame)
9094 (print_frame_info): Update declarations.
9095 * stack.c (select_and_print_frame, frame_command)
9096 (current_frame_command, up_command, down_command): Update calls -
9097 use get_selected_frame, pass "enum print_what" for source, do not
9098 call frame_relative_level.
9099 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9100 * remote-rdp.c (remote_rdp_open): Ditto.
9101 * remote-mips.c (common_open): Ditto.
9102 * remote-e7000.c (e7000_start_remote): Ditto.
9103 * ocd.c (ocd_start_remote): Ditto.
9104 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9105 * infrun.c (normal_stop): Ditto.
9106 * inflow.c (kill_command): Ditto.
9107 * infcmd.c (finish_command): Ditto.
9108 * corelow.c (core_open): Ditto.
9109 * tracepoint.c (finish_tfind_command): Ditto.
9110 * thread.c (info_threads_command, info_threads_command)
9111 (restore_current_thread, do_captured_thread_select): Ditto.
9112 * ada-tasks.c (task_command): Ditto.
9114 2004-04-26 Orjan Friberg <orjanf@axis.com>
9116 * frame.c: Include "observer.h".
9117 (frame_observer_target_changed): New function.
9118 (_initialize_frame): Attach target_changed observer.
9119 * regcache.c: Include "observer.h".
9120 (regcache_observer_target_changed): New function.
9121 (_initialize_regcache): Attach target_changed observer.
9122 * valops.c: Include "observer.h".
9123 (value_assign): Notify target_changed event when modifying register.
9124 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9126 2004-04-26 Orjan Friberg <orjanf@axis.com>
9128 From Paul Koning <pkoning@equallogic.com>:
9129 * breakpoint.c (free_valchain): New function.
9130 (insert_bp_location, delete_breakpoint): Use free_valchain.
9131 (remove_breakpoint): Do not remove the valchain.
9132 (bpstat_stop_status): If not stopped by watchpoint, skip
9133 watchpoints when generating stop status list.
9134 * infrun.c (handle_inferior_event): Make
9135 stepped_after_stopped_by_watchpoint a global variable.
9136 * remote.c (remote_stopped_data_address): Return watch data
9137 address rather than zero if stepped_after_stopped_by_watchpoint is
9140 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9143 * configure.in: Check for curses after termcap.
9144 On osf5.*, do not check for ncurses.
9145 * configure: Regenerate.
9147 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9149 * ppcobsd-nat.c: Include "ppc-tdep.h".
9150 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9152 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9153 Fixes PR tdep/1623 and PR tdep/1624.
9155 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9157 * xmodem.h, xmodem.c: Remove files.
9158 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9160 2004-04-23 Randolph Chung <tausq@debian.org>
9162 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9163 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9164 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9165 for handling stackless frames.
9166 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9168 2004-04-23 Randolph Chung <tausq@debian.org>
9170 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9171 starts at a pc before the frame is created.
9173 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9175 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9177 2004-04-23 Jerome Guitton <guitton@gnat.com>
9179 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9180 use convert_typed_floating to get the appropriate format.
9182 2004-04-22 Randolph Chung <tausq@debian.org>
9184 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9185 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9186 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9187 (hppa_sign_extend): Add prototype.
9188 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9189 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9190 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9191 hppa targets will also use these functions.
9192 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9193 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9194 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9195 (hppa_gdbarch_init): Remove gdbarch setting of
9196 skip_trampoline_code, in_solib_call_trampoline and
9197 in_solib_return_trampoline.
9198 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9199 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9200 hppa_in_solib_call_trampoline.
9201 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9202 Moved from hppa-tdep.c.
9203 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9204 in_solib_call_trampoline and in_solib_return_trampoline.
9206 2004-04-22 Randolph Chung <tausq@debian.org>
9208 * hppa-tdep.c (hppa_debug): New variable.
9209 (find_unwind_entry, hppa_frame_cache): Add debug output.
9210 (_initialize_hppa_tdep): Add command to set debug flag.
9212 2004-04-22 Andrew Cagney <cagney@redhat.com>
9214 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9216 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9217 signal trampoline unwinder.
9218 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9220 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9222 Add OpenBSD/powerpc support.
9223 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9224 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9225 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9226 (ppc_collect_fpregset): New prototypes.
9227 * ppcobsd-nat.c: New file.
9228 * ppcobsd-tdep.c: New file.
9229 * ppcobsd-tdep.h: New file.
9230 * rs6000-tdep.c: Include "regset.h".
9231 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9232 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9234 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9235 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9236 (rs6000-tdep.o): Update dependencies.
9237 * configure.host: Add powerpc-*-openbsd.
9238 * configure.tgt: Add powerpc-*-openbsd.
9239 * config/powerpc/obsd.mh: New file.
9240 * config/powerpc/nm-obsd.h: New file.
9241 * config/powerpc/obsd.mt: New file.
9243 2004-04-22 Andrew Cagney <cagney@redhat.com>
9245 * frame.h (show_frame_info): Delete declaration.
9247 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9248 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9249 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9250 * frv-tdep.c (frv_frame_this_id): Ditto.
9251 * avr-tdep.c (avr_frame_this_id): Ditto.
9253 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9255 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9257 2004-04-22 Jim Blandy <jimb@redhat.com>
9259 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9260 register number zero.
9262 2004-04-21 Michael Snyder <msnyder@redhat.com>
9264 * mips-tdep.c (heuristic_proc_start):
9265 Warning() already prefixes "Warning: ".
9267 2004-04-21 Andrew Cagney <cagney@redhat.com>
9269 * annotate.h (deprecated_annotate_starting_hook)
9270 (deprecated_annotate_stopped_hook)
9271 (deprecated_annotate_exited_hook)
9272 (deprecated_annotate_signal_hook)
9273 (deprecated_annotate_signalled_hook): Deprecate.
9274 * tracepoint.h (deprecated_create_tracepoint_hook)
9275 (deprecated_delete_tracepoint_hook)
9276 (deprecated_modify_tracepoint_hook)
9277 (deprecated_trace_find_hook)
9278 (deprecated_trace_start_stop_hook): Deprecate.
9279 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9280 * remote.h (deprecated_target_resume_hook)
9281 (deprecated_target_wait_loop_hook): Deprecate.
9282 * gdbcore.h (deprecated_exec_file_display_hook)
9283 (deprecated_file_changed_hook): Deprecate.
9284 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9285 * defs.h (deprecated_modify_breakpoint_hook)
9286 (deprecated_command_loop_hook, deprecated_show_load_progress)
9287 (deprecated_print_frame_info_listing_hook)
9288 (deprecated_query_hook, deprecated_warning_hook)
9289 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9290 (deprecated_delete_breakpoint_hook)
9291 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9292 (deprecated_readline_begin_hook, deprecated_readline_hook)
9293 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9294 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9295 (deprecated_context_hook, deprecated_target_wait_hook)
9296 (deprecated_attach_hook, deprecated_detach_hook)
9297 (deprecated_call_command_hook, deprecated_set_hook)
9298 (deprecated_error_hook, deprecated_error_begin_hook)
9299 (deprecated_ui_load_progress_hook): Deprecate.
9300 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9301 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9302 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9303 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9304 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9305 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9306 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9307 * annotate.c, aix-thread.c: Update.
9309 2004-04-21 Andrew Cagney <cagney@redhat.com>
9311 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9312 * vaxnbsd-tdep.c: Include "gdb_string.h".
9314 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9315 (add_symbol_file_from_memory_command): #if 0 function body, call
9318 2004-04-21 Andrew Cagney <cagney@redhat.com>
9320 * gdbcore.h: Update copyright.
9321 (deprecated_add_core_fns): Rename add_core_fns.
9322 * win32-nat.c (_initialize_core_win32): Update.
9323 * sun3-nat.c (_initialize_core_sun3): Update.
9324 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9325 * rs6000-nat.c (_initialize_core_rs6000): Update.
9326 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9327 * nto-tdep.c (_initialize_nto_tdep): Update.
9328 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9329 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9330 * mips-nat.c (_initialize_core_mips): Update.
9331 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9332 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9333 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9334 * lynx-nat.c (_initialize_core_lynx): Update.
9335 * irix5-nat.c (_initialize_core_irix5): Update.
9336 * i386-interix-nat.c (_initialize_core_interix): Update.
9337 * cris-tdep.c (_initialize_cris_tdep): Update.
9338 * corelow.c (deprecated_add_core_fns): Update.
9339 * core-regset.c (_initialize_core_regset): Update.
9340 * core-aout.c (_initialize_core_aout): Update.
9341 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9342 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9343 * alpha-nat.c (_initialize_core_alpha): Update.
9345 2004-04-21 Jim Blandy <jimb@redhat.com>
9347 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9349 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9351 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9353 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9354 (read_attribute_value): Update calls to dwarf_alloc_block.
9355 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9357 (psymtab_to_symtab_1): Likewise. Clean up using
9358 free_stack_comp_unit.
9359 (add_to_cu_func_list): Use the comp_unit_obstack.
9361 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9363 * dwarf2read.c (dwarf2_flag_true_p): New function.
9364 (die_is_declaration): Use the function above. Add some comments.
9366 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9368 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9369 architecture when registering sparcnbsd_core_osabi_sniffer.
9372 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9374 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9377 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9378 * i386-tdep.c: Correct register numbering scheme comments
9380 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9381 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9382 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9383 (i386_gdb_arch_init): Likewise.
9385 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9386 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9389 * m68k-tdep.h: Tweak comments.
9390 * m68k-tdep.c: Tweak comment.
9392 2004-04-17 Randolph Chung <tausq@debian.org>
9394 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9395 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9396 (hppa_hpux_som_init_abi): Set is_elf to 0.
9397 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9398 * hppa-tdep.c (low_text_segment_address): Remove global.
9399 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9400 section offset to calculate segment address.
9401 (internalize_unwinds): Define low_text_segment_address as local and
9402 pass to record_text_segment_lowaddr for ELF targets.
9403 (hppa_gdbarch_init): Zero fill tdep structure.
9404 (hppa_dump_tdep): Print tdep structure.
9405 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9407 2004-04-17 Randolph Chung <tausq@debian.org>
9409 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9410 (hppa_gdbarch_init): Set pseudo_register_read.
9411 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9412 * regcache.c (supply_register): Remove check for
9413 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9415 2004-04-17 Randolph Chung <tausq@debian.org>
9417 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9418 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9419 (hpread_adjust_stack_address): Move to hpread.c.
9420 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9421 obj_private_struct): Move from tm-hppa.h.
9422 * hpread.c (hppa-tdep.h): Include.
9423 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9424 (hpread_read_function_type, hpread_read_doc_function_type)
9425 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9427 * pa64solib.c (hppa-tdep.h): Include.
9428 * somsolib.c (hppa-tdep.h): Include.
9429 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9430 inferior_status): Remove unused forward declarations.
9431 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9432 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9433 obj_private_struct): Move to hppa-tdep.h.
9434 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9436 2004-04-17 Randolph Chung <tausq@debian.org>
9438 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9439 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9440 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9441 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9442 Remove forward declaration and make static.
9443 (hppa_reg_struct_has_addr): Remove.
9445 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9447 * observer.sh: Move comments in sed command to first column.
9449 2004-04-16 Jason Molenda (jmolenda@apple.com)
9451 * frame.c: Minor typeo corrections in comments.
9453 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9455 * observer.c (observer_test_first_notification_function): Update
9457 (observer_test_second_notification_function): Likewise.
9458 (observer_test_third_notification_function): Likewise.
9460 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9462 From Brian Ford <ford@vss.fsi.com>:
9463 * i386-tdep.c (i386_coff_init_abi): New function.
9464 * i386-tdep.h (i386_coff_init_abi): New prototype.
9465 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9466 register number translation functions for DWARF and DWARF 2.
9468 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9470 * dwarf2read.c: Back out my previous change, it was incorrect.
9472 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9474 * dwarf2read.c: Include "hashtab.h".
9475 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9477 (struct partial_die_info): Add comments. Use bitfields to reduce
9478 memory footprint. Add scope, scope_set, has_specification,
9479 spec_offset, die_parent, die_child, and die_sibling.
9480 (peek_die_abbrev): Add prototype.
9481 (partial_read_comp_unit_head): New function, broken out from
9482 dwarf2_build_psymtabs_hard.
9483 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9484 Use partial_read_comp_unit_head. Initialize the CU and
9485 comp_unit_obstack. Update calls to read_partial_die and
9486 scan_partial_symbols. Use free_stack_comp_unit and
9488 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9489 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9490 Update calls to helper functions. Remove NAMESPACE argument.
9492 (partial_die_parent_scope, partial_die_full_name): New functions.
9493 (add_partial_symbol): Remove namespace argument. Update call to
9494 pdi_needs_namespace. Use partial_die_full_name. Handle
9495 DW_TAG_namespace. Check has_namespace_info flag.
9496 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9497 tag. Handle namespaces.
9498 (add_partial_namespace, add_partial_enumeration): Simplify.
9499 (guess_structure_name): New function, derived from
9500 add_partial_structure.
9501 (add_partial_structure): Remove.
9502 (determine_class_name): Update comment.
9503 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9504 (is_type_tag_for_partial, load_partial_dies): New functions.
9505 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9506 Record specifications instead of following them immediately.
9507 (find_partial_die_in_comp_unit, find_partial_die)
9508 (fixup_partial_die, free_stack_comp_unit)
9509 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9510 (partial_die_hash, partial_die_eq): New functions.
9511 * Makefile.in (hashtab_h): Define.
9512 (dwarf2read.o): Update dependencies.
9513 (observer_inc, observer_h): Move to the correct section.
9515 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9517 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9518 (die_is_declaration): Use the function above. Add comment.
9520 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9522 * dwarf2read.c (read_structure_scope): Identify stub types
9523 using die_is_declaration() only.
9525 2004-04-15 Roland McGrath <roland@redhat.com>
9527 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9528 argument instead of NAME.
9529 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9530 in call to symbol_file_add_with_addrs_or_offsets.
9531 (build_addr_info): New function, helper for ...
9532 (symbol_file_add_from_memory): New function.
9533 (add_symbol_file_from_memory_command): New function using that.
9534 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9535 (pre_add_symbol_hook): Add const to argument type.
9536 * symfile.h (symbol_file_add_from_memory): Declare it.
9538 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9540 * NEWS (New native configurations): Mention OpenBSD/vax.
9541 * configure.host: Add vax-*-openbsd*.
9542 * config/vax/obsd.mh: New file.
9543 * config/vax/nm-obsd.h: New file.
9545 * vax-tdep.c: Include "regset.h".
9546 (vax_supply_gregset): New function.
9547 (vax_gregset): New variable.
9548 (vax_regset_from_core_section): New function.
9549 (vax_gdbarch_init): Set regset_from_core_section.
9550 * Makefile.in (vax-tdep.o): Update dependencies.
9552 2004-04-15 Andrew Cagney <cagney@redhat.com>
9554 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9555 (observer_normal_stop_notification_stub)
9556 (observer_attach_normal_stop, observer_detach_normal_stop):
9557 Delete, replaced by #include "observer.inc".
9558 * infrun.c (normal_stop): Pass "stop_bpstat" to
9559 observer_notify_normal_stop.
9560 * Makefile.in (observer_inc): Define.
9561 (observer.o): Update dependencies.
9562 (observer.h, observer.inc): New rules.
9563 * observer.h: Delete file.
9564 * observer.sh: New file.
9566 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9568 * vax-tdep.c (vax_frame_cache): Fix typo.
9570 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9572 * NEWS (New native configurations): Mention NetBSD/vax.
9573 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9574 * config/vax/nbsdelf.mh: New file.
9575 * config/vax/nbsdaout.mh: New file.
9576 * config/vax/nm-nbsd.h: New file.
9577 * config/vax/nm-nbsdaout.h: New file.
9579 * vaxnbsd-tdep.c: New file.
9580 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9581 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9582 * config/vax/nbsd.mt: New file.
9583 * config/vax/tm-nbsd.h: New file.
9585 * Makefile.in (vaxbsd-nat.o): New dependency.
9587 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9588 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9589 struct_addr arguments. Don't push return value address.
9590 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9591 arguments to vax_store_arguments. Store return value address in
9593 (vax_store_struct_return, vax_extract_return_value)
9594 (vax_store_return_value): Remove functions.
9595 (vax_return_value): New function.
9596 (vax_gdbarch_init): Set return value. Don't set
9597 deprecated_store_struct_return, deprecated_extract_struct_return
9598 and deprecated_store_return_value.
9600 2004-04-14 Andreas Schwab <schwab@suse.de>
9602 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9604 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9606 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9608 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9609 (vax_unwind_dummy_id): New functions.
9610 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9611 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9613 (vax_fix_call_dummy): Remove function.
9614 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9615 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9616 call_dummy_location, deprecated_call_dummy_words,
9617 deprecated_sizeof_call_dummy_words,
9618 deprecated_call_dummy_breakpoint_offset,
9619 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9620 and deprecated_dummy_write_sp.
9622 2004-04-13 David Carlton <carlton@kealia.com>
9624 * MAINTAINERS: Move myself to "paper trail" section.
9626 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9628 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9630 (vax_frame_init_saved_regs): Remove function.
9631 (vax_sigtramp_saved_pc): Remove function.
9632 (vax_frame_saved_pc): Remove function.
9633 (vax_frame_args_address): Remove function.
9634 (vax_frame_num_args): Rewrite.
9635 (vax_frame_chain): Remove function.
9636 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9638 (vax_pop_frame): Likewise.
9639 (vax_saved_pc_after_call): Remove function.
9640 (struct vax_frame_cache): New structure.
9641 (vax_frame_cache): New function.
9642 (vax_frame_this_id): New function.
9643 (vax_frame_prev_register): New function.
9644 (vax_frame_unwind): New variable.
9645 (vax_frame_sniffer): New function.
9646 (vax_frame_base_address): New function.
9647 (vax_frame_args_address): New function.
9648 (vax_frame_base): New variable.
9649 (vax_unwind_pc): New function.
9650 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9651 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9652 deprecated_frame_chain, deprecated_frame_saved_pc,
9653 deprecated_frame_args_address and
9654 deprecated_frame_init_saved_regs.
9655 * Makefile.in (vax-tdep.o): Update dependencies.
9657 * vaxbsd-nat.c: New file.
9659 * vax-tdep.h: Update copyright year. Adjust comments.
9660 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9661 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9662 (vax_regnum): New enum. Replacing...
9663 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9664 (VAX_PS_REGNUM): ... these removed macros.
9665 * vax-tdep.c (vax_register_name): Remove prototype.
9666 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9667 (vax_register_byte, vax_register_raw_size,
9668 vax_register_virtual_size, vax_register_virtual_type): Remove
9670 (vax_register_type): New function.
9671 (vax_breakpoint_from_pc): Reorganize.
9672 (vax_gdbarch_init): Set register_type. Don't set
9673 deprecated_register_size, deprecated_register_bytes,
9674 deprecated_register_byte, deprecated_register_raw_size,
9675 deprecated_max_register_raw_size,
9676 deprecated_register_virtual_size,
9677 deprecated_max_register_virtual_size and
9678 deprecated_register_virtual_type. Add comment on stack direction.
9680 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9682 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9683 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9684 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9686 2004-04-10 Randolph Chung <tausq@debian.org>
9688 * MAINTAINERS (write after approval): Add myself.
9690 2004-04-07 Randolph Chung <tausq@debian.org>
9692 * hppa-tdep.c (hppa_inner_than): Remove.
9693 (is_pa_2): Remove unused static variable.
9694 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9696 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9698 * language.h (language_defn): Add new la_post_parser field.
9699 * parser-defs.h (null_post_parser): New declaration (default for
9702 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9703 insert call to that function.
9704 (parse_exp_in_context): New function, including code formerly in
9705 parse_exp_1. Calls language-dependent post-parser after
9707 (parse_expression_in_context): New exported function.
9708 (null_post_parser): New definition.
9709 * expression.h (parse_expression_in_context): Add declaration.
9711 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9712 * c-lang.c (c_language_defn): Ditto.
9713 (cplus_language_defn): Ditto.
9714 (asm_language_defn): Ditto.
9715 (minimal_language_defn): Ditto.
9716 * f-lang.c (f_language_defn): Ditto.
9717 * jv-lang.c (java_language_defn): Ditto.
9718 * language.c (unknown_language_defn): Ditto.
9719 (auto_language_defn): Ditto.
9720 (local_language_defn): Ditto.
9721 * m2-lang.c (m2_language_defn): Ditto.
9722 * scm-lang.c (scm_language_defn): Ditto.
9723 * obj-lang.c (objc_language_defn): Ditto.
9725 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9727 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9728 (amd64nbsd_mcontext_addr): New function.
9729 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9730 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9731 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9733 * corelow.c (core_xfer_partial): Fix coding standards violation.
9734 Add support for TARGET_OBJECT_WCOOKIE.
9736 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9737 deprecated_pc_in_sigtramp.
9738 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9739 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9740 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9741 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9742 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9743 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9744 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9746 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9747 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9750 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9751 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9752 (amd64_collect_fxsave): Likewise.
9754 * i386-sol2-tdep.c: Include "gdb_string.h".
9755 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9757 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9759 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9761 * i386-sol2-tdep.c: Include "solib-svr4.h".
9762 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9763 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9764 * config/i386/tm-i386sol2.h: Include :solib.h".
9765 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9766 solib-svr4.o and solib-legacy.o.
9767 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9770 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9772 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9773 whether a register is supplied by PTRACE_GETFPREGS.
9774 (store_inferior_registers): Likewise.
9775 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9776 whether a register is supplied by PT_GETFPREGS.
9777 (store_inferior_registers): Likewise.
9779 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9780 * config/i386/linux64.mt (TDEPFILES): Likewise.
9782 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9784 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9785 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9786 the program counter is in the range specified by `struct
9788 * amd64-linux-tdep.c: Include "symtab.h".
9789 (amd64_linux_pc_in_sigtramp): Remove function.
9790 (amd64_linux_sigtramp_p): New function.
9791 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9792 deprecated_pc_in_sigtramp.
9793 * amd64nbsd-tdep.c: Include "symtab.h".
9794 (amd64nbsd_sigtramp_p): New function.
9795 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9796 deprecated_pc_in_sigtramp.
9797 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9799 (amd64obsd_pc_in_sigtramp): Remove function.
9800 (amd64obsd_sigtramp_p): New function.
9801 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9802 deprecated_pc_in_sigtramp.
9803 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9804 (i386bsd_pc_ins_sigtramp): Remove prototype.
9805 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9806 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9807 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9808 the program counter is in the range specified by `struct
9810 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9811 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9812 (i386_go32_pc_in_sigtramp): Remove function.
9813 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9814 Initialize TDEP->sigtramp_p.
9815 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9816 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9817 deprecated_pc_in_sigtramp.
9818 * i386-linux-tdep.c: Adjust comments.
9819 (i386_linux_pc_in_sigtramp): Remove function.
9820 (i386_linux_sigtramp_p): New function.
9821 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9822 deprecated_pc_in_sigtramp.
9823 * i386-nto-tdep.c: Update copyright year.
9824 (i386nto_pc_in_sigtramp): Remove function.
9825 (i386nto_sigtramp_p): New function.
9826 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9828 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9829 deprecated_pc_in_sigtramp.
9830 * i386-sol2-tdep.c: Update copyright year.
9831 (i386_sol2_pc_in_sigtramp): Remove function.
9832 (i386_sol2_sigtramp_p): New function.
9833 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9834 deprecated_pc_in_sigtramp.
9835 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9836 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9837 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9838 deprecated_sigtramp_start and deprecated_sigtramp_end.
9839 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9840 (i386nbsd_pc_in_sigtramp): Remove function.
9841 (i386nbsd_sigtramp_p): New function.
9842 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9843 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9844 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9845 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9846 (i386obsd_pc_in_sigtramp): Remove function.
9847 (i386obsd_sigtramp_p): New function.
9848 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9850 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9851 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9853 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9854 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9857 * config/i386/i386aout.mt: Remove file.
9859 * configure.tgt: Remove i[34567]86-*-go32*,
9860 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9861 and i[34567]86-*-isc*. Set gdb_target to i386 for
9862 i[34567]86-*-netware* and i[34567]86-*-*.
9863 * config/i386/i386.mt: New file.
9864 * config/i386/embed.mt: Remove file.
9865 * config/i386/go32.mt: Remove file.
9866 * config/i386/i386nw.mt: Remove file.
9867 * config/i386/i386v.mt: Remove file.
9868 * config/i386/tm-go32.h: Remove file.
9870 * tui/tui-hooks.c: Include "readline/readline.h" after
9871 "gdb_curses.h" instead of before.
9872 * tui/tui-io.c: Likewise.
9874 * tui/tui.c: Fix typo in comment.
9876 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9878 2004-04-08 Andrew Cagney <cagney@redhat.com>
9880 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9881 (deprecated_exception_support_initialized): Declare.
9882 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9883 (initialize_hp_cxx_exception_support)
9884 (child_enable_exception_callback): Update.
9885 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9886 (deprecated_exception_support_initialized): Rename
9887 deprecated_exception_catchpoints_are_fragile and
9888 deprecated_exception_support_initialized.
9889 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9891 * symtab.c (deprecated_hp_som_som_object_present): Rename
9892 hp_som_som_object_present.
9893 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9894 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9895 Update. Delete extern declaration.
9896 * valops.c (hp_som_som_object_present): Ditto.
9897 * parse.c (deprecated_hp_som_som_object_present)
9898 (parse_nested_classes_for_hpacc): Ditto.
9899 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9900 * hppa-hpux-tdep.c (hp_som_som_object_present)
9901 (initialize_hp_cxx_exception_support): Ditto.
9902 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9903 * cp-valprint.c (hp_som_som_object_present)
9904 (cp_print_class_method): Ditto.
9905 * c-typeprint.c (hp_som_som_object_present):
9906 (c_type_print_base): Ditto.
9907 * c-exp.y (hp_som_som_object_present): Ditto.
9909 2004-04-08 Andrew Cagney <cagney@redhat.com>
9911 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9912 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9913 (frame_unwind_find_by_frame): Re-implement the unwind code so
9914 that it can both prepend and append sniffers. Replace
9915 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9916 * tramp-frame.c (tramp_frame_append): Use
9917 frame_unwind_prepend_unwinder.
9918 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9919 frame_unwind_register_unwinder.
9920 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9922 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9923 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9924 (mips_linux_init_abi): Update.
9926 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9928 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9929 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9932 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9934 * ia64-tdep.c (elf.h): Don't include.
9935 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9937 2004-04-07 Jason Molenda (jmolenda@apple.com)
9939 * frame.h: Typeo corrections in comments.
9941 2004-04-07 Jim Blandy <jimb@redhat.com>
9943 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9946 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9948 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9949 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9950 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9951 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9953 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9955 * config/sparc/tm-sol2.h: Update copyright year. Include
9958 * sparc-sol2-tdep.c: Update copyright year. Include
9960 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9961 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9962 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9963 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9966 2004-04-06 Andrew Cagney <cagney@redhat.com>
9968 * infttrace.c: Include "infttrace.h".
9969 * infttrace.h: Include "target.h".
9970 * Makefile.in (infttrace_h): Update.
9971 (infttrace.o): Update.
9973 2004-04-06 Andrew Cagney <cagney@redhat.com>
9975 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9976 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9977 move extern declarations from here ...
9978 * infttrace.h: ... to here.
9979 * Makefile.in (hppah-nat.o): Update dependencies.
9981 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9982 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9983 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9984 (hppa_breakpoint_from_pc): Delete.
9986 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9988 2004-04-05 Andrew Cagney <cagney@redhat.com>
9990 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9991 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9994 2004-04-06 Randolph Chung <tausq@debian.org>
9996 Committed by Andrew Cagney (mechanical change).
9997 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9998 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9999 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10000 child_enable_exception_callback, current_ex_event,
10001 null_symtab_and_line, child_get_current_exception_event,
10002 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10003 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10004 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10005 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10006 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10007 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10008 Move hpux-specific definitions ...
10009 * hppa-hpux-tdep.c: ... to here.
10011 2004-04-05 Andrew Cagney <cagney@redhat.com>
10013 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10014 skip_prologue_using_sal.
10016 2004-04-05 Andrew Cagney <cagney@redhat.com>
10018 * config/i386/tm-i386.h: Delete file.
10019 * config/i386/tm-vxworks.h: Update copyright, do not include
10021 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10022 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10023 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10024 * config/i386/ncr3000.mt (TM_FILE): Delete.
10025 * config/i386/interix.mt (TM_FILE): Delete.
10026 * config/i386/i386v.mt (TM_FILE): Delete.
10027 * config/i386/i386nw.mt (TM_FILE): Delete.
10028 * config/i386/i386gnu.mt (TM_FILE): Delete.
10029 * config/i386/i386aout.mt (TM_FILE): Delete.
10030 * config/i386/embed.mt (TM_FILE): Delete.
10032 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10034 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10035 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10036 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10037 (accg7_regnum): New constants.
10038 (last_spr_regnum, last_pseudo_regnum): Update.
10039 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10040 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10041 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10042 for accg registers.
10043 (frv_register_sim_regno): Update spr_map[].
10045 2004-04-04 Andrew Cagney <cagney@redhat.com>
10047 * config/mips/xm-riscos.h: Delete.
10048 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10049 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10050 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10051 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10052 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10053 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10054 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10055 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10056 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10057 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10058 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10059 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10060 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10061 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10062 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10063 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10064 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10065 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10066 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10067 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10068 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10069 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10070 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10071 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10072 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10073 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10075 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10076 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10077 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10078 * configure.host: Remove m680[01]0-sun-sunos3*,
10079 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10080 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10081 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10082 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10084 * NEWS: Mention removed systems.
10086 2004-04-04 Andrew Cagney <cagney@redhat.com>
10088 GDB 6.1 release created from 6.1 branch.
10090 2004-04-04 Andrew Cagney <cagney@redhat.com>
10092 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10093 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10094 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10096 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10097 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10098 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10100 2004-04-03 Jim Blandy <jimb@redhat.com>
10102 * MAINTAINERS: Chris Faylor has changed employers; add him to
10103 "paper trail" section, and update his E-mail address.
10105 2004-04-03 Andrew Cagney <cagney@redhat.com>
10107 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10108 generic dummy frames.
10109 * dummy-frame.c: Update copyright.
10110 (dummy_frame_sniffer): Delete check for generic dummy frames.
10112 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10113 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10114 (REG_PARM_STACK_SPACE): Delete.
10115 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10116 Inline reference to REG_PARM_STACK_SPACE.
10118 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10119 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10120 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10121 (FRAME_BASE_BEFORE_SIGTRAMP)
10122 (hppa32_hpux_frame_base_before_sigtramp)
10123 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10124 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10125 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10126 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10127 (FRAME_BASE_BEFORE_SIGTRAMP)
10128 (hppa64_hpux_frame_base_before_sigtramp)
10129 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10131 2004-04-03 Andrew Cagney <cagney@redhat.com>
10133 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10135 2004-04-02 Andrew Cagney <cagney@redhat.com>
10137 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10138 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10139 * dummy-frame.h: Delete out-of-date comments.
10140 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10141 * gdbarch.h, gdbarch.c: Re-generate.
10143 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10145 Committed by Andrew Cagney <cagney@redhat.com>.
10146 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10147 into account an instruction saving a register if we have already
10148 seen an earlier instruction saving that same register.
10150 2004-04-02 Andrew Cagney <cagney@redhat.com>
10152 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10153 * gdbarch.h, gdbarch.c: Re-generate.
10154 * frame.c (legacy_get_prev_frame): Delete references to
10155 DEPRECATED_INIT_FRAME_PC_FIRST.
10157 * infrun.c (pc_in_sigtramp): Delete function.
10158 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10161 2004-04-02 Andrew Cagney <cagney@redhat.com>
10163 * infrun.c (handle_step_into_function): Delete code conditional on
10165 (handle_inferior_event, step_over_function): Ditto.
10167 2004-04-02 Andrew Cagney <cagney@redhat.com>
10169 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10170 "previous frame inner to this frame" test.
10172 2004-04-02 Andrew Cagney <cagney@redhat.com>
10174 * frame.c (safe_frame_unwind_memory): New function.
10175 * frame.h (safe_frame_unwind_memory): Declare. Update description
10176 of /safe_/ methods.
10177 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10178 "next_frame". Use safe_frame_unwind_memory.
10179 (tramp_frame_sniffer): Update call to tramp_frame_start.
10181 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10183 * dwarf2read.c (dwarf2_objfile_data_key): New.
10184 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10185 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10186 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10187 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10188 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10189 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10190 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10192 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10193 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10194 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10195 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10196 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10197 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10199 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10201 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10202 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10203 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10204 (read_partial_die, read_full_die, read_indirect_string)
10205 (dwarf_decode_line_header, dwarf_decode_macros)
10206 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10207 Update uses of removed variables.
10208 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10210 (_initialize_dwarf2_read): New function.
10211 * symfile.h (dwarf2_has_info): Update prototype.
10212 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10213 * elfread.c (elf_symfile_read): Likewise.
10215 2004-04-01 Jim Blandy <jimb@redhat.com>
10217 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10218 function for register numbers on all the rs6000-derived targets.
10219 (rs6000_gdbarch_init): Don't register a separate
10220 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10221 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10224 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10227 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10229 * valarith.c: Update copyright notice.
10230 (value_add): Handle range types.
10231 (value_sub): Ditto.
10232 (value_equal): Ditto.
10233 (value_less): Ditto.
10234 (value_neg): Ditto.
10235 (value_complement): Ditto.
10236 (value_binop): Simplify slightly by using is_integral_type and
10237 eliminiating unnecessary COERCE_ENUMs.
10239 2004-03-31 Andrew Cagney <cagney@redhat.com>
10241 * frame.h (frame_unwind_id): Declare.
10242 * frame.c (frame_unwind_id): New function.
10243 (get_prev_frame_1): New function.
10244 (frame_debug_got_null_frame): New function.
10245 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10246 code proper to prev_frame, update description.
10247 * infrun.c (step_over_function): Use frame_unwind_id.
10249 2004-04-31 J. Brobecker <brobecker@gnat.com>
10251 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10252 (hppa64_push_dummy_call): Likewise.
10254 2004-03-30 Jim Blandy <jimb@redhat.com>
10256 From Ulrich Weigand:
10257 * utils.c (query): Do not use a va_list variable multiple times.
10259 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10261 * Makefile.in (linux_nat_h): Update dependencies.
10262 * configure.in: Check for <gnu/libc-version.h>.
10263 * configure: Regenerate.
10264 * config.in: Regenerate.
10265 * linux-nat.h: Include "target.h". Add waitstatus field to
10267 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10268 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10270 (lin_lwp_handle_extended): New function. Handle clone events.
10271 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10272 thread exit events.
10273 (child_wait): Handle clone events.
10274 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10275 * linux-nat.c (linux_enable_event_reporting): Turn on
10276 PTRACE_O_TRACECLONE.
10277 (linux_handle_extended_wait): Handle clone events.
10278 * thread-db.c: Include <gnu/libc-version.h>.
10279 (struct private_thread_info): Add dying flag.
10280 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10282 (attach_thread): Update comments. Handle dying threads.
10283 (detach_thread): Set the dying flag.
10284 (check_event): Always call attach_thread.
10286 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10288 * mips-tdep.c (mips_pdr_data): New.
10289 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10290 (_initialize_mips_tdep): Initialize mips_pdr_data.
10292 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10294 * minsyms.c (install_minimal_symbols): Move dropping leading
10295 char from linkage name from here...
10296 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10297 test for "__gnu_compiled*" symbols.
10299 2004-03-28 Jim Blandy <jimb@redhat.com>
10301 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10302 registers to temp register r0 and byte stores as prologue
10305 2004-03-28 Andrew Cagney <cagney@redhat.com>
10307 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10310 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10312 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10313 and switch the layout to force a display of register window.
10315 2004-02-26 J. Brobecker <brobecker@gnat.com>
10317 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10318 of the INTEGER class.
10320 2004-03-26 Jim Blandy <jimb@redhat.com>
10322 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10323 bytes long on PPC GNU/Linux.
10325 2004-03-26 David Carlton <carlton@kealia.com>
10327 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10329 2004-03-25 Andrew Cagney <cagney@redhat.com>
10331 * PROBLEMS: Add general section titles, remove references to
10334 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10336 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10338 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10339 FP_REGISTER_VIRTUAL_SIZE.
10340 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10341 of DEPRECATED_REGISTER_RAW_SIZE.
10342 (arm_register_type): Add gdbarch argument.
10343 (arm_register_raw_size, arm_register_virtual_size): Delete.
10344 (arm_register_byte, arm_extract_return_value)
10345 (arm_store_return_value, arm_get_longjmp_target): Update references
10346 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10347 (arm_gdbarch_init): Likewise. Don't set
10348 deprecated_register_raw_size, deprecated_register_virtual_size,
10349 deprecated_max_register_raw_size,
10350 deprecated_max_register_virtual_size, or
10351 deprecated_max_register_virtual_type. Do set register_type.
10352 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10353 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10354 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10355 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10356 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10357 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10359 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10360 (remote_rdp_store_register): Likewise.
10362 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10364 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10365 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10366 to after osabi initialization.
10367 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10368 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10370 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10371 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10373 (mips_linux_init_abi): Append signal trampoline unwinders.
10375 2004-03-24 Andrew Cagney <cagney@redhat.com>
10377 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10378 * tramp-frame.c: Include "gdb_assert.h".
10379 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10381 (tramp_frame_append): Validate the tramp frame's instructions.
10382 * Makefile.in (tramp-frame.o): Update dependencies.
10384 2004-03-23 Andrew Cagney <cagney@redhat.com>
10386 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10388 2004-03-23 Andrew Cagney <cagney@redhat.com>
10390 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10391 Nasser as past testsuite/lib/ (and other) maintainers.
10393 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10395 * infcmd.c (attach_command): Reread symbols if we already have
10398 2004-03-23 Andrew Cagney <cagney@redhat.com>
10400 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10402 2004-03-23 Andrew Cagney <cagney@redhat.com>
10404 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10405 * gdbarch.h, gdbarch.c: Re-generate.
10406 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10407 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10408 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10409 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10410 (DEPRECATED_SIGTRAMP_START): Update.
10411 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10412 (DEPRECATED_SIGTRAMP_START): Update.
10413 * blockframe.c (find_pc_sect_partial_function): Update.
10414 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10416 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10418 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10421 2004-03-23 Andrew Cagney <cagney@redhat.com>
10423 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10424 predicate, deprecate.
10425 * gdbarch.h, gdbarch.c: Re-generate.
10426 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10427 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10428 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10429 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10430 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10431 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10432 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10433 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10434 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10435 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10436 * blockframe.c (find_pc_partial_function): Update.
10437 * breakpoint.c (bpstat_what): Update.
10438 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10439 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10440 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10441 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10442 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10443 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10444 * i386-nto-tdep.c (i386nto_init_abi): Update.
10445 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10446 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10447 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10448 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10449 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10450 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10451 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10452 * infrun.c (pc_in_sigtramp): Update.
10453 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10454 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10455 * mips-tdep.c (mips_gdbarch_init): Update.
10456 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10457 * ppc-linux-tdep.c: Update comment.
10458 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10459 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10460 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10461 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10462 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10463 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10464 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10465 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10466 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10467 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10469 2004-03-23 Andrew Cagney <cagney@redhat.com>
10471 * tramp-frame.h, tramp-frame.h: New files.
10472 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10473 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10475 * Makefile.in: Update all dependencies.
10477 2004-03-23 Andrew Cagney <cagney@redhat.com>
10479 * Makefile.in (trad_frame_h): Add $(frame_h).
10480 * trad-frame.h: Update copyright. Include "frame.h".
10481 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10482 (trad_frame_set_id, trad_frame_get_id): Declare.
10483 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10484 * trad-frame.c: Update copyright.
10485 (struct trad_frame_cache): Define.
10486 (trad_frame_cache_zalloc): New function.
10487 (trad_frame_set_id, trad_frame_get_id): New functions.
10488 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10490 2004-03-22 Andrew Cagney <cagney@redhat.com>
10492 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10493 s390_pltstub_unwind_cache.
10494 (s390_stub_frame_unwind_cache): Rename
10495 s390_pltstub_frame_unwind_cache.
10496 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10497 (s390_stub_frame_prev_register): Rename
10498 s390_pltstub_frame_prev_register.
10499 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10500 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10502 From Ulrich Weigand:
10503 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10504 pointer calls like PLT calls.
10506 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10508 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10509 PC rather than the partial function start address. Use the start
10510 address to sanity check the found PDR.
10512 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10514 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10515 linux_handle_extended_wait.
10517 2004-03-22 Andrew Cagney <cagney@redhat.com>
10519 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10522 * frame.h (generic_pop_current_frame): Delete declaration.
10523 (deprecate_pop_dummy_frame): Deprecate
10524 generic_pop_dummy_frame.
10525 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10526 (generic_pop_current_frame): Delete function.
10527 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10528 generic_pop_current_frame.
10529 * v850-tdep.c (v850_pop_frame): Update.
10530 * mcore-tdep.c (mcore_pop_frame): Update.
10531 * sh64-tdep.c (sh64_pop_frame): Update.
10532 * h8300-tdep.c (h8300_pop_frame): Update.
10534 2004-03-22 Andrew Cagney <cagney@redhat.com>
10536 * frame.h (deprecated_pc_in_call_dummy): Rename
10537 generic_pc_in_call_dummy.
10538 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10539 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10540 generic_pc_in_call_dummy.
10541 (pc_in_dummy_frame): Make static.
10542 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10543 * gdbarch.h, gdbarch.c: Re-generate.
10544 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10545 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10546 (legacy_get_prev_frame): Ditto.
10547 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10550 2004-03-21 Andrew Cagney <cagney@redhat.com>
10552 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10553 declaration and out-of-date comment.
10554 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10556 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10557 deprecated_pc_in_call_dummy.
10559 * infrun.c (handle_inferior_event): For non legacy frames, use the
10560 frame ID and frame type to identify a signal trampoline. Update
10563 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10565 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10566 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10568 2004-03-21 Andrew Cagney <cagney@redhat.com>
10570 * frame-unwind.h: Update copyright.
10571 (struct frame_data): Add opaque declaration.
10572 (frame_sniffer_ftype): Declare.
10573 (struct frame_unwind): Add "unwind_data" and "sniffer".
10574 (frame_unwind_register_unwinder): Declare.
10575 (frame_unwind_find_by_frame): Add parameter "this_cache".
10576 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10577 (legacy_get_prev_frame, legacy_get_prev_frame)
10578 (get_frame_type): Pass the prologue_cache to
10579 frame_unwind_find_by_frame.
10580 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10582 (frame_unwind_register_unwinder): New function.
10583 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10585 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10587 * bcache.c (print_percentage): Use floating point to avoid
10588 incorrect results when portion*100 overflows.
10590 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10592 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10593 (ppc_linux_init_extra_frame_info)
10594 (ppc_linux_frameless_function_invocation)
10595 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10596 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10597 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10598 (rs6000_frame_chain): Delete declarations.
10599 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10600 (ppc_linux_init_extra_frame_info)
10601 (ppc_linux_frameless_function_invocation)
10602 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10603 (ppc_linux_init_abi): Remove registration of above deleted functions.
10604 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10605 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10606 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10607 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10608 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10609 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10610 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10611 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10612 frame management for all OSABIs.
10614 2004-03-19 Andrew Cagney <cagney@redhat.com>
10616 Committed by Kevin Buettner <kevinb@redhat.com>.
10618 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10620 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10621 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10622 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10623 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10624 unwinders. #ifdef legacy frame code.
10625 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10627 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10628 (struct rs6000_frame_cache, rs6000_frame_cache)
10629 (rs6000_frame_this_id, rs6000_frame_prev_register)
10630 (rs6000_frame_sniffer, rs6000_frame_unwind)
10631 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10632 (rs6000_frame_base): Implement a traditional frame unwinder.
10633 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10636 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10638 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10639 breakpoint address for watchpoints or the catch eventpoints.
10640 Add new paramter ``bptype''. Adjust all callers.
10642 2004-03-19 Andrew Cagney <cagney@redhat.com>
10644 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10646 * PROBLEMS: Delete note that ARM does not use frame code, problem
10649 2004-03-18 Andrew Cagney <cagney@redhat.com>
10651 * stack.c (return_command): Delete code wrapped in #ifdef
10652 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10654 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10656 2004-03-18 Andrew Cagney <cagney@redhat.com>
10658 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10659 DEPRECATED_IN_SIGTRAMP.
10660 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10661 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10662 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10663 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10664 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10665 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10666 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10667 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10668 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10669 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10671 2004-03-18 Andrew Cagney <cagney@redhat.com>
10673 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10674 (struct frame_base_table_entry): Define.
10675 (struct frame_base_table): Re-implement as a linked list.
10676 (frame_base_init): Re-implement.
10677 (frame_base_table): Delete function.
10678 (append_predicate): Delete function.
10679 (frame_base_append_sniffer): Update.
10680 (frame_base_set_default): Update.
10681 (frame_base_find_by_frame): Update.
10682 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10683 * Makefile.in (frame-base.o): Update dependencies.
10685 2004-03-17 Andrew Cagney <cagney@redhat.com>
10687 * frame.c (legacy_get_prev_frame): Pass correct frame to
10688 frame_unwind_find_by_frame.
10690 2004-03-17 David Carlton <carlton@kealia.com>
10692 * NEWS: Mention C++ nested types and namespaces
10694 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10696 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10697 and "Regressions since gdb 5.3.". Add known regressions since
10700 2004-03-16 David Carlton <carlton@kealia.com>
10702 * dwarf2read.c (process_structure_scope): Process children even
10703 when we're a declaration.
10705 2004-03-16 Andrew Cagney <cagney@redhat.com>
10707 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10708 * blockframe.c (find_pc_partial_function)
10709 (find_pc_sect_partial_function): Merge into a single
10710 find_pc_partial_function.
10712 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10714 * i386bsd-nat.c: s/regno/regnum/g.
10715 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10717 (store_inferior_registers): Likewise.
10719 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10721 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10722 of i387_fill_fsave.
10723 (store_inferior_registers): Call i387_collect_fsave and
10724 i387_collect_fxsave instead of i387_fill_fsave and
10727 2004-03-15 Andrew Cagney <cagney@redhat.com>
10729 * Makefile.in (frame-unwind.o): Update dependencies.
10730 * frame-unwind.c: Include "gdb_obstack.h".
10731 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10733 (append_predicate): Delete function.
10734 (struct frame_unwind_table_entry): New structure.
10735 (struct frame_unwind_table): Replace "sniffer" with "head" and
10737 (frame_unwind_append_sniffer): Update.
10738 (frame_unwind_find_by_frame): Update.
10739 (_initialize_frame_unwind): Registe frame_unwind_init using
10740 gdbarch_data_register_pre_init.
10742 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10744 * i386bsd-nat.c: Update copyright year.
10745 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10746 define unconditionally.
10748 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10750 * i387-tdep.h (i387_collect_fsave): New prototype.
10751 * i387-tdep.c (i387_collect_fsave): New function containing most
10752 of the code from i387_fill_fsave.
10753 (i387_fill_fsave): Call i387_collect_fsave.
10755 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10757 * i386-linux-tdep.c: Update copyright year.
10758 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10759 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10760 svr4_ilp32_link_map_offsets instead of
10761 i386_linux_svr4_fetch_link_map_offsets.
10763 2004-03-15 David Carlton <carlton@kealia.com>
10765 Fix for PR c++/1553:
10766 * dwarf2read.c (read_structure_type): Determine type name by
10767 calling determine_class_name.
10768 (determine_class_name): New.
10769 (determine_prefix): Look at TYPE_TAG_NAME and call
10770 determine_class_name when appropriate.
10771 (determine_prefix_aux, class_name): Delete.
10772 (read_namespace): Set die->type.
10774 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10776 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10777 unused macro definition. The definition in target.h (or perhaps
10778 elsewhere) takes precedence.
10780 2004-03-15 Andrew Cagney <cagney@redhat.com>
10782 * ppc-tdep.h: Update copyright.
10783 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10784 function signatures to match "regsets.h".
10785 * ppc-linux-tdep.c: Include "regset.h".
10786 (ELF_GREGSET_SIZE): Delete.
10787 (right_supply_register): New function.
10788 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10789 using right_supply_register.
10790 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10792 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10793 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10794 (_initialize_ppc_linux_tdep): Do not register
10795 ppc_linux_regset_core_fns.
10796 (ppc_linux_regset_from_core_section): Replace
10797 fetch_core_registers.
10798 (ppc_linux_regset_core_fns): Delete.
10799 * ppc-linux-nat.c: (right_fill_reg): New function.
10800 (supply_gregset): Update call to ppc_linux_supply_gregset.
10801 (fill_gregset): Clear the register set, use right_fill_reg.
10802 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10803 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10805 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10808 2004-03-15 Andrew Cagney <cagney@redhat.com>
10810 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10811 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10812 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10813 and register_gdbarch_data.
10814 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10815 (struct gdbarch_data): Replace "init" by "pre_init" and
10817 * gdbarch.h, gdbarch.c: Re-generate.
10818 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10819 with"obstack", use OBSTACK_ZALLOC.
10820 (dwarf2_frame_ops): Delete.
10821 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10822 (dwarf2_frame_init_reg): Use gdbarch_data.
10823 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10824 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10825 (_initialize_svr4_solib): Update.
10826 * user-regs.c (_initialize_user_regs): Update.
10827 * reggroups.c (_initialize_reggroup): Update.
10828 * regcache.c (_initialize_regcache): Update.
10829 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10830 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10831 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10832 * frame-unwind.c (_initialize_frame_unwind): Update.
10833 * frame-base.c (_initialize_frame_base): Update.
10834 * user-regs.c (user_reg_add): Update.
10835 * reggroups.c (reggroup_add): Update.
10836 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10837 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10838 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10839 * frame-base.c (frame_base_table): Update.
10840 * remote.c (_initialize_remote): Update.
10841 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10843 2004-03-15 Andrew Cagney <cagney@redhat.com>
10845 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10847 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10849 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10850 * frv-linux-tdep.c: New file.
10851 * frv-tdep.c (struct gdbarch_tdep): Add new field
10852 ``sigcontext_reg_addr''.
10853 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10854 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10855 (frv_sigramp_frame_sniffer): New functions.
10856 (frv_sigtramp_frame_unwind): New static global.
10857 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10859 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10860 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10862 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10864 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10865 but not via a call to error(), when unable to read memory.
10867 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10869 * frv-tdep.c (frv_call_dummy_words): Delete.
10870 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10872 2004-03-15 Andrew Cagney <cagney@redhat.com>
10874 * infrun.c (handle_step_into_function, step_over_function): Only
10875 update and use STEP_FRAME_ID when the system is using legacy
10876 frames. Update comments.
10878 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10880 * amd64-linux-tdep.h: Remove file.
10881 * amd64-linux-tdep.c: Don't include "inferior.h" and
10882 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10883 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10884 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10885 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10886 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10888 (user_to_gdb_regmap): Remove variable.
10889 (amd64_linux_gregset_reg_offset): New variable.
10890 (amd64_core_fns): Remove variable.
10891 (fetch_core_registers): Remove function.
10892 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10894 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10895 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10896 * Makefile.in (amd64_linux_tdep_h): Remove.
10897 (amd64-linux-nat.o): Update dependencies.
10898 (amd64-linux-tdep.o): Update dependencies.
10900 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10901 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10903 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10905 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10906 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10908 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10910 * dwarf2read.c (read_structure_type): Rename from
10911 read_structure_scope. Don't create a symbol or call process_die.
10912 Return immediately if die->type is set. Call read_type_die before
10913 dwarf2_add_member_fn.
10914 (process_structure_scope): New function.
10915 (read_enumeration_type, process_enumeration_scope): New functions,
10916 broken out from read_enumeration. Don't create the enumeration
10917 type if it has already been created.
10918 (read_enumeration): Removed.
10919 (process_die): Call read_structure_type, process_structure_scope,
10920 read_enumeration_type, and process_enumeration_scope. Just call
10921 new_symbol for base and subrange types. Add a comment about other
10923 (read_type_die): Call read_enumeration_type.
10924 (add_partial_structure, new_symbol): Update comments.
10926 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10928 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10930 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10932 * tui/tui-win.h (tui_get_cmd_list): Declare.
10933 * tui/tui-win.c (tui_command): New function.
10934 (tui_get_cmd_list): New function.
10935 (_initialize_tui_win): Moved initialization of tui command in
10938 * tui/tui-data.c (init_content_element): Setup new data members.
10939 (init_win_info): Likewise.
10940 (free_content_elements): Free it.
10941 * tui/tui-data.h (struct tui_data_element): Store the register
10943 (struct tui_data_info): Keep the current register group.
10945 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10947 * tui/tui-regs.h (tui_show_registers): Update prototype.
10948 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10949 (tui_resize_all): No need to calculate anything for register window.
10950 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10951 (tui_set_register_element, tui_set_general_regs_content): Remove.
10952 (tui_set_special_regs_content): Remove.
10953 (tui_set_general_and_special_regs_content): Remove.
10954 (tui_set_float_regs_content): Remove.
10955 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10956 (tui_set_regs_content): Remove.
10957 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10958 (tui_v_show_registers_command_support): Remove.
10959 (tui_show_registers): Use a reggroup to specify the registers to show.
10960 (tui_show_register_group): New function.
10961 (tui_display_registers_from): Compute the layout of register window
10962 and refresh with new API; be sure to delete old register windows.
10963 (tui_check_register_values): Update to use tui_get_register and
10965 (tui_display_register): Just refresh the register window part.
10966 (tui_register_format): Format registers and save in tui_data_element.
10967 (tui_get_register): New to combine tui_reg_value_has_changed and
10968 tui_get_register_raw_value; fix to use the new gdb API.
10969 (tui_show_float_command): Renamed tui_reg_float_command.
10970 (tui_show_general_command): Renamed tui_reg_general_command.
10971 (tui_show_special_command): Renamed tui_reg_system_command.
10972 (_initialize_tui_regs): Remove unused commands.
10974 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10976 * NEWS (New native configurations): Mention OpenBSD/amd64.
10978 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10979 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10981 * config/i386/nm-fbsd64.h: Likewise.
10982 * config/i386/nm-obsd.h: Likewise.
10983 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10984 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10986 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10988 * frv-tdep.c (set_variant_scratch_registers): New function.
10989 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10992 From Richard Sandiford <rsandifo@redhat.com>:
10993 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10995 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10997 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10998 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10999 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11000 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11001 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11002 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11003 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11004 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11005 definitions from frv-tdep.c to frv-tdep.h.
11007 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11009 Add shared library support for FR-V FDPIC ABI:
11010 * Makefile.in (solib-frv.o): Add dependencies.
11011 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11013 (frv_push_dummy_call): Add support for FDPIC ABI.
11014 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11016 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11017 (frv_fdpic_find_canonical_descriptor): Declare.
11018 * solib-frv.c: New file.
11019 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11020 * config/frv/tm-frv.h (solib.h): Include.
11022 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11024 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11025 (frv-tdep.o): Update dependencies.
11026 * frv-tdep.h: New file.
11027 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11028 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11030 (struct gdbarch_tdep): Add new member ``frv_abi''.
11031 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11033 (new_variant): Set ``frv_abi'' field.
11034 (gdb_arch_init): Detect FDPIC executables.
11036 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11038 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11041 2004-03-11 Andrew Cagney <cagney@redhat.com>
11043 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11045 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11047 * solist.h (master_so_list): New function.
11048 * solib.c (master_so_list): Likewise.
11049 * solib-svr4.c (enable_break): Iterate over so_list entries
11050 obtained from master list instead of entries obtained directly
11051 via svr4_current_sos().
11053 2004-03-10 Ben Elliston <bje@gnu.org>
11055 * MAINTAINERS: Update my mail address.
11057 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11059 * remote-m32r-sdi.c: Support hardware watchpoint.
11061 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11063 * user-regs.c: Update copyright years.
11064 (struct user_regs): Rename to gdb_user_regs.
11065 (append_user_reg, builtin_user_regs, user_regs_init)
11066 (user_reg_add, user_reg_map_name_to_regnum)
11067 (usernum_to_user_reg): Update.
11069 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11071 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11072 (skip_children): New functions.
11073 (locate_pdi_sibling): Call skip_children.
11075 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11077 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11078 * gdbtypes.c (check_typedef): Update comments.
11080 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11082 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11083 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11084 pointer. Update comment about comp_unit_head.
11085 (struct abbrev_info): Shorten two int flags.
11086 (dwarf_alloc_abbrev): Take a CU argument.
11087 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11088 each time through the loop. Update cleanup argument.
11089 (psymtab_to_symtab_1): Update cleanup call.
11090 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11092 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11093 Just call obstack_free and clear the pointer.
11095 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11097 * infrun.c (handle_inferior_event): Remove short-circuit code for
11098 events in a different thread.
11100 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11102 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11103 print the whole transfer.
11104 (initialize_targets): Update description of "set debug target".
11106 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11108 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11110 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11112 * MAINTAINERS (write after approval): Add myself.
11114 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11116 * sh-tdep.c (sh_print_registers_info): Use for loop.
11117 Don't skip multiple registers when a float register is encountered.
11119 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11122 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11123 to official SH documentation.
11125 2004-03-07 Andrew Cagney <cagney@redhat.com>
11127 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11130 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11132 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11133 (arm_get_next_pc): Handle BX and BLX.
11135 2004-03-07 Andrew Cagney <cagney@redhat.com>
11137 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11138 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11140 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11141 (hppa_target_read_fp): Delete.
11142 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11143 register_virtual_size, max_register_raw_size,
11144 max_register_virtual_size, register_byte, register_size,
11145 target_read_fp, fp_regnum, and register_bytes. Set register_type
11146 instead of register_virtual_type.
11147 (hppa32_register_type, hppa64_register_type): Replace
11148 hppa32_register_virtual_type and hppa64_register_virtual_type.
11149 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11150 (HPPA_FP_REGNUM): Define.
11152 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11154 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11155 (pa_do_registers_info): Delete.
11156 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11157 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11158 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11160 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11161 GDB_TARGET_IS_HPPA code.
11162 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11163 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11164 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11165 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11166 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11167 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11168 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11169 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11170 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11171 (hppa_frameless_function_invocation, hppa64_store_return_value)
11172 (hppa_store_struct_return, hppa64_extract_return_value)
11173 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11174 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11175 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11176 (find_proc_framesize, deposit_21, restore_pc_queue)
11177 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11178 (rp_saved, pc_in_linker_stub): Delete.
11180 Unconditionally enable 64-bit frame and ABI code.
11181 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11182 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11183 push_dummy_frame, fix_call_dummy, push_arguments,
11184 call_dummy_location, extract_return_value, use_struct_convention,
11185 store_return_value, store_struct_return, saved_pc_after_call,
11186 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11187 frame_chain, frame_chain_valid, frameless_function_invocation,
11188 frame_saved_pc, and pop_frame.
11190 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11191 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11192 (hppa_gdbarch_init): Do not set PC_REGNUM.
11194 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11196 * config/alpha/tm-fbsd.h: Remove file.
11197 * config/alpha/fbsd.mt: Tweak comment.
11198 (TM_FILE): Set to tm-alpha.h.
11200 2004-03-05 Andrew Cagney <cagney@redhat.com>
11202 * infrun.c (step_over_function): When non-legacy code, and no
11203 step_frame_id, use the unwinder to get the caller's frame ID.
11205 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11207 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11208 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11209 bfd_arch_unknown. Adjust comment.
11211 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11212 * i386obsd-tdep.c: Correct spelling in comment.
11213 * i386nbsd-tdep.c: Correct spelling in comment.
11214 * sparc-tdep.c: Correct spelling in comments.
11216 2004-03-05 David Carlton <carlton@kealia.com>
11218 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11221 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11223 * sparc-tdep.c: Fix typo in comment.
11225 2004-03-04 J. Brobecker <brobecker@gnat.com>
11227 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11229 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11231 * dwarf2read.c: Add comment describing memory lifetimes.
11232 (struct dwarf2_pinfo): Update comment.
11233 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11234 (read_enumeration, new_symbol): Don't use obsavestring.
11236 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11238 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11239 instead of amd64_fill_fxsave.
11240 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11241 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11243 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11244 Reorganize code a bit.
11246 2004-03-04 Orjan Friberg <orjanf@axis.com>
11248 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11249 when the frame pointer is pushed. Don't set the frame pointer's
11250 address on the stack unless it's actually located there.
11251 Set the SRP's address on the stack correctly when the PC is still in
11253 (cris_return_value): New function.
11254 (cris_gdbarch_init): Clear deprecated store_return_value,
11255 extract_return_value.
11257 2004-03-02 Jim Blandy <jimb@redhat.com>
11259 * stabsread.c (reg_value_complaint): The maximum register number
11260 is one less than the number of registers.
11262 2004-03-02 Andrew Cagney <cagney@redhat.com>
11264 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11265 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11266 trailing comma and redundant assignment of I386_ST0_REGNUM.
11267 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11268 32-bit segment registers.
11270 2004-03-01 Andrew Cagney <cagney@redhat.com>
11272 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11273 use frame_relative_level and get_next_frame.
11275 2004-02-29 Andrew Cagney <cagney@redhat.com>
11277 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11278 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11279 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11282 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11284 * inflow.c (terminal_inferior): Don't give up the terminal if we
11285 previously couldn't get the inferior's terminal state.
11287 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11289 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11292 2004-02-28 Andrew Cagney <cagney@redhat.com>
11294 * NEWS: Refer to GDB 6.1.
11295 * README: Refer to GDB 6.1.
11296 * PROBLEMS: Refer to GDB 6.1.
11298 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11300 * thread-db.c (disable_thread_signals): Remove unused function.
11302 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11304 * amd64-nat.c: Include "gdb_string.h".
11305 (amd64_collect_native_gregset): Zero-extend the 32-bit
11306 general-purpose registers and %eip.
11308 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11309 * amd64-tdep.c (amd64_collect_fxsave): New function.
11310 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11312 * i387-tdep.h: Update copyright year.
11313 (i387_collect_fxsave): New prototype.
11314 * i387-tdep.c: Update copyright year.
11315 (i387_collect_fxsave): New function containing most of the code
11316 from i387_fill_fxsave.
11317 (i387_fill_fxsave): Call i387_collect_fxsave.
11319 2004-02-28 Andrew Cagney <cagney@redhat.com>
11321 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11322 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11324 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11326 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11328 2004-02-28 Andrew Cagney <cagney@redhat.com>
11330 * utils.c: Use "", instead of <>, to include readline.
11331 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11332 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11333 * source.c, solib.c, exec.c, event-top.c: Ditto.
11334 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11335 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11336 * Makefile.in: Update all dependencies.
11337 (readline_tilde_h, readline_history_h): Define.
11338 (readline_headers): Delete.
11340 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11342 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11343 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11344 "config/i386/tm-lx64.h".
11346 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11347 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11348 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11350 2004-02-28 Andrew Cagney <cagney@redhat.com>
11352 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11354 * breakpoint.c (_initialize_breakpoint): Use
11355 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11356 Add help to show command.
11358 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11360 * i386-nat.c: Reformat to be closer to coding standards.
11361 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11362 `retval'. Make variables `align' and `size' local to while-loop.
11363 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11364 (_initialize_i386_nat): New prototype.
11366 * tui/tui.c: Include <readline/readline.h> instead of
11367 "readline/readline.h". Include it after <term.h> and
11370 2004-02-27 Andrew Cagney <cagney@redhat.com>
11372 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11373 the new frame unwind code.
11374 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11375 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11378 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11379 "return_value" and "push_dummy_call".
11380 (hppa32_use_struct_convention): Delete unused function.
11381 (hppa32_store_return_value): Delete unused function.
11382 (hppa32_extract_return_value): Delete unused function.
11383 (hppa32_stack_align): Delete function.
11385 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11387 * coffread.c (enter_linenos): Don't let rawptr reference memory
11388 outside linetab[]'s limits.
11390 2004-02-27 Andrew Cagney <cagney@redhat.com>
11392 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11393 inferior stack space - the stack needs to grow upwards.
11394 (hppa32_frame_align): New function.
11395 (hppa64_frame_align): Replace hppa_frame_align.
11396 (hppa_gdbarch_init): Update.
11398 2004-02-26 Orjan Friberg <orjanf@axis.com>
11400 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11401 (dwarf2-frame.h): Include.
11402 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11403 Remove static variables related to ABI setting.
11404 (struct gdbarch_tdep): Remove cris_abi member.
11405 (struct frame_extra_info): Remove.
11406 (cris_unwind_cache, stack_item): New structs.
11407 (cris_frame_unwind, cris_frame_base): New variables.
11408 (push_stack_item, pop_stack_item)
11409 (cris_frame_unwind_cache, cris_frame_this_id)
11410 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11411 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11412 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11413 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11414 (cris_reg_struct_has_addr): New functions.
11415 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11416 (cris_frame_saved_pc, cris_saved_pc_after_call,
11417 (cris_store_struct_return, cris_frameless_function_invocation)
11418 (cris_pop_frame, cris_skip_prologue_main)
11419 (cris_abi_original_store_return_value)
11420 (cris_abi_v2_store_return_value)
11421 (cris_abi_original_extract_return_value)
11422 (cris_abi_v2_extract_return_value)
11423 (cris_abi_original_reg_struct_has_addr)
11424 (cris_abi_v2_reg_struct_has_addr)
11425 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11426 (cris_push_return_address, cris_abi_update): Remove.
11427 (_initialize_cris_tdep): Remove ABI command.
11428 (cris_dump_tdep): Ditto.
11429 (cris_gdbarch_init): Remove ABI command.
11430 Set store_return_value, extract_return_value, push_dummy_code,
11431 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11432 frame_unwind_append_sniffer, frame_base_set_default.
11433 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11434 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11435 sizeof_call_dummy_words, get_saved_register, push_return_address,
11436 pop_frame, store_struct_return, frame_init_saved_regs,
11437 init_extra_frame_info, frameless_function_invocation, frame_chain,
11438 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11441 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11443 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11444 * valprint.c (print_hex_chars): Change from static to external.
11445 (print_char_chars): New function.
11446 * printcmd.c (print_scalar_formatted): For integer and enum types
11447 that are longer than LONGEST, perform processing via appropriate
11448 print_*_chars routines.
11450 2004-02-26 Andrew Cagney <cagney@redhat.com>
11452 * Makefile.in: Update dependencies.
11453 Changes from Ulrich Weigand,
11454 * s390-tdep.c: Include "dwarf2-frame.h".
11455 (s390_dwarf2_frame_init_reg): New function.
11456 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11457 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11459 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11461 * breakpoint.c (pending_break_support): New setting variable.
11462 (break_command_1): Account for pending_break_support setting
11463 when creating pending breakpoints.
11464 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11465 (_initialize_breakpoint): Add "set breakpoint pending" and
11466 "show breakpoint pending" commands.
11468 2004-02-26 Andrew Cagney <cagney@redhat.com>
11471 * charset.c (backslashable, backslashed, represented): Remove 'e'
11472 from list of escaped characters, not part of ISO-C.
11474 2004-02-25 J. Brobecker <brobecker@gnat.com>
11476 From Peter Schauer <schauer@pdf.de>:
11477 * tui/tui.c: Move system header includes after local includes.
11478 Fixes a build failure on solaris systems.
11480 2004-02-25 J. Brobecker <brobecker@gnat.com>
11482 * configure.in: Refine the previous change.
11483 * configure: Regenerate.
11485 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11487 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11488 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11489 "amd64-tdep.h" instead of "x86-64-tdep.h".
11490 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11491 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11492 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11493 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11494 and "x86-64-tdep.c".
11495 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11496 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11497 and "x86-64-tdep.c".
11498 * amd64bsd-nat.c: Update copyright year.
11499 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11500 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11502 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11504 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11506 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11508 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11510 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11512 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11513 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11514 * Makefile.in (amd64_linux_tdep_h): Renamed from
11515 x86_64_linux_tdep_h.
11516 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11517 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11518 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11519 (amd64obsd-tdep.o): Update dependencies.
11520 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11522 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11524 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11525 amd64-linux-nat.c amd64-linux-tdep.c.
11526 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11527 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11528 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11529 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11530 amd64-tdep.o and amd64-linux-tdep.o.
11531 (TM_FILE): Set to tm-linux64.h.
11532 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11533 (NAT_FILE): Set to nm-linux64.h.
11534 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11535 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11537 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11539 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11542 2004-02-25 Roland McGrath <roland@redhat.com>
11544 * remote.c (remote_protocol_qPart_auxv): New variable.
11545 (init_all_packet_configs): Initialize it.
11546 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11547 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11548 (show_remote_cmd): Call it.
11549 (_initialize_remote): Initialize commands.
11550 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11551 service TARGET_OBJECT_AUXV requests.
11553 2004-02-25 J. Brobecker <brobecker@gnat.com>
11555 * configure.in: Make sure that the wborder function is available.
11556 Otherwise, search for it in the cur_colr library.
11557 * configure: Regenerate.
11559 2004-02-25 Andrew Cagney <cagney@redhat.com>
11561 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11563 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11565 * config/i386/tm-x86-64linux.h: Tweak comments.
11567 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11569 * MAINTAINERS: Add self to write-after-approval list.
11571 2004-02-25 Andrew Cagney <cagney@redhat.com>
11573 PR cli/1566. Problem found, and fix suggested by David Allan.
11574 * cli/cli-script.c (execute_control_command): Unconditionally
11575 install a cleanup. Default "ret" to "invalid_control". Use
11576 "break" instead of "return" to escape from the switch.
11578 2004-02-24 J. Brobecker <brobecker@gnat.com>
11580 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11581 with the lines macro defined in term.h on AiX.
11582 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11583 a collision with the label_width macro defined in term.h on AiX.
11585 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11587 Committed by Kevin Buettner <kevinb@redhat.com>.
11589 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11590 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11591 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11592 instead of ia64_write_pc().
11593 * ia64-linux-tdep.c (regcache.h): Include.
11594 (ia64_linux_write_pc): New function.
11596 2004-02-23 Roland McGrath <roland@redhat.com>
11598 * auxv.c (info_auxv_command): Fix typos in error messages.
11600 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11602 * x86-64-tdep.h: Tweak comment.
11603 (enum amd64_regnum): New.
11604 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11605 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11606 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11607 (X86_64_XMM1_REGNUM): Removed.
11608 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11609 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11610 prototypes for renamed functions.
11611 * x86-64-tdep.c: Fix typo.
11612 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11614 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11615 Use constants from `enum amd64_regnum' for register numbers.
11616 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11617 (amd64_analyze_prologue, amd64_frame_cache,
11618 amd64_sigtramp_frame_cache): Use constants from `enum
11619 amd64_regnum' for register numbers.
11620 (amd64_supply_fpregset): Adjust for renamed functions.
11621 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11622 `enum amd64_regnum' for register numbers.
11623 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11624 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11625 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11626 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11627 (amd64_linux_fill_gregset): Adjust for renamed macros.
11628 (fetch_core_registers): Adjust for renamed functions.
11629 (amd64_linux_init_abi): Adjust for renamed functions.
11630 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11632 * amd64-nat.c: Adjust for renamed macros.
11633 * amd64bsd-nat.c (fetch_inferior_registers)
11634 (store_inferior_registers): Use constants from `enum amd64_regnum'
11635 for register numbers. Adjust for renamed variables.
11636 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11638 (_initialize_amd64fbsd_nat): Use constants from `enum
11639 amd64_regnum' for register numbers.
11640 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11641 `enum amd64_regnum' for register numbers.
11642 (amd64fbsd_init_abi): Adjust for renamed functions.
11643 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11644 `enum amd64_regnum' for register numbers.
11645 (amd64nbsd_init_abi): Adjust for renamed functions.
11646 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11647 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11648 `enum amd64_regnum' for register numbers.
11649 (amd64obsd_init_abi): Adjust for renamed functions.
11650 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11652 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11654 * breakpoint.c (print_one_breakpoint): Do not output spaces
11655 after printing <PENDING> for a pending breakpoint.
11657 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11659 * printcmd.c (print_scalar_formatted): Initialize val_long
11660 to remove compiler warning message.
11662 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11664 * defs.h (nquery, yquery): New prototypes.
11665 * breakpoint.c (break_command_1): Use new nquery interface.
11666 * utils.c (defaulted_query, nquery, yquery): New functions.
11668 2004-02-23 Andrew Cagney <cagney@redhat.com>
11670 * hppa-tdep.c (hppa_frame_align): New function.
11671 (hppa32_push_dummy_call): New function.
11672 (hppa64_push_dummy_call): New function.
11673 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11676 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11677 FIX_CALL_DUMMY when push_dummy_call is available.
11678 (call_function_by_hand, push_dummy_code): Ditto.
11680 2004-02-22 Andrew Cagney <cagney@redhat.com>
11682 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11683 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11684 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11685 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11686 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11687 call_dummy_location to ON_STACK.
11689 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11691 * x86-64-linux-tdep.c: Tweak comment.
11692 (amd64_linux_supply_gregset): Renamed from
11693 x86_64_linux_supply_gresget.
11694 (amd64_linux_fill_gregset): Renamed from
11695 x86_64_linux_fill_gregset.
11696 (fetch_core_registers): Adjust for renamed functions.
11697 (amd64_core_fns): Renamed from x86_64_core_fns.
11698 (amd64_linux_sigtramp_start): Renamed from
11699 x86_64_linux_sigtramp_start.
11700 (amd64_linux_pc_in_sigtramp): Renamed from
11701 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11702 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11703 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11704 (amd64_linux_sigcontext_addr): Renamed from
11705 x86_64_linux_sigcontext_addr.
11706 (amd64_linux_sc_reg_offset): Renamed from
11707 x86_64_linux_sc_reg_offset.
11708 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11709 Adjust for renamed functions and variables.
11710 (_initialize_amd64_linux_tdep): Renamed from
11711 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11713 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11714 Adjust for renamed functions.
11716 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11717 from x86_64_linux_gregset64_reg_offset.
11718 (amd64_linux_gregset32_reg_offset): Rename from
11719 x86_64_linux_gregset64_reg_offset.
11720 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11721 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11722 (amd64_linux_dr_set_control): Renamed from
11723 x86_64_linux_dr_set_control. Adjust for renamed functions.
11724 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11725 Adjust for renamed functions.
11726 (amd64_linux_dr_reset_addr): Renamed from
11727 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11728 (amd64_linux_dr_get_status): Renamed from
11729 x86_64_linux_dr_get_status. Adjust for renamed functions.
11730 (_initialize_amd64_linux_nat): Renamed from
11731 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11733 * config/i386/nm-x86-64linux.h: Update copyright year.
11734 Adjust for renamed functions.
11736 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11737 amd64fbsd_sigtramp_start.
11738 (amd64fbsd_sigtramp_end_addr): Renamed from
11739 amd64fbsd_sigtramp_end.
11740 (amd64fbsd_init_abi): Adjust for renamed variables.
11741 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11743 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11744 amd64fbsd_sigtramp_start.
11745 (amd64fbsd_sigtramp_end_addr): Renamed from
11746 amd64fbsd_sigtramp_end.
11748 2004-02-22 Andrew Cagney <cagney@redhat.com>
11750 * hppa-tdep.c (hppa32_return_value): New function.
11751 (hppa64_return_value): New function.
11752 (hppa_gdbarch_init): Set return_value; keep disabled.
11754 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11755 struct-return and inferior function call methods.
11757 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11759 (struct hppa_frame_cache): Define.
11760 (hppa_frame_cache, hppa_frame_this_id): New functions.
11761 (hppa_frame_prev_register): New function.
11762 (hppa_frame_unwind, hppa_frame_base): New variables.
11763 (hppa_frame_unwind_sniffer): New function.
11764 (hppa_frame_base_address, hppa_unwind_pc): New function.
11765 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11766 sniffer, and frame base sniffer; keep disabled.
11767 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11768 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11770 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11771 to predicates for "seriously old code".
11773 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11776 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11778 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11780 * config/pa/tm-hppa.h: Update copyright.
11781 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11782 (deprecated_init_frame_pc_default): Delete declaration.
11783 (hppa_frame_init_saved_regs): Delete declaration.
11784 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11785 * hppa-tdep.c: Include "arch-utils.h".
11786 (hppa_gdbarch_init): Set deprecated init_frame_pc
11787 and deprecated frame_init_saved_regs.
11788 (hppa_frame_init_saved_regs): Make static.
11790 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11792 Remove old 386BSD support.
11793 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11794 * configure.host: Remove i[34567]86-*-bsd*.
11795 * configure.tgt: Remove i[34567]86-*-bsd*.
11796 * i386b-nat.c: Removed.
11797 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11798 (i386b-nat.o): Remove dependencies.
11800 * config/i386/i386bsd.mh: Removed.
11801 * config/i386/i386bsd.mt: Removed.
11802 * config/i386/nm-i386bsd.h: Removed.
11803 * config/i386/tm-i386bsd.h: Removed.
11804 * config/i386/xm-i386bsd.h: Removed.
11806 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11808 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11809 (amd64fbsd_init_abi): Set link map offsets.
11810 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11811 (amd64nbsd_init_abi): Set link map offsets.
11812 * amd64obsd-tdep.c: Include "solib-svr4.h".
11813 (amd64obsd_init_abi): Set link map offsets.
11814 * i386fbsd-tdep.c: Include "solib-svr4.h".
11815 (i386fbsd_init_abi): Set link map offsets.
11816 * i386nbsd-tdep.c: Include "solib-svr4.h".
11817 (i386nbsdelf_init_abi): Set link map offsets.
11818 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11819 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11820 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11821 solib-legacy.o and core-aout.o. Reformat.
11822 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11823 solib-svr4.o, solib-legacy.o. Reformat.
11824 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11825 * config/i386/nbsdelf.mh: Reformat.
11826 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11827 solib-svr4.o, solib-legacy.o and corelow.o.
11828 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11829 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11830 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11831 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11832 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11833 (TM_FILE): Set to tm-fbsd.h.
11834 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11835 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11837 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11839 (TM_FILE): Set to nm-nbsd.h.
11840 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11841 Simplify shared library support. Don't include "elf/common.h".
11842 (SVR4_SHARED_LIBS): Don't define.
11843 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11845 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11846 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11847 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11848 Don't include "i386/tm-i386.h". Include "solib.h".
11849 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11850 Don't include "i386/tm-i386.h".
11851 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11852 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11853 Include "i386/xm-i386.h".
11854 (HOST_LONG_DOUBLE_FORMAT): Remove.
11856 Fix OpenBSD/i386 sigtramp recognition.
11857 * i386-tdep.h: Update copyright year.
11858 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11859 (i386bsd_sigtramp_end): New prototypes.
11860 (i386fbsd_sigtramp_start_addr): Renamed from
11861 i386fbsd_sigtramp_start.
11862 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11863 (i386obsd_sigtramp_start_addr): Renamed from
11864 i386obsd_sigtramp_start.
11865 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11866 * i386bsd-tdep.c: Update copyright year.
11867 (i386bsd_pc_in_sigtramp): Make public.
11868 * i386fbsd-nat.c: Update copyright year.
11869 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11870 * i386fbsd-tdep.c: Update copyright year.
11871 (i386fbsd_sigtramp_start_addr): Renamed from
11872 i386fbsd_sigtramp_start.
11873 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11874 (i386fbsdaout_init_abi): Adjust for renamed variables.
11875 * i386obsd-nat.c: Update copyright year.
11876 (_initialize_i386obsd_nat): Adjust for renamed variables.
11877 * i386obsd-tdep.c: Include "target.h".
11878 (i386obsd_page_size): New variable.
11879 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11880 (i386obsd_sigtramp_end): New functions.
11881 (i386obsd_sigtramp_start_addr): Renamed from
11882 i386obsd_sigtramp_start.
11883 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11884 (i386obsd_init_abi): Adjust for renamed variables. Set
11885 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11886 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11888 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11889 trampoline change in OpenBSD kernel.
11891 * amd64-nat.c: Update copyright year.
11892 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11893 architecture from REGCACHE.
11895 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11896 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11898 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11900 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11901 i[34567]86-*-openbsd3.[0-3].
11902 * config/i386/obsdaout.mh: New file.
11904 * config/i386/obsd.mh (MH_FLAGS): Remove.
11907 * i386obsd-tdep.c: Update copyright years. Include
11909 (i386obsd_init_abi): Don't set regset_from_core_section here.
11910 (i386obsd_aout_init_abi): New function. Set
11911 regset_from_core_section here.
11912 (i386obsd_elf_init_abi): New function.
11913 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11914 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11915 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11916 (TM_FILE): Set to tm-nbsd.h.
11918 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11921 * solib-svr4.h: Update copyright year.
11922 (svr4_ilp32_fetch_link_map_offsets)
11923 (svr4_lp64_fetch_link_map_offsets): New prototype.
11924 * solib-svr4.c: Update copyright year.
11925 (svr4_ilp32_fetch_link_map_offsets)
11926 (svr4_lp64_fetch_link_map_offsets): New function.
11928 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11930 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11931 to the partial symbol table.
11933 2004-02-20 J. brobecker <brobecker@gnat.com>
11935 * PROBLEMS: Add description of problem documented under gdb/1560.
11937 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11939 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11941 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11943 (amd64obsd_init_abi): Reorder initializations. Use
11944 amd64obsd_r_reg_offset to initialize the general-purpose register
11945 set details. Set regset_from_core_section.
11946 (_initialize_amd64obsd_tdep): Rename from
11947 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11948 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11949 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11951 * NEWS (New native configurations): Mention OpenBSD/alpha.
11952 * configure.tgt: Add alpha*-*-openbsd*.
11953 * configure.host: Add alpha*-*-openbsd*.
11954 * alphanbsd-tdep.c: Update copyright year.
11955 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11957 2004-02-20 Andrew Cagney <cagney@redhat.com>
11960 * configure.tgt: Delete target "none-*-*".
11961 * configure.host: Delete host "none-*-*".
11962 * config/none/none.mh: Delete file.
11963 * config/none/none.mt: Delete file.
11964 * config/none/xm-none.h: Delete file.
11965 * config/none/tm-none.h: Delete file.
11966 * config/none/nm-none.h: Delete file.
11968 2004-02-19 Fred Fish <fnf@redhat.com>
11970 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11971 cache->uses_fp prior to setting it.
11973 2004-02-19 Fred Fish <fnf@redhat.com>
11975 Fix for PR breakpoint/1558.
11976 * sh-tdep.c (IS_JSR): New macro.
11977 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11979 2004-02-19 Jim Blandy <jimb@redhat.com>
11981 * findvar.c (value_from_register): Doc fix.
11983 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11985 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11986 type being greater than sizeof of host's LONGEST. Always use
11987 unpack_long() unless format 'f' chosen.
11989 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11991 Committed by Elena Zannoni <ezannoni@redhat.com>
11993 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11994 contains a symbol wich is the best, non-exact match for the given
11995 pc. Update comments.
11997 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11999 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12000 macro, which was part of the now removed Mach 3 port.
12001 * utils.c (request_quit): Ditto.
12003 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12005 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12006 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12008 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12010 Committed by Mark Kettenis <kettenis@gnu.org>.
12012 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12015 2004-02-18 Andrew Cagney <cagney@redhat.com>
12017 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12018 CONFIG_INSTALL and CONFIG_UNINSTALL.
12019 * configure: Re-generate.
12020 * interps.h (INTERP_TUI): Define.
12021 * Makefile.in: Update dependencies.
12023 (tui-main.o): Specify dependencies.
12024 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12025 * tui/tui-main.c: New file.
12027 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12029 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12030 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12032 * configure.host: Add x86_64-*-openbsd*.
12033 * configure.tgt: Add x86_64-*-openbsd*.
12034 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12036 * tui/tui.c: Don't include <malloc.h>.
12038 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12039 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12042 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12043 static. Remove extraneous whitespace.
12044 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12047 2004-02-17 Jim Blandy <jimb@redhat.com>
12049 * findvar.c (value_from_register): Doc fix.
12051 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12053 Committed by Jim Blandy <jimb@redhat.com>.
12055 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12056 CORE_ADDR as type for selectors. Correct types for GNU run time
12057 message lookup function to use double indirection.
12058 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12059 * objc-lang.h (lookup_child_selector): Adapt prototype.
12061 * s390-nat.c (SUBOFF): New macro.
12062 (supply_gregset, fill_gregset): Use it to handle debugging
12063 of 32-bit exectuables running under a 64-bit kernel.
12064 * s390-tdep.c: Include "solib-svr4.h".
12065 (s390_svr4_fetch_link_map_offset): New function.
12066 (s390x_svr_fetch_link_map_offset): Likewise.
12067 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12068 * Makefile.in (s390-tdep.o): Update dependencies.
12070 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12072 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12073 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12074 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12075 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12076 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12077 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12078 S390_SIGNAL_FRAMESIZE,
12079 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12080 (struct frame_extra_info): Remove.
12081 (s390_memset_extra_info): Remove.
12082 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12083 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12084 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12085 (is_rse): Renamed to ...
12086 (is_rsy): ... this. Support long displacements.
12087 (is_rxe): Renamed to ...
12088 (is_rxy): ... this. Support long displacements.
12089 (compute_x_addr): Support long displacements.
12090 (struct s390_prologue_data): New data type.
12091 (s390_on_stack): Change API to use struct s390_prologue_data.
12092 (s390_store): Reimplement.
12093 (s390_load): New function.
12094 (s390_get_signal_frame_info): Remove.
12095 (s390_get_frame_info): Remove, replace by ...
12096 (s390_analyze_prolog): ... this new function.
12097 (s390_check_function_end): Remove.
12098 (s390_function_start): Remove.
12099 (s390_frameless_function_invokation): Remove.
12100 (s390_is_sigreturn): Remove.
12101 (s390_init_frame_pc_first): Remove.
12102 (s390_init_frame_extra_info): Remove.
12103 (s390_frame_init_saved_regs): Remove.
12104 (s390_frame_saved_pc_nofix): Remove.
12105 (s390_frame_saved_pc): Remove.
12106 (s390_frame_chain): Remove.
12107 (s390_fp_regnum, s390_read_fp): Remove.
12108 (s390_pop_frame_regular, s390_pop_frame): Remove.
12109 (s390_saved_pc_after_call): Remove.
12110 (s390_skip_prologue): Reimplement.
12111 (s390_in_function_epilogue_p): Support long displacements.
12112 (struct s390_unwind_cache): New data structure.
12113 (s390_frame_unwind_cache): New function.
12114 (s390_prologue_frame_unwind_cache): Likewise.
12115 (s390_backchain_frame_unwind_cache): Likewise.
12116 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12117 (s390_frame_unwind): Define.
12118 (s390_frame_sniffer): New function.
12119 (struct s390_pltstub_unwind_cache): New data structure.
12120 (s390_pltstub_frame_unwind_cache): New function.
12121 (s390_pltstub_frame_this_id): Likewise.
12122 (s390_pltstub_frame_prev_register): Likewise.
12123 (s390_pltstub_frame_unwind): Define.
12124 (s390_pltstub_frame_sniffer): New function.
12125 (struct s390_sigtramp_unwind_cache): New data structure.
12126 (s390_sigtramp_frame_unwind_cache): New function.
12127 (s390_sigtramp_frame_this_id): Likewise.
12128 (s390_sigtramp_frame_prev_register): Likewise.
12129 (s390_sigtramp_frame_unwind): Define.
12130 (s390_sigtramp_frame_sniffer): New function.
12131 (s390_frame_base_address, s390_local_base_address): New functions.
12132 (s390_frame_base): Define.
12133 (s390_unwind_pc, s390_unwind_sp): New function.
12134 (s390_push_dummy_call): Use new frame base location.
12135 (s390_unwind_dummy_id): Likewise.
12136 (s390_gdbarch_init): Remove calls to:
12137 set_gdbarch_frameless_function_invocation,
12138 set_gdbarch_deprecated_init_frame_pc,
12139 set_gdbarch_deprecated_frame_chain,
12140 set_gdbarch_deprecated_frame_init_saved_regs,
12141 set_gdbarch_deprecated_pop_frame,
12142 set_gdbarch_deprecated_init_extra_frame_info,
12143 set_gdbarch_deprecated_init_frame_pc_first,
12144 set_gdbarch_deprecated_target_read_fp,
12145 set_gdbarch_deprecated_frame_saved_pc,
12146 set_gdbarch_deprecated_saved_pc_after_call,
12147 set_gdbarch_deprecated_fp_regnum.
12149 set_gdbarch_in_solib_call_trampoline,
12150 frame_unwind_append_sniffer,
12151 frame_base_set_default,
12152 set_gdbarch_unwind_pc,
12153 set_gdbarch_unwind_sp.
12154 * Makefile.in (s390-tdep.o): Update dependencies.
12156 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12157 (S390_STACK_FRAME_OVERHEAD): Remove.
12158 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12159 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12160 (s390_promote_integer_argument): Remove.
12161 (s390_cannot_extract_struct_value_address): Remove.
12162 (s390_use_struct_convention, s390_store_struct_return): Remove.
12163 (s390_extract_return_value, s390_store_return_value): Remove.
12164 (s390_return_value_convention, s390_return_value): New functions.
12165 (is_float_singleton): Handle typedefs.
12166 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12167 Remove, replace by ...
12168 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12169 s390_function_arg_integer): ... these new functions.
12170 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12171 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12172 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12175 set_gdbarch_deprecated_store_struct_return,
12176 set_gdbarch_deprecated_extract_return_value,
12177 set_gdbarch_deprecated_store_return_value,
12178 set_gdbarch_use_struct_convention,
12179 set_gdbarch_extract_struct_value_address,
12180 set_gdbarch_deprecated_pc_in_call_dummy,
12181 set_gdbarch_deprecated_push_arguments,
12182 set_gdbarch_deprecated_save_dummy_frame_tos,
12183 set_gdbarch_deprecated_push_return_address,
12184 set_gdbarch_deprecated_sizeof_call_dummy_words,
12185 set_gdbarch_deprecated_call_dummy_words,
12186 set_gdbarch_deprecated_dummy_write_sp.
12188 set_gdbarch_push_dummy_call,
12189 set_gdbarch_unwind_dummy_id,
12190 set_gdbarch_return_value.
12192 * config/s390/nm-linux.h: Update comments.
12193 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12194 (STOPPED_BY_WATCHPOINT): Redefine.
12195 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12196 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12197 (s390_stopped_by_watchpoint): Likewise.
12198 (watch_area_cnt): Remove.
12199 * s390-nat.c: Update comments.
12200 (watch_area): Remove typedef.
12201 Global replace watch_area by struct watch_area.
12202 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12203 (s390_stopped_by_watchpoint): Remove pid argument,
12204 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12205 (s390_fix_watch_points): Remove pid argument,
12206 use s390_inferior_tid. Recompute area spanned by watchpoints.
12207 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12208 argument. Reimplement.
12210 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12211 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12212 (FETCH_INFERIOR_REGISTERS): Define.
12213 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12215 * config/s390/s390x.mt: Remove.
12216 * config/s390/tm-s390.h: Remove.
12217 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12218 (TARGET_ELF64): Remove.
12219 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12220 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12221 s390*-*-* case; always set gdb_target to s390.
12222 * regformats/reg-s390.dat: Remove control registers.
12223 * regformats/reg-s390x.dat: Likewise.
12224 * s390-tdep.h: New file.
12225 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12226 Include "inferior.h" and "s390-tdep.h".
12227 Remove private definition of offsetof.
12228 (s390_register_u_addr): Remove.
12229 (regmap_gregset, regmap_fpregset): Define.
12230 (supply_gregset, fill_gregset): Reimplement.
12231 (supply_fpregset, fill_fpregset): Likewise.
12232 (s390_inferior_tid): New function.
12233 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12234 (fetch_inferior_registers, store_inferior_registers): Likewise.
12235 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12236 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12237 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12238 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12239 (struct gdbarch_tdep): Define.
12240 (struct s390_register_info): Define.
12241 (s390_register_info): New variable.
12242 (s390_register_name): Reimplement.
12243 (s390_register_type): New function.
12244 (s390_register_raw_size, s390x_register_raw_size): Remove.
12245 (s390_cannot_fetch_register): Remove.
12246 (s390_register_byte): Remove.
12247 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12248 (s390_dwarf_regmap): New variable.
12249 (s390_dwarf_reg_to_regnum): New function.
12250 (s390_stab_reg_to_regnum): Remove.
12251 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12252 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12253 (s390_convert_register_p): Likewise.
12254 (s390_register_to_value, s390_value_to_register): Likewise.
12255 (s390_register_reggroup_p): Likewise.
12256 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12257 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12258 (s390_supply_regset, s390_regset_from_core_section): New functions.
12259 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12260 (S390_FPR_SIZE): Likewise.
12261 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12262 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12263 (S390_NUM_GPRS): Move here from tm-s390.h.
12264 (S390_NUM_FPRS): Likewise.
12265 (s390_in_function_epilogue_p): New function.
12266 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12267 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12268 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12269 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12270 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12272 set_gdbarch_deprecated_max_register_raw_size,
12273 set_gdbarch_deprecated_max_register_virtual_size,
12274 set_gdbarch_deprecated_register_byte,
12275 set_gdbarch_cannot_fetch_register,
12276 set_gdbarch_cannot_store_register,
12277 set_gdbarch_deprecated_register_size,
12278 set_gdbarch_deprecated_register_raw_size,
12279 set_gdbarch_deprecated_register_virtual_size,
12280 set_gdbarch_deprecated_register_virtual_type,
12281 set_gdbarch_deprecated_register_bytes.
12283 set_gdbarch_num_pseudo_regs,
12284 set_gdbarch_register_type,
12285 set_gdbarch_convert_register_p,
12286 set_gdbarch_register_to_value,
12287 set_gdbarch_value_to_register,
12288 set_gdbarch_register_reggroup_p,
12289 set_gdbarch_regset_from_core_section,
12290 set_gdbarch_pseudo_register_read,
12291 set_gdbarch_pseudo_register_write,
12292 set_gdbarch_in_function_epilogue_p.
12293 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12294 (s390_tdep_h): New variable.
12296 2004-02-17 Jim Blandy <jimb@redhat.com>
12298 * findvar.c (value_from_register): If the type has no length, just
12299 return an acceptable value --- don't report an internal error.
12301 * stabsread.c (read_type): If we find any type numbers that are
12302 forward references, complain if the references aren't resolved by
12303 the time we're finished reading.
12304 (cleanup_undefined_types): Make error message more appropriate for
12307 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12309 * Makefile.in (defs_h): Remove dependency on progress_h.
12310 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12312 * main.c (captured_main): Delete use of START_PROGRESS and
12315 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12317 * objfiles.c (terminate_minimal_symbol_table): Add back
12318 initialization of MSYMBOL_TYPE.
12320 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12322 Committed by Andrew Cagney.
12323 * Makefile.in (ia64_tdep_h): New macro.
12324 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12325 (ia64-tdep.o): Likewise.
12326 * ia64-tdep.h: New file.
12327 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12328 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12329 (ia64_aix_sigcontext_register_address): Likewise.
12330 (ia64_linux_getunwind_table): Delete declaration.
12331 * ia64-linux-tdep.c: Likewise.
12333 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12335 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12336 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12337 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12339 2004-02-17 Andrew Cagney <cagney@redhat.com>
12341 * symtab.c (skip_prologue_using_sal): New function.
12342 * symtab.h (skip_prologue_using_sal): Declare.
12343 * frv-tdep.c: Include "symtab.h".
12344 (skip_prologue_using_sal): Delete function.
12345 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12346 * rs6000-tdep.c (refine_prologue_limit): Mention
12347 skip_prologue_using_sal.
12348 * ia64-tdep.c (refine_prologue_limit): Ditto.
12349 * Makefile.in: Update dependencies.
12351 2004-02-16 Andrew Cagney <cagney@redhat.com>
12353 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12354 START_INFERIOR_TRAPS_EXPECTED.
12355 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12356 START_INFERIOR_TRAPS_EXPECTED.
12357 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12359 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12360 macro, moved to "nm-osf.h". Update copyright.
12361 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12364 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12365 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12366 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12367 frameless_look_for_prologue.
12368 * frame.h (legacy_frameless_look_for_prologue): Rename
12369 frameless_look_for_prologue.
12370 * gdbarch.h, gdbarch.c: Re-generate.
12371 * sh64-tdep.c (sh64_gdbarch_init): Update.
12372 * sh-tdep.c (sh_gdbarch_init): Update.
12373 * s390-tdep.c (s390_gdbarch_init): Update.
12374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12375 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12376 * m68k-tdep.c (m68k_gdbarch_init): Update.
12377 (delta68_frame_args_address): Update.
12378 * m32r-tdep.c (m32r_gdbarch_init): Update.
12379 * hppa-tdep.c (hppa_gdbarch_init): Update.
12380 * h8300-tdep.c (h8300_gdbarch_init): Update.
12381 * frv-tdep.c (frv_gdbarch_init): Update.
12382 (frv_frameless_function_invocation): Update.
12383 * cris-tdep.c (cris_gdbarch_init): Update.
12384 (cris_frameless_function_invocation): Update.
12385 * avr-tdep.c (avr_gdbarch_init): Update.
12386 * arm-tdep.c (arm_gdbarch_init): Update.
12387 * stack.c (frame_info): Update, call predicate.
12388 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12389 * frame.c (legacy_get_prev_frame): Update, call predicate..
12390 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12391 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12392 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12394 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12395 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12396 * vax-tdep.c (vax_gdbarch_init): Ditto.
12398 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12401 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12403 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12406 2004-02-16 Andrew Cagney <cagney@redhat.com>
12408 * tui/tui-windata.c: Include "gdb_string.h".
12409 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12410 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12411 * Makefile.in: Update dependencies.
12413 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12415 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12416 * infrun.c: Include "gdb_assert.h".
12417 (singlestep_ptid, saved_singlestep_ptid)
12418 (stepping_past_singlestep_breakpoint): New variables.
12419 (resume): Set singlestep_ptid. Check for singlestep thread
12421 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12422 (handle_inferior_event): Handle singlestep thread hop.
12424 2004-02-16 Andrew Cagney <cagney@redhat.com>
12426 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12427 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12428 (dwarf2_frame_init_reg): Ditto.
12430 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12431 suggested by Joshua Neuheisel
12433 * configure.in: Always check for curses, including pdcurses.
12434 Warn, instead of error, when no curses are found. Enable TUI when
12435 curses is available.
12436 * configure: Re-generate.
12438 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12440 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12441 sh_sh4_register_convert_to_virtual.
12442 (sh_register_convert_to_raw): Rename from
12443 sh_sh4_register_convert_to_raw.
12444 (sh_pseudo_register_read): Accomodate above name change.
12445 (sh_pseudo_register_write): Ditto.
12447 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12449 * sh-tdep.c (sh_generic_register_name): Remove.
12450 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12452 2004-02-15 Andrew Cagney <cagney@redhat.com>
12454 * configure.in (build_warnings): Add -Wunused-function.
12455 * configure: Re-generate.
12457 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12458 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12460 * procfs.c (procfs_init_inferior): Assume that
12461 START_INFERIOR_TRAPS_EXPECTED is defined.
12462 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12463 * config/ns32k/tm-nbsd.h: Delete file,
12464 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12466 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12467 * config/vax/tm-vax.h: Delete file.
12469 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12470 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12471 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12472 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12473 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12474 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12475 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12477 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12479 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12480 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12481 (struct dwarf2_frame_ops): New.
12482 (dwarf2_frame_default_init_reg): New function, based on
12483 dwarf2_frame_init_reg.
12484 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12485 (dwarf2_frame_init_reg): Call architecture-specific function.
12486 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12487 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12488 instead of dwarf2_frame_data.
12489 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12490 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12492 2004-02-15 Andrew Cagney <cagney@redhat.com>
12494 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12495 register_gdbarch_swap.
12496 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12497 * f-lang.c (_initialize_f_language): Update, use
12498 DEPRECATED_REGISTER_GDBARCH_SWAP.
12499 * remote.c (_initialize_remote): Ditto.
12500 * regcache.c (_initialize_regcache): Ditto.
12501 * parse.c (_initialize_parse): Ditto.
12502 * infrun.c (_initialize_infrun): Ditto.
12503 * mi/mi-main.c (_initialize_mi_main): Ditto.
12504 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12506 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12507 poking .cacheable directly.
12508 * symfile.c (symfile_bfd_open): Ditto.
12510 * Makefile.in: Update all dependencies.
12512 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12513 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12514 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12515 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12516 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12518 2004-02-14 Andrew Cagney <cagney@redhat.com>
12520 * arch-utils.c (legacy_convert_register_p): Check
12521 DEPRECATED_REGISTER_CONVERTIBLE_P.
12522 * findvar.c (value_of_register): Ditto.
12524 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12525 * gdbarch.h, gdbarch.c: Re-generate.
12526 * arch-utils.c (deprecated_register_convertible_not): Delete.
12527 * arch-utils.h (deprecated_register_convertible_not): Delete.
12528 * mi/mi-main.c (get_register): Update. Update copyright.
12529 * infcmd.c (default_print_registers_info): Update.
12531 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12532 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12533 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12534 * gdbarch.h, gdbarch.c: Re-generate.
12535 * frame.c (deprecated_get_next_frame_hack): Delete function.
12536 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12537 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12539 * infcall.c (call_function_by_hand): Update.
12541 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12543 * symfile.c (init_entry_point_info, entry_point_address): Move
12545 * objfiles.c (init_entry_point_info, entry_point_address):..to
12547 * symfile.h (init_entry_point_info, entry_point_address): Remove
12549 * objfiles.h (init_entry_point_info, entry_point_address):Add
12551 * cris-tdep.c: Remove include of symfile.h. Add include of
12553 * infcall.c: Ditto.
12554 * mcore-tdep.c: Ditto.
12555 * mn10300-tdep.c: Ditto.
12556 * sh64-tdep.c: Ditto.
12557 * v850-tdep.c: Ditto.
12558 * arm-tdep.c: Remove include of symfile.h.
12559 * blockframe.c: Ditto.
12560 * coffread.c: Ditto.
12561 * dbxread.c: Ditto.
12562 * dwarf2read.c: Ditto.
12563 * dwarfread.c: Ditto.
12564 * frv-tdep.c: Ditto.
12565 * ia64-tdep.c: Ditto.
12566 * mdebugread.c: Ditto.
12567 * mipsread.c: Ditto.
12568 * rs6000-tdep.c: Ditto.
12569 * s390-tdep.c: Ditto.
12570 * sh-tdep.c: Ditto.
12571 * xstormy16-tdep.c: Ditto.
12572 * gdbarch.sh: Remove include of symfile.h.
12573 * gdbarch.c: Regenerate.
12574 * solib-irix.c (enable_break): Use entry_point_address().
12575 Add comment about include file.
12576 * xcoffread.c: Add comment about include file.
12577 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12578 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12579 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12580 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12581 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12583 2004-02-13 Andrew Cagney <cagney@redhat.com>
12585 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12586 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12588 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12590 2004-02-12 Fred Fish <fnf@redhat.com>
12592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12593 set_gdbarch_store_return_value.
12595 2004-02-12 Andrew Cagney <cagney@redhat.com>
12597 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12598 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12599 (interrupt_query): Ditto.
12600 (ofunc): Delete unused variable.
12601 * cris-tdep.c (cris_abi): Delete unused function.
12602 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12603 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12604 (cris_get_asr_quick_shift_steps): Ditto.
12605 (cris_skip_prologue_frameless_p): Ditto.
12606 * arm-tdep.c (arm_push_return_address): Delete unused function.
12607 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12608 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12609 * s390-tdep.c (s390_function_start): Delete unused function.
12611 2004-02-12 Andrew Cagney <cagney@redhat.com>
12613 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12614 gdbarch.h, gdbarch.c: Re-generate.
12615 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12616 to generic_prologue_frameless_p.
12617 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12618 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12620 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12622 * mips-linux-tdep.c: Include "frame.h".
12623 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12624 (mips_linux_skip_resolver): New functions.
12625 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12626 and set_gdbarch_in_solib_call_trampoline.
12627 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12628 to after set_gdbarch_in_solib_return_trampoline. Only set the
12629 solib hooks to mips16 functions if the OS ABI is unknown.
12630 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12631 including "config/tm-linux.h".
12632 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12633 * Makefile.in (mips-linux-tdep.o): Update.
12635 2004-02-11 David Carlton <carlton@kealia.com>
12637 * linespec.c (decode_compound): Only look for a class symbol when
12638 considering all but the rightmost component.
12640 2004-02-11 Andrew Cagney <cagney@redhat.com>
12642 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12643 abi code are are separatly grouped.
12645 2004-02-11 Andrew Cagney <cagney@redhat.com>
12647 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12648 * gdbarch.h, gdbarch.c: Re-generate.
12649 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12650 * v850-tdep.c (v850_gdbarch_init): Update.
12651 * sh64-tdep.c (sh64_gdbarch_init): Update.
12652 * sh-tdep.c (sh_gdbarch_init): Update.
12653 * s390-tdep.c (s390_gdbarch_init): Update.
12654 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12655 * mips-tdep.c (mips_gdbarch_init): Update.
12656 * mcore-tdep.c (mcore_gdbarch_init): Update.
12657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12658 * m32r-tdep.c (m32r_gdbarch_init): Update.
12659 * ia64-tdep.c (ia64_gdbarch_init): Update.
12660 * hppa-tdep.c (hppa_gdbarch_init): Update.
12661 * h8300-tdep.c (h8300_gdbarch_init): Update.
12662 * frv-tdep.c (frv_gdbarch_init): Update.
12663 * d10v-tdep.c (d10v_gdbarch_init): Update.
12664 * cris-tdep.c (cris_gdbarch_init): Update.
12665 * avr-tdep.c (avr_gdbarch_init): Update.
12666 * arm-tdep.c (arm_gdbarch_init): Update.
12667 * alpha-tdep.c (alpha_gdbarch_init): Update.
12669 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12671 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12673 (sh_sh4al_dsp_register_name): Ditto.
12675 2004-02-10 Andrew Cagney <cagney@redhat.com>
12677 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12678 (mips_init_frame_pc_first): Delete function.
12679 (mips_frame_saved_pc): Delete function.
12680 (mips_frame_chain): Delete function.
12681 (mips_init_extra_frame_info): Delete function.
12682 (mips_xfer_register): Delete unused variable "reg".
12683 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12684 (mips_n32n64_return_value): Delete unused variable "reg".
12685 (mips_n32n64_return_value): Delete unused variable "pos".
12686 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12687 (mips_o32_return_value): Delete unused variable "pos".
12688 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12689 (mips_print_fp_register): Delete unused variable "namelen"
12690 (mips_print_fp_register): Delete unused variable "flt2"
12691 (get_frame_pointer): Delete function.
12692 (cached_proc_desc): Delete static variable.
12693 (mips_pop_frame): Delete function.
12694 (mips_find_saved_regs): Delete function.
12695 (mips_get_saved_register): Delete function.
12696 (mips_saved_pc_after_call): Delete function.
12697 (SIGFRAME_BASE): Delete macro.
12698 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12699 (SIGFRAME_PC_OFF): Delete macro.
12700 (SIGFRAME_REGSAVE_OFF): Delete macro.
12701 (mips_dump_tdep): Do not print deleted macro definitions.
12703 2004-02-10 Andrew Cagney <cagney@redhat.com>
12705 * Makefile.in (SFILES): Remove explictly listed tui files.
12706 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12708 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12710 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12711 to use paddr functions to format ia64 addresses and long values.
12712 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12713 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12714 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12715 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12716 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12718 2004-02-10 Andrew Cagney <cagney@redhat.com>
12720 * defs.h: Do not include "tui.h".
12721 * gdb_curses.h: New file.
12722 * tui/tui-hooks.h: New file.
12723 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12724 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12725 (tui_initialize_io): Delete declaration.
12726 (tui_initialize_readline: Delete redundant declaration.
12727 (struct tui_point): Delete definition.
12728 * tui/tui-data.h (struct tui_point): Define.
12729 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12730 * utils.c: Include "tui/tui.h".
12731 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12732 * printcmd.c [TUI]: Include "tui/tui.h".
12733 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12734 * tui/tui-command.c: Include "gdb_curses.h".
12735 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12736 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12737 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12738 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12739 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12740 * Makefile.in: Update all dependencies.
12741 (tui_hooks_h, gdb_curses_h): Define.
12742 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12744 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12746 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12747 auxf2. Add comments about some other rarely used fields.
12749 2004-02-10 Andrew Cagney <cagney@redhat.com>
12751 * Makefile.in (init.c): Fix script removing duplicates. Problem
12752 reported by Peter Schauer.
12754 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12756 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12757 obstack_specify_allocation.
12758 * objfiles.c (allocate_objfile): Ditto.
12759 * solib-sunos.c (solib_add_common_symbols)
12760 (allocate_rt_common_objfile): Ditto.
12761 * symfile.c (reread_symbols): Ditto.
12762 * gdb_obstack.h: Add comment.
12764 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12766 * linespec.c (decode_line_1, locate_first_half)
12767 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12768 commented out code.
12770 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12772 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12775 2004-02-09 Andrew Cagney <cagney@redhat.com>
12777 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12778 fails, try find_pc_section. Fix PR c++/1267.
12779 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12780 instead of find_pc_mapped_section.
12781 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12782 not default to the section containing PC. Fix PR symtab/1519.
12784 2004-02-09 Andrew Cagney <cagney@redhat.com>
12786 * Makefile.in (mips-tdep.o): Update dependencies.
12787 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12789 (mips_unwind_pc): Return the pseudo PC register.
12790 (mips_unwind_dummy_id): New function.
12791 (mips16_fetch_instruction): New function.
12792 (mips32_fetch_instruction): New function.
12793 (struct mips_frame_cache): Define.
12794 (mips_mdebug_frame_cache): New function.
12795 (mips_mdebug_frame_this_id): New function.
12796 (mips_mdebug_frame_prev_register): New function.
12797 (mips_mdebug_frame_unwind): Define.
12798 (mips_mdebug_frame_sniffer): New function.
12799 (mips_mdebug_frame_base_address): New function.
12800 (mips_mdebug_frame_base): Define.
12801 (mips_mdebug_frame_base_sniffer): New function.
12802 (mips_gdbarch_init): Append unwind and base sniffers. Set
12805 2004-02-08 Andrew Cagney <cagney@redhat.com>
12807 * frame.c: Print both the register number and name.
12809 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12810 and a sed into a single sed. Make .c and .o patterns more robust.
12812 (INIT_FILES): Replace OBS with COMMON_OBS.
12813 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12815 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12817 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12818 the PT_WCOOKIE request.
12820 2004-02-08 Andrew Cagney <cagney@redhat.com>
12822 * mips-tdep.c (mips_unwind_pc): New function.
12823 (mips_gdbarch_init): Set mips_unwind_pc.
12825 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12826 (get_frame_id): Allow the UNKNOWN_FRAME.
12827 (frame_register_unwind, get_frame_type): Ditto.
12829 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12830 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12831 unwind_dummy_id indicates a legacy frame.
12833 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12834 * configure: Re-generate.
12836 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12839 2004-02-08 Andrew Cagney <cagney@redhat.com>
12841 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12843 * configure: Re-generate.
12844 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12845 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12846 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12847 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12848 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12849 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12850 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12851 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12852 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12853 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12855 2004-02-07 Andrew Cagney <cagney@redhat.com>
12857 * Makefile.in: Update all dependencies.
12859 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12860 * configure: Re-generate.
12861 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12862 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12863 (COMMON_OBS): Add "main.o" and "annotate.o".
12864 (ANNOTATE_OBS): Delete.
12865 (OBS): Remove ANNOTATE_OBS.
12866 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12868 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12869 against CONFIG_OBS and "main.o".
12870 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12871 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12873 * tui/tui-command.c: Include "gdb_string.h", delete register
12874 attribute, use ISO-C function signatures.
12875 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12876 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12877 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12878 * tui/tui.c: Ditto.
12880 * tui/tui-command.c: Change variable and function names to lower
12882 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12883 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12884 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12885 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12886 * tui/tui-winsource.c, tui/tui.c: Ditto.
12888 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12890 * buildsym.c (free_pending_blocks, finish_block)
12891 (record_pending_block, make_blockvector, end_symtab): Replace
12892 symbol_obstack with objfile_obstack.
12893 * coffread.c (process_coff_symbol, coff_read_struct_type)
12894 (coff_read_enum_type): Ditto.
12895 * cp-namespace.c (initialize_namespace_symtab)
12896 (check_one_possible_namespace_symbol): Ditto.
12897 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12898 (dwarf2_symbol_mark_computed): Ditto.
12899 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12900 * elfread.c (elf_symtab_read): Ditto.
12901 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12902 (hpread_read_enum_type, hpread_read_function_type)
12903 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12905 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12906 (java_link_class_type): Ditto.
12907 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12908 (new_symbol): Ditto.
12909 * minsyms.c (install_minimal_symbols): Ditto.
12910 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12911 (terminate_minimal_symbol_table): Replace symbol_obstack with
12913 (free_objfile): Remove freeing of symbol_obstack.
12914 * objfiles.h: Remove symbol_obstack field.
12915 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12917 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12919 (solib_add_common_symbols): Replace symbol_obstack with
12921 * somsolib.c (som_solib_add): Ditto.
12922 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12923 (common_block_start, common_block_end): Ditto.
12924 * symfile.c (reread_symbols): Remove freeing and init of
12926 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12927 * symfile.h: Update comment.
12928 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12930 * symtab.c (symbol_set_names): Replace symbol_obstack with
12932 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12934 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12935 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12938 2004-02-07 Andrew Cagney <cagney@redhat.com>
12940 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12941 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12942 fields and variables.
12943 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12944 (m_beInvisible): Delete macro.
12945 * tui/tui-data.h: Fix case case fields and variables.
12946 (m_genWinPtrIsNull): Delete macro.
12947 (tui_win_list): Rename winList.
12948 (TUI_SRC_WIN): Rename srcWin.
12949 (TUI_DISASM_WIN): Rename disassemWin.
12950 (TUI_DATA_WIN): Rename dataWin.
12951 (TUI_CMD_WIN): Rename cmdWin.
12952 (m_genWinPtrNotNull): Delete macro.
12953 (m_winPtrIsNull): Delete macro.
12954 (m_winPtrNotNull): Delete macro.
12955 (tui_win_is_source_type): Replace m_winIsSourceType
12956 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12957 (tui_win_has_locator): Replace m_hasLocator.
12958 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12959 m_setWinHighlightOff.
12960 * tui/tui-data.c: Update references.
12961 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12962 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12963 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12964 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12965 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12966 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12967 * tui/tui-winsource.c, tui/tui.c: Ditto.
12969 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12971 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12972 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12975 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12976 variable `i6' to `i7'.
12977 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12979 2004-02-07 Andrew Cagney <cagney@redhat.com>
12981 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12982 (TuiPoint, TuiPointPtr): Ditto.
12983 (TuiStatus, TuiStatusPtr): Ditto.
12984 (TuiWinType, TuiWinTypePtr): Ditto.
12985 (struct tui_point): Rename _TuiPoint.
12986 (tui_get_low_disassembly_address): Rename
12987 tuiGetLowDisassemblyAddress.
12988 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12989 (tuiFree): Delete declaration.
12990 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12991 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12992 * tui/tui.c (tuiFree): Delete function.
12993 * cli/cli-cmds.c (disassemble_command): Update references.
12994 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12995 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12996 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12997 * tui/tui-winsource.c: Ditto.
12999 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13001 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13002 coffstab_build_psymtabs, elfstab_build_psymtabs)
13003 (stabsect_build_psymtabs): Replace psymbol_obstack with
13005 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13006 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13008 * dwarfread.c (scan_compilation_units): Ditto.
13009 * elfread.c (elfstab_offset_sections): Ditto.
13010 * hppa-tdep.c (read_unwind_info): Ditto.
13011 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13012 (hpread_end_psymtab): Ditto.
13013 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13014 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13016 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13017 * objfiles.c (add_to_objfile_sections)
13018 (build_objfile_section_table): Ditto.
13019 (allocate_objfile): Remove init of psymbol_obstack.
13020 (free_objfile): Remove freeing of psymbol_obstack.
13021 * objfiles.h (struct objfile): Remove field
13022 psymbol_obstack. Update comments.
13023 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13024 psymbol_obstack with objfile_obstack.
13025 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13027 * somread.c (som_symfile_offsets, init_import_symbols)
13028 (init_export_symbols): Replace psymbol_obstack with
13030 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13031 * symfile.c (default_symfile_offsets, syms_from_objfile)
13032 (reread_symbols): Remove freeing and init of psymbol_obstack.
13033 (cashier_psymtab): Update comment.
13034 * symmisc.c (print_objfile_statistics): Don't report stats for
13036 * symtab.h (struct general_symbol_info, struct partial_symtab):
13038 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13039 (xcoff_symfile_offsets): Replace psymbol_obstack with
13042 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13044 * objfiles.h (struct objfile): Add objfile_obstack field.
13045 Remove type_obstack field.
13047 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13048 read_structure_scope read_enumeration, new_symbol): Replace
13049 type_obstack with objfile_obstack.
13050 * dwarfread.c (struct_type, enum_type): Ditto.
13051 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13052 (lookup_fundamental_type): Ditto.
13053 * gdbtypes.h (TYPE_ALLOC): Ditto.
13054 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13055 (hpread_read_doc_function_type, hpread_read_struct_type)
13056 (fix_static_member_physnames, hpread_read_array_type)
13057 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13058 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13059 (java_link_class_type): Ditto.
13060 * mdebugread.c (parse_type): Ditto.
13061 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13062 * solib-sunos.c (solib_add_common_symbols): Ditto.
13063 * stabsread.c (define_symbol, read_type, read_member_functions,
13064 read_cpp_abbrev, read_one_struct_field): Ditto.
13065 * symfile.c (reread_symbols): Ditto.
13066 * symmisc.c (print_objfile_statistics): Ditto.
13068 2004-02-07 Andrew Cagney <cagney@redhat.com>
13070 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13071 (tui_exec_info_content): Rename TuiExecInfoContent.
13072 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13073 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13074 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13075 (TuiList, TuiListPtr): Ditto.
13076 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13077 (TuiDataType, TuiDataTypePtr): Ditto.
13078 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13079 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13080 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13081 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13082 (TuiDataElement, TuiDataElementPtr): Ditto.
13083 (TuiWinElement, TuiWinElementPtr): Ditto.
13084 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13085 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13086 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13087 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13088 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13089 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13090 * tui/tui-command.c, tui/tui-data.c: Update references.
13091 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13092 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13093 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13094 * tui/tui-winsource.c, tui/tui.c: Ditto.
13096 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13098 * dwarf2-frame.h: Update copyright.
13099 (enum dwarf2_frame_reg_rule): New.
13100 (struct dwarf2_frame_state_reg): New.
13101 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13102 * dwarf2-frame.c: Update copyright.
13103 (enum dwarf2_reg_rule): Remove.
13104 (struct dwarf2_frame_state): Remove defenition of `struct
13105 dwarf2_frame_state_reg'.
13106 (read_reg): Call get_frame_arch to get the architecture instead of
13107 using CURRENT_GDBARCH.
13108 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13110 (dwarf2_frame_init_reg): New function.
13111 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13112 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13113 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13114 tags with DWARF2_FRAME_.
13115 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13116 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13117 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13119 2004-02-06 Andrew Cagney <cagney@redhat.com>
13121 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13122 (enum tui_data_type): Rename _TuiDataType.
13123 (struct tui_layout_def): Rename _TuiLayoutDef.
13124 (struct tui_source_element): Rename _TuiSourceElement.
13125 (struct tui_data_element): Rename _TuiDataElement.
13126 (struct tui_command_element): Rename _TuiCommandElement.
13127 (struct tui_locator_element): Rename _TuiLocatorElement.
13128 (union tui_which_element): Define.
13129 (struct tui_win_element): Rename _TuiWinElement.
13130 (struct tui_data_info): Rename _TuiDataInfo.
13131 (struct tui_source_info): Rename _TuiSourceInfo.
13132 (struct tui_command_info): Rename _TuiCommandInfo.
13133 (tui_initialize_static_data): Rename initializeStaticData.
13134 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13135 (tui_alloc_win_info): Rename allocWinInfo.
13136 (tui_init_generic_part): Rename initGenericPart.
13137 (tui_init_win_info): Rename initWinInfo.
13138 (tui_alloc_content): Rename allocContent.
13139 (tui_add_content_elements): Rename addContentElements.
13140 (tui_init_content_element): Rename initContentElement.
13141 (tui_free_window): Rename freeWindow.
13142 (tui_free_win_content): Rename freeWinContent.
13143 (tui_free_data_content): Rename freeDataContent.
13144 (tui_free_all_source_wins_content): Rename
13145 freeAllSourceWinsContent.
13146 (tui_del_window): Rename tuiDelWindow.
13147 (tui_del_data_windows): Rename tuiDelDataWindows.
13148 (tui_partial_win_by_name): Rename partialWinByName.
13149 (tui_win_name): Rename winName.
13150 (tui_current_layout): Rename currentLayout.
13151 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13152 (tui_term_height): Rename termHeight.
13153 (tui_set_term_height_to): Rename setTermHeightTo.
13154 (tui_term_width): Rename termWidth.
13155 (tui_set_term_width_to): Rename setTermWidthTo.
13156 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13157 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13158 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13159 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13160 (tui_source_windows): Rename sourceWindows.
13161 (tui_clear_source_windows): Rename clearSourceWindows.
13162 (tui_clear_source_windows_detail): Rename
13163 clearSourceWindowsDetail.
13164 (tui_clear_win_detail): Rename clearWinDetail.
13165 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13166 (tui_default_tab_len): Rename tuiDefaultTabLen.
13167 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13168 (tui_win_with_focus): Rename tuiWinWithFocus.
13169 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13170 (tui_layout_def): Rename tuiLayoutDef.
13171 (tui_win_resized): Rename tuiWinResized.
13172 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13173 (tui_next_win): Rename tuiNextWin.
13174 (tui_prev_win): Rename tuiPrevWin.
13175 (tui_add_to_source_windows): Rename addToSourceWindows.
13176 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13177 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13178 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13179 * tui/tui.c, tui/tui-data.c: Ditto.
13180 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13181 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13183 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13184 (struct symtab): Declare.
13185 (tui_set_source_content): Rename tuiSetSourceContent.
13186 (tui_show_symtab_source): Rename tuiShowSource.
13187 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13188 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13189 * tui/tui-source.c: Update copyright. Update references.
13190 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13191 * tui/tui-stack.c: Update references.
13193 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13194 (struct tui_win_info): Declare.
13195 (tui_scroll_forward): Rename tuiScrollForward.
13196 (tui_scroll_backward): Rename tuiScrollBackward.
13197 (tui_scroll_left): Rename tuiScrollLeft.
13198 (tui_scroll_right): Rename tuiScrollRight.
13199 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13200 (tui_resize_all): Rename tuiResizeAll.
13201 (tui_refresh_all_win): Rename tuiRefreshAll.
13202 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13203 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13204 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13205 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13207 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13208 (tui_erase_data_content): Rename tuiEraseDataContent.
13209 (tui_display_all_data): Rename tuiDisplayAllData.
13210 (tui_check_data_values): Rename tuiCheckDataValues.
13211 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13212 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13213 (tui_first_data_element_no_in_line): Rename
13214 tuiFirstDataElementNoInLine.
13215 (tui_delete_data_content_windows): Rename
13216 tuiDeleteDataContentWindows.
13217 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13218 (tui_display_data_from): Rename tuiDisplayDataFrom.
13219 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13220 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13221 * tui/tui-win.c, tui/tui-regs.c: Update references.
13222 * tui/tui-layout.c, tui/tui.c: Update references.
13224 * tui/tui-wingeneral.h: Update copyright.
13225 (m_allBeVisible): Delete macro.
13226 (m_allBeInvisible): Delete macro.
13227 (struct tui_gen_win_info): Declare.
13228 (struct tui_win_info): Declare.
13229 (tui_unhighlight_win): Rename unhighlightWin.
13230 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13231 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13232 (tui_make_window): Rename makeWindow.
13233 (tui_copy_win): Rename copyWin.
13234 (tui_box_win): Rename boxWin.
13235 (tui_highlight_win): Rename highlightWin.
13236 (tui_check_and_display_highlight_if_needed): Rename
13237 checkAndDisplayHighlightIfNeeded.
13238 (tui_refresh_all): Rename refreshAll.
13239 (tui_delete_win): Rename tuiDelwin.
13240 (tui_refresh_win): Rename tuiRefreshWin.
13241 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13242 (tui_make_visible, tui_make_invisible): New functions.
13243 (tui_make_all_visible, tui_make_all_invisible): New functions.
13244 (make_all_visible): Rename makeAllVisible.
13245 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13246 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13247 * tui/tui-windata.c, tui/tui-win.c: Update references.
13248 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13249 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13251 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13253 * proc-api.c (write_with_trace): Initialize local variable to
13254 silence compiler warning.
13256 2004-02-06 Andrew Cagney <cagney@redhat.com>
13258 * tui/tui-source.h: Do not include "defs.h".
13259 (struct tui_win_info): Declare.
13260 (tui_set_source_content_nil): Declare.
13261 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13262 (union tui_line_or_address): Rename _TuiLineOrAddress.
13263 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13264 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13265 (tui_update_source_window_as_is): Rename
13266 tuiUpdateSourceWindowAsIs.
13267 (tui_update_source_windows_with_addr): Rename
13268 tuiUpdateSourceWindowsWithAddr.
13269 (tui_update_source_windows_with_line): Rename
13270 tuiUpdateSourceWindowsWithLine.
13271 (tui_clear_source_content): Rename tuiClearSourceContent.
13272 (tui_erase_source_content): Rename tuiEraseSourceContent.
13273 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13274 (tui_show_source_content): Rename tuiShowSourceContent.
13275 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13276 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13277 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13278 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13279 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13280 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13281 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13282 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13283 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13284 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13285 (struct tui_win_info): Declare.
13286 * tui/tui-stack.c: Update references.
13287 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13288 * tui/tui-win.c, tui/tui-source.c: Ditto.
13289 * tui/tui.c, tui/tui-disasm.c: Ditto.
13291 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13293 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13294 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13296 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13298 * infrun.c (handle_inferior_event): Allow for breakpoint
13299 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13300 and SIGEMT. Update comments.
13301 * NEWS (Revised SPARC target): Mention support for non-executable
13304 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13306 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13307 * inftarg.c: Update copyright year.
13308 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13309 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13310 (sparc_xfer_wcookie): New function.
13311 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13312 * Makefile.in (sparc-nat.o): Update dependencies.
13313 * config/sparc/nm-nbsd.h: Include "target.h".
13314 (NATIVE_XFER_WCOOKIE): New define.
13315 (sparc_xfer_wcookie): New prototype.
13317 2004-02-04 Andrew Cagney <cagney@redhat.com>
13319 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13320 SYSCALL_TRAP function.
13321 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13323 2004-02-04 Andrew Cagney <cagney@redhat.com>
13324 Daniel Jacobowitz <drow@mvista.com>
13326 * objfiles.h: Delete comments refering to inside_entry_func and
13327 DEPRECATED_FRAME_CHAIN_VALID.
13328 * defs.h (inside_entry_func): Update prototype..
13329 * blockframe.c (inside_entry_func): Rename to
13330 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13331 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13333 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13335 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13336 outside of #ifdef SOLIB_ADD region.
13337 (do_restore_lang_radix_cleanup): Ditto.
13338 (resolve_pending_breakpoint): Ditto.
13340 2004-02-03 Andrew Cagney <cagney@redhat.com>
13342 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13343 (process_note_abi_tag_sections): Delete unused function.
13344 (ia64_read_fp): Delete unused function.
13345 (gdbarch_extract_struct_value_address): Delete declaration.
13347 2004-02-02 Andrew Cagney <cagney@redhat.com>
13349 * vax-tdep.c (vax_frame_chain): Delete call to
13350 deprecated_inside_entry_file.
13351 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13353 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13355 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13356 column that's "empty" or "same value" when eliminating REG_RA
13359 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13361 * NEWS: Add information about new pending breakpoint support.
13363 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13365 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13366 and pending fields for pending breakpoint support.
13367 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13368 (condition_command): Only parse condition if not a pending
13370 (print_one_breakpoint): Add support for pending breakpoints.
13371 (describe_other_breakpoints): Add checks to verify we are not
13372 dealing with pending breakpoints.
13373 (check_duplicates): Don't check pending breakpoints.
13374 (set_raw_breakpoint): Initialize pending flag.
13375 (do_restore_lang_radix_cleanup): New cleanup routine.
13376 (resolve_pending_breakpoint): New function.
13377 (re_enable_breakpoints_in_shlibs): Try and resolve any
13378 pending breakpoints via resolve_pending_breakpoint.
13379 (mention): Add pending breakpoint support.
13380 (parse_breakpoint_sals): Add new parameter to pass to
13381 decode_line_1 to indicate silent errors when files or functions
13382 are not found. Change all callers.
13383 (do_captured_parse_breakpoint): New function.
13384 (break_command_1): Change prototype to return an rc value and to
13385 take an optional pending breakpoint pointer. Support creating
13386 a pending breakpoint if a "not found" form of error occurs when
13387 parsing the breakpoint. Also support resolving an existing pending
13388 breakpoint and be silent if the resolution fails.
13389 (create_breakpoints): Change prototype to take pending breakpoint
13390 pointer. When resolving a pending breakpoint, use the new pointer
13391 to provide a conditional or commands added by the end-user.
13392 (delete_breakpoint): Add appropriate check for pending.
13393 (breakpoint_re_set_one): Ditto.
13394 (do_enable_breakpoint): Ditto.
13396 2004-02-02 David Carlton <carlton@kealia.com>
13398 * valops.c (enum oload_classification): New.
13399 (find_overload_match): Break implementation into separate
13400 functions; delete #if 0'd code; look for symbols within
13402 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13403 (find_oload_champ,oload_method_static,classify_oload_match): New.
13404 * cp-support.h: Add declaration for cp_func_name; update
13405 declaration for make_symbol_overload_list.
13406 * cp-support.c (cp_func_name): New.
13407 (overload_list_add_symbol): Fix comment, use
13408 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13409 (make_symbol_overload_list): Take a function name and a namespace
13410 instead of a symbol; change implementation.
13411 (make_symbol_overload_list_using): New.
13412 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13414 2004-02-02 Fred Fish <fnf@redhat.com>
13416 * main.c (gdb_stdtarg): Move definition to group with other
13417 gdb_stdtarg definitions and update copyright years.
13418 * remote-sim.c (gdb_os_write_stderr): Write output to
13419 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13420 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13421 gdb_stderr stream and update copyright years.
13423 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13425 * Makefile.in (mips-linux-nat.o): Update dependencies.
13426 * mips-linux-nat.c: Include mips-tdep.h.
13428 2004-02-01 Roland McGrath <roland@redhat.com>
13430 * sol-thread.c (sol_thread_xfer_partial): New function.
13431 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13432 (init_sol_core_ops): Likewise.
13434 * procfs.c (procfs_xfer_partial): New function.
13435 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13436 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13438 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13439 procfs_xfer_auxv function.
13441 * procfs.c (procfs_make_note_section): If we can read
13442 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13443 * linux-proc.c (linux_make_note_section): Likewise.
13445 * auxv.h: New file.
13446 * auxv.c: New file.
13447 * Makefile.in (auxv_h): New variable.
13448 (COMMON_OBS): Add auxv.o here.
13449 (auxv.o): New target.
13451 * corelow.c (core_xfer_partial): New function.
13452 (init_core_ops): Use it for core_ops.to_xfer_partial.
13454 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13455 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13456 macro if that is defined.
13458 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13460 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13461 and check the specified thread for each breakpoint.
13462 * breakpoint.h (bpstat_stop_status): Update prototype.
13463 * infrun.c (handle_inferior_event): Update calls to
13464 bpstat_stop_status.
13466 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13468 * Makefile.in (cli-cmds.o): Add $(readline_h).
13470 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13472 * cli/cli-cmds.c: Include readline.h.
13473 (complete_command): Pass the start of the last word to
13476 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13478 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13479 argument, and change first argument to a CORE_ADDR.
13480 * breakpoint.h (bpstat_stop_status): Update prototype.
13481 * infrun.c (adjust_pc_after_break): Add a new comment.
13482 (handle_inferior_event): Update calls to bpstat_stop_status.
13484 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13486 * breakpoint.h: Update copyright years.
13488 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13490 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13491 (bpstat_stop_status): Don't decrement PC.
13492 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13494 * infrun.c (adjust_pc_after_break): New function.
13495 (handle_inferior_event): Call it, early. Remove later references
13496 to DECR_PC_AFTER_BREAK.
13497 (normal_stop): Add commentary.
13499 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13501 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13502 2004-01-27 double-free fix.
13504 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13506 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13507 (sparc32_frame_prev_register): Handle StackGhost.
13508 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13510 2004-01-29 Roland McGrath <roland@redhat.com>
13512 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13513 * configure: Regenerated.
13515 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13516 * Makefile.in (procfs.o): Add dep.
13518 2004-01-28 Andrew Cagney <cagney@redhat.com>
13520 * tui/tui-stack.h: Update copyright.
13521 (struct frame_info): Add opaque declaration.
13522 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13523 (tui_show_locator_content): Rename tuiShowLocatorContent.
13524 (tui_show_frame_info): Rename tuiShowFrameInfo.
13525 * tui/tui-stack.c: Update copyright. Update references.
13526 * tui/tui-winsource.c: Update references.
13527 * tui/tui-win.c: Update references.
13528 * tui/tui-layout.c: Update references.
13529 * tui/tui-hooks.c: Update copyright, update references.
13530 * tui/tui.c: Update copyright, update references.
13531 * tui/tui-disasm.c: Update references.
13533 2004-01-28 David Carlton <carlton@kealia.com>
13535 * dwarf2read.c (add_partial_structure): Use demangled name if
13536 namespace equals "".
13538 2004-01-27 Jim Blandy <jimb@redhat.com>
13540 Clean up misapplied patch:
13541 * dwarf2read.c (determine_prefix): Change one of the two forward
13542 declarations for 'determine_prefix_aux' to a declaration for this.
13543 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13544 argument to 'die_specification'.
13546 * dwarf2read.c (read_func_scope): Re-indent comment.
13548 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13550 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13551 b->exp to NULL after freeing so that error during re-parsing or
13552 evaluation of expressions associated with breakpoint don't
13553 eventually lead to re-freeing of storage.
13554 Committed by Andrew Cagney.
13556 2004-01-27 Andrew Cagney <cagney@redhat.com>
13558 * source.c (ambiguous_line_spec): Delete undefined declaration.
13559 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13560 (m32r_set_server_address, m32r_set_download_path): Ditto.
13561 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13563 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13565 * dwarf2read.c: Update calls to changed and renamed functions, and
13566 references to moved variables.
13568 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13569 language, language_defn, list_in_scope, and ftypes members.
13570 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13571 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13572 (baseaddr): Remove globals.
13574 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13575 (set_cu_language, die_is_declaration, die_specification)
13576 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13577 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13578 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13579 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13581 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13582 cu.list_in_scope. Don't initialize cu_header_offset.
13583 (add_partial_symbol): Add local baseaddr.
13584 (psymtab_to_symtab_1): Add local baseaddr. Use
13585 objfile->section_offsets for consistency. Don't initialize
13586 cu_header_offset; do initialize cu.header.offset and
13588 (read_file_scope, read_func_scope, read_lexical_block_scope)
13589 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13591 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13593 * PROBLEMS: Add gdb/1516.
13595 2003-12-29 Robert Millan <robertmh@gnu.org>
13597 Patch committed by Andrw Cagney.
13598 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13599 * configure.tgt: Match knetbsd*-gnu.
13601 2004-01-26 Andrew Cagney <cagney@redhat.com>
13603 * breakpoint.c (catch_command_1): Delete #ifdef code.
13604 (catch_fork_command_1): Delete #ifdef wrapper.
13605 (catch_exec_command_1): Ditto.
13606 (catch_load_command_1): Ditto.
13607 (catch_unload_command_1): Ditto.
13609 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13610 (catch_breakpoint): Delete #if0ed function.
13611 (disable_catch_breakpoint): Ditto.
13612 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13613 (disable_catch, enable_catch, delete_catch): Ditto.
13615 2004-01-26 Andrew Cagney <cagney@redhat.com>
13617 * remote.c (echo_check, quit_flag): Delete variables.
13618 (cisco_kernel_mode): Delete variable.
13619 (minitelnet_return, tty_input, escape_count): Delete variables.
13620 (remote_cisco_mode): Delete variable.
13621 (remote_cisco_open, remote_cisco_close): Delete function.
13622 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13623 (init_remote_cisco_ops): Delete function.
13624 (_initialize_remote): Do not install "remote cisco" code.
13625 (read_frame): Delete cisco specific code.
13626 (remote_info_process): Delete function.
13627 (remote_wait): Delete cisco specific code.
13628 (remote_cisco_section_offsets): Delete function.
13629 (remote_cisco_objfile_relocate): Delete function.
13630 (remote_async_wait): Delete cisco specific code.
13631 (minitelnet, readtty, readsocket): Delete function.
13633 2004-01-26 Andrew Cagney <cagney@redhat.com>
13635 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13636 comments mentioning extract_returned_value_address.
13637 * infcmd.c (print_return_value): Update. Add comments on
13638 extract_returned_value_address.
13639 * stack.c (return_command): Add comments on
13640 extract_returned_value_address.
13641 * values.c: Update comment.
13642 * m32r-tdep.c: Update comment.
13643 * sparc-tdep.c: Update comment.
13644 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13646 * sh64-tdep.c (sh64_gdbarch_init): Update.
13647 * sh-tdep.c (sh_gdbarch_init): Update.
13648 * s390-tdep.c (s390_gdbarch_init): Update.
13649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13650 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13651 * m68k-tdep.c (m68k_gdbarch_init): Update.
13652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13653 * m32r-tdep.c (m32r_gdbarch_init): Update.
13654 * ia64-tdep.c (ia64_gdbarch_init): Update.
13655 * h8300-tdep.c (h8300_gdbarch_init): Update.
13656 * frv-tdep.c (frv_gdbarch_init): Update.
13657 * arm-tdep.c (arm_gdbarch_init): Update.
13658 * alpha-tdep.c (alpha_gdbarch_init): Update.
13660 2004-01-26 Andrew Cagney <cagney@redhat.com>
13662 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13663 SYMBOL_LOCATION_FUNCS
13664 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13665 "struct symbol_ops".
13666 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13667 type to "struct symbol_ops".
13668 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13669 (struct symbol): Replace ".aux_value.loc.funcs" and
13670 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13671 (SYMBOL_OBJFILE): Delete macro.
13672 (SYMBOL_LOCATION_FUNCS): Delete macro.
13673 (SYMBOL_LOCATION_BATON): Update.
13674 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13675 intead of SYMBOL_LOCATION_FUNCS.
13676 * ax-gdb.c (gen_var_ref): Ditto.
13677 * printcmd.c (address_info): Ditto.
13678 * findvar.c (read_var_value): Ditto.
13679 (symbol_read_needs_frame): Ditto.
13681 2004-01-26 Andrew Cagney <cagney@redhat.com>
13683 * dwarf2read.c (read_func_scope): Document frame-base hack.
13685 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13687 * infcmd.c (print_return_value): Plug memory leak; delete
13688 ui_stream object. Rename argument `structure_return' to
13691 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13693 * infcmd.c (print_return_value): Wrap long lines.
13694 (finish_command_continuation, finish_command): Remove unused
13695 variable `funcaddr'. Fix some coding-standards problems.
13697 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13698 SECT_SIZE is large enough, not whether it's exactly the right size.
13699 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13700 TDEP->fpregset to zero.
13702 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13703 floating-point registers for traditional NetBSD core files.
13704 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13705 TDEP->sizeof_fpregset here.
13707 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13709 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13710 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13711 function with code split out from
13712 sparc32nbsd_sigcontext_frame_cache.
13713 (sparc32nbsd_sigcontext_frame_cache): Use
13714 sparc32nbsd_sigcontext_saved_regs.
13715 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13717 * sparcobsd-tdep.c: New file.
13718 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13719 (sparcobsd-tdep.o): New dependency.
13720 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13721 * config/sparc/obsd.mt: New file.
13723 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13724 TDEP->fpregset to be initialized to enable core file register
13727 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13729 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13730 Add opaque declarations.
13731 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13732 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13733 function with code split out from
13734 sparc64nbsd_sigcontext_frame_cache.
13735 (sparc64nbsd_sigcontext_frame_cache): Use
13736 sparc64nbsd_sigcontext_saved_regs.
13737 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13739 * sparc64obsd-tdep.c: New file.
13740 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13741 (sparc64obsd-tdep.o): New dependency.
13742 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13743 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13744 * config/sparc/obsd64.mt: New file.
13746 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13747 read the instruction at PC.
13749 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13750 value of GDB_OSABI_DEFAULT.
13751 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13752 instead of GDB_OSABI_NETBSD_AOUT.
13754 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13756 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13759 2004-01-23 Andrew Cagney <cagney@redhat.com>
13761 * printcmd.c (display_command): Replace tui_set_display call with
13762 tui_set_layout_for_display_command.
13763 * tui/tui.h (enum tui_win_type): Define.
13764 (tui_set_layout): Delete declaration.
13765 (tui_set_layout_for_display_command): Rename set_tui_layout.
13766 * tui/tui-data.h (enum tui_layout_type): Define.
13767 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13769 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13770 (tui_default_win_height): Rename tuiDefaultWinHeight.
13771 (tui_default_win_viewport_height): Rename
13772 tuiDefaultWinViewportHeight.
13773 (tui_set_layout): RenametuiSetLayout.
13774 * tui/tui-layout.c: Update references.
13775 * tui/tui.c: Update references.
13776 * tui/tui-disasm.c: Update references.
13778 2004-01-23 David Carlton <carlton@kealia.com>
13780 Partial workaround for PR c++/1511:
13781 * cp-namespace.c: Include frame.h.
13782 (cp_lookup_transparent_type): New
13783 (cp_lookup_transparent_type_loop): New.
13784 * cp-support.h: Declare cp_lookup_transparent_type.
13785 * symtab.c (basic_lookup_transparent_type): Renamed from
13786 lookup_transparent_type.
13787 (lookup_transparent_type): Replace old body by a call to
13788 current_language->la_lookup_transparent_type.
13789 * symtab.h: Update copyright. Declare
13790 basic_lookup_transparent_type.
13791 * language.h: Update copyright.
13792 (struct language_defn): Add la_lookup_transparent_type.
13793 * language.c: Update copyright.
13794 (unknown_language_defn): Add basic_lookup_transparent_type.
13795 (auto_language_defn): Add basic_lookup_transparent_type.
13796 (local_language_defn): Add basic_lookup_transparent_type.
13797 * ada-lang.c: Update copyright.
13798 (ada_language_defn): Add basic_lookup_transparent_type.
13799 * c-lang.c: Update copyright.
13800 (c_language_defn): Add basic_lookup_transparent_type.
13801 (cplus_language_defn): Add basic_lookup_transparent_type.
13802 (asm_language_defn): Add basic_lookup_transparent_type.
13803 (minimal_language_defn): Add basic_lookup_transparent_type.
13804 * f-lang.c: Update copyright.
13805 (f_language_defn): Add basic_lookup_transparent_type.
13806 * jv-lang.c: Update copyright.
13807 (java_language_defn): Add basic_lookup_transparent_type.
13808 * m2-lang.c: Update copyright.
13809 (m2_language_defn): Add basic_lookup_transparent_type.
13810 * objc-lang.c: Update copyright.
13811 (objc_language_defn): Add basic_lookup_transparent_type.
13812 * p-lang.c: Update copyright.
13813 (p_language_defn): Add basic_lookup_transparent_type.
13814 * scm-lang.c: Update copyright.
13815 (scm_language_defn): Add basic_lookup_transparent_type.
13816 * Makefile.in (cp-namespace.o): Depend on frame.h.
13818 2004-01-23 David Carlton <carlton@kealia.com>
13820 Patch for PR c++/1520:
13821 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13822 properly if we have a specification die.
13823 (determine_prefix_aux): Rename from determine_prefix.
13824 (determine_prefix): Like the old determine_prefix, but never
13827 2004-01-23 Theodore A. Roth <troth@openavr.org>
13829 * avr-tdep.c: Update copyright.
13830 (avr_iaddr_p): Delete unused function.
13831 (avr_saddr_p): Delete unused function.
13833 2004-01-23 David Carlton <carlton@kealia.com>
13835 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13836 Fix for PR symtab/1534.
13838 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13840 * NEWS (New native configurations): Mention OpenBSD/sparc and
13842 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13843 * configure.host: Likewise.
13844 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13845 handler for OpenBSD.
13846 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13848 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13850 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13851 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13853 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13854 * cli/cli-cmds.c (shell_escape): Likewise.
13856 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13857 OpenBSD .note.openbsd.ident sections.
13859 2004-01-22 David Carlton <carlton@kealia.com>
13861 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13862 get_scope_pc_bounds.
13863 (read_file_scope): Ditto.
13864 (get_scope_pc_bounds): New function, produced by extracting code
13865 from the above two functions, consolidating it, and adding support
13866 for DW_TAG_namespace.
13868 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13870 * osabi.c (MAX_NOTESZ): New define.
13871 (check_note): New function.
13872 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13875 2004-01-21 Roland McGrath <roland@redhat.com>
13877 * MAINTAINERS (write after approval): Add myself.
13879 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13881 * utils.c (init_page_info): Move declarations of `rows' and
13882 `cols' before the __GO32__-specific code. Move the closing brace
13883 outside the #ifdef __GO32__..#endif block.
13884 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13886 2004-01-21 Paul Brook <paul@codesourcery.com>
13888 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13889 BPSTAT_WHAT_CHECK_SHLIBS.
13891 2004-01-21 Paul Brook <paul@codesourcery.com>
13893 * MAINTAINERS: Add myself to write-after-approval.
13895 2004-01-20 Andrew Cagney <cagney@redhat.com>
13897 * ax-gdb.c (print_axs_value): Delete unused function.
13898 * jv-lang.c (java_lookup_type): Delete unused function.
13899 * cli/cli-dump.c (dump_filetype): Delete unused function.
13900 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13901 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13902 (mips_getstring): Delete unused function.
13903 (pmon_insert_breakpoint): Delete #if0ed function.
13904 (PMON_MAX_BP): Delete #if0ed MACRO.
13905 (mips_pmon_bp_info): Delete #if0ed variable.
13906 (pmon_remove_breakpoint): Delete #if0ed function.
13907 * monitor.c (monitor_write_even_block): Delete unused function.
13908 (monitor_write_memory_block): Delete #if0ed code.
13909 * dink32-rom.c (dink32_load): Delete unused function.
13910 (_initialize_dink32_rom): Delete #if0ed code.
13911 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13913 * tui/tui-command.c: Update references.
13914 * tui/tui-io.c: Update references.
13915 * tui/tui-command.h: Update copyright.
13916 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13918 * source.c (ambiguous_line_spec): Delete never-defined function.
13919 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13920 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13921 * cli/cli-cmds.c (validate_comname): Ditto.
13923 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13925 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13926 (tui_show_disassem): Rename tuiShowDisassem.
13927 (tui_show_disassem_and_update_source): Rename
13928 tuiVerticalDisassemScroll.
13929 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13930 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13931 * tui/tui.h: Update copyright.
13932 (enum tui_status): Define.
13933 * tui/tui-data.h (enum tui_scroll_direction): Define.
13934 * tui/tui-disasm.c: Update copyright. Update references.
13935 * tui/tui-winsource.c: Update copyright. Update references.
13936 * tui/tui-win.c: Update references.
13937 * tui/tui-layout.c: Update references.
13939 2004-01-20 Andrew Cagney <cagney@redhat.com>
13941 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13942 sym2 to start of block.
13944 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13946 * MAINTAINERS: Delete mmalloc.
13947 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13948 * NEWS: Mention removal of --with-malloc.
13949 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13950 * config.in: Regenerate.
13951 * configure: Regenerate.
13952 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13953 USE_MMALLOC, MMCHECK_FORCE.
13954 * gdbinit.in: Remove mmalloc.
13955 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13956 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13957 * config/i386/go32.mh: Likewise.
13958 * config/i386/interix.mh: Likewise.
13959 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13961 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13963 * linespec.c (decode_variable, symtab_from_filename): Call
13964 error_silent with error message instead of throwing an exception
13966 * defs.h (error_silent, error_output_message): Add prototypes.
13967 (catch_exceptions_with_msg): Ditto.
13968 * utils.c (error_silent, error_output_message): New functions.
13969 * top.c (catch_exceptions_with_msg): New function.
13971 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13973 * mi/mi-cmds.h (enum print_values): Add definition.
13975 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13976 type and value for simple data types and just the name and type
13977 for complex ones, if required.
13979 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13980 children, if required.
13982 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13984 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13985 unused declarations.
13987 2004-01-19 Andrew Cagney <cagney@redhat.com>
13989 * top.h (mapped_symbol_files): Delete declaration.
13990 * main.c (captured_main): Delete option "m" and "mapped".
13991 * objfiles.c (mapped_symbol_files): Delete variable.
13992 * symfile.c (symbol_file_command): Delete mmap code.
13993 (symbol_file_add_with_addrs_or_offsets): Ditto.
13994 (add_symbol_file_command, reread_separate_symbols): Ditto.
13995 * objfiles.h (OBJF_MAPPED): Delete.
13996 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13997 (free_objfile) [USE_MMALLOC]: Ditto.
13998 (open_existing_mapped_file): Delete function.
13999 (open_mapped_file): Delete function.
14000 (map_to_file): Delete function.
14002 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14004 * infrun.c (step_into_function): Account for possible breakpoint
14005 adjustment when computing ``stop_func_start''.
14007 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14009 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14010 the region size against the size of a pointer, not the size of
14011 a register as given by DEPRECATED_REGISTER_SIZE.
14013 2004-01-19 Andrew Cagney <cagney@redhat.com>
14015 * tui/tui-regs.h: Include "tui-data.h".
14016 (tuiFirstRegElementNoInLine): Delete declaration.
14017 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14018 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14019 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14020 (tui_calculate_regs_column_count): Rename
14021 tuiCalculateRegsColumnCount.
14022 (tui_check_register_values): Rename tuiCheckRegisterValues.
14023 (tui_show_registers): Rename tuiShowRegisters.
14024 (tui_display_registers_from_line): Rename
14025 tuiDisplayRegistersFromLine.
14026 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14027 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14028 (tui_first_reg_element_no_inline): Rename
14029 tuiFirstRegElementNoInLine.
14030 * tui/tui-data.h: Update copyright.
14031 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14032 * tui/tui-windata.c: Update copyright, update references.
14033 * tui/tui-regs.c: Update copyright, update references.
14034 * tui/tui-win.c: Update copyright, update references.
14035 * tui/tui-layout.c: Update copyright, update references.
14037 2004-01-18 Andrew Cagney <cagney@redhat.com>
14039 * tui/tui-io.c: Update copyright.
14040 (key_is_end_sequence, key_is_backspace): New functions.
14041 (key_is_command_char, key_is_start_sequence): New function.
14042 (tui_getc): Update references.
14043 * tui/tui-io.h: Update copyright.
14044 (m_tuiStartNewLine): Delete macro.
14045 (m_isBackspace, m_isDeleteChar): Delete macros.
14046 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14047 (m_isNextPage, m_isPrevPage): Delete macros.
14048 (m_isLeftArrow, m_isRightArrow): Delete macros.
14049 (m_isXdbStyleCommandChar): Delete macro.
14050 (key_is_start_sequence): Declare, replace m_isStartSequence.
14051 (key_is_end_sequence): Declare, replace m_isEndSequence.
14052 (key_is_backspace): Declare ,replace m_isBackspace.
14053 (key_is_command_char): Declare, replace m_isCommandChar.
14054 * tui/tui-command.c: Update copyright.
14055 (tuiDispatchCtrlChar): Update references.
14057 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14060 * tui/tui-command.c: Rename tui/tuiCommand.c.
14061 * tui/tui-command.h: Rename tui/tuiCommand.h.
14062 * tui/tui-data.c: Rename tui/tuiData.c.
14063 * tui/tui-data.h: Rename tui/tuiData.h.
14064 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14065 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14066 * tui/tui-io.c: Rename tui/tuiIO.c.
14067 * tui/tui-io.h: Rename tui/tuiIO.h.
14068 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14069 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14070 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14071 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14072 * tui/tui-source.c: Rename tui/tuiSource.c.
14073 * tui/tui-source.h: Rename tui/tuiSource.h.
14074 * tui/tui-stack.c: Rename tui/tuiStack.c.
14075 * tui/tui-stack.h: Rename tui/tuiStack.h.
14076 * tui/tui-win.c: Rename tui/tuiWin.c.
14077 * tui/tui-win.h: Rename tui/tuiWin.h.
14078 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14079 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14080 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14081 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14082 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14083 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14084 * tui/tui-file.c: Update includes.
14085 * tui/tui-hooks.c: Update includes.
14086 * tui/tui-interp.c: Update includes.
14087 * tui/tui.c: Update includes.
14088 * Makefile.in: Update all tui/ dependencies.
14089 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14091 * Makefile.in: Update copyright. Update dependencies.
14093 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14096 2004-01-18 Andrew Cagney <cagney@redhat.com>
14098 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14099 instead of register_gdbarch_init.
14101 * remote-sds.c (tohex): Delete unused function. Update copyright.
14102 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14103 * v850-tdep.c (v850_register_virtual_size): Ditto.
14104 * target.c (normal_target_post_startup_inferior): Ditto.
14105 * source.c (ambiguous_line_spec): Ditto.
14106 * remote.c (adapt_remote_get_threadinfo): Ditto.
14107 * mi/mi-out.c (out_field_fmt): Ditto.
14108 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14109 (output_control_change_notification): Ditto.
14110 * m68k-tdep.c (m68k_register_byte): Ditto.
14111 (m68k_remote_breakpoint_from_pc): Ditto.
14112 * ui-out.c (init_ui_out_state): Delete unused declaration.
14113 * stabsread.c (search_value): Ditto.
14114 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14115 * maint.c (print_section_table): Ditto.
14116 * infrun.c (set_follow_fork_mode_command): Ditto.
14118 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14120 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14121 DW_CFA_def_cfa_exporession. Add support for
14122 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14123 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14125 2004-01-18 Andrew Cagney <cagney@redhat.com>
14127 * ocd.c: Update copyright.
14128 (bdm_read_register_command): Delete unused function.
14129 (_initialize_remote_ocd): Delete commented out reference.
14130 (get_quoted_char, reset_packet): Delete #if0ed function.
14131 (output_packet, put_quoted_char): Delete #if0ed function.
14132 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14133 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14134 (BDM_BREAKPOINT): Delete #if0ed macro.
14135 (remote_timeout): Delete #if0ed variable.
14137 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14139 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14140 (core-sol2.o): Remove dependency.
14141 * core-sol2.c: Remove file.
14143 2004-01-17 Andrew Cagney <cagney@redhat.com>
14145 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14146 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14149 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14151 * remote.c: Update copyright years.
14153 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14155 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14157 2004-01-17 Andrew Cagney <cagney@redhat.com>
14159 * mdebugread.c: Update copyright.
14160 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14161 (parse_type, parse_procedure): Ditto.
14162 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14164 * cris-tdep.c (cris_store_struct_return): Put back accidently
14167 * gdbarch.sh: Update copyright year.
14168 * gdbarch.h, gdbarch.c: Re-generate.
14170 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14172 Suggested by George Anzinger.
14173 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14174 correct stack offset. Include unknown opcode numbers in the error
14177 2004-01-17 Andrew Cagney <cagney@redhat.com>
14179 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14180 extract_struct_value_address, i386 does not set it.
14181 * sparc64-tdep.c (sparc64_init_abi): Do not set
14182 extract_struct_value_address, never called.
14183 (sparc64_extract_struct_value_address): Delete function.
14184 * m68hc11-tdep.c: Update copyright.
14185 (m68hc11_gdbarch_init): Delete redundant assignment of
14186 extract_struct_value_address.
14187 * i386-tdep.c: Update copyright.
14188 (i386_gdbarch_init): Do not set extract_struct_value_address,
14190 (i386_extract_struct_value_address): Delete function.
14191 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14192 extract_struct_value_address, never called.
14193 (sparc32_extract_struct_value_address): #if 0 function. Add
14194 comments explaining its future.
14196 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14198 * arm-tdep.c (arm_write_pc): New function.
14199 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14201 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14203 * breakpoint.c (must_shift_inst_regs): Delete.
14204 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14205 and SHIFT_INST_REGS.
14206 * infcmd.c (step_1, step_1_continuation): Delete references to
14208 * infrun.c (keep_going): Likewise.
14209 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14210 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14212 2004-01-17 Andrew Cagney <cagney@redhat.com>
14214 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14215 * gdbarch.h, gdbarch.c: Re-generate.
14216 * infcmd.c (print_return_value): Delete reference to
14217 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14219 * cris-tdep.c (cris_gdbarch_init): Do not set
14220 deprecated_extract_struct_value_address.
14222 * xstormy16-tdep.c: Update copyright.
14223 (xstormy16_extract_struct_value_address): Update to current
14224 extract struct value address interface.
14225 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14226 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14227 current extract struct value address interface.
14228 (sh64_gdbarch_init): Set extract_struct_value_address.
14230 * cris-tdep.c: Update copyright.
14231 (cris_extract_struct_value_address): Delete function.
14232 (struct_return_address): Delete variable.
14233 (cris_store_struct_return): Do not set struct_return_address.
14235 * mcore-tdep.c: Update copyright.
14236 (mcore_extract_struct_value_address): Delete function. Update
14238 (mcore_gdbarch_init): Update.
14239 * mn10300-tdep.c: Update copyright.
14240 (mn10300_extract_struct_value_address): Delete function.
14241 (mn10300_gdbarch_init): Update.
14242 * v850-tdep.c: Update copyright.
14243 (v850_extract_struct_value_address): Delete.
14244 (v850_gdbarch_init): Update.
14245 * ns32k-tdep.c: Update copyright.
14246 (ns32k_extract_struct_value_address): Delete.
14247 (ns32k_gdbarch_init): Update.
14248 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14249 (hppa_gdbarch_init): Update.
14250 * vax-tdep.c: Update copyright.
14251 (vax_extract_struct_value_address): Delete.
14252 (vax_gdbarch_init): Update.
14254 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14255 * gdbarch.h, gdbarch.c: Re-generate.
14256 * procfs.c (procfs_fetch_registers): Delete reference to
14257 DEPRECATED_NPC_REGNUM.
14258 (procfs_store_registers): Ditto.
14259 * regcache.c (generic_target_write_pc): Simplify.
14260 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14262 * core-sol2.c (fetch_core_registers): Replace
14263 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14265 * hppa-tdep.c: Update copyright year.
14266 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14268 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14270 * mips-tdep.c (mips_write_pc): New function.
14271 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14272 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14273 (mips_find_saved_regs, mips_software_single_step: Ditto.
14274 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14275 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14277 2004-01-17 Andrew Cagney <cagney@redhat.com>
14279 * mips-tdep.c: Re-indent. Group functions by ABI.
14281 2004-01-17 Andrew Cagney <cagney@redhat.com>
14283 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14284 * gdbarch.c: Re-generate.
14285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14286 DECR_PC_AFTER_BREAK to zero.
14287 * vax-tdep.c (vax_gdbarch_init): Ditto.
14288 * v850-tdep.c (v850_gdbarch_init): Ditto.
14289 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14290 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14291 * sh-tdep.c (sh_gdbarch_init): Ditto.
14292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14293 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14294 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14295 * mips-tdep.c (mips_gdbarch_init): Ditto.
14296 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14298 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14299 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14300 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14301 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14302 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14303 * frv-tdep.c (frv_gdbarch_init): Ditto.
14304 * cris-tdep.c (cris_gdbarch_init): Ditto.
14305 * avr-tdep.c (avr_gdbarch_init): Ditto.
14306 * arm-tdep.c (arm_gdbarch_init): Ditto.
14307 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14309 2004-01-17 J. Brobecker <brobecker@gnat.com>
14311 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14312 Delete, no longer used.
14313 (read_subrange_type): New function, mostly extracted from
14315 (read_array_type): Replace extracted code by call to
14316 read_subrange_type().
14317 (dwarf2_get_attr_constant_value): New function.
14318 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14319 (add_partial_symbol): Likewise.
14320 (process_die): Likewise.
14321 (new_symbol): Likewise.
14322 (read_type_die): Likewise.
14324 2004-01-16 Andrew Cagney <cagney@redhat.com>
14326 * symfile.c: Update copyright year.
14327 (compare_symbols): Delete unused function.
14328 * stabsread.c: Update copyright year.
14329 (lrs_general_complaint): Delete unused function.
14330 (ref_search_value): Ditto.
14331 (get_substring): Delete declaration.
14332 * sh64-tdep.c: Update copyright year.
14333 (sh64_get_gdb_regnum): Delete unused function.
14334 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14335 Delete unused function.
14337 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14339 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14340 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14342 2004-01-16 Andrew Cagney <cagney@redhat.com>
14344 Changes from Peter Schauer.
14345 * rs6000-tdep.c: Update copyright year.
14346 (rs6000_push_dummy_call): Update the stack pointer before
14347 accessing the corresponding stack region.
14348 * rs6000-nat.c: Update copyright year.
14349 (set_host_arch): Set "info.abfd" to "exec_bfd".
14351 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14353 * blockframe.c: Update copyright year.
14354 (inside_entry_func): Don't treat a zero PC specially.
14356 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14358 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14360 (gcore_create_callback): Ditto. Skip any memory segment that has
14361 no permissions set.
14363 2004-01-14 David Carlton <carlton@kealia.com>
14365 Change symbols for C++ nested types to contain the fully qualified
14366 name, if possible. (At least in the DWARF-2 case.) Partial fix
14367 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14369 * c-exp.y (qualified_type): Handle types nested within classes.
14370 * cp-namespace.c: Update comments.
14371 (cp_set_block_scope): Delete #if 0.
14372 (cp_lookup_nested_type): Handle types nested within classes.
14373 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14375 (add_partial_symbol): Add the name of the enclosing namespace to
14377 (pdi_needs_namespace): New.
14378 (add_partial_namespace): Tweak comment.
14379 (add_partial_structure): New.
14380 (psymtab_to_symtab_1): Initialize processing_current_prefix
14382 (process_die): instead of here.
14383 (read_structure_scope): Try to figure out the name of the class or
14384 namespace that the structure might be defined within.
14385 (read_enumeration): Generate fully-qualified names, if possible.
14386 (read_namespace): Don't set name to NULL.
14387 (die_specification): New.
14388 (new_symbol): Generate fully-qualified names for types.
14389 (read_type_die): Determine appropriate prefix.
14390 (determine_prefix): New.
14391 (typename_concat): New.
14393 * valops.c (value_aggregate_elt): Pass NOSIDE to
14394 value_struct_elt_for_reference.
14395 (value_struct_elt_for_reference): Make static, add NOSIDE
14396 parameter, call value_maybe_namespace_elt as a last resort.
14397 (value_namespace_elt): Break out code into
14398 value_maybe_namespace_elt.
14399 (value_maybe_namespace_elt): New.
14401 2004-01-12 Andrew Cagney <cagney@redhat.com>
14403 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14404 cooked floating-point registers.
14405 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14406 and value_to_register.
14408 2004-01-13 Andrew Cagney <cagney@redhat.com>
14410 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14411 * gdbarch.c: Re-generate.
14412 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14413 FUNCTION_START_OFFSET.
14414 * v850-tdep.c (v850_gdbarch_init): Ditto.
14415 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14416 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14417 * sh-tdep.c (sh_gdbarch_init): Ditto.
14418 * s390-tdep.c (s390_gdbarch_init): Ditto.
14419 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14420 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14421 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14422 * mips-tdep.c (mips_gdbarch_init): Ditto.
14423 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14424 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14426 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14427 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14428 * i386-tdep.c (i386_gdbarch_init): Ditto.
14429 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14430 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14431 * frv-tdep.c (frv_gdbarch_init): Ditto.
14432 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14433 * cris-tdep.c (cris_gdbarch_init): Ditto.
14434 * avr-tdep.c (avr_gdbarch_init): Ditto.
14435 * arm-tdep.c (arm_gdbarch_init): Ditto.
14436 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14438 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14440 * infrun.c (follow_fork_mode_ask): Remove.
14441 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14442 (follow_fork): Simplify and remove internal error for
14443 follow_fork_mode_ask.
14444 (_initialize_infrun): Update "set follow-fork-mode" help text.
14446 2004-01-13 Andrew Cagney <cagney@redhat.com>
14448 * configure.in: Update copyright year.
14449 (build_warnings): Add -Wunused-label.
14450 * configure: Re-generate.
14452 2004-01-12 Andrew Cagney <cagney@redhat.com>
14454 * exec.h (exec_ops): Make "extern".
14456 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14457 the function is void.
14458 (mips_pseudo_register_write): Ditto.
14460 2004-01-12 Andrew Cagney <cagney@redhat.com>
14462 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14463 call. Never defined.
14464 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14465 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14466 (struct sparc_gregset, struct regcache): Ditto.
14467 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14469 2004-01-12 Andrew Cagney <cagney@redhat.com>
14471 * mi/ChangeLog: Delete file. Renamed to ...
14472 * mi/ChangeLog-1999-2003: New file.
14473 * tui/ChangeLog: Delete file. Renamed to ...
14474 * tui/ChangeLog-1998-2003: New file.
14476 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14478 * sparc64nbsd-tdep.c: Include "regset.h".
14479 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14481 (fetch_core_registers): Remove function.
14482 (sparc64nbsd_core_fns): Remove variable.
14483 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14485 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14486 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14487 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14489 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14490 sparc_extract_struct_value_address.
14491 (sparc32_gdbarch_init): Set extract_struct_value_address.
14492 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14494 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14495 return_value_on_stack.
14497 * NEWS: Mention that %cs and %ss have been added to the AMD64
14500 * frame.c: Update copyright year.
14501 (get_prev_frame): Improve comment.
14503 * sparc64fbsd-tdep.c: Include "regset.h".
14504 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14506 (fetch_core_registers): Remove function.
14507 (sparc64fbsd_core_fns): Remove variable.
14508 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14510 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14511 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14512 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14514 * sparcnbsd-tdep.c: Include "regset.h".
14515 (fetch_core_registers): Remove function.
14516 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14517 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14519 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14521 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14523 * sparc-tdep.h (struct regset): Provide opaque declaration.
14524 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14525 fpregset and sizeof_fpregset members.
14526 * sparc-tdep.c (struct regset): Provide opaque declaration.
14527 (sparc_regset_from_core_section): New function.
14528 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14529 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14530 Set regset_from_core_section when appropriate.
14532 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14534 * x86-64-tdep.c (amd64_non_pod_p): New function.
14535 (amd64_classify_aggregate): Return class memory for non-POD
14536 C++ structure types.
14538 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14539 argument. Use it to reserve a register if necessary.
14540 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14541 amd64_push_arguments.
14543 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14545 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14546 register numbers in comments.
14547 * x86-64-tdep.h: Update copyright year.
14548 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14549 Adjust for addition of %cs and %ss.
14550 * amd64fbsd-nat.c: Update copyright year.
14551 (reg_offset): Add register offsets for %cs and %ss.
14552 * amd64fbsd-tdep.c: Update copyright year.
14553 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14554 (amd64fbsd_sc_reg_offset): Likewise.
14555 * x86-64-linux-nat.c: Update copyright year.
14556 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14558 * amd64nbsd-nat.c: Update copyright year.
14559 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14560 * amd64nbsd-tdep.c: Update copyright year.
14561 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14562 * x86-64-linux-tdep.c: Update copyright year.
14563 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14564 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14565 * regformats/reg-x86-64.dat: Add %cs and %ss.
14567 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14568 variables to prevent long lines. Update comments to reflect
14571 2004-01-09 David Carlton <carlton@kealia.com>
14573 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14574 * dwarf2read.c (read_namespace): Pull out name-generating code
14575 into namespace_name. Rename previous_namespace to previous_prefix
14576 and processing_current_namespace to processing_current_prefix..
14577 (namespace_name): New function.
14578 (add_partial_symbol): Substitute uses of pdi->name with
14580 * cp-support.h: Rename processing_current_namespace to
14581 processing_current_prefix.
14582 Update copyright year.
14583 * cp-namespace.c: Rename processing_current_namespace to
14584 processing_current_prefix.
14585 Update copyright year.
14587 2004-01-09 Andrew Cagney <cagney@redhat.com>
14589 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14591 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14593 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14595 (process_one_symbol): Deal with N_PATCH stabs.
14597 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14599 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14601 Update copyright year.
14603 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14605 * config/pa/tm-hppa.h: Update extern declarations for
14606 hppa32_hpux_frame_saved_pc_in_sigtramp,
14607 hppa32_hpux_frame_base_before_sigtramp, and
14608 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14610 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14612 * config/pa/tm-hppah.h: Update copyright years.
14614 2004-01-08 Andrew Cagney <cagney@redhat.com>
14616 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14617 (mips_o32_reg_struct_has_addr): Delete function.
14618 (mips_gdbarch_init): Update.
14619 (mips_extract_struct_value_address): Delete function.
14621 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14623 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14626 2004-01-07 Andrew Cagney <cagney@redhat.com>
14628 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14629 architecture's elf flags (when available).
14631 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14632 FPU to the start, check the MIPS FPU when looking for an old
14634 (set_mipsfpu_single_command): Update the architecture.
14635 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14637 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14638 (mips_mask_address_p): Add "tdep" parameter.
14639 (show_mask_address, mips_addr_bits_remove): Update.
14640 (mips_dump_tdep): Update.
14641 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14642 (MIPS_STACK_ARGSIZE): Delete macro.
14643 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14644 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14645 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14646 (mips_dump_tdep): Update.
14647 (MIPS_SAVED_REGSIZE): Delete macro.
14648 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14649 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14650 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14651 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14652 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14653 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14654 (mips_pop_frame, return_value_location): Update.
14655 (mips_n32n64_return_value, mips_dump_tdep): Update.
14657 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14660 * mips-tdep.c: Update copyright.
14661 (mips_gdbarch_init): Merge two code blocks handling the register
14662 name and number layout.
14664 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14666 * tracepoint.c (validate_actionline): Fix segv at EOF
14668 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14670 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14671 properly for static fields.
14673 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14674 Jason Molenda <jmolenda@apple.com>
14676 * disasm.c: Update copyright to include 2004.
14677 (do_mixed_source_and_assembly): For uiout asm list
14678 and tuple cleanups, initialize to null_cleanup instead of
14679 NULL and do so prior to loop. Only reset when we close off
14680 the tuple/list. Move check for whether to close off the
14681 asm tuple/list to after dump_insns call where it will be run
14682 on each loop iteration.
14684 2004-01-05 Andrew Cagney <cagney@redhat.com>
14686 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14687 should be a switch case and not a label.
14688 * mips-tdep.c (mips32_next_pc): Delete unused labels
14689 "greater_equal_branch" and "less_zero_branch".
14690 * jv-valprint.c (java_print_value_fields): Delete unused label
14693 * target.c (unpush_target): Only close a target that is in the
14696 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14698 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14699 address from [sp + 64] instead of %o2.
14701 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14702 fixes PR backtrace/1476.
14704 2004-01-05 Andrew Cagney <cagney@redhat.com>
14706 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14707 move to start of file.
14708 * i386-tdep.h (struct regcache): Add opaque declaration.
14709 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14711 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14712 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14713 * win32-nat.c (fake_create_process): Use ISO C style definition.
14714 * stabsread.c (define_symbol): Delete #ifndef
14715 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14716 stabs_argument_has_addr call, macro never defined.
14718 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14720 * op50-rom.c: Delete.
14721 * w89k-rom.c: Delete.
14722 * Makefile.in: Remove references.
14724 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14726 * x86-64-tdep.c: Update copyright year.
14727 (struct amd64_register_info): Rename from x86_64_register_info.
14728 (amd64_register_info): Rename from x86_64_register_info.
14729 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14730 (amd64_register_name): Rename from x86_64_register_name.
14731 (amd64_register_type): Rename from x86_64_register_type.
14732 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14733 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14734 (amd64_dwarf_reg_to_regnum): Rename from
14735 x86_64_dwarf_reg_to_regnum.
14736 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14737 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14738 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14739 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14740 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14741 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14742 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14743 (amd64_frame_cache): Rename from x86_64_frame_cache.
14744 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14745 (amd64_frame_prev_register): Rename from
14746 x86_64_frame_prev_register.
14747 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14748 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14749 (amd64_sigtramp_frame_cache): Rename from
14750 x86_64_sigtramp_frame_cache.
14751 (amd64_sigtramp_frame_prev_register): Rename from
14752 x86_64_sigtramp_frame_prev_register.
14753 (amd64_sigtramp_frame_unwind): Rename from
14754 x86_64_sigtramp_frame_unwind.
14755 (amd64_sigtramp_frame_sniffer): Rename from
14756 x86_64_sigtramp_frame_sniffer.
14757 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14758 (amd64_frame_base): Rename from x86_64_frame_base.
14759 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14760 (amd64_frame_align): Rename from x86_64_frame_align.
14761 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14762 (amd64_regset_from_core_section): Rename from
14763 x86_64_regset_from_core_section.
14764 (x86_64_init_abi): Update comments.
14766 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14768 * MAINTAINERS (write after approval): Add myself.
14770 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14772 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14775 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14777 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14778 such that it mentions a specific version of GCC that exhibits this
14781 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14783 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14784 structure that has a single `float' member, store it in %f1 in
14787 * sparc-sol2-nat.c: Add missing '\'.
14789 * sparc-tdep.c (sparc32_return_value): New function.
14790 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14792 (sparc32_gdbarch_init): Set return_value, don't set
14793 extract_return_value, store_return_value, use_struct_convention
14794 and return_value_on_stack.
14796 * sparc-sol2-nat.c: Add missing ')'.
14798 2004-01-03 J. Brobecker <brobecker@gnat.com>
14800 * infrun.c (handle_step_into_function): New function.
14801 (handle_inferior_event): Extract out some code into the new
14804 2004-01-03 J. Brobecker <brobecker@gnat.com>
14806 * infrun.c (handle_inferior_event): Move the declaration of
14807 real_stop_pc inside the if blocks where it is used.
14809 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14811 * sparc64-tdep.c (sparc64_16_byte_align_p)
14812 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14813 Use check_typedef to get subtypes of structures and unions.
14814 (sparc64_store_return_value): Fix calculation of the appropriate
14815 offset into VALBUF when storing a structure or union.
14816 (sparc64_return_value): New function.
14817 (sparc64_use_struct_convention): Remove function.
14818 (sparc64_init_abi): Set return_value, don't set
14819 extract_return_value, store_return_value and
14820 use_struct_convention.
14822 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14824 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14825 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14826 gdb/config/alpha/xm-alphaosf.h,
14827 gdb/config/powerpc/tm-ppcle-eabi.h,
14828 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14829 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14830 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14831 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14832 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14833 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14834 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14835 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14836 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14837 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14838 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14839 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14840 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14841 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14842 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14843 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14844 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14845 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14846 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14847 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14848 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14849 Remove lines for .cvsignore files.
14851 2004-01-03 J. Brobecker <brobecker@gnat.com>
14853 * infrun.c: Back out the previous change.
14855 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14857 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14858 sparc-*-sunos4* to the list of REMOVED configurations.
14860 * configure.tgt: Add back sparc-*-vxworks*.
14861 * remote-vxsparc.c: Remove all includes except for "defs.h",
14862 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14863 Include "sparc-tdep.h".
14864 (SPARC_R_G1): New define.
14865 (vxsparc_gregset): New variable.
14866 (ext_format_sparc): Remove extern declaration.
14867 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14868 sparc32_supply_fpregset.
14869 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14870 sparc_collect_rwindow and sparc32_collect_fpregset.
14871 * config/sparc/tm-vxworks.h: New file, based on recently removed
14873 * config/sparc/vxworks.mt: New file, based on recently removed
14876 2004-01-03 J. Brobecker <brobecker@gnat.com>
14878 * infrun.c (handle_step_into_function): New function.
14879 (handle_inferior_event): Extract out some code into the new
14882 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14884 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14885 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14886 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14887 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14888 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14889 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14890 (sparc_nat_h): New variable.
14891 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14892 (tm-sun4os4.h): Remove dependency.
14893 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14894 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14895 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14896 sparc-tdep.o): Update dependencies.
14897 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14898 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14899 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14901 * configure.host: Remove existing sparc-*-lynxos*,
14902 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14903 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14904 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14905 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14907 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14908 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14909 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14910 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14911 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14912 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14913 sparc64-*-solaris2* and sparc64-*-* triplets.
14914 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14915 "symtab.h" and "objfiles.h".
14916 (BIAS): Remove define.
14917 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14918 (X_DISP19): Remove macros.
14919 (sparc_fetch_instruction): Remove function.
14920 (struct gdbarch_tdep): Remove definition.
14921 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14922 (sparc_breakpoint_from_pc): Remove function.
14923 (struct sparc64_frame_cache): Remove definition.
14924 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14925 sparc64_unwind_pc): Remove functions.
14926 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14927 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14928 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14929 (sparc64_frame_cache): Change return type to `struct
14930 sparc_frame_cache *'. Simply call sparc_frame_cache.
14931 (sparc64_frame_this_id, sparc64_frame_prev_register,
14932 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14933 instead of `struct sparc64_frame_cache.
14934 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14935 sparc_analyze_control_transfer, sparc_software_single_step,
14936 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14937 _initialize_sparc64_tdep): Remove functions.
14938 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14939 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14941 (sparc64_supply_gregset, sparc64_collect_gregset,
14942 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14943 (sparc64_init_abi): New function.
14944 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14945 inclusion guard. Include "sparc-tdep.h".
14947 (r_tstate_offset, r_fprs_offset): New defines.
14948 (enum sparc_regnum): Remove defenition.
14949 (enum sparc64_regnum): Reformat.
14950 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14951 (sparc64_init_abi, sparc64_supply_gregset,
14952 sparc64_collect_gregset, sparc64_supply_fpregset,
14953 sparc64_collect_fpregset): New prototypes.
14954 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14955 Add extern declarations.
14956 (sparc64_sol2_init_abi): New prototype.
14957 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14958 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14960 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14962 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14964 (_initialize_sparc64fbsd_nat): Remove initialization of
14965 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14966 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14967 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14968 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14969 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14970 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14971 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14972 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14973 (sparc64fbsd_r_y_offset): Remove variables.
14974 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14975 Make static and const.
14976 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14977 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14979 (sparc64fbsd_gregset): New variable.
14980 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14981 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14982 and sparc64_supply_fpregset.
14983 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14984 (sparc64fbsd_sigtramp_frame_this_id)
14985 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14986 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14987 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14988 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14989 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14990 * sparcnbsd-tdep.c: Update copyright year. Include
14991 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14992 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14993 "value.h" and "sparcnbsd-tdep.h".
14994 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14995 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14996 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14997 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14999 (sparcnbsd_gregset): New variable.
15000 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15001 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15002 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15003 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15004 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15006 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15007 (sparc32nbsd_sigcontext_frame_this_id)
15008 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15009 (sparc32nbsd_sigcontext_frame_unwind): New variable.
15010 (sparc32nbsd_sigtramp_frame_sniffer): New function.
15011 (sparcnbsd_get_longjmp_target_32,
15012 sparcnbsd_get_longjmp_target_64): Remove functions.
15013 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15014 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15015 sparcnbsd_init_elf): Remove.
15016 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15017 (sparcnbsd_elf_init_abi): New functions.
15018 (_initialize_sparcnbsd_tdep): New prototype.
15019 (_initialize_sparnbsd_tdep): Update.
15020 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15021 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15022 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15023 * config/sparc/linux.mh: Update comment.
15024 (XM_FILE, HOST_IPC): Remove variables.
15025 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15027 * config/sparc/linux.mt: Update comment.
15028 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15029 * config/sparc/nbsd.mt: Reformat.
15030 * config/sparc/nbsd64.mh: Update comment.
15031 (NATDEPFILES): Add sparc-nat.o.
15032 * config/sparc/nbsd64.mt: Update comment.
15033 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15034 (TM_FILE): Set to tm-nbsd.h.
15035 * config/sparc/nbsdelf.mh: Update comment.
15036 (NATDEPFILES): Add sparc-nat.o.
15038 * config/sparc/nbsdaout.mh: Update comment.
15039 (NATDEPFILES): Add sparc-nat.o
15041 * config/sparc/nm-linux.h: Update copyright year. Don't include
15042 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15044 (KERNEL_U_SIZE): Remove define.
15045 (kernel_u_size): Remove prototype.
15046 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15047 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15049 (CHILD_PREPARE_TO_STORE): Remove define.
15050 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15051 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15052 sparcnbsd-nat.c: Rewrite files.
15053 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15054 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15055 sparcnbsd-tdep.h: Remove files.
15056 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15057 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15058 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15059 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15060 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15061 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15062 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15063 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15064 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15065 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15066 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15067 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15068 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15069 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15070 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15071 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15072 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15073 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15074 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15076 2004-01-02 Andrew Cagney <cagney@redhat.com>
15078 From 2003-12-18 Kazuhiro Inaoka:
15079 * configure.host: Add m32r-linux target.
15081 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15083 * top.c (print_gdb_version): Update year to 2004.
15085 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15087 * MAINTAINERS: Add myself to the write-after-approval category.
15089 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15091 From Bernardo Innocenti <bernie@develer.com>:
15092 * configure.tgt: Add uClinux target.
15094 2004-01-02 Andrew Cagney <cagney@redhat.com>
15096 * utils.c (do_my_cleanups): Make static, add forward declaration.
15097 * defs.h (do_my_cleanups): Delete declaration.
15099 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15101 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15102 bfd/ChangeLog-0203.
15104 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15106 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15107 in <machine/reg.h>.
15108 * configure, config.in: Regenerate.
15110 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15111 tui/ChangeLog-1998-2003.
15117 version-control: never