1 2005-01-01 Joel Brobecker <brobecker@gnat.com>
3 * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
4 in register number for addil instruction.
6 2004-12-28 Jim Blandy <jimb@redhat.com>
8 * remote.c (fetch_register_using_p): Recognize a register value
9 starting with 'x' as indicating an unfetchable register.
11 2004-12-27 Mark Kettenis <kettenis@gnu.org>
13 * config/mips/obsd64.mh (NATDEPFILES): Unwrap line.
15 2004-12-26 Mark Kettenis <kettenis@gnu.org>
17 * inftarg.c (child_xfer_partial): Remove code that handles
20 2004-12-25 Mark Kettenis <kettenis@gnu.org>
22 * inftarg.c (child_create_inferior) [HPUXHPPA]: Remove code.
24 2004-12-24 Mark Kettenis <kettenis@gnu.org>
26 * target.h (TARGET_DISABLE_HW_WATCHPOINTS)
27 (TARGET_ENABLE_HW_WATCHPOINTS): Remove macros.
28 * infrun.c (struct execution_control_state): Remove
29 enable_hw_watchpoints_after_wait member.
30 (number_of_threads_in_syscalls): Remove variable.
31 (init_wait_for_inferior): Don't initialize
32 number_of_threads_in_syscalls.
33 (init_execution_control_state): Don't initialize
34 ECS->enable_hw_watchpoints_after_wait.
35 (handle_inferior_event): Never invoke TARGET_ENABLE_HW_WATCHPOINTS
36 or TARGET_DISABLE_HW_WATCHPOINTS.
38 2004-12-23 Mark Kettenis <kettenis@gnu.org>
40 * i386-nto-tdep.c: Reorder include files.
41 (i386nto_svr4_fetch_link_map_offsets): Remove function.
42 (init_i386nto_ops, i386nto_init_abi): Use
43 svr4_ilp32_fetch_link_map_offsets instead of
44 i386nto_svr4_fetch_link_map_offsets.
46 2004-12-21 Mark Kettenis <kettenis@gnu.org>
48 * hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe.
50 2004-12-21 Mark Kettenis <kettenis@gnu.org>
52 * hppa-tdep.c (hppa64_return_value): Fix previous commit.
54 2004-12-21 Mark Kettenis <kettenis@gnu.org>
56 * hppa-tdep.c (hppa32_return_value): Move further down.
57 (hppa64_return_value): Re-implement.
59 2004-12-21 Jim Blandy <jimb@redhat.com>
61 * remote.c (fetch_register_using_p): Fix formatting.
63 2004-12-21 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
65 * ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
67 * ada-typeprint.c (ada_typedef_print): Ditto.
68 (print_unchecked_union_type): Ditto.
69 (print_record_type): Ditto, and correct output for non-derived
70 types that was inadvertently left off during the markup.
72 2004-12-19 Mark Kettenis <kettenis@gnu.org>
74 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
75 whether the name returned by find_pc_partial_function is a null
76 pointer, not whether it is an empty string.
78 * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
79 HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
80 * hppa-tdep.c (hppa64_integral_or_pointer_p)
81 (hppa64_floating_p) New functions.
82 (hppa64_push_dummy_call): Re-implement.
83 (hppa32_register_type): Rename argument reg_nr to regnum.
84 (hppa64_register_type): Likewise. Use HPPA64_FP4_REGNUM instead
86 (hppa32_cannot_store_register): Renamed from
87 hppa_cannot_store_register.
88 (hppa64_cannot_store_register): New function.
89 (hppa_gdbarch_init): Set cannot_store_register and
90 cannot_fetch_register to hppa32_cannot_store_register or
91 hppa64_cannot_store_register when appropriate.
93 2004-12-18 Mark Kettenis <kettenis@gnu.org>
95 * hppah-nat.c: Remove file.
96 * infttrace.h: Remove file.
97 * infttrace.c: Remove file.
98 * Makefile.in (ALLDEPFILES): Remove hppah-nat.c
99 (infttrace_h): Remove variable.
100 (hppah-nat.o, infttrace.o): Remove dependencies.
101 * configure.host (hppa*64*-*-hpux11*): Remove.
102 * config/pa/hpux11w.mh: Remove file.
103 * config/pa/nm-hppah.h: Remove file.
104 * config/pa/nm-hppah11.h: Remove file.
106 * config/djgpp/fnchange.lst: Resolve name clash between
107 ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
108 i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
109 testsuite/gdb.base/bitfields.c and
110 testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
111 and testsuite/gdb.base/bitfields2.exp. Remove entry for
112 config/m88k/xm-delta88v4.h.
114 * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
115 PA_SOM_ONLY isn't defined.
117 * somread.c: Include "solib-som.h".
118 (som_symfile_init, som_new_init, som_symfile_read,
119 som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
121 * Makefile.in (somread.o): Update dependencies.
123 2004-12-17 Jim Blandy <jimb@redhat.com>
125 * remote.c (fetch_register_using_p): Indentation cleanup.
127 2004-12-17 Randolph Chung <tausq@debian.org>
129 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
130 (find_stub_with_shl_get): Make static.
132 2004-12-17 Randolph Chung <tausq@debian.org>
134 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
135 (in_opd_section): New.
136 (hppa32_hpux_find_global_pointer): Rename from
137 hppa_hpux_som_find_global_pointer.
138 (hppa64_hpux_find_global_pointer): New.
139 (ldsid_pattern): New.
140 (hppa_hpux_search_pattern): New.
141 (hppa32_hpux_search_dummy_call_sequence): New.
142 (hppa64_hpux_search_dummy_call_sequence): New.
143 (hppa_hpux_find_import_stub_for_addr): New.
144 (hppa_hpux_sr_for_addr): New.
145 (hppa_hpux_find_dummy_bpaddr): New.
146 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
147 (hppa_hpux_som_init_abi): Set find_global_pointer method to
148 hppa32_hpux_find_global_pointer instead of
149 hppa_hpux_som_find_global_pointer.
150 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
151 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
152 (read_unwind_info): Use function to initialize objfile-private data.
153 (hppa32_push_dummy_call): Don't automatically set the RP if there is
154 a push_dummy_code method.
155 (hppa64_push_dummy_call): Retrieve and set the global pointer.
156 Don't automatically set the RP if there is a push_dummy_code method.
157 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
158 dummy_call_sequence_addr members.
159 (hppa_init_objfile_priv_data): New prototype.
161 2004-12-17 Joel Brobecker <brobecker@gnat.com>
163 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
164 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
165 * solib-som.c (som_solib_create_inferior_hook): Replace stub
166 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
167 extends the search to all objfiles, not just shared libraries.
168 Remove unused variable.
170 2004-12-16 Michael Snyder <msnyder@redhat.com>
172 * MAINTAINERS: Add myself as maintainer for mn10300.
173 * NEWS: Mention mn10300.
175 2004-12-15 Kevin Buettner <kevinb@redhat.com>
177 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
180 2004-12-14 Randolph Chung <tausq@debian.org>
182 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
183 (hppa_gdbarch_init): Set in_epilogue_p method.
185 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
187 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
188 sh_default_extract_return_value.
189 (sh_extract_return_value_fpu): Rename from
190 sh3e_sh4_extract_return_value.
191 (sh_store_return_value_nofpu): Rename from
192 sh_default_store_return_value.
193 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
194 (sh_return_value_nofpu): Accomodate above changes.
195 (sh_return_value_fpu): Ditto.
197 2004-12-13 Jerome Guitton <guitton@gnat.com>
199 * stabsread.c (read_huge_number): Add support for reading octal
200 signed number in twos complement, based on the size of this
202 (read_range_type): Add support for reading octal signed bounds
203 in twos complements, based on the size of the type.
204 (read_type_number, read_cpp_abbrev, read_member_functions,
205 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
206 read_struct_type, read_array_type, read_enum_type,
207 read_sun_builtin_type, read_sun_floating_type): Update calls to
209 (read_type): Update call to read_range_type.
211 2004-12-13 Randolph Chung <tausq@debian.org>
213 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
214 solib_get_solib_by_pc method through target vector.
215 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
216 method through target vector.
218 2004-12-13 Joel Brobecker <brobecker@gnat.com>
220 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
221 parameter name to make it clear that we already have a next
222 frame. Return the sigcontext from that next frame instead
223 of the frame following it.
225 2004-12-13 Randolph Chung <tausq@debian.org>
227 * Makefile.in (pa64solib_h, somsolib_h): Delete.
228 (solib_pa64_h, solib_som_h): New.
229 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
230 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
231 (pa64solib.o, somsolib.o): Delete.
232 (solib-pa64.o, solib-som.o): New.
233 * hppa-hpux-tdep.c: Include new solib interfaces.
234 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
235 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
236 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
237 is available, use it to determine the base of unwind records.
238 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
239 * hpread.c: Replace somsolib.h with solib-som.h.
240 (hpread_process_one_debug_symbol): Use target vector to get thread
242 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
243 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
244 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
245 * config/pa/tm-hppah.h: Use new solib interface.
247 2004-12-13 Randolph Chung <tausq@debian.org>
249 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
250 sections to be trampolines too.
252 2004-12-13 Ben Elliston <bje@au.ibm.com>
254 * f-exp.y (typename): Remove unused nonterminal.
257 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
259 Committed by Andrew Cagney.
260 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
263 2004-12-12 Andrew Cagney <cagney@gnu.org>
265 * frame.c (get_prev_frame): When unwinding normal frames, check
266 that the PC isn't zero.
267 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
270 * MAINTAINERS: Reword description of what "Target Instruction Set
271 Architectures" covers.
273 2004-12-12 Mark Kettenis <kettenis@gnu.org>
275 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
277 2004-12-11 Mark Kettenis <kettenis@gnu.org>
279 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
280 (hppa_hpux_save_state_offset): New function, replacing variable
282 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
284 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
285 Use new hppa_hpux_save_state_offset function. Add special
286 handling for handling 64-bit "flags" register.
287 (hppa_hpux_store_register): Likewise.
288 (hppa_hpux_child_can_run): Tweak comment.
290 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
291 (inf_ttrace_attach): Likewise.
292 (inf_ttrace_resume_callback): New function.
293 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
294 lwps and call inf_ttrace_resume_callback instead.
295 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
297 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
299 2004-12-10 Michael Snyder <msnyder@redhat.com>
301 * mn10300-tdep.c: New file. This is a re-implementation of
302 the mn10300 target back-end using the new frame api etc.
303 * mn10300-tdep.h: New file.
304 * config/mn10300/mn10300.mt: New file (or replace old file).
305 * configure.tgt: Add mn10300 target.
307 2004-12-10 Mark Kettenis <kettenis@gnu.org>
309 * configure.host (hppa*-*-hpux11*): Remove.
310 * config/pa/hpux11.mh: Remove file.
312 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
315 2004-12-10 Kris Warkentin <kewarken@qnx.com>
317 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
318 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
319 function and nto_set_target function.
320 (struct nto_target_ops): Put comments inline with struct. Add osabi
321 sniffer hook. Redefine macros to permit testing/assignment. Remove
322 nto_ prefix from members.
323 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
324 dynamically to support arbitrary root paths. Check for basename of
325 lib in search path and then check for absolute.
326 (nto_in_dynsym_resolve_code): New function.
327 (nto_core_sniffer): New function.
328 (regset_core_fns): Register core sniffer.
329 (nto_initialize_signals): New function.
330 (_initialize_nto_tdep): Move signal initialization code to above to
331 avoid initialization race conditions.
332 (nto_set_target): New function.
333 * nto-procfs.c: Minor formatting/indenting changes.
334 (procfs_is_nto_target): New function.
335 (procfs_open): Set nto_is_nto_target.
336 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
337 initialization race conditions.
338 (procfs_create_inferior): Resume inferior after creation.
339 * i386-nto-tdep.c: Declare i386_nto_target.
340 (init_i386nto_ops): Initialize i386_nto_target instead of
342 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
343 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
344 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
347 2004-12-10 Mark Kettenis <kettenis@gnu.org>
349 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
350 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
351 (hppa_hpux_init_abi): Reformat long line.
353 2004-12-09 Mark Kettenis <kettenis@gnu.org>
355 * hppa-hpux-tdep.c: Include "regset.h".
356 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
357 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
358 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
359 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
360 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
361 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
363 (hppa_hpux_regset): New variable.
364 (hppa_hpux_regset_from_core_section): New function.
365 (hppa_hpux_init_abi): Set regset_from_core_section.
366 (hppa_hpux_core_osabi_sniffer): New function.
367 (_initialize_hppa_hpux_tdep): Register
368 hppa_hpux_core_osabi_sniffer.
369 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
370 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
372 2004-12-09 Randolph Chung <tausq@debian.org>
374 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
375 text and data sections.
376 (pa64_current_sos): Also include the dld in the list of current shared
378 (pa64_solib_get_solib_by_pc): Update comments.
379 (pa64_solib_get_text_base): New function.
380 (pa64_solib_select): Set solib_get_text_base method.
382 2004-12-08 Daniel Jacobowitz <dan@debian.org>
384 * linux-thread-db.c (BUILD_THREAD): Delete.
385 (thread_get_info_callback): Include LWP ID in thread ID.
386 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
387 (lwp_from_thread): Use the LWP ID from the thread ID.
389 2004-12-07 Randolph Chung <tausq@debian.org>
391 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
392 register for both 32- and 64-bit targets.
394 2004-12-07 Randolph Chung <tausq@debian.org>
396 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
397 are unwinding through a dummy frame.
399 2004-12-07 Randolph Chung <tausq@debian.org>
401 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
402 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
403 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
404 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
407 2004-12-07 Randolph Chung <tausq@debian.org>
409 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
410 unwinding from a frame with pc == 0.
411 (hppa_stub_frame_this_id): Likewise.
412 (hppa_stub_frame_prev_register): Only provide real values if the frame
415 2004-12-07 Randolph Chung <tausq@debian.org>
417 * solib-som.c: New file.
418 * solib-som.h: New file.
419 * solib-pa64.c: New file.
420 * solib-pa64.h: New file.
422 2004-12-07 Mark Kettenis <kettenis@gnu.org>
424 * Makefile.in (inf-ttrace.o): Fix typo.
426 2004-12-07 Jim Blandy <jimb@redhat.com>
428 * remote.c (remote_threads_info, remote_current_thread): Use
429 strtoul to parse thread ID numbers.
431 2004-12-07 Mark Kettenis <kettenis@gnu.org>
433 * inf-ttrace.c: Include "gdbthread.h".
434 (inf_ttrace_num_lwps): New variable.
435 (inf_ttrace_num_lwps_in_syscall): Renamed from
436 inf_ttrace_num_threads_in_syscall.
437 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
438 TTEVT_LWP_TERMINATE events.
439 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
441 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
442 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
443 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
445 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
446 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
447 TTEVT_LWP_TERMINATE events.
448 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
449 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
450 * Makefile.in (inf-ttrace.o): Update dependencies.
452 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
454 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
455 Make global. Remove HP-UX specific code. Use
456 frame_unwind_register_unsigned instead of
457 frame_unwind_register_signed.
458 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
459 Remove HP-UX specific code.
460 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
461 (hppa_frame_prev_register_helper): Set "flags" register to zero
462 for all unwound frames.
463 (hppa_gdbarch_init): Adjust.
464 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
465 (hppa_hpux_read_pc, hppa_hpux_write_pc)
466 (hppa_hpux_unwind_pc): New functions.
467 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
469 2004-12-07 Andreas Schwab <schwab@suse.de>
471 * main.c (long_options): Add entry for "-l".
472 (print_gdb_help): Add line for -l option.
475 2004-12-05 Randolph Chung <tausq@debian.org>
477 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
478 DEPRECATED_REGISTER_BYTE.
480 2004-12-05 Randolph Chung <tausq@debian.org>
482 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
485 2004-12-05 Mark Kettenis <kettenis@gnu.org>
487 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
488 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
490 * hppa-hpux-tdep.c: Update copyright notice and year.
492 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
494 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
495 (get_field, put_field): Assert that the format is one we can handle.
496 Simplify logic accordingly.
497 (floatformat_normalize_byteorder): New function.
498 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
499 to normalize and select modified byte order. Pass modified byte order
501 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
503 (convert_doublest_to_floatformat): Select an appropriate intermediate
504 byte order if necessary. Always convert to the final format before
507 2004-12-04 Daniel Jacobowitz <dan@debian.org>
510 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
511 Suggested by Joshua Neuheisel.
513 2004-12-03 Randolph Chung <tausq@debian.org>
515 * gdbarch.sh (instruction_nullified): Delete.
516 * gdbarch.c: Regenerate.
517 * gdbarch.h: Regenerate.
518 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
520 (hppa_unwind_pc): Likewise.
521 (hppa_instruction_nullified): Delete.
522 (hppa_gdbarch_init): Don't set instruction_nullified method.
523 * infrun.c (infwait_states): Remove infwait_nullified_state.
524 (handle_inferior_event): Remove handling of infwait_nullified_state.
525 Remove handling of nullified instructions.
527 2004-12-03 Mark Kettenis <kettenis@gnu.org>
529 * inf-ttrace.c: Include <sys/mman.h>.
530 (struct inf_ttrace_page): New.
531 (struct inf_ttrace_page_dict): New.
532 (inf_ttrace_num_threads_in_syscall)
533 (inf_ttrace_reenable_page_protections): New variables.
534 (inf_ttrace_enable_syscall_events)
535 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
536 (inf_ttrace_add_page, inf_ttrace_insert_page)
537 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
538 (inf_ttrace_enable_page_protections)
539 (inf_ttrace_disable_page_protections)
540 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
541 (inf_ttrace_can_use_hw_breakpoint)
542 (inf_ttrace_region_size_ok_for_hw_watchpoint)
543 (inf_ttrace_stopped_by_watchpoint): New functions.
544 (inf_ttrace_him): Remove unsused varaible `tts'.
545 (inf_ttrace_create_inferior): Add assertionts.
546 (inf_ttrace_mourn_inferior): Clear page dictionary.
547 (inf_ttrace_attach): Set initial event mask.
548 (inf_ttrace_detach): Reset number of threads in system call.
549 (inf_ttrace_wait): Deal with system call events.
550 (inf_ttrace_target): Initialize "hardware" watchpoint-related
551 parts of the target vector.
552 (_initialize_inf_ttrace): New prototype and function.
554 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
555 type of `gp' variable.
557 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
559 * README: Remove config.if from directory listing.
561 2004-12-01 Joel Brobecker <brobecker@gnat.com>
563 * alpha-tdep.c (alpha_register_name): Add comment.
564 (alpha_cannot_fetch_register): Exclude registers numbers which
565 are no longer used from the list of registers that can be fetched.
566 (alpha_cannot_store_register): Exclude registers numbers which
567 are no longer used from the list of registers that can be stored.
568 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
569 core_reg_mapping array.
571 2004-12-01 Joel Brobecker <brobecker@gnat.com>
573 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
574 the register value from the correct frame.
576 2004-11-30 Randolph Chung <tausq@debian.org>
578 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
579 (hppa_linux_in_dyncall): Check that we are inside the range of
580 $$dyncall, not necessarily at the first insn.
581 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
582 even if the pc does not point to the first insn of the trampoline.
584 2004-11-30 Randolph Chung <tausq@debian.org>
586 * breakpoint.c (break_at_finish_command): Delete.
587 (break_at_finish_command_1): Delete.
588 (break_at_finish_at_depth_command): Delete.
589 (break_at_finish_at_depth_command_1): Delete.
590 (tbreak_at_finish_command): Delete.
591 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
594 2004-11-30 Andrew Cagney <cagney@gnu.org>
596 * config/nm-gnu.h: Delete file.
597 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
599 * config/nm-sysv4.h: Delete file.
600 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
601 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
602 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
603 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
604 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
606 2004-11-29 Andrew Cagney <cagney@gnu.org>
608 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
609 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
610 as can-commit architecture developers.
612 2004-11-29 Mark Kettenis <kettenis@gnu.org>
614 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
615 (sparc32_skip_prologue): Skip instructions that store arguments in
616 registers into their corresponding stack slots.
618 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
620 * config/m68k/obsd.mh (NAT_FILE): Likewise.
622 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
623 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
624 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
625 sparc32nbsd_elf_init_abi. Remove duplicate code.
627 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
628 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
629 * config/sparc/nm-nbsd.h: Remove file.
630 * config/sparc/nm-nbsdaout.h: Remove file.
632 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
633 (sparc_xfer_partial): New function.
634 (sparc_target): Save value of to_xfer_partial from ptrace vector.
637 * fork-child.c (fork_inferior): Fork instead of vfork if
638 PRE_TRACE_FUN is non-null.
640 2004-11-24 Fred Fish <fnf@specifixinc.com>
642 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
643 compiler generated function calls made as part of a prologue.
645 2004-11-23 Mark Kettenis <kettenis@gnu.org>
647 * inf-ttrace.c: New file.
648 * inf-ttrace.h: New file.
649 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
650 Include "inf-ttrace.h".
651 (ss_mpsfu_high): Define to ss_tlsp if necessary.
652 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
653 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
655 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
656 instead of inf_ptrace_target.
657 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
658 * Makefile.in (inf_ttrace_h): New variable.
659 (hppa-hpux-nat.o): Update dependency.
660 (inf-ttrace.o): New dependency.
661 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
663 2004-11-23 Randolph Chung <tausq@debian.org>
665 * arch-utils.c (generic_instruction_nullified): New.
666 * arch-utils.h (generic_instruction_nullified): New.
667 * gdbarch.sh (instruction_nullified): New method.
668 * gdbarch.c: Regenerate.
669 * gdbarch.h: Regenerate.
670 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
671 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
673 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
674 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
675 static. Rewrite to work directly off the passed regcache.
676 (hppa_gdbarch_init): Set instruction_nullified method.
678 2004-11-23 Joel Brobecker <brobecker@gnat.com>
680 * sparc-tdep.c (sparc_is_unimp_insn): New function.
681 (sparc32_frame_cache): For functions where there is no debugging
682 information to help us determine whether it's a struct-return
683 function or not, fallback on checking whether the instruction
684 at the return address is an "unimp" instruction or not.
686 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
688 * MAINTAINERS: Add myself to write after approval section.
690 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
691 hpux-thread.c to suppress children from running.
692 (hppa_hpux_child_can_run): New function.
693 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
694 * hpux-thread.c: Include string.h and hppa-tdep.h.
695 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
696 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
697 (hpux_thread_store_registers): Replace deprecated_registers with
698 calls to regcache_raw_read.
699 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
701 2004-11-21 Mark Kettenis <kettenis@gnu.org>
703 * sparc64fbsd-nat.c: Update copyright year.
704 (_initialize_sparc64fbsd_nat): Construct and add target vector.
705 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
708 2004-11-21 Daniel Jacobowitz <dan@debian.org>
710 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
712 2004-11-21 Daniel Jacobowitz <dan@debian.org>
714 * linux-nat.c (my_waitpid): New function.
715 (linux_test_for_tracefork): Make more robust and verbose. Take
716 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
717 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
718 argument. Update calls to linux_test_for_tracefork.
719 (linux_enable_event_reporting, child_follow_fork)
720 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
721 (child_insert_exec_catchpoint): Update calls to
722 linux_supports_tracefork and linux_supports_tracevforkdone.
724 2004-11-21 Daniel Jacobowitz <dan@debian.org>
726 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
727 (value_subscripted_rvalue): Likewise.
728 * valops.c (search_struct_field, value_slice): Likewise.
730 2004-11-21 Mark Kettenis <kettenis@gnu.org>
732 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
733 Reorder includes a bit. Fix comment.
734 * Makefile.in (inf-ptrace.o): Update dependencies.
736 2004-11-21 Andreas Schwab <schwab@suse.de>
738 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
739 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
740 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
741 to glibc_skip_solib_resolver.
742 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
744 * Makefile.in (m68klinux-tdep.o): Update dependencies.
746 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
748 * infttrace.h (ttrace_write_reg_64): Add prototype.
749 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
751 (store_inferior_registers): Correct formatting. Replace uses of
752 deprecated_registers with calls to regcache_raw_read,
753 regcache_raw_write_part and regcache_raw_read_part.
755 2004-11-21 Mark Kettenis <kettenis@gnu.org>
757 * config/pa/hppahpux.mh: Remove file.
758 * config/pa/hpux1020.mh: Remove file.
760 2004-11-20 Andreas Schwab <schwab@suse.de>
762 * configure.host: Set host floatformat for m68k.
764 2004-11-20 Eli Zaretskii <eliz@gnu.org>
766 * config/djgpp/fnchange.lst: Resolve file-name clash between
767 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
769 2004-11-20 Mark Kettenis <kettenis@gnu.org>
771 * hppa-hpux-nat.c: New file.
772 * config/pa/hpux.mh (NATDEPFILES): New file.
773 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
774 (hppa-hpux-nat.o): New dependency.
775 * configure.host: Remove hppa*-*-hpux10.20.
776 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
778 * inf-ptrace.c: Fix coding style.
780 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
781 * infptrace.c (call_ptrace): Simply call ptrace with four
784 * dbxread.c (process_one_symbol): Fix a few coding standard
785 issues. Improve code formatting.
787 * dbxread.c: Include "gdb_string.h".
788 (record_minimal_symbol, read_ofile_symtab): Replace
789 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
790 * Makefile.in (dbxread.o): Update dependencies.
792 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
793 of bytes read for aligned LEB128 encodings.
795 2004-11-19 Mark Kettenis <kettenis@gnu.org>
797 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
798 parse_and_eval_address to u_long before converting it to a pointer
800 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
801 ps_strings from int to u_long.
802 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
803 u_long instead of CORE_ADDR.
805 2004-11-18 Mark Kettenis <kettenis@gnu.org>
807 * dbxread.c (process_one_symbol): Do not adjust address of first
808 N_SLINE stab for a function for code generated by non-GCC
811 2004-11-18 Kevin Buettner <kevinb@redhat.com>
813 * solib-null.c: New file.
815 2004-11-17 Andrew Cagney <cagney@gnu.org>
817 * MAINTAINERS: Drop MIPS and remote.
819 2004-11-15 Andrew Cagney <cagney@gnu.org>
821 * findvar.c (value_of_register): Set the frame ID.
822 * value.c (value_primitive_field): Copy the frame ID.
823 * valops.c (value_assign): Simplify lval_register case, there's
826 2004-11-14 Daniel Jacobowitz <dan@debian.org>
828 * Makefile.in (mips-linux-tdep.o): Update dependencies.
829 * mips-linux-tdep.c: Include "regcache.h".
830 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
832 2004-11-14 Daniel Jacobowitz <dan@debian.org>
834 * Makefile.in (linux-thread-db.o): Fix typo in last change.
836 2004-11-14 Daniel Jacobowitz <dan@debian.org>
838 * linux-thread-db.c: New file, renamed from thread-db.c.
839 * thread-db.c: Remove.
840 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
841 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
842 to linux-thread-db.o.
843 * config/arm/linux.mh (NATDEPFILES): Likewise.
844 * config/i386/linux.mh (NATDEPFILES): Likewise.
845 * config/i386/linux64.mh (NATDEPFILES): Likewise.
846 * config/ia64/linux.mh (NATDEPFILES): Likewise.
847 * config/m32r/linux.mh (NATDEPFILES): Likewise.
848 * config/m68k/linux.mh (NATDEPFILES): Likewise.
849 * config/mips/linux.mh (NATDEPFILES): Likewise.
850 * config/pa/linux.mh (NATDEPFILES): Likewise.
851 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
852 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
853 * config/s390/s390.mh (NATDEPFILES): Likewise.
854 * config/sparc/linux.mh (NATDEPFILES): Likewise.
855 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
857 2004-11-13 Andrew Cagney <cagney@gnu.org>
859 * config/i386/i386lynx.mh: Delete file.
860 * config/i386/i386lynx.mt: Delete file.
861 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
862 * i386ly-tdep.c: Delete.
864 * config/tm-lynx.h: Delete, inline contents ...
865 * config/rs6000/tm-rs6000ly.h: ... here.
867 * config/tm-sysv4.h: Delete file, inlining contents.
868 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
869 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
870 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
872 * regcache.h (deprecated_register_valid): Delete.
873 (deprecated_registers): Delete.
874 * regcache.c (deprecated_register_valid): Delete.
875 (deprecated_registers): Delete.
876 (deprecated_read_register_byte, _initialize_regcache)
877 (deprecated_write_register_bytes, build_regcache): Update.
878 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
880 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
881 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
883 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
884 v850-*-* under removed.
885 * configure.host: Delete ns32k-*-netbsd*.
886 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
887 ns32k-*-netbsd*, and v850*-*-*.
888 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
890 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
891 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
892 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
893 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
894 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
895 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
896 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
897 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
898 * v850-tdep.c: Delete.
900 2004-11-13 Joel Brobecker <brobecker@gnat.com>
902 * irix5-nat.c (fetch_core_registers): Replace use of
903 deprecated_registers by equivalent code.
905 2004-11-13 Joel Brobecker <brobecker@gnat.com>
907 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
908 with equivalent code.
909 (fill_fpregset): Likewise.
911 2004-11-13 Andrew Cagney <cagney@gnu.org>
913 * MAINTAINERS: Do not list "Deleted" architectures.
915 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
916 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
918 * NEWS: Mention that vxworks was deleted.
919 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
920 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
921 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
922 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
923 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
924 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
925 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
926 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
927 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
928 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
929 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
930 * remote-vxmips.c, remote-vx.c: Delete.
931 * remote-vx68.c: Delete.
932 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
933 * config/m68k/os68k.mt, ada-lang.h: Ditto.
934 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
935 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
937 2004-11-13 Eli Zaretskii <eliz@gnu.org>
939 * config/i386/xm-go32.h: Don't include fopen-bin.h.
940 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
942 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
943 branch that doesn't define CRLF_SOURCE_FILES; always use
945 (print_source_lines_base, forward_search_command)
946 (reverse_search_command): Enable the code that accepts DOS-style
947 CRLF line endings on all platforms (this removes the need for
950 * defs.h: Fix wording of the comment before FOPEN_RB.
951 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
953 * config/djgpp/fnchange.lst: Group renames for opcode directory
956 * config/djgpp/djconfig.sh: Replace file names that don't exist
957 anymore with existing files, for checking the unpacked
960 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
961 Export pre-cooked values in configure-* targets that begin with
962 "@test -f stage_last".
964 2004-11-12 Andrew Cagney <cagney@gnu.org>
966 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
967 * value.h (struct value): Update comment.
968 * valops.c (value_assign): Fold lval_reg_fame_relative into
970 * findvar.c (value_from_register, locate_var_value): Ditto.
972 2004-11-12 Randolph Chung <tausq@debian.org>
974 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
975 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
976 (write_exp_msymbol): Remove conditional check for symbols starting
977 with $. Update comments.
979 2004-11-12 Randolph Chung <tausq@debian.org>
981 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
982 so_lib_thread_start_addr.
983 * pa64solib.h (so_list): Forward declare.
984 (pa64_solib_thread_start_addr): Prototype.
985 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
986 (no_shared_libraries): Remove.
987 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
988 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
989 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
990 the elf solib handler to find the start address.
992 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
993 files to the target makefile.
994 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
995 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
996 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
998 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
999 files for symbol reading and shared library handling here.
1000 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
1001 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
1002 without bringing in 64-bit support.
1004 2004-11-12 Andrew Cagney <cagney@gnu.org>
1006 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
1007 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
1008 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
1009 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
1010 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
1011 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
1012 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
1014 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
1015 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
1016 (VALUE_REGNUM): Define.
1017 (struct value): Delete location.regnum, rename "regno" to
1019 * value.c, valops.c, valarith.c, findvar.c: Update.
1021 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
1022 (VALUE_BITPOS): Delete.
1023 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
1024 * value.c (value_type, value_offset, value_bitpos)
1025 (value_bitsize): New functions. Update references.
1026 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
1027 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
1028 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
1029 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
1030 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
1031 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
1032 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
1033 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
1034 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
1036 2004-11-12 Andrew Cagney <cagney@gnu.org>
1038 * cris-tdep.c (cris_register_offset): Delete, never called.
1039 (cris_spec_reg_applicable): Delete cris_ver_sim.
1040 * MAINTAINERS: List d10v as OBSOLETE.
1041 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
1042 FOPEN_WB et.al., defined by "fopen-bin.h".
1044 2004-11-12 Randolph Chung <tausq@debian.org>
1046 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
1047 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
1048 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
1049 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
1051 2004-11-12 Mark Kettenis <kettenis@jive.nl>
1053 * tui/tui-io.c: Don't include "terminal.h".
1054 * Makefile.in (tui-io.o): Update dependencies.
1056 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
1058 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
1059 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
1060 set_gdbarch_regset_from_core_section for core file support.
1061 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
1064 2004-11-11 Randolph Chung <tausq@debian.org>
1066 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
1067 stop_after_branch parameter and use it to determine if we should look
1068 at the delay slot of the first branch insn to find prologue insns.
1069 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
1070 (hppa_frame_cache): Likewise.
1072 2004-11-11 Randolph Chung <tausq@debian.org>
1074 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
1075 register so that it can be unwound from anywhere in the prologue.
1077 2004-11-10 msnyder <msnyder@redhat.com>
1079 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
1080 must invalidate lr_reg (so we don't try to save it again).
1081 Ditto for cr_offset and cr_reg.
1083 2004-11-05 Jon Beniston <jon@beniston.com>
1085 Committed by Andrew Cagney.
1086 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
1087 when an unexpected packet is received, as the target stubs
1088 continually retransmit the same packet until ACKed.
1090 2004-11-10 Randolph Chung <tausq@debian.org>
1092 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
1095 2004-11-10 Randolph Chung <tausq@debian.org>
1097 * blockframe.c (inside_entry_func): Move to .....
1098 * frame.c (inside_entry_func): ... here, and make static.
1099 (backtrace_past_entry): New flag.
1100 (get_prev_frame): Stop backtrace at the entry function if enabled
1101 by flag. Update comments.
1102 (_initialize_frame): Add command to set backtrace_past_entry flag.
1103 * defs.h (inside_entry_func): Remove prototype.
1105 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1107 * dwarf2read.c: Fix formatting.
1109 2004-11-10 Andrew Cagney <cagney@gnu.org>
1111 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1112 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1113 macros with function declarations.
1114 * value.c (coerce_ref, coerce_array, coerce_number)
1115 (coerce_enum): New functions.
1116 (value_as_long, value_as_address): Update.
1117 * ada-lang.c (ada_coerce_ref, ada_value_binop)
1118 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1119 * jv-lang.c (evaluate_subexp_java): Update.
1120 * valarith.c (value_less, value_neg, value_complement)
1121 (value_binop, value_add, value_subscript, value_x_binop)
1122 (value_logical_not, value_sub): Update.
1123 * valops.c (check_field, value_struct_elt, value_ind)
1124 (value_find_oload_method_list, value_cast, value_assign): Update.
1125 * eval.c (evaluate_subexp_standard): Update.
1127 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1129 * mips-tdep.c (mips32_relative_offset): Change return type to
1130 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1132 2004-11-10 Randolph Chung <tausq@debian.org>
1134 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1135 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1136 (hppa_fetch_pointer_argument): Likewise.
1137 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1138 deprecated_read_memory_nobpt.
1139 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1140 add_set_cmd sequence with add_setshow_boolean_cmd.
1142 2004-11-09 Andrew Cagney <cagney@gnu.org>
1144 GDB 6.3 released from GDB 6.3 branch.
1146 2004-11-09 Andrew Cagney <cagney@gnu.org>
1148 * values.c: Rename to ...
1149 * value.c: ..., new file.
1150 * Makefile.in: Update.
1152 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1154 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1157 2004-11-09 Andrew Cagney <cagney@gnu.org>
1161 * value.h (struct value): Delete field bfd_section.
1162 (VALUE_BFD_SECTION): Delete macro.
1163 (COERCE_REF): Update.
1164 (value_at, value_at_lazy): Delete asection parameter.
1165 * printcmd.c (print_formatted, x_command): Update.
1166 (do_examine): Delete asection parameter.
1167 (next_section): Delete variable.
1168 * valops.c (value_cast, value_at, value_at_lazy)
1169 (value_coerce_function, value_addr, value_ind, value_string)
1170 (find_rt_vbase_offset, value_full_object): Update.
1171 * hpacc-abi.c (hpacc_virtual_fn_field)
1172 (hpacc_value_rtti_type): Update.
1173 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1174 (gnuv3_baseclass_offset): Update.
1175 * f-valprint.c (f_val_print): Update.
1176 * c-valprint.c (c_val_print): Update.
1177 * p-valprint.c (pascal_val_print): Update.
1178 * jv-valprint.c (java_value_print): Update.
1179 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1180 * ada-lang.c (ada_value_primitive_packed_val)
1181 (ada_evaluate_subexp): Update.
1182 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1183 * expprint.c (print_subexp_standard): Update.
1184 * infcall.c (call_function_by_hand): Update.
1185 * valarith.c (value_add): Update.
1186 * eval.c (evaluate_subexp_standard): Update.
1187 * values.c (allocate_value, value_copy, value_static_field): Update.
1188 * findvar.c (read_var_value, locate_var_value): Update.
1190 2004-11-09 Andrew Cagney <cagney@gnu.org>
1192 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1193 * Makefile.in: Update all dependencies.
1195 2004-11-08 Andrew Cagney <cagney@gnu.org>
1197 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1198 (sentinel_frame_unwinder): Add the prev_pc method.
1199 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1200 available. Do not handle the sentinel-frame case.
1201 * frame-unwind.h (frame_prev_register_ftype): Define.
1202 (struct frame_unwind): Add prev_pc;
1204 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1206 * configure.in: Check for ncurses/term.h.
1207 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1208 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1209 * tui/tui.c: Don't include term.h.
1210 * configure, config.in: Rebuilt.
1212 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1214 * m68kbsd-nat.c: Include "inf-ptrace.h".
1215 (_initialize_m68kbsd_nat): Fix pasto.
1216 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1218 2004-11-08 Randolph Chung <tausq@debian.org>
1220 * infrun.c (debug_infrun): New variable.
1221 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1222 (handle_inferior_event, keep_going): Likewise.
1223 (_initialize_infrun): Register "set debug infrun" command.
1225 2004-11-08 Andreas Schwab <schwab@suse.de>
1227 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1228 PTRACE_EVENT_VFORKDONE.
1229 (child_follow_fork): Adjust.
1231 2004-11-08 Andrew Cagney <cagney@gnu.org>
1233 * README: Refer to 6.3, not 6.2, update directory listing droppng
1234 references to intl/ and mmalloc/.
1235 * PROBLEMS: Refer to 6.3 not 6.2.
1237 * PROBLEMS: Delete no-longer applicable problems.
1239 2004-11-07 Andrew Cagney <cagney@redhat.com>
1240 Daniel Jacobowitz <dan@debian.org>
1241 Roland McGrath <roland@redhat.com>
1243 * Makefile.in (symfile-mem.o): Update dependencies.
1244 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1245 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1246 * inf-ptrace.c (inf_ptrace_attach): Call
1247 observer_notify_inferior_created.
1248 * inftarg.c (child_attach): Likewise.
1249 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1250 (symbol_file_add_from_memory): Take NAME argument. Use it for
1251 the new BFD's filename.
1252 (add_symbol_file_from_memory_command): Update call to
1253 symbol_file_add_from_memory.
1254 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1255 (symbol_file_add_from_memory_wrapper): New.
1256 (_initialize_symfile_mem): Register add_vsyscall_page as an
1257 inferior_created observer.
1259 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1261 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1262 fetch_inferior_registers. Make static.
1263 (m68kbsd_store_inferior_registers): Rename from
1264 store_inferior_registers. Make static.
1265 (_initialize_m68kbsd_nat): Construct and add target vector.
1266 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1267 inftarg.o. Add inf-ptrace.o.
1268 (NAT_FILE): Set to tm-solib.h.
1269 (LOADLIBES): New variable.
1270 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1271 inftarg.o. Add inf-ptrace.o.
1272 (NAT_FILE): Delete variable.
1273 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1274 inftarg.o. Add inf-ptrace.o.
1275 (NAT_FILE): Set to tm-solib.h.
1276 * config/m68k/nm-nbsdaout.h: Remove file.
1278 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1280 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1281 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1282 (dwarf2_signal_frame_unwind): New.
1283 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1284 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1286 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1288 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1290 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1291 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1292 to only include the structure members we actually need.
1293 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1294 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1295 only include the structure members we actually need.
1296 (mipsnbsd_init_abi): Update.
1298 * mips64obsd-nat.c: Include "mips-tdep.h".
1299 (MIPS64OBSD_NUM_REGS): Remove define.
1300 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1301 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1302 floating-point registers correctly.
1303 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1305 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1307 (mips64obsd_sigframe_init): New function.
1308 (mips64obsd_sigframe): New variable.
1309 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1311 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1313 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1315 * alpha-mdebug-tdep.c: #include mdebugread.h.
1316 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1317 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1319 2004-11-05 Andrew Cagney <cagney@gnu.org>
1321 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1322 CFI and the init_reg method leave the register unspecified.
1323 Include the register name in the "Incomplete CFI data" complaint.
1324 Supress leading zeros in the address.
1326 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1328 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1329 skipping a personality routine in a CIE augmentation.
1331 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1333 * defs.h (fatal, vfatal): New function prototypes.
1334 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1336 (backtrace_command): Change to call backtrace_command_stub via
1337 catch_errors instead of calling backtrace_command_1 directly.
1338 (backtrace_full_command): Ditto.
1339 * utils.c (error_stream_1): New static function.
1340 (verror): Change to call error_stream_1 instead of error_stream.
1341 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1342 (vfatal, fatal): New functions.
1344 2004-11-05 Andrew Cagney <cagney@gnu.org>
1346 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1347 when not using selected frame.
1349 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1351 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1352 personality routine in a CIE augmentation.
1354 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1356 * stack.c (set_current_sal_from_frame): New function.
1357 (print_args_stub): Use it.
1358 (print_frame_info): Don't set sal here.
1360 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1362 * dwarf2-frame.c (read_encoded_value): Change type of third
1363 argument to `unsigned char *'. Add support for LEB128 encodings.
1365 2004-11-04 Jim Blandy <jimb@redhat.com>
1367 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1368 prevent cross-objfile references.
1369 (make_cv_type): Doc fix. Don't create cross-objfile references,
1370 even for stub types.
1371 (replace_type): Add assertion to prevent cross-objfile references.
1372 (check_typedef): Never resolve a stub type by copying over a type
1375 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1377 * Makefile.in (m32r-tdep.o): Update dependencies.
1378 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1379 ABI-specific overrides.
1381 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1383 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1384 unnecessary parallel execution bit.
1385 (m32r_memory_remove_breakpoint): Ditto.
1386 (m32r_breakpoint_from_pc): Update.
1388 2004-11-03 Randolph Chung <tausq@debian.org>
1390 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1391 frame_func_unwind to locate the unwind entry.
1392 (hppa_frame_this_id): Likewise.
1394 2004-11-03 Andrew Cagney <cagney@gnu.org>
1396 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1397 packet, obsolete configurations, end-of-life deprecated_registers.
1399 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1401 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1402 encodings as well as unsigned encodings.
1404 2004-11-02 Andrew Cagney <cagney@gnu.org>
1406 * value.h (COERCE_VARYING_ARRAY): Delete.
1407 * valops.c (value_cast, value_slice): Delete use.
1408 * valarith.c (value_subscript, value_concat): Delete use.
1410 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1412 * NEWS: GDB understands GNAT Ada.
1414 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1416 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1417 (amd64-sol2-tdep.o): Add dependencies.
1418 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1419 config/i386/sol2-64.mt: New files.
1420 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1421 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1422 (supply_gregset): Correct order of arguments to
1423 amd64_supply_native_gregset.
1424 (fill_gregset): Correct order of arguments to
1425 amd64_collect_native_gregset.
1426 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1427 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1428 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1429 for definition of NEW_PROC_API.
1430 * configure: Regenerate.
1432 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1434 * MAINTAINERS (Write After Approval): Add myself.
1436 2004-11-01 Andrew Cagney <cagney@gnu.org>
1438 * configure.tgt: Mark d10v-*-* as obsolete.
1439 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1441 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1443 * values.c (modify_field): Correct handling of bit-fields that
1444 don't fit in 32 bits. Use unsigned operations throughout and
1445 simplify the code a bit. Document preconditions.
1447 2004-10-31 Andrew Cagney <cagney@gnu.org>
1449 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1450 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1451 (in_plt_section): Delete.
1453 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1454 (mips_gdbarch_init): Do not set same.
1456 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1457 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1459 * gdbarch.sh (in_solib_call_trampoline): Delete.
1460 * gdbarch.h, gdbarch.c: Re-generate.
1462 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1463 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1464 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1465 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1466 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1468 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1470 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1471 (mipsnbsd_fetch_inferior_registers): Rename from
1472 fetch_inferior_registers. Make static.
1473 (mipsnbsd_store_inferior_registers): Rename from
1474 store_inferior_registers. Make static.
1475 (_initialize_mipsnbsd_nat): New function and prototype.
1476 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1477 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1478 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1481 2004-10-31 Andrew Cagney <cagney@gnu.org>
1483 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1484 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1485 delete corresponding unused function.
1486 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1487 in_solib_call_trampoline.
1488 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1489 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1490 * config/mips/tm-nbsd.h: Ditto.
1491 * config/arm/tm-linux.h: Ditto.
1492 * config/mips/tm-linux.h: Ditto.
1494 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1495 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1496 in_solib_call_trampoline, delete corresponding unused function.
1497 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1498 (vaxnbsd_aout_init_abi): Ditto.
1499 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1500 (sparc32nbsd_aout_init_abi): Ditto.
1501 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1502 (ppc_linux_init_abi): Ditto.
1503 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1504 (ns32knbsd_init_abi_aout): Ditto.
1505 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1506 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1507 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1508 (m68kbsd_aout_init_abi): Ditto.
1509 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1510 (i386_cygwin_init_abi): Ditto.
1511 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1512 (i386bsd_init_abi): Ditto.
1514 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1515 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1516 isn't used by this architecture.
1517 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1518 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1519 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1520 * s390-tdep.c (s390_gdbarch_init): Ditto.
1521 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1522 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1523 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1524 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1525 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1526 * amd64-tdep.c (amd64_init_abi): Ditto.
1528 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1529 in_solib_call_trampoline to its default value of
1530 generic_in_solib_call_trampoline.
1531 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1532 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1533 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1534 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1535 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1536 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1538 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1540 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1542 * config/mips/tm-mips.h: Delete file.
1543 * remote-mips.c: Delete tm-mips.h from comment.
1544 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1545 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1546 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1547 * config/mips/tm-linux.h: Don't include tm-mips.h.
1548 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1549 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1550 * config/mips/tm-wince.h: Don't include.
1552 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1553 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1554 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1555 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1557 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1558 * mdebugread.c (ecoff_relocate_efi): Delete function.
1559 * objfiles.c (objfile_relocate): Delete #ifdef
1560 MDEBUG_EFI_SYMBOL_NAME code.
1562 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1563 Andrew Cagney <cagney@gnu.org>
1565 * gdbarch.sh (single_step_through_delay): Add.
1566 * gdbarch.h, gdbarch.c: Re-generate.
1567 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1568 (mips_step_skips_delay): Delete.
1569 * mips-tdep.c (mips_single_step_through_delay): Replace
1570 mips_step_skips_delay.
1571 (mips_gdbarch_init): Set single_step_through_delay.
1572 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1574 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1576 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1577 from TRAMP_FRAME frame type.
1579 2004-10-31 Andrew Cagney <cagney@gnu.org>
1581 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1583 * mips-tdep.c (mips_ignore_helper): Delete.
1584 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1585 * infrun.c (handle_inferior_event): Delete #ifdef
1586 DEPRECATED_IGNORE_HELPER_CALL code.
1588 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1590 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1592 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1593 (fill_fpregset): Do not compile for 64-bit systems.
1594 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1595 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1596 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1598 2004-10-30 Andrew Cagney <cagney@gnu.org>
1600 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1601 (struct mdebug_extra_func_info): Define.
1602 * config/alpha/tm-alpha.h: Delete same.
1603 * config/mips/tm-mips.h: Delete same.
1604 * mdebugread.c: Delete same.
1605 * Makefile.in: Update dependencies.
1606 * mips-mdebug-tdep.c: Include "mdebugread.h".
1608 * objfiles.c: Include "mdebugread.h".
1609 * mdebugread.c: Include "mdebugread.h".
1610 (ecoff_relocate_cfi): Delete.
1611 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1612 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1613 * mdebugread.h (ecoff_relocate_efi): New file.
1614 * Makefile.in: Update dependencies.
1616 * mips-tdep.c (struct frame_extra_info): Delete.
1617 (temp_proc_desc): Delete.
1619 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1620 MIPS_EFI_SYMBOL_NAME.
1621 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1622 (struct mdebug_extra_func_info): Replace struct
1623 alpha_extra_func_info and alpha_extra_func_info_t.
1624 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1625 MIPS_EFI_SYMBOL_NAME.
1626 (struct mdebug_extra_func_info): Replace struct
1627 alpha_extra_func_info and alpha_extra_func_info_t.
1628 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1629 * mdebugread.c, alpha-mdebug-tdep.c:
1631 Suggested by Mark Kettenis.
1632 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1633 fields frame_adjust and high_addr.
1634 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1635 (non_heuristic_proc_desc): Delete references.
1637 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1638 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1639 * mips-tdep.c: Update.
1641 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1642 (MIPS_LAST_EMBED_REGNUM): Add.
1643 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1644 (LAST_EMBED_REGNUM): Delete.
1645 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1647 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1648 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1649 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1650 * mips-linux-nat.c: Update.
1652 * mips-tdep.h: Add comments on registers.
1653 (MIPS_UNUSED_REGNUM): Define.
1654 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1655 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1656 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1657 * mips-linux-nat.c, remote-mips.c: Update.
1659 * config/mips/tm-mips.h (t_insn): Delete.
1660 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1661 Replace t_insn with ULONGEST.
1663 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1665 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1666 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1667 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1668 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1669 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1670 (mipsnbsd_core_osabi_sniffer): New function.
1671 (mipsnbsd_init_abi): Set regset_from_core_section.
1672 (_initialize_mipsnbsd_tdep): Remove calls to
1673 deprecated_add_core_fns.
1674 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1675 (mipsnbsd_regset_from_core_section): New functions.
1676 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1677 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1679 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1680 Remove optimization for DEPRECATED_FP_REGNUM.
1682 2004-10-30 Andrew Cagney <cagney@gnu.org>
1684 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1685 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1686 (alpha_setup_arbitrary_frame): Delete.
1687 * mips-tdep.c (setup_arbitrary_frame): Delete.
1688 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1689 (setup_arbitrary_frame): Delete.
1690 * stack.c (parse_frame_specification_1): When specified, call
1691 create_new_frame with two parameters. Delete #ifdef
1692 SETUP_ARBITRARY_FRAME.
1694 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1695 (MIPS_INSTLEN): Delete.
1696 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1697 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1698 * remote-mips.c, mips-tdep.c: Update.
1700 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1701 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1702 * mips-tdep.c (mips_mdebug_frame_cache)
1703 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1704 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1705 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1706 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1707 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1708 (mips_gdbarch_init): Do not append mdebug sniffers.
1709 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1710 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1711 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1712 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1713 * Makefile.in: Update dependencies.
1715 * mips-tdep.h (mips_abi_regsize): Declare.
1716 * mips-tdep.c (mips_abi_regsize): Make non-static.
1718 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1719 (make_mips16_addr): Delete.
1721 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1723 * i386-sol2-nat.c: New file.
1724 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1726 (i386-sol2-nat.o): Update dependencies.
1727 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1730 2004-10-30 Andrew Cagney <cagney@gnu.org>
1732 Total breakage identified by Joel Brobecker.
1733 * mips-tdep.c (after_prologue): Delete.
1734 (mips_skip_prologue): Use skip_prologue_using_sal.
1735 (heuristic_proc_desc): Delete, unused.
1737 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1739 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1740 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1741 Cleanup coding style.
1743 2004-10-30 Andrew Cagney <cagney@gnu.org>
1745 * mips-tdep.h (mips_pc_is_mips16): Declare.
1746 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1747 non-static. Update calls.
1749 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1750 * command.h (add_setshow_enum_cmd): Declare.
1751 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1753 * mips-tdep.c (_initialize_mips_tdep): Use
1754 add_setshow_zinteger_cmd.
1756 * mips-tdep.c (mips_eabi_extract_return_value)
1757 (mips_o64_extract_return_value, mips_o64_store_return_value)
1758 (return_value_location, mips_eabi_reg_struct_has_addr)
1759 (mips_eabi_use_struct_convention)
1760 (mips_eabi_store_return_value): Delete.
1761 (mips_eabi_store_return_value): New function.
1762 (mips_eabi_return_value): New function.
1763 (mips_gdbarch_init): For O64 and EABI, delete
1764 extract_return_value, store_return_value, use_struct_convention
1765 and reg_struct_has_addr, add return_value.
1767 * mips-tdep.c (read_signed_register): Use
1768 regcache_cooked_read_signed.
1770 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1772 * mipsread.c: Cleanup coding style.
1773 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1774 (mipscoff_symfile_finish): Remove prototypes.
1776 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1778 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1779 (mips_mdebug_frame_cache, mips16_scan_prologue)
1780 (mips32_scan_prologue, mips_stub_frame_cache)
1781 (heuristic_proc_start, heuristic_proc_desc)
1782 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1783 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1784 (mips_o32_return_value, mips_o64_push_dummy_call)
1785 (mips_step_skips_delay, mips_skip_trampoline_code)
1786 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1787 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1788 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1789 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1790 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1791 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1792 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1793 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1794 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1795 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1797 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1798 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1800 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1802 * mipsnbsd-nat.c: Include "mips-tdep.h".
1803 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1804 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1806 2004-10-29 Andrew Cagney <cagney@gnu.org>
1808 * stack.c (parse_frame_specification_1): New function based on
1809 parse_frame_specification. Add message and selected_frame_p
1810 paramters. Truely always return non-NULL.
1811 (parse_frame_specification): Call parse_frame_specification_1.
1812 (frame_info): Update. Eliminate target_has_stack check.
1813 (select_frame_command): Update.
1815 2004-10-29 Andrew Cagney <cagney@gnu.org>
1817 * frame.h (get_selected_frame): Add message parameter.
1818 * frame.c (get_selected_frame): Add and use message parameter.
1819 * stack.c (current_frame_command, return_command, locals_info)
1820 (catch_info, args_info, up_silently_base, down_silently_base): Use
1821 get_selected_frame with an explicit message.
1822 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1823 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1824 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1825 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1826 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1827 * breakpoint.c: Update.
1829 2004-10-29 Andrew Cagney <cagney@gnu.org>
1831 * trad-frame.c (trad_frame_get_prev_register): Use
1832 frame_unwind_register instead of frame_register_unwind, do not
1833 recurse the register's location.
1834 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1835 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1836 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1837 * sh-tdep.c (sh_frame_prev_register): Ditto.
1838 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1839 * i386-tdep.c (i386_frame_prev_register): Ditto.
1840 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1841 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1843 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1845 * proc-events.c: Fix several coding-style issues. Consistently
1846 use #ifdef instead of #if defined().
1847 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1849 (_initialize_proc_events): New prototype.
1851 * proc-why.c: Fix several coding-style issues.
1852 (proc_prettyfprint_why): Use ARRAY_SIZE.
1854 2004-10-27 Jim Blandy <jimb@redhat.com>
1856 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1857 manner independent of the host byte order.
1859 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1861 * mips-tdep.c (id_delayed): Remove prototype.
1863 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1865 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1866 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1867 to enum with register numbers.
1868 (enum mips_insn_size): New enum.
1870 2004-10-26 Andrew Cagney <cagney@gnu.org>
1872 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1873 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1874 (mips_gdbarch_init): Update.
1875 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1877 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1878 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1879 IN_SOLIB_RETURN_TRAMPOLINE.
1880 * mips-tdep.c (mips_dump_tdep): Do not print
1881 IN_SOLIB_RETURN_TRAMPOLINE.
1882 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1883 (mips_gdbarch_init): Update.
1885 * mips-tdep.h (mips_software_single_step): Move to here ...
1886 * config/mips/tm-mips.h: ... from here.
1887 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1888 (SOFTWARE_SINGLE_STEP): Delete.
1889 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1891 2004-10-25 Andrew Cagney <cagney@gnu.org>
1893 * NEWS: Add Changes since GDB 6.3 section.
1895 2004-10-23 Andreas Schwab <schwab@suse.de>
1897 * ada-lang.c (grow_vect): Return the new array instead of
1898 expecting pointer to pointer to avoid violation of aliasing rules.
1899 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1901 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1903 * s390-tdep.c (enum pv_boolean): Remove.
1904 (pv_is_array_ref): Remove.
1905 (s390_on_stack): Remove.
1906 (S390_NUM_SPILL_SLOTS): Remove.
1907 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1908 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1909 (s390_store): Track all stores of orginal incoming registers to the
1910 stack constant offsets relative to the CFA, instead of only tracking
1911 stores into specific spill slots.
1912 (s390_load): Likewise.
1913 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1914 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1915 defined as call-saved by the ABI.
1916 (s390_push_dummy_call): Use bottom of dummy call argument save area
1917 as return value, not the top. Do not store to the called function's
1919 (s390_unwind_dummy_id): Adapt accordingly.
1921 2004-10-23 Andrew Cagney <cagney@gnu.org>
1923 * objfiles.h (struct objfile): Rename obj_private to
1924 deprecated_obj_private, sym_private to deprecated_sym_private, and
1925 sym_stab_info to deprecated_sym_stab_info.
1926 * gdb-stabs.h: Update.
1927 * elfread.c: Update.
1928 * dbxread.c: Update.
1929 * coffread.c: Update.
1930 * xcoffread.c: Update.
1931 * symfile.c: Update.
1932 * somread.c: Update.
1933 * nlmread.c: Update.
1934 * mdebugread.c: Update.
1936 * coffread.c: Update.
1938 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1940 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1941 * configure.host: Add mips64*-*-openbsd*.
1942 * configure.tgt: Add mips64*-*-openbsd*.
1943 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1945 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1946 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1948 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1950 * symtab.c (symbol_search_name): Minor reformatting.
1952 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1954 * symtab.h: Fix typo in comment.
1956 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1958 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1959 (dwarf_decode_line_header): Likewise.
1961 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1963 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1965 2004-10-19 Andrew Cagney <cagney@gnu.org>
1967 GDB 6.3 branch created.
1968 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1970 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1972 * dwarf2read.c (set_cu_language): Set language to Ada for
1973 DW_LANG_Ada83 and DW_LANG_Ada95.
1975 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1977 From Andreas Schwab <schwab@suse.de>:
1978 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1979 for xmalloc and xrealloc.
1981 2004-10-15 Andrew Cagney <cagney@gnu.org>
1983 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1984 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1985 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1986 Update dependencies.
1988 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1990 * ada-lang.c (ada_lookup_symbol): Correct comment.
1991 (ada_evaluate_subexp): Change error message for
1992 OP_FUNCALL case so as not to indicate an internal error.
1994 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1996 Committed by Paul Hilfinger.
1997 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1998 type sizes in XVE/XVU types, and emit a warning when that happens,
1999 instead of rounding up the size of the resulting type.
2000 Some minor reformatting.
2001 (ada_is_aligner_type): Do not consider a type as an aligner type
2002 if there is a corresponding XVS type as well.
2003 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
2004 have several levels of pointer indirection to the array.
2006 2004-10-15 Jerome Guitton <guitton@gnat.com>
2008 Committed by Paul Hilfinger.
2009 * ada-lang.c (check_size): New function.
2010 (coerce_unspec_val_to_type): call check_size to make sure
2011 that the object size is reasonable.
2012 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
2013 Implements the case when we get a reference when we evaluate
2014 the expression of one of the bounds of the slice.
2015 (ada_value_struct_elt): when a packed array field is
2016 a reference, use ada_coerce_ref to dereference it; use
2017 ada_value_ind only if it is a pointer.
2019 2004-10-15 Joel Brobecker <brobecker@gnat.com>
2021 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
2022 a bit to avoid the necessity of an advance declaration. Remove
2024 (set_reg_offset): Move implemenation up.
2025 (mips16_get_imm): Likewise.
2026 (mips16_scan_prologue): Likewise.
2027 (reset_saved_regs): Likewise.
2028 (mips32_scan_prologue): Likewise.
2030 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2032 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
2033 Remove sp as a parameter, compute it internally instead. Move
2034 prologue scanning limit from heuristic_proc_desc to here.
2035 (mips16_scan_prologue): Likewise.
2036 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
2037 by call to mips16_scan_prologue.
2038 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
2039 by call to mips32_scan_prologue.
2040 (heuristic_proc_desc): Remove code that's no longer necessary.
2041 Update calls to mips16_scan_prologue and mips32_scan_prologue.
2042 (mips_skip_prologue): Update calls to mips16_scan_prologue
2043 and mips32_scan_prologue.
2045 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2047 * mips-tdep.c (mips16_scan_prologue): Merge code from
2048 mips16_skip_prologue. Now return the address of the first
2049 instruction past the function prologue.
2050 (mips16_skip_prologue): Remove, no longer necessary.
2051 (mips_skip_prologue): Replace call to mips16_skip_prologue
2052 by call to mips16_scan_prologue.
2054 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2056 * mips-tdep.c (mips32_scan_prologue): Merge code from
2057 mips32_skip_prologue. Now return the address of the first
2058 instruction past the function prologue.
2059 (mips32_skip_prologue): Remove. No longer necessary.
2060 (mips16_skip_prologue): Add parameter end_pc instead of
2062 (mips_skip_prologue): Compute the upper limit for the
2063 prologue scanning. Update call to mips16_skip_prologue.
2064 Replace call to mips32_skip_prologue by call to
2065 mips32_scan_prologue.
2067 2004-10-14 Mark Kettenis <kettenis@gnu.org>
2069 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
2070 NetBSD system call stubs that store %rp in the ERP slot of the
2073 * source.c: Always define O_BINARY to 0 if not defined already.
2074 (openp): Unconditionally use O_BINARY.
2076 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
2077 * event-top.c (gdb_readline2): Likewise.
2079 2004-10-14 Orjan Friberg <orjanf@axis.com>
2081 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
2082 deprecated_add_core_fns which was removed by mistake.
2084 2004-10-13 Kevin Buettner <kevinb@redhat.com>
2086 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
2087 references to deprecated_registers[] with equivalent code.
2089 2004-10-13 Kevin Buettner <kevinb@redhat.com>
2091 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
2092 ``deprecated_registers'' with equivalent code. Use gdb_assert()
2093 instead of explicit test and print statement.
2095 2004-10-12 Mark Kettenis <kettenis@gnu.org>
2097 * sparc-nat.c: Include "inf-ptrace.h".
2098 (sparc_target): New function.
2099 * sparc-nat.h: Update copyright year.
2100 (sparc_target): New prototype.
2101 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
2102 (_initialize_sparcnbsd_nat): Construct and add target vector.
2103 * sparc64nbsd-nat.c: Include "target.h".
2104 (_initialize_sparc64nbsd_nat): Construct and add target vector.
2105 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
2106 Update dependencies.
2107 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
2108 inftarg.o, add inf-ptrace.o.
2109 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2110 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2111 (NAT_FILE): Set to nm-bsd.h.
2112 (LOADLIBES): New variable.
2113 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2114 infarg.o, add inf-ptrace.o.
2115 * config/sparc/nm-nbsdaout.h: Remove file.
2116 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2117 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2118 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2120 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2121 "fopen-same.h". Update comment.
2123 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2125 * i386gnu-nat.c: Include "gdb_string.h".
2126 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2127 registers when the floating-point state isn't initialized.
2128 * Makefile.in (i386gnu-nat.o): Update dependencies.
2130 2004-10-11 David Anderson <davea@sgi.com>
2132 * regcache.c (regcache_raw_read): Comment was missing "to".
2133 Extraneous ' removed.
2134 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2135 comment now describes use.
2137 2004-10-11 Orjan Friberg <orjanf@axis.com>
2139 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2140 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2141 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2142 (cris_sigtramp_frame_sniffer): New functions.
2143 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2144 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2145 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2146 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2147 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2149 (cris_version_update): Remove, replace with ...
2150 (set_cris_version): New function.
2151 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2152 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2153 (_initialize_cris_tdep): Remove CRIS mode command.
2154 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2155 cris-fpless-backtrace command.
2156 (cris_scan_prologue): Fix prologue scanning limit.
2157 (cris_register_type): Update to reflect actual registers.
2158 (cris_register_bytes_ok) Remove.
2159 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2160 Remove set_gdbarch_deprecated_register_size,
2161 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2163 2004-10-10 Andrew Cagney <cagney@gnu.org>
2165 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2168 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2170 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2172 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2174 * mips-tdep.c (mips16_scan_prologue): Renames
2175 mips16_heuristic_proc_desc. Update comment.
2176 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2177 (heuristic_proc_desc): Update calls to the 2 functions above.
2179 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2181 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2182 Update comments. Also immediately return empty cache when the start
2183 address of our function could not be found.
2184 (mips_insn32_frame_cache): Likewise.
2186 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2188 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2189 (mips_insn16_frame_cache): Pass frame cache in call to
2190 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2191 Remove code that became redundant as a consequence.
2192 (mips32_heuristic_proc_desc): No longer compute a fake
2193 procedure descriptor. Compute the full frame cache instead.
2194 Some minor comment reformatting.
2196 2004-10-10 Jim Blandy <jimb@redhat.com>
2198 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2199 reader, tracing bytecode stuff): Remove self.
2201 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2203 * sparc64-linux-tdep.c: Update copyright year. Don't include
2205 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2206 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2207 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2209 * sparc-linux-tdep.c: Update copyright year.
2210 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2211 to struct frame_info *. Use safe_frame_unwind_memory instead of
2212 deprecated_read_memory_nobpt.
2213 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2214 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2215 changed signature of sparc_linux_sigtramp_start.
2216 (sparc32_linux_pc_in_sigtramp): Remove function.
2217 (sparc32_linux_sigtramp_p): New function.
2218 (sparc32_linux_sigtramp_frame_sniffer): Use
2219 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2221 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2223 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2225 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2226 (decode_packed_array_type, value_subscript_packed)
2227 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2228 argument in call to lim_warning.
2230 * configure.in: Really disable the TUI if an enhanced curses
2231 library isn't found.
2232 * configure: Regenerate.
2234 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2236 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2237 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2238 * config/i386/nm-nbsdaout.h: Remove file.
2239 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2240 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2241 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2242 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2243 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2244 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2245 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2246 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2247 (ldd, ld_un, ld_2): Remove defines.
2248 * config/i386/nm-obsd.h: Likewise.
2250 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2252 * ada-lex.l: Remove useless rule whose right-context clause
2253 causes unreferenced static function warning for yyrealloc.
2254 (ada_flex_use): Remove the artificial reference to yyrealloc.
2256 2004-10-08 Andrew Cagney <cagney@gnu.org>
2258 * target.h (struct target_ops): Rename to_xfer_memory to
2259 deprecated_xfer_memory.
2261 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2263 * win32-nat.c: Update.
2264 * v850ice.c: Update.
2265 * uw-thread.c: Update.
2266 * thread-db.c: Update.
2267 * sol-thread.c: Update.
2269 * remote-vx.c: Update.
2270 * remote-st.c: Update.
2271 * remote-sim.c: Update.
2272 * remote-sds.c: Update.
2273 * remote-rdp.c: Update.
2274 * remote-rdi.c: Update.
2275 * remote-mips.c: Update.
2276 * remote-m32r-sdi.c: Update.
2277 * remote-e7000.c: Update.
2279 * ppc-bdm.c: Update.
2280 * nto-procfs.c: Update.
2281 * monitor.c: Update.
2282 * linux-nat.c: Update.
2283 * inftarg.c: Update.
2284 * hpux-thread.c: Update.
2285 * go32-nat.c: Update.
2286 * gnu-nat.c: Update.
2288 * corelow.c: Update.
2289 * bsd-kvm.c: Update.
2290 * aix-thread.c: Update.
2292 2004-10-08 Andrew Cagney <cagney@gnu.org>
2294 * target.c (debug_target): Move to near start of file.
2295 (target_stopped_data_address_p): Re-org logic, add casts.
2297 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2299 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2300 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2301 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2302 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2305 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2307 * target.h (to_stopped_data_address): Change prototype to
2308 take a CORE_ADDR pointer and return an int.
2309 * target.c (update_current_target): Change to_stopped_data_address
2310 to match new prototype.
2311 (debug_to_stopped_data_address): Change appropriately.
2312 * breakpoint.c (bpstat_stop_status): Change call to
2313 target_stopped_data_address to use new prototype.
2314 * frv-tdep.c (frv_have_stopped_data_address): New function.
2315 (frv_stopped_data_address): Change to new prototype and
2317 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2318 prototype and functionality.
2319 (ia64_stopped_by_watchpoint): New function.
2320 * i386-nat.c (i386_stopped_data_address): Change to new
2321 prototype and functionality.
2322 (i386_stopped_by_watchpoint): New function.
2323 * remote.c (remote_stopped_data_address): Change to new prototype
2325 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2326 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2327 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2328 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2329 new i386_stopped_by_watchpoint function.
2330 (i386_stopped_by_watchpoint): New prototype.
2331 (i386_stoppped_data_address): Change to new prototype.
2332 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2333 new ia64_stopped_by_watchpoint function.
2334 (ia64_stopped_by_watchpoint): New prototype.
2335 (ia64_stopped_data_address): Ditto.
2337 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2339 * ada-typeprint.c (ada_print_type): Use int_string for printing
2340 modulus of modular type.
2341 * ada-lang.h (ada_modulus): Change return type to unsigned.
2342 * ada-lang.c (ada_language_arch_info): Correct type of
2344 (ada_modulus): Return unsigned result.
2345 (ada_lookup_symbol): Remove user disambiguation and modify comment
2348 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2350 Committed by Paul Hilfinger.
2351 * ada-lang.c (decode_packed_array): On big-endian targets,
2352 left-justify the value if it comes with a modular type.
2354 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2356 Committed by Paul Hilfinger.
2357 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2358 (is_name_suffix): Add support for "___JM" suffixes.
2359 (ada_check_typedef): Renames ada_completed_type.
2360 Update all users of CHECK_TYPEDEF, check_typedef, and
2361 ada_complete_type to call ada_check_typedef.
2362 * ada-typeprint.c: Likewise.
2363 * ada-valprint.c: Likewise.
2365 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2367 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2369 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2371 * MAINTAINERS: Update e-mail address.
2373 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2375 From Maciej W. Rozycki <macro@mips.com>:
2376 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2377 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2379 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2381 * m32r-tdep.c (decode_prologue): Support functions written
2382 in assembler language. Recognize trap instructions as the
2384 (m32r_frame_unwind_cache): Ditto.
2385 (m32r_skip_prologue): Extend search limit. Quit analyzing
2386 prologue if pc's location is not readable.
2388 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2390 * Makefile.in (.l.c): Do conversions of names of alloc and free
2391 functions that are done for .y.c files, plus special one
2392 for yy_flex_realloc. Also, correct missing-file tests here.
2393 * ada-lex.l (malloc, free): Remove macros.
2394 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2396 (ada_flex_use): Dummy definition to remove warnings about unused
2398 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2399 to suppress warning.
2401 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2403 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2405 (sh_return_value_fpu): Ditto for CPUs with FPU.
2406 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2407 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2408 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2409 RETURN_VALUE functions.
2411 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2413 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2414 (sh_pseudo_register_write): Ditto.
2416 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2418 * sh-tdep.c (IS_MACL_STS): New define.
2420 (IS_MACL_LDS): Ditto.
2421 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2422 instructions in prologue.
2423 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2424 instructions in epilogue.
2426 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2428 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2429 (sh_sh_register_name): Add eight empty register names.
2430 (sh_sh3_register_name): Ditto.
2431 (sh_sh3e_register_name): Ditto.
2432 (sh_sh2e_register_name): Ditto.
2433 (sh_sh2a_register_name): New function, defining SH2A register set.
2434 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2436 (sh_sh_dsp_register_name): Add eight empty register names.
2437 (sh_sh3_dsp_register_name): Ditto.
2438 (sh_sh4_register_name): Ditto.
2439 (sh_sh4_nofpu_register_name): Ditto.
2440 (sh_sh4al_dsp_register_name): Ditto.
2441 (sh2a_show_regs): New function.
2442 (sh2a_nofpu_show_regs): New function.
2443 (sh_sh2a_register_type): New function.
2444 (do_bank_register_info): New function.
2445 (sh_print_pseudo_register): Call do_bank_register_info.
2446 Call sh_print_pseudo_register for valid "bank" register.
2447 (sh_sh2a_register_sim_regno): New function.
2448 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2449 Increment pseudo register count by one for all sh variants with
2450 pseudo registers to accomodate pseudo bank register.
2451 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2452 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2453 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2454 Increment pseudo register numbers.
2456 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2458 * dwarf2read.c (read_subroutine_type): Call make_function_type
2459 instead of lookup_function_type.
2461 2004-10-05 Jim Blandy <jimb@redhat.com>
2463 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2464 (Previous change missed some uses.)
2466 2004-10-05 Andrew Cagney <cagney@gnu.org>
2468 * target.h (deprecated_child_ops): Rename child_ops.
2469 * wince.c: Update copyright. Rename child_ops.
2470 * win32-nat.c: Rename child_ops.
2471 * target.c: Rename child_ops.
2472 * rs6000-nat.c: Rename child_ops.
2473 * linux-nat.c: Rename child_ops.
2474 * infttrace.c: Rename child_ops.
2475 * inftarg.c: Rename child_ops.
2476 * infptrace.c: Rename child_ops.
2477 * hppah-nat.c: Update copyright. Rename child_ops.
2478 * hpux-thread.c: Update copyright. Rename child_ops.
2480 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2482 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2484 2004-10-05 Andrew Cagney <cagney@gnu.org>
2486 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2488 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2490 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2491 (die_ref_table): Remove.
2492 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2493 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2494 the usage of this type.
2495 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2496 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2497 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2498 (dwarf2_create_include_psymtab): Update comment.
2499 (find_partial_die): Remove third argument. Remove unreachable call
2501 (dwarf2_find_containing_comp_unit): Update comments. Change one
2502 assertion to an error. Remove an unreachable error.
2503 (dwarf2_find_comp_unit): Update comments.
2504 (type_at_offset): Remove dead code.
2505 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2506 (store_in_ref_table): Add CU argument.
2507 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2508 inter-compilation-unit references.
2509 (load_full_comp_unit, process_full_comp_unit): New functions, based
2510 on psymtab_to_symtab_1.
2511 (psymtab_to_symtab_1): Use them.
2512 (dwarf2_add_dependence): New function.
2513 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2514 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2515 (partial_die_parent_scope, guess_structure_name): Update for changes
2516 to find_partial_die.
2517 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2518 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2519 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2520 (read_die_and_children): Update call to store_in_ref_table.
2521 (do_free_die_list_cleanup): Remove.
2522 (fixup_partial_die): Update for changes to find_partial_die.
2523 (read_full_die): Handle queueing absolute references.
2524 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2525 (dwarf2_attr, die_specification, die_type)
2526 (die_containing_type, dwarf2_extension): Update calls to
2528 (dump_die): Update DW_FORM_ref* handling.
2529 (dwarf2_get_ref_die_offset): Likewise.
2530 (free_one_comp_unit): Release the dies list.
2531 (dwarf2_mark_helper): New function.
2532 (dwarf2_mark): Use it.
2534 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2536 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2537 when writing to memory.
2539 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2541 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2542 (m32r_extract_struct_value_address): Delete function.
2543 (m32r_return_value): New function.
2544 (m32r_gdbarch_init): Instead of store_return_value,
2545 extract_return_value, deprecated_extract_struct_value_address
2546 and deprecated_use_struct_convention, set return_value.
2548 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2550 * dwarf2read.c (read_subrange_type): Add comment for variable
2553 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2555 * Makefile.in (.l.c): Modify rule for compatibility with recent
2556 versions of flex, and remove most command-line options.
2557 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2560 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2562 Turn on initial Ada support (mainly expression evaluation).
2564 * Makefile.in (SFILES): Remove ada-tasks.c.
2565 (HFILES_NO_SRCDIR): Add ada-lang.h.
2566 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2567 (YYOBJ): Add ada-exp.o.
2568 (rule .l.c): Generalize to not mention ada.
2569 * symtab.c: Include ada-lang.h.
2570 (symbol_natural_name, symbol_demangled_name)
2571 (symbol_search_name): Add Ada case.
2573 2004-10-01 Andrew Cagney <cagney@gnu.org>
2575 * Makefile.in (COMMON_OBS): Add inf-child.o.
2576 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2577 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2578 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2579 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2580 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2581 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2582 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2583 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2584 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2585 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2586 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2587 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2588 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2590 * target.c (xfer_using_stratum): Change return type to LONGEST.
2591 On each iteration offset, readbuf and writebuf.
2592 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2593 partial_length, and read/modify/write predicate, update comments.
2594 Pass buffer.word to ptrace write.
2596 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2598 * symfile.c (init_filename_language_table): Add extensions for
2600 * defs.h (enum language): Add language_ada.
2601 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2602 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2603 (add_symbols_from_enclosing_procs): Make a no-op for now.
2604 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2605 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2606 (find_line_in_linetable, find_next_line_in_linetable)
2607 (read_all_symtabs, is_plausible_func_for_line)
2608 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2609 (is_runtime_sym_defined, check_size): Remove declaration.
2610 (function_name_from_pc, ada_translate_error_message)
2611 (ada_lookup_minimal_symbol): Remove definition.
2612 (ada_add_block_symbols): Remove useless label.
2613 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2614 useless declaration.
2615 (ada_is_exception_sym): Likewise.
2617 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2619 Add m32r-linux support.
2620 * configure.tgt: Add m32r*-*-linux*.
2621 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2622 and m32r-linux-tdep.c.
2623 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2624 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2625 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2627 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2628 config/m32r/linux.mh, config/m32r/linux.mt,
2629 config/m32r/nm-linux.h: New files.
2631 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2633 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2634 (mips32_fetch_instruction): Remove, unused.
2636 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2638 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2639 conditions that will always be true.
2641 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2643 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2644 (vaxbsd_fetch_inferior_registers): Rename from
2645 fetch_inferior_registers. Make static.
2646 (vaxbsd_store_inferior_registers): Rename from
2647 store_inferior_registers. Make static.
2648 (_initialize_vaxbsd_nat): Construct and add target vector.
2649 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2650 inftarg.o. Add inf-child.o and inf-ptrace.o.
2651 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2652 inftarg.o. Add inf-child.o and inf-ptrace.o.
2654 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2655 inftarg.o. Add inf-child.o and inf-ptrace.o.
2657 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2659 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2660 (m88kbsd_fetch_inferior_registers): Rename from
2661 fetch_inferior_registers. Make static.
2662 (m88kbsd_store_inferior_registers): Rename from
2663 store_inferior_registers. Make static.
2664 (_initialize_m88kbsd_nat): New prototype and function.
2665 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2666 inftarg.o. Add inf-child.o and inf-ptrace.o.
2668 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2670 2004-09-30 Andrew Cagney <cagney@gnu.org>
2672 * target.c (target_xfer_partial): New function.
2673 (target_read_memory_partial, target_write_memory_partial)
2674 (default_xfer_partial, target_read_partial, target_write_partial)
2675 (xfer_using_stratum): Use.
2676 (debug_to_xfer_partial): Delete function.
2677 (setup_target_debug): Do not override to_xfer_partial.
2679 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2681 * fork-child.c: Update copyright year. Fix coding style.
2683 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2685 * defs.h (msavestring, mstrsave): Remove prototypes.
2686 * utils.c (msavestring, mstrsave): Remove functions.
2687 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2688 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2690 * source.c (find_and_open_source): Use xstrdup instead of
2693 2004-09-30 Andrew Cagney <cagney@gnu.org>
2695 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2696 (inf_ptrace_xfer_memory): Delete.
2697 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2698 (target_read_memory, target_write_memory): Use xfer_using_stratum
2699 when target_xfer_partial_p.
2700 (debug_target): Move to start of file.
2701 (target_read_memory_partial, target_write_memory_partial): Use
2702 to_xfer_partial when target_xfer_partial_p.
2704 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2705 inf_ptrace_xfer_memory with equivalent code.
2706 * inftarg.c (child_xfer_partial): When performing a write, pass
2707 writebuf to child_xfer_memory.
2709 * target.c (target_read_string): Use target_read_memory instead of
2712 2004-09-29 Andrew Cagney <cagney@gnu.org>
2714 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2715 the address of status.
2717 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2718 (kill_inferior): Inline ptrace_wait call.
2719 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2720 * inftarg.c (child_wait): Inline ptrace_wait call.
2722 * target.h (struct target_ops): Delete field to_post_wait.
2723 (target_post_wait): Delete macro.
2724 (child_post_wait): Delete declaration.
2725 * target.c (update_current_target, update_current_target)
2726 (debug_to_post_wait, setup_target_debug): Delete functions and
2728 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2729 * inftarg.c (child_post_wait): Delete.
2730 (init_child_ops): Do not set to_post_wait.
2731 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2732 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2733 * inf-child.c (inf_child_post_wait): Delete.
2734 (inf_child_target): Do not set to_post_wait.
2735 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2736 (inf_ptrace_target): Do not set to_post_wait.
2738 * wince.c (child_ops): Delete.
2739 * win32-nat.c (child_ops): Delete.
2741 * inftarg.c (inftarg_set_find_memory_regions)
2742 (inftarg_set_make_corefile_notes): Delete functions.
2743 (_initialize_linux_nat): Inline calls.
2745 * target.h (child_ops): Declare.
2746 * inftarg.c (child_ops): Move from here ...
2747 * target.c (child_ops): ... to here.
2748 * wince.c (child_ops): Delete extern declaration.
2749 * win32-nat.c (child_ops): Delete extern declaration.
2750 * linux-nat.c (child_ops): Delete extern declaration.
2751 * hpux-thread.c (child_ops): Delete extern declaration.
2753 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2755 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2757 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2759 * configure.in: Only set host_makefile_frag when building a native
2761 * configure: Regenerate.
2763 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2766 2004-09-28 Andrew Cagney <cagney@gnu.org>
2768 Problem identified by Paul Hilfinger.
2769 * Makefile.in (ada_lex_c): Define.
2770 (ada-lex.o): Delete rule.
2772 * linux-proc.c: Delete file.
2773 * Makefile.in: Update.
2774 * config/sparc/linux64.mh (NATDEPFILES):
2775 * config/sparc/linux.mh (NATDEPFILES): Update.
2776 * config/s390/s390.mh (NATDEPFILES): Update.
2777 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2778 * config/powerpc/linux.mh (NATDEPFILES): Update.
2779 * config/pa/linux.mh (NATDEPFILES): Update.
2780 * config/mips/linux.mh (NATDEPFILES): Update.
2781 * config/m68k/linux.mh (NATDEPFILES): Update.
2782 * config/ia64/linux.mh (NATDEPFILES): Update.
2783 * config/i386/linux64.mh (NATDEPFILES): Update.
2784 * config/i386/linux.mh (NATDEPFILES): Update.
2785 * config/arm/linux.mh (NATDEPFILES): Update.
2786 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2787 * linux-nat.c: Update copyright. Include <sys/param.h>,
2788 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2789 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2790 (O_LARGEFILE): Possibly define.
2791 (_initialize_linux_nat, linux_proc_pending_signals)
2792 (add_line_to_sigset, linux_proc_xfer_memory)
2793 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2794 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2795 (struct linux_corefile_thread_data)
2796 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2797 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2799 2004-09-16 Andrew Cagney <cagney@gnu.org>
2801 * lin-lwp.c: Delete file.
2802 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2803 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2804 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2805 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2806 (linux_nat_attach, detach_callback, linux_nat_detach)
2807 (resume_callback, resume_clear_callback, linux_nat_resume)
2808 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2809 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2810 (status_callback, running_callback, count_events_callback)
2811 (select_singlestep_lwp_callback, select_event_lwp_callback)
2812 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2813 (child_wait, stop_and_resume_callback, linux_nat_wait)
2814 (kill_callback, kill_wait_callback, linux_nat_kill)
2815 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2816 (linux_nat_xfer_memory, linux_nat_thread_alive)
2817 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2818 (_initialize_linux_nat): New functions.
2819 * Makefile.in: Update all dependencies.
2820 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2821 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2822 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2823 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2824 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2825 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2826 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2827 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2828 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2829 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2830 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2831 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2832 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2834 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2836 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2837 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2839 * configure.in: Don't comment out NATDEPFILES in the generated
2840 Makefile if NAT_FILE is unset.
2841 * configure: Regenerate.
2843 2004-09-27 Andrew Cagney <cagney@gnu.org>
2845 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2846 (insert_step_resume_breakpoint): Delete.
2847 (insert_step_resume_breakpoint_at_frame): New function.
2848 (insert_step_resume_breakpoint_at_sal): New function.
2849 (handle_inferior_event, step_into_function)
2850 (insert_step_resume_breakpoint): Simplify by using same.
2852 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2854 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2856 * fbsd-proc.c: Remove file.
2857 * Makefile.in (fbsd-proc.o): Remove dependency.
2859 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2862 * config/i386/nm-fbsd64.h: Remove file.
2863 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2865 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2867 * amd64-nat.h: Update copyright year.
2868 (amd64bsd_target): New prototype.
2869 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2870 (amd64bsd_target): New function.
2871 (amd64bsd_fetch_inferior_registers): Rename from
2872 fetch_inferior_registers. Make static.
2873 (amd64bsd_store_inferior_registers): Rename from
2874 store_inferior_registers. Make static.
2875 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2876 (_initialize_amd64fbsd_nat): Construct and add target vector.
2877 * amd64nbsd-nat.o: Include "target.h".
2878 (_initialize_amd64nbsd_nat): Construct and add target vector.
2879 * amd64obsd-nat.c: Include "target.h".
2880 (_initialize_amd64obsd_nat): Construct and add target vector.
2881 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2882 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2883 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2885 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2886 Remove infptrace.o and inftarg.o. Add inf-child.o and
2888 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2889 (amd64obsd-nat.o): Update dependencies.
2891 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2893 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2894 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2895 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2896 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2897 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2899 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2901 (inf_ptrace_detach): Inline detach call.
2903 * configure.in: Check for waddstr instead of mvwaddstr when
2904 searching for curses library. Check for wborder.
2905 * configure, config.in: Regenerate.
2906 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2909 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2911 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2913 Committed by Andrew Cagney.
2914 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2915 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2917 (fetch_register_using_p): Implement 'p' packet. Based on code by
2919 (remote_fetch_registers): Call fetch_register_using_p.
2920 (init_all_packet_configs, show_remote_cmd)
2921 (_initialize_remote): Add p-packet.
2923 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2925 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2926 instead of call_ptrace. Call wait directly instead of
2928 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2929 (inf_ptrace_wait): Inline ptrace_wait call.
2931 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2933 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2934 rolled back instead.
2936 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2938 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2939 the new argument order.
2941 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2943 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2944 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2945 (struct gdbarch_tdep): Remove.
2946 (struct xstormy16_frame_cache): New frame cache structure.
2947 (xstormy16_register_byte, xstormy16_register_raw_size)
2948 (xstormy16_reg_virtual_type, xstormy16_register_type)
2949 (xstormy16_push_arguments, xstormy16_push_return_address)
2950 (xstormy16_pop_frame, xstormy16_store_struct_return)
2951 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2952 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2953 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2954 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2955 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2956 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2957 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2958 (xstormy16_extract_return_value, xstormy16_store_return_value):
2959 Regcachify. Drop useless struct convention handling.
2960 (xstormy16_register_type, xstormy16_return_value)
2961 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2962 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2963 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2964 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2965 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2966 (xstormy16_unwind_dummy_id) : New functions.
2967 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2968 of xstormy16_scan_prologue.
2969 (xstormy16_frame_unwind): New frame_unwind structure.
2970 (xstormy16_frame_base): New frame_base structure.
2971 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2972 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2974 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2976 * language.c (language_gdbarch_post_init): Fix off-by one error.
2978 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2980 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2981 (struct dwarf2_offset_and_type): New.
2982 (set_die_type, reset_die_and_siblings_types, get_die_type)
2983 (offset_and_type_hash, offset_and_type_eq): New functions.
2984 (read_structure_type, read_enumeration_type, read_array_type)
2985 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2986 (read_tag_reference_type, read_tag_const_type)
2987 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2988 (read_typedef, read_base_type, read_subrange_type): Use
2991 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2993 * Makefile.in (dwarf2read.o): Update dependencies.
2994 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2995 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2997 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2998 mark, and has_form_ref_addr.
2999 (struct dwarf2_per_cu_data): New.
3000 (dwarf2_max_cache_age): New.
3001 (dwarf2_build_psymtabs_hard): Free cached compilation units
3002 after loading. Create and manage the list of compilation units.
3003 Remove unnecessary NULL initialization. Fix indentation.
3004 (psymtab_to_symtab_1): Initialize all of CU.
3005 (dwarf2_read_abbrevs): Set has_form_ref_addr.
3006 (find_partial_die): Use dwarf2_find_containing_comp_unit
3008 (free_stack_comp_unit): Update comments. Clear the per-cu
3009 pointer. Handle aging.
3010 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
3011 (age_cached_comp_units, free_one_cached_comp_unit)
3012 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
3013 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
3014 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
3015 (show_dwarf2_cmd): New.
3016 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
3017 and "maint show dwarf2 max-cache-age".
3018 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
3020 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
3023 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
3025 * dwarf2read.c (typename_concat): Change prototype to accept obstack
3026 and dwarf2_cu struct pointer as arguments. Change function to use
3027 obstack if provided and use dwarf2_cu to determine language-specific
3029 (partial_die_parent_scope): Change comment to include java. Use
3030 new version of typename_concat instead of obconcat.
3031 (partial_die_full_name): Use typename_concat.
3032 (read_namespace): Ditto.
3033 (read_enumeration_type): Use typename_concat instead of obconcat.
3034 (new_symbol): Ditto.
3035 (add_partial_symbol): Enhance tests for C++ to also test for Java.
3036 (guess_structure_name): Ditto.
3037 (read_subroutine_type): Ditto.
3038 (read_structure_type): Ditto.
3039 (is_vtable_name): Add Java support.
3040 (determine_class_name): Switch to new typename_concat call.
3041 (determine_prefix): Switch to new typename_concat call.
3042 * jv-exp.y (FuncStart): New pattern.
3043 (MethodInvocation): Add support for simple function calls. Change
3044 warning message for other forms of inferior call currently not
3046 * valarith.c (value_subscript): Treat an array with upper-bound
3047 of -1 as unknown size.
3049 2004-09-20 Daniel Jacobowitz <dan@debian.org>
3051 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
3052 (lookup_partial_symtab): Use symtab_to_fullname.
3054 2004-09-19 Jim Blandy <jimb@redhat.com>
3056 * minsyms.c (lookup_minimal_symbol): Doc fix.
3058 2004-09-20 Andrew Cagney <cagney@gnu.org>
3060 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
3062 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
3063 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
3065 * infptrace.c: Update.
3067 2004-09-19 Daniel Jacobowitz <dan@debian.org>
3069 * symtab.c (output_source_filename): Mark first argument as const.
3070 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
3071 for "info sources" output.
3073 2004-09-20 Mark Kettenis <kettenis@gnu.org>
3075 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
3076 <machine/vmparam.h>.
3077 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
3078 (register_u_addr): Remove prototype.
3080 2004-09-19 Mark Kettenis <kettenis@gnu.org>
3082 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
3083 (i386bsd_fetch_inferior_registers): Rename from
3084 fetch_inferior_registers. Make static.
3085 (i386bsd_store_inferior_registers): Rename from
3086 store_inferior_registers. Make static.
3087 (i386bsd_target): New function.
3088 * i386bsd-nat.h: New file.
3089 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
3091 (i386fbsd_resume): Rename from child_resume. Make static.
3092 (_initialize_i386fbsd_nat): Construct and add target vector.
3093 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
3094 (_initialize_i386nbsd_nat): Construct and add target vector.
3095 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
3097 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
3098 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
3099 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
3100 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
3101 (LOADLIBES): New variable.
3102 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
3103 inf-ptrace.o. Remove inftarg.o.
3104 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
3105 inf-ptrace.o. Remove inftarg.o.
3106 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
3107 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
3108 (LOADLIBES): New variable.
3109 * Makefile.in (i386bsd_nat_h): New variable.
3110 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3113 * sparc64nbsd-tdep.c: Include "objfiles.h".
3114 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3115 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3116 svr4_lp64_fetch_link_map_offsets.
3117 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
3119 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3120 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3121 svr4_lp64_fetch_link_map_offsets.
3122 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3125 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3126 * fbsd-nat.h: New file.
3127 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3128 (fbsd_nat_h): New variable.
3129 (fbsd-nat.o): New dependency.
3131 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3132 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3134 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3137 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3139 * ada-exp.y (type_int): New function to add layer of abstraction
3140 around references to expression types.
3142 (type_long_long): Ditto.
3143 (type_float): Ditto.
3144 (type_double): Ditto.
3145 (type_long_double): Ditto.
3147 (type_system_address): Ditto.
3148 (simple_exp): Use type_* functions in place of builtin_*
3151 (write_var_from_name): Ditto.
3152 (write_object_renaming): Ditto.
3153 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3155 (build_ada_types): Remove, replacing with...
3156 (ada_language_arch_info): New function to initialize primitive
3157 type vector in language_arch_info.
3158 (ada_array_length): Remove use of builtin_type_ada_int.
3159 (value_pos_atr): Ditto.
3160 (ada_evaluate_subexp): Ditto.
3161 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3162 builtin_type_ada_long_long, builtin_type_ada_char,
3163 builtin_type_ada_float, builtin_type_ada_double,
3164 builtin_type_ada_long_double, builtin_type_ada_natural,
3165 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3166 (ada_builtin_types): Remove.
3167 (ada_language_defn): Remove entries for la_builtin_type_vector and
3168 string_char_type and use ada_language_arch_info.
3169 (_initialize_ada_language): Do type-vector initialization along
3170 the lines of c-lang.c.
3171 (ada_create_fundamental_type): Break up line.
3172 (ada_dump_symtab): Remove unused function.
3173 (enum ada_primitive_types): Define.
3174 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3175 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3176 builtin_type_ada_float, builtin_type_ada_double,
3177 builtin_type_ada_long_double, builtin_type_ada_natural,
3178 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3179 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3180 (processInt): Ditto.
3181 (processReal): Ditto.
3182 (name_lookup): Ditto.
3183 * ada-typeprint.c (print_range): Use builtin_type_int, not
3184 builtin_type_ada_int.
3186 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3188 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3190 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3191 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3192 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3193 * configure.in: Improve checks for curses library by checking for
3194 mvwaddstr instead of initscr. Drop HP curses in favour of
3195 standard curses on HP-UX.
3196 * configure: Regenerated.
3198 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3200 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3201 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3202 Minor formatting changes.
3203 (empty_array): Slight rewrite for formatting.
3204 (emit_char,parse,ada_language_defn,build_ada_types,
3205 ada_is_exception_sym, _initialize_ada_language): Move
3207 (ada_dump_symtab): Remove unused definition.
3208 (ada_maybe_exception_partial_symbol): Remove unused definition.
3210 2004-09-16 Andrew Cagney <cagney@gnu.org>
3212 * inf-child.c: Include "gdb_string.h".
3213 (inf_child_core_file_to_sym_file): Delete.
3214 (inf_child_target): Set to_fetch_registers and to_store_registers.
3215 * inf-ptrace.c: Include "gdb_string.h".
3216 * Makefile.in: Update all dependencies.
3218 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3221 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3223 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3224 call to heuristic_proc_desc. Remove code that became redundant
3226 (read_next_frame_reg): Remove special case for SP_REGNUM.
3227 (set_reg_offset): Fix small typo.
3228 (reset_saved_regs): New procedure.
3229 (mips32_heuristic_proc_desc): No longer compute a fake
3230 procedure descriptor. Compute the full frame cache instead.
3231 Some minor comment reformatting.
3233 2004-09-14 Andrew Cagney <cagney@gnu.org>
3235 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3238 * thread-db.c (thread_db_new_objfile): Assume that there is a
3241 2004-09-13 Jim Blandy <jimb@redhat.com>
3243 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3244 so that its storage isn't referenced after its lifetime ends.
3246 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3247 and never assigned to. Delete it, and the 'if (use_buffer)'
3248 clauses. Delete 'raw_buffer', since it is now unused.
3250 2004-09-13 Andrew Cagney <cagney@gnu.org>
3252 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3253 * configure: Re-generate.
3254 * nlm/Makefile.in (TAGS): Update.
3255 * Makefile.in (TAGS): Update.
3256 * config/vax/nbsd.mt (TM_FILE): Update.
3257 * config/sparc/vxworks.mt (TM_FILE): Update.
3258 * config/sparc/sol2.mt (TM_FILE): Update.
3259 * config/sparc/sol2-64.mt (TM_FILE): Update.
3260 * config/sparc/obsd64.mt (TM_FILE): Update.
3261 * config/sparc/obsd.mt (TM_FILE): Update.
3262 * config/sparc/nbsd64.mt (TM_FILE): Update.
3263 * config/sparc/nbsd.mt (TM_FILE): Update.
3264 * config/sparc/linux64.mt (TM_FILE): Update.
3265 * config/sparc/linux.mt (TM_FILE): Update.
3266 * config/sparc/fbsd.mt (TM_FILE): Update.
3267 * config/sh/wince.mt (TM_FILE): Update.
3268 * config/sh/nbsd.mt (TM_FILE): Update.
3269 * config/sh/linux.mt (TM_FILE): Update.
3270 * config/sh/embed.mt (TM_FILE): Update.
3271 * config/s390/s390.mt (TM_FILE): Update.
3272 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3273 * config/rs6000/rs6000.mt (TM_FILE): Update.
3274 * config/rs6000/aix4.mt (TM_FILE): Update.
3275 * config/powerpc/vxworks.mt (TM_FILE): Update.
3276 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3277 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3278 * config/powerpc/obsd.mt (TM_FILE): Update.
3279 * config/powerpc/nbsd.mt (TM_FILE): Update.
3280 * config/powerpc/linux.mt (TM_FILE): Update.
3281 * config/powerpc/aix.mt (TM_FILE): Update.
3282 * config/pa/obsd.mt (TM_FILE): Update.
3283 * config/pa/linux.mt (TM_FILE): Update.
3284 * config/pa/hppahpux.mt (TM_FILE): Update.
3285 * config/pa/hppa64.mt (TM_FILE): Update.
3286 * config/pa/hppa.mt (TM_FILE): Update.
3287 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3288 * config/mips/wince.mt (TM_FILE): Update.
3289 * config/mips/vxmips.mt (TM_FILE): Update.
3290 * config/mips/nbsd.mt (TM_FILE): Update.
3291 * config/mips/linux.mt (TM_FILE): Update.
3292 * config/mips/irix6.mt (TM_FILE): Update.
3293 * config/mips/irix5.mt (TM_FILE): Update.
3294 * config/mips/embed.mt (TM_FILE): Update.
3295 * config/m68k/vxworks68.mt (TM_FILE): Update.
3296 * config/m68k/st2000.mt (TM_FILE): Update.
3297 * config/m68k/os68k.mt (TM_FILE): Update.
3298 * config/m68k/obsd.mt (TM_FILE): Update.
3299 * config/m68k/nbsd.mt (TM_FILE): Update.
3300 * config/m68k/monitor.mt (TM_FILE): Update.
3301 * config/m68k/linux.mt (TM_FILE): Update.
3302 * config/m68k/cisco.mt (TM_FILE): Update.
3303 * config/ia64/linux.mt (TM_FILE): Update.
3304 * config/ia64/aix.mt (TM_FILE): Update.
3305 * config/ia64/ia64.mt (TM_FILE): Update.
3306 * config/i386/vxworks.mt (TM_FILE): Update.
3307 * config/i386/obsd64.mt (TM_FILE): Update.
3308 * config/i386/obsd.mt (TM_FILE): Update.
3309 * config/i386/nto.mt (TM_FILE): Update.
3310 * config/i386/nbsd64.mt (TM_FILE): Update.
3311 * config/i386/nbsd.mt (TM_FILE): Update.
3312 * config/i386/linux64.mt (TM_FILE): Update.
3313 * config/i386/linux.mt (TM_FILE): Update.
3314 * config/i386/i386sol2.mt (TM_FILE): Update.
3315 * config/i386/i386lynx.mt (TM_FILE): Update.
3316 * config/i386/fbsd64.mt (TM_FILE): Update.
3317 * config/i386/fbsd.mt (TM_FILE): Update.
3318 * config/i386/cygwin.mt (TM_FILE): Update.
3319 * config/h8300/h8300.mt (TM_FILE): Update.
3320 * config/frv/frv.mt (TM_FILE): Update.
3321 * config/cris/cris.mt (TM_FILE): Update.
3322 * config/arm/wince.mt (TM_FILE): Update.
3323 * config/arm/nbsd.mt (TM_FILE): Update.
3324 * config/arm/linux.mt (TM_FILE): Update.
3325 * config/arm/embed.mt (TM_FILE): Update.
3326 * config/alpha/nbsd.mt (TM_FILE): Update.
3327 * config/alpha/fbsd.mt (TM_FILE): Update.
3328 * config/alpha/alpha.mt (TM_FILE): Update.
3329 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3330 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3332 Eliminate event_loop_p, always has the value 1.
3333 * defs.h (event_loop_p): Delete macro.
3334 * breakpoint.c (until_break_command): Simplify.
3335 * utils.c (prompt_for_continue): Simplify.
3336 * tracepoint.c (read_actions): Simplify.
3337 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3338 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3339 (set_prompt, init_main): Simplify.
3340 (init_signals, disconnect): Delete, unused.
3341 * remote.c (remote_async_resume)
3342 (extended_remote_async_create_inferior): Simplify.
3343 * mi/mi-interp.c (mi_input): Delete, unused.
3344 (mi_interpreter_resume, mi_command_loop): Simplify.
3345 * interps.c (current_interp_command_loop): Simplify.
3346 * infrun.c (proceed): Simplify.
3347 * infcmd.c (run_command, continue_command, step_1, jump_command)
3348 (until_command, advance_command, finish_command)
3349 (interrupt_target_command): Simplify.
3350 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3352 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3353 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3354 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3355 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3356 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3357 * mips-tdep.c (mips_dump_tdep): Do not print same.
3359 2004-09-12 Andrew Cagney <cagney@gnu.org>
3361 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3363 * Makefile.in (valprint.o): Delete explict rule.
3365 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3366 reported by Dave Anderson.
3368 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3370 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3372 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3373 Andrew Cagney <cagney@gnu.org>
3375 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3376 (mi_cmd_data_list_register_values)
3377 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3378 the register number computation.
3380 2004-09-12 Andrew Cagney <cagney@gnu.org>
3382 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3383 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3384 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3385 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3387 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3388 inf-ptrace.o and inf-child.o.
3389 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3390 * Makefile.in: Update dependencies.
3392 2004-09-11 Andrew Cagney <cagney@gnu.org>
3394 * language.c (hex_string, hex_string_custom): Move from here ...
3395 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3396 (CELLSIZE): Increase to 50.
3397 * language.h (hex_string, hex_string_custom): Move from here ...
3398 * defs.h: ... to here.
3399 * Makefile.in: Update all dependencies.
3401 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3403 * language.c (local_hex_format_custom): Remove.
3404 (local_hex_string): Rename to hex_string, use C format, and move to
3406 (local_hex_string_custom): Rename to hex_string_custom and change
3407 interface. Now uses C format. Move to utils.c
3408 (local_octal_format_custom): Remove.
3409 (local_decimal_format_custom): Remove.
3410 (unknown_language_defn): Remove language-specific number
3412 (auto_language_defn): Ditto.
3413 (local_language_defn): Ditto.
3414 * language.h (struct language_format_info): Delete declaration.
3415 (struct language_defn): Remove language_format_info fields
3416 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3417 (local_binary_format): Remove macro.
3418 (local_binary_format_prefix): Remove macro.
3419 (local_binary_format_specifier): Remove macro.
3420 (local_binary_format_suffix): Remove macro.
3421 (local_octal_format): Remove macro.
3422 (local_octal_format_prefix): Remove macro.
3423 (local_octal_format_specifier): Remove macro.
3424 (local_octal_format_suffix): Remove macro.
3425 (local_decimal_format): Remove macro.
3426 (local_decimal_format_prefix): Remove macro.
3427 (local_decimal_format_specifier): Remove macro.
3428 (local_decimal_format_suffix): Remove macro.
3429 (local_hex_format): Remove macro.
3430 (local_hex_format_prefix): Remove macro.
3431 (local_hex_format_specifier): Remove macro.
3432 (local_hex_format_suffix): Remove macro.
3433 (local_decimal_format_custom): Remove.
3434 (local_octal_format_custom): Remove.
3435 (local_hex_format_custom): Remove.
3436 (local_hex_string): Rename to hex_string and move to defs.h.
3437 (local_hex_string_custom): Rename to hex_string_custom, change
3438 interface, and move to defs.h.
3439 * utils.c: (int_string): New function.
3440 (hex_string): New function (from language.c).
3441 (hex_string_custom): New function (from language.c).
3442 (octal2str): New function.
3443 (decimal2str): Add width parameter.
3444 (paddr_u): Use new decimal2str interface.
3446 * defs.h (hex_string): Declare.
3447 (hex_string_custom): Declare.
3448 (int_string): Declare.
3449 * printcmd.c (print_scalar_formatted): Remove localized binary
3451 * valprint.c (print_longest): Use int_string.
3452 (print_floating): Use C hex format.
3453 (print_hex_chars): Ditto.
3454 (print_binary_chars): Remove language-specific formatting.
3455 (print_octal_chars): Use C octal format.
3456 (print_decimal_chars): Delocalize format.
3457 (print_decimal): Remove.
3458 * ada-lang.c (ada_language_defn): Remove language-specific number
3460 * p-lang.c (pascal_language_defn): Ditto.
3461 * c-lang.c (c_language_defn): Ditto.
3462 (cplus_language_defn): Ditto.
3463 (asm_language_defn): Ditto.
3464 (minimal_language_defn): Ditto.
3465 * f-lang.c (f_language_defn): Ditto.
3466 * jv-lang.c (java_language_defn): Ditto.
3467 * m2-lang.c (m2_language_defn): Ditto.
3468 * scm-lang.c (scm_language_defn): Ditto.
3469 * objc-lang.c (objc_language_defn): Ditto.
3470 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3472 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3473 * ui-out.c (ui_out_field_core_addr): Ditto.
3474 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3475 * exec.c (print_section_info): Ditto.
3476 * i387-tdep.c (print_i387_status_word): Ditto.
3477 (print_i387_control_word): Ditto.
3478 (i387_print_float_info): Ditto.
3479 * maint.c (maint_print_section_info): Ditto.
3480 * solib.c (info_sharedlibrary_command): Ditto.
3481 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3482 * symtab.c (print_msymbol_info): Ditto.
3483 * tracepoint.c (tracepoints_info): Ditto.
3484 * solib-frv.c (lm_base): Ditto.
3485 (frv_current_sos): Ditto.
3486 (enable_break2): Ditto.
3487 (enable_break): Ditto.
3488 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3489 (process_one_symbol): Ditto.
3490 * infcmd.c (program_info): Ditto.
3491 * mdebugread.c (parse_partial_symbols): Ditto.
3492 * symfile.c (add_symbol_file_command): Ditto.
3493 * cli/cli-cmds.c (edit_command): Ditto.
3494 (list_command): Ditto.
3495 * infcall.c (call_function_by_hand): Ditto.
3496 * remote-vx.c (vx_run_files_info): Ditto.
3501 * aix-thread.c (pdc_symbol_addrs): Ditto.
3502 (pdc_read_regs): Ditto.
3503 (pdc_write_regs): Ditto.
3504 (pdc_read_data): Ditto.
3505 (pdc_write_data): Ditto.
3506 * d10v-tdep.c (display_trace): Ditto.
3507 * rs6000-nat.c (find_toc_address): Ditto.
3508 * aix-thread.c: Don't include language.h.
3509 * buildsym.c: Ditto.
3511 * mdebugread.c: Ditto.
3512 * rs6000-nat.c: Ditto.
3513 * buildsym.c (make_blockvector): Use renamed hex_string.
3515 2004-09-10 Jason Molenda (jmolenda@apple.com)
3517 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3518 chars after 'if' or 'while' commands in user-defined commands.
3520 2004-09-08 Jim Blandy <jimb@redhat.com>
3522 Fix bug reported and analyzed by Olivier Crete:
3523 * symfile.c (copy_section_addr_info): New function.
3524 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3525 original set of address arguments, instead of handwritten code
3526 that uses one length to allocate and a different length to
3527 initialize. Use make_cleanup_free_section_addr_info.
3528 * symfile.h (copy_section_addr_info): New declaration.
3529 * utils.c: #include "symfile.h".
3530 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3532 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3533 * Makefile.in (utils.o): Update dependencies.
3535 2004-09-08 Andrew Cagney <cagney@gnu.org>
3537 * thread-db.c (keep_thread_db): Delete.
3538 (thread_db_new_objfile, thread_db_create_inferior)
3539 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3541 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3543 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3544 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3545 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3546 (i386_frameless_signal_p): Remove prototype.
3547 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3548 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3550 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3551 instead of FP0_REGNUM.
3552 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3553 of FP0_REGNUM and FPC_REGNUM.
3555 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3556 (sunos_solib_create_inferior_hook): Don't call
3557 sunos_relocate_main_executable.
3559 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3560 solib_svr4_fetch_link_map_offsets to
3561 svr4_ilp32_fetch_link_map_offsets.
3562 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3563 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3564 svr4_ilp32_fetch_link_map_offsets.
3565 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3567 2004-09-07 Jim Blandy <jimb@redhat.com>
3569 * frame.h (frame_register): Doc fix.
3571 2004-09-07 Andrew Cagney <cagney@gnu.org>
3573 * vx-share/wait.h: Delete #ifdef USG.
3574 * utils.c (request_quit): Ditto.
3575 * tui/tui.c (tui_reset): Ditto.
3577 * remote-sds.c: Ditto.
3578 * remote-rdi.c: Ditto.
3579 * mdebugread.c: Ditto.
3580 * m68klinux-nat.c: Ditto.
3581 * infttrace.c: Ditto.
3582 * infptrace.c: Ditto.
3583 * i386v-nat.c: Ditto.
3586 * core-aout.c: Ditto.
3588 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3590 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3591 heuristic_proc_desc.
3592 (mips_insn32_frame_cache): Likewise.
3594 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3596 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3597 left behind by error.
3599 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3601 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3602 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3604 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3606 * config/rs6000/xm-aix4.h: Remove this file.
3607 * config/rs6000/aix4.mh (XM_FILE): Delete.
3609 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3611 * config/rs6000/xm-rs6000.h: Remove this file.
3612 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3614 2004-09-03 Andrew Cagney <cagney@gnu.org>
3616 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3617 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3620 * mips-tdep.c (temp_saved_regs): Delete.
3621 (set_reg_offset): Replace saved_regs parameter with this_cache.
3622 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3623 (mips32_heuristic_proc_desc): Add this_cache parameter.
3624 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3625 (after_prologue): Pass a NULL this_cache.
3627 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3628 non-kernel trap prologues.
3630 * mips-tdep.c (find_proc_desc): Delete function.
3631 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3633 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3634 mips_insn32_frame_cache.
3636 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3637 Simplify as NEXT_FRAME is NULL.
3638 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3640 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3642 (mips_skip_prologue): Update.
3644 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3645 "cur_frame" parameter.
3646 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3647 (mips_insn32_frame_cache, find_proc_desc): Update
3649 * config/vax/nm-obsd.h: Delete file.
3650 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3651 * config/vax/nm-nbsd.h: Delete file.
3652 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3653 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3654 * config/sh/nm-nbsd.h: Delete file.
3655 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3656 * config/rs6000/nm-rs6000ly.h: Delete file.
3657 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3658 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3659 * config/powerpc/nm-obsd.h: Delete file.
3660 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3661 * config/powerpc/nm-nbsd.h: Delete file.
3662 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3663 * config/pa/nm-obsd.h: Delete file.
3664 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3665 * config/mips/nm-nbsd.h: Delete file.
3666 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3667 * config/m88k/nm-obsd.h: Delete file.
3668 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3669 * config/m68k/nm-nbsd.h: Delete file.
3670 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3671 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3672 * config/i386/nm-nbsd.h: Delete file.
3673 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3674 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3675 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3676 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3677 * config/i386/nm-i386lynx.h: Delete file.
3678 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3679 * config/arm/nm-nbsd.h: Delete file.
3680 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3681 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3683 * config/i386/tm-fbsd.h: Delete file.
3684 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3685 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3687 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3688 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3689 * config/rs6000/aix4.mt (TM_FILE): Set to
3690 config/rs6000/tm-rs6000.h.
3691 * config/powerpc/tm-ppc-aix.h: Delete file.
3692 * config/powerpc/aix.mt (TM_FILE): Set to
3693 config/rs6000/tm-rs6000.h.
3694 * config/m68k/tm-linux.h: Delete file.
3695 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3696 * config/i386/tm-linux64.h: Delete file.
3697 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3698 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3700 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3701 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3702 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3703 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3704 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3705 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3706 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3707 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3708 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3710 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3713 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3715 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3716 Minor reformatting. Some code factoring.
3718 2004-09-02 Andrew Cagney <cagney@gnu.org>
3720 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3721 * config/vax/tm-nbsd.h: Delete file.
3722 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3723 * config/sparc/tm-vxworks.h: Delete file.
3724 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3725 * config/sparc/tm-nbsd.h: Delete file.
3726 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3727 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3728 * config/sparc/tm-linux.h: Delete file.
3729 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3730 * config/s390/tm-linux.h: Delete file.
3731 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3732 * config/pa/tm-bsd.h: Delete file.
3733 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3734 * config/m68k/tm-obsd.h: Delete file.
3735 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3736 * config/m68k/tm-nbsd.h: Delete file.
3737 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3738 * config/i386/tm-vxworks.h: Delete file.
3739 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3740 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3741 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3742 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3743 * config/i386/tm-nbsd.h: Delete file.
3744 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3745 * config/i386/tm-i386lynx.h: Delete file.
3746 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3747 * config/cris/tm-cris.h: Delete file.
3749 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3750 * configure: Re-generate.
3751 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3752 * config/arm/tm-nbsd.h: Delete file.
3754 * config/powerpc/tm-ppcle-sim.h: Delete.
3755 * config/powerpc/tm-ppcle-eabi.h: Delete.
3756 * config/powerpc/tm-nbsd.h: Delete.
3757 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3758 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3761 * config/i386/nto.mh (NAT_FILE): Delete.
3762 * config/i386/nm-nto.h: Delete.
3764 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3765 * config/m68k/tm-os68k.h: Ditto.
3766 * config/m68k/tm-monitor.h: Ditto.
3767 * config/m68k/tm-cisco.h: Ditto.
3768 * config/m68k/st2000.mt (TM_FILE): Delete.
3769 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3770 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3771 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3772 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3774 * config/m68k/tm-st2000.h: Delete.
3775 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3776 * config/sparc/fbsd.mt (TM_FILE): Delete.
3777 * config/sparc/tm-fbsd.h: Delete.
3779 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3780 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3781 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3783 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3784 GDB_TM_FILE and GDB_XM_FILE.
3785 * gdbarch.c: Re-generate.
3786 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3787 quotes in macro definition.
3788 * configure.in: Re-generate.
3790 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3791 validating architecture methods.
3792 * gdbarch.c: Re-generate.
3794 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3795 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3796 GDB_MULTI_ARCH_PARTIAL.
3797 * gdbarch.h: Re-generate.
3799 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3800 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3801 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3802 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3803 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3804 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3805 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3806 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3807 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3808 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3809 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3810 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3812 2004-09-01 Andrew Cagney <cagney@gnu.org>
3814 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3815 and main_func_highpc.
3816 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3817 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3818 * nlmread.c (nlm_symfile_read): Update.
3820 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3822 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3823 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3824 (find_proc_desc): Remove dead code.
3826 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3828 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3830 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3832 * observer.sh: Add struct so_list declaration.
3833 * Makefile.in: Add dependencies on observer.h for solib.c and
3835 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3837 (_initialize_breakpoint): Register
3838 disable_breakpoints_in_unloaded_shlib as an observer of the
3839 "solib unloaded" observation event.
3840 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3841 call decode_line_1 so unfound breakpoint errors are silent.
3842 * solib.c (update_solib_list): When a solib is discovered to have
3843 been unloaded by the program, notify all observers of the
3844 "solib unloaded" observation event.
3846 2004-09-01 Andrew Cagney <cagney@gnu.org>
3848 * frame.c: Include "objfiles.h".
3849 (inside_main_func): New function.
3850 (get_prev_frame): Use new inside_main_func.
3851 * Makefile.in (frame.o): Update dependencies.
3852 * defs.h (inside_main_func): Delete declaration.
3853 * blockframe.c (inside_main_func): Delete function.
3855 2004-08-31 Jim Blandy <jimb@redhat.com>
3857 * dwarf2read.c (is_vtable_name): New function, based on logic from
3858 read_structure_type, but passing the correct length to strncmp,
3859 and using 'sizeof' instead of 'strlen'.
3860 (read_structure_type): Call it.
3862 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3864 * config/powerpc/aix.mh: Add comment.
3866 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3868 * MAINTAINERS: Add self to Write-After-Approval.
3870 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3872 * MAINTAINERS: Add self to Write-After-Approval.
3874 2004-08-30 Andrew Cagney <cagney@gnu.org>
3876 Fix PR breakpoints/1757.
3877 * infrun.c (struct execution_control_state): Replace
3878 remove_breakpoints_on_following_step with
3879 step_after_step_resume_breakpoint.
3880 (init_execution_control_state): Update.
3881 (handle_inferior_event): For signals, when stepping off a
3882 breakpoint, set step_after_step_resume_breakpoint. When
3883 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3884 (keep_going): Delete code handling
3885 remove_breakpoints_on_following_step.
3887 2004-08-29 David Lecomber <david@streamline-computing.com>
3890 * language.h (enum array_ordering): New enum.
3891 * language.h (struct language_defn): New la_array_ordering
3893 * language.c (unknown_language_defn, auto_language_defn)
3894 (local_language_defn): Ditto.
3895 * ada-lang.c (ada_language_defn): Ditto.
3896 * c-lang.c (c_language_defn, cplus_language_defn)
3897 (asm_language_defn, minimal_language_defn): Ditto.
3898 * f-lang.c (f_language_defn): Ditto.
3899 * jv-lang.c (java_language_defn): Ditto.
3900 * m2-lang.c (f_language_defn): Ditto.
3901 * objc-lang.c (objc_language_defn): Ditto.
3902 * p-lang.c (pascal_language_defn): Ditto.
3903 * scm-lang.c (scm_language_defn): Ditto.
3904 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3905 oriented large to small in type structure.
3906 * dwarf2read.c (read_array_order): New function.
3907 (read_array_type): Use read_array_order to check row/column
3910 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3912 * target.c (target_resize_to_sections): Check
3913 current_target.to_sections for an old value when updating.
3915 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3917 * procfs.c (dbx_link_bpt_addr): New static global variable.
3918 (dbx_link_shadow_contents): New static global variable.
3919 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3920 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3922 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3923 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3925 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3926 after the inferior has been forked.
3927 (remove_dbx_link_breakpoint): New function.
3928 (dbx_link_addr): New function.
3929 (insert_dbx_link_bpt_in_file): New function.
3930 (insert_dbx_link_bpt_in_region): New function.
3931 (insert_dbx_link_breakpoint): New function.
3932 (proc_trace_syscalls_1): New function, extracted from
3933 proc_trace_syscalls.
3934 (proc_trace_syscalls): Replace extract code by call to
3935 proc_trace_syscalls_1.
3936 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3939 2004-08-25 Jim Blandy <jimb@redhat.com>
3941 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3943 2004-08-25 Andrew Cagney <cagney@gnu.org>
3945 * infrun.c (struct execution_control_state): Delete field
3946 "stepping_through_sigtramp".
3947 (init_execution_control_state): Do not set same.
3948 (context_switch): Do not pass same to save_infrun_state and
3950 * gdbthread.h (struct thread_info): Delete field
3951 stepping_through_sigtramp.
3952 (save_infrun_state, load_infrun_state): Delete parameter
3953 stepping_through_sigtramp.
3954 * thread.c (load_infrun_state, save_infrun_state): Update.
3956 * infrun.c: Re-indent. Move expression operators to the beginning
3957 of the line. Remove long disabled #if 0 code.
3959 2004-08-24 Andrew Cagney <cagney@gnu.org>
3961 * doublest.h (floatformat_ieee_quad): Rename
3962 floatformat_ia64_quad.
3963 * doublest.c (floatformat_ieee_quad): Rename
3964 floatformat_ia64_quad.
3965 (_initialize_doublest): Update.
3967 2004-08-24 Jim Blandy <jimb@redhat.com>
3969 * dwarf2expr.h (struct dwarf_expr_context): New members
3970 'num_pieces' and 'pieces', for returning the result of an
3971 expression that uses DW_OP_piece.
3972 (struct dwarf_expr_piece): New struct type.
3973 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3975 (free_dwarf_expr_context): Free pieces, if any.
3976 (add_piece): New function.
3977 (execute_stack_op): Implement DW_OP_piece.
3978 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3979 expression is a list of pieces, print an error message.
3980 (dwarf2_loc_desc_needs_frame): If the expression yields
3981 pieces, and any piece is in a register, then we need a frame.
3983 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3984 the stack until we've decided what sort of result the evaluation
3985 has produced. Use separate variables, with more specific names.
3987 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3989 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3990 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3991 (arm_netbsd_init_abi_common): Register them.
3993 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3995 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3997 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3998 safe_frame_unwind_memory instead of target_read_memory.
4000 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
4002 (fetch_register, store_register): Remove prototypes.
4003 (child_resume): Reorganize code and comments such that it is
4004 grouped a bit more logically.
4005 (attach): Explicitly compare errno against 0.
4006 (detach): Likewise. Use perror_with_name instead of
4008 * Makefile.in (infptrace.o): Update dependencies.
4010 * ia64-linux-nat.c: Update copyright year.
4011 (fetch_debug_register, store_debug_register)
4012 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
4014 * config/ia64/nm-linux.h: Update copyright year.
4015 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
4017 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
4018 from CORE_ADDR to struct frame_info *. Use
4019 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
4020 (amd64_linux_sigtramp_p): Adjust for changed signature of
4021 and64_linux_sigtramp_start
4023 * gdb_ptrace.h: GNU/Linux.
4025 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
4028 * infptrace.c: Include "gdb_assert.h".
4029 (PTRACE_XFER_TYPE): Remove define.
4030 (offsetof): Only define if U_REGS_OFFSET isn't defined.
4031 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
4033 (fetch_inferior_registers, store_inferior_registers): Remove
4034 redundant culry braces. Tweak comment. s/regno/regnum.
4035 * Makefile.in (infptrace.o): Update dependencies.
4037 * configure.in: Change test for return type of ptrace to default
4038 to `long' instead of `int'.
4039 * configure: Regenerate.
4041 2004-08-21 Mark Kettenis <kettenis@gnu.org>
4043 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
4045 * configure.in: Check for ttrace function.
4046 * configure, config.in: Regenerate.
4048 * gdb_ptrace.h: New file.
4049 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
4051 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
4052 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
4053 (attach): Don't define PT_ATTACH.
4054 (detach): Don't define PT_DETACH.
4055 * Makefile.in (gdb_ptrace_h): New variable.
4056 (infptrace.o): Update dependencies.
4058 2004-08-16 Mark Kettenis <kettenis@gnu.org>
4060 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
4061 instead of `int' if not already defined.
4062 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
4064 * infptrace.c (call_ptrace): Revert change that replaced
4065 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4067 2004-08-15 Mark Kettenis <kettenis@gnu.org>
4069 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
4072 * linux-nat.c (kill_inferior): Add missing third and fourth
4073 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
4075 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
4078 * proc-why.c (proc_prettyfprint_why): Fix format string.
4080 * solib-osf.c (osf_current_sos): Remove unsused label.
4082 * configure.in: Add <ncurses/ncurses.h> to the list of possible
4084 * configure, config.in: Regenerate.
4085 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
4086 <ncurses/ncurses.h>.
4088 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
4089 * config/nm-nbsd.h: Update copyright year.
4090 (PTRACE_ARG3_TYPE): Remove define.
4092 * sparc-nat.c (fetch_inferior_registers)
4093 (store_inferior_registers, sparc_xfer_wcookie):
4094 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4096 * alphabsd-nat.c (fetch_inferior_registers):
4097 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4099 * amd64bsd-nat.c (fetch_inferior_registers)
4100 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4102 * armnbsd-nat.c: Update copyright year.
4103 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
4104 (store_register, store_regs, store_fp_register, store_fp_regs):
4105 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4106 * hppabsd-nat.c (fetch_inferior_registers)
4107 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4109 * i386bsd-nat.c (fetch_inferior_registers)
4110 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4111 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4112 * m68kbsd-nat.c (fetch_inferior_registers)
4113 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4115 * m88kbsd-nat.c (fetch_inferior_registers)
4116 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4118 * mipsnbsd-nat.c: Update copyright year.
4119 (fetch_inferior_registers, store_inferior_registers):
4120 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4121 * ns32knbsd-nat.c: Update copyright year.
4122 (fetch_inferior_registers, store_inferior_registers):
4123 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4124 * ppcnbsd-nat.c (fetch_inferior_registers):
4125 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4127 * ppcobsd-nat.c (fetch_inferior_registers):
4128 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4130 * shnbsd-nat.c: Update copyright year.
4131 (fetch_inferior_registers, store_inferior_registers):
4132 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4133 * vaxbsd-nat.c (fetch_inferior_registers)
4134 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4137 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4139 * infptrace.c (call_ptrace, child_resume, attach, detach)
4140 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4141 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4142 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4145 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4147 * defs.h: Remove out-of-date comment.
4148 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4149 [!GETENV_PROVIDED] (getenv): Remove prototype.
4151 * standalone.c: Remove file.
4152 * Makefile.in (standalone.o): Remove dependency.
4154 * i386-linux-nat.c (dummy_sse_values): Remove function and
4156 (i386_linux_dr_get): Fix typo in comment.
4157 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4159 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4161 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4163 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4166 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4168 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4169 parenthesis in definition.
4170 * configure: Regenerated.
4172 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4174 * PROBLEMS: Mention build/1411.
4176 2004-08-09 Robert Millan <robertmh@gnu.org>
4178 Committed by Nathanael Nerode.
4179 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4180 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4182 2004-08-12 Andrew Cagney <cagney@gnu.org>
4184 * NEWS: Mention fixes in GDB 6.2.1.
4185 * PROBLEMS: Remove mention of mips-irix.
4187 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4189 * config/powerpc/xm-aix.h: Delete.
4190 * config/powerpc/aix.mh (MH_FILE): Remove.
4191 * config/powerpc/aix432.mh (MH_FILE): Remove.
4193 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4195 * config/powerpc/aix.mh: Remove obsolete comment.
4196 * config/powerpc/aix432.mh: Likewise.
4198 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4200 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4202 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4204 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4205 this file is now empty.
4206 * config/xm-aix4.h: Remove, this file is no longer included
4209 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4211 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4212 that file is now empty.
4213 (termdef): Remove prototype, function no longer used.
4215 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4217 * doc/gdbint.texinfo (Host Definition): Remove documentation
4218 for USE_O_NOCTTY, no longer used.
4219 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4220 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4222 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4224 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4225 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4226 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4228 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4230 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4231 instead of FIVE_ARG_PTRACE.
4233 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4234 (new_tty): Use O_NOCTTY unconditionally.
4236 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4238 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4239 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4242 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4244 * xcoff_symfile_finish: Replace last call to xmfree by call
4247 2004-08-10 Andrew Cagney <cagney@gnu.org>
4249 * main.c (captured_main): Delete call to init_malloc.
4250 * defs.h (init_malloc): Delete declaration.
4251 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4252 (init_malloc): Delete functions.
4254 * defs.h (xmfree): Delete.
4255 * utils.c (xmfree): Delete function.
4256 (xfree): Inline calls to xmfree and mfree.
4257 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4258 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4259 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4260 * somread.c (som_symfile_finish): Ditto.
4261 * objfiles.c (allocate_objfile, free_objfile):
4262 * nlmread.c (nlm_symfile_finish): Ditto.
4263 * hpread.c (hpread_symfile_finish): Ditto.
4264 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4265 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4266 * coffread.c (coff_symfile_finish): Ditto.
4268 * defs.h (xmcalloc): Delete declaration.
4269 * utils.c (xmcalloc): Delete.
4270 (xcalloc): Inline calls to xmcalloc and mcalloc.
4271 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4273 * symtab.c (create_demangled_names_hash): Ditto.
4275 * defs.h (xmrealloc): Delete.
4276 * utils.c (xmrealloc): Delete.
4277 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4278 * symmisc.c (extend_psymbol_list): Use xrealloc.
4279 * source.c (find_source_lines): Ditto.
4280 * hpread.c (hpread_lookup_type): Ditto.
4281 * dbxread.c (add_bincl_to_list): Ditto.
4283 * utils.c (xmmalloc): Delete.
4284 (xmalloc): Inline xmmalloc and mmalloc calls.
4285 (msavestring): Use xmalloc.
4286 * defs.h (xmmalloc): Delete declaration.
4287 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4289 * symmisc.c (extend_psymbol_list): Ditto.
4290 * symfile.c (init_psymbol_list): Ditto.
4291 * source.c (find_source_lines): Ditto.
4292 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4293 * elfread.c (elf_symtab_read): Ditto.
4294 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4295 * coffread.c (coff_symfile_init): Ditto.
4297 2004-08-10 David Carlton <carlton@bactrian.org>
4299 * MAINTAINERS: Remove David Carlton from c++ testsuite
4302 2004-08-10 Jerome Guitton <guitton@gnat.com>
4304 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4305 print a line feed before the prompt.
4307 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4309 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4311 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4313 General cleanup of the AIX xm include file:
4314 * config/xm-aix4.h (fd_set): Remove undefine.
4315 Remove include of <sys/select.h>.
4316 (HAVE_TERMIO): Remove define.
4318 (NULL): Remove redefine.
4319 (alloca): Remove #pragma.
4320 (vfork): Remove define.
4322 (SIGWINCH_HANDLER): Remove.
4323 (SIGWINCH_HANDLER_BODY): Remove.
4325 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4327 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4328 GDB_OSABI_OPENBSD_ELF.
4330 2004-08-07 Robert Millan <robertmh@gnu.org>
4332 * bsd-kvm.c: Check for nlist.h before including it.
4334 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4336 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4337 sigcontext' offset consistency checks for ancient BSD.
4339 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4341 * configure.in: Check for <sys/types.h>. Check return and
4342 argument types of ptrace.
4343 * configure, config.in: Regenerate.
4345 2004-08-09 Jim Blandy <jimb@redhat.com>
4347 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4348 rs6000_register_sim_regno): Doc fixes.
4350 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4352 * mips-tdep.c: Include "floatformat.h".
4353 (n32n64_floatformat_always_valid): New function.
4354 (floatformat_n32n64_long_double_big): New constant.
4355 (mips_gdbarch_init): Set size and format of long double
4356 for N32 and N64 ABIs.
4357 * Makefile.in (mips-tdep.o): Update dependencies.
4359 2004-08-08 Andrew Cagney <cagney@gnu.org>
4361 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4362 print. Improve script's error messages.
4363 * gdbarch.h: Re-generate.
4365 * gdbarch.sh (pformat): New function.
4366 (float_format, double_format, long_double_format): List with bit
4367 members. Use pformat when printing.
4368 * gdbarch.c, gdbarch.h: Re-generate.
4370 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4372 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4373 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4374 (ppcnbsd_supply_pcb): New function.
4375 (_initialize_ppcnbsd_nat): New prototype and function.
4376 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4377 (LOADLIBES): New variable.
4378 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4380 2004-08-08 Andrew Cagney <cagney@gnu.org>
4382 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4383 (builtin_type_ieee_double, builtin_type_ia64_quad)
4384 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4385 BE/LE floating-point types.
4386 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4387 (builtin_type_ieee_double, builtin_type_ia64_quad)
4388 (builtin_type_ia64_spill): Declare.
4389 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4390 (floatformat_ieee_double, floatformat_arm_ext)
4391 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4392 of LE/BE floatformats.
4393 * doublest.h: (struct floatformat, floatformat_ieee_single)
4394 (floatformat_ieee_double, floatformat_arm_ext)
4395 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4397 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4399 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4401 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4402 instead of regcache_raw_supply when storing the registers.
4404 * i386gnu-nat.c: Update copyright year.
4405 (gnu_store_registers): Don't use deprecated_registers and
4406 deprecated_registers_valid. Use regcache_valid_p and
4407 regcache_raw_supply instead.
4409 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4412 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4413 variables. Incapitalized "process".
4415 * configure.in: Add cursesX to the list of possible curses libs.
4416 Add cursesX.h to the list of possible curses headers.
4417 * configure, config.in: Regenerate.
4419 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4421 * configure.in: Test for struct lwp in <sys/lwp.h>.
4422 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4423 the offset of l_addr in struct lwp.
4425 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4427 * bsd-kvm.c: Include "gdbcore.h"
4428 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4430 2004-08-07 Andrew Cagney <cagney@gnu.org>
4432 * gdbtypes.c (build_flt, build_complex): New functions.
4433 (gdbtypes_post_init): Use.
4435 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4437 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4438 through to builtin_type_uint128.
4440 * c-exp.y: Use builtin_type function to obtain builtin types.
4442 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4444 * gdbtypes.c (gdbtypes_post_init): Update.
4445 (build_gdbtypes): Move initialization of builtin_type_int0
4446 through to builtin_type_uint128 from here ...
4447 (_initialize_gdbtypes): ... to here.
4448 * d10v-tdep.c (d10v_register_type): Update.
4450 * doublest.c: Update copyright.
4451 (floatformat_from_length): Call error when floatformat is NULL.
4452 (extract_floating_by_length): Remove NULL fmt check.
4453 (store_floating_by_length): Ditto.
4455 2004-08-07 Andrew Cagney <cagney@gnu.org>
4457 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4458 that the register is valid.
4460 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4462 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4463 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4464 struct frame_info *. Use safe_frame_unwind_memory instead of
4465 deprecated_read_memory_nobpt.
4466 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4467 changed signature of i386_linux_sigtramp_start and
4468 i386_linux_rt_sigtramp_start.
4470 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4471 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4472 instead of deprecated_read_memory_nobpt.
4473 (i386nbsd_sigtramp_p): Adjust for changed signature of
4474 i386nbsd_sigtramp_offset.
4476 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4477 safe_frame_unwind_memory instead of target_read_memory.
4479 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4481 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4482 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4483 (_initialize_kernel_u_addr): Remove prototype and function.
4484 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4486 * xcoffread.c: Likewise.
4488 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4490 * vax-nat.c: New file.
4491 * vaxbsd-nat.c: Tweak comment.
4492 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4494 (vax-nat.o): New dependency.
4495 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4496 (vax-*-ultrix2*): Remove.
4497 * config/vax/vax.mh: New file.
4498 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4499 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4500 (vax_register_u_addr): New prototype.
4501 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4502 * config/vax/vaxult2.mh: Remove file.
4503 * config/vax/vaxult.mh: Remove file.
4504 * config/vax/vaxbsd.mh: Remove file.
4505 * config/vax/vax.mt (TM_FILE): Remove.
4506 * config/vax/tm-vaxbsd.h: Remove file.
4508 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4510 * aix-thread.c (get_signaled_thread): New function.
4511 (iter_trap): Delete, no longer used.
4512 (iter_tid): New function.
4513 (pd_update): Find the thread that received the SIGTRAP signal
4514 by first locating the kernel thread, and then finding its
4517 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4519 * lin-lwp.c (child_wait): Continue inferior after processing
4520 PTRACE_EVENT_CLONE event.
4522 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4524 * MAINTAINERS: Add self to Write-After-Approval.
4526 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4528 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4529 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4531 2004-08-05 Andrew Cagney <cagney@gnu.org>
4533 * config/xm-sysv4.h: Delete file.
4534 * config/mips/xm-irix5.h: Delete file.
4535 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4536 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4537 * config/ia64/xm-aix.h: Delete file.
4538 * config/ia64/aix.mh (XM_FILE): Delete.
4539 * config/pa/xm-hppah.h: Delete file.
4540 * config/pa/hpux11w.mh (XM_FILE): Delete.
4541 * config/pa/hpux11.mh (XM_FILE): Delete.
4542 * config/pa/hpux1020.mh (XM_FILE): Delete.
4543 * config/pa/hppahpux.mh (XM_FILE): Delete.
4545 * config/alpha/xm-alphalinux.h: Delete file.
4546 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4547 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4548 * config/alpha/xm-alphaosf.h: Delete file.
4549 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4550 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4551 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4552 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4554 * config/i386/xm-i386v.h: Delete file.
4555 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4556 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4557 * config/i386/xm-i386sco.h: Delete file.
4558 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4559 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4560 * config/i386/xm-i386v4.h: Delete file.
4561 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4562 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4563 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4564 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4566 * config/vax/xm-vax.h: Delete file.
4567 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4568 * config/vax/xm-vaxult2.h: Delete file.
4569 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4570 * config/vax/vaxult2.mh (XM_FILE): Delete.
4571 * config/vax/xm-vaxult.h: Delete file.
4572 * config/vax/vaxult.mh (XM_FILE): Delete.
4573 * config/vax/xm-vaxbsd.h: Delete file.
4574 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4576 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4577 * gdbarch.h, gdbarch.c: Re-generate.
4578 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4579 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4580 * frame.h: Delete deprecated_read_fp from comments.
4581 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4582 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4584 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4586 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4587 trampoline in OpenBSD 3.5-current.
4589 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4592 * Makefile.in: Remove embedded page breaks.
4594 2004-08-04 Jim Blandy <jimb@redhat.com>
4596 * regcache.c (regcache_raw_read): Assert that, after calling
4597 target_fetch_registers, the register we're reading is cached.
4599 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4600 a call to 'internal_error', with a more helpful error message.
4601 * rs6000-tdep.c (e500_pseudo_register_read,
4602 e500_pseudo_register_write, rs6000_store_return_value): Same.
4604 2004-08-04 Andrew Cagney <cagney@gnu.org>
4606 * Makefile.in: Update dependencies.
4608 2004-08-04 Jim Blandy <jimb@redhat.com>
4610 Change the layout of the PowerPC E500 raw register cache to allow
4611 the lower 32-bit halves of the GPRS to be their own raw registers,
4612 not pseudoregisters.
4613 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4614 add ppc_ev0_upper_regnum flag.
4615 * rs6000-tdep.c: #include "reggroups.h".
4616 (spe_register_p): Recognize the ev upper half registers as SPE
4618 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4620 (e500_move_ev_register): New function.
4621 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4622 vector registers are the pseudo-registers now, formed by splicing
4623 together the gprs and the upper-half registers.
4624 (e500_register_reggroup_p): New function.
4626 (P8, A4): New macro.
4627 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4628 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4630 (registers_e500): Rearrange register set so that the raw register
4631 set contains 32-bit GPRs and upper-half registers, and the SPE
4632 vector registers become pseudo-registers.
4633 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4634 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4635 register numbers are now the same for the E500 as they are for
4636 other PowerPC variants. Register e500_register_reggroup_p as the
4637 register group function for the E500.
4638 * Makefile.in (rs6000-tdep.o): Update dependencies.
4640 Adapt PPC E500 native support to the new raw regcache layout.
4641 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4642 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4643 (fetch_spe_register, store_spe_register): Handle fetching/storing
4644 all the SPE registers at once, if regno == -1. These now take
4645 over the job of fetch_spe_registers and store_spe_registers.
4646 (fetch_spe_registers, store_spe_registers): Deleted.
4647 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4648 unconditionally; they're always raw. Fetch/store SPE upper half
4649 registers, if present, instead of ev registers.
4650 (fetch_register, store_register): Remove sanity checks: gprs are
4651 never pseudo-registers now, so we never need to even mention any
4652 registers that are ever pseudoregisters.
4654 Use a fixed register numbering when communicating with the PowerPC
4656 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4657 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4658 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4660 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4661 init_sim_regno_table.
4662 * Makefile.in (gdb_sim_ppc_h): New variable.
4663 (rs6000-tdep.o): Update dependencies.
4665 2004-08-02 Andrew Cagney <cagney@gnu.org>
4667 * cris-tdep.c (cris_register_size): Restore function, still used
4670 * gdbarch.sh (deprecated_target_read_fp)
4671 (deprecated_frame_locals_address, deprecated_frame_args_address)
4672 (deprecated_frame_chain_valid, deprecated_frame_chain)
4673 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4674 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4675 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4676 * gdbarch.h, gdbarch.c: Re-generate.
4677 * regcache.c (deprecated_read_fp): Do not call
4678 DEPRECATED_TARGET_READ_FP_P.
4679 * infcmd.c (default_print_registers_info): Do not call
4680 DEPRECATED_DO_REGISTERS_INFO.
4681 * frame-base.c (default_frame_locals_address): Do not call
4682 DEPRECATED_FRAME_LOCALS_ADDRESS.
4683 (default_frame_args_address): Do not call
4684 DEPRECATED_FRAME_ARGS_ADDRESS.
4686 * gdbarch.sh (deprecated_register_raw_size)
4687 (deprecated_register_virtual_size:int): Delete.
4688 * gdbarch.h, gdbarch.c: Re-generate.
4689 * cris-tdep.c (cris_register_size): Delete.
4690 (cris_gdbarch_init): Update.
4691 * alpha-tdep.c (alpha_register_raw_size)
4692 (alpha_register_virtual_size): Delete.
4693 (alpha_gdbarch_init): Update.
4695 * gdbarch.sh (deprecated_register_virtual_type)
4696 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4697 (deprecated_dummy_write_sp): Delete.
4698 * gdbarch.h, gdbarch.c: Re-generate.
4700 * gdbarch.sh (deprecated_register_bytes): Delete.
4701 * gdbarch.h, gdbarch.c: Re-generate.
4702 * regcache.c (deprecated_register_bytes): New function.
4703 * regcache.h (deprecated_register_bytes): Declare.
4704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4705 * v850-tdep.c (v850_gdbarch_init): Update.
4706 * sh64-tdep.c (sh64_gdbarch_init): Update.
4707 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4709 * mcore-tdep.c (mcore_gdbarch_init): Update.
4710 * cris-tdep.c (cris_gdbarch_init): Update.
4711 * arm-tdep.c (arm_gdbarch_init): Update.
4712 * remote.c (init_remote_state): Update.
4713 * remote-vx.c (vx_prepare_to_store): Update.
4714 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4715 * irix5-nat.c (fetch_core_registers): Update.
4716 * cris-tdep.c (cris_register_bytes_ok): Update.
4717 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4719 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4720 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4721 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4722 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4723 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4724 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4725 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4726 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4727 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4728 with mips_insn16 and mips_insn32.
4730 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4731 * rs6000-tdep.c (rs6000_push_dummy_call)
4732 (rs6000_extract_return_value): Use register_size.
4733 * xstormy16-tdep.c (xstormy16_get_saved_register)
4734 (xstormy16_extract_return_value): Ditto.
4735 * valops.c (value_assign): Ditto.
4736 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4737 * v850-tdep.c (v850_extract_return_value): Ditto.
4738 * tracepoint.c (collect_symbol): Ditto.
4739 * target.c (debug_print_register): Ditto.
4740 * stack.c (frame_info): Ditto.
4741 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4742 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4743 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4744 (store_register_using_P): Ditto.
4745 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4746 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4747 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4748 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4749 * regcache.c (deprecated_read_register_bytes)
4750 (deprecated_write_register_bytes, read_register)
4751 (write_register): Ditto.
4752 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4753 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4754 * monitor.c (monitor_supply_register, monitor_fetch_register)
4755 (monitor_store_register): Ditto.
4756 * mn10300-tdep.c (mn10300_pop_frame_regular)
4757 (mn10300_print_register): Ditto.
4758 * mipsv4-nat.c (fill_fpregset): Ditto.
4759 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4760 (mips64_fill_fpregset): Ditto.
4761 * mi/mi-main.c (register_changed_p, get_register)
4762 (mi_cmd_data_write_register_values): Ditto.
4763 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4764 * irix5-nat.c (fill_gregset, fetch_core_registers):
4765 * infrun.c (write_inferior_status_register): Ditto.
4766 * infptrace.c (fetch_register, store_register): Ditto.
4767 * infcmd.c (default_print_registers_info): Ditto.
4768 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4769 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4770 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4771 * hpux-thread.c (hpux_thread_fetch_registers)
4772 (hpux_thread_store_registers): Ditto.
4773 * hppah-nat.c (store_inferior_registers, fetch_register):
4774 * findvar.c (value_from_register): Ditto.
4775 * dve3900-rom.c (fetch_bitmapped_register):
4776 * cris-tdep.c (cris_gdbarch_init): Ditto.
4777 * alpha-tdep.h: Ditto.
4778 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4780 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4781 DEPRECATED_REGISTER_RAW_SIZE from comments.
4782 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4783 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4784 DEPRECATED_REGISTER_RAW_SIZE.
4785 * findvar.c (value_of_register): Simplify by assuming that the
4786 registers raw and virtual sizes are identical.
4787 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4789 * arch-utils.c (generic_register_size): Simplify by assuming
4792 * regcache.c (legacy_read_register_gen, real_register)
4793 (legacy_write_register_gen): Delete, not used.
4795 * regcache.c (struct regcache_descr): Delete legacy_p.
4796 (init_legacy_regcache_descr): Delete function.
4797 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4798 Do not use deprecated register functions.
4799 (regcache_raw_read, deprecated_write_register_gen):
4800 (deprecated_read_register_gen, regcache_raw_write): Delete code
4801 predicated on legacy_p.
4802 (register_size): Delete check against register raw size.
4804 * cris-tdep.c (cris_register_type): Replace
4805 cris_register_virtual_type.
4806 (cris_gdbarch_init): Update, set register_type.
4808 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4809 * gdbarch.h, gdbarch.c: Re-generate.
4810 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4811 (arm_gdbarch_init) Do not set frameless function invocation.
4812 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4813 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4814 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4815 (frv_gdbarch_init): Do not set frameless function invocation.
4816 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4817 * sh-tdep.c (sh_gdbarch_init): Ditto.
4818 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4819 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4820 * avr-tdep.c (avr_gdbarch_init): Ditto.
4822 * blockframe.c (legacy_frame_chain_valid): Delete function.
4824 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4825 and pc. Update comments.
4826 (pc_in_dummy_frame): Delete function.
4827 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4829 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4830 call_hi, top and pc, use the id.
4831 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4833 * dummy-frame.c: Include "gdb_string.h".
4834 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4835 (generic_save_dummy_frame_tos): Delete.
4836 (dummy_frame_push): New function, replaces above.
4837 * dummy-frame.h: Update copyright.
4838 (dummy_frame_push): Declare.
4839 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4840 (generic_save_call_dummy_addr): Delete declarations.
4841 * infcall.c: Include "dummy-frame.h".
4842 (call_function_by_hand): Add locals caller_regcache,
4843 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4844 with call to frame_save_as_regcache plus cleanup. Delete calls to
4845 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4846 Move clear_proceed_status to just before the resume, add call to
4847 dummy_frame_push (discard cleanup).
4848 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4849 (dummy-frame.o): Add $(gdb_string_h).
4851 2004-08-01 Andrew Cagney <cagney@gnu.org>
4853 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4854 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4855 * dummy-frame.c (find_dummy_frame): Delete.
4856 (struct dummy_frame_cache, dummy_frame_sniffer)
4857 (dummy_frame_prev_register, dummy_frame_this_id)
4858 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4859 frame unwinder using a dummy_frame_cache.
4861 2004-08-01 Andrew Cagney <cagney@gnu.org>
4863 * frame.h (frame_save_as_regcache): Declare.
4864 * frame.c (frame_save_as_regcache): New function.
4865 (do_frame_read_register): Replace do_frame_unwind_register.
4866 (frame_pop): Use frame_save_as_regcache.
4867 * dummy-frame.c (generic_push_dummy_frame): Use
4868 frame_save_as_regcache.
4870 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4872 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4873 file as included until we record the first line in the linetable.
4875 2004-08-01 Andrew Cagney <cagney@gnu.org>
4877 * frame.h (deprecated_pop_dummy_frame)
4878 (deprecated_read_register_dummy)
4879 (deprecated_generic_find_dummy_frame): Delete.
4880 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4881 (deprecated_read_register_dummy)
4882 (deprecated_find_dummy_frame_regcache)
4883 (discard_innermost_dummy)
4884 (deprecated_pop_dummy_frame): Delete.
4885 (dummy_frame_this_id): Simplify.
4886 (struct dummy_frame): Delete "fp" and "sp".
4887 (find_dummy_frame): Simplify.
4888 (generic_push_dummy_frame): Do not set "fp" or "sp".
4889 (fprint_dummy_frames): Do not print "fp" and "sp"
4891 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4893 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4894 (struct i386_insn): New structure.
4895 (i386_match_insn): New function.
4896 (i386_frame_setup_skip_insns): New variable.
4897 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4898 array i386_frame_setup_insns of instructions that should be
4899 skipped inside the frame setup sequence.
4901 2004-08-01 Andrew Cagney <cagney@gnu.org>
4903 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4904 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4905 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4906 * stack.c (frame_info): Delete references to
4907 DEPRECATED_FRAME_INIT_SAVED_REGS and
4908 deprecated_get_frame_saved_regs.
4909 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4910 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4911 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4912 (frame_unwind_register_signed)
4913 (frame_unwind_register_unsigned)
4914 (frame_unwind_unsigned_register): Use register_size.
4915 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4916 (deprecated_frame_xmalloc_with_cleanup)
4917 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4918 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4920 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4921 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4922 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4923 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4925 * infcall.c (call_function_by_hand): Do not use
4926 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4927 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4928 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4929 DEPRECATED_STACK_ALIGN.
4931 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4933 Committed by Andrew Cagney.
4934 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4936 2004-08-01 Andrew Cagney <cagney@gnu.org>
4938 * mips-tdep.c (mips16_frame_cache)
4939 (mips16_frame_this_id, mips16_frame_prev_register)
4940 (mips16_frame_unwind, mips16_frame_sniffer)
4941 (mips16_frame_base_address, mips16_frame_base)
4942 (mips16_frame_base_sniffer, mips32_frame_cache)
4943 (mips32_frame_this_id, mips32_frame_prev_register)
4944 (mips32_frame_unwind, mips32_frame_sniffer)
4945 (mips32_frame_base_address, mips32_frame_base)
4946 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4947 separate heuristic mips16 and mips32 unwinders.
4948 (mips_stub_frame_cache, mips_stub_frame_this_id)
4949 (mips_stub_frame_prev_register)
4950 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4951 (mips_stub_frame_base_address, mips_stub_frame_base)
4952 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4953 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4954 match true mdebug frames.
4955 (non_heuristic_proc_desc): Add forward declaration.
4957 2004-08-01 Andrew Cagney <cagney@gnu.org>
4959 * config/mips/tm-irix6.h: Delete file.
4960 * config/mips/tm-irix5.h: Delete file.
4961 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4962 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4964 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4965 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4966 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4967 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4968 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4969 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4970 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4971 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4972 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4973 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4974 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4975 (TARGET_SIGNAL_RAW_VALUES): Delete.
4976 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4978 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4979 (TARGET_HW_WATCH_LIMIT): Delete.
4980 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4981 * minimon.h: Delete file.
4983 * trad-frame.c (trad_frame_get_this_base)
4984 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4986 * trad-frame.h (trad_frame_set_this_base)
4987 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4989 2004-07-31 Andrew Cagney <cagney@gnu.org>
4991 * trad-frame.c (trad_frame_get_prev_register): Rename
4992 trad_frame_get_prev_register.
4993 * vax-tdep.c (vax_frame_prev_register): Update.
4994 * trad-frame.h: Update.
4995 * trad-frame.c (trad_frame_get_register): Update.
4996 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4997 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4999 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
5000 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
5002 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
5004 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
5006 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
5008 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
5010 * s390-tdep.c (s390_frame_prev_register)
5011 (s390_stub_frame_prev_register)
5012 (s390_sigtramp_frame_prev_register): Update.
5013 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
5014 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
5015 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
5016 * m88k-tdep.c (m88k_frame_prev_register)
5017 * m68hc11-tdep.c (m68hc11_frame_prev_register)
5018 * m32r-tdep.c (m32r_frame_prev_register): Update.
5019 * hppa-tdep.c (hppa_frame_prev_register_helper)
5020 * frv-tdep.c (frv_frame_prev_register): Update.
5021 * d10v-tdep.c (d10v_frame_prev_register): Update.
5022 * cris-tdep.c (cris_frame_prev_register): Update.
5023 * avr-tdep.c (avr_frame_prev_register): Update.
5024 * arm-tdep.c (arm_prologue_prev_register)
5025 (arm_sigtramp_prev_register): Update.
5027 2004-07-31 Andrew Cagney <cagney@gnu.org>
5029 * frame.h (legacy_saved_regs_unwind)
5030 (legacy_frame_chain_valid, legacy_frame_p)
5031 (enum frame_type): Delete UNKNOWN_FRAME.
5032 * dummy-frame.c (dummy_frame_this_id): Simplify.
5033 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
5034 * frame.c (struct frame_info): Delete the field "type".
5035 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
5036 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
5037 (legacy_saved_regs_unwind, legacy_frame_p)
5038 (frame_type_from_pc): Delete.
5039 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
5040 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
5042 2004-07-31 Mark Kettenis <kettenis@gnu.org>
5044 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
5047 * mips-nat.c: Remove file.
5048 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
5049 (mips-nat.o): Remove dependency.
5051 * infptrace.c: Update copyright year.
5052 (fetch_register): Pass NULL in regcache_raw_supply call instead of
5053 explicitly setting the buffer to all zeroes.
5055 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
5056 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
5058 2004-07-30 Andrew Cagney <cagney@gnu.org>
5060 * GDB 6.2 released from gdb_6_2-branch.
5062 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
5064 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
5066 * exec.c (exec_file_attach):
5067 * nto-tdep.c (nto_find_and_open_solib):
5068 * pa64solib.c (pa64_solib_sizeof_symbol_table):
5069 * solib.c (solib_open):
5070 * somsolib.c (som_solib_sizeof_symbol_table):
5071 * source.c (is_regular_file, openp, open_source_file):
5072 * symfile.c (symfile_bfd_open):
5073 * wince.c (upload_to_device): Differentiate between the search for
5074 binary and source files.
5076 2004-07-30 Andrew Cagney <cagney@gnu.org>
5078 * complaints.c (_initialize_complaints): Pass NULL to
5079 add_setshow_zinteger_cmd for help_doc.
5080 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
5082 2004-07-30 Andrew Cagney <cagney@gnu.org>
5085 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
5086 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
5087 $(PACKAGE).pot and update-po.
5088 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
5089 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
5090 (update-po): New rules.
5091 (localedir): Define using autoconf.
5092 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
5093 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
5094 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
5095 * configure.in: Generate CATALOGS and LINGUAS from contents of
5096 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
5097 * configure: Re-generate.
5098 * po/gdbtext: New file
5100 2004-07-30 Jerome Guitton <guitton@gnat.com>
5102 * MAINTAINERS: Reorder Write After Approval list in alphabetical
5105 2004-07-30 David Lecomber <dsl@sources.redhat.com>
5107 * dwarf2read.c (read_file_scope): Set producer if attribute
5109 (struct dwarf2_cu): Added new member producer.
5111 2004-07-30 Jerome Guitton <guitton@gnat.com>
5113 * inflow.c (kill_command): release file handles in BFD.
5114 * exec.c (exec_file_attach): Ditto.
5115 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5117 2004-07-29 Andrew Cagney <cagney@gnu.org>
5119 * PROBLEMS (mips-irix): Note that it is broken.
5121 2004-07-29 Andrew Cagney <cagney@gnu.org>
5123 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5124 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5126 * config/xm-nbsd.h: Delete file.
5127 * config/arm/xm-nbsd.h: Delete file.
5128 * config/i386/xm-nbsd.h: Delete file.
5129 * config/ns32k/xm-nbsd.h: Delete file.
5130 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5131 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5132 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5133 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5134 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5136 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5137 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5138 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5139 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5140 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5141 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5143 * config/powerpc/xm-linux.h: Delete empty file.
5144 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5145 * config/powerpc/linux.mh (XM_FILE): Delete.
5146 * config/m68k/xm-linux.h: Delete empty file.
5147 * config/m68k/linux.mh (XM_FILE): Delete.
5148 * config/ia64/xm-linux.h: Delete empty file.
5149 * config/ia64/linux.mh (XM_FILE): Delete.
5150 * config/arm/xm-linux.h: Delete empty file.
5151 * config/arm/linux.mh (XM_FILE): Delete.
5153 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5154 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5155 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5156 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5157 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5158 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5159 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5160 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5162 * config/m68k/xm-m68k.h: Delete file.
5163 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5165 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5166 * config/pa/xm-linux.h: Delete empty file.
5167 * config/pa/linux.mh (XM_FILE): Delete.
5168 * config/i386/xm-i386.h: Delete empty file.
5169 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5171 * config/i386/obsdaout.mh (XM_FILE): Delete.
5172 * config/i386/obsd64.mh (XM_FILE): Delete.
5173 * config/i386/fbsd64.mh (XM_FILE): Delete.
5174 * config/i386/nto.mh (XM_FILE): Delete.
5175 * config/i386/obsd.mh (XM_FILE): Delete.
5176 * config/i386/linux64.mh (XM_FILE): Delete.
5177 * config/i386/linux.mh (XM_FILE): Delete.
5178 * config/i386/i386sol2.mh (XM_FILE): Delete.
5179 * config/i386/i386gnu.mh (XM_FILE): Delete.
5180 * config/i386/fbsd.mh (XM_FILE): Delete.
5181 * config/i386/nbsd64.mh (XM_FILE): Delete.
5183 2004-07-29 Andrew Cagney <cagney@gnu.org>
5185 * config/pa/xm-linux.h: Do not include "floatformat.h".
5186 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5187 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5188 * config/i386/xm-i386.h: Do not include "floatformat.h".
5189 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5190 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5191 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5192 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5193 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5194 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5195 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5196 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5197 * configure, config.in: Regenerate.
5198 * configure.host (gdb_host_float_format, gdb_host_double_format)
5199 (gdb_host_long_double_format): Set according to the host.
5201 2004-07-29 Andrew Cagney <cagney@gnu.org>
5203 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5205 2004-07-28 Andrew Cagney <cagney@gnu.org>
5207 * PROBLEMS: Mention threads/1650.
5208 * NEWS: Mention the NPTL fix.
5210 2004-07-28 Andrew Cagney <cagney@gnu.org>
5212 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5213 (add_setshow_cmd_full): Make static.
5214 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5215 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5216 * cli/cli-decode.c (add_setshow_filename_cmd)
5217 (add_setshow_string_cmd): New functions.
5218 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5219 * mips-tdep.c (_initialize_mips_tdep): Update.
5220 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5221 * cli/cli-logging.c (_initialize_cli_logging): Update.
5222 * complaints.c (_initialize_complaints): Update.
5223 * remote.c (_initialize_remote): Update.
5225 2004-07-28 Andrew Cagney <cagney@gnu.org>
5227 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5228 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5229 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5230 print parameters. Make string parameters constant.
5231 * command.h: Update. Update copyright.
5232 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5233 * observer.c (_initialize_observer): Ditto.
5234 * frame.c (_initialize_frame): Ditto.
5235 * complaints.c (_initialize_complaints): Ditto.
5236 * maint.c (_initialize_maint_cmds): Ditto.
5237 * target.c (initialize_targets): Ditto.
5238 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5239 * infcall.c (_initialize_infcall): Ditto.
5240 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5241 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5242 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5243 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5244 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5246 2004-07-28 Andrew Cagney <cagney@gnu.org>
5248 * gdbtypes.c (lookup_primitive_typename): Delete function.
5249 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5250 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5251 * gdbtypes.c (lookup_typename): Ditto.
5252 * f-exp.y (yylex): Ditto.
5253 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5255 * scm-lang.c (c_builtin_types): Delete extern declaration.
5256 (scm_language_defn): Replace
5257 string_char_type and primitive_type_vector with
5258 la_language_arch_info.
5259 * jv-lang.c (java_language_defn): Replace
5260 string_char_type and primitive_type_vector with
5261 la_language_arch_info.
5262 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5263 c_builtin_types in comment.
5264 * c-lang.h (struct language_arch_info): Declare opaque.
5265 (c_language_arch_info): Declare.
5266 (c_builtin_types): Delete declaration.
5267 * c-lang.c (c_language_arch_info): Set string_char_type to
5268 builtin_char, not builtin_true_char. Make global.
5269 (c_builtin_types): Delete array.
5270 (asm_language_defn, minimal_language_defn): Replace
5271 string_char_type and primitive_type_vector with
5272 la_language_arch_info.
5274 2004-07-28 Andrew Cagney <cagney@gnu.org>
5276 * gdbtypes.h (struct builtin_type): Rename true_char to
5278 * gdbtypes.c (gdbtypes_post_init): Update.
5279 * c-lang.c (arch_info): New function.
5280 (enum c_primitive_types): New enum.
5281 (c_language_defn): Instead of string_char_type and
5282 primitive_type_vector set la_language_arch_info.
5284 2004-07-28 Andrew Cagney <cagney@gnu.org>
5286 * language.h (struct language_arch_info): Fix typo
5287 s/primative/primitive/.
5288 * gdbtypes.c (lookup_primitive_typename): Ditto.
5289 * language.c (language_lookup_primitive_type_by_name)
5290 (unknown_language_arch_info): Ditto.
5292 2004-07-27 Andrew Cagney <cagney@gnu.org>
5294 * defs.h (enum language): Add nr_languages.
5295 * language.h (struct language_arch_info): Define.
5296 (struct language_defn): Add la_language_arch_info.
5297 (language_lookup_primative_type_by_name): Declare.
5298 (language_string_char_type): Declare.
5299 * language.c (_initialize_language, language_gdbarch_post_init)
5300 (struct language_gdbarch, language_gdbarch_data): Implement
5301 per-architecture language information.
5302 (unknown_language_arch_info, language_string_char_type)
5303 (language_lookup_primative_type_by_name): New functions.
5304 (unknown_language_defn, auto_language_defn)
5305 (local_language_defn): Set la_language_arch_info to
5306 unknown_language_arch_info.
5307 (unknown_builtin_types): Delete.
5308 * gdbtypes.c (lookup_primitive_typename): Use
5309 language_lookup_primative_type_by_name.
5310 (create_string_type): Use language_string_char_type.
5311 * values.c (value_from_string): Use language_string_char_type.
5312 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5313 * p-lang.c (pascal_language_defn): Ditto.
5314 * m2-lang.c (m2_language_defn): Ditto.
5315 * jv-lang.c (java_language_defn): Ditto.
5316 * objc-lang.c (objc_language_defn): Ditto.
5317 * f-lang.c (f_language_defn): Ditto.
5318 * c-lang.c (c_language_defn, cplus_language_defn)
5319 (asm_language_defn, minimal_language_defn): Ditto.
5321 2004-07-27 Andrew Cagney <cagney@gnu.org>
5323 * gdbtypes.h (struct builtin_type): Declare.
5324 (builtin_type): Declare.
5325 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5326 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5327 (gdbtypes_post_init): New function.
5328 (builtin_type): New function.
5330 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5332 * remote-m32r-sdi.c: Fix breakpoint bug.
5333 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5334 recv_char_data, recv_long_data): New functions to replace communication
5337 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5339 Document PR threads/1650.
5340 * PROBLEMS (Threads): Document problem with many threads
5342 2004-07-26 Andrew Cagney <cagney@gnu.org>
5344 * gdb-mi.el: Move from here ...
5345 * mi/gdb-mi.el: ... to here.
5347 2004-07-26 Andrew Cagney <cagney@gnu.org>
5349 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5350 * main.c (captured_main): When in batch mode always detach.
5352 2004-07-26 Andrew Cagney <cagney@gnu.org>
5354 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5355 and h8300 as broken.
5356 * NEWS: END-OF-LIFE frame compatibility module.
5357 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5360 2004-07-26 Andrew Cagney <cagney@gnu.org>
5362 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5363 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5364 * wince.c (_initialize_wince): Update.
5365 * win32-nat.c (_initialize_win32_nat): Update.
5366 * varobj.c (_initialize_varobj): Update.
5367 * valops.c (_initialize_valops): Update.
5368 * utils.c (initialize_utils, initialize_utils): Update.
5369 * tui/tui-win.c (_initialize_tui_win): Update.
5370 * top.c (init_main): Update.
5371 * symfile.c (_initialize_symfile): Update.
5372 * source.c (_initialize_source): Update.
5373 * somsolib.c (_initialize_som_solib): Update.
5374 * solib.c (_initialize_solib): Update.
5375 * solib-frv.c (_initialize_frv_solib): Update.
5376 * serial.c (_initialize_serial): Update.
5377 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5378 * remote.c (_initialize_remote, _initialize_remote): Update.
5379 * remote-vx.c (_initialize_vx): Update.
5380 * remote-utils.c (_initialize_sr_support): Update.
5381 * remote-sds.c (_initialize_remote_sds): Update.
5382 * remote-mips.c (_initialize_remote_mips): Update.
5383 * remote-e7000.c (_initialize_remote_e7000): Update.
5384 * proc-api.c (_initialize_proc_api): Update.
5385 * printcmd.c: Update.
5386 * parse.c (_initialize_parse): Update.
5387 * pa64solib.c (_initialize_pa64_solib): Update.
5388 * p-valprint.c (_initialize_pascal_valprint): Update.
5389 * monitor.c (_initialize_remote_monitors): Update.
5390 * mips-tdep.c (_initialize_mips_tdep): Update.
5391 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5392 * maint.c (_initialize_maint_cmds): Update.
5393 * lin-lwp.c (_initialize_lin_lwp): Update.
5394 * language.c (_initialize_language): Update.
5395 * kod.c (_initialize_kod): Update.
5396 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5397 * i386-tdep.c (_initialize_i386_tdep): Update.
5398 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5399 * gdbarch.sh: Update.
5400 * gdbarch.c: Re-generate.
5401 * gdb-events.sh: Update.
5402 * gdb-events.c: Re-generate.
5403 * frame.c (_initialize_frame): Update.
5405 * demangle.c (_initialize_demangler): Update.
5406 * dcache.c (_initialize_dcache): Update.
5407 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5408 * cp-valprint.c (_initialize_cp_valprint): Update.
5409 * corefile.c (_initialize_core): Update.
5410 * command.h: Update.
5411 * cli/cli-decode.h: Update.
5412 * cli/cli-cmds.c (init_cli_cmds): Update.
5413 * charset.c (_initialize_charset): Update.
5414 * breakpoint.c (_initialize_breakpoint): Update.
5415 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5416 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5417 * aix-thread.c (_initialize_aix_thread): Update.
5419 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5421 Partial fix for PR backtrace/1718.
5422 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5423 that GCC migrates into the prolugue. Don't handle any
5424 instructions that clobber %ebx.
5426 2004-07-23 Andrew Cagney <cagney@gnu.org>
5428 Use regcache_raw_collect instead of regcache_collect.
5429 * regcache.h (regcache_collect): Delete declaration.
5430 * regcache.c (regcache_colect): Delete function.
5431 * win32-nat.c (do_child_store_inferior_registers): Update.
5432 * sol-thread.c (sol_thread_store_registers): Update.
5433 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5434 * rs6000-nat.c (store_register): Update.
5435 * remote.c (store_register_using_P, remote_store_registers): Update.
5436 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5437 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5438 (fill_vrregset, store_spe_registers, fill_gregset)
5439 (fill_gregset): Update.
5440 * nto-procfs.c (procfs_store_registers): Update.
5441 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5442 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5443 * m68klinux-nat.c (store_register, fill_gregset): Update.
5444 * m68k-tdep.c (fill_gregset): Update.
5445 * infptrace.c (store_register): Update.
5446 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5447 * i386-linux-nat.c (store_register, fill_gregset): Update.
5448 * hppa-linux-nat.c (fill_gregset): Update.
5449 * go32-nat.c (store_register): Update.
5450 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5451 (store_fp_regs): Update.
5452 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5453 (store_nwfpe_extended, store_fpregister, store_fpregs)
5454 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5455 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5456 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5457 (store_regs_user_thread, store_regs_kernel_thread): Update.
5459 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5461 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5462 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5464 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5465 member of `struct comp_unit'.
5467 2004-07-23 Andrew Cagney <cagney@gnu.org>
5469 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5470 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5472 2004-07-23 Martin Hunt <hunt@redhat.com>
5473 Kevin Buettner <kevinb@redhat.com>
5475 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5476 alignment was being added to the offset instead of multiplied.
5478 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5480 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5481 changed signal trampoline in OpenBSD 3.5-current.
5483 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5484 <machine/pcb.h> and "bsd-kvm.h".
5485 (sparc64nbsd_supply_pcb): New function.
5486 (_initialize_sparc64nbsd_nat): Renamed from
5487 _initialize_sparcnbsd_nat. Enable libkvm interface.
5488 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5489 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5490 (LOADLIBES): New variable.
5492 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5494 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5496 2004-07-21 Andrew Cagney <cagney@gnu.org>
5498 Use regcache_raw_supply instead of supply_register.
5499 * regcache.h (supply_register): Delete declaration.
5500 * regcache.c (supply_register): Delete function.
5501 * wince.c (do_child_fetch_inferior_registers): Update.
5502 * win32-nat.c (do_child_fetch_inferior_registers)
5503 (fetch_elf_core_registers): Update.
5504 * v850ice.c (v850ice_fetch_registers): Update.
5505 * thread-db.c (thread_db_store_registers): Update.
5506 * sol-thread.c (sol_thread_store_registers): Update.
5507 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5508 * rs6000-nat.c (fetch_register): Update.
5509 * rom68k-rom.c (rom68k_supply_one_register): Update.
5510 * remote.c (remote_wait, remote_async_wait): Update.
5511 * remote-st.c (get_hex_regs): Update.
5512 * remote-sim.c (gdbsim_fetch_register): Update.
5513 * remote-sds.c (sds_fetch_registers): Update.
5514 * remote-rdp.c (remote_rdp_fetch_register): Update.
5515 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5516 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5517 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5518 * remote-hms.c (init_hms_cmds): Update.
5519 * remote-est.c (init_est_cmds): Update.
5520 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5521 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5522 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5523 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5524 (fetch_register, supply_vrregset, supply_vrregset)
5525 (fetch_spe_registers): Update.
5526 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5527 * monitor.c (monitor_supply_register): Update.
5528 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5529 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5530 (mipsnbsd_supply_fpreg): Update.
5531 * mips-nat.c (fetch_inferior_registers)
5532 (fetch_core_registers): Update.
5533 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5534 (supply_fpregset, mips64_supply_gregset)
5535 (mips64_supply_fpregset): Update.
5536 * m68klinux-nat.c (fetch_register, supply_gregset)
5537 (supply_fpregset): Update.
5538 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5539 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5540 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5541 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5542 * infptrace.c (fetch_register): Update.
5543 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5544 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5545 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5546 (gnu_fetch_registers, gnu_store_registers): Update.
5547 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5548 * i386-linux-nat.c (fetch_register, supply_gregset)
5549 (dummy_sse_values): Update.
5550 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5551 * hppah-nat.c (fetch_register): Update.
5552 * hppa-linux-nat.c (fetch_register, supply_gregset)
5553 (supply_fpregset): Update.
5554 * go32-nat.c (fetch_register): Update.
5555 * dve3900-rom.c (fetch_bitmapped_register)
5556 (_initialize_r3900_rom): Update.
5557 * cris-tdep.c (supply_gregset): Update.
5558 * abug-rom.c (init_abug_cmds): Update.
5559 * core-aout.c (fetch_core_registers): Update.
5560 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5561 (fetch_register, fetch_fp_register): Update.
5562 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5563 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5564 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5565 * alphanbsd-tdep.c (fetch_core_registers): Update.
5566 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5567 * alpha-nat.c (fetch_osf_core_registers)
5568 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5569 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5570 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5572 2004-07-21 Andrew Cagney <cagney@gnu.org>
5574 * PROBLEMS: Mention breakpoints/1702.
5575 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5576 that is known to work.
5578 2004-07-21 Andrew Cagney <cagney@gnu.org>
5580 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5581 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5582 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5583 (handle_inferior_event): Wrap call to deprecated
5584 IGNORE_HELPER_CALL in #ifdef.
5585 * config/mips/tm-nbsd.h: Update.
5587 2004-07-20 Jim Blandy <jimb@redhat.com>
5589 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5590 bfd_mach_ppc has no segment registers.
5592 Include PowerPC SPR numbers for special-purpose registers.
5593 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5594 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5595 new member in initializer.
5596 (S, S4, SN4, S64): New macros for defining special-purpose
5598 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5599 registers_403, registers_403GC, registers_505, registers_860,
5600 registers_601, registers_602, registers_603, registers_604,
5601 registers_750, registers_e500): Use them.
5603 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5604 replace references with expression used to initialize variable.
5606 2004-07-20 Andrew Cagney <cagney@gnu.org>
5608 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5610 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5611 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5612 (s390_sigtramp_frame_sniffer): Update.
5613 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5614 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5615 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5616 (mips32_fetch_instruction): Update.
5617 * mcore-tdep.c (get_insn): Update.
5618 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5619 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5620 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5621 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5622 (i386_linux_rt_sigtramp_start): Update.
5623 * i386-linux-nat.c (child_resume): Update.
5624 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5625 * hppa-linux-tdep.c (insns_match_pattern): Update.
5626 * gdbcore.h: Update.
5627 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5628 * frame.c (safe_frame_unwind_memory): Update.
5629 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5630 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5631 * alpha-tdep.c (alpha_read_insn): Update.
5633 2004-07-20 Andrew Cagney <cagney@gnu.org>
5635 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5636 containing both bytes and mask. Add "frame_type".
5637 * tramp-frame.c (tramp_frame_start): Update.
5638 (tramp_frame_prepend_unwinder): Update.
5639 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5640 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5641 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5642 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5644 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5646 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5647 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5648 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5649 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5651 2004-07-17 Andrew Cagney <cagney@gnu.org>
5653 * NEWS, PROBLEMS: Update for 6.2.
5655 * README: Update to 6.2.
5657 * utils.c (xvasprintf): Call xstrvprintf.
5659 * parse.c: Update copyright.
5660 (null_post_parser): Eliminate ARGSUSED.
5662 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5663 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5664 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5666 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5667 * ppc-linux-nat.c: Use "Linux kernel".
5668 * hppa-linux-tdep.c: Use GNU/Linux.
5669 * hppa-linux-nat.c: Use GNU/Linux.
5670 * dwarfread.c: Add [sic] to use of Linux.
5672 * hppa-linux-nat.c: Do not include <string.h>.
5673 (supply_fpregset): Remove "register" attribute.
5675 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5677 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5679 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5680 * configure, config.in: Regenerated.
5682 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5684 (vaxbsd_supply_pcb): New function.
5685 (_initialize_vaxbsd_nat): New prototype and function.
5686 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5688 (LOADLIBES): New variable.
5689 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5690 (LOADLIBES): New variable.
5691 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5692 (LOADLIBES): New variable.
5693 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5695 2004-07-16 Andrew Cagney <cagney@gnu.org>
5697 * defs.h (event_loop_p): Replace variable declaration with macro,
5699 * main.c (captured_main): Delete options "-async" and "-noasync".
5700 (event_loop_p): Delete variable.
5701 * NEWS: Mention that "-async" and "-noasync" were removed.
5703 2004-07-16 Andrew Cagney <cagney@gnu.org>
5705 * remote-m32r-sdi.c: Re-indent.
5707 2004-07-16 Jim Blandy <jimb@redhat.com>
5709 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5710 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5711 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5712 missing MPC823 SPRs.
5713 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5714 incorrect. (This was corrected in GDB's register name tables on
5717 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5718 should be "esasrr" ("ESA Save and Restore Register").
5720 2004-07-16 Andrew Cagney <cagney@gnu.org>
5722 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5723 calls, no longer applicable. Update comments and rename parameter
5724 "step_frame" to "return_frame".
5726 2004-07-16 Andrew Cagney <cagney@gnu.org>
5728 * frame.c (fprint_field): New function.
5729 (fprint_frame_id): Use fprint_field.
5731 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5733 * ada-lang.c (ada_language_defn): Remove commented out code.
5735 2004-07-15 Jim Blandy <jimb@redhat.com>
5737 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5738 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5740 2004-07-14 Jim Blandy <jimb@redhat.com>
5742 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5744 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5746 * ppc-tdep.h (ppc_num_srs): New enum constant.
5748 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5749 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5750 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5751 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5752 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5753 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5754 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5755 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5756 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5757 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5758 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5759 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5760 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5761 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5762 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5763 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5764 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5765 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5766 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5767 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5768 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5769 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5770 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5771 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5772 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5773 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5774 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5775 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5776 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5777 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5778 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5779 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5780 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5781 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5782 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5783 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5784 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5785 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5786 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5787 special-purpose register numbers.
5789 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5790 manual mentions 'md_twb', but many mention 'm_twb', and at that
5791 point in the register list.)
5793 2004-07-14 Andrew Cagney <cagney@gnu.org>
5795 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5796 instead of "internal-error".
5798 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5800 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5801 that was inserted inside a comment.
5803 2004-07-10 Randolph Chung <tausq@debian.org>
5805 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5807 (hppa_hpux_push_dummy_code): New function.
5808 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5809 Set find_global_pointer method.
5811 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5813 * NEWS: Mention BSD libkvm interface.
5815 2004-07-10 Michael Snyder <msnyder@redhat.com>
5817 * symfile.c (generic_load): Comment typo.
5818 * stack.c (get_selected_block): Ditto.
5819 * regcache.c (regcache_cooked_read): Ditto.
5820 * monitor.c (monitor_debug): Ditto.
5821 * mips-tdep.c (mips_read_pc): Ditto.
5822 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5823 * gdb_mbuild.sh: Ditto.
5824 * gdbarch.sh: Ditto.
5827 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5829 * ada-tasks.c: Remove file.
5831 Remove ARI problems:
5833 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5836 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5838 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5839 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5840 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5841 (UMIN_OF_SIZE): Remove.
5842 (max_of_type): New function to replace orphan macro in gdbtypes.h
5843 (min_of_type): Ditto.
5844 (discrete_type_high_bound): Use max_of_type.
5845 (discrete_type_low_bound): Use min_of_type.
5846 (possible_user_operator_p): Move operator to beginning of line.
5847 (ada_is_variant_part): Ditto.
5848 (ensure_lval): Rewrite to avoid deprecated operations.
5849 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5850 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5851 (ada_enum_name): Remove assignments in 'if' statements.
5852 (build_ada_types): Add gdbarch parameter.
5853 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5854 with gdbarch_data_register_post_init.
5855 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5858 * ada-valprint.c (inspect_it): Remove declaration.
5859 (repeat_count_threshold): Remove declaration.
5860 (ada_print_floating): Remove assignments in 'if' statements.
5861 (print_str): Move operator to beginning of line.
5863 2004-07-08 Jim Blandy <jimb@redhat.com>
5865 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5867 2004-07-08 Bob Rossi <bob@brasko.net>
5869 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5871 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5873 * language.h (struct_language_defn): Add new function pointer:
5874 la_class_name_from_physname. Also add new prototype for
5875 language_class_name_from_physname.
5876 * language.c (language_class_name_from_physname): New function.
5877 (unk_lang_class_name): Ditto.
5878 (unknown_language_defn, auto_language_defn): Change
5879 to add unk_lang_class_name function pointer for
5880 la_class_name_from_physname.
5881 (local_language_defn): Ditto.
5882 * dwarf2read.c (guess_structure_name): Change to call
5883 language_class_name_from_physname.
5884 (determine_class_name): Ditto.
5885 * cp-support.c (class_name_from_physname): Renamed.
5886 (cp_class_name_from_physname): New name of function.
5887 * cp-support.h: Ditto.
5888 * c-lang.c (c_language_defn): Change to add NULL
5889 for class_name_from_physname function pointer.
5890 (cplus_language_defn): Change to add cp_class_name_from_physname.
5891 * jv-lang.c (java_class_name_physname): New function.
5892 (java_find_last_component): New static routine.
5893 (java_language_defn): Add java_class_name_from_physname pointer.
5894 * ada-lang.c (ada_language_defn): Change to add NULL
5895 for class_name_from_physname function pointer.
5896 * f-lang.c (f_language_defn): Ditto.
5897 * m2-lang.c (m2_language_defn): Ditto.
5898 * objc-lang.c (objc_language_defn): Ditto.
5899 * p-lang.c (pascal_language_defn): Ditto.
5900 * scm-lang.c (scm_language_defn): Ditto.
5902 2004-07-06 Andrew Cagney <cagney@gnu.org>
5904 Patch from Bart Robinson.
5905 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5906 (O_LARGEFILE): Define to 0, if not defined.
5908 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5910 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5911 <machine/pcb.h> and "bsd-kvm.h".
5912 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5913 (m68kbsd_supply_pcb): New function.
5914 (_initialize_m68kbsd_nat): New prototype and function.
5915 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5916 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5917 (LOADLIBES): New variable.
5918 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5919 (LOADLIBES): New variable.
5921 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5923 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5925 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5927 (bsd_kvm_cmdlist): New variable.
5928 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5929 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5930 command and "kvm proc" command.
5931 * Makefile.in (bsd-kvm.o): Update dependencies.
5933 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5935 * osabi.c: Update copyright year.
5936 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5937 notes if EI_OSABI is set to ELFOSABI_HPUX.
5939 2004-07-01 Michael Snyder <msnyder@redhat.com>
5941 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5942 that seems to have gotten whacked out of line.
5944 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5946 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5949 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5951 * ada-lang.c (decode_packed_array): Minor change to comment.
5952 (ada_value_slice_ptr): New function.
5953 (ada_value_slice): New function.
5954 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5955 test. Don't know why it is there.
5956 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5957 to avoid dereferencing huge arrays from which one is slicing.
5958 (empty_array): Correct to return an array rather than
5960 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5961 on empty arrays (let'em use 'FIRST instead).
5963 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5965 Address complaints from gdb_ari.sh:
5967 * ada-exp.y: Include gdb_string.h rather than string.h.
5968 (convert_char_literal): Reformat declaration.
5969 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5970 * ada-lex.l: Change use of free to xfree (the macro would do so
5971 anyway, but this is harmless).
5972 Include gdb_string.h rather than string.h.
5973 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5975 * ada-lang.c (parse): Remove K&Rism in parameter list.
5976 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5978 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5980 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5983 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5985 * alphabsd-nat.c: Update copyright year.
5986 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5988 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5990 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5991 (i386_cygwin_in_solib_call_trampoline): New function.
5992 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5993 and skip_trampoline_code gdbarch methods.
5995 2004-06-29 Jim Blandy <jimb@redhat.com>
5997 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5998 name actually used in the dependency lists.
6000 2004-06-29 Randolph Chung <tausq@debian.org>
6002 * NEWS (New native configurations): Mention GNU/Linux/hppa.
6004 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
6006 * win32-nat.c (child_pid_to_exec_file): New function.
6007 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
6010 2004-06-28 Andrew Cagney <cagney@gnu.org>
6012 * defs.h (xstrvprintf): Declare.
6013 * utils.c (xstrvprintf): New function.
6014 (internal_vproblem, xstrprintf, xasprintf)
6015 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
6016 * serial.c (serial_printf): Ditto.
6017 * complaints.c (vcomplaint): Ditto.
6019 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
6021 * infcmd.c (attach_command): Move call to target_terminal_inferior
6022 behind loading symbol table.
6024 2004-06-28 Andrew Cagney <cagney@gnu.org>
6026 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
6027 change - add back extern deprecated_ui_loop_hook declaration.
6029 2004-06-28 Andrew Cagney <cagney@gnu.org>
6031 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
6033 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
6034 (c_value_of_variable): Ditto.
6035 * utils.c (internal_vproblem): Ditto.
6036 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
6037 * remote.c (add_packet_config_cmd): Ditto.
6038 * remote-rdp.c (rdp_set_command_line): Ditto.
6039 * regcache.c (regcache_dump): Ditto.
6040 * frv-tdep.c (new_variant, new_variant): Ditto.
6041 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
6042 (fbsd_find_memory_regions): Ditto.
6043 * breakpoint.c (create_thread_event_breakpoint)
6044 (create_breakpoints): Ditto.
6045 * aix-thread.c (aix_thread_pid_to_str): Ditto.
6046 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
6048 2004-06-28 Joel Brobecker <brobecker@gnat.com>
6050 * ada-lang.c: Re-indent file, with some massaging to help indent
6051 a bit when the result is otherwise really too ugly.
6053 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
6055 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
6056 code_addr_p and special_addr_p to 'unsigned int'.
6058 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6060 * i386v4-nat.c: Update copyright year and tweak comment.
6061 (regmap): Remove trailing comma.
6062 (supply_gregset): Rename local variable i to regnum. Call
6063 regcache_raw_supply instead of supply_register.
6064 (fill_gregset): Rename argument regno to regnum. Call
6065 regcache_raw_collect instead of regcache_collect.
6067 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
6069 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
6071 (frame_id_build, frame_id_build_special): Update comments.
6072 (frame_id_build_wild): New prototype.
6073 * frame.c (frame_id_build, frame_id_build_special): Fill in new
6074 struct frame_id fields.
6075 (frame_id_build_wild): New function.
6076 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
6078 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6080 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
6083 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6085 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
6087 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6089 * ada-lang.c: Re-indent file.
6091 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6093 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
6094 (no_symtab_msg): Likewise.
6096 2004-06-27 Andreas Schwab <schwab@suse.de>
6098 * source.c: Fix whitespace.
6100 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6102 * configure.in: Include <sys/param.h> for td_pcb test.
6103 * configure: Regenerated.
6105 * i386nbsd-nat.c: New file.
6106 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
6107 i386obsd-nat.c and i386obsd-tdep.c.
6108 (i386nbsd-nat.o): New dependency.
6109 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
6111 (LOADLIBES): New variable.
6112 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6114 (LOADLIBES): New variable.
6116 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6117 (LOADLIBES): New variable.
6119 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6120 fetching from BSD_KVM_PADDR. Correctly lookup address for
6123 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6125 (amd64fbsd_supply_pcb): New funcion.
6126 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6128 2004-06-27 <david@streamline-computing.com>
6130 Partial fix for PR cli/1056.
6131 * valarith.c: Check for zero in division and remainder
6134 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6136 * i387-tdep.c: Remove excessive whitespace.
6138 2004-06-26 Andrew Cagney <cagney@gnu.org>
6140 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6141 * gdb-events.h, gdb-events.c: Re-generate.
6142 * tui/tui-hooks.c (tui_install_hooks): Update.
6143 (tui_remove_hooks): Update.
6144 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6146 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6148 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6149 (gregset_t, fpregset_t): Remove typedefs.
6150 (REG_OFFSET): Rename argument.
6151 (amd64bsd_r_reg_offset): Rename from reg_offset.
6152 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6154 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6156 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6158 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6160 * vax-tdep.c: Tweak comment.
6162 Add OpenBSD/hppa support.
6163 * NEWS (New native configurations): Mention OpenBSD/hppa.
6164 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6165 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6167 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6168 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6169 * configure.host: Add hppa*-*-openbsd*.
6170 * configure.tgt: Add hppa*-*-openbsd*.
6172 2004-06-25 Andrew Cagney <cagney@gnu.org>
6174 * defs.h (deprecated_ui_loop_hook): Deprecated.
6175 * wince.c (child_wait): Update.
6176 * win32-nat.c (child_wait): Update.
6177 * v850ice.c (v850ice_wait): Update.
6178 * top.c (deprecated_ui_loop_hook): Update.
6180 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6181 (do_unix_readchar): Update.
6182 * ser-tcp.c (net_open): Update.
6183 * remote-sim.c (gdb_os_poll_quit): Update.
6184 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6186 2004-06-24 Andrew Cagney <cagney@gnu.org>
6188 * defs.h (deprecated_pre_add_symbol_hook)
6189 (deprecated_post_add_symbol_hook): Deprecated.
6190 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6191 (symbol_file_add_with_addrs_or_offsets): Update references.
6193 2004-06-24 Andrew Cagney <cagney@gnu.org>
6195 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6196 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6197 * wince.c (ui_loop_hook): Delete extern declaration.
6198 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6199 * v850ice.c (ui_loop_hook): Delete extern declaration..
6200 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6201 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6202 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6203 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6204 ui_loop_hook declaration.
6206 2004-06-24 Andrew Cagney <cagney@gnu.org>
6208 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6209 entry_func_highpc fields.
6210 * objfiles.c (init_entry_point_info): Do not clear
6211 entry_func_lowpc and entry_func_highpc.
6212 (objfile_relocate): Do not relocate entry_func_lowpc and
6214 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6216 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6218 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6219 entry_func_lowpc and entry_func_highpc with call to
6222 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6224 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6225 quad-precision floating point arguments in registers.
6227 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6229 From Michael Mueller <m.mueller99@kay-mueller.de>:
6230 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6233 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6235 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6237 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6238 untriggered watchpoints to a separate if clause. Update function
6239 comment regarding STOPPED_BY_WATCHPOINT argument.
6241 2004-06-22 Jim Blandy <jimb@redhat.com>
6243 * gdbarch.sh: Doc fix.
6245 2004-06-21 Martin Hunt <hunt@redhat.com>
6246 Kevin Buettner <kevinb@redhat.com>
6248 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6249 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6250 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6251 to set_gdbarch_sp_regnum(). Use cooked register number.
6252 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6254 2004-06-21 Andrew Cagney <cagney@gnu.org>
6256 * gdbarch.sh: When the macro field is empty, do not generate a
6257 macro definition. When the macro field is "=", generate the macro
6258 name from the upper-case function name.
6259 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6260 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6261 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6262 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6263 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6264 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6265 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6266 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6267 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6268 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6269 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6270 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6271 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6272 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6273 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6274 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6275 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6276 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6277 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6278 (DEPRECATED_USE_STRUCT_CONVENTION)
6279 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6280 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6281 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6282 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6283 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6284 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6285 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6286 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6287 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6288 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6289 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6290 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6291 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6292 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6293 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6294 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6295 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6296 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6298 2004-06-21 Andrew Cagney <cagney@gnu.org>
6300 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6301 macro name, and the function rather than macro value. Only wrap
6302 macro print statements in #ifdef. Move format logic to where it
6304 * gdbarch.c: Re-generate.
6306 * gdbarch.sh (read): Delete "print_p" and "description", add
6307 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6308 Delete references to print_p.
6309 (TARGET_ARCHITECTURE): Delete print predicate.
6310 * gdbarch.c: Re-generate.
6312 * gdbarch.sh: Check that multi-arch methods do not provide a
6314 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6315 (print_registers_info, print_float_info, print_vector_info)
6316 (adjust_breakpoint_address, remote_translate_xfer_address)
6317 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6318 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6319 name from the multi-arch definition.
6321 2004-06-20 Andrew Cagney <cagney@gnu.org>
6323 * gdbarch.sh: Sort by the function, instead of macro name.
6324 * gdbarch.c: Re-generate.
6326 2004-06-20 Andrew Cagney <cagney@gnu.org>
6328 * gdbarch.sh: Use the function, instead of macro name in
6329 errors and the log file.
6330 (return_value): Remove stray ":" in spec.
6332 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6333 * gdbarch.h, gdbarch.c: Re-generate.
6334 * Makefile.in (arch-utils.o): Update dependencies.
6335 * values.c (using_struct_return): Move code calling
6336 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6337 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6338 to legacy_return_value, simplify.
6339 * infcmd.c (print_return_value): Move code calling
6340 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6341 to legacy_return_value, simplify.
6342 * infcall.c (call_function_by_hand): Move code calling
6343 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6344 * arch-utils.c: Update copyright. Include "gdbcore.h".
6345 (legacy_return_value): New function.
6346 * arch-utils.h: Update copyright.
6347 (legacy_return_value): Declare.
6349 2004-06-20 Andrew Cagney <cagney@gnu.org>
6351 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6352 * gdbarch.h, gdbarch.c: Re-generate.
6353 * values.c (using_struct_return): Update call.
6354 * mcore-tdep.c: Update comment.
6355 * infcall.c (call_function_by_hand): Update comment.
6356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6357 * arch-utils.h (always_use_struct_convention): Update.
6358 * v850-tdep.c (v850_gdbarch_init): Update.
6359 * sh64-tdep.c (sh64_gdbarch_init): Update.
6360 * sh-tdep.c (sh_gdbarch_init): Update.
6361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6362 * mips-tdep.c (mips_gdbarch_init): Update.
6363 * mcore-tdep.c (mcore_gdbarch_init): Update.
6364 * m32r-tdep.c (m32r_gdbarch_init): Update.
6365 * ia64-tdep.c (ia64_gdbarch_init): Update.
6366 * h8300-tdep.c (h8300_gdbarch_init): Update.
6367 * frv-tdep.c (frv_gdbarch_init): Update.
6368 * cris-tdep.c (cris_gdbarch_init): Update.
6369 * arm-tdep.c (arm_gdbarch_init): Update.
6370 * alpha-tdep.c (alpha_gdbarch_init): Update.
6372 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6374 * PROBLEMS: Add more specific information, and a work-around,
6377 2004-06-18 Andrew Cagney <cagney@gnu.org>
6379 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6380 * gdbarch.h, gdbarch.c: Re-generate.
6381 * ada-lang.c (ada_finish_decode_line_1): Update.
6382 * infrun.c (handle_inferior_event): Update.
6383 * infcall.c (find_function_addr): Update.
6384 * linespec.c (minsym_found): Update.
6385 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6387 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6388 * cli/cli-cmds.c (disassemble_command): Update.
6389 * vax-tdep.c (vax_gdbarch_init): Update.
6391 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6393 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6395 2004-06-17 Andrew Cagney <cagney@gnu.org>
6397 GDB 6.1.1 released from the GDB 6.1 branch.
6398 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6401 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6404 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6405 operation as a uleb128. Found by Michael Coulter.
6407 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6409 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6411 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6412 to ada-lang.h; this is needed to be able to implement the kill command
6415 (task_entry): Ditto.
6417 (ada_build_task_list): Ditto.
6419 * ada-lang.c: Conditionalize routines and data structures related
6420 to breakpoints, exceptions, completion, and symbol caching on
6421 GNAT_GDB, since these are not yet used in the submitted public sources.
6422 (ada_main_name): Editorial: Move definition out of exception-related
6425 2004-06-15 Andrew Cagney <cagney@gnu.org>
6427 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6428 deprecated_pc_in_call_dummy.
6430 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6432 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6433 bfd_get_section_size_before_reloc or _raw_size.
6434 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6435 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6436 (dwarf2_read_section): Likewise.
6437 * elfread.c (elf_locate_sections): Likewise.
6438 * gcore.c (derive_heap_segment): Likewise.
6439 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6440 * remote-e7000.c (e7000_load): Likewise.
6441 * remote-m32r-sdi.c (m32r_load): Likewise.
6442 * remote-mips.c (mips_load_srec): Likewise.
6443 (pmon_load_fast): Likewise.
6444 * remote.c (compare_sections_command): Likewise.
6445 * symfile.c (add_section_size_callback): Likewise.
6446 (load_section_callback): Likewise.
6447 (pc_in_unmapped_range): Likewise.
6448 (pc_in_mapped_range): Likewise.
6449 (sections_overlap): Likewise.
6450 (list_overlays_command): Likewise.
6451 (simple_overlay_update_1): Likewise.
6452 (simple_overlay_update): Likewise.
6453 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6454 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6456 2004-06-14 Randolph Chung <tausq@debian.org>
6458 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6459 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6461 (hppa_hpux_inferior_created): New function.
6462 (hppa_hpux_init_abi): Register observer.
6463 * symfile.c (hp_cxx_exception_support_initialized)
6464 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6465 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6467 2004-06-14 Randolph Chung <tausq@debian.org>
6469 * MAINTAINERS (Write After Approval): Alphabetize my entry
6472 2004-06-14 Andrew Cagney <cagney@gnu.org>
6474 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6475 testsuite maintainer.
6477 2004-06-13 Andrew Cagney <cagney@gnu.org>
6479 * infcmd.c (print_return_value): Fix logic, allow
6480 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6482 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6483 defining any macros.
6484 * gdbarch.h: Re-generate.
6486 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6487 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6488 * gdbarch.h: Re-generate.
6490 * values.c (generic_use_struct_convention): Don't check gcc_p.
6492 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6493 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6494 * gdbarch.h, gdbarch.c: Regenerate.
6495 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6496 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6498 deprecated_max_register_raw_size and
6499 deprecated_max_register_virtual_size.
6500 * v850-tdep.c (v850_gdbarch_init): Ditto.
6501 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6502 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6503 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6504 * cris-tdep.c (cris_gdbarch_init): Ditto.
6506 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6507 * gdbarch.h, gdbarch.c: Re-generate.
6508 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6509 (m68hc11_use_struct_convention): Delete function.
6510 (m68hc11_extract_struct_value_address): Delete function.
6511 (m68hc11_return_value): New function.
6512 (m68hc11_gdbarch_init): Instead of store_return_value,
6513 extract_return_value, return_value_on_stack,
6514 deprecated_extract_struct_value_address and use_struct_convention,
6516 * values.c (using_struct_return): Do not call
6517 RETURN_VALUE_ON_STACK.
6518 * arch-utils.h (generic_return_value_on_stack_not): Delete
6520 * arch-utils.c (generic_return_value_on_stack_not): Delete
6523 2004-06-12 Andrew Cagney <cagney@gnu.org>
6525 * values.c (register_value_being_returned): Delete function.
6526 * infcmd.c (legacy_return_value): Delete function.
6527 * infcall.c (call_function_by_hand): Inline
6528 "register_value_being_returned", simplify.
6529 * values.c (using_struct_return): Update comment, refer to
6530 print_return_value instead of register_value_being_returned.
6531 * infcmd.c (print_return_value): Inline calls to
6532 register_value_being_returned and legacy_return_value. Simplify.
6534 2004-06-11 Randolph Chung <tausq@debian.org>
6536 * somread.c (som_symtab_read): Exclude gcc local symbols.
6538 2004-06-11 Randolph Chung <tausq@debian.org>
6540 * infrun.c (handle_inferior_event): Handle the case when a
6541 trampoline ends up in the runtime resolver, and if the trampoline
6542 has no name. Rearrange the code so that all the trampoline
6543 processing happens before other step-out-of-range handling.
6545 2004-06-11 Martin Hunt <hunt@redhat.com>
6547 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6550 2004-06-10 Andrew Cagney <cagney@gnu.org>
6552 * blockframe.c (legacy_inside_entry_func): Delete.
6553 (legacy_frame_chain_valid): Inline call to
6554 legacy_inside_entry_func, simplify.
6556 2004-06-10 Bob Rossi <bob@brasko.net>
6558 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6559 * dwarf2read.c (partial_die_info): Add dirname field.
6560 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6561 (read_partial_die): Save away DW_AT_comp_dir.
6562 * defs.h (symtab_to_filename): Removed.
6563 * source.c (find_and_open_source): Added.
6564 (open_source_file): Just calls find_and_open_source.
6565 (symtab_to_filename): Removed.
6566 (symtab_to_fullname, psymtab_to_fullname): Added.
6567 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6568 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6570 * symtab.h (partial_symtab): Add dirname field.
6571 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6572 (mi_cmd_file_list_exec_source_file): Call new function
6573 symtab_to_fullname to find fullname.
6574 (mi_cmd_file_list_exec_source_files): Added.
6575 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6576 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6578 2004-06-10 Andrew Cagney <cagney@gnu.org>
6580 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6581 to generic_use_struct_convention, the default value.
6583 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6586 * ns32k-tdep.c (ns32k_push_arguments): New function.
6587 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6588 * infcall.c (call_function_by_hand): Call error instead of
6589 legacy_push_arguments.
6590 * value.h (legacy_push_arguments): Delete declaration.
6591 * valops.c (legacy_push_arguments): Delete function.
6592 (value_push): Delete function.
6594 2004-06-10 Brian Ford <ford@vss.fsi.com>
6596 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6597 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6599 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6601 2004-06-10 Andrew Cagney <cagney@gnu.org>
6603 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6604 * gdbarch.h, gdbarch.c: Re-generate.
6605 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6607 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6608 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6609 deprecated_pc_in_call_dummy instead of
6610 DEPRECATED_PC_IN_CALL_DUMMY.
6611 (arm_skip_prologue): Ditto.
6612 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6613 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6614 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6615 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6617 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6618 (sh64_init_extra_frame_info, sh64_get_saved_register)
6619 (sh64_pop_frame): Ditto.
6620 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6621 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6622 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6623 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6624 (h8300_pop_frame): Ditto.
6625 * blockframe.c (legacy_inside_entry_func)
6626 (legacy_frame_chain_valid): Ditto.
6627 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6628 to deprecated_pc_in_call_dummy.
6630 2004-06-09 Andrew Cagney <cagney@gnu.org>
6632 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6633 provide a default value.
6634 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6635 * gdbarch.h, gdbarch.c: Re-generate.
6636 * arch-utils.c (generic_convert_register_p): Rename
6637 legacy_convert_register_p
6638 (legacy_register_to_value, legacy_value_to_register): Delete
6640 * arch-utils.h (generic_convert_register_p): Rename
6641 legacy_convert_register_p.
6642 (legacy_register_to_value, legacy_value_to_register): Delete
6645 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6646 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6647 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6648 * gdbarch.h, gdbarch.c: Re-generate.
6649 * infcmd.c (default_print_registers_info): Simplify.
6650 * findvar.c (value_of_register): Simplify.
6651 * mi/mi-main.c (get_register): Simplify.
6652 * arch-utils.c (legacy_convert_register_p): Always return 0.
6653 (legacy_register_to_value, legacy_value_to_register): Always call
6656 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6657 #ifdef CLEAR_INSN_CACHE code.
6658 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6659 Delete #ifdef CLEAR_DEFERRED_STORES code.
6661 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6663 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6665 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6667 * config/mips/mipsv4.mh: Delete file.
6669 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6671 (hpread_adjust_stack_address): Delete declaration.
6673 2004-06-08 Andrew Cagney <cagney@gnu.org>
6675 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6676 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6677 PTRACE_ATTACH / PTRACE_DETACH available call error.
6678 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6679 * infttrace.c (update_thread_state_after_attach, attach, detach):
6680 Remove #ifdef wrappers.
6681 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6682 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6683 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6684 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6685 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6686 * config/nm-linux.h (ATTACH_DETACH): Delete.
6687 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6688 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6689 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6690 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6691 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6693 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6695 * configure.in: Set $configdir to the right OS specific value.
6696 Use value when setting $tcldir and $tkdir.
6697 * configure: Regenerate.
6699 2004-06-06 Paul Brook <paul@codesourcery.com>
6701 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6704 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6706 * ada-lang.c (lookup_symbol_in_language): New function to allow
6707 re-use of another language's symbol lookup code. (Placed here
6708 temporarily while Ada support is being integrated into the public
6710 (restore_language): New auxiliary function for
6711 lookup_symbol_in_language.
6712 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6713 temporarily while Ada support is being integrated into the public
6716 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6718 * Makefile.in (check//%): New.
6720 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6721 (mn10300_store_return_value): Rewrite.
6722 (mn10300_type_align): New.
6723 (mn10300_use_struct_convention): Rewrite.
6724 (mn10300_return_value): New, using all of the above.
6725 (mn10300_pop_frame_regular): Add saved_regs_size.
6726 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6728 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6729 regs if PC is on movm.
6731 2004-06-07 Jim Blandy <jimb@redhat.com>
6733 Add native Linux support for the PowerPC E500.
6734 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6735 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6736 all architectures except the E500.
6737 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6739 (struct gdb_evrregset_t): New type.
6740 (have_ptrace_getsetevrregs): New variable.
6741 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6742 fetch_spe_registers): New functions.
6743 (fetch_register): Call fetch_spe_register as appropriate.
6744 Assert that we're only passed raw register numbers.
6745 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6746 Don't fetch gprs if they're pseudoregisters.
6747 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6748 store_spe_registers): New functions.
6749 (store_register): Call store_spe_register as appropriate.
6750 Assert that we're only passed raw register numbers.
6751 (store_ppc_registers): Call store_spe_registers as appropriate.
6752 Don't store gprs if they're pseudoregisters.
6754 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6756 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6757 struct if one exists, even if we are dealing with a zombie thread.
6759 2004-06-07 Andrew Cagney <cagney@gnu.org>
6761 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6762 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6763 Rename PC_REQUIRES_RUN_BEFORE_USE.
6764 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6767 2004-06-07 Randolph Chung <tausq@debian.org>
6769 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6770 unwinding after sp has been saved to the stack but before the end
6771 of the prologue, and after the fp has been modified but before it has
6772 been saved to the stack.
6773 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6774 Remove superfluous definitions.
6775 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6777 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6779 Committed by Randolph Chung.
6780 * hppa-linux-nat.c: Include the correct version of the header file
6781 depending on the kernel version.
6783 2004-06-06 Randolph Chung <tausq@debian.org>
6785 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6786 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6788 2004-06-06 Randolph Chung <tausq@debian.org>
6790 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6791 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6792 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6793 * hppa-tdep.c (hppa_symbol_address): New function definition.
6794 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6796 2004-06-06 Randolph Chung <tausq@debian.org>
6798 * hppa-tdep.h (struct value): Forward declaration.
6799 (gdbarch_tdep): Define tdep find_global_pointer method.
6800 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6801 associated with the function we are trying to call, and write it
6803 (hppa32_convert_from_funct_ptr_addr): New function.
6804 (hppa_find_global_pointer): New function.
6805 (hppa_gdbarch_init): Set default find_global_pointer method; set
6806 convert_from_func_ptr_addr method.
6807 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6808 (hppa_linux_init_abi): Set find_global_pointer method.
6809 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6811 2004-06-06 Randolph Chung <tausq@debian.org>
6813 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6814 to struct value *function.
6815 * gdbarch.c: Regenerate.
6816 * gdbarch.h: Likewise.
6817 * infcall.c (call_function_by_hand): Pass entire function value
6820 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6821 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6822 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6823 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6824 * arm-tdep.c (arm_push_dummy_call): Likewise.
6825 * avr-tdep.c (avr_push_dummy_call): Likewise.
6826 * cris-tdep.c (cris_push_dummy_call): Likewise.
6827 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6828 * frv-tdep.c (frv_push_dummy_call): Likewise.
6829 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6830 * hppa-tdep.c (hppa32_push_dummy_call)
6831 (hppa64_push_dummy_call): Likewise.
6832 * i386-tdep.c (i386_push_dummy_call): Likewise.
6833 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6834 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6835 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6836 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6837 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6838 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6839 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6840 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6841 (ppc64_sysv_abi_push_dummy_call): Likewise.
6842 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6843 (ppc64_sysv_abi_push_dummy_call): Likewise.
6844 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6845 * s390-tdep.c (s390_push_dummy_call): Likewise.
6846 * sh-tdep.c (sh_push_dummy_call_fpu)
6847 (sh_push_dummy_call_nofpu): Likewise.
6848 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6849 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6850 * vax-tdep.c (vax_push_dummy_call): Likewise.
6852 2004-06-04 Jim Blandy <jimb@redhat.com>
6854 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6855 gdbarch argument to register_size.
6857 * rs6000-tdep.c (rs6000_store_return_value): Use
6858 regcache_cooked_write_part instead of
6859 deprecated_write_register_bytes.
6860 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6861 not gdbarch_deprecated_store_return_value.
6863 * ppc-linux-nat.c (store_register, fetch_register): Remove
6864 incorrect assertions. Simplify and generalize handling of
6865 transfers whose sizes are not multiples of, or less than, sizeof
6868 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6870 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6871 as a new thread event.
6872 * thread-db.c (thread_get_info_callback): If the thread is a
6873 zombie, return TD_THR_ZOMBIE.
6874 (thread_from_lwp): If thread_get_info_callback returns
6875 TD_THR_ZOMBIE, check if the thread is still on the thread list
6876 and return a -1 ptid if not found.
6877 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6878 change the status to TARGET_WAITKIND_SPURIOUS.
6880 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6882 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6883 double values in little endian mode.
6885 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6887 Committed by Andrew Cagney.
6888 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6889 after last enum constant to avoid error from IBM C
6892 2004-06-02 Jim Blandy <jimb@redhat.com>
6894 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6895 to 'message', and make it local to the lone block that uses it.
6897 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6899 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6901 * ada-exp.y: Update copyright notice.
6904 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6905 SPECIAL_VARIABLE and unify the treatment of these cases.
6907 (write_attribute_call0): Remove.
6908 (write_attribute_call1): Remove.
6909 (write_attribute_calln): Remove.
6910 (save_qualifier): Add missing semicolon.
6912 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6913 temporarily disabled to allow compilation with FSF head version.
6915 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6916 use individual operators (OP_*) for all attributes.
6917 (exp syntax): Use write_int.
6918 Handle STRING literals with OP_STRING.
6919 (variable syntax): Add limit parameter to calls to
6920 write_object_renaming.
6922 (temp_parse_space): New definition to hold entities that need
6923 only live until the next call to ada_parse.
6924 (string_to_operator): Rename fields of ada_opname_table entries.
6926 (write_var_from_sym): Record block.
6927 (write_var_from_name): Minor reformatting.
6928 Make sure saved name is properly encoded in the case of multiple
6929 matches, and set its language to Ada.
6931 Modify to indicate unresolved name as symbol in the UNRESOLVED
6932 namespace, allocated in temp_parse_space.
6933 (write_int): New function.
6935 (write_object_renaming): Add max_depth parameter to limit
6936 chains of object renamings.
6937 Handle case where root of renaming expression is itself a renaming.
6938 Use temp_parse_space for temporary name buffer.
6939 Handle renamings to dereferenced pointers (___XEXA suffices).
6941 (ada_parse, yyerror, string_to_operator,
6942 write_var_from_sym, write_var_from_name, write_attribute_call0,
6943 write_attribute_call1, write_attribute_calln,
6944 write_object_renaming): Protoize.
6946 (_initialize_ada_exp): New function.
6948 * ada-lang.c: Update copyright notice.
6949 General terminology change to conform to GNAT compiler usage:
6950 mangle => encode, demangle => decode
6951 Include gdb_obstack.h.
6960 (ADA_RETAIN_DOTS): Make sure this is defined.
6961 (TRUNCATION_TOWARDS_ZERO): Define.
6962 (struct string_vector): Define.
6963 (unresolved_names): Remove definition.
6964 (xnew_string_vector): New function.
6965 (string_vector_append): New function.
6966 (extract_string): Make static.
6967 (ada_unqualified_name): New function.
6968 (add_angle_brackets): New function.
6969 (function_name_from_pc): New function.
6970 (place_on_stack): Rename to ensure_lval.
6972 (ensure_lval): Renamed from place_on_stack.
6973 Make identity on lvals.
6975 (is_nonfunction): New interface.
6976 Only symbols in LOC_CONST class can be enumerals.
6977 (fill_in_ada_prototype): Remove; now independent of language.
6978 (add_defn_to_vec): Add obstack and symtab arguments.
6979 Use obstack to hold collected definitions.
6980 (num_defns_collected): New function.
6981 (defns_collected): New function.
6982 (ada_resolve_subexp): Rename to resolve_subexp.
6983 (resolve_subexp): Renamed from ada_resolve_subexp.
6984 (ada_op_name): Return non-const result.
6985 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6988 (to_fixed_array_type): Add declaration.
6989 (coerce_unspec_val_to_type): Remove offset parameter.
6990 (find_sal_from_funcs_and_line): New interface.
6991 (find_line_in_linetable): Ditto.
6993 (all_sals_for_line): Rename to ada_sals_for_line and make
6995 Add new parameter. When set, do not ask the user to choose the
6996 instance, but use the first one found instead.
6997 Use given line number in returned sals.
6999 Skip the prologue if funfirstline is set.
7000 Correct for memory leak when 0 lines found.
7002 (value_pos_atr): Use pos_atr.
7003 (pos_atr): New function.
7004 (standard_lookup): Add block parameter.
7006 (makeTimeStart): Remove declaration and uses.
7007 (makeTimeStop): Remove declaration and uses.
7009 (ada_completer_word_break_characters): Allow for VMS.
7010 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
7011 (raise_sym_name): New constant.
7012 (raise_unhandled_sym_name): New constant.
7013 (raise_assert_sym_name): New constant.
7014 (process_raise_exception_name): New constant.
7015 (longest_exception_template): New constant.
7016 (warning_limit): New variable to limit warnings during expression
7018 (warnings_issued): New variable to keep track of warnings issued.
7019 (known_runtime_file_name_patterns): New constant.
7020 (known_auxiliary_function_name_patterns): New constant.
7021 (symbol_list_obstack): New variable.
7023 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
7024 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
7025 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
7026 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
7027 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
7028 ada_variant_discrim_name, field_alignment, dynamic_template_type,
7029 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
7030 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
7033 (ada_get_field_index): New function.
7034 (lim_warning): New function.
7035 (ada_translate_error_message): New function.
7036 (MAX_OF_SIZE): New function.
7037 (MIN_OF_SIZE): New function.
7038 (UMAX_OF_SIZE): New function.
7039 (UMIN_OF_SIZE): New function.
7040 (discrete_type_high_bound): New function.
7041 (discrete_type_low_bound): New function.
7042 (base_type): New function.
7043 (do_command): Remove.
7045 (ada_update_initial_language): Use language_ada, not language_unknown.
7046 (ada_encode): Renamed from ada_mangle.
7047 Obey ADA_RETAIN_DOTS.
7048 (ada_decode): Renamed from ada_demangle.
7049 Update coding conventions.
7050 (decoded_names_store): New hash table.
7051 (ada_decode_symbol): New function.
7052 (ada_la_decode): New function.
7054 (modify_general_field): Correct computations of offset and bit
7056 (desc_base_type): Handle ref types, too.
7057 (ada_is_direct_array_type): New function.
7059 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7060 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7061 (ada_is_bogus_array_descriptor,ada_type_of_array,
7062 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
7063 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
7064 ada_is_array_descriptor_type.
7066 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
7067 (ada_is_packed_array_type): Handle pointers or
7068 references to packed arrays as well.
7069 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
7070 (decode_packed_array_type): Search for the packed array type
7071 symbol in the currently selected block and associated
7073 Use lookup_symbol again.
7075 (decode_packed_array): Handle pointers and references.
7076 Update call to coerce_unspec_val_to_type.
7077 (decode_packed_array_type,value_subscript_packed): Limit warnings.
7078 (ada_value_primitive_packed_val): Improve comment.
7080 (ada_index_type): Substitute int type for "undefined".
7081 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
7082 ada_array_langth, ada_is_string_type): Use renamed
7083 ada_is_simple_array_type.
7084 (empty_array): New function.
7086 (ada_resolve): Rename to resolve.
7087 (resolve): Make static.
7088 Call renamed resolve_subexp.
7090 (ada_resolve_subexp): Rename to resolve_subexp.
7091 (resolve_subexp): Update comment.
7092 Decomment disabled code.
7093 Add LOC_COMPUTED* cases.
7094 Modify to use temporary struct symbols (marked as being in
7095 UNDEF_NAMESPACE) to indicate unresolved names, instead of
7096 OP_UNRESOLVED_VALUE.
7097 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
7100 Use SYMBOL_PRINT_NAME instead of ada_demangle.
7101 Use new ada_lookup_symbol_list interface.
7102 Use new ada_resolve_function interface.
7103 Remove OP_TYPE case.
7105 (ada_args_match): Idiot proof against null actuals.
7106 Use intermediate variables to clarify.
7107 (ada_resolve_function): Update comment and interface.
7108 (mangled_ordered_before): Rename to encoded_ordered_before and
7110 (sort_choices): Update comment and interface.
7111 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7112 (user_select_syms): New interface.
7113 Use new sort_choices interface.
7114 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7115 (possible_user_operator_p): Idiot-proof against null values.
7116 (ada_simple_renamed_entity): Don't make cleanup; rely on
7117 caller to free result string.
7118 Remove const from return type.
7119 (make_array_descriptor): Rename uses of place_on_stack to
7121 Make sure that arrays are on stack.
7123 (HASH_SIZE): Define.
7124 (struct cache_entry): Define.
7125 (cache_space): Define.
7127 (clear_ada_sym_cache): New function.
7128 (find_entry): New function.
7129 (lookup_cached_symbol): New function.
7130 (defn_vector_size): Define.
7131 (cache_symbol): New function.
7132 (defn_symbols): Remove.
7134 (standard_lookup): Use lookup_symbol_in_language to get effect of
7138 (symbol_completion_match): New function.
7139 (symbol_completion_add): New function.
7140 (ada_make_symbol_completion_list): New function.
7142 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7143 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7144 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7145 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7147 (ada_lookup_simple_minsym): New function.
7148 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7150 (add_symbols_from_enclosing_procs): New interface.
7151 Conditionalize more helpfully.
7152 Don't bother if program isn't running.
7153 Use new interface to get_frame_block.
7154 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7156 (remove_extra_symbols): New interface.
7157 (xget_renaming_scope): New function.
7158 (is_package_name): New function.
7159 (renaming_is_visible): New function.
7160 (remove_out_of_scope_renamings): New function.
7162 (ada_lookup_symbol_list): New interface.
7163 Properly reinitialize the symbol list obstack.
7164 Don't call add_symbols_from_enclosing_procs if we start from a
7165 static or global block.
7166 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7167 add_symbols_from_enclosing_procs.
7168 Add symtab data to cached entries.
7169 Handle symbols prefixed with
7170 "standard__" specially; strip prefix and don't look in local symbols.
7171 Do not include out of scope renaming symbols in list of
7173 Add const to block parameter.
7174 Move check for non-local, non-global symbols earlier.
7175 Remove timing stuff.
7176 (ada_lookup_symbol): New interface.
7177 Find symtab as well.
7178 (ada_lookup_symbol_nonlocal): New function.
7180 (is_name_suffix): Enhance suffix detection to recognize
7181 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7182 (is_dot_digits_suffix): New function.
7183 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7185 (ada_add_block_symbols): New interface. Use obstack to return results
7186 in a vector of struct ada_symbol_infos. Add symtab argument.
7187 Use new interface to add_defn_to_vec.
7188 Remove calls to fill_in_ada_prototype.
7189 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7191 (ada_finish_decode_line_1): Add const qualification to local to fix
7193 Start looking in static block for functions to avoid attempts
7194 to search frame chain for up-level variables.
7195 Adapt to new ada_sals_for_line interface.
7196 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7197 Handle quoting of the function name inside the spec string.
7198 Skip prologue when funfirstline is set and update the
7199 function documentation to that effect.
7201 (debug_print_lines, debug_print_block, debug_print_blocks,
7202 debug_print_symtab): Remove.
7204 (ada_main_name): New function.
7205 (ada_exception_breakpoint_type): New function.
7206 (is_known_support_routine): New function.
7207 (ada_find_printable_frame): Renamed from find_printable_frame and made
7209 Remove level parameter.
7210 Use new interface to select_frame.
7212 (begin_command): Remove.
7213 (ada_adjust_exception_stop): New function.
7214 (ada_print_exception_stop): New function.
7215 (exception_name_from_cond): New function.
7216 (ada_report_exception_break): Replace disabled code with
7217 conditionalization on GNAT_GDB.
7218 Get the exception name from the condition string.
7219 Remove and move functionality into new functions
7220 ada_print_exception_breakpoint_task and
7221 ada_print_exception_breakpoint_nontask.
7222 (error_breakpoint_runtime_sym_not_found): New function.
7223 (is_runtime_sym_defined): New function.
7224 (ada_breakpoint_rewrite): Uncomment suppressed code.
7225 Use symbolic error-message and runtime-symbol names.
7226 Surround runtime symbol names in quotes.
7227 Allow non-specific breakpoints on exceptions and assertions before
7230 (ada_is_tagged_type): Add parameter.
7231 (ada_is_tag_type): New function.
7232 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7233 (ada_variant_discrim_type): Ditto.
7234 (value_tag_from_contents_and_address): New function.
7235 (type_from_tag): New function.
7236 (struct tag_args): New structure used to communicate with
7238 (ada_tag_name_1): New function.
7239 (ada_tag_name): New function.
7241 (ada_scan_number): Update comment.
7242 (find_struct_field): New function.
7243 (ada_search_struct_field): Make static.
7244 (ada_value_struct_elt): New version that returns references when
7245 given pointers or references to structs.
7246 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7247 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7249 (ada_value_ind): Use new ada_to_fixed_value interface.
7250 (ada_coerce_ref): Ditto.
7251 (field_offset): Remove.
7253 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7254 (ada_find_renaming_symbol): New function.
7255 (ada_prefer_type): Prefer named types over unnamed ones.
7256 (variant_field_index): New function.
7257 (contains_variant_part): Removed: subsumed by variant_field_index.
7258 (ada_template_to_fixed_record_type): New function, mostly from
7259 template_to_fixed_record_type.
7260 (template_to_fixed_record_type):
7261 Do not scan the type fields beyond the last one; prevents a
7263 Handle case where variant field is listed BEFORE discriminant it
7265 Fix calculation of record length when bit length is
7266 not evenly divisible by char length.
7267 Move code to ada_template_to_fixed_record_type and call it.
7269 (template_to_static_fixed_type): Revise comment.
7270 Modify to work on ordinary record types as well as templates,
7271 so as to handle fields that use ___XVE or ___XVU encodings.
7272 (to_record_with_fixed_variant_part): Fill out comment.
7273 Initialize C++ stuff in right type.
7274 Allow case where DVAL is null.
7275 Handle case where variant field is not last.
7276 Fix typo concerning record length.
7277 (to_fixed_record_type): Decomment disabled code.
7278 (to_fixed_record_type): Use variant_field_index instead of
7279 contains_variant_part.
7280 (to_fixed_variant_branch_type): Ditto.
7281 (to_fixed_array_type): Decomment disabled code.
7282 (ada_to_fixed_type): Convert tagged types to the specific type.
7283 Deactivate the size-check for array types in order to avoid
7284 some false size alarms.
7285 (to_static_fixed_type): Decomment disabled code.
7286 Modify to call template_to_static_fixed_type
7287 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7288 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7289 Remove valaddr argument, as it is never really used.
7290 (ada_to_fixed_value): Change interface to act on single struct value*
7292 (adjust_pc_past_prologue): New function.
7293 (ada_attribute_name): Modify to take enum exp_opcode argument.
7295 (ada_enum_name): Recognize new homonym-distinguishing convention.
7296 Adjust local variable's type to remove compiler warning.
7297 Fix a small problem in the part that unqualifies the enumeration name.
7298 (ada_value_binop): New function.
7299 (ada_value_equal): New function.
7301 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7302 Don't give error message when not doing normal evaluation
7303 and a tagged type doesn't seem to contain a structure member.
7304 Give error message for packed arrays.
7305 For indexing arrays, handle pointers to packed arrays correctly.
7306 Handle case of 'first and 'last attributes of bare integral type
7307 without encoded subtype info.
7308 Remove some unnecessary casts.
7309 Fix uninitialized value of type in computing 'first, 'last, or 'length
7311 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7312 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7314 Attributes are now exp_opcode values.
7315 Correct treatment of 'modulus.
7316 Better error message for taking 'length of wrong kind of type;
7318 Change EVAL_NORMAL to noside for consistency.
7319 Use ada_value_binop for DIV, MOD, REM.
7320 Make special case out of array of length 0, since an argument
7321 of 0 upsets some platforms' malloc.
7322 Use OP_STRING instead of OP_ARRAY.
7323 For slice, add check that we have an array type before extracting
7324 a slice out of it. Avoids a SEGV.
7325 When evaluating an array slice, if the array type is a reference to
7326 an aligner type, then replace the aligner type by the actual type.
7327 Decomment disabled code.
7328 Remove some dead code.
7329 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7330 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7331 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7332 and UNOP_MBR to UNOP_IN_RANGE.
7333 If an array type has a parallel ___XVE type, then use it.
7334 Turn arrays into pointers for lvalue arrays.
7335 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7336 bounds error and handle 0-length slices.
7338 When selecting fields, apply ada_to_fixed_value (because the fields
7339 might have ___XVU or ___XVE encodings even if not dynamic.)
7340 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7341 (ada_is_system_address_type): New function.
7343 (get_var_value): Use new interface to ada_lookup_symbol_list.
7344 (get_int_var_value): New interface.
7345 (to_fixed_range_type): Allow unknown bound, with warning.
7346 (ada_is_modular_type): Decomment disabled code.
7347 (ADA_OPERATORS): New definition.
7348 (ada_operator_length): New function.
7349 (ada_expr_op_name): New function.
7350 (ada_forward_operator_length): New function.
7351 (ada_dump_subexp_body): New function.
7352 (ada_print_subexp): New function.
7353 (ada_exp_descriptor): New constant.
7354 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7355 (ada_language_defn): Add ada_exp_descriptor entry.
7356 Change ada_parse => parse.
7357 Add post-parser entry.
7358 Use ada-specific non-local symbol lookup.
7359 Don't use C-style arrays.
7360 String lower-bound is 1.
7361 Decomment disabled code.
7362 (parse): New function.
7363 New fields ada_translate_error_message, ada_lookup_symbol,
7364 ada_lookup_minimal_symbol.
7366 * ada-lang.h: Update copyright dates.
7367 Replace the mangle/demangle terminology throughout by the
7368 more appropriate encode/decode one.
7369 Include breakpoint.h.
7370 Forward declare struct partial_symbol, struct block.
7371 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7372 (EXTRACT_ADDRESS): Remove.
7373 (EXTRACT_INT): Remove.
7374 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7375 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7376 (MAX_RENAMING_CHAIN_LENGTH): Define.
7377 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7379 (enum task_states): Remove.
7380 ada_task_states: Remove.
7381 (fat_string): Remove.
7382 (struct entry_call): Remove.
7383 (struct task_fields): Remove.
7384 (struct task_entry): Remove.
7386 (struct ada_symbol_info): Define.
7387 (enum ada_attribute): Remove.
7388 (enum ada_operator): Define.
7390 (ada_get_field_index): Declare.
7391 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7392 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7393 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7394 (ada_lookup_symbol_list): New interface.
7395 (ada_decode_symbol): Declare.
7396 (ada_decode): Declare.
7397 (ada_lookup_symbol): New interface.
7398 (ada_update_initial_language): Declare.
7399 (ada_lookup_simple_minsym): Declare.
7400 (user_select_syms): New interface.
7401 (ada_sals_for_line): Declare.
7402 (ada_is_tagged_type): New interface.
7403 (ada_tag_name): Declare.
7404 (ada_lookup_struct_elt_type): Remove declaration.
7405 (ada_search_struct_field): Remove declaration.
7406 (ada_attribute_name): New interface.
7407 (ada_is_system_address_type): Declare.
7408 (ada_to_fixed_value): Remove declaration.
7409 (ada_template_to_fixed_record_type_1): Declare.
7410 (get_int_var_value): New interface.
7411 (ada_find_any_symbol): Declare.
7412 (ada_find_renaming_symbol): Declare.
7413 (ada_mangle): Rename to ada_encode.
7414 (ada_simple_renamed_entity): Remove const.
7415 (ada_main_name): Declare.
7416 (get_current_task): Rename to ada_get_current_task.
7417 (get_entry_number): Remove declaration.
7418 (ada_report_exception_break): Remove declaration.
7419 (ada_print_exception_breakpoint_nontask): Declare.
7420 (ada_print_exception_breakpoint_task): Declare.
7421 (ada_find_printable_frame): Declare.
7423 * ada-lex.l: Update copyright notices.
7424 Use xmalloc and xfree instead of malloc and free.
7425 Use new interface to name_lookup.
7426 Use new interface to
7427 ada_mangle=>ada_encode.
7428 Redo handling of '$...' variable to parallel current treatment
7430 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7431 digit_to_int, strtoulst, processInt, processReal, processId,
7432 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7435 (processInt): Use cast to remove harmless warning.
7436 (processReal): Modify to get rid of compiler warning on scan formats.
7438 (processId): Replace xmalloc with obstack_alloc for name and remove
7439 call to ada_name_string_cleanup.
7440 Remove obsolete disabled code.
7441 (name_lookup): Ditto.
7443 Use obsavestring on temp_parse_space instead of savestring
7444 on name, and remove call to ada_name_string_cleanup.
7445 Free string returned from ada_simple_renamed_entity.
7446 Use new interface to ada_lookup_symbol_list.
7447 Decomment disabled code.
7448 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7450 When a type name lookup succeeds as a result of
7451 lookup_primitive_typename, check for regular type entry that has not
7453 Limit length of chain of renamed symbols we are willing to follow.
7454 Do not break names beginning with "standard__" into segments.
7455 (block_lookup): Use new interface to ada_lookup_symbol_list.
7457 * ada-typeprint.c: Update copyright notice.
7458 (demangled_type_name): Rename to decoded_type_name.
7459 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7460 (print_range_bound): Correct handling of negative
7461 bounds that make the index type looked unsigned under STABS.
7462 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7463 (print_range_type_named): Use the builtin int type if no type
7464 corresponding to the given type name could be found.
7465 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7466 Add some bullet-proofing.
7467 (print_variant_clauses): Allow for variant branches with ___XVU
7468 encodings that are not dynamic fields.
7469 Use new interface to ada_is_tagged_type.
7470 (print_record_type): Allow for fields with ___XVE encodings that
7471 are not dynamic fields.
7472 Use new interface to ada_is_tagged_type.
7473 (ada_print_type): ada_is_array_descriptor =>
7474 ada_is_array_descriptor_type.
7476 * ada-valprint.c: Update copyright notice.
7477 Include gdb_string.h
7479 (ui_memcpy): New function.
7480 (ada_print_floating): New function.
7481 (ada_print_str): Order arguments correctly.
7482 Correct handling of empty arrays and arrays of 0-length items.
7483 ada_is_array_descriptor => ada_is_array_descriptor_type
7484 Print values of type System.Address in hexadecimal format.
7485 Use ada_print_floating to print floating-point numbers in Ada format.
7486 Print class tag values with type names.
7487 No longer print the address of reference values. Avoids
7488 a potential confusion.
7489 (ada_value_print): Stop printing the object type for reference
7490 values, but preserve that behavior for access types. Avoids
7491 a potential confusion.
7492 Simplify one conditional expression, as the first part is now
7494 ada_is_array_descriptor => ada_is_array_descriptor_type
7495 Add check for arrays for null records, and print them by hand.
7497 2004-06-01 Jim Blandy <jimb@redhat.com>
7499 * ppc-tdep.h: Delete unused 'regoff' member.
7500 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7502 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7505 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7506 (hpread_read_struct_type): Likewise.
7508 2004-06-01 Andrew Cagney <cagney@gnu.org>
7510 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7511 instead of xasprintf.
7512 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7513 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7514 (mi_cmd_data_list_register_names)
7515 (mi_cmd_data_list_changed_registers)
7516 (mi_cmd_data_list_register_values)
7517 (get_register, mi_cmd_data_write_register_values)
7518 (mi_cmd_data_write_register_values)
7519 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7520 (mi_cmd_target_download, mi_cmd_target_select)
7521 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7522 (mi_execute_cli_command, mi_execute_async_cli_command)
7523 (mi_execute_async_cli_command): Ditto.
7524 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7525 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7527 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7528 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7529 error_last_message instead of mi_error_last_message.
7530 * mi/mi-main.c (mi_error_last_message): Delete function.
7532 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7533 "invalid number of columns" error. Delete redundant "out of
7536 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7538 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7539 (gregset_t, fpregset_t): Remove typedefs.
7540 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7541 (REG_OFFSET): Rename argument.
7542 (i386bsd_r_reg_offset): Rename from reg_offset.
7543 (REG_ADDR): Remove macro.
7544 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7546 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7547 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7548 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7549 instead of supply_gregset.
7550 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7551 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7552 instead of fill_gregset.
7553 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7555 * i386bsd-nat.c: Don't include "gregset.h".
7556 (supply_gregset, fill_gregset): Make static.
7557 (supply_fpregset, fill_fpregset): Remove.
7558 * Makefile.in (i386bsd-nat.o): Update dependencies.
7560 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7562 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7563 "gdb_assert.h". Con't include "gregset.h".
7564 (fbsd_make_corefile_notes): Use regset-based core file support
7565 instead off fill_gregset and fill_fpregset.
7566 * Makefile.in (fbsd-proc.o): Update dependencies.
7568 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7570 (m88k_frame_prev_register): Simplify code a bit.
7572 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7573 (amd64_collect_fpregset): New function.
7574 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7576 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7578 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7579 (i386_collect_gregset): New function.
7580 (i386_supply_fpregset): Adjust comment.
7581 (i386_collect_fpregset): New function.
7582 (i386_regset_from_core_section): Use i386_collect_gregset and
7583 i386_collect_fpregset.
7585 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7586 handle VALUEP being null.
7588 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7590 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7592 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7594 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7595 assembler in OpenBSD 3.5-current.
7596 (amd64obsd_sigcontext_addr): Likewise.
7598 2004-05-28 Jim Blandy <jimb@redhat.com>
7600 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7601 register set, so our regcache isn't declared "legacy" and our E500
7602 pseudoregister read and write functions aren't ignored.
7603 (rs6000_register_byte, rs6000_register_raw_size,
7604 rs6000_register_virtual_type, rs6000_register_convertible,
7605 rs6000_register_convert_to_virtual,
7606 rs6000_register_convert_to_raw): Deleted.
7607 (rs6000_register_type, rs6000_convert_register_p,
7608 rs6000_register_to_value, rs6000_value_to_register): New
7610 (rs6000_gdbarch_init): Don't register
7611 gdbarch_deprecated_register_size,
7612 gdbarch_deprecated_register_bytes,
7613 gdbarch_deprecated_register_byte,
7614 gdbarch_deprecated_register_raw_size,
7615 gdbarch_deprecated_register_virtual_type,
7616 gdbarch_deprecated_register_convertible,
7617 gdbarch_deprecated_register_convert_to_virtual, or
7618 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7619 register gdbarch_register_type, gdbarch_convert_register_p,
7620 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7622 2004-05-26 Jim Blandy <jimb@redhat.com>
7624 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7625 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7626 functions, updated to match the register numberings used in GCC.
7627 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7628 rs6000_dwarf2_reg_to_regnum as register number conversions
7629 functions for STABS and Dwarf2.
7631 2004-05-26 Randolph Chung <tausq@debian.org>
7633 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7636 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7638 * NEWS: Document new "start" command.
7640 2004-05-25 Randolph Chung <tausq@debian.org>
7642 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7645 2004-05-25 Randolph Chung <tausq@debian.org>
7647 * hppa-hpux-tdep.c (offsetof): Define.
7648 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7649 (hppa32_hpux_frame_base_before_sigtramp)
7650 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7651 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7652 (hppa64_hpux_frame_base_before_sigtramp)
7653 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7655 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7656 (hppa_hpux_sigtramp_frame_unwind_cache)
7657 (hppa_hpux_sigtramp_frame_this_id)
7658 (hppa_hpux_sigtramp_frame_prev_register)
7659 (hppa_hpux_sigtramp_frame_unwind)
7660 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7661 (hppa_hpux_init_abi): Register sigtramp unwinder.
7662 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7664 2004-05-25 Randolph Chung <tausq@debian.org>
7666 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7667 and multiple stack unwinds.
7668 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7670 2004-05-25 Andrew Cagney <cagney@gnu.org>
7672 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7673 * symfile-mem.h: Delete file.
7674 * symfile-mem.c: Do not include "symfile-mem.h".
7675 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7676 "struct bfd_section". When an error do not bother returning NULL.
7677 (add_symbol_file_from_memory_command): Use "struct bfd" and
7678 "struct bfd_section".
7679 * Makefile.in (symfile_mem_h): Delete.
7680 (symfile-mem.o): Update dependencies.
7682 2004-05-25 Nick Roberts <nickrob@gnu.org>
7684 * gdb-mi.el: New file.
7686 2004-05-25 Andrew Cagney <cagney@gnu.org>
7688 * inftarg.c: Include "observer.h".
7689 (child_attach, child_create_inferior): Notify inferior_created.
7690 * corelow.c: Include "observer.h".
7691 (core_open): Notify inferior_created.
7692 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7694 2004-05-25 Andrew Cagney <cagney@gnu.org>
7696 * target.h (struct target_ops): Add from_tty to
7698 (target_create_inferior, find_default_create_inferior): Update.
7699 * infcmd.c (run_command): Update.
7700 * wince.c (child_create_inferior): Update.
7701 * win32-nat.c (child_create_inferior): Update.
7702 * uw-thread.c (uw_thread_create_inferior): Update.
7703 * thread-db.c (thread_db_create_inferior): Update.
7704 * target.c (debug_to_create_inferior)
7705 (find_default_create_inferior): Update.
7706 (maybe_kill_then_create_inferior): Update.
7707 * sol-thread.c (sol_thread_create_inferior): Update.
7708 * remote.c (extended_remote_async_create_inferior)
7709 (extended_remote_create_inferior): Update.
7710 * remote-vx.c (vx_create_inferior): Update.
7711 * remote-st.c (st2000_create_inferior): Update.
7712 * remote-sim.c (gdbsim_create_inferior): Update.
7713 * remote-sds.c (sds_create_inferior): Update.
7714 * remote-rdp.c (remote_rdp_create_inferior): Update.
7715 * remote-rdi.c (arm_rdi_create_inferior): Update.
7716 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7717 * remote-e7000.c (e7000_create_inferior): Update.
7718 * procfs.c (procfs_create_inferior): Update.
7719 * ocd.c (ocd_create_inferior): Update.
7720 * ocd.h (ocd_create_inferior): Update.
7721 * nto-procfs.c (procfs_create_inferior): Update.
7722 * monitor.c (monitor_create_inferior): Update.
7723 * lin-lwp.c (lin_lwp_create_inferior): Update.
7724 * inftarg.c (child_create_inferior): Update.
7725 * hpux-thread.c (hpux_thread_create_inferior): Update.
7726 * gnu-nat.c (gnu_create_inferior): Update.
7728 2004-05-25 Andrew Cagney <cagney@gnu.com>
7730 * MAINTAINERS: Update e-mail address.
7732 2004-05-24 Randolph Chung <tausq@debian.org>
7734 * thread.c (info_threads_command, thread_apply_all_command)
7735 (thread_apply_command, thread_command, do_captured_thread_select):
7736 Remove HPUXHPPA-specific code.
7738 2004-05-24 Randolph Chung <tausq@debian.org>
7740 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7742 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7745 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7747 * infcmd.c (kill_if_already_running): New function, extracted
7749 (run_command): Replace extracted code by call to
7750 kill_if_already_running().
7751 (start_command): New function.
7752 (_initialize_infcmd): Add "start" command.
7754 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7756 Add OpenBSD/m88k support.
7757 * NEWS (New native configurations): Mention OpenBSD/m88k.
7758 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7759 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7760 * Makefile.in (m88k_tdep_h): New variable.
7761 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7762 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7763 * configure.host: Add m88*-*-openbsd*.
7764 * configure.tgt: Add m88*-*-openbsd*.
7766 2004-05-24 Jim Blandy <jimb@redhat.com>
7768 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7771 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7773 * symtab.c (fixup_section): Search section table when lookup by
7776 2004-05-24 Randolph Chung <tausq@debian.org>
7778 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7781 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7783 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7784 register number in regcache_raw_collect call.
7785 (m68kbsd_collect_fpregset): Likewise.
7786 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7788 * regset.h (struct regset): Add back `regset' member.
7790 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7792 * configure.in: Check for td_pcb in `struct thread'.
7793 * configure, config.in: Regenerated.
7795 * dpx2-nat.c: Remove file.
7796 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7797 (dpx2-nat.o): Remove dependencies.
7799 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7800 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7801 (amd64obsd_supply_pcb): New function.
7802 (_initialize_amd64obsd_nat): Enable libkvm interface.
7803 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7804 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7805 (LOADLIBES): New variable.
7807 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7808 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7809 (sparc32nbsd_supply_pcb): New function.
7810 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7811 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7812 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7813 (LOADLIBES): New variable.
7815 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7817 * bsd-kvm.c, bsd-kvm.h: New files.
7818 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7820 (i386fbsd_supply_pcb): New function.
7821 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7822 (i386fbsd-nat.o): Update dependencies.
7823 (bsd_kvm_h): New variable.
7824 (bsd-kvm.o): New dependency.
7825 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7826 (LOADLIBES): New variable.
7828 * regset.c: Tweak comment.
7829 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7831 * regset.h: Update copyright year.
7832 (struct regset): Remove `descr' member, add `gdbarch' member.
7833 (regset_alloc): Adjust prototype and comment.
7834 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7835 (i386_supply_fpregset): Likewise.
7836 (i386_regset_from_core_section): Update call to regset_alloc.
7837 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7839 (i386obsd_aout_regset_from_core_section): Update call to
7841 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7843 (i386nbsd_aout_regset_from_core_section): Update call to
7845 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7847 (amd64_regset_from_core_section): Update call to regset_alloc.
7848 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7850 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7851 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7852 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7853 (sparc32nbsd_init_abi): Update call to regset_alloc.
7854 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7855 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7856 (sparc64obsd_init_abi): Update call to regset_alloc.
7857 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7858 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7859 (sparc64nbsd_init_abi): Update call to regset_alloc.
7860 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7861 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7862 (sparc64fbsd_init_abi): Update call to regset_alloc.
7864 2004-05-22 Jim Blandy <jimb@redhat.com>
7866 * ppc-tdep.h (spe_register_p): New declaration.
7867 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7869 * rs6000-tdep.c (spe_register_p): New function.
7870 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7872 (rs6000_gdbarch_init): Initialize the new members of the tdep
7875 2004-05-21 Jim Blandy <jimb@redhat.com>
7877 * ppc-linux-nat.c (fetch_register): Move code back to be next
7878 to the comment that describes it. (Moved code, instead of
7879 comment, for symmetry with store_register.)
7881 Allocate regset structures in the gdbarch's obstack, not using
7883 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7884 Add 'arch' argument. Allocate the regset on arch's obstack, not
7886 * regset.h (regset_alloc): Update declaration.
7887 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7889 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7890 * i386-tdep.c (i386_regset_from_core_section): Same.
7891 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7892 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7893 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7894 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7895 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7896 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7898 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7900 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7902 2004-05-21 Jim Blandy <jimb@redhat.com>
7904 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7905 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7907 2004-05-20 Jim Blandy <jimb@redhat.com>
7909 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7911 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7913 * regset.h: Make prototype const-correct.
7914 * regset.c (regset_xmalloc): Make const-correct.
7916 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7918 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7919 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7920 (symbol_search_name): Declare.
7922 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7923 (iter_name_next_hashed): Ditto.
7924 (iter_name_next_linear): Ditto.
7925 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7927 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7928 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7929 (symbol_search_name): New function.
7931 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7933 * minsyms.c (build_minimal_symbol_hash_tables): Change
7934 test for adding to demangled hash table to check for difference
7935 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7937 2004-05-19 Jim Blandy <jimb@redhat.com>
7939 Use a constructor function to create regset structures.
7940 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7941 (struct regset): Use supply_regset_ftype. Add new
7942 'collect_regset' member.
7943 (regset_xmalloc): New declaration.
7944 * regset.c: New file.
7945 * am64-tdep.c (amd64_regset_from_core_section): Use
7946 regset_xmalloc to construct regset structures.
7947 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7948 * i386-tdep.c (i386_regset_from_core_section): Same.
7949 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7950 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7951 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7952 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7953 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7954 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7955 * Makefile.in (COMMON_OBS): Add regset.o.
7956 (regset.o): New rule.
7958 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7960 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7961 and pthread_cond_wait.c.
7963 2004-05-18 Jim Blandy <jimb@redhat.com>
7965 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7966 before the mach-specific switch, and then let the individual cases
7967 override the defaults, rather than leaving them uninitialized
7968 until the switch and then setting them in each case.
7970 2004-05-18 Randolph Chung <tausq@debian.org>
7972 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7973 millicode functions.
7975 2004-05-18 Randolph Chung <tausq@debian.org>
7977 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7978 references to dld_flags_buffer consistent.
7980 2004-05-18 Randolph Chung <tausq@debian.org>
7982 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7983 it for unwinding the stack.
7985 2004-05-18 Randolph Chung <tausq@debian.org>
7987 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7988 Undefine these so we can overide them using gdbarch.
7990 2004-05-18 Randolph Chung <tausq@debian.org>
7992 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7993 handling for 64-bit HPUX (elf).
7995 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7997 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7999 * amd64-tdep.c (amd64_skip_prologue): Likewise.
8000 * ia64-tdep.c (examine_prologue): Likewise.
8001 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
8002 * v850-tdep.c (v850_fix_call_dummy): Likewise.
8004 2004-05-18 Mark Kettenis <kettenis@gnu.org>
8006 * vax-tdep.c (vax_return_value): Implement
8007 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8009 2004-05-17 Mark Kettenis <kettenis@gnu.org>
8011 * vax-tdep.c (vax_return_value): Fix typo.
8013 2004-05-17 Andrew Cagney <cagney@redhat.com>
8015 * MAINTAINERS: Mark Salter was also responsible for
8018 * NEWS: Mention signal fixes.
8020 2004-05-17 Randolph Chung <tausq@debian.org>
8022 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
8023 check to see if we are unwinding an export stub. Export stubs clobber
8024 the %rp in the call path and stores the original rp in a stack slot.
8026 2004-05-17 Jim Blandy <jimb@redhat.com>
8028 * MAINTAINERS: Update address for J.T. Conklin.
8030 2004-05-17 Randolph Chung <tausq@debian.org>
8032 * hppa-tdep.c: Remove superfluous #include's.
8033 * Makefile.in (hppa-tdep.o): Update dependencies.
8035 2004-05-17 Randolph Chung <tausq@debian.org>
8037 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
8038 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
8039 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
8040 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
8041 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
8042 Remove static function declarations.
8044 2004-05-17 Mark Kettenis <kettenis@gnu.org>
8046 * alphabsd-nat.c: Update copyright year.
8047 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
8049 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
8052 * m68k-tdep.c (m68k_svr4_return_value): Implement
8053 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8055 2004-05-16 Mark Kettenis <kettenis@gnu.org>
8057 * sol-thread.c Update copyright year. Fix various coding
8058 standards violations. Tweak a few comments.
8059 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
8062 2004-05-15 Randolph Chung <tausq@debian.org>
8064 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
8065 as pointer instead of array reference since HPUX compiler does
8066 not accept unsized array arguments.
8067 * somsolib.c (dld_flags_buffer): Use constant array size.
8069 2004-05-15 Mark Kettenis <kettenis@gnu.org>
8071 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
8072 offset with decimal offset.
8073 (amd64obsd_sigcontext_addr): Return correct address for entire
8076 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
8077 instead of get_frame_base.
8079 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
8080 (fill_gregset): Use regcache_raw_collect.
8082 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
8085 * config/sparc/tm-nbsd64.h: Remove file.
8086 * config/tm-sunos.h: Remove file.
8088 2004-05-15 Joel Brobecker <brobecker@gnat.com>
8090 * rs6000-tdep.c (store_param_on_stack_p): New function,
8091 an improved version of some code extracted from skip_prologue().
8092 (skip_prologue): Use store_param_on_stack_p() to detect
8093 instructions saving a parameter on the stack. Detect when r0
8094 is used to save a parameter.
8095 Do not mark "li rx, SIMM" instructions as part of the prologue,
8096 unless the following instruction is also part of the prologue.
8098 2004-05-14 Andrew Cagney <cagney@redhat.com>
8100 * infrun.c (handle_inferior_event): Simplify
8101 STEP_OVER_UNDEBUGGABLE.
8103 * infrun.c (handle_step_into_function): Delete function.
8104 (handle_inferior_event): Inline calls to
8105 handle_step_into_function.
8107 2004-05-14 Jerome Guitton <guitton@gnat.com>
8109 * rs6000-nat.c: Fix a comment.
8111 2004-05-12 David Anderson <davea@sgi.com>
8113 Committed by Jim Blandy <jimb@redhat.com>:
8114 * regcache.c (struct regcache_descr): fix comment spelling.
8116 2004-05-13 J. Brobecker <brobecker@gnat.com>
8118 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8119 Fixes a link link failure.
8121 2004-05-13 J. Brobecker <brobecker@gnat.com>
8123 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8124 error that was causing the build to fail.
8126 2004-05-13 J. Brobecker <brobecker@gnat.com>
8128 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8129 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8131 2004-05-13 Andrew Cagney <cagney@redhat.com>
8133 * infrun.c (handle_inferior_event): Check for
8134 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8135 calls. Update comments.
8137 2004-05-13 Jim Blandy <jimb@redhat.com>
8139 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8140 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8141 (store_regs_user_thread, store_regs_kernel_thread): Use
8142 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8143 * ppc-linux-nat.c (fill_gregset): Same.
8144 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8145 (ppc_linux_sigtramp_cache): Same.
8146 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8147 (ppcnbsd_sigtramp_cache_init): Same.
8148 * rs6000-nat.c (fetch_core_registers): Same.
8149 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8150 (rs6000_frame_cache): Same.
8152 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8153 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8154 of assuming that the gprs are numbered starting with zero.
8155 * ppc-linux-nat.c (fill_gregset): Same.
8156 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8157 * ppcnbsd-nat.c (getregs_supplies): Same.
8158 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8159 * rs6000-nat.c (fetch_core_registers): Same.
8160 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8162 2004-05-07 Michael Snyder <msnyder@redhat.com>
8164 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8165 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8167 2004-05-13 Andrew Cagney <cagney@redhat.com>
8169 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8171 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8173 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8174 base_address for shared libraries.
8176 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8178 * MAINTAINERS (write after approval): Add myself.
8180 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8182 * breakpoint.c (bpstat_stop_status): Add new argument
8183 STOPPED_BY_WATCHPOINT. Use it instead of testing
8184 target_stopped_data_address agaist 0 to check whether
8185 or not we stopped due to a hardware watchpoint.
8186 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8187 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8190 2004-05-12 Jim Blandy <jimb@redhat.com>
8192 * configure.in: When checking whether we should use the -bbigtoc
8193 option, don't forget to restore the original value of LDFLAGS.
8194 * configure: Regenerated.
8196 2004-05-12 Andrew Cagney <cagney@redhat.com>
8198 * thread.c (load_infrun_state): Delete step_sp.
8199 * infrun.c (context_switch): Ditto.
8200 * inferior.h (step_sp): Ditto.
8201 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8202 * gdbthread.h (struct thread_info, save_infrun_state)
8203 (restore_infrun_state): Ditto.
8205 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8207 * MAINTAINERS (write after approval): Add myself.
8209 2004-05-12 Andrew Cagney <cagney@redhat.com>
8211 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8212 eliminate reference to step_sp.
8213 (struct execution_control_state, init_execution_control_state)
8214 (handle_inferior_event, keep_going): Delete update_step_sp and
8216 * infcmd.c (step_sp): Note that variable is unused.
8218 2004-05-11 Andrew Cagney <cagney@redhat.com>
8220 * infrun.c (step_over_function): Delete function.
8221 (handle_step_into_function): Use insert_step_resume_breakpoint.
8222 (insert_step_resume_breakpoint): Fix assertion.
8224 2004-05-11 Nick Roberts <nickrob@gnu.org>
8226 * utils.c (defaulted_query): Just use the normal query input type
8227 when printing the annotations.
8229 2004-05-11 Andrew Cagney <cagney@redhat.com>
8231 * infrun.c (handle_inferior_event): Simplify code handling
8232 step-into or return-from a signal trampoline.
8234 2004-05-11 Andrew Cagney <cagney@redhat.com>
8236 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8237 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8239 2004-05-10 Jim Blandy <jimb@redhat.com>
8241 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8242 with a call to internal_error.
8244 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8245 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8246 processor variant lacks those registers.
8247 (ppc_floating_point_unit_p): Change description to make it clear
8248 that this returns info about the ISA, not the ABI.
8249 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8250 return true or false by checking tdep->ppc_fp0_regnum and
8251 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8252 arch/mach switching done in rs6000_gdbarch_init; it's better to
8253 keep that logic there, and just check the results here.
8254 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8255 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8256 floating-point registers.
8257 (ppc_supply_fpregset, ppc_collect_fpregset)
8258 (rs6000_push_dummy_call, rs6000_extract_return_value)
8259 (rs6000_store_return_value): Assert that we have floating-point
8261 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8262 (rs6000_frame_cache): Don't note the locations at which
8263 floating-point registers were saved if we have no fprs.
8264 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8266 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8267 (store_regs_user_thread, store_regs_kernel_thread): Only call
8268 supply_fprs / fill_fprs if we actually have floating-point
8270 (special_register_p): Check ppc_fpscr_regnum before matching
8272 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8273 supply / collect fpscr if we don't have it.
8274 * ppc-bdm.c: #include "gdb_assert.h".
8275 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8276 have floating-point registers, since I can't test this code on
8277 FP-free systems to adapt it.
8278 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8279 fpscr and floating point register numbers if they don't exist.
8280 (fetch_register): Assert that we have floating-point registers
8281 before we reach the code that handles them.
8282 (store_register): Same. And use tdep instead of calling
8284 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8286 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8287 fprs and fpscr if we don't have them.
8288 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8290 * ppcnbsd-nat.c: #include "gdb_assert.h".
8291 (getfpregs_supplies): Assert that we have floating-point registers.
8292 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8293 * ppcobsd-tdep.c: #include "gdb_assert.h".
8294 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8295 have floating-point registers.
8296 * rs6000-nat.c (regmap): Don't match against the fpscr and
8297 floating point register numbers if they don't exist.
8298 (fetch_inferior_registers, store_inferior_registers,
8299 fetch_core_registers): Only fetch / store / supply the
8300 floating-point registers and the fpscr if we have them.
8301 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8302 (ppcobsd-tdep.o): Update dependencies.
8304 2004-05-10 Andrew Cagney <cagney@redhat.com>
8306 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8307 (context_switch): Do not switch through_sigtramp_breakpoint.
8308 * gdbthread.h (save_infrun_state, load_infrun_state)
8309 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8310 and structure member.
8311 * thread.c (load_infrun_state, save_infrun_state): Update.
8313 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8315 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8317 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8319 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8321 * aclocal.m4: Regenerate.
8323 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8325 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8327 2004-05-10 Andrew Cagney <cagney@redhat.com>
8329 * infrun.c (check_sigtramp2): Delete function.
8330 (handle_inferior_event): When single stepping, and taking a
8331 signal, set a breakpoint at the signal return address. Delete
8332 redundant calls to check_sigtramp2.
8333 (insert_step_resume_breakpoint): New function.
8334 (through_sigtramp_breakpoint, handle_inferior_event)
8335 (follow_exec, wait_for_inferior, fetch_inferior_event)
8336 (currently_stepping, keep_going): Delete most uses of
8337 through_sigtramp_breakpoint, not that it should be deleted.
8338 (delete_breakpoint_current_contents): Delete function.
8340 2004-05-10 Randolph Chung <tausq@debian.org>
8342 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8344 * config/pa/tm-linux.h: New file.
8346 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8348 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8349 of prefixes. Don't print the prefix twice in the CLI.
8351 2004-05-10 Jim Blandy <jimb@redhat.com>
8353 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8354 collect all the gprs.
8356 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8357 loop collecting gprs.
8359 2004-05-09 Andrew Cagney <cagney@redhat.com>
8361 * remote-vx.c (net_step): Delete step-range code.
8362 * remote.c (remote_resume, init_all_packet_configs)
8363 (set_remote_protocol_E_packet_cmd)
8364 (show_remote_protocol_E_packet_cmd)
8365 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8366 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8367 (show_remote_protocol_e_packet_cmd): Ditto.
8369 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8371 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8373 * hppa-tdep.h: Update copyright year.
8374 (struct trad_frame_saved_reg): Add opaque declaration.
8376 * amd64-tdep.c (amd64_return_value): Implement
8377 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8379 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8380 (m68k_value_to_register): New functions.
8381 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8384 * defs.h (enum return_value_convention): Add
8385 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8386 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8387 * infcmd.c (legacy_return_value): New function.
8388 (print_return_value): Rwerite to implement
8389 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8390 * values.c (using_struct_return): Check for inequality to
8391 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8392 RETURN_VALUE_STRUCT_CONVENTION.
8393 * i386-tdep.c (i386_return_value): Implement
8394 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8396 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8397 include "symtab.h", "opcode/vax.h" and "inferior.h".
8398 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8399 to read_memory_unsigned_integer.
8400 (vax_gdbarch_init): Reorder.
8401 (_initialize_vax_tdep): Spell out prototype.
8402 * Makefile.in (vax-tdep.o): Update dependencies.
8404 2004-05-08 Andrew Cagney <cagney@redhat.com>
8406 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8407 * target.c (target_detach, target_disconnect): Ditto.
8409 * infcall.c (call_function_by_hand): When no
8410 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8411 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8412 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8413 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8414 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8416 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8417 * gdbarch.h, gdbarch.c: Re-generate.
8418 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8419 deprecated_fix_call_dummy.
8420 * v850-tdep.c (v850_gdbarch_init): Ditto.
8421 * infcall.c (call_function_by_hand): Do not call
8422 DEPRECATED_FIX_CALL_DUMMY.
8424 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8425 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8428 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8429 deprecated_sizeof_call_dummy_words.
8430 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8432 * v850-tdep.c (v850_gdbarch_init): Ditto.
8433 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8434 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8435 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8436 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8437 * arch-utils.h (legacy_call_dummy_words)
8438 (legacy_sizeof_call_dummy_words): Delete declarations.
8439 * arch-utils.c (legacy_call_dummy_words)
8440 (legacy_sizeof_call_dummy_words): Delete variables.
8442 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8443 * gdbarch.h, gdbarch.c: Re-generate.
8444 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8445 * infcall.c (call_function_by_hand): Eliminate call to
8446 DEPRECATED_PUSH_DUMMY_FRAME.
8447 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8449 (ns32k_push_dummy_frame): Delete function.
8451 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8452 deprecated_call_dummy_breakpoint_offset or
8453 deprecated_call_dummy_start_offset.
8454 * dummy-frame.c, arm-tdep.c: Update comments.
8455 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8456 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8457 * gdbarch.h, gdbarch.c: Re-generate.
8459 * infcall.c (legacy_push_dummy_code): Delete function.
8460 (push_dummy_code): Delete call.
8462 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8463 * gdbarch.h, gdbarch.c: Re-generate.
8464 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8465 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8466 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8467 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8469 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8470 (struct frame_info): Delete opaque declaration.
8471 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8472 * frame.c (get_frame_type): Delete call.
8474 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8476 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8477 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8479 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8481 * alphanbsd-tdep.c: Include "gdb_string.h".
8482 * armnbsd-tdep.c: Update copyright year.
8483 Include "gdb_string.h".
8484 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8487 * delta68-nat.c: Remove file.
8488 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8489 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8490 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8491 (delta68-nat.o): Remove dependency.
8493 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8495 (m68k_gdbarch_init): Don't set
8496 deprecated_frameless_function_invocation.
8498 2004-05-07 Randolph Chung <tausq@debian.org>
8500 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8501 read_memory_nobpt for code reading when doing frame unwinding.
8502 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8504 2004-05-07 Randolph Chung <tausq@debian.org>
8506 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8507 instead of sp, handle sigaltstack case.
8508 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8509 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8510 signal handler and not that of the caller.
8511 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8512 hppa_linux_sigtramp_find_sigcontext.
8514 2004-05-07 Randolph Chung <tausq@debian.org>
8516 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8518 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8519 * hppa-linux-nat.c (fetch_register, store_register): Define.
8520 (fetch_inferior_registers, store_inferior_registers): Define.
8521 (supply_gregset): Add comment and clean up some unneeded code.
8522 (fill_gregset): Add comment and fix so that it saves registers in
8523 the right place in the gregset.
8524 (fill_fpregset): Fix buffer overrun problem.
8525 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8527 2004-05-07 Randolph Chung <tausq@debian.org>
8529 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8530 do common handling of the pcoqt register.
8531 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8532 to use helper function.
8533 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8534 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8535 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8536 generic fallback unwinder when all else fails.
8537 (hppa_gdbarch_init): Add fallback sniffer.
8538 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8539 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8540 to use helper function.
8542 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8544 * config/djgpp/fnchange.lst: Add translation rules for
8545 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8547 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8549 * frame.c (get_prev_frame_1): Work around GCC bug.
8550 * frame.h: Add comment about GCC bug.
8552 2004-05-07 Andrew Cagney <cagney@redhat.com>
8554 * observer.c: Include "commands.h" and "gdbcmd.h".
8555 (observer_debug, _initialize_observer): Add the
8556 command "set/show debug observer".
8557 * observer.sh: When observer debugging, log notify calls.
8558 * Makefile.in (observer.o): Update dependencies.
8560 2004-05-07 Jason Molenda (jmolenda@apple.com)
8562 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8564 2004-05-07 Jim Blandy <jimb@redhat.com>
8566 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8567 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8568 to recognize gpr regnums, instead of assuming that
8569 tdep->ppc_fp0_regnum marks the end of the general-purpose
8572 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8573 the given architecture has floating-point registers.
8575 2004-05-07 Andrew Cagney <cagney@redhat.com>
8577 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8579 * gdbarch.h, gdbarch.c: Re-generate.
8580 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8581 deprecated_use_generic_dummy_frames.
8583 2004-05-07 Brian Ford <ford@vss.fsi.com>
8585 * NEWS: Mention Cygwin DWARF 2 support.
8587 2004-05-07 Andrew Cagney <cagney@redhat.com>
8589 * objfiles.h (struct entry_info): Delete unused fields
8590 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8591 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8592 * mipsread.c (mipscoff_symfile_read): Update.
8593 * mdebugread.c (parse_partial_symbols): Update.
8594 * dwarfread.c (read_file_scope): Update.
8595 * dwarf2read.c (read_file_scope): Update.
8596 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8597 * coffread.c (complete_symtab): Update.
8599 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8601 * infcall.c (_initialize_infcall): Fix typo.
8603 2004-05-07 Andrew Cagney <cagney@redhat.com>
8605 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8606 * command.h (add_setshow_zinteger_cmd): Declare.
8608 2004-05-06 Randolph Chung <tausq@debian.org>
8610 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8611 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8612 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8613 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8614 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8615 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8616 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8618 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8619 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8620 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8621 (hppa64_hpux_frame_find_saved_regs_in_sig)
8622 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8623 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8624 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8625 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8626 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8627 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8628 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8629 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8630 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8631 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8632 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8633 (hppa32_register_type, hppa_cannot_store_register)
8634 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8635 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8636 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8637 * pa64solib.c (pa64_solib_have_load_event)
8638 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8639 (pa64_solib_unloaded_library_pathname): Likewise.
8640 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8641 (som_solib_library_pathname): Likewise.
8643 2004-05-05 Jim Ingham <jingham@apple.com>
8645 * breakpoint.c (create_breakpoints): Copy the ignore count and
8646 thread id over from the pended breakpoint to the actual
8649 2004-05-05 Andrew Cagney <cagney@redhat.com>
8651 * gdbarch.sh (PARM_BOUNDARY): Delete.
8652 gdbarch.h, gdbarch.c: Re-generate.
8653 * valops.c (PARM_BOUNDARY): Delete macro.
8654 (value_push): Delete PARM_BOUNDARY code.
8655 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8657 2004-05-04 Jim Blandy <jimb@redhat.com>
8659 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8660 Don't assume that the gprs, fprs, and UISA sprs are
8661 contiguous, start at register number zero, and end with fpscr.
8662 Instead, use the numbers from the tdep structure.
8664 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8665 should no longer be used in code specific to the RS6000 and its
8667 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8668 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8669 tdep->ppc_fp0_regnum.
8670 (ppc_supply_fpregset, ppc_collect_fpregset)
8671 (rs6000_push_dummy_call, rs6000_extract_return_value)
8672 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8673 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8675 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8676 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8678 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8679 bdm_ppc_store_registers): Same.
8680 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8681 (store_register, fill_fpregset): Same.
8682 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8683 (ppc_linux_supply_fpregset): Same.
8684 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8685 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8687 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8688 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8689 ppc64_sysv_abi_return_value): Same.
8690 * rs6000-nat.c (regmap, fetch_inferior_registers)
8691 (store_inferior_registers, fetch_core_registers): Same.
8693 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8695 * m68knbsd-nat.c: Remove file.
8696 * m68knbsd-tdep.c: Remove file.
8697 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8699 * configure.host: Add m68k-*-netbsdelf*.
8700 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8701 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8702 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8704 * config/m68k/nbsdelf.mh: New file.
8705 * config/m68k/nbsd.mt: New file.
8706 * config/m68k/nbsdaout.mt: Remove file.
8707 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8708 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8709 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8710 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8711 (use_struct_convention): Remove prototype.
8712 (USE_STRUCT_CONVENTION): Remove define.
8713 * config/m68k/xm-nbsd.h: Remove file.
8715 2004-05-04 Michael Snyder <msnyder@redhat.com>
8717 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8718 reg_struct_return method (as gcc usually does for cross targets).
8720 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8722 Committed by Andrew Cagney.
8723 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8724 alignment padding when accessing ucontext struct members.
8726 2004-05-04 Jim Blandy <jimb@redhat.com>
8728 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8729 'ppc_gplast_regnum' member.
8730 (ppc_num_gprs): New enum constant.
8731 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8732 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8733 * rs6000-nat.c (regmap, fetch_inferior_registers,
8734 store_inferior_registers): Same.
8735 * rs6000-tdep.c (e500_pseudo_register_read)
8736 (e500_pseudo_register_write): Same.
8737 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8739 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8740 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8741 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8742 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8744 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8746 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8747 * rs6000-nat.c (regmap, fetch_inferior_registers)
8748 (store_inferior_registers): Same.
8750 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8753 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8755 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8756 failure detected by recent versions of GCC.
8757 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8758 to be consistent with the usage in dwarf2_create_include_psymtab.
8760 2004-05-03 Michael Snyder <msnyder@redhat.com>
8762 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8763 (heuristic_proc_start): Whitespace cleanup.
8765 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8767 * sun3-nat.c: Remove file.
8768 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8770 (ALLDEPFILES): Remove sun3-nat.c.
8771 (sun3-nat.o): Remove dependencies.
8773 * i386-interix-nat.c, i386-interix-tdep.c,
8774 config/i386/nm-interix.h, config/i386/interix.mh,
8775 config/i386/interix.mt: Remove files.
8776 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8779 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8781 * m68k-tdep.h (struct gdbarch_tdep): Add member
8782 struct_value_regnum.
8783 (m68k_svr4_init_abi): New prototype.
8784 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8785 different calling conventions.
8786 (m68k_extract_return_value): Remove code dealing with single-field
8788 (m68k_store_return_value): Remove code dealing with single-field
8789 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8790 (m68k_extract_struct_value_address): Remove function.
8791 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8792 (m68k_reg_struct_return_p, m68k_return_value)
8793 (m68k_svr4_return_value): New functions.
8794 (m68k_use_struct_convention): Remove function.
8795 (m68k_push_dummy_call): Use new struct_value_regnum member of
8796 `struct gdbarch_tdep' instead of hardcoded register number to
8798 (m68k_svr4_init_abi): New function.
8799 (m68k_gdbarch_init): Don't set extract_return_value,
8800 store_return_values, deprecated_extract_struct_value_address and
8801 use_struct_convention. Set return_value instead. Initialize new
8802 struct_value_regnum member of `struct gdbarch_tdep'.
8803 * m68klinux-tdep.c: Update copyright year.
8804 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8805 (m68k_linux_extract_struct_value_address): Remove function.
8806 (m68k_linux_init_abi): Don't set extract_return_value,
8807 store_return_values, deprecated_extract_struct_value_address and
8808 use_struct_convention. Call m68k_svr4_init_abi but override the
8809 new struct_value_regnum member of `struct gdbarch_tdep'.
8810 * Makefile.in (m68k-tdep.o): Update dependencies.
8812 2004-05-03 J. Brobecker <brobecker@gnat.com>
8814 * dwarf2read.c (line_header): Add new included_p field in
8816 (partial_die_info): New field has_stmt_list. New field line_offset.
8817 (dwarf2_create_include_psymtab): New function.
8818 (dwarf2_build_include_psymtabs): New function.
8819 (add_file_name): Add forward declaration. Initialize new field.
8820 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8821 to be able to determine the list of files included by the
8822 given unit, and build their associated psymtabs.
8823 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8825 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8826 (read_file_scope): Update call to dwarf_decode_lines.
8827 (read_partial_die): Handle DW_AT_stmt_list attributes.
8829 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8832 * configure.in: Revert special case for osf5.*.
8833 * configure: Regenerate.
8835 2004-05-02 Jim Blandy <jimb@redhat.com>
8837 Move the symbol-file-from-memory functions into their own file.
8838 * symfile-mem.c, symfile-mem.h: New files.
8839 * symfile.c (symbol_file_add_from_bfd): New function.
8840 (symbol_file_add): Call symbol_file_add_from_bfd.
8841 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8842 Moved to symfile-mem.c.
8843 (_initialize_symfile): Move definition of
8844 add-symbol-file-from-memory command to symfile-mem.c.
8845 * symfile.h (symbol_file_add_from_bfd): New declaration.
8846 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8847 * config/powerpc/linux.mt (TDEPFILES): Same.
8848 * Makefile.in (SFILES): Add symfile-mem.c.
8849 (symfile_mem_h): New variable.
8850 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8851 (symfile-mem.o): New rule.
8853 2004-05-01 Andrew Cagney <cagney@redhat.com>
8855 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8856 frame_find_by_id instead of frame_relative_level.
8857 (do_enable_breakpoint): Ditto.
8858 * thread.c: Update copyright.
8859 (info_threads_command): Ditto, simplify.
8861 * frame.c (deprecated_generic_get_saved_register): Delete
8862 function, moved to "xstormy16-tdep.c".
8863 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8864 deprecated_generic_get_saved_register from "frame.c".
8865 (xstormy16_frame_saved_register): Call
8866 xstormy16_get_saved_register.
8867 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8869 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8870 * frame.h (deprecated_generic_get_saved_register): Delete.
8872 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8874 * dwarfread.c: Update documentation on the state of dwarf-1.
8876 2004-05-01 Andrew Cagney <cagney@redhat.com>
8878 * stack.c (select_frame_command): Delete call to
8879 frame_relative_level.
8880 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8882 (frame_info): Do not print FRAMELESS.
8883 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8884 (catch_info): Delete #if0 code.
8886 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8887 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8888 of frame_relative_level.
8889 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8891 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8892 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8893 frame_relative_level.
8895 * frame.h (deprecated_set_frame_type): Delete declaration.
8896 * frame.c (deprecated_set_frame_type): Delete function, update
8899 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8900 * gdbarch.h, gdbarch.c: Re-generate.
8901 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8902 (shnbsd_pc_in_sigtramp): Delete.
8903 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8905 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8907 * frame.h: Update comments.
8908 * ppc-linux-tdep.c: Update comments.
8909 * breakpoint.c (bpstat_what): Update comments.
8911 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8912 m68klinux-tdep.o's dependencies, were previously added to
8915 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8916 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8917 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8918 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8919 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8921 * Makefile.in (m68klinux-nat.o): Update dependencies.
8922 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8923 (m68k_linux_sigtramp_frame_cache)
8924 (m68k_linux_sigtramp_frame_this_id)
8925 (m68k_linux_sigtramp_frame_prev_register)
8926 (m68k_linux_sigtramp_frame_unwind)
8927 (m68k_linux_sigtramp_frame_sniffer)
8928 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8929 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8930 names, use trad-frame.h.
8931 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8932 (struct m68k_sigtramp_info): Delete.
8933 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8934 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8935 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8936 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8939 * infrun.c (check_sigtramp2): Delete check for
8940 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8942 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8944 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8946 2004-05-01 Andrew Cagney <cagney@redhat.com>
8948 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8949 (frv_linux_sigtramp_frame_cache)
8950 (frv_linux_sigtramp_frame_this_id)
8951 (frv_linux_sigtramp_frame_prev_register)
8952 (frv_linux_sigtramp_frame_unwind)
8953 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8954 include "linux" in function and variable names, directly call
8955 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8956 the latest trad-frame code.
8957 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8958 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8959 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8960 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8961 * frv-tdep.c (frv_sigtramp_frame_cache)
8962 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8963 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8965 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8966 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8967 (frv_set_sigcontext_reg_addr): Delete function.
8969 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8970 (DEPRECATED_SIGTRAMP_END): Delete.
8971 * gdbarch.h, gdbarch.c: Re-generate.
8972 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8973 * config/vax/tm-vaxbsd.h: Update copyright.
8974 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8975 (DEPRECATED_IN_SIGTRAMP): Define.
8976 * config/m68k/tm-nbsd.h: Update copyright.
8977 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8978 (DEPRECATED_IN_SIGTRAMP): Define.
8980 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8982 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8983 encondings. Fixes PR gdb/1628.
8985 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8986 DW_CFA_restore state without a matching DW_CFA_remember_state
8987 instead of aborting. Fixes PR backtrace/1589.
8989 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8991 * MAINTAINERS: Add self as AIX maintainer.
8992 Update my e-mail address in write-after-approval section.
8994 2004-04-30 Andrew Cagney <cagney@redhat.com>
8996 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8997 (legacy_get_prev_frame): Ditto.
8999 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
9000 (mips_gdbarch_init): Do not set pc_in_sigtramp.
9001 * mipsread.c (sigtramp_address): Delete extern variable.
9002 (mipscoff_new_init): Delete reference.
9003 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
9004 (fixup_sigtramp): Delete function.
9005 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
9006 (fixup_sigtramp): Delete declarations.
9008 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
9009 deprecated_pc_in_sigtramp.
9010 (ppcnbsd_pc_in_sigtramp): Delete function.
9012 2004-05-01 Mark Kettenis <kettenis@gnu.org>
9014 * config/m68k/nm-nbsd.h: Tweak comments.
9015 * config/m68k/nm-nbsdaout.h: Likewise.
9017 2004-04-30 Andrew Cagney <cagney@redhat.com>
9019 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
9020 legacy_pc_in_sigtramp.
9021 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
9023 2004-05-01 Mark Kettenis <kettenis@gnu.org>
9025 Add OpenBSD/m68k support.
9026 * NEWS (New native configurations): Mention OpenBSD/m68k.
9027 * m68kbsd-tdep.c: New file.
9028 * m68kbsd-nat.c: New file.
9029 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
9030 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
9031 * configure.host: Add m68k-*-openbsd.
9032 * configure.tgt: Add m68k-*-openbsd.
9033 * config/m68k/tm-obsd.h: New file.
9034 * config/m68k/obsd.mt: New file.
9035 * config/m68k/obsd.mh: New file.
9036 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
9039 2004-04-30 Andrew Cagney <cagney@redhat.com>
9041 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
9042 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
9044 2004-04-30 Mark Kettenis <kettenis@gnu.org>
9046 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
9047 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
9049 2004-04-30 Brian Ford <ford@vss.fsi.com>
9051 Revert 2004-04-16 change.
9052 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
9053 (i386_coff_init_abi): Remove.
9054 * i386-tdep.h (i386_coff_init_abi): Remove.
9055 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
9057 2004-04-30 Andrew Cagney <cagney@redhat.com>
9059 * blockframe.c (find_pc_partial_function): Delete use of
9060 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
9061 DEPRECATED_SIGTRAMP_END.
9063 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
9064 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
9065 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
9066 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
9067 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
9069 * defs.h (deprecated_inside_entry_file): Delete declaration.
9070 * blockframe.c (deprecated_inside_entry_file): Delete function.
9071 (legacy_frame_chain_valid): Delete call.
9072 * sh64-tdep.c (sh64_frame_chain): Delete call.
9073 * objfiles.h: Update comments.
9074 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
9076 * frame.c (get_prev_frame): Delete call, update comments.
9078 2004-04-30 Brian Ford <ford@vss.fsi.com>
9080 * MAINTAINERS (Write After Approval): Add myself.
9082 2004-04-30 Andrew Cagney <cagney@redhat.com>
9084 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
9085 * gdbarch.h, gdbarch.c: Re-generate.
9086 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
9089 2004-04-30 Andrew Cagney <cagney@redhat.com>
9091 * gdb-events.sh (selected_thread_changed)
9092 (selected_frame_level_changed, target_changed): Delete.
9093 * gdb-events.h, gdb-events.c: Re-generate.
9094 * valops.c (value_assign): Update.
9095 * stack.c (select_frame_command, up_silently_base)
9096 (down_silently_base): Update.
9098 2004-04-29 Andrew Cagney <cagney@redhat.com>
9100 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
9101 registers correctly.
9102 (print_gp_register_row, mips32_heuristic_proc_desc)
9103 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
9104 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
9105 references to mips_isa_regsize.
9107 2004-04-29 Andrew Cagney <cagney@redhat.com>
9109 * mips-tdep.c (struct gdbarch_tdep): Delete
9110 mips_fp_register_double.
9111 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9113 (mips_gdbarch_init): Do not set mips_fp_register_double.
9114 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9116 2004-04-29 Joel Brobecker <brobecker@gnat.com>
9118 Committed by Andrew Cagney.
9119 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9122 2004-04-29 Andrew Cagney <cagney@redhat.com>
9124 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9125 gdbarch, use mips_abi, update callers.
9126 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9127 mips_abi_regsize, update callers.
9128 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9129 mips_default_abi_regsize.
9130 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9131 mips_default_abi_regsize.
9133 2004-04-29 Andrew Cagney <cagney@redhat.com>
9135 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9136 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9137 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9138 mips_default_abi_regsize.
9139 (mips_isa_regsize): Rename mips_regisze.
9140 * mipsnbsd-tdep.c: Update.
9141 * mips-linux-tdep.c: Update.
9142 * irix5-nat.c: Update.
9143 * mips-tdep.h (mips_isa_regsize): Update.
9145 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9146 Delete all disabled code.
9147 * gdb-events.h, gdb-events.c: Re-generate.
9149 2004-04-19 Jerome Guitton <guitton@gnat.com>
9150 Mark Kettenis <kettenis@gnu.org>
9152 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9153 the function begins with a branch instruction.
9155 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9157 * i386-tdep.c: Fix spelling mistakes.
9159 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9160 Andrew Cagney <cagney@redhat.com>
9162 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9164 * acconfig.h: Provide default _KMEMUSER value.
9165 * config.in, configure: Re-generate.
9166 * NEWS: Mention fix.
9168 2004-04-24 Randolph Chung <tausq@debian.org>
9170 * configure.host (hppa*-*-linux*): New target.
9171 * configure.tgt (hppa*-*-linux*): Likewise.
9172 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9173 gdbarch_init_osabi() call earlier so that osabi-specific frame
9174 unwinders can be registered first.
9175 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9177 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9178 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9179 * config/pa/linux.mh: New file.
9180 * config/pa/linux.mt: New file.
9181 * config/pa/nm-linux.h: New file.
9182 * config/pa/xm-linux.h: New file.
9183 * hppa-linux-nat.c: New file.
9184 * hppa-linux-tdep.c: New file.
9186 2004-04-28 Randolph Chung <tausq@debian.org>
9188 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9190 (hppa32_push_dummy_call): Fix small struct and floating point argument
9191 passing, and make sure the stack frame is properly aligned.
9193 2004-04-28 Andrew Cagney <cagney@redhat.com>
9195 * stack.c (print_stack_frame): Fix description.
9197 * NEWS: Mention gdb/gdbserver/configure execute permission
9198 changed. PR server/519.
9200 2004-04-28 Andrew Cagney <cagney@redhat.com>
9202 * stack.c (print_stack_frame_stub): Delete declaration.
9203 (struct print_stack_frame_args, print_stack_frame)
9204 (print_frame_info, print_frame): Replace "source" with print what.
9205 Replace "print" with "print_level". Replace "args" with
9207 * frame.h (show_and_print_stack_frame, print_stack_frame)
9208 (print_frame_info): Update declarations.
9209 * stack.c (select_and_print_frame, frame_command)
9210 (current_frame_command, up_command, down_command): Update calls -
9211 use get_selected_frame, pass "enum print_what" for source, do not
9212 call frame_relative_level.
9213 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9214 * remote-rdp.c (remote_rdp_open): Ditto.
9215 * remote-mips.c (common_open): Ditto.
9216 * remote-e7000.c (e7000_start_remote): Ditto.
9217 * ocd.c (ocd_start_remote): Ditto.
9218 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9219 * infrun.c (normal_stop): Ditto.
9220 * inflow.c (kill_command): Ditto.
9221 * infcmd.c (finish_command): Ditto.
9222 * corelow.c (core_open): Ditto.
9223 * tracepoint.c (finish_tfind_command): Ditto.
9224 * thread.c (info_threads_command, info_threads_command)
9225 (restore_current_thread, do_captured_thread_select): Ditto.
9226 * ada-tasks.c (task_command): Ditto.
9228 2004-04-26 Orjan Friberg <orjanf@axis.com>
9230 * frame.c: Include "observer.h".
9231 (frame_observer_target_changed): New function.
9232 (_initialize_frame): Attach target_changed observer.
9233 * regcache.c: Include "observer.h".
9234 (regcache_observer_target_changed): New function.
9235 (_initialize_regcache): Attach target_changed observer.
9236 * valops.c: Include "observer.h".
9237 (value_assign): Notify target_changed event when modifying register.
9238 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9240 2004-04-26 Orjan Friberg <orjanf@axis.com>
9242 From Paul Koning <pkoning@equallogic.com>:
9243 * breakpoint.c (free_valchain): New function.
9244 (insert_bp_location, delete_breakpoint): Use free_valchain.
9245 (remove_breakpoint): Do not remove the valchain.
9246 (bpstat_stop_status): If not stopped by watchpoint, skip
9247 watchpoints when generating stop status list.
9248 * infrun.c (handle_inferior_event): Make
9249 stepped_after_stopped_by_watchpoint a global variable.
9250 * remote.c (remote_stopped_data_address): Return watch data
9251 address rather than zero if stepped_after_stopped_by_watchpoint is
9254 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9257 * configure.in: Check for curses after termcap.
9258 On osf5.*, do not check for ncurses.
9259 * configure: Regenerate.
9261 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9263 * ppcobsd-nat.c: Include "ppc-tdep.h".
9264 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9266 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9267 Fixes PR tdep/1623 and PR tdep/1624.
9269 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9271 * xmodem.h, xmodem.c: Remove files.
9272 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9274 2004-04-23 Randolph Chung <tausq@debian.org>
9276 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9277 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9278 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9279 for handling stackless frames.
9280 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9282 2004-04-23 Randolph Chung <tausq@debian.org>
9284 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9285 starts at a pc before the frame is created.
9287 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9289 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9291 2004-04-23 Jerome Guitton <guitton@gnat.com>
9293 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9294 use convert_typed_floating to get the appropriate format.
9296 2004-04-22 Randolph Chung <tausq@debian.org>
9298 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9299 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9300 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9301 (hppa_sign_extend): Add prototype.
9302 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9303 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9304 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9305 hppa targets will also use these functions.
9306 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9307 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9308 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9309 (hppa_gdbarch_init): Remove gdbarch setting of
9310 skip_trampoline_code, in_solib_call_trampoline and
9311 in_solib_return_trampoline.
9312 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9313 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9314 hppa_in_solib_call_trampoline.
9315 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9316 Moved from hppa-tdep.c.
9317 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9318 in_solib_call_trampoline and in_solib_return_trampoline.
9320 2004-04-22 Randolph Chung <tausq@debian.org>
9322 * hppa-tdep.c (hppa_debug): New variable.
9323 (find_unwind_entry, hppa_frame_cache): Add debug output.
9324 (_initialize_hppa_tdep): Add command to set debug flag.
9326 2004-04-22 Andrew Cagney <cagney@redhat.com>
9328 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9330 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9331 signal trampoline unwinder.
9332 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9334 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9336 Add OpenBSD/powerpc support.
9337 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9338 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9339 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9340 (ppc_collect_fpregset): New prototypes.
9341 * ppcobsd-nat.c: New file.
9342 * ppcobsd-tdep.c: New file.
9343 * ppcobsd-tdep.h: New file.
9344 * rs6000-tdep.c: Include "regset.h".
9345 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9346 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9348 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9349 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9350 (rs6000-tdep.o): Update dependencies.
9351 * configure.host: Add powerpc-*-openbsd.
9352 * configure.tgt: Add powerpc-*-openbsd.
9353 * config/powerpc/obsd.mh: New file.
9354 * config/powerpc/nm-obsd.h: New file.
9355 * config/powerpc/obsd.mt: New file.
9357 2004-04-22 Andrew Cagney <cagney@redhat.com>
9359 * frame.h (show_frame_info): Delete declaration.
9361 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9362 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9363 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9364 * frv-tdep.c (frv_frame_this_id): Ditto.
9365 * avr-tdep.c (avr_frame_this_id): Ditto.
9367 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9369 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9371 2004-04-22 Jim Blandy <jimb@redhat.com>
9373 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9374 register number zero.
9376 2004-04-21 Michael Snyder <msnyder@redhat.com>
9378 * mips-tdep.c (heuristic_proc_start):
9379 Warning() already prefixes "Warning: ".
9381 2004-04-21 Andrew Cagney <cagney@redhat.com>
9383 * annotate.h (deprecated_annotate_starting_hook)
9384 (deprecated_annotate_stopped_hook)
9385 (deprecated_annotate_exited_hook)
9386 (deprecated_annotate_signal_hook)
9387 (deprecated_annotate_signalled_hook): Deprecate.
9388 * tracepoint.h (deprecated_create_tracepoint_hook)
9389 (deprecated_delete_tracepoint_hook)
9390 (deprecated_modify_tracepoint_hook)
9391 (deprecated_trace_find_hook)
9392 (deprecated_trace_start_stop_hook): Deprecate.
9393 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9394 * remote.h (deprecated_target_resume_hook)
9395 (deprecated_target_wait_loop_hook): Deprecate.
9396 * gdbcore.h (deprecated_exec_file_display_hook)
9397 (deprecated_file_changed_hook): Deprecate.
9398 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9399 * defs.h (deprecated_modify_breakpoint_hook)
9400 (deprecated_command_loop_hook, deprecated_show_load_progress)
9401 (deprecated_print_frame_info_listing_hook)
9402 (deprecated_query_hook, deprecated_warning_hook)
9403 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9404 (deprecated_delete_breakpoint_hook)
9405 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9406 (deprecated_readline_begin_hook, deprecated_readline_hook)
9407 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9408 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9409 (deprecated_context_hook, deprecated_target_wait_hook)
9410 (deprecated_attach_hook, deprecated_detach_hook)
9411 (deprecated_call_command_hook, deprecated_set_hook)
9412 (deprecated_error_hook, deprecated_error_begin_hook)
9413 (deprecated_ui_load_progress_hook): Deprecate.
9414 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9415 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9416 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9417 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9418 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9419 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9420 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9421 * annotate.c, aix-thread.c: Update.
9423 2004-04-21 Andrew Cagney <cagney@redhat.com>
9425 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9426 * vaxnbsd-tdep.c: Include "gdb_string.h".
9428 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9429 (add_symbol_file_from_memory_command): #if 0 function body, call
9432 2004-04-21 Andrew Cagney <cagney@redhat.com>
9434 * gdbcore.h: Update copyright.
9435 (deprecated_add_core_fns): Rename add_core_fns.
9436 * win32-nat.c (_initialize_core_win32): Update.
9437 * sun3-nat.c (_initialize_core_sun3): Update.
9438 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9439 * rs6000-nat.c (_initialize_core_rs6000): Update.
9440 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9441 * nto-tdep.c (_initialize_nto_tdep): Update.
9442 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9443 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9444 * mips-nat.c (_initialize_core_mips): Update.
9445 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9446 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9447 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9448 * lynx-nat.c (_initialize_core_lynx): Update.
9449 * irix5-nat.c (_initialize_core_irix5): Update.
9450 * i386-interix-nat.c (_initialize_core_interix): Update.
9451 * cris-tdep.c (_initialize_cris_tdep): Update.
9452 * corelow.c (deprecated_add_core_fns): Update.
9453 * core-regset.c (_initialize_core_regset): Update.
9454 * core-aout.c (_initialize_core_aout): Update.
9455 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9456 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9457 * alpha-nat.c (_initialize_core_alpha): Update.
9459 2004-04-21 Jim Blandy <jimb@redhat.com>
9461 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9463 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9465 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9467 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9468 (read_attribute_value): Update calls to dwarf_alloc_block.
9469 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9471 (psymtab_to_symtab_1): Likewise. Clean up using
9472 free_stack_comp_unit.
9473 (add_to_cu_func_list): Use the comp_unit_obstack.
9475 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9477 * dwarf2read.c (dwarf2_flag_true_p): New function.
9478 (die_is_declaration): Use the function above. Add some comments.
9480 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9482 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9483 architecture when registering sparcnbsd_core_osabi_sniffer.
9486 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9488 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9491 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9492 * i386-tdep.c: Correct register numbering scheme comments
9494 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9495 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9496 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9497 (i386_gdb_arch_init): Likewise.
9499 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9500 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9503 * m68k-tdep.h: Tweak comments.
9504 * m68k-tdep.c: Tweak comment.
9506 2004-04-17 Randolph Chung <tausq@debian.org>
9508 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9509 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9510 (hppa_hpux_som_init_abi): Set is_elf to 0.
9511 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9512 * hppa-tdep.c (low_text_segment_address): Remove global.
9513 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9514 section offset to calculate segment address.
9515 (internalize_unwinds): Define low_text_segment_address as local and
9516 pass to record_text_segment_lowaddr for ELF targets.
9517 (hppa_gdbarch_init): Zero fill tdep structure.
9518 (hppa_dump_tdep): Print tdep structure.
9519 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9521 2004-04-17 Randolph Chung <tausq@debian.org>
9523 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9524 (hppa_gdbarch_init): Set pseudo_register_read.
9525 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9526 * regcache.c (supply_register): Remove check for
9527 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9529 2004-04-17 Randolph Chung <tausq@debian.org>
9531 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9532 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9533 (hpread_adjust_stack_address): Move to hpread.c.
9534 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9535 obj_private_struct): Move from tm-hppa.h.
9536 * hpread.c (hppa-tdep.h): Include.
9537 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9538 (hpread_read_function_type, hpread_read_doc_function_type)
9539 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9541 * pa64solib.c (hppa-tdep.h): Include.
9542 * somsolib.c (hppa-tdep.h): Include.
9543 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9544 inferior_status): Remove unused forward declarations.
9545 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9546 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9547 obj_private_struct): Move to hppa-tdep.h.
9548 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9550 2004-04-17 Randolph Chung <tausq@debian.org>
9552 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9553 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9554 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9555 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9556 Remove forward declaration and make static.
9557 (hppa_reg_struct_has_addr): Remove.
9559 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9561 * observer.sh: Move comments in sed command to first column.
9563 2004-04-16 Jason Molenda (jmolenda@apple.com)
9565 * frame.c: Minor typeo corrections in comments.
9567 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9569 * observer.c (observer_test_first_notification_function): Update
9571 (observer_test_second_notification_function): Likewise.
9572 (observer_test_third_notification_function): Likewise.
9574 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9576 From Brian Ford <ford@vss.fsi.com>:
9577 * i386-tdep.c (i386_coff_init_abi): New function.
9578 * i386-tdep.h (i386_coff_init_abi): New prototype.
9579 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9580 register number translation functions for DWARF and DWARF 2.
9582 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9584 * dwarf2read.c: Back out my previous change, it was incorrect.
9586 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9588 * dwarf2read.c: Include "hashtab.h".
9589 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9591 (struct partial_die_info): Add comments. Use bitfields to reduce
9592 memory footprint. Add scope, scope_set, has_specification,
9593 spec_offset, die_parent, die_child, and die_sibling.
9594 (peek_die_abbrev): Add prototype.
9595 (partial_read_comp_unit_head): New function, broken out from
9596 dwarf2_build_psymtabs_hard.
9597 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9598 Use partial_read_comp_unit_head. Initialize the CU and
9599 comp_unit_obstack. Update calls to read_partial_die and
9600 scan_partial_symbols. Use free_stack_comp_unit and
9602 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9603 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9604 Update calls to helper functions. Remove NAMESPACE argument.
9606 (partial_die_parent_scope, partial_die_full_name): New functions.
9607 (add_partial_symbol): Remove namespace argument. Update call to
9608 pdi_needs_namespace. Use partial_die_full_name. Handle
9609 DW_TAG_namespace. Check has_namespace_info flag.
9610 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9611 tag. Handle namespaces.
9612 (add_partial_namespace, add_partial_enumeration): Simplify.
9613 (guess_structure_name): New function, derived from
9614 add_partial_structure.
9615 (add_partial_structure): Remove.
9616 (determine_class_name): Update comment.
9617 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9618 (is_type_tag_for_partial, load_partial_dies): New functions.
9619 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9620 Record specifications instead of following them immediately.
9621 (find_partial_die_in_comp_unit, find_partial_die)
9622 (fixup_partial_die, free_stack_comp_unit)
9623 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9624 (partial_die_hash, partial_die_eq): New functions.
9625 * Makefile.in (hashtab_h): Define.
9626 (dwarf2read.o): Update dependencies.
9627 (observer_inc, observer_h): Move to the correct section.
9629 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9631 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9632 (die_is_declaration): Use the function above. Add comment.
9634 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9636 * dwarf2read.c (read_structure_scope): Identify stub types
9637 using die_is_declaration() only.
9639 2004-04-15 Roland McGrath <roland@redhat.com>
9641 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9642 argument instead of NAME.
9643 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9644 in call to symbol_file_add_with_addrs_or_offsets.
9645 (build_addr_info): New function, helper for ...
9646 (symbol_file_add_from_memory): New function.
9647 (add_symbol_file_from_memory_command): New function using that.
9648 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9649 (pre_add_symbol_hook): Add const to argument type.
9650 * symfile.h (symbol_file_add_from_memory): Declare it.
9652 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9654 * NEWS (New native configurations): Mention OpenBSD/vax.
9655 * configure.host: Add vax-*-openbsd*.
9656 * config/vax/obsd.mh: New file.
9657 * config/vax/nm-obsd.h: New file.
9659 * vax-tdep.c: Include "regset.h".
9660 (vax_supply_gregset): New function.
9661 (vax_gregset): New variable.
9662 (vax_regset_from_core_section): New function.
9663 (vax_gdbarch_init): Set regset_from_core_section.
9664 * Makefile.in (vax-tdep.o): Update dependencies.
9666 2004-04-15 Andrew Cagney <cagney@redhat.com>
9668 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9669 (observer_normal_stop_notification_stub)
9670 (observer_attach_normal_stop, observer_detach_normal_stop):
9671 Delete, replaced by #include "observer.inc".
9672 * infrun.c (normal_stop): Pass "stop_bpstat" to
9673 observer_notify_normal_stop.
9674 * Makefile.in (observer_inc): Define.
9675 (observer.o): Update dependencies.
9676 (observer.h, observer.inc): New rules.
9677 * observer.h: Delete file.
9678 * observer.sh: New file.
9680 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9682 * vax-tdep.c (vax_frame_cache): Fix typo.
9684 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9686 * NEWS (New native configurations): Mention NetBSD/vax.
9687 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9688 * config/vax/nbsdelf.mh: New file.
9689 * config/vax/nbsdaout.mh: New file.
9690 * config/vax/nm-nbsd.h: New file.
9691 * config/vax/nm-nbsdaout.h: New file.
9693 * vaxnbsd-tdep.c: New file.
9694 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9695 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9696 * config/vax/nbsd.mt: New file.
9697 * config/vax/tm-nbsd.h: New file.
9699 * Makefile.in (vaxbsd-nat.o): New dependency.
9701 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9702 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9703 struct_addr arguments. Don't push return value address.
9704 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9705 arguments to vax_store_arguments. Store return value address in
9707 (vax_store_struct_return, vax_extract_return_value)
9708 (vax_store_return_value): Remove functions.
9709 (vax_return_value): New function.
9710 (vax_gdbarch_init): Set return value. Don't set
9711 deprecated_store_struct_return, deprecated_extract_struct_return
9712 and deprecated_store_return_value.
9714 2004-04-14 Andreas Schwab <schwab@suse.de>
9716 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9718 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9720 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9722 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9723 (vax_unwind_dummy_id): New functions.
9724 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9725 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9727 (vax_fix_call_dummy): Remove function.
9728 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9729 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9730 call_dummy_location, deprecated_call_dummy_words,
9731 deprecated_sizeof_call_dummy_words,
9732 deprecated_call_dummy_breakpoint_offset,
9733 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9734 and deprecated_dummy_write_sp.
9736 2004-04-13 David Carlton <carlton@kealia.com>
9738 * MAINTAINERS: Move myself to "paper trail" section.
9740 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9742 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9744 (vax_frame_init_saved_regs): Remove function.
9745 (vax_sigtramp_saved_pc): Remove function.
9746 (vax_frame_saved_pc): Remove function.
9747 (vax_frame_args_address): Remove function.
9748 (vax_frame_num_args): Rewrite.
9749 (vax_frame_chain): Remove function.
9750 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9752 (vax_pop_frame): Likewise.
9753 (vax_saved_pc_after_call): Remove function.
9754 (struct vax_frame_cache): New structure.
9755 (vax_frame_cache): New function.
9756 (vax_frame_this_id): New function.
9757 (vax_frame_prev_register): New function.
9758 (vax_frame_unwind): New variable.
9759 (vax_frame_sniffer): New function.
9760 (vax_frame_base_address): New function.
9761 (vax_frame_args_address): New function.
9762 (vax_frame_base): New variable.
9763 (vax_unwind_pc): New function.
9764 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9765 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9766 deprecated_frame_chain, deprecated_frame_saved_pc,
9767 deprecated_frame_args_address and
9768 deprecated_frame_init_saved_regs.
9769 * Makefile.in (vax-tdep.o): Update dependencies.
9771 * vaxbsd-nat.c: New file.
9773 * vax-tdep.h: Update copyright year. Adjust comments.
9774 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9775 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9776 (vax_regnum): New enum. Replacing...
9777 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9778 (VAX_PS_REGNUM): ... these removed macros.
9779 * vax-tdep.c (vax_register_name): Remove prototype.
9780 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9781 (vax_register_byte, vax_register_raw_size,
9782 vax_register_virtual_size, vax_register_virtual_type): Remove
9784 (vax_register_type): New function.
9785 (vax_breakpoint_from_pc): Reorganize.
9786 (vax_gdbarch_init): Set register_type. Don't set
9787 deprecated_register_size, deprecated_register_bytes,
9788 deprecated_register_byte, deprecated_register_raw_size,
9789 deprecated_max_register_raw_size,
9790 deprecated_register_virtual_size,
9791 deprecated_max_register_virtual_size and
9792 deprecated_register_virtual_type. Add comment on stack direction.
9794 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9796 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9797 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9798 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9800 2004-04-10 Randolph Chung <tausq@debian.org>
9802 * MAINTAINERS (write after approval): Add myself.
9804 2004-04-07 Randolph Chung <tausq@debian.org>
9806 * hppa-tdep.c (hppa_inner_than): Remove.
9807 (is_pa_2): Remove unused static variable.
9808 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9810 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9812 * language.h (language_defn): Add new la_post_parser field.
9813 * parser-defs.h (null_post_parser): New declaration (default for
9816 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9817 insert call to that function.
9818 (parse_exp_in_context): New function, including code formerly in
9819 parse_exp_1. Calls language-dependent post-parser after
9821 (parse_expression_in_context): New exported function.
9822 (null_post_parser): New definition.
9823 * expression.h (parse_expression_in_context): Add declaration.
9825 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9826 * c-lang.c (c_language_defn): Ditto.
9827 (cplus_language_defn): Ditto.
9828 (asm_language_defn): Ditto.
9829 (minimal_language_defn): Ditto.
9830 * f-lang.c (f_language_defn): Ditto.
9831 * jv-lang.c (java_language_defn): Ditto.
9832 * language.c (unknown_language_defn): Ditto.
9833 (auto_language_defn): Ditto.
9834 (local_language_defn): Ditto.
9835 * m2-lang.c (m2_language_defn): Ditto.
9836 * scm-lang.c (scm_language_defn): Ditto.
9837 * obj-lang.c (objc_language_defn): Ditto.
9839 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9841 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9842 (amd64nbsd_mcontext_addr): New function.
9843 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9844 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9845 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9847 * corelow.c (core_xfer_partial): Fix coding standards violation.
9848 Add support for TARGET_OBJECT_WCOOKIE.
9850 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9851 deprecated_pc_in_sigtramp.
9852 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9853 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9854 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9855 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9856 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9857 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9858 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9860 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9861 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9864 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9865 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9866 (amd64_collect_fxsave): Likewise.
9868 * i386-sol2-tdep.c: Include "gdb_string.h".
9869 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9871 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9873 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9875 * i386-sol2-tdep.c: Include "solib-svr4.h".
9876 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9877 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9878 * config/i386/tm-i386sol2.h: Include :solib.h".
9879 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9880 solib-svr4.o and solib-legacy.o.
9881 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9884 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9886 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9887 whether a register is supplied by PTRACE_GETFPREGS.
9888 (store_inferior_registers): Likewise.
9889 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9890 whether a register is supplied by PT_GETFPREGS.
9891 (store_inferior_registers): Likewise.
9893 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9894 * config/i386/linux64.mt (TDEPFILES): Likewise.
9896 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9898 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9899 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9900 the program counter is in the range specified by `struct
9902 * amd64-linux-tdep.c: Include "symtab.h".
9903 (amd64_linux_pc_in_sigtramp): Remove function.
9904 (amd64_linux_sigtramp_p): New function.
9905 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9906 deprecated_pc_in_sigtramp.
9907 * amd64nbsd-tdep.c: Include "symtab.h".
9908 (amd64nbsd_sigtramp_p): New function.
9909 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9910 deprecated_pc_in_sigtramp.
9911 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9913 (amd64obsd_pc_in_sigtramp): Remove function.
9914 (amd64obsd_sigtramp_p): New function.
9915 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9916 deprecated_pc_in_sigtramp.
9917 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9918 (i386bsd_pc_ins_sigtramp): Remove prototype.
9919 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9920 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9921 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9922 the program counter is in the range specified by `struct
9924 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9925 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9926 (i386_go32_pc_in_sigtramp): Remove function.
9927 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9928 Initialize TDEP->sigtramp_p.
9929 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9930 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9931 deprecated_pc_in_sigtramp.
9932 * i386-linux-tdep.c: Adjust comments.
9933 (i386_linux_pc_in_sigtramp): Remove function.
9934 (i386_linux_sigtramp_p): New function.
9935 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9936 deprecated_pc_in_sigtramp.
9937 * i386-nto-tdep.c: Update copyright year.
9938 (i386nto_pc_in_sigtramp): Remove function.
9939 (i386nto_sigtramp_p): New function.
9940 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9942 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9943 deprecated_pc_in_sigtramp.
9944 * i386-sol2-tdep.c: Update copyright year.
9945 (i386_sol2_pc_in_sigtramp): Remove function.
9946 (i386_sol2_sigtramp_p): New function.
9947 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9948 deprecated_pc_in_sigtramp.
9949 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9950 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9951 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9952 deprecated_sigtramp_start and deprecated_sigtramp_end.
9953 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9954 (i386nbsd_pc_in_sigtramp): Remove function.
9955 (i386nbsd_sigtramp_p): New function.
9956 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9957 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9958 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9959 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9960 (i386obsd_pc_in_sigtramp): Remove function.
9961 (i386obsd_sigtramp_p): New function.
9962 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9964 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9965 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9967 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9968 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9971 * config/i386/i386aout.mt: Remove file.
9973 * configure.tgt: Remove i[34567]86-*-go32*,
9974 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9975 and i[34567]86-*-isc*. Set gdb_target to i386 for
9976 i[34567]86-*-netware* and i[34567]86-*-*.
9977 * config/i386/i386.mt: New file.
9978 * config/i386/embed.mt: Remove file.
9979 * config/i386/go32.mt: Remove file.
9980 * config/i386/i386nw.mt: Remove file.
9981 * config/i386/i386v.mt: Remove file.
9982 * config/i386/tm-go32.h: Remove file.
9984 * tui/tui-hooks.c: Include "readline/readline.h" after
9985 "gdb_curses.h" instead of before.
9986 * tui/tui-io.c: Likewise.
9988 * tui/tui.c: Fix typo in comment.
9990 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9992 2004-04-08 Andrew Cagney <cagney@redhat.com>
9994 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9995 (deprecated_exception_support_initialized): Declare.
9996 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9997 (initialize_hp_cxx_exception_support)
9998 (child_enable_exception_callback): Update.
9999 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
10000 (deprecated_exception_support_initialized): Rename
10001 deprecated_exception_catchpoints_are_fragile and
10002 deprecated_exception_support_initialized.
10003 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
10005 * symtab.c (deprecated_hp_som_som_object_present): Rename
10006 hp_som_som_object_present.
10007 * symtab.h (deprecated_hp_som_som_object_present): Declare.
10008 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
10009 Update. Delete extern declaration.
10010 * valops.c (hp_som_som_object_present): Ditto.
10011 * parse.c (deprecated_hp_som_som_object_present)
10012 (parse_nested_classes_for_hpacc): Ditto.
10013 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
10014 * hppa-hpux-tdep.c (hp_som_som_object_present)
10015 (initialize_hp_cxx_exception_support): Ditto.
10016 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
10017 * cp-valprint.c (hp_som_som_object_present)
10018 (cp_print_class_method): Ditto.
10019 * c-typeprint.c (hp_som_som_object_present):
10020 (c_type_print_base): Ditto.
10021 * c-exp.y (hp_som_som_object_present): Ditto.
10023 2004-04-08 Andrew Cagney <cagney@redhat.com>
10025 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
10026 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
10027 (frame_unwind_find_by_frame): Re-implement the unwind code so
10028 that it can both prepend and append sniffers. Replace
10029 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
10030 * tramp-frame.c (tramp_frame_append): Use
10031 frame_unwind_prepend_unwinder.
10032 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
10033 frame_unwind_register_unwinder.
10034 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
10035 tramp_frame_append.
10036 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
10037 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
10038 (mips_linux_init_abi): Update.
10040 2004-04-08 Kevin Buettner <kevinb@redhat.com>
10042 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
10043 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
10046 2004-04-07 Kevin Buettner <kevinb@redhat.com>
10048 * ia64-tdep.c (elf.h): Don't include.
10049 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
10051 2004-04-07 Jason Molenda (jmolenda@apple.com)
10053 * frame.h: Typeo corrections in comments.
10055 2004-04-07 Jim Blandy <jimb@redhat.com>
10057 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
10060 2004-04-07 Mark Kettenis <kettenis@gnu.org>
10062 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
10063 * config/sparc/linux64.mt (TDEPFILES): Likewise.
10064 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10065 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
10066 and solib-legacy.o.
10067 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
10069 * config/sparc/tm-sol2.h: Update copyright year. Include
10072 * sparc-sol2-tdep.c: Update copyright year. Include
10074 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10075 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
10076 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10077 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
10080 2004-04-06 Andrew Cagney <cagney@redhat.com>
10082 * infttrace.c: Include "infttrace.h".
10083 * infttrace.h: Include "target.h".
10084 * Makefile.in (infttrace_h): Update.
10085 (infttrace.o): Update.
10087 2004-04-06 Andrew Cagney <cagney@redhat.com>
10089 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
10090 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
10091 move extern declarations from here ...
10092 * infttrace.h: ... to here.
10093 * Makefile.in (hppah-nat.o): Update dependencies.
10095 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
10096 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
10097 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
10098 (hppa_breakpoint_from_pc): Delete.
10100 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
10102 2004-04-05 Andrew Cagney <cagney@redhat.com>
10104 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
10105 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
10108 2004-04-06 Randolph Chung <tausq@debian.org>
10110 Committed by Andrew Cagney (mechanical change).
10111 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10112 exception_catchpoints_are_fragile, find_stub_with_shl_get,
10113 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10114 child_enable_exception_callback, current_ex_event,
10115 null_symtab_and_line, child_get_current_exception_event,
10116 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10117 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10118 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10119 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10120 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10121 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10122 Move hpux-specific definitions ...
10123 * hppa-hpux-tdep.c: ... to here.
10125 2004-04-05 Andrew Cagney <cagney@redhat.com>
10127 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10128 skip_prologue_using_sal.
10130 2004-04-05 Andrew Cagney <cagney@redhat.com>
10132 * config/i386/tm-i386.h: Delete file.
10133 * config/i386/tm-vxworks.h: Update copyright, do not include
10135 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10136 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10137 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10138 * config/i386/ncr3000.mt (TM_FILE): Delete.
10139 * config/i386/interix.mt (TM_FILE): Delete.
10140 * config/i386/i386v.mt (TM_FILE): Delete.
10141 * config/i386/i386nw.mt (TM_FILE): Delete.
10142 * config/i386/i386gnu.mt (TM_FILE): Delete.
10143 * config/i386/i386aout.mt (TM_FILE): Delete.
10144 * config/i386/embed.mt (TM_FILE): Delete.
10146 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10148 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10149 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10150 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10151 (accg7_regnum): New constants.
10152 (last_spr_regnum, last_pseudo_regnum): Update.
10153 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10154 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10155 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10156 for accg registers.
10157 (frv_register_sim_regno): Update spr_map[].
10159 2004-04-04 Andrew Cagney <cagney@redhat.com>
10161 * config/mips/xm-riscos.h: Delete.
10162 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10163 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10164 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10165 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10166 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10167 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10168 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10169 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10170 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10171 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10172 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10173 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10174 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10175 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10176 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10177 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10178 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10179 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10180 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10181 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10182 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10183 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10184 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10185 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10186 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10187 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10189 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10190 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10191 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10192 * configure.host: Remove m680[01]0-sun-sunos3*,
10193 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10194 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10195 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10196 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10198 * NEWS: Mention removed systems.
10200 2004-04-04 Andrew Cagney <cagney@redhat.com>
10202 GDB 6.1 release created from 6.1 branch.
10204 2004-04-04 Andrew Cagney <cagney@redhat.com>
10206 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10207 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10208 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10210 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10211 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10212 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10214 2004-04-03 Jim Blandy <jimb@redhat.com>
10216 * MAINTAINERS: Chris Faylor has changed employers; add him to
10217 "paper trail" section, and update his E-mail address.
10219 2004-04-03 Andrew Cagney <cagney@redhat.com>
10221 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10222 generic dummy frames.
10223 * dummy-frame.c: Update copyright.
10224 (dummy_frame_sniffer): Delete check for generic dummy frames.
10226 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10227 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10228 (REG_PARM_STACK_SPACE): Delete.
10229 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10230 Inline reference to REG_PARM_STACK_SPACE.
10232 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10233 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10234 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10235 (FRAME_BASE_BEFORE_SIGTRAMP)
10236 (hppa32_hpux_frame_base_before_sigtramp)
10237 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10238 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10239 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10240 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10241 (FRAME_BASE_BEFORE_SIGTRAMP)
10242 (hppa64_hpux_frame_base_before_sigtramp)
10243 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10245 2004-04-03 Andrew Cagney <cagney@redhat.com>
10247 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10249 2004-04-02 Andrew Cagney <cagney@redhat.com>
10251 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10252 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10253 * dummy-frame.h: Delete out-of-date comments.
10254 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10255 * gdbarch.h, gdbarch.c: Re-generate.
10257 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10259 Committed by Andrew Cagney <cagney@redhat.com>.
10260 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10261 into account an instruction saving a register if we have already
10262 seen an earlier instruction saving that same register.
10264 2004-04-02 Andrew Cagney <cagney@redhat.com>
10266 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10267 * gdbarch.h, gdbarch.c: Re-generate.
10268 * frame.c (legacy_get_prev_frame): Delete references to
10269 DEPRECATED_INIT_FRAME_PC_FIRST.
10271 * infrun.c (pc_in_sigtramp): Delete function.
10272 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10275 2004-04-02 Andrew Cagney <cagney@redhat.com>
10277 * infrun.c (handle_step_into_function): Delete code conditional on
10279 (handle_inferior_event, step_over_function): Ditto.
10281 2004-04-02 Andrew Cagney <cagney@redhat.com>
10283 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10284 "previous frame inner to this frame" test.
10286 2004-04-02 Andrew Cagney <cagney@redhat.com>
10288 * frame.c (safe_frame_unwind_memory): New function.
10289 * frame.h (safe_frame_unwind_memory): Declare. Update description
10290 of /safe_/ methods.
10291 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10292 "next_frame". Use safe_frame_unwind_memory.
10293 (tramp_frame_sniffer): Update call to tramp_frame_start.
10295 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10297 * dwarf2read.c (dwarf2_objfile_data_key): New.
10298 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10299 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10300 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10301 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10302 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10303 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10304 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10306 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10307 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10308 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10309 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10310 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10311 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10313 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10315 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10316 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10317 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10318 (read_partial_die, read_full_die, read_indirect_string)
10319 (dwarf_decode_line_header, dwarf_decode_macros)
10320 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10321 Update uses of removed variables.
10322 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10324 (_initialize_dwarf2_read): New function.
10325 * symfile.h (dwarf2_has_info): Update prototype.
10326 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10327 * elfread.c (elf_symfile_read): Likewise.
10329 2004-04-01 Jim Blandy <jimb@redhat.com>
10331 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10332 function for register numbers on all the rs6000-derived targets.
10333 (rs6000_gdbarch_init): Don't register a separate
10334 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10335 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10338 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10341 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10343 * valarith.c: Update copyright notice.
10344 (value_add): Handle range types.
10345 (value_sub): Ditto.
10346 (value_equal): Ditto.
10347 (value_less): Ditto.
10348 (value_neg): Ditto.
10349 (value_complement): Ditto.
10350 (value_binop): Simplify slightly by using is_integral_type and
10351 eliminiating unnecessary COERCE_ENUMs.
10353 2004-03-31 Andrew Cagney <cagney@redhat.com>
10355 * frame.h (frame_unwind_id): Declare.
10356 * frame.c (frame_unwind_id): New function.
10357 (get_prev_frame_1): New function.
10358 (frame_debug_got_null_frame): New function.
10359 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10360 code proper to prev_frame, update description.
10361 * infrun.c (step_over_function): Use frame_unwind_id.
10363 2004-04-31 J. Brobecker <brobecker@gnat.com>
10365 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10366 (hppa64_push_dummy_call): Likewise.
10368 2004-03-30 Jim Blandy <jimb@redhat.com>
10370 From Ulrich Weigand:
10371 * utils.c (query): Do not use a va_list variable multiple times.
10373 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10375 * Makefile.in (linux_nat_h): Update dependencies.
10376 * configure.in: Check for <gnu/libc-version.h>.
10377 * configure: Regenerate.
10378 * config.in: Regenerate.
10379 * linux-nat.h: Include "target.h". Add waitstatus field to
10381 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10382 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10384 (lin_lwp_handle_extended): New function. Handle clone events.
10385 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10386 thread exit events.
10387 (child_wait): Handle clone events.
10388 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10389 * linux-nat.c (linux_enable_event_reporting): Turn on
10390 PTRACE_O_TRACECLONE.
10391 (linux_handle_extended_wait): Handle clone events.
10392 * thread-db.c: Include <gnu/libc-version.h>.
10393 (struct private_thread_info): Add dying flag.
10394 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10396 (attach_thread): Update comments. Handle dying threads.
10397 (detach_thread): Set the dying flag.
10398 (check_event): Always call attach_thread.
10400 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10402 * mips-tdep.c (mips_pdr_data): New.
10403 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10404 (_initialize_mips_tdep): Initialize mips_pdr_data.
10406 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10408 * minsyms.c (install_minimal_symbols): Move dropping leading
10409 char from linkage name from here...
10410 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10411 test for "__gnu_compiled*" symbols.
10413 2004-03-28 Jim Blandy <jimb@redhat.com>
10415 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10416 registers to temp register r0 and byte stores as prologue
10419 2004-03-28 Andrew Cagney <cagney@redhat.com>
10421 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10424 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10426 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10427 and switch the layout to force a display of register window.
10429 2004-02-26 J. Brobecker <brobecker@gnat.com>
10431 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10432 of the INTEGER class.
10434 2004-03-26 Jim Blandy <jimb@redhat.com>
10436 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10437 bytes long on PPC GNU/Linux.
10439 2004-03-26 David Carlton <carlton@kealia.com>
10441 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10443 2004-03-25 Andrew Cagney <cagney@redhat.com>
10445 * PROBLEMS: Add general section titles, remove references to
10448 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10450 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10452 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10453 FP_REGISTER_VIRTUAL_SIZE.
10454 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10455 of DEPRECATED_REGISTER_RAW_SIZE.
10456 (arm_register_type): Add gdbarch argument.
10457 (arm_register_raw_size, arm_register_virtual_size): Delete.
10458 (arm_register_byte, arm_extract_return_value)
10459 (arm_store_return_value, arm_get_longjmp_target): Update references
10460 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10461 (arm_gdbarch_init): Likewise. Don't set
10462 deprecated_register_raw_size, deprecated_register_virtual_size,
10463 deprecated_max_register_raw_size,
10464 deprecated_max_register_virtual_size, or
10465 deprecated_max_register_virtual_type. Do set register_type.
10466 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10467 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10468 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10469 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10470 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10471 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10473 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10474 (remote_rdp_store_register): Likewise.
10476 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10478 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10479 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10480 to after osabi initialization.
10481 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10482 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10484 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10485 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10487 (mips_linux_init_abi): Append signal trampoline unwinders.
10489 2004-03-24 Andrew Cagney <cagney@redhat.com>
10491 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10492 * tramp-frame.c: Include "gdb_assert.h".
10493 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10495 (tramp_frame_append): Validate the tramp frame's instructions.
10496 * Makefile.in (tramp-frame.o): Update dependencies.
10498 2004-03-23 Andrew Cagney <cagney@redhat.com>
10500 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10502 2004-03-23 Andrew Cagney <cagney@redhat.com>
10504 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10505 Nasser as past testsuite/lib/ (and other) maintainers.
10507 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10509 * infcmd.c (attach_command): Reread symbols if we already have
10512 2004-03-23 Andrew Cagney <cagney@redhat.com>
10514 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10516 2004-03-23 Andrew Cagney <cagney@redhat.com>
10518 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10519 * gdbarch.h, gdbarch.c: Re-generate.
10520 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10521 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10522 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10523 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10524 (DEPRECATED_SIGTRAMP_START): Update.
10525 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10526 (DEPRECATED_SIGTRAMP_START): Update.
10527 * blockframe.c (find_pc_sect_partial_function): Update.
10528 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10530 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10532 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10535 2004-03-23 Andrew Cagney <cagney@redhat.com>
10537 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10538 predicate, deprecate.
10539 * gdbarch.h, gdbarch.c: Re-generate.
10540 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10541 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10542 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10543 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10544 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10545 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10546 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10547 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10548 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10549 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10550 * blockframe.c (find_pc_partial_function): Update.
10551 * breakpoint.c (bpstat_what): Update.
10552 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10553 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10554 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10555 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10556 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10557 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10558 * i386-nto-tdep.c (i386nto_init_abi): Update.
10559 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10560 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10561 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10562 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10563 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10564 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10565 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10566 * infrun.c (pc_in_sigtramp): Update.
10567 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10568 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10569 * mips-tdep.c (mips_gdbarch_init): Update.
10570 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10571 * ppc-linux-tdep.c: Update comment.
10572 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10573 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10574 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10575 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10576 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10577 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10578 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10579 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10580 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10581 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10583 2004-03-23 Andrew Cagney <cagney@redhat.com>
10585 * tramp-frame.h, tramp-frame.h: New files.
10586 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10587 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10589 * Makefile.in: Update all dependencies.
10591 2004-03-23 Andrew Cagney <cagney@redhat.com>
10593 * Makefile.in (trad_frame_h): Add $(frame_h).
10594 * trad-frame.h: Update copyright. Include "frame.h".
10595 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10596 (trad_frame_set_id, trad_frame_get_id): Declare.
10597 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10598 * trad-frame.c: Update copyright.
10599 (struct trad_frame_cache): Define.
10600 (trad_frame_cache_zalloc): New function.
10601 (trad_frame_set_id, trad_frame_get_id): New functions.
10602 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10604 2004-03-22 Andrew Cagney <cagney@redhat.com>
10606 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10607 s390_pltstub_unwind_cache.
10608 (s390_stub_frame_unwind_cache): Rename
10609 s390_pltstub_frame_unwind_cache.
10610 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10611 (s390_stub_frame_prev_register): Rename
10612 s390_pltstub_frame_prev_register.
10613 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10614 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10616 From Ulrich Weigand:
10617 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10618 pointer calls like PLT calls.
10620 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10622 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10623 PC rather than the partial function start address. Use the start
10624 address to sanity check the found PDR.
10626 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10628 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10629 linux_handle_extended_wait.
10631 2004-03-22 Andrew Cagney <cagney@redhat.com>
10633 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10636 * frame.h (generic_pop_current_frame): Delete declaration.
10637 (deprecate_pop_dummy_frame): Deprecate
10638 generic_pop_dummy_frame.
10639 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10640 (generic_pop_current_frame): Delete function.
10641 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10642 generic_pop_current_frame.
10643 * v850-tdep.c (v850_pop_frame): Update.
10644 * mcore-tdep.c (mcore_pop_frame): Update.
10645 * sh64-tdep.c (sh64_pop_frame): Update.
10646 * h8300-tdep.c (h8300_pop_frame): Update.
10648 2004-03-22 Andrew Cagney <cagney@redhat.com>
10650 * frame.h (deprecated_pc_in_call_dummy): Rename
10651 generic_pc_in_call_dummy.
10652 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10653 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10654 generic_pc_in_call_dummy.
10655 (pc_in_dummy_frame): Make static.
10656 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10657 * gdbarch.h, gdbarch.c: Re-generate.
10658 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10659 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10660 (legacy_get_prev_frame): Ditto.
10661 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10664 2004-03-21 Andrew Cagney <cagney@redhat.com>
10666 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10667 declaration and out-of-date comment.
10668 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10670 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10671 deprecated_pc_in_call_dummy.
10673 * infrun.c (handle_inferior_event): For non legacy frames, use the
10674 frame ID and frame type to identify a signal trampoline. Update
10677 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10679 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10680 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10682 2004-03-21 Andrew Cagney <cagney@redhat.com>
10684 * frame-unwind.h: Update copyright.
10685 (struct frame_data): Add opaque declaration.
10686 (frame_sniffer_ftype): Declare.
10687 (struct frame_unwind): Add "unwind_data" and "sniffer".
10688 (frame_unwind_register_unwinder): Declare.
10689 (frame_unwind_find_by_frame): Add parameter "this_cache".
10690 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10691 (legacy_get_prev_frame, legacy_get_prev_frame)
10692 (get_frame_type): Pass the prologue_cache to
10693 frame_unwind_find_by_frame.
10694 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10696 (frame_unwind_register_unwinder): New function.
10697 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10699 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10701 * bcache.c (print_percentage): Use floating point to avoid
10702 incorrect results when portion*100 overflows.
10704 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10706 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10707 (ppc_linux_init_extra_frame_info)
10708 (ppc_linux_frameless_function_invocation)
10709 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10710 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10711 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10712 (rs6000_frame_chain): Delete declarations.
10713 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10714 (ppc_linux_init_extra_frame_info)
10715 (ppc_linux_frameless_function_invocation)
10716 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10717 (ppc_linux_init_abi): Remove registration of above deleted functions.
10718 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10719 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10720 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10721 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10722 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10723 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10724 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10725 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10726 frame management for all OSABIs.
10728 2004-03-19 Andrew Cagney <cagney@redhat.com>
10730 Committed by Kevin Buettner <kevinb@redhat.com>.
10732 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10734 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10735 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10736 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10737 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10738 unwinders. #ifdef legacy frame code.
10739 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10741 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10742 (struct rs6000_frame_cache, rs6000_frame_cache)
10743 (rs6000_frame_this_id, rs6000_frame_prev_register)
10744 (rs6000_frame_sniffer, rs6000_frame_unwind)
10745 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10746 (rs6000_frame_base): Implement a traditional frame unwinder.
10747 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10750 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10752 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10753 breakpoint address for watchpoints or the catch eventpoints.
10754 Add new paramter ``bptype''. Adjust all callers.
10756 2004-03-19 Andrew Cagney <cagney@redhat.com>
10758 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10760 * PROBLEMS: Delete note that ARM does not use frame code, problem
10763 2004-03-18 Andrew Cagney <cagney@redhat.com>
10765 * stack.c (return_command): Delete code wrapped in #ifdef
10766 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10768 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10770 2004-03-18 Andrew Cagney <cagney@redhat.com>
10772 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10773 DEPRECATED_IN_SIGTRAMP.
10774 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10775 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10776 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10777 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10778 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10779 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10780 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10781 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10782 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10783 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10785 2004-03-18 Andrew Cagney <cagney@redhat.com>
10787 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10788 (struct frame_base_table_entry): Define.
10789 (struct frame_base_table): Re-implement as a linked list.
10790 (frame_base_init): Re-implement.
10791 (frame_base_table): Delete function.
10792 (append_predicate): Delete function.
10793 (frame_base_append_sniffer): Update.
10794 (frame_base_set_default): Update.
10795 (frame_base_find_by_frame): Update.
10796 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10797 * Makefile.in (frame-base.o): Update dependencies.
10799 2004-03-17 Andrew Cagney <cagney@redhat.com>
10801 * frame.c (legacy_get_prev_frame): Pass correct frame to
10802 frame_unwind_find_by_frame.
10804 2004-03-17 David Carlton <carlton@kealia.com>
10806 * NEWS: Mention C++ nested types and namespaces
10808 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10810 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10811 and "Regressions since gdb 5.3.". Add known regressions since
10814 2004-03-16 David Carlton <carlton@kealia.com>
10816 * dwarf2read.c (process_structure_scope): Process children even
10817 when we're a declaration.
10819 2004-03-16 Andrew Cagney <cagney@redhat.com>
10821 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10822 * blockframe.c (find_pc_partial_function)
10823 (find_pc_sect_partial_function): Merge into a single
10824 find_pc_partial_function.
10826 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10828 * i386bsd-nat.c: s/regno/regnum/g.
10829 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10831 (store_inferior_registers): Likewise.
10833 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10835 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10836 of i387_fill_fsave.
10837 (store_inferior_registers): Call i387_collect_fsave and
10838 i387_collect_fxsave instead of i387_fill_fsave and
10841 2004-03-15 Andrew Cagney <cagney@redhat.com>
10843 * Makefile.in (frame-unwind.o): Update dependencies.
10844 * frame-unwind.c: Include "gdb_obstack.h".
10845 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10847 (append_predicate): Delete function.
10848 (struct frame_unwind_table_entry): New structure.
10849 (struct frame_unwind_table): Replace "sniffer" with "head" and
10851 (frame_unwind_append_sniffer): Update.
10852 (frame_unwind_find_by_frame): Update.
10853 (_initialize_frame_unwind): Registe frame_unwind_init using
10854 gdbarch_data_register_pre_init.
10856 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10858 * i386bsd-nat.c: Update copyright year.
10859 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10860 define unconditionally.
10862 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10864 * i387-tdep.h (i387_collect_fsave): New prototype.
10865 * i387-tdep.c (i387_collect_fsave): New function containing most
10866 of the code from i387_fill_fsave.
10867 (i387_fill_fsave): Call i387_collect_fsave.
10869 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10871 * i386-linux-tdep.c: Update copyright year.
10872 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10873 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10874 svr4_ilp32_link_map_offsets instead of
10875 i386_linux_svr4_fetch_link_map_offsets.
10877 2004-03-15 David Carlton <carlton@kealia.com>
10879 Fix for PR c++/1553:
10880 * dwarf2read.c (read_structure_type): Determine type name by
10881 calling determine_class_name.
10882 (determine_class_name): New.
10883 (determine_prefix): Look at TYPE_TAG_NAME and call
10884 determine_class_name when appropriate.
10885 (determine_prefix_aux, class_name): Delete.
10886 (read_namespace): Set die->type.
10888 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10890 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10891 unused macro definition. The definition in target.h (or perhaps
10892 elsewhere) takes precedence.
10894 2004-03-15 Andrew Cagney <cagney@redhat.com>
10896 * ppc-tdep.h: Update copyright.
10897 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10898 function signatures to match "regsets.h".
10899 * ppc-linux-tdep.c: Include "regset.h".
10900 (ELF_GREGSET_SIZE): Delete.
10901 (right_supply_register): New function.
10902 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10903 using right_supply_register.
10904 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10906 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10907 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10908 (_initialize_ppc_linux_tdep): Do not register
10909 ppc_linux_regset_core_fns.
10910 (ppc_linux_regset_from_core_section): Replace
10911 fetch_core_registers.
10912 (ppc_linux_regset_core_fns): Delete.
10913 * ppc-linux-nat.c: (right_fill_reg): New function.
10914 (supply_gregset): Update call to ppc_linux_supply_gregset.
10915 (fill_gregset): Clear the register set, use right_fill_reg.
10916 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10917 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10919 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10922 2004-03-15 Andrew Cagney <cagney@redhat.com>
10924 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10925 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10926 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10927 and register_gdbarch_data.
10928 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10929 (struct gdbarch_data): Replace "init" by "pre_init" and
10931 * gdbarch.h, gdbarch.c: Re-generate.
10932 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10933 with"obstack", use OBSTACK_ZALLOC.
10934 (dwarf2_frame_ops): Delete.
10935 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10936 (dwarf2_frame_init_reg): Use gdbarch_data.
10937 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10938 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10939 (_initialize_svr4_solib): Update.
10940 * user-regs.c (_initialize_user_regs): Update.
10941 * reggroups.c (_initialize_reggroup): Update.
10942 * regcache.c (_initialize_regcache): Update.
10943 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10944 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10945 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10946 * frame-unwind.c (_initialize_frame_unwind): Update.
10947 * frame-base.c (_initialize_frame_base): Update.
10948 * user-regs.c (user_reg_add): Update.
10949 * reggroups.c (reggroup_add): Update.
10950 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10951 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10952 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10953 * frame-base.c (frame_base_table): Update.
10954 * remote.c (_initialize_remote): Update.
10955 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10957 2004-03-15 Andrew Cagney <cagney@redhat.com>
10959 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10961 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10963 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10964 * frv-linux-tdep.c: New file.
10965 * frv-tdep.c (struct gdbarch_tdep): Add new field
10966 ``sigcontext_reg_addr''.
10967 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10968 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10969 (frv_sigramp_frame_sniffer): New functions.
10970 (frv_sigtramp_frame_unwind): New static global.
10971 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10973 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10974 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10976 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10978 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10979 but not via a call to error(), when unable to read memory.
10981 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10983 * frv-tdep.c (frv_call_dummy_words): Delete.
10984 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10986 2004-03-15 Andrew Cagney <cagney@redhat.com>
10988 * infrun.c (handle_step_into_function, step_over_function): Only
10989 update and use STEP_FRAME_ID when the system is using legacy
10990 frames. Update comments.
10992 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10994 * amd64-linux-tdep.h: Remove file.
10995 * amd64-linux-tdep.c: Don't include "inferior.h" and
10996 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10997 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10998 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10999 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
11000 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
11002 (user_to_gdb_regmap): Remove variable.
11003 (amd64_linux_gregset_reg_offset): New variable.
11004 (amd64_core_fns): Remove variable.
11005 (fetch_core_registers): Remove function.
11006 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
11008 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
11009 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
11010 * Makefile.in (amd64_linux_tdep_h): Remove.
11011 (amd64-linux-nat.o): Update dependencies.
11012 (amd64-linux-tdep.o): Update dependencies.
11014 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
11015 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
11017 (fetch_inferior_registers, store_inferior_registers): Rewrite.
11019 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
11020 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
11022 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
11024 * dwarf2read.c (read_structure_type): Rename from
11025 read_structure_scope. Don't create a symbol or call process_die.
11026 Return immediately if die->type is set. Call read_type_die before
11027 dwarf2_add_member_fn.
11028 (process_structure_scope): New function.
11029 (read_enumeration_type, process_enumeration_scope): New functions,
11030 broken out from read_enumeration. Don't create the enumeration
11031 type if it has already been created.
11032 (read_enumeration): Removed.
11033 (process_die): Call read_structure_type, process_structure_scope,
11034 read_enumeration_type, and process_enumeration_scope. Just call
11035 new_symbol for base and subrange types. Add a comment about other
11037 (read_type_die): Call read_enumeration_type.
11038 (add_partial_structure, new_symbol): Update comments.
11040 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
11042 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
11044 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
11046 * tui/tui-win.h (tui_get_cmd_list): Declare.
11047 * tui/tui-win.c (tui_command): New function.
11048 (tui_get_cmd_list): New function.
11049 (_initialize_tui_win): Moved initialization of tui command in
11052 * tui/tui-data.c (init_content_element): Setup new data members.
11053 (init_win_info): Likewise.
11054 (free_content_elements): Free it.
11055 * tui/tui-data.h (struct tui_data_element): Store the register
11057 (struct tui_data_info): Keep the current register group.
11059 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
11061 * tui/tui-regs.h (tui_show_registers): Update prototype.
11062 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
11063 (tui_resize_all): No need to calculate anything for register window.
11064 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
11065 (tui_set_register_element, tui_set_general_regs_content): Remove.
11066 (tui_set_special_regs_content): Remove.
11067 (tui_set_general_and_special_regs_content): Remove.
11068 (tui_set_float_regs_content): Remove.
11069 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
11070 (tui_set_regs_content): Remove.
11071 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
11072 (tui_v_show_registers_command_support): Remove.
11073 (tui_show_registers): Use a reggroup to specify the registers to show.
11074 (tui_show_register_group): New function.
11075 (tui_display_registers_from): Compute the layout of register window
11076 and refresh with new API; be sure to delete old register windows.
11077 (tui_check_register_values): Update to use tui_get_register and
11079 (tui_display_register): Just refresh the register window part.
11080 (tui_register_format): Format registers and save in tui_data_element.
11081 (tui_get_register): New to combine tui_reg_value_has_changed and
11082 tui_get_register_raw_value; fix to use the new gdb API.
11083 (tui_show_float_command): Renamed tui_reg_float_command.
11084 (tui_show_general_command): Renamed tui_reg_general_command.
11085 (tui_show_special_command): Renamed tui_reg_system_command.
11086 (_initialize_tui_regs): Remove unused commands.
11088 2004-03-13 Mark Kettenis <kettenis@gnu.org>
11090 * NEWS (New native configurations): Mention OpenBSD/amd64.
11092 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
11093 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
11095 * config/i386/nm-fbsd64.h: Likewise.
11096 * config/i386/nm-obsd.h: Likewise.
11097 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
11098 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
11100 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11102 * frv-tdep.c (set_variant_scratch_registers): New function.
11103 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
11106 From Richard Sandiford <rsandifo@redhat.com>:
11107 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
11109 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11111 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
11112 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11113 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11114 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11115 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11116 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11117 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11118 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11119 definitions from frv-tdep.c to frv-tdep.h.
11121 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11123 Add shared library support for FR-V FDPIC ABI:
11124 * Makefile.in (solib-frv.o): Add dependencies.
11125 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11127 (frv_push_dummy_call): Add support for FDPIC ABI.
11128 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11130 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11131 (frv_fdpic_find_canonical_descriptor): Declare.
11132 * solib-frv.c: New file.
11133 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11134 * config/frv/tm-frv.h (solib.h): Include.
11136 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11138 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11139 (frv-tdep.o): Update dependencies.
11140 * frv-tdep.h: New file.
11141 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11142 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11144 (struct gdbarch_tdep): Add new member ``frv_abi''.
11145 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11147 (new_variant): Set ``frv_abi'' field.
11148 (gdb_arch_init): Detect FDPIC executables.
11150 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11152 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11155 2004-03-11 Andrew Cagney <cagney@redhat.com>
11157 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11159 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11161 * solist.h (master_so_list): New function.
11162 * solib.c (master_so_list): Likewise.
11163 * solib-svr4.c (enable_break): Iterate over so_list entries
11164 obtained from master list instead of entries obtained directly
11165 via svr4_current_sos().
11167 2004-03-10 Ben Elliston <bje@gnu.org>
11169 * MAINTAINERS: Update my mail address.
11171 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11173 * remote-m32r-sdi.c: Support hardware watchpoint.
11175 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11177 * user-regs.c: Update copyright years.
11178 (struct user_regs): Rename to gdb_user_regs.
11179 (append_user_reg, builtin_user_regs, user_regs_init)
11180 (user_reg_add, user_reg_map_name_to_regnum)
11181 (usernum_to_user_reg): Update.
11183 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11185 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11186 (skip_children): New functions.
11187 (locate_pdi_sibling): Call skip_children.
11189 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11191 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11192 * gdbtypes.c (check_typedef): Update comments.
11194 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11196 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11197 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11198 pointer. Update comment about comp_unit_head.
11199 (struct abbrev_info): Shorten two int flags.
11200 (dwarf_alloc_abbrev): Take a CU argument.
11201 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11202 each time through the loop. Update cleanup argument.
11203 (psymtab_to_symtab_1): Update cleanup call.
11204 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11206 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11207 Just call obstack_free and clear the pointer.
11209 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11211 * infrun.c (handle_inferior_event): Remove short-circuit code for
11212 events in a different thread.
11214 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11216 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11217 print the whole transfer.
11218 (initialize_targets): Update description of "set debug target".
11220 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11222 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11224 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11226 * MAINTAINERS (write after approval): Add myself.
11228 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11230 * sh-tdep.c (sh_print_registers_info): Use for loop.
11231 Don't skip multiple registers when a float register is encountered.
11233 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11236 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11237 to official SH documentation.
11239 2004-03-07 Andrew Cagney <cagney@redhat.com>
11241 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11244 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11246 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11247 (arm_get_next_pc): Handle BX and BLX.
11249 2004-03-07 Andrew Cagney <cagney@redhat.com>
11251 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11252 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11254 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11255 (hppa_target_read_fp): Delete.
11256 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11257 register_virtual_size, max_register_raw_size,
11258 max_register_virtual_size, register_byte, register_size,
11259 target_read_fp, fp_regnum, and register_bytes. Set register_type
11260 instead of register_virtual_type.
11261 (hppa32_register_type, hppa64_register_type): Replace
11262 hppa32_register_virtual_type and hppa64_register_virtual_type.
11263 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11264 (HPPA_FP_REGNUM): Define.
11266 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11268 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11269 (pa_do_registers_info): Delete.
11270 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11271 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11272 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11274 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11275 GDB_TARGET_IS_HPPA code.
11276 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11277 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11278 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11279 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11280 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11281 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11282 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11283 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11284 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11285 (hppa_frameless_function_invocation, hppa64_store_return_value)
11286 (hppa_store_struct_return, hppa64_extract_return_value)
11287 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11288 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11289 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11290 (find_proc_framesize, deposit_21, restore_pc_queue)
11291 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11292 (rp_saved, pc_in_linker_stub): Delete.
11294 Unconditionally enable 64-bit frame and ABI code.
11295 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11296 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11297 push_dummy_frame, fix_call_dummy, push_arguments,
11298 call_dummy_location, extract_return_value, use_struct_convention,
11299 store_return_value, store_struct_return, saved_pc_after_call,
11300 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11301 frame_chain, frame_chain_valid, frameless_function_invocation,
11302 frame_saved_pc, and pop_frame.
11304 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11305 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11306 (hppa_gdbarch_init): Do not set PC_REGNUM.
11308 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11310 * config/alpha/tm-fbsd.h: Remove file.
11311 * config/alpha/fbsd.mt: Tweak comment.
11312 (TM_FILE): Set to tm-alpha.h.
11314 2004-03-05 Andrew Cagney <cagney@redhat.com>
11316 * infrun.c (step_over_function): When non-legacy code, and no
11317 step_frame_id, use the unwinder to get the caller's frame ID.
11319 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11321 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11322 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11323 bfd_arch_unknown. Adjust comment.
11325 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11326 * i386obsd-tdep.c: Correct spelling in comment.
11327 * i386nbsd-tdep.c: Correct spelling in comment.
11328 * sparc-tdep.c: Correct spelling in comments.
11330 2004-03-05 David Carlton <carlton@kealia.com>
11332 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11335 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11337 * sparc-tdep.c: Fix typo in comment.
11339 2004-03-04 J. Brobecker <brobecker@gnat.com>
11341 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11343 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11345 * dwarf2read.c: Add comment describing memory lifetimes.
11346 (struct dwarf2_pinfo): Update comment.
11347 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11348 (read_enumeration, new_symbol): Don't use obsavestring.
11350 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11352 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11353 instead of amd64_fill_fxsave.
11354 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11355 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11357 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11358 Reorganize code a bit.
11360 2004-03-04 Orjan Friberg <orjanf@axis.com>
11362 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11363 when the frame pointer is pushed. Don't set the frame pointer's
11364 address on the stack unless it's actually located there.
11365 Set the SRP's address on the stack correctly when the PC is still in
11367 (cris_return_value): New function.
11368 (cris_gdbarch_init): Clear deprecated store_return_value,
11369 extract_return_value.
11371 2004-03-02 Jim Blandy <jimb@redhat.com>
11373 * stabsread.c (reg_value_complaint): The maximum register number
11374 is one less than the number of registers.
11376 2004-03-02 Andrew Cagney <cagney@redhat.com>
11378 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11379 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11380 trailing comma and redundant assignment of I386_ST0_REGNUM.
11381 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11382 32-bit segment registers.
11384 2004-03-01 Andrew Cagney <cagney@redhat.com>
11386 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11387 use frame_relative_level and get_next_frame.
11389 2004-02-29 Andrew Cagney <cagney@redhat.com>
11391 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11392 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11393 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11396 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11398 * inflow.c (terminal_inferior): Don't give up the terminal if we
11399 previously couldn't get the inferior's terminal state.
11401 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11403 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11406 2004-02-28 Andrew Cagney <cagney@redhat.com>
11408 * NEWS: Refer to GDB 6.1.
11409 * README: Refer to GDB 6.1.
11410 * PROBLEMS: Refer to GDB 6.1.
11412 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11414 * thread-db.c (disable_thread_signals): Remove unused function.
11416 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11418 * amd64-nat.c: Include "gdb_string.h".
11419 (amd64_collect_native_gregset): Zero-extend the 32-bit
11420 general-purpose registers and %eip.
11422 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11423 * amd64-tdep.c (amd64_collect_fxsave): New function.
11424 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11426 * i387-tdep.h: Update copyright year.
11427 (i387_collect_fxsave): New prototype.
11428 * i387-tdep.c: Update copyright year.
11429 (i387_collect_fxsave): New function containing most of the code
11430 from i387_fill_fxsave.
11431 (i387_fill_fxsave): Call i387_collect_fxsave.
11433 2004-02-28 Andrew Cagney <cagney@redhat.com>
11435 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11436 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11438 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11440 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11442 2004-02-28 Andrew Cagney <cagney@redhat.com>
11444 * utils.c: Use "", instead of <>, to include readline.
11445 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11446 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11447 * source.c, solib.c, exec.c, event-top.c: Ditto.
11448 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11449 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11450 * Makefile.in: Update all dependencies.
11451 (readline_tilde_h, readline_history_h): Define.
11452 (readline_headers): Delete.
11454 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11456 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11457 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11458 "config/i386/tm-lx64.h".
11460 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11461 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11462 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11464 2004-02-28 Andrew Cagney <cagney@redhat.com>
11466 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11468 * breakpoint.c (_initialize_breakpoint): Use
11469 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11470 Add help to show command.
11472 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11474 * i386-nat.c: Reformat to be closer to coding standards.
11475 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11476 `retval'. Make variables `align' and `size' local to while-loop.
11477 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11478 (_initialize_i386_nat): New prototype.
11480 * tui/tui.c: Include <readline/readline.h> instead of
11481 "readline/readline.h". Include it after <term.h> and
11484 2004-02-27 Andrew Cagney <cagney@redhat.com>
11486 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11487 the new frame unwind code.
11488 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11489 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11492 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11493 "return_value" and "push_dummy_call".
11494 (hppa32_use_struct_convention): Delete unused function.
11495 (hppa32_store_return_value): Delete unused function.
11496 (hppa32_extract_return_value): Delete unused function.
11497 (hppa32_stack_align): Delete function.
11499 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11501 * coffread.c (enter_linenos): Don't let rawptr reference memory
11502 outside linetab[]'s limits.
11504 2004-02-27 Andrew Cagney <cagney@redhat.com>
11506 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11507 inferior stack space - the stack needs to grow upwards.
11508 (hppa32_frame_align): New function.
11509 (hppa64_frame_align): Replace hppa_frame_align.
11510 (hppa_gdbarch_init): Update.
11512 2004-02-26 Orjan Friberg <orjanf@axis.com>
11514 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11515 (dwarf2-frame.h): Include.
11516 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11517 Remove static variables related to ABI setting.
11518 (struct gdbarch_tdep): Remove cris_abi member.
11519 (struct frame_extra_info): Remove.
11520 (cris_unwind_cache, stack_item): New structs.
11521 (cris_frame_unwind, cris_frame_base): New variables.
11522 (push_stack_item, pop_stack_item)
11523 (cris_frame_unwind_cache, cris_frame_this_id)
11524 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11525 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11526 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11527 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11528 (cris_reg_struct_has_addr): New functions.
11529 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11530 (cris_frame_saved_pc, cris_saved_pc_after_call,
11531 (cris_store_struct_return, cris_frameless_function_invocation)
11532 (cris_pop_frame, cris_skip_prologue_main)
11533 (cris_abi_original_store_return_value)
11534 (cris_abi_v2_store_return_value)
11535 (cris_abi_original_extract_return_value)
11536 (cris_abi_v2_extract_return_value)
11537 (cris_abi_original_reg_struct_has_addr)
11538 (cris_abi_v2_reg_struct_has_addr)
11539 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11540 (cris_push_return_address, cris_abi_update): Remove.
11541 (_initialize_cris_tdep): Remove ABI command.
11542 (cris_dump_tdep): Ditto.
11543 (cris_gdbarch_init): Remove ABI command.
11544 Set store_return_value, extract_return_value, push_dummy_code,
11545 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11546 frame_unwind_append_sniffer, frame_base_set_default.
11547 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11548 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11549 sizeof_call_dummy_words, get_saved_register, push_return_address,
11550 pop_frame, store_struct_return, frame_init_saved_regs,
11551 init_extra_frame_info, frameless_function_invocation, frame_chain,
11552 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11555 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11557 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11558 * valprint.c (print_hex_chars): Change from static to external.
11559 (print_char_chars): New function.
11560 * printcmd.c (print_scalar_formatted): For integer and enum types
11561 that are longer than LONGEST, perform processing via appropriate
11562 print_*_chars routines.
11564 2004-02-26 Andrew Cagney <cagney@redhat.com>
11566 * Makefile.in: Update dependencies.
11567 Changes from Ulrich Weigand,
11568 * s390-tdep.c: Include "dwarf2-frame.h".
11569 (s390_dwarf2_frame_init_reg): New function.
11570 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11571 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11573 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11575 * breakpoint.c (pending_break_support): New setting variable.
11576 (break_command_1): Account for pending_break_support setting
11577 when creating pending breakpoints.
11578 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11579 (_initialize_breakpoint): Add "set breakpoint pending" and
11580 "show breakpoint pending" commands.
11582 2004-02-26 Andrew Cagney <cagney@redhat.com>
11585 * charset.c (backslashable, backslashed, represented): Remove 'e'
11586 from list of escaped characters, not part of ISO-C.
11588 2004-02-25 J. Brobecker <brobecker@gnat.com>
11590 From Peter Schauer <schauer@pdf.de>:
11591 * tui/tui.c: Move system header includes after local includes.
11592 Fixes a build failure on solaris systems.
11594 2004-02-25 J. Brobecker <brobecker@gnat.com>
11596 * configure.in: Refine the previous change.
11597 * configure: Regenerate.
11599 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11601 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11602 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11603 "amd64-tdep.h" instead of "x86-64-tdep.h".
11604 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11605 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11606 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11607 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11608 and "x86-64-tdep.c".
11609 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11610 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11611 and "x86-64-tdep.c".
11612 * amd64bsd-nat.c: Update copyright year.
11613 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11614 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11616 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11618 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11620 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11622 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11624 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11626 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11627 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11628 * Makefile.in (amd64_linux_tdep_h): Renamed from
11629 x86_64_linux_tdep_h.
11630 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11631 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11632 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11633 (amd64obsd-tdep.o): Update dependencies.
11634 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11636 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11638 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11639 amd64-linux-nat.c amd64-linux-tdep.c.
11640 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11641 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11642 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11643 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11644 amd64-tdep.o and amd64-linux-tdep.o.
11645 (TM_FILE): Set to tm-linux64.h.
11646 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11647 (NAT_FILE): Set to nm-linux64.h.
11648 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11649 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11651 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11653 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11656 2004-02-25 Roland McGrath <roland@redhat.com>
11658 * remote.c (remote_protocol_qPart_auxv): New variable.
11659 (init_all_packet_configs): Initialize it.
11660 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11661 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11662 (show_remote_cmd): Call it.
11663 (_initialize_remote): Initialize commands.
11664 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11665 service TARGET_OBJECT_AUXV requests.
11667 2004-02-25 J. Brobecker <brobecker@gnat.com>
11669 * configure.in: Make sure that the wborder function is available.
11670 Otherwise, search for it in the cur_colr library.
11671 * configure: Regenerate.
11673 2004-02-25 Andrew Cagney <cagney@redhat.com>
11675 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11677 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11679 * config/i386/tm-x86-64linux.h: Tweak comments.
11681 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11683 * MAINTAINERS: Add self to write-after-approval list.
11685 2004-02-25 Andrew Cagney <cagney@redhat.com>
11687 PR cli/1566. Problem found, and fix suggested by David Allan.
11688 * cli/cli-script.c (execute_control_command): Unconditionally
11689 install a cleanup. Default "ret" to "invalid_control". Use
11690 "break" instead of "return" to escape from the switch.
11692 2004-02-24 J. Brobecker <brobecker@gnat.com>
11694 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11695 with the lines macro defined in term.h on AiX.
11696 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11697 a collision with the label_width macro defined in term.h on AiX.
11699 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11701 Committed by Kevin Buettner <kevinb@redhat.com>.
11703 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11704 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11705 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11706 instead of ia64_write_pc().
11707 * ia64-linux-tdep.c (regcache.h): Include.
11708 (ia64_linux_write_pc): New function.
11710 2004-02-23 Roland McGrath <roland@redhat.com>
11712 * auxv.c (info_auxv_command): Fix typos in error messages.
11714 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11716 * x86-64-tdep.h: Tweak comment.
11717 (enum amd64_regnum): New.
11718 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11719 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11720 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11721 (X86_64_XMM1_REGNUM): Removed.
11722 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11723 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11724 prototypes for renamed functions.
11725 * x86-64-tdep.c: Fix typo.
11726 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11728 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11729 Use constants from `enum amd64_regnum' for register numbers.
11730 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11731 (amd64_analyze_prologue, amd64_frame_cache,
11732 amd64_sigtramp_frame_cache): Use constants from `enum
11733 amd64_regnum' for register numbers.
11734 (amd64_supply_fpregset): Adjust for renamed functions.
11735 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11736 `enum amd64_regnum' for register numbers.
11737 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11738 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11739 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11740 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11741 (amd64_linux_fill_gregset): Adjust for renamed macros.
11742 (fetch_core_registers): Adjust for renamed functions.
11743 (amd64_linux_init_abi): Adjust for renamed functions.
11744 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11746 * amd64-nat.c: Adjust for renamed macros.
11747 * amd64bsd-nat.c (fetch_inferior_registers)
11748 (store_inferior_registers): Use constants from `enum amd64_regnum'
11749 for register numbers. Adjust for renamed variables.
11750 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11752 (_initialize_amd64fbsd_nat): Use constants from `enum
11753 amd64_regnum' for register numbers.
11754 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11755 `enum amd64_regnum' for register numbers.
11756 (amd64fbsd_init_abi): Adjust for renamed functions.
11757 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11758 `enum amd64_regnum' for register numbers.
11759 (amd64nbsd_init_abi): Adjust for renamed functions.
11760 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11761 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11762 `enum amd64_regnum' for register numbers.
11763 (amd64obsd_init_abi): Adjust for renamed functions.
11764 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11766 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11768 * breakpoint.c (print_one_breakpoint): Do not output spaces
11769 after printing <PENDING> for a pending breakpoint.
11771 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11773 * printcmd.c (print_scalar_formatted): Initialize val_long
11774 to remove compiler warning message.
11776 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11778 * defs.h (nquery, yquery): New prototypes.
11779 * breakpoint.c (break_command_1): Use new nquery interface.
11780 * utils.c (defaulted_query, nquery, yquery): New functions.
11782 2004-02-23 Andrew Cagney <cagney@redhat.com>
11784 * hppa-tdep.c (hppa_frame_align): New function.
11785 (hppa32_push_dummy_call): New function.
11786 (hppa64_push_dummy_call): New function.
11787 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11790 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11791 FIX_CALL_DUMMY when push_dummy_call is available.
11792 (call_function_by_hand, push_dummy_code): Ditto.
11794 2004-02-22 Andrew Cagney <cagney@redhat.com>
11796 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11797 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11798 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11799 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11800 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11801 call_dummy_location to ON_STACK.
11803 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11805 * x86-64-linux-tdep.c: Tweak comment.
11806 (amd64_linux_supply_gregset): Renamed from
11807 x86_64_linux_supply_gresget.
11808 (amd64_linux_fill_gregset): Renamed from
11809 x86_64_linux_fill_gregset.
11810 (fetch_core_registers): Adjust for renamed functions.
11811 (amd64_core_fns): Renamed from x86_64_core_fns.
11812 (amd64_linux_sigtramp_start): Renamed from
11813 x86_64_linux_sigtramp_start.
11814 (amd64_linux_pc_in_sigtramp): Renamed from
11815 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11816 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11817 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11818 (amd64_linux_sigcontext_addr): Renamed from
11819 x86_64_linux_sigcontext_addr.
11820 (amd64_linux_sc_reg_offset): Renamed from
11821 x86_64_linux_sc_reg_offset.
11822 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11823 Adjust for renamed functions and variables.
11824 (_initialize_amd64_linux_tdep): Renamed from
11825 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11827 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11828 Adjust for renamed functions.
11830 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11831 from x86_64_linux_gregset64_reg_offset.
11832 (amd64_linux_gregset32_reg_offset): Rename from
11833 x86_64_linux_gregset64_reg_offset.
11834 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11835 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11836 (amd64_linux_dr_set_control): Renamed from
11837 x86_64_linux_dr_set_control. Adjust for renamed functions.
11838 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11839 Adjust for renamed functions.
11840 (amd64_linux_dr_reset_addr): Renamed from
11841 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11842 (amd64_linux_dr_get_status): Renamed from
11843 x86_64_linux_dr_get_status. Adjust for renamed functions.
11844 (_initialize_amd64_linux_nat): Renamed from
11845 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11847 * config/i386/nm-x86-64linux.h: Update copyright year.
11848 Adjust for renamed functions.
11850 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11851 amd64fbsd_sigtramp_start.
11852 (amd64fbsd_sigtramp_end_addr): Renamed from
11853 amd64fbsd_sigtramp_end.
11854 (amd64fbsd_init_abi): Adjust for renamed variables.
11855 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11857 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11858 amd64fbsd_sigtramp_start.
11859 (amd64fbsd_sigtramp_end_addr): Renamed from
11860 amd64fbsd_sigtramp_end.
11862 2004-02-22 Andrew Cagney <cagney@redhat.com>
11864 * hppa-tdep.c (hppa32_return_value): New function.
11865 (hppa64_return_value): New function.
11866 (hppa_gdbarch_init): Set return_value; keep disabled.
11868 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11869 struct-return and inferior function call methods.
11871 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11873 (struct hppa_frame_cache): Define.
11874 (hppa_frame_cache, hppa_frame_this_id): New functions.
11875 (hppa_frame_prev_register): New function.
11876 (hppa_frame_unwind, hppa_frame_base): New variables.
11877 (hppa_frame_unwind_sniffer): New function.
11878 (hppa_frame_base_address, hppa_unwind_pc): New function.
11879 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11880 sniffer, and frame base sniffer; keep disabled.
11881 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11882 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11884 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11885 to predicates for "seriously old code".
11887 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11890 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11892 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11894 * config/pa/tm-hppa.h: Update copyright.
11895 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11896 (deprecated_init_frame_pc_default): Delete declaration.
11897 (hppa_frame_init_saved_regs): Delete declaration.
11898 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11899 * hppa-tdep.c: Include "arch-utils.h".
11900 (hppa_gdbarch_init): Set deprecated init_frame_pc
11901 and deprecated frame_init_saved_regs.
11902 (hppa_frame_init_saved_regs): Make static.
11904 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11906 Remove old 386BSD support.
11907 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11908 * configure.host: Remove i[34567]86-*-bsd*.
11909 * configure.tgt: Remove i[34567]86-*-bsd*.
11910 * i386b-nat.c: Removed.
11911 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11912 (i386b-nat.o): Remove dependencies.
11914 * config/i386/i386bsd.mh: Removed.
11915 * config/i386/i386bsd.mt: Removed.
11916 * config/i386/nm-i386bsd.h: Removed.
11917 * config/i386/tm-i386bsd.h: Removed.
11918 * config/i386/xm-i386bsd.h: Removed.
11920 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11922 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11923 (amd64fbsd_init_abi): Set link map offsets.
11924 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11925 (amd64nbsd_init_abi): Set link map offsets.
11926 * amd64obsd-tdep.c: Include "solib-svr4.h".
11927 (amd64obsd_init_abi): Set link map offsets.
11928 * i386fbsd-tdep.c: Include "solib-svr4.h".
11929 (i386fbsd_init_abi): Set link map offsets.
11930 * i386nbsd-tdep.c: Include "solib-svr4.h".
11931 (i386nbsdelf_init_abi): Set link map offsets.
11932 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11933 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11934 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11935 solib-legacy.o and core-aout.o. Reformat.
11936 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11937 solib-svr4.o, solib-legacy.o. Reformat.
11938 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11939 * config/i386/nbsdelf.mh: Reformat.
11940 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11941 solib-svr4.o, solib-legacy.o and corelow.o.
11942 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11943 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11944 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11945 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11946 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11947 (TM_FILE): Set to tm-fbsd.h.
11948 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11949 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11951 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11953 (TM_FILE): Set to nm-nbsd.h.
11954 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11955 Simplify shared library support. Don't include "elf/common.h".
11956 (SVR4_SHARED_LIBS): Don't define.
11957 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11959 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11960 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11961 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11962 Don't include "i386/tm-i386.h". Include "solib.h".
11963 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11964 Don't include "i386/tm-i386.h".
11965 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11966 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11967 Include "i386/xm-i386.h".
11968 (HOST_LONG_DOUBLE_FORMAT): Remove.
11970 Fix OpenBSD/i386 sigtramp recognition.
11971 * i386-tdep.h: Update copyright year.
11972 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11973 (i386bsd_sigtramp_end): New prototypes.
11974 (i386fbsd_sigtramp_start_addr): Renamed from
11975 i386fbsd_sigtramp_start.
11976 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11977 (i386obsd_sigtramp_start_addr): Renamed from
11978 i386obsd_sigtramp_start.
11979 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11980 * i386bsd-tdep.c: Update copyright year.
11981 (i386bsd_pc_in_sigtramp): Make public.
11982 * i386fbsd-nat.c: Update copyright year.
11983 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11984 * i386fbsd-tdep.c: Update copyright year.
11985 (i386fbsd_sigtramp_start_addr): Renamed from
11986 i386fbsd_sigtramp_start.
11987 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11988 (i386fbsdaout_init_abi): Adjust for renamed variables.
11989 * i386obsd-nat.c: Update copyright year.
11990 (_initialize_i386obsd_nat): Adjust for renamed variables.
11991 * i386obsd-tdep.c: Include "target.h".
11992 (i386obsd_page_size): New variable.
11993 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11994 (i386obsd_sigtramp_end): New functions.
11995 (i386obsd_sigtramp_start_addr): Renamed from
11996 i386obsd_sigtramp_start.
11997 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11998 (i386obsd_init_abi): Adjust for renamed variables. Set
11999 pc_in_sigtramp, sigtramp_start and sigtramp_end.
12000 * Makefile.in (i386obsd-tdep.o): Update dependencies.
12002 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
12003 trampoline change in OpenBSD kernel.
12005 * amd64-nat.c: Update copyright year.
12006 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
12007 architecture from REGCACHE.
12009 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
12010 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
12012 2004-02-21 Mark Kettenis <kettenis@gnu.org>
12014 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
12015 i[34567]86-*-openbsd3.[0-3].
12016 * config/i386/obsdaout.mh: New file.
12018 * config/i386/obsd.mh (MH_FLAGS): Remove.
12021 * i386obsd-tdep.c: Update copyright years. Include
12023 (i386obsd_init_abi): Don't set regset_from_core_section here.
12024 (i386obsd_aout_init_abi): New function. Set
12025 regset_from_core_section here.
12026 (i386obsd_elf_init_abi): New function.
12027 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
12028 * Makefile.in (i386obsd-tdep.o): Update dependecies.
12029 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
12030 (TM_FILE): Set to tm-nbsd.h.
12032 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
12035 * solib-svr4.h: Update copyright year.
12036 (svr4_ilp32_fetch_link_map_offsets)
12037 (svr4_lp64_fetch_link_map_offsets): New prototype.
12038 * solib-svr4.c: Update copyright year.
12039 (svr4_ilp32_fetch_link_map_offsets)
12040 (svr4_lp64_fetch_link_map_offsets): New function.
12042 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
12044 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
12045 to the partial symbol table.
12047 2004-02-20 J. brobecker <brobecker@gnat.com>
12049 * PROBLEMS: Add description of problem documented under gdb/1560.
12051 2004-02-20 Mark Kettenis <kettenis@gnu.org>
12053 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
12055 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
12057 (amd64obsd_init_abi): Reorder initializations. Use
12058 amd64obsd_r_reg_offset to initialize the general-purpose register
12059 set details. Set regset_from_core_section.
12060 (_initialize_amd64obsd_tdep): Rename from
12061 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
12062 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
12063 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
12065 * NEWS (New native configurations): Mention OpenBSD/alpha.
12066 * configure.tgt: Add alpha*-*-openbsd*.
12067 * configure.host: Add alpha*-*-openbsd*.
12068 * alphanbsd-tdep.c: Update copyright year.
12069 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
12071 2004-02-20 Andrew Cagney <cagney@redhat.com>
12074 * configure.tgt: Delete target "none-*-*".
12075 * configure.host: Delete host "none-*-*".
12076 * config/none/none.mh: Delete file.
12077 * config/none/none.mt: Delete file.
12078 * config/none/xm-none.h: Delete file.
12079 * config/none/tm-none.h: Delete file.
12080 * config/none/nm-none.h: Delete file.
12082 2004-02-19 Fred Fish <fnf@redhat.com>
12084 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
12085 cache->uses_fp prior to setting it.
12087 2004-02-19 Fred Fish <fnf@redhat.com>
12089 Fix for PR breakpoint/1558.
12090 * sh-tdep.c (IS_JSR): New macro.
12091 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
12093 2004-02-19 Jim Blandy <jimb@redhat.com>
12095 * findvar.c (value_from_register): Doc fix.
12097 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
12099 * printcmd.c (print_scalar_formatted): Do not check for sizeof
12100 type being greater than sizeof of host's LONGEST. Always use
12101 unpack_long() unless format 'f' chosen.
12103 2004-02-19 Joel Brobecker <brobecker@gnat.com>
12105 Committed by Elena Zannoni <ezannoni@redhat.com>
12107 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
12108 contains a symbol wich is the best, non-exact match for the given
12109 pc. Update comments.
12111 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
12113 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12114 macro, which was part of the now removed Mach 3 port.
12115 * utils.c (request_quit): Ditto.
12117 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12119 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12120 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12122 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12124 Committed by Mark Kettenis <kettenis@gnu.org>.
12126 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12129 2004-02-18 Andrew Cagney <cagney@redhat.com>
12131 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12132 CONFIG_INSTALL and CONFIG_UNINSTALL.
12133 * configure: Re-generate.
12134 * interps.h (INTERP_TUI): Define.
12135 * Makefile.in: Update dependencies.
12137 (tui-main.o): Specify dependencies.
12138 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12139 * tui/tui-main.c: New file.
12141 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12143 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12144 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12146 * configure.host: Add x86_64-*-openbsd*.
12147 * configure.tgt: Add x86_64-*-openbsd*.
12148 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12150 * tui/tui.c: Don't include <malloc.h>.
12152 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12153 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12156 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12157 static. Remove extraneous whitespace.
12158 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12161 2004-02-17 Jim Blandy <jimb@redhat.com>
12163 * findvar.c (value_from_register): Doc fix.
12165 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12167 Committed by Jim Blandy <jimb@redhat.com>.
12169 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12170 CORE_ADDR as type for selectors. Correct types for GNU run time
12171 message lookup function to use double indirection.
12172 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12173 * objc-lang.h (lookup_child_selector): Adapt prototype.
12175 * s390-nat.c (SUBOFF): New macro.
12176 (supply_gregset, fill_gregset): Use it to handle debugging
12177 of 32-bit exectuables running under a 64-bit kernel.
12178 * s390-tdep.c: Include "solib-svr4.h".
12179 (s390_svr4_fetch_link_map_offset): New function.
12180 (s390x_svr_fetch_link_map_offset): Likewise.
12181 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12182 * Makefile.in (s390-tdep.o): Update dependencies.
12184 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12186 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12187 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12188 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12189 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12190 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12191 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12192 S390_SIGNAL_FRAMESIZE,
12193 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12194 (struct frame_extra_info): Remove.
12195 (s390_memset_extra_info): Remove.
12196 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12197 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12198 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12199 (is_rse): Renamed to ...
12200 (is_rsy): ... this. Support long displacements.
12201 (is_rxe): Renamed to ...
12202 (is_rxy): ... this. Support long displacements.
12203 (compute_x_addr): Support long displacements.
12204 (struct s390_prologue_data): New data type.
12205 (s390_on_stack): Change API to use struct s390_prologue_data.
12206 (s390_store): Reimplement.
12207 (s390_load): New function.
12208 (s390_get_signal_frame_info): Remove.
12209 (s390_get_frame_info): Remove, replace by ...
12210 (s390_analyze_prolog): ... this new function.
12211 (s390_check_function_end): Remove.
12212 (s390_function_start): Remove.
12213 (s390_frameless_function_invokation): Remove.
12214 (s390_is_sigreturn): Remove.
12215 (s390_init_frame_pc_first): Remove.
12216 (s390_init_frame_extra_info): Remove.
12217 (s390_frame_init_saved_regs): Remove.
12218 (s390_frame_saved_pc_nofix): Remove.
12219 (s390_frame_saved_pc): Remove.
12220 (s390_frame_chain): Remove.
12221 (s390_fp_regnum, s390_read_fp): Remove.
12222 (s390_pop_frame_regular, s390_pop_frame): Remove.
12223 (s390_saved_pc_after_call): Remove.
12224 (s390_skip_prologue): Reimplement.
12225 (s390_in_function_epilogue_p): Support long displacements.
12226 (struct s390_unwind_cache): New data structure.
12227 (s390_frame_unwind_cache): New function.
12228 (s390_prologue_frame_unwind_cache): Likewise.
12229 (s390_backchain_frame_unwind_cache): Likewise.
12230 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12231 (s390_frame_unwind): Define.
12232 (s390_frame_sniffer): New function.
12233 (struct s390_pltstub_unwind_cache): New data structure.
12234 (s390_pltstub_frame_unwind_cache): New function.
12235 (s390_pltstub_frame_this_id): Likewise.
12236 (s390_pltstub_frame_prev_register): Likewise.
12237 (s390_pltstub_frame_unwind): Define.
12238 (s390_pltstub_frame_sniffer): New function.
12239 (struct s390_sigtramp_unwind_cache): New data structure.
12240 (s390_sigtramp_frame_unwind_cache): New function.
12241 (s390_sigtramp_frame_this_id): Likewise.
12242 (s390_sigtramp_frame_prev_register): Likewise.
12243 (s390_sigtramp_frame_unwind): Define.
12244 (s390_sigtramp_frame_sniffer): New function.
12245 (s390_frame_base_address, s390_local_base_address): New functions.
12246 (s390_frame_base): Define.
12247 (s390_unwind_pc, s390_unwind_sp): New function.
12248 (s390_push_dummy_call): Use new frame base location.
12249 (s390_unwind_dummy_id): Likewise.
12250 (s390_gdbarch_init): Remove calls to:
12251 set_gdbarch_frameless_function_invocation,
12252 set_gdbarch_deprecated_init_frame_pc,
12253 set_gdbarch_deprecated_frame_chain,
12254 set_gdbarch_deprecated_frame_init_saved_regs,
12255 set_gdbarch_deprecated_pop_frame,
12256 set_gdbarch_deprecated_init_extra_frame_info,
12257 set_gdbarch_deprecated_init_frame_pc_first,
12258 set_gdbarch_deprecated_target_read_fp,
12259 set_gdbarch_deprecated_frame_saved_pc,
12260 set_gdbarch_deprecated_saved_pc_after_call,
12261 set_gdbarch_deprecated_fp_regnum.
12263 set_gdbarch_in_solib_call_trampoline,
12264 frame_unwind_append_sniffer,
12265 frame_base_set_default,
12266 set_gdbarch_unwind_pc,
12267 set_gdbarch_unwind_sp.
12268 * Makefile.in (s390-tdep.o): Update dependencies.
12270 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12271 (S390_STACK_FRAME_OVERHEAD): Remove.
12272 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12273 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12274 (s390_promote_integer_argument): Remove.
12275 (s390_cannot_extract_struct_value_address): Remove.
12276 (s390_use_struct_convention, s390_store_struct_return): Remove.
12277 (s390_extract_return_value, s390_store_return_value): Remove.
12278 (s390_return_value_convention, s390_return_value): New functions.
12279 (is_float_singleton): Handle typedefs.
12280 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12281 Remove, replace by ...
12282 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12283 s390_function_arg_integer): ... these new functions.
12284 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12285 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12286 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12289 set_gdbarch_deprecated_store_struct_return,
12290 set_gdbarch_deprecated_extract_return_value,
12291 set_gdbarch_deprecated_store_return_value,
12292 set_gdbarch_use_struct_convention,
12293 set_gdbarch_extract_struct_value_address,
12294 set_gdbarch_deprecated_pc_in_call_dummy,
12295 set_gdbarch_deprecated_push_arguments,
12296 set_gdbarch_deprecated_save_dummy_frame_tos,
12297 set_gdbarch_deprecated_push_return_address,
12298 set_gdbarch_deprecated_sizeof_call_dummy_words,
12299 set_gdbarch_deprecated_call_dummy_words,
12300 set_gdbarch_deprecated_dummy_write_sp.
12302 set_gdbarch_push_dummy_call,
12303 set_gdbarch_unwind_dummy_id,
12304 set_gdbarch_return_value.
12306 * config/s390/nm-linux.h: Update comments.
12307 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12308 (STOPPED_BY_WATCHPOINT): Redefine.
12309 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12310 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12311 (s390_stopped_by_watchpoint): Likewise.
12312 (watch_area_cnt): Remove.
12313 * s390-nat.c: Update comments.
12314 (watch_area): Remove typedef.
12315 Global replace watch_area by struct watch_area.
12316 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12317 (s390_stopped_by_watchpoint): Remove pid argument,
12318 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12319 (s390_fix_watch_points): Remove pid argument,
12320 use s390_inferior_tid. Recompute area spanned by watchpoints.
12321 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12322 argument. Reimplement.
12324 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12325 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12326 (FETCH_INFERIOR_REGISTERS): Define.
12327 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12329 * config/s390/s390x.mt: Remove.
12330 * config/s390/tm-s390.h: Remove.
12331 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12332 (TARGET_ELF64): Remove.
12333 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12334 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12335 s390*-*-* case; always set gdb_target to s390.
12336 * regformats/reg-s390.dat: Remove control registers.
12337 * regformats/reg-s390x.dat: Likewise.
12338 * s390-tdep.h: New file.
12339 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12340 Include "inferior.h" and "s390-tdep.h".
12341 Remove private definition of offsetof.
12342 (s390_register_u_addr): Remove.
12343 (regmap_gregset, regmap_fpregset): Define.
12344 (supply_gregset, fill_gregset): Reimplement.
12345 (supply_fpregset, fill_fpregset): Likewise.
12346 (s390_inferior_tid): New function.
12347 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12348 (fetch_inferior_registers, store_inferior_registers): Likewise.
12349 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12350 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12351 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12352 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12353 (struct gdbarch_tdep): Define.
12354 (struct s390_register_info): Define.
12355 (s390_register_info): New variable.
12356 (s390_register_name): Reimplement.
12357 (s390_register_type): New function.
12358 (s390_register_raw_size, s390x_register_raw_size): Remove.
12359 (s390_cannot_fetch_register): Remove.
12360 (s390_register_byte): Remove.
12361 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12362 (s390_dwarf_regmap): New variable.
12363 (s390_dwarf_reg_to_regnum): New function.
12364 (s390_stab_reg_to_regnum): Remove.
12365 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12366 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12367 (s390_convert_register_p): Likewise.
12368 (s390_register_to_value, s390_value_to_register): Likewise.
12369 (s390_register_reggroup_p): Likewise.
12370 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12371 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12372 (s390_supply_regset, s390_regset_from_core_section): New functions.
12373 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12374 (S390_FPR_SIZE): Likewise.
12375 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12376 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12377 (S390_NUM_GPRS): Move here from tm-s390.h.
12378 (S390_NUM_FPRS): Likewise.
12379 (s390_in_function_epilogue_p): New function.
12380 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12381 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12382 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12383 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12384 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12386 set_gdbarch_deprecated_max_register_raw_size,
12387 set_gdbarch_deprecated_max_register_virtual_size,
12388 set_gdbarch_deprecated_register_byte,
12389 set_gdbarch_cannot_fetch_register,
12390 set_gdbarch_cannot_store_register,
12391 set_gdbarch_deprecated_register_size,
12392 set_gdbarch_deprecated_register_raw_size,
12393 set_gdbarch_deprecated_register_virtual_size,
12394 set_gdbarch_deprecated_register_virtual_type,
12395 set_gdbarch_deprecated_register_bytes.
12397 set_gdbarch_num_pseudo_regs,
12398 set_gdbarch_register_type,
12399 set_gdbarch_convert_register_p,
12400 set_gdbarch_register_to_value,
12401 set_gdbarch_value_to_register,
12402 set_gdbarch_register_reggroup_p,
12403 set_gdbarch_regset_from_core_section,
12404 set_gdbarch_pseudo_register_read,
12405 set_gdbarch_pseudo_register_write,
12406 set_gdbarch_in_function_epilogue_p.
12407 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12408 (s390_tdep_h): New variable.
12410 2004-02-17 Jim Blandy <jimb@redhat.com>
12412 * findvar.c (value_from_register): If the type has no length, just
12413 return an acceptable value --- don't report an internal error.
12415 * stabsread.c (read_type): If we find any type numbers that are
12416 forward references, complain if the references aren't resolved by
12417 the time we're finished reading.
12418 (cleanup_undefined_types): Make error message more appropriate for
12421 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12423 * Makefile.in (defs_h): Remove dependency on progress_h.
12424 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12426 * main.c (captured_main): Delete use of START_PROGRESS and
12429 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12431 * objfiles.c (terminate_minimal_symbol_table): Add back
12432 initialization of MSYMBOL_TYPE.
12434 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12436 Committed by Andrew Cagney.
12437 * Makefile.in (ia64_tdep_h): New macro.
12438 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12439 (ia64-tdep.o): Likewise.
12440 * ia64-tdep.h: New file.
12441 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12442 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12443 (ia64_aix_sigcontext_register_address): Likewise.
12444 (ia64_linux_getunwind_table): Delete declaration.
12445 * ia64-linux-tdep.c: Likewise.
12447 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12449 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12450 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12451 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12453 2004-02-17 Andrew Cagney <cagney@redhat.com>
12455 * symtab.c (skip_prologue_using_sal): New function.
12456 * symtab.h (skip_prologue_using_sal): Declare.
12457 * frv-tdep.c: Include "symtab.h".
12458 (skip_prologue_using_sal): Delete function.
12459 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12460 * rs6000-tdep.c (refine_prologue_limit): Mention
12461 skip_prologue_using_sal.
12462 * ia64-tdep.c (refine_prologue_limit): Ditto.
12463 * Makefile.in: Update dependencies.
12465 2004-02-16 Andrew Cagney <cagney@redhat.com>
12467 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12468 START_INFERIOR_TRAPS_EXPECTED.
12469 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12470 START_INFERIOR_TRAPS_EXPECTED.
12471 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12473 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12474 macro, moved to "nm-osf.h". Update copyright.
12475 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12478 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12479 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12480 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12481 frameless_look_for_prologue.
12482 * frame.h (legacy_frameless_look_for_prologue): Rename
12483 frameless_look_for_prologue.
12484 * gdbarch.h, gdbarch.c: Re-generate.
12485 * sh64-tdep.c (sh64_gdbarch_init): Update.
12486 * sh-tdep.c (sh_gdbarch_init): Update.
12487 * s390-tdep.c (s390_gdbarch_init): Update.
12488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12489 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12490 * m68k-tdep.c (m68k_gdbarch_init): Update.
12491 (delta68_frame_args_address): Update.
12492 * m32r-tdep.c (m32r_gdbarch_init): Update.
12493 * hppa-tdep.c (hppa_gdbarch_init): Update.
12494 * h8300-tdep.c (h8300_gdbarch_init): Update.
12495 * frv-tdep.c (frv_gdbarch_init): Update.
12496 (frv_frameless_function_invocation): Update.
12497 * cris-tdep.c (cris_gdbarch_init): Update.
12498 (cris_frameless_function_invocation): Update.
12499 * avr-tdep.c (avr_gdbarch_init): Update.
12500 * arm-tdep.c (arm_gdbarch_init): Update.
12501 * stack.c (frame_info): Update, call predicate.
12502 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12503 * frame.c (legacy_get_prev_frame): Update, call predicate..
12504 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12505 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12506 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12508 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12509 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12510 * vax-tdep.c (vax_gdbarch_init): Ditto.
12512 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12515 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12517 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12520 2004-02-16 Andrew Cagney <cagney@redhat.com>
12522 * tui/tui-windata.c: Include "gdb_string.h".
12523 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12524 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12525 * Makefile.in: Update dependencies.
12527 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12529 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12530 * infrun.c: Include "gdb_assert.h".
12531 (singlestep_ptid, saved_singlestep_ptid)
12532 (stepping_past_singlestep_breakpoint): New variables.
12533 (resume): Set singlestep_ptid. Check for singlestep thread
12535 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12536 (handle_inferior_event): Handle singlestep thread hop.
12538 2004-02-16 Andrew Cagney <cagney@redhat.com>
12540 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12541 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12542 (dwarf2_frame_init_reg): Ditto.
12544 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12545 suggested by Joshua Neuheisel
12547 * configure.in: Always check for curses, including pdcurses.
12548 Warn, instead of error, when no curses are found. Enable TUI when
12549 curses is available.
12550 * configure: Re-generate.
12552 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12554 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12555 sh_sh4_register_convert_to_virtual.
12556 (sh_register_convert_to_raw): Rename from
12557 sh_sh4_register_convert_to_raw.
12558 (sh_pseudo_register_read): Accomodate above name change.
12559 (sh_pseudo_register_write): Ditto.
12561 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12563 * sh-tdep.c (sh_generic_register_name): Remove.
12564 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12566 2004-02-15 Andrew Cagney <cagney@redhat.com>
12568 * configure.in (build_warnings): Add -Wunused-function.
12569 * configure: Re-generate.
12571 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12572 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12574 * procfs.c (procfs_init_inferior): Assume that
12575 START_INFERIOR_TRAPS_EXPECTED is defined.
12576 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12577 * config/ns32k/tm-nbsd.h: Delete file,
12578 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12580 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12581 * config/vax/tm-vax.h: Delete file.
12583 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12584 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12585 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12586 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12587 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12588 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12589 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12591 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12593 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12594 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12595 (struct dwarf2_frame_ops): New.
12596 (dwarf2_frame_default_init_reg): New function, based on
12597 dwarf2_frame_init_reg.
12598 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12599 (dwarf2_frame_init_reg): Call architecture-specific function.
12600 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12601 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12602 instead of dwarf2_frame_data.
12603 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12604 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12606 2004-02-15 Andrew Cagney <cagney@redhat.com>
12608 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12609 register_gdbarch_swap.
12610 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12611 * f-lang.c (_initialize_f_language): Update, use
12612 DEPRECATED_REGISTER_GDBARCH_SWAP.
12613 * remote.c (_initialize_remote): Ditto.
12614 * regcache.c (_initialize_regcache): Ditto.
12615 * parse.c (_initialize_parse): Ditto.
12616 * infrun.c (_initialize_infrun): Ditto.
12617 * mi/mi-main.c (_initialize_mi_main): Ditto.
12618 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12620 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12621 poking .cacheable directly.
12622 * symfile.c (symfile_bfd_open): Ditto.
12624 * Makefile.in: Update all dependencies.
12626 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12627 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12628 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12629 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12630 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12632 2004-02-14 Andrew Cagney <cagney@redhat.com>
12634 * arch-utils.c (legacy_convert_register_p): Check
12635 DEPRECATED_REGISTER_CONVERTIBLE_P.
12636 * findvar.c (value_of_register): Ditto.
12638 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12639 * gdbarch.h, gdbarch.c: Re-generate.
12640 * arch-utils.c (deprecated_register_convertible_not): Delete.
12641 * arch-utils.h (deprecated_register_convertible_not): Delete.
12642 * mi/mi-main.c (get_register): Update. Update copyright.
12643 * infcmd.c (default_print_registers_info): Update.
12645 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12646 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12647 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12648 * gdbarch.h, gdbarch.c: Re-generate.
12649 * frame.c (deprecated_get_next_frame_hack): Delete function.
12650 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12651 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12653 * infcall.c (call_function_by_hand): Update.
12655 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12657 * symfile.c (init_entry_point_info, entry_point_address): Move
12659 * objfiles.c (init_entry_point_info, entry_point_address):..to
12661 * symfile.h (init_entry_point_info, entry_point_address): Remove
12663 * objfiles.h (init_entry_point_info, entry_point_address):Add
12665 * cris-tdep.c: Remove include of symfile.h. Add include of
12667 * infcall.c: Ditto.
12668 * mcore-tdep.c: Ditto.
12669 * mn10300-tdep.c: Ditto.
12670 * sh64-tdep.c: Ditto.
12671 * v850-tdep.c: Ditto.
12672 * arm-tdep.c: Remove include of symfile.h.
12673 * blockframe.c: Ditto.
12674 * coffread.c: Ditto.
12675 * dbxread.c: Ditto.
12676 * dwarf2read.c: Ditto.
12677 * dwarfread.c: Ditto.
12678 * frv-tdep.c: Ditto.
12679 * ia64-tdep.c: Ditto.
12680 * mdebugread.c: Ditto.
12681 * mipsread.c: Ditto.
12682 * rs6000-tdep.c: Ditto.
12683 * s390-tdep.c: Ditto.
12684 * sh-tdep.c: Ditto.
12685 * xstormy16-tdep.c: Ditto.
12686 * gdbarch.sh: Remove include of symfile.h.
12687 * gdbarch.c: Regenerate.
12688 * solib-irix.c (enable_break): Use entry_point_address().
12689 Add comment about include file.
12690 * xcoffread.c: Add comment about include file.
12691 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12692 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12693 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12694 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12695 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12697 2004-02-13 Andrew Cagney <cagney@redhat.com>
12699 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12700 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12702 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12704 2004-02-12 Fred Fish <fnf@redhat.com>
12706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12707 set_gdbarch_store_return_value.
12709 2004-02-12 Andrew Cagney <cagney@redhat.com>
12711 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12712 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12713 (interrupt_query): Ditto.
12714 (ofunc): Delete unused variable.
12715 * cris-tdep.c (cris_abi): Delete unused function.
12716 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12717 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12718 (cris_get_asr_quick_shift_steps): Ditto.
12719 (cris_skip_prologue_frameless_p): Ditto.
12720 * arm-tdep.c (arm_push_return_address): Delete unused function.
12721 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12722 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12723 * s390-tdep.c (s390_function_start): Delete unused function.
12725 2004-02-12 Andrew Cagney <cagney@redhat.com>
12727 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12728 gdbarch.h, gdbarch.c: Re-generate.
12729 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12730 to generic_prologue_frameless_p.
12731 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12732 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12734 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12736 * mips-linux-tdep.c: Include "frame.h".
12737 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12738 (mips_linux_skip_resolver): New functions.
12739 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12740 and set_gdbarch_in_solib_call_trampoline.
12741 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12742 to after set_gdbarch_in_solib_return_trampoline. Only set the
12743 solib hooks to mips16 functions if the OS ABI is unknown.
12744 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12745 including "config/tm-linux.h".
12746 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12747 * Makefile.in (mips-linux-tdep.o): Update.
12749 2004-02-11 David Carlton <carlton@kealia.com>
12751 * linespec.c (decode_compound): Only look for a class symbol when
12752 considering all but the rightmost component.
12754 2004-02-11 Andrew Cagney <cagney@redhat.com>
12756 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12757 abi code are are separatly grouped.
12759 2004-02-11 Andrew Cagney <cagney@redhat.com>
12761 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12762 * gdbarch.h, gdbarch.c: Re-generate.
12763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12764 * v850-tdep.c (v850_gdbarch_init): Update.
12765 * sh64-tdep.c (sh64_gdbarch_init): Update.
12766 * sh-tdep.c (sh_gdbarch_init): Update.
12767 * s390-tdep.c (s390_gdbarch_init): Update.
12768 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12769 * mips-tdep.c (mips_gdbarch_init): Update.
12770 * mcore-tdep.c (mcore_gdbarch_init): Update.
12771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12772 * m32r-tdep.c (m32r_gdbarch_init): Update.
12773 * ia64-tdep.c (ia64_gdbarch_init): Update.
12774 * hppa-tdep.c (hppa_gdbarch_init): Update.
12775 * h8300-tdep.c (h8300_gdbarch_init): Update.
12776 * frv-tdep.c (frv_gdbarch_init): Update.
12777 * d10v-tdep.c (d10v_gdbarch_init): Update.
12778 * cris-tdep.c (cris_gdbarch_init): Update.
12779 * avr-tdep.c (avr_gdbarch_init): Update.
12780 * arm-tdep.c (arm_gdbarch_init): Update.
12781 * alpha-tdep.c (alpha_gdbarch_init): Update.
12783 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12785 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12787 (sh_sh4al_dsp_register_name): Ditto.
12789 2004-02-10 Andrew Cagney <cagney@redhat.com>
12791 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12792 (mips_init_frame_pc_first): Delete function.
12793 (mips_frame_saved_pc): Delete function.
12794 (mips_frame_chain): Delete function.
12795 (mips_init_extra_frame_info): Delete function.
12796 (mips_xfer_register): Delete unused variable "reg".
12797 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12798 (mips_n32n64_return_value): Delete unused variable "reg".
12799 (mips_n32n64_return_value): Delete unused variable "pos".
12800 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12801 (mips_o32_return_value): Delete unused variable "pos".
12802 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12803 (mips_print_fp_register): Delete unused variable "namelen"
12804 (mips_print_fp_register): Delete unused variable "flt2"
12805 (get_frame_pointer): Delete function.
12806 (cached_proc_desc): Delete static variable.
12807 (mips_pop_frame): Delete function.
12808 (mips_find_saved_regs): Delete function.
12809 (mips_get_saved_register): Delete function.
12810 (mips_saved_pc_after_call): Delete function.
12811 (SIGFRAME_BASE): Delete macro.
12812 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12813 (SIGFRAME_PC_OFF): Delete macro.
12814 (SIGFRAME_REGSAVE_OFF): Delete macro.
12815 (mips_dump_tdep): Do not print deleted macro definitions.
12817 2004-02-10 Andrew Cagney <cagney@redhat.com>
12819 * Makefile.in (SFILES): Remove explictly listed tui files.
12820 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12822 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12824 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12825 to use paddr functions to format ia64 addresses and long values.
12826 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12827 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12828 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12829 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12830 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12832 2004-02-10 Andrew Cagney <cagney@redhat.com>
12834 * defs.h: Do not include "tui.h".
12835 * gdb_curses.h: New file.
12836 * tui/tui-hooks.h: New file.
12837 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12838 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12839 (tui_initialize_io): Delete declaration.
12840 (tui_initialize_readline: Delete redundant declaration.
12841 (struct tui_point): Delete definition.
12842 * tui/tui-data.h (struct tui_point): Define.
12843 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12844 * utils.c: Include "tui/tui.h".
12845 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12846 * printcmd.c [TUI]: Include "tui/tui.h".
12847 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12848 * tui/tui-command.c: Include "gdb_curses.h".
12849 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12850 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12851 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12852 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12853 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12854 * Makefile.in: Update all dependencies.
12855 (tui_hooks_h, gdb_curses_h): Define.
12856 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12858 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12860 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12861 auxf2. Add comments about some other rarely used fields.
12863 2004-02-10 Andrew Cagney <cagney@redhat.com>
12865 * Makefile.in (init.c): Fix script removing duplicates. Problem
12866 reported by Peter Schauer.
12868 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12870 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12871 obstack_specify_allocation.
12872 * objfiles.c (allocate_objfile): Ditto.
12873 * solib-sunos.c (solib_add_common_symbols)
12874 (allocate_rt_common_objfile): Ditto.
12875 * symfile.c (reread_symbols): Ditto.
12876 * gdb_obstack.h: Add comment.
12878 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12880 * linespec.c (decode_line_1, locate_first_half)
12881 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12882 commented out code.
12884 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12886 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12889 2004-02-09 Andrew Cagney <cagney@redhat.com>
12891 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12892 fails, try find_pc_section. Fix PR c++/1267.
12893 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12894 instead of find_pc_mapped_section.
12895 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12896 not default to the section containing PC. Fix PR symtab/1519.
12898 2004-02-09 Andrew Cagney <cagney@redhat.com>
12900 * Makefile.in (mips-tdep.o): Update dependencies.
12901 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12903 (mips_unwind_pc): Return the pseudo PC register.
12904 (mips_unwind_dummy_id): New function.
12905 (mips16_fetch_instruction): New function.
12906 (mips32_fetch_instruction): New function.
12907 (struct mips_frame_cache): Define.
12908 (mips_mdebug_frame_cache): New function.
12909 (mips_mdebug_frame_this_id): New function.
12910 (mips_mdebug_frame_prev_register): New function.
12911 (mips_mdebug_frame_unwind): Define.
12912 (mips_mdebug_frame_sniffer): New function.
12913 (mips_mdebug_frame_base_address): New function.
12914 (mips_mdebug_frame_base): Define.
12915 (mips_mdebug_frame_base_sniffer): New function.
12916 (mips_gdbarch_init): Append unwind and base sniffers. Set
12919 2004-02-08 Andrew Cagney <cagney@redhat.com>
12921 * frame.c: Print both the register number and name.
12923 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12924 and a sed into a single sed. Make .c and .o patterns more robust.
12926 (INIT_FILES): Replace OBS with COMMON_OBS.
12927 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12929 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12931 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12932 the PT_WCOOKIE request.
12934 2004-02-08 Andrew Cagney <cagney@redhat.com>
12936 * mips-tdep.c (mips_unwind_pc): New function.
12937 (mips_gdbarch_init): Set mips_unwind_pc.
12939 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12940 (get_frame_id): Allow the UNKNOWN_FRAME.
12941 (frame_register_unwind, get_frame_type): Ditto.
12943 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12944 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12945 unwind_dummy_id indicates a legacy frame.
12947 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12948 * configure: Re-generate.
12950 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12953 2004-02-08 Andrew Cagney <cagney@redhat.com>
12955 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12957 * configure: Re-generate.
12958 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12959 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12960 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12961 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12962 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12963 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12964 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12965 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12966 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12967 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12969 2004-02-07 Andrew Cagney <cagney@redhat.com>
12971 * Makefile.in: Update all dependencies.
12973 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12974 * configure: Re-generate.
12975 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12976 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12977 (COMMON_OBS): Add "main.o" and "annotate.o".
12978 (ANNOTATE_OBS): Delete.
12979 (OBS): Remove ANNOTATE_OBS.
12980 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12982 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12983 against CONFIG_OBS and "main.o".
12984 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12985 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12987 * tui/tui-command.c: Include "gdb_string.h", delete register
12988 attribute, use ISO-C function signatures.
12989 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12990 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12991 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12992 * tui/tui.c: Ditto.
12994 * tui/tui-command.c: Change variable and function names to lower
12996 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12997 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12998 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12999 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13000 * tui/tui-winsource.c, tui/tui.c: Ditto.
13002 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13004 * buildsym.c (free_pending_blocks, finish_block)
13005 (record_pending_block, make_blockvector, end_symtab): Replace
13006 symbol_obstack with objfile_obstack.
13007 * coffread.c (process_coff_symbol, coff_read_struct_type)
13008 (coff_read_enum_type): Ditto.
13009 * cp-namespace.c (initialize_namespace_symtab)
13010 (check_one_possible_namespace_symbol): Ditto.
13011 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
13012 (dwarf2_symbol_mark_computed): Ditto.
13013 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
13014 * elfread.c (elf_symtab_read): Ditto.
13015 * hpread.c (hpread_symfile_init, hpread_symfile_init)
13016 (hpread_read_enum_type, hpread_read_function_type)
13017 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
13019 * jv-lang.c (get_java_class_symtab, add_class_symbol)
13020 (java_link_class_type): Ditto.
13021 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
13022 (new_symbol): Ditto.
13023 * minsyms.c (install_minimal_symbols): Ditto.
13024 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
13025 (terminate_minimal_symbol_table): Replace symbol_obstack with
13027 (free_objfile): Remove freeing of symbol_obstack.
13028 * objfiles.h: Remove symbol_obstack field.
13029 * pa64solib.c (add_to_solist): Replace symbol_obstack with
13031 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13033 (solib_add_common_symbols): Replace symbol_obstack with
13035 * somsolib.c (som_solib_add): Ditto.
13036 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
13037 (common_block_start, common_block_end): Ditto.
13038 * symfile.c (reread_symbols): Remove freeing and init of
13040 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
13041 * symfile.h: Update comment.
13042 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
13044 * symtab.c (symbol_set_names): Replace symbol_obstack with
13046 * symtab.h (struct general_symbol_info, struct minimal_symbol):
13048 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
13049 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
13052 2004-02-07 Andrew Cagney <cagney@redhat.com>
13054 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
13055 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
13056 fields and variables.
13057 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
13058 (m_beInvisible): Delete macro.
13059 * tui/tui-data.h: Fix case case fields and variables.
13060 (m_genWinPtrIsNull): Delete macro.
13061 (tui_win_list): Rename winList.
13062 (TUI_SRC_WIN): Rename srcWin.
13063 (TUI_DISASM_WIN): Rename disassemWin.
13064 (TUI_DATA_WIN): Rename dataWin.
13065 (TUI_CMD_WIN): Rename cmdWin.
13066 (m_genWinPtrNotNull): Delete macro.
13067 (m_winPtrIsNull): Delete macro.
13068 (m_winPtrNotNull): Delete macro.
13069 (tui_win_is_source_type): Replace m_winIsSourceType
13070 (tui_win_is_auxillary): Replace m_winIsAuzillary.
13071 (tui_win_has_locator): Replace m_hasLocator.
13072 (tui_set_win_highlight): Replace m_setWinHighlightOn and
13073 m_setWinHighlightOff.
13074 * tui/tui-data.c: Update references.
13075 (tui_win_is_source_type, tui_set_win_highlight): New functions.
13076 (tui_win_has_locator, tui_win_is_auxillary): New functions.
13077 * tui/tui-command.c, tui/tui-disasm.c: Update references.
13078 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
13079 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
13080 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13081 * tui/tui-winsource.c, tui/tui.c: Ditto.
13083 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13085 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
13086 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
13089 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
13090 variable `i6' to `i7'.
13091 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13093 2004-02-07 Andrew Cagney <cagney@redhat.com>
13095 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
13096 (TuiPoint, TuiPointPtr): Ditto.
13097 (TuiStatus, TuiStatusPtr): Ditto.
13098 (TuiWinType, TuiWinTypePtr): Ditto.
13099 (struct tui_point): Rename _TuiPoint.
13100 (tui_get_low_disassembly_address): Rename
13101 tuiGetLowDisassemblyAddress.
13102 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
13103 (tuiFree): Delete declaration.
13104 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
13105 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
13106 * tui/tui.c (tuiFree): Delete function.
13107 * cli/cli-cmds.c (disassemble_command): Update references.
13108 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
13109 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
13110 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13111 * tui/tui-winsource.c: Ditto.
13113 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13115 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13116 coffstab_build_psymtabs, elfstab_build_psymtabs)
13117 (stabsect_build_psymtabs): Replace psymbol_obstack with
13119 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13120 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13122 * dwarfread.c (scan_compilation_units): Ditto.
13123 * elfread.c (elfstab_offset_sections): Ditto.
13124 * hppa-tdep.c (read_unwind_info): Ditto.
13125 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13126 (hpread_end_psymtab): Ditto.
13127 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13128 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13130 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13131 * objfiles.c (add_to_objfile_sections)
13132 (build_objfile_section_table): Ditto.
13133 (allocate_objfile): Remove init of psymbol_obstack.
13134 (free_objfile): Remove freeing of psymbol_obstack.
13135 * objfiles.h (struct objfile): Remove field
13136 psymbol_obstack. Update comments.
13137 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13138 psymbol_obstack with objfile_obstack.
13139 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13141 * somread.c (som_symfile_offsets, init_import_symbols)
13142 (init_export_symbols): Replace psymbol_obstack with
13144 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13145 * symfile.c (default_symfile_offsets, syms_from_objfile)
13146 (reread_symbols): Remove freeing and init of psymbol_obstack.
13147 (cashier_psymtab): Update comment.
13148 * symmisc.c (print_objfile_statistics): Don't report stats for
13150 * symtab.h (struct general_symbol_info, struct partial_symtab):
13152 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13153 (xcoff_symfile_offsets): Replace psymbol_obstack with
13156 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13158 * objfiles.h (struct objfile): Add objfile_obstack field.
13159 Remove type_obstack field.
13161 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13162 read_structure_scope read_enumeration, new_symbol): Replace
13163 type_obstack with objfile_obstack.
13164 * dwarfread.c (struct_type, enum_type): Ditto.
13165 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13166 (lookup_fundamental_type): Ditto.
13167 * gdbtypes.h (TYPE_ALLOC): Ditto.
13168 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13169 (hpread_read_doc_function_type, hpread_read_struct_type)
13170 (fix_static_member_physnames, hpread_read_array_type)
13171 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13172 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13173 (java_link_class_type): Ditto.
13174 * mdebugread.c (parse_type): Ditto.
13175 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13176 * solib-sunos.c (solib_add_common_symbols): Ditto.
13177 * stabsread.c (define_symbol, read_type, read_member_functions,
13178 read_cpp_abbrev, read_one_struct_field): Ditto.
13179 * symfile.c (reread_symbols): Ditto.
13180 * symmisc.c (print_objfile_statistics): Ditto.
13182 2004-02-07 Andrew Cagney <cagney@redhat.com>
13184 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13185 (tui_exec_info_content): Rename TuiExecInfoContent.
13186 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13187 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13188 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13189 (TuiList, TuiListPtr): Ditto.
13190 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13191 (TuiDataType, TuiDataTypePtr): Ditto.
13192 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13193 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13194 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13195 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13196 (TuiDataElement, TuiDataElementPtr): Ditto.
13197 (TuiWinElement, TuiWinElementPtr): Ditto.
13198 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13199 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13200 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13201 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13202 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13203 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13204 * tui/tui-command.c, tui/tui-data.c: Update references.
13205 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13206 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13207 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13208 * tui/tui-winsource.c, tui/tui.c: Ditto.
13210 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13212 * dwarf2-frame.h: Update copyright.
13213 (enum dwarf2_frame_reg_rule): New.
13214 (struct dwarf2_frame_state_reg): New.
13215 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13216 * dwarf2-frame.c: Update copyright.
13217 (enum dwarf2_reg_rule): Remove.
13218 (struct dwarf2_frame_state): Remove defenition of `struct
13219 dwarf2_frame_state_reg'.
13220 (read_reg): Call get_frame_arch to get the architecture instead of
13221 using CURRENT_GDBARCH.
13222 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13224 (dwarf2_frame_init_reg): New function.
13225 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13226 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13227 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13228 tags with DWARF2_FRAME_.
13229 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13230 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13231 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13233 2004-02-06 Andrew Cagney <cagney@redhat.com>
13235 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13236 (enum tui_data_type): Rename _TuiDataType.
13237 (struct tui_layout_def): Rename _TuiLayoutDef.
13238 (struct tui_source_element): Rename _TuiSourceElement.
13239 (struct tui_data_element): Rename _TuiDataElement.
13240 (struct tui_command_element): Rename _TuiCommandElement.
13241 (struct tui_locator_element): Rename _TuiLocatorElement.
13242 (union tui_which_element): Define.
13243 (struct tui_win_element): Rename _TuiWinElement.
13244 (struct tui_data_info): Rename _TuiDataInfo.
13245 (struct tui_source_info): Rename _TuiSourceInfo.
13246 (struct tui_command_info): Rename _TuiCommandInfo.
13247 (tui_initialize_static_data): Rename initializeStaticData.
13248 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13249 (tui_alloc_win_info): Rename allocWinInfo.
13250 (tui_init_generic_part): Rename initGenericPart.
13251 (tui_init_win_info): Rename initWinInfo.
13252 (tui_alloc_content): Rename allocContent.
13253 (tui_add_content_elements): Rename addContentElements.
13254 (tui_init_content_element): Rename initContentElement.
13255 (tui_free_window): Rename freeWindow.
13256 (tui_free_win_content): Rename freeWinContent.
13257 (tui_free_data_content): Rename freeDataContent.
13258 (tui_free_all_source_wins_content): Rename
13259 freeAllSourceWinsContent.
13260 (tui_del_window): Rename tuiDelWindow.
13261 (tui_del_data_windows): Rename tuiDelDataWindows.
13262 (tui_partial_win_by_name): Rename partialWinByName.
13263 (tui_win_name): Rename winName.
13264 (tui_current_layout): Rename currentLayout.
13265 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13266 (tui_term_height): Rename termHeight.
13267 (tui_set_term_height_to): Rename setTermHeightTo.
13268 (tui_term_width): Rename termWidth.
13269 (tui_set_term_width_to): Rename setTermWidthTo.
13270 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13271 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13272 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13273 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13274 (tui_source_windows): Rename sourceWindows.
13275 (tui_clear_source_windows): Rename clearSourceWindows.
13276 (tui_clear_source_windows_detail): Rename
13277 clearSourceWindowsDetail.
13278 (tui_clear_win_detail): Rename clearWinDetail.
13279 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13280 (tui_default_tab_len): Rename tuiDefaultTabLen.
13281 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13282 (tui_win_with_focus): Rename tuiWinWithFocus.
13283 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13284 (tui_layout_def): Rename tuiLayoutDef.
13285 (tui_win_resized): Rename tuiWinResized.
13286 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13287 (tui_next_win): Rename tuiNextWin.
13288 (tui_prev_win): Rename tuiPrevWin.
13289 (tui_add_to_source_windows): Rename addToSourceWindows.
13290 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13291 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13292 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13293 * tui/tui.c, tui/tui-data.c: Ditto.
13294 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13295 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13297 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13298 (struct symtab): Declare.
13299 (tui_set_source_content): Rename tuiSetSourceContent.
13300 (tui_show_symtab_source): Rename tuiShowSource.
13301 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13302 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13303 * tui/tui-source.c: Update copyright. Update references.
13304 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13305 * tui/tui-stack.c: Update references.
13307 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13308 (struct tui_win_info): Declare.
13309 (tui_scroll_forward): Rename tuiScrollForward.
13310 (tui_scroll_backward): Rename tuiScrollBackward.
13311 (tui_scroll_left): Rename tuiScrollLeft.
13312 (tui_scroll_right): Rename tuiScrollRight.
13313 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13314 (tui_resize_all): Rename tuiResizeAll.
13315 (tui_refresh_all_win): Rename tuiRefreshAll.
13316 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13317 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13318 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13319 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13321 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13322 (tui_erase_data_content): Rename tuiEraseDataContent.
13323 (tui_display_all_data): Rename tuiDisplayAllData.
13324 (tui_check_data_values): Rename tuiCheckDataValues.
13325 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13326 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13327 (tui_first_data_element_no_in_line): Rename
13328 tuiFirstDataElementNoInLine.
13329 (tui_delete_data_content_windows): Rename
13330 tuiDeleteDataContentWindows.
13331 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13332 (tui_display_data_from): Rename tuiDisplayDataFrom.
13333 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13334 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13335 * tui/tui-win.c, tui/tui-regs.c: Update references.
13336 * tui/tui-layout.c, tui/tui.c: Update references.
13338 * tui/tui-wingeneral.h: Update copyright.
13339 (m_allBeVisible): Delete macro.
13340 (m_allBeInvisible): Delete macro.
13341 (struct tui_gen_win_info): Declare.
13342 (struct tui_win_info): Declare.
13343 (tui_unhighlight_win): Rename unhighlightWin.
13344 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13345 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13346 (tui_make_window): Rename makeWindow.
13347 (tui_copy_win): Rename copyWin.
13348 (tui_box_win): Rename boxWin.
13349 (tui_highlight_win): Rename highlightWin.
13350 (tui_check_and_display_highlight_if_needed): Rename
13351 checkAndDisplayHighlightIfNeeded.
13352 (tui_refresh_all): Rename refreshAll.
13353 (tui_delete_win): Rename tuiDelwin.
13354 (tui_refresh_win): Rename tuiRefreshWin.
13355 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13356 (tui_make_visible, tui_make_invisible): New functions.
13357 (tui_make_all_visible, tui_make_all_invisible): New functions.
13358 (make_all_visible): Rename makeAllVisible.
13359 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13360 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13361 * tui/tui-windata.c, tui/tui-win.c: Update references.
13362 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13363 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13365 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13367 * proc-api.c (write_with_trace): Initialize local variable to
13368 silence compiler warning.
13370 2004-02-06 Andrew Cagney <cagney@redhat.com>
13372 * tui/tui-source.h: Do not include "defs.h".
13373 (struct tui_win_info): Declare.
13374 (tui_set_source_content_nil): Declare.
13375 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13376 (union tui_line_or_address): Rename _TuiLineOrAddress.
13377 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13378 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13379 (tui_update_source_window_as_is): Rename
13380 tuiUpdateSourceWindowAsIs.
13381 (tui_update_source_windows_with_addr): Rename
13382 tuiUpdateSourceWindowsWithAddr.
13383 (tui_update_source_windows_with_line): Rename
13384 tuiUpdateSourceWindowsWithLine.
13385 (tui_clear_source_content): Rename tuiClearSourceContent.
13386 (tui_erase_source_content): Rename tuiEraseSourceContent.
13387 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13388 (tui_show_source_content): Rename tuiShowSourceContent.
13389 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13390 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13391 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13392 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13393 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13394 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13395 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13396 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13397 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13398 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13399 (struct tui_win_info): Declare.
13400 * tui/tui-stack.c: Update references.
13401 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13402 * tui/tui-win.c, tui/tui-source.c: Ditto.
13403 * tui/tui.c, tui/tui-disasm.c: Ditto.
13405 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13407 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13408 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13410 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13412 * infrun.c (handle_inferior_event): Allow for breakpoint
13413 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13414 and SIGEMT. Update comments.
13415 * NEWS (Revised SPARC target): Mention support for non-executable
13418 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13420 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13421 * inftarg.c: Update copyright year.
13422 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13423 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13424 (sparc_xfer_wcookie): New function.
13425 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13426 * Makefile.in (sparc-nat.o): Update dependencies.
13427 * config/sparc/nm-nbsd.h: Include "target.h".
13428 (NATIVE_XFER_WCOOKIE): New define.
13429 (sparc_xfer_wcookie): New prototype.
13431 2004-02-04 Andrew Cagney <cagney@redhat.com>
13433 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13434 SYSCALL_TRAP function.
13435 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13437 2004-02-04 Andrew Cagney <cagney@redhat.com>
13438 Daniel Jacobowitz <drow@mvista.com>
13440 * objfiles.h: Delete comments refering to inside_entry_func and
13441 DEPRECATED_FRAME_CHAIN_VALID.
13442 * defs.h (inside_entry_func): Update prototype..
13443 * blockframe.c (inside_entry_func): Rename to
13444 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13445 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13447 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13449 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13450 outside of #ifdef SOLIB_ADD region.
13451 (do_restore_lang_radix_cleanup): Ditto.
13452 (resolve_pending_breakpoint): Ditto.
13454 2004-02-03 Andrew Cagney <cagney@redhat.com>
13456 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13457 (process_note_abi_tag_sections): Delete unused function.
13458 (ia64_read_fp): Delete unused function.
13459 (gdbarch_extract_struct_value_address): Delete declaration.
13461 2004-02-02 Andrew Cagney <cagney@redhat.com>
13463 * vax-tdep.c (vax_frame_chain): Delete call to
13464 deprecated_inside_entry_file.
13465 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13467 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13469 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13470 column that's "empty" or "same value" when eliminating REG_RA
13473 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13475 * NEWS: Add information about new pending breakpoint support.
13477 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13479 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13480 and pending fields for pending breakpoint support.
13481 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13482 (condition_command): Only parse condition if not a pending
13484 (print_one_breakpoint): Add support for pending breakpoints.
13485 (describe_other_breakpoints): Add checks to verify we are not
13486 dealing with pending breakpoints.
13487 (check_duplicates): Don't check pending breakpoints.
13488 (set_raw_breakpoint): Initialize pending flag.
13489 (do_restore_lang_radix_cleanup): New cleanup routine.
13490 (resolve_pending_breakpoint): New function.
13491 (re_enable_breakpoints_in_shlibs): Try and resolve any
13492 pending breakpoints via resolve_pending_breakpoint.
13493 (mention): Add pending breakpoint support.
13494 (parse_breakpoint_sals): Add new parameter to pass to
13495 decode_line_1 to indicate silent errors when files or functions
13496 are not found. Change all callers.
13497 (do_captured_parse_breakpoint): New function.
13498 (break_command_1): Change prototype to return an rc value and to
13499 take an optional pending breakpoint pointer. Support creating
13500 a pending breakpoint if a "not found" form of error occurs when
13501 parsing the breakpoint. Also support resolving an existing pending
13502 breakpoint and be silent if the resolution fails.
13503 (create_breakpoints): Change prototype to take pending breakpoint
13504 pointer. When resolving a pending breakpoint, use the new pointer
13505 to provide a conditional or commands added by the end-user.
13506 (delete_breakpoint): Add appropriate check for pending.
13507 (breakpoint_re_set_one): Ditto.
13508 (do_enable_breakpoint): Ditto.
13510 2004-02-02 David Carlton <carlton@kealia.com>
13512 * valops.c (enum oload_classification): New.
13513 (find_overload_match): Break implementation into separate
13514 functions; delete #if 0'd code; look for symbols within
13516 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13517 (find_oload_champ,oload_method_static,classify_oload_match): New.
13518 * cp-support.h: Add declaration for cp_func_name; update
13519 declaration for make_symbol_overload_list.
13520 * cp-support.c (cp_func_name): New.
13521 (overload_list_add_symbol): Fix comment, use
13522 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13523 (make_symbol_overload_list): Take a function name and a namespace
13524 instead of a symbol; change implementation.
13525 (make_symbol_overload_list_using): New.
13526 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13528 2004-02-02 Fred Fish <fnf@redhat.com>
13530 * main.c (gdb_stdtarg): Move definition to group with other
13531 gdb_stdtarg definitions and update copyright years.
13532 * remote-sim.c (gdb_os_write_stderr): Write output to
13533 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13534 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13535 gdb_stderr stream and update copyright years.
13537 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13539 * Makefile.in (mips-linux-nat.o): Update dependencies.
13540 * mips-linux-nat.c: Include mips-tdep.h.
13542 2004-02-01 Roland McGrath <roland@redhat.com>
13544 * sol-thread.c (sol_thread_xfer_partial): New function.
13545 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13546 (init_sol_core_ops): Likewise.
13548 * procfs.c (procfs_xfer_partial): New function.
13549 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13550 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13552 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13553 procfs_xfer_auxv function.
13555 * procfs.c (procfs_make_note_section): If we can read
13556 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13557 * linux-proc.c (linux_make_note_section): Likewise.
13559 * auxv.h: New file.
13560 * auxv.c: New file.
13561 * Makefile.in (auxv_h): New variable.
13562 (COMMON_OBS): Add auxv.o here.
13563 (auxv.o): New target.
13565 * corelow.c (core_xfer_partial): New function.
13566 (init_core_ops): Use it for core_ops.to_xfer_partial.
13568 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13569 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13570 macro if that is defined.
13572 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13574 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13575 and check the specified thread for each breakpoint.
13576 * breakpoint.h (bpstat_stop_status): Update prototype.
13577 * infrun.c (handle_inferior_event): Update calls to
13578 bpstat_stop_status.
13580 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13582 * Makefile.in (cli-cmds.o): Add $(readline_h).
13584 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13586 * cli/cli-cmds.c: Include readline.h.
13587 (complete_command): Pass the start of the last word to
13590 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13592 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13593 argument, and change first argument to a CORE_ADDR.
13594 * breakpoint.h (bpstat_stop_status): Update prototype.
13595 * infrun.c (adjust_pc_after_break): Add a new comment.
13596 (handle_inferior_event): Update calls to bpstat_stop_status.
13598 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13600 * breakpoint.h: Update copyright years.
13602 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13604 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13605 (bpstat_stop_status): Don't decrement PC.
13606 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13608 * infrun.c (adjust_pc_after_break): New function.
13609 (handle_inferior_event): Call it, early. Remove later references
13610 to DECR_PC_AFTER_BREAK.
13611 (normal_stop): Add commentary.
13613 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13615 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13616 2004-01-27 double-free fix.
13618 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13620 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13621 (sparc32_frame_prev_register): Handle StackGhost.
13622 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13624 2004-01-29 Roland McGrath <roland@redhat.com>
13626 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13627 * configure: Regenerated.
13629 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13630 * Makefile.in (procfs.o): Add dep.
13632 2004-01-28 Andrew Cagney <cagney@redhat.com>
13634 * tui/tui-stack.h: Update copyright.
13635 (struct frame_info): Add opaque declaration.
13636 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13637 (tui_show_locator_content): Rename tuiShowLocatorContent.
13638 (tui_show_frame_info): Rename tuiShowFrameInfo.
13639 * tui/tui-stack.c: Update copyright. Update references.
13640 * tui/tui-winsource.c: Update references.
13641 * tui/tui-win.c: Update references.
13642 * tui/tui-layout.c: Update references.
13643 * tui/tui-hooks.c: Update copyright, update references.
13644 * tui/tui.c: Update copyright, update references.
13645 * tui/tui-disasm.c: Update references.
13647 2004-01-28 David Carlton <carlton@kealia.com>
13649 * dwarf2read.c (add_partial_structure): Use demangled name if
13650 namespace equals "".
13652 2004-01-27 Jim Blandy <jimb@redhat.com>
13654 Clean up misapplied patch:
13655 * dwarf2read.c (determine_prefix): Change one of the two forward
13656 declarations for 'determine_prefix_aux' to a declaration for this.
13657 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13658 argument to 'die_specification'.
13660 * dwarf2read.c (read_func_scope): Re-indent comment.
13662 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13664 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13665 b->exp to NULL after freeing so that error during re-parsing or
13666 evaluation of expressions associated with breakpoint don't
13667 eventually lead to re-freeing of storage.
13668 Committed by Andrew Cagney.
13670 2004-01-27 Andrew Cagney <cagney@redhat.com>
13672 * source.c (ambiguous_line_spec): Delete undefined declaration.
13673 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13674 (m32r_set_server_address, m32r_set_download_path): Ditto.
13675 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13677 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13679 * dwarf2read.c: Update calls to changed and renamed functions, and
13680 references to moved variables.
13682 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13683 language, language_defn, list_in_scope, and ftypes members.
13684 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13685 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13686 (baseaddr): Remove globals.
13688 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13689 (set_cu_language, die_is_declaration, die_specification)
13690 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13691 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13692 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13693 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13695 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13696 cu.list_in_scope. Don't initialize cu_header_offset.
13697 (add_partial_symbol): Add local baseaddr.
13698 (psymtab_to_symtab_1): Add local baseaddr. Use
13699 objfile->section_offsets for consistency. Don't initialize
13700 cu_header_offset; do initialize cu.header.offset and
13702 (read_file_scope, read_func_scope, read_lexical_block_scope)
13703 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13705 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13707 * PROBLEMS: Add gdb/1516.
13709 2003-12-29 Robert Millan <robertmh@gnu.org>
13711 Patch committed by Andrw Cagney.
13712 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13713 * configure.tgt: Match knetbsd*-gnu.
13715 2004-01-26 Andrew Cagney <cagney@redhat.com>
13717 * breakpoint.c (catch_command_1): Delete #ifdef code.
13718 (catch_fork_command_1): Delete #ifdef wrapper.
13719 (catch_exec_command_1): Ditto.
13720 (catch_load_command_1): Ditto.
13721 (catch_unload_command_1): Ditto.
13723 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13724 (catch_breakpoint): Delete #if0ed function.
13725 (disable_catch_breakpoint): Ditto.
13726 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13727 (disable_catch, enable_catch, delete_catch): Ditto.
13729 2004-01-26 Andrew Cagney <cagney@redhat.com>
13731 * remote.c (echo_check, quit_flag): Delete variables.
13732 (cisco_kernel_mode): Delete variable.
13733 (minitelnet_return, tty_input, escape_count): Delete variables.
13734 (remote_cisco_mode): Delete variable.
13735 (remote_cisco_open, remote_cisco_close): Delete function.
13736 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13737 (init_remote_cisco_ops): Delete function.
13738 (_initialize_remote): Do not install "remote cisco" code.
13739 (read_frame): Delete cisco specific code.
13740 (remote_info_process): Delete function.
13741 (remote_wait): Delete cisco specific code.
13742 (remote_cisco_section_offsets): Delete function.
13743 (remote_cisco_objfile_relocate): Delete function.
13744 (remote_async_wait): Delete cisco specific code.
13745 (minitelnet, readtty, readsocket): Delete function.
13747 2004-01-26 Andrew Cagney <cagney@redhat.com>
13749 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13750 comments mentioning extract_returned_value_address.
13751 * infcmd.c (print_return_value): Update. Add comments on
13752 extract_returned_value_address.
13753 * stack.c (return_command): Add comments on
13754 extract_returned_value_address.
13755 * values.c: Update comment.
13756 * m32r-tdep.c: Update comment.
13757 * sparc-tdep.c: Update comment.
13758 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13760 * sh64-tdep.c (sh64_gdbarch_init): Update.
13761 * sh-tdep.c (sh_gdbarch_init): Update.
13762 * s390-tdep.c (s390_gdbarch_init): Update.
13763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13764 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13765 * m68k-tdep.c (m68k_gdbarch_init): Update.
13766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13767 * m32r-tdep.c (m32r_gdbarch_init): Update.
13768 * ia64-tdep.c (ia64_gdbarch_init): Update.
13769 * h8300-tdep.c (h8300_gdbarch_init): Update.
13770 * frv-tdep.c (frv_gdbarch_init): Update.
13771 * arm-tdep.c (arm_gdbarch_init): Update.
13772 * alpha-tdep.c (alpha_gdbarch_init): Update.
13774 2004-01-26 Andrew Cagney <cagney@redhat.com>
13776 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13777 SYMBOL_LOCATION_FUNCS
13778 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13779 "struct symbol_ops".
13780 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13781 type to "struct symbol_ops".
13782 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13783 (struct symbol): Replace ".aux_value.loc.funcs" and
13784 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13785 (SYMBOL_OBJFILE): Delete macro.
13786 (SYMBOL_LOCATION_FUNCS): Delete macro.
13787 (SYMBOL_LOCATION_BATON): Update.
13788 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13789 intead of SYMBOL_LOCATION_FUNCS.
13790 * ax-gdb.c (gen_var_ref): Ditto.
13791 * printcmd.c (address_info): Ditto.
13792 * findvar.c (read_var_value): Ditto.
13793 (symbol_read_needs_frame): Ditto.
13795 2004-01-26 Andrew Cagney <cagney@redhat.com>
13797 * dwarf2read.c (read_func_scope): Document frame-base hack.
13799 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13801 * infcmd.c (print_return_value): Plug memory leak; delete
13802 ui_stream object. Rename argument `structure_return' to
13805 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13807 * infcmd.c (print_return_value): Wrap long lines.
13808 (finish_command_continuation, finish_command): Remove unused
13809 variable `funcaddr'. Fix some coding-standards problems.
13811 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13812 SECT_SIZE is large enough, not whether it's exactly the right size.
13813 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13814 TDEP->fpregset to zero.
13816 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13817 floating-point registers for traditional NetBSD core files.
13818 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13819 TDEP->sizeof_fpregset here.
13821 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13823 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13824 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13825 function with code split out from
13826 sparc32nbsd_sigcontext_frame_cache.
13827 (sparc32nbsd_sigcontext_frame_cache): Use
13828 sparc32nbsd_sigcontext_saved_regs.
13829 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13831 * sparcobsd-tdep.c: New file.
13832 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13833 (sparcobsd-tdep.o): New dependency.
13834 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13835 * config/sparc/obsd.mt: New file.
13837 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13838 TDEP->fpregset to be initialized to enable core file register
13841 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13843 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13844 Add opaque declarations.
13845 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13846 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13847 function with code split out from
13848 sparc64nbsd_sigcontext_frame_cache.
13849 (sparc64nbsd_sigcontext_frame_cache): Use
13850 sparc64nbsd_sigcontext_saved_regs.
13851 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13853 * sparc64obsd-tdep.c: New file.
13854 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13855 (sparc64obsd-tdep.o): New dependency.
13856 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13857 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13858 * config/sparc/obsd64.mt: New file.
13860 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13861 read the instruction at PC.
13863 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13864 value of GDB_OSABI_DEFAULT.
13865 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13866 instead of GDB_OSABI_NETBSD_AOUT.
13868 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13870 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13873 2004-01-23 Andrew Cagney <cagney@redhat.com>
13875 * printcmd.c (display_command): Replace tui_set_display call with
13876 tui_set_layout_for_display_command.
13877 * tui/tui.h (enum tui_win_type): Define.
13878 (tui_set_layout): Delete declaration.
13879 (tui_set_layout_for_display_command): Rename set_tui_layout.
13880 * tui/tui-data.h (enum tui_layout_type): Define.
13881 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13883 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13884 (tui_default_win_height): Rename tuiDefaultWinHeight.
13885 (tui_default_win_viewport_height): Rename
13886 tuiDefaultWinViewportHeight.
13887 (tui_set_layout): RenametuiSetLayout.
13888 * tui/tui-layout.c: Update references.
13889 * tui/tui.c: Update references.
13890 * tui/tui-disasm.c: Update references.
13892 2004-01-23 David Carlton <carlton@kealia.com>
13894 Partial workaround for PR c++/1511:
13895 * cp-namespace.c: Include frame.h.
13896 (cp_lookup_transparent_type): New
13897 (cp_lookup_transparent_type_loop): New.
13898 * cp-support.h: Declare cp_lookup_transparent_type.
13899 * symtab.c (basic_lookup_transparent_type): Renamed from
13900 lookup_transparent_type.
13901 (lookup_transparent_type): Replace old body by a call to
13902 current_language->la_lookup_transparent_type.
13903 * symtab.h: Update copyright. Declare
13904 basic_lookup_transparent_type.
13905 * language.h: Update copyright.
13906 (struct language_defn): Add la_lookup_transparent_type.
13907 * language.c: Update copyright.
13908 (unknown_language_defn): Add basic_lookup_transparent_type.
13909 (auto_language_defn): Add basic_lookup_transparent_type.
13910 (local_language_defn): Add basic_lookup_transparent_type.
13911 * ada-lang.c: Update copyright.
13912 (ada_language_defn): Add basic_lookup_transparent_type.
13913 * c-lang.c: Update copyright.
13914 (c_language_defn): Add basic_lookup_transparent_type.
13915 (cplus_language_defn): Add basic_lookup_transparent_type.
13916 (asm_language_defn): Add basic_lookup_transparent_type.
13917 (minimal_language_defn): Add basic_lookup_transparent_type.
13918 * f-lang.c: Update copyright.
13919 (f_language_defn): Add basic_lookup_transparent_type.
13920 * jv-lang.c: Update copyright.
13921 (java_language_defn): Add basic_lookup_transparent_type.
13922 * m2-lang.c: Update copyright.
13923 (m2_language_defn): Add basic_lookup_transparent_type.
13924 * objc-lang.c: Update copyright.
13925 (objc_language_defn): Add basic_lookup_transparent_type.
13926 * p-lang.c: Update copyright.
13927 (p_language_defn): Add basic_lookup_transparent_type.
13928 * scm-lang.c: Update copyright.
13929 (scm_language_defn): Add basic_lookup_transparent_type.
13930 * Makefile.in (cp-namespace.o): Depend on frame.h.
13932 2004-01-23 David Carlton <carlton@kealia.com>
13934 Patch for PR c++/1520:
13935 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13936 properly if we have a specification die.
13937 (determine_prefix_aux): Rename from determine_prefix.
13938 (determine_prefix): Like the old determine_prefix, but never
13941 2004-01-23 Theodore A. Roth <troth@openavr.org>
13943 * avr-tdep.c: Update copyright.
13944 (avr_iaddr_p): Delete unused function.
13945 (avr_saddr_p): Delete unused function.
13947 2004-01-23 David Carlton <carlton@kealia.com>
13949 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13950 Fix for PR symtab/1534.
13952 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13954 * NEWS (New native configurations): Mention OpenBSD/sparc and
13956 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13957 * configure.host: Likewise.
13958 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13959 handler for OpenBSD.
13960 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13962 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13964 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13965 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13967 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13968 * cli/cli-cmds.c (shell_escape): Likewise.
13970 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13971 OpenBSD .note.openbsd.ident sections.
13973 2004-01-22 David Carlton <carlton@kealia.com>
13975 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13976 get_scope_pc_bounds.
13977 (read_file_scope): Ditto.
13978 (get_scope_pc_bounds): New function, produced by extracting code
13979 from the above two functions, consolidating it, and adding support
13980 for DW_TAG_namespace.
13982 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13984 * osabi.c (MAX_NOTESZ): New define.
13985 (check_note): New function.
13986 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13989 2004-01-21 Roland McGrath <roland@redhat.com>
13991 * MAINTAINERS (write after approval): Add myself.
13993 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13995 * utils.c (init_page_info): Move declarations of `rows' and
13996 `cols' before the __GO32__-specific code. Move the closing brace
13997 outside the #ifdef __GO32__..#endif block.
13998 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
14000 2004-01-21 Paul Brook <paul@codesourcery.com>
14002 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
14003 BPSTAT_WHAT_CHECK_SHLIBS.
14005 2004-01-21 Paul Brook <paul@codesourcery.com>
14007 * MAINTAINERS: Add myself to write-after-approval.
14009 2004-01-20 Andrew Cagney <cagney@redhat.com>
14011 * ax-gdb.c (print_axs_value): Delete unused function.
14012 * jv-lang.c (java_lookup_type): Delete unused function.
14013 * cli/cli-dump.c (dump_filetype): Delete unused function.
14014 * remote-mips.c (remote_mips_insert_hw_breakpoint)
14015 (remote_mips_remove_hw_breakpoint): Delete unused functions.
14016 (mips_getstring): Delete unused function.
14017 (pmon_insert_breakpoint): Delete #if0ed function.
14018 (PMON_MAX_BP): Delete #if0ed MACRO.
14019 (mips_pmon_bp_info): Delete #if0ed variable.
14020 (pmon_remove_breakpoint): Delete #if0ed function.
14021 * monitor.c (monitor_write_even_block): Delete unused function.
14022 (monitor_write_memory_block): Delete #if0ed code.
14023 * dink32-rom.c (dink32_load): Delete unused function.
14024 (_initialize_dink32_rom): Delete #if0ed code.
14025 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
14027 * tui/tui-command.c: Update references.
14028 * tui/tui-io.c: Update references.
14029 * tui/tui-command.h: Update copyright.
14030 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
14032 * source.c (ambiguous_line_spec): Delete never-defined function.
14033 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
14034 * gdbtypes.c (add_name, add_mangled_type): Ditto.
14035 * cli/cli-cmds.c (validate_comname): Ditto.
14037 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
14039 (tui_set_disassem_content): Rename tuiSetDisassemContent.
14040 (tui_show_disassem): Rename tuiShowDisassem.
14041 (tui_show_disassem_and_update_source): Rename
14042 tuiVerticalDisassemScroll.
14043 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
14044 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
14045 * tui/tui.h: Update copyright.
14046 (enum tui_status): Define.
14047 * tui/tui-data.h (enum tui_scroll_direction): Define.
14048 * tui/tui-disasm.c: Update copyright. Update references.
14049 * tui/tui-winsource.c: Update copyright. Update references.
14050 * tui/tui-win.c: Update references.
14051 * tui/tui-layout.c: Update references.
14053 2004-01-20 Andrew Cagney <cagney@redhat.com>
14055 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
14056 sym2 to start of block.
14058 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
14060 * MAINTAINERS: Delete mmalloc.
14061 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
14062 * NEWS: Mention removal of --with-malloc.
14063 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
14064 * config.in: Regenerate.
14065 * configure: Regenerate.
14066 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
14067 USE_MMALLOC, MMCHECK_FORCE.
14068 * gdbinit.in: Remove mmalloc.
14069 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
14070 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
14071 * config/i386/go32.mh: Likewise.
14072 * config/i386/interix.mh: Likewise.
14073 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
14075 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
14077 * linespec.c (decode_variable, symtab_from_filename): Call
14078 error_silent with error message instead of throwing an exception
14080 * defs.h (error_silent, error_output_message): Add prototypes.
14081 (catch_exceptions_with_msg): Ditto.
14082 * utils.c (error_silent, error_output_message): New functions.
14083 * top.c (catch_exceptions_with_msg): New function.
14085 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
14087 * mi/mi-cmds.h (enum print_values): Add definition.
14089 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
14090 type and value for simple data types and just the name and type
14091 for complex ones, if required.
14093 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
14094 children, if required.
14096 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14098 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
14099 unused declarations.
14101 2004-01-19 Andrew Cagney <cagney@redhat.com>
14103 * top.h (mapped_symbol_files): Delete declaration.
14104 * main.c (captured_main): Delete option "m" and "mapped".
14105 * objfiles.c (mapped_symbol_files): Delete variable.
14106 * symfile.c (symbol_file_command): Delete mmap code.
14107 (symbol_file_add_with_addrs_or_offsets): Ditto.
14108 (add_symbol_file_command, reread_separate_symbols): Ditto.
14109 * objfiles.h (OBJF_MAPPED): Delete.
14110 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14111 (free_objfile) [USE_MMALLOC]: Ditto.
14112 (open_existing_mapped_file): Delete function.
14113 (open_mapped_file): Delete function.
14114 (map_to_file): Delete function.
14116 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14118 * infrun.c (step_into_function): Account for possible breakpoint
14119 adjustment when computing ``stop_func_start''.
14121 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14123 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14124 the region size against the size of a pointer, not the size of
14125 a register as given by DEPRECATED_REGISTER_SIZE.
14127 2004-01-19 Andrew Cagney <cagney@redhat.com>
14129 * tui/tui-regs.h: Include "tui-data.h".
14130 (tuiFirstRegElementNoInLine): Delete declaration.
14131 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14132 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14133 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14134 (tui_calculate_regs_column_count): Rename
14135 tuiCalculateRegsColumnCount.
14136 (tui_check_register_values): Rename tuiCheckRegisterValues.
14137 (tui_show_registers): Rename tuiShowRegisters.
14138 (tui_display_registers_from_line): Rename
14139 tuiDisplayRegistersFromLine.
14140 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14141 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14142 (tui_first_reg_element_no_inline): Rename
14143 tuiFirstRegElementNoInLine.
14144 * tui/tui-data.h: Update copyright.
14145 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14146 * tui/tui-windata.c: Update copyright, update references.
14147 * tui/tui-regs.c: Update copyright, update references.
14148 * tui/tui-win.c: Update copyright, update references.
14149 * tui/tui-layout.c: Update copyright, update references.
14151 2004-01-18 Andrew Cagney <cagney@redhat.com>
14153 * tui/tui-io.c: Update copyright.
14154 (key_is_end_sequence, key_is_backspace): New functions.
14155 (key_is_command_char, key_is_start_sequence): New function.
14156 (tui_getc): Update references.
14157 * tui/tui-io.h: Update copyright.
14158 (m_tuiStartNewLine): Delete macro.
14159 (m_isBackspace, m_isDeleteChar): Delete macros.
14160 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14161 (m_isNextPage, m_isPrevPage): Delete macros.
14162 (m_isLeftArrow, m_isRightArrow): Delete macros.
14163 (m_isXdbStyleCommandChar): Delete macro.
14164 (key_is_start_sequence): Declare, replace m_isStartSequence.
14165 (key_is_end_sequence): Declare, replace m_isEndSequence.
14166 (key_is_backspace): Declare ,replace m_isBackspace.
14167 (key_is_command_char): Declare, replace m_isCommandChar.
14168 * tui/tui-command.c: Update copyright.
14169 (tuiDispatchCtrlChar): Update references.
14171 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14174 * tui/tui-command.c: Rename tui/tuiCommand.c.
14175 * tui/tui-command.h: Rename tui/tuiCommand.h.
14176 * tui/tui-data.c: Rename tui/tuiData.c.
14177 * tui/tui-data.h: Rename tui/tuiData.h.
14178 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14179 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14180 * tui/tui-io.c: Rename tui/tuiIO.c.
14181 * tui/tui-io.h: Rename tui/tuiIO.h.
14182 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14183 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14184 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14185 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14186 * tui/tui-source.c: Rename tui/tuiSource.c.
14187 * tui/tui-source.h: Rename tui/tuiSource.h.
14188 * tui/tui-stack.c: Rename tui/tuiStack.c.
14189 * tui/tui-stack.h: Rename tui/tuiStack.h.
14190 * tui/tui-win.c: Rename tui/tuiWin.c.
14191 * tui/tui-win.h: Rename tui/tuiWin.h.
14192 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14193 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14194 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14195 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14196 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14197 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14198 * tui/tui-file.c: Update includes.
14199 * tui/tui-hooks.c: Update includes.
14200 * tui/tui-interp.c: Update includes.
14201 * tui/tui.c: Update includes.
14202 * Makefile.in: Update all tui/ dependencies.
14203 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14205 * Makefile.in: Update copyright. Update dependencies.
14207 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14210 2004-01-18 Andrew Cagney <cagney@redhat.com>
14212 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14213 instead of register_gdbarch_init.
14215 * remote-sds.c (tohex): Delete unused function. Update copyright.
14216 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14217 * v850-tdep.c (v850_register_virtual_size): Ditto.
14218 * target.c (normal_target_post_startup_inferior): Ditto.
14219 * source.c (ambiguous_line_spec): Ditto.
14220 * remote.c (adapt_remote_get_threadinfo): Ditto.
14221 * mi/mi-out.c (out_field_fmt): Ditto.
14222 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14223 (output_control_change_notification): Ditto.
14224 * m68k-tdep.c (m68k_register_byte): Ditto.
14225 (m68k_remote_breakpoint_from_pc): Ditto.
14226 * ui-out.c (init_ui_out_state): Delete unused declaration.
14227 * stabsread.c (search_value): Ditto.
14228 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14229 * maint.c (print_section_table): Ditto.
14230 * infrun.c (set_follow_fork_mode_command): Ditto.
14232 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14234 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14235 DW_CFA_def_cfa_exporession. Add support for
14236 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14237 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14239 2004-01-18 Andrew Cagney <cagney@redhat.com>
14241 * ocd.c: Update copyright.
14242 (bdm_read_register_command): Delete unused function.
14243 (_initialize_remote_ocd): Delete commented out reference.
14244 (get_quoted_char, reset_packet): Delete #if0ed function.
14245 (output_packet, put_quoted_char): Delete #if0ed function.
14246 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14247 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14248 (BDM_BREAKPOINT): Delete #if0ed macro.
14249 (remote_timeout): Delete #if0ed variable.
14251 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14253 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14254 (core-sol2.o): Remove dependency.
14255 * core-sol2.c: Remove file.
14257 2004-01-17 Andrew Cagney <cagney@redhat.com>
14259 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14260 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14263 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14265 * remote.c: Update copyright years.
14267 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14269 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14271 2004-01-17 Andrew Cagney <cagney@redhat.com>
14273 * mdebugread.c: Update copyright.
14274 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14275 (parse_type, parse_procedure): Ditto.
14276 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14278 * cris-tdep.c (cris_store_struct_return): Put back accidently
14281 * gdbarch.sh: Update copyright year.
14282 * gdbarch.h, gdbarch.c: Re-generate.
14284 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14286 Suggested by George Anzinger.
14287 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14288 correct stack offset. Include unknown opcode numbers in the error
14291 2004-01-17 Andrew Cagney <cagney@redhat.com>
14293 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14294 extract_struct_value_address, i386 does not set it.
14295 * sparc64-tdep.c (sparc64_init_abi): Do not set
14296 extract_struct_value_address, never called.
14297 (sparc64_extract_struct_value_address): Delete function.
14298 * m68hc11-tdep.c: Update copyright.
14299 (m68hc11_gdbarch_init): Delete redundant assignment of
14300 extract_struct_value_address.
14301 * i386-tdep.c: Update copyright.
14302 (i386_gdbarch_init): Do not set extract_struct_value_address,
14304 (i386_extract_struct_value_address): Delete function.
14305 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14306 extract_struct_value_address, never called.
14307 (sparc32_extract_struct_value_address): #if 0 function. Add
14308 comments explaining its future.
14310 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14312 * arm-tdep.c (arm_write_pc): New function.
14313 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14315 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14317 * breakpoint.c (must_shift_inst_regs): Delete.
14318 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14319 and SHIFT_INST_REGS.
14320 * infcmd.c (step_1, step_1_continuation): Delete references to
14322 * infrun.c (keep_going): Likewise.
14323 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14324 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14326 2004-01-17 Andrew Cagney <cagney@redhat.com>
14328 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14329 * gdbarch.h, gdbarch.c: Re-generate.
14330 * infcmd.c (print_return_value): Delete reference to
14331 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14333 * cris-tdep.c (cris_gdbarch_init): Do not set
14334 deprecated_extract_struct_value_address.
14336 * xstormy16-tdep.c: Update copyright.
14337 (xstormy16_extract_struct_value_address): Update to current
14338 extract struct value address interface.
14339 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14340 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14341 current extract struct value address interface.
14342 (sh64_gdbarch_init): Set extract_struct_value_address.
14344 * cris-tdep.c: Update copyright.
14345 (cris_extract_struct_value_address): Delete function.
14346 (struct_return_address): Delete variable.
14347 (cris_store_struct_return): Do not set struct_return_address.
14349 * mcore-tdep.c: Update copyright.
14350 (mcore_extract_struct_value_address): Delete function. Update
14352 (mcore_gdbarch_init): Update.
14353 * mn10300-tdep.c: Update copyright.
14354 (mn10300_extract_struct_value_address): Delete function.
14355 (mn10300_gdbarch_init): Update.
14356 * v850-tdep.c: Update copyright.
14357 (v850_extract_struct_value_address): Delete.
14358 (v850_gdbarch_init): Update.
14359 * ns32k-tdep.c: Update copyright.
14360 (ns32k_extract_struct_value_address): Delete.
14361 (ns32k_gdbarch_init): Update.
14362 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14363 (hppa_gdbarch_init): Update.
14364 * vax-tdep.c: Update copyright.
14365 (vax_extract_struct_value_address): Delete.
14366 (vax_gdbarch_init): Update.
14368 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14369 * gdbarch.h, gdbarch.c: Re-generate.
14370 * procfs.c (procfs_fetch_registers): Delete reference to
14371 DEPRECATED_NPC_REGNUM.
14372 (procfs_store_registers): Ditto.
14373 * regcache.c (generic_target_write_pc): Simplify.
14374 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14376 * core-sol2.c (fetch_core_registers): Replace
14377 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14379 * hppa-tdep.c: Update copyright year.
14380 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14382 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14384 * mips-tdep.c (mips_write_pc): New function.
14385 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14386 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14387 (mips_find_saved_regs, mips_software_single_step: Ditto.
14388 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14389 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14391 2004-01-17 Andrew Cagney <cagney@redhat.com>
14393 * mips-tdep.c: Re-indent. Group functions by ABI.
14395 2004-01-17 Andrew Cagney <cagney@redhat.com>
14397 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14398 * gdbarch.c: Re-generate.
14399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14400 DECR_PC_AFTER_BREAK to zero.
14401 * vax-tdep.c (vax_gdbarch_init): Ditto.
14402 * v850-tdep.c (v850_gdbarch_init): Ditto.
14403 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14404 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14405 * sh-tdep.c (sh_gdbarch_init): Ditto.
14406 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14407 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14408 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14409 * mips-tdep.c (mips_gdbarch_init): Ditto.
14410 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14412 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14414 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14415 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14416 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14417 * frv-tdep.c (frv_gdbarch_init): Ditto.
14418 * cris-tdep.c (cris_gdbarch_init): Ditto.
14419 * avr-tdep.c (avr_gdbarch_init): Ditto.
14420 * arm-tdep.c (arm_gdbarch_init): Ditto.
14421 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14423 2004-01-17 J. Brobecker <brobecker@gnat.com>
14425 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14426 Delete, no longer used.
14427 (read_subrange_type): New function, mostly extracted from
14429 (read_array_type): Replace extracted code by call to
14430 read_subrange_type().
14431 (dwarf2_get_attr_constant_value): New function.
14432 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14433 (add_partial_symbol): Likewise.
14434 (process_die): Likewise.
14435 (new_symbol): Likewise.
14436 (read_type_die): Likewise.
14438 2004-01-16 Andrew Cagney <cagney@redhat.com>
14440 * symfile.c: Update copyright year.
14441 (compare_symbols): Delete unused function.
14442 * stabsread.c: Update copyright year.
14443 (lrs_general_complaint): Delete unused function.
14444 (ref_search_value): Ditto.
14445 (get_substring): Delete declaration.
14446 * sh64-tdep.c: Update copyright year.
14447 (sh64_get_gdb_regnum): Delete unused function.
14448 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14449 Delete unused function.
14451 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14453 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14454 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14456 2004-01-16 Andrew Cagney <cagney@redhat.com>
14458 Changes from Peter Schauer.
14459 * rs6000-tdep.c: Update copyright year.
14460 (rs6000_push_dummy_call): Update the stack pointer before
14461 accessing the corresponding stack region.
14462 * rs6000-nat.c: Update copyright year.
14463 (set_host_arch): Set "info.abfd" to "exec_bfd".
14465 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14467 * blockframe.c: Update copyright year.
14468 (inside_entry_func): Don't treat a zero PC specially.
14470 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14472 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14474 (gcore_create_callback): Ditto. Skip any memory segment that has
14475 no permissions set.
14477 2004-01-14 David Carlton <carlton@kealia.com>
14479 Change symbols for C++ nested types to contain the fully qualified
14480 name, if possible. (At least in the DWARF-2 case.) Partial fix
14481 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14483 * c-exp.y (qualified_type): Handle types nested within classes.
14484 * cp-namespace.c: Update comments.
14485 (cp_set_block_scope): Delete #if 0.
14486 (cp_lookup_nested_type): Handle types nested within classes.
14487 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14489 (add_partial_symbol): Add the name of the enclosing namespace to
14491 (pdi_needs_namespace): New.
14492 (add_partial_namespace): Tweak comment.
14493 (add_partial_structure): New.
14494 (psymtab_to_symtab_1): Initialize processing_current_prefix
14496 (process_die): instead of here.
14497 (read_structure_scope): Try to figure out the name of the class or
14498 namespace that the structure might be defined within.
14499 (read_enumeration): Generate fully-qualified names, if possible.
14500 (read_namespace): Don't set name to NULL.
14501 (die_specification): New.
14502 (new_symbol): Generate fully-qualified names for types.
14503 (read_type_die): Determine appropriate prefix.
14504 (determine_prefix): New.
14505 (typename_concat): New.
14507 * valops.c (value_aggregate_elt): Pass NOSIDE to
14508 value_struct_elt_for_reference.
14509 (value_struct_elt_for_reference): Make static, add NOSIDE
14510 parameter, call value_maybe_namespace_elt as a last resort.
14511 (value_namespace_elt): Break out code into
14512 value_maybe_namespace_elt.
14513 (value_maybe_namespace_elt): New.
14515 2004-01-12 Andrew Cagney <cagney@redhat.com>
14517 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14518 cooked floating-point registers.
14519 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14520 and value_to_register.
14522 2004-01-13 Andrew Cagney <cagney@redhat.com>
14524 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14525 * gdbarch.c: Re-generate.
14526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14527 FUNCTION_START_OFFSET.
14528 * v850-tdep.c (v850_gdbarch_init): Ditto.
14529 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14530 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14531 * sh-tdep.c (sh_gdbarch_init): Ditto.
14532 * s390-tdep.c (s390_gdbarch_init): Ditto.
14533 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14534 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14536 * mips-tdep.c (mips_gdbarch_init): Ditto.
14537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14538 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14540 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14542 * i386-tdep.c (i386_gdbarch_init): Ditto.
14543 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14544 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14545 * frv-tdep.c (frv_gdbarch_init): Ditto.
14546 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14547 * cris-tdep.c (cris_gdbarch_init): Ditto.
14548 * avr-tdep.c (avr_gdbarch_init): Ditto.
14549 * arm-tdep.c (arm_gdbarch_init): Ditto.
14550 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14552 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14554 * infrun.c (follow_fork_mode_ask): Remove.
14555 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14556 (follow_fork): Simplify and remove internal error for
14557 follow_fork_mode_ask.
14558 (_initialize_infrun): Update "set follow-fork-mode" help text.
14560 2004-01-13 Andrew Cagney <cagney@redhat.com>
14562 * configure.in: Update copyright year.
14563 (build_warnings): Add -Wunused-label.
14564 * configure: Re-generate.
14566 2004-01-12 Andrew Cagney <cagney@redhat.com>
14568 * exec.h (exec_ops): Make "extern".
14570 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14571 the function is void.
14572 (mips_pseudo_register_write): Ditto.
14574 2004-01-12 Andrew Cagney <cagney@redhat.com>
14576 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14577 call. Never defined.
14578 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14579 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14580 (struct sparc_gregset, struct regcache): Ditto.
14581 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14583 2004-01-12 Andrew Cagney <cagney@redhat.com>
14585 * mi/ChangeLog: Delete file. Renamed to ...
14586 * mi/ChangeLog-1999-2003: New file.
14587 * tui/ChangeLog: Delete file. Renamed to ...
14588 * tui/ChangeLog-1998-2003: New file.
14590 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14592 * sparc64nbsd-tdep.c: Include "regset.h".
14593 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14595 (fetch_core_registers): Remove function.
14596 (sparc64nbsd_core_fns): Remove variable.
14597 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14599 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14600 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14601 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14603 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14604 sparc_extract_struct_value_address.
14605 (sparc32_gdbarch_init): Set extract_struct_value_address.
14606 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14608 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14609 return_value_on_stack.
14611 * NEWS: Mention that %cs and %ss have been added to the AMD64
14614 * frame.c: Update copyright year.
14615 (get_prev_frame): Improve comment.
14617 * sparc64fbsd-tdep.c: Include "regset.h".
14618 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14620 (fetch_core_registers): Remove function.
14621 (sparc64fbsd_core_fns): Remove variable.
14622 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14624 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14625 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14626 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14628 * sparcnbsd-tdep.c: Include "regset.h".
14629 (fetch_core_registers): Remove function.
14630 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14631 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14633 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14635 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14637 * sparc-tdep.h (struct regset): Provide opaque declaration.
14638 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14639 fpregset and sizeof_fpregset members.
14640 * sparc-tdep.c (struct regset): Provide opaque declaration.
14641 (sparc_regset_from_core_section): New function.
14642 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14643 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14644 Set regset_from_core_section when appropriate.
14646 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14648 * x86-64-tdep.c (amd64_non_pod_p): New function.
14649 (amd64_classify_aggregate): Return class memory for non-POD
14650 C++ structure types.
14652 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14653 argument. Use it to reserve a register if necessary.
14654 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14655 amd64_push_arguments.
14657 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14659 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14660 register numbers in comments.
14661 * x86-64-tdep.h: Update copyright year.
14662 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14663 Adjust for addition of %cs and %ss.
14664 * amd64fbsd-nat.c: Update copyright year.
14665 (reg_offset): Add register offsets for %cs and %ss.
14666 * amd64fbsd-tdep.c: Update copyright year.
14667 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14668 (amd64fbsd_sc_reg_offset): Likewise.
14669 * x86-64-linux-nat.c: Update copyright year.
14670 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14672 * amd64nbsd-nat.c: Update copyright year.
14673 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14674 * amd64nbsd-tdep.c: Update copyright year.
14675 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14676 * x86-64-linux-tdep.c: Update copyright year.
14677 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14678 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14679 * regformats/reg-x86-64.dat: Add %cs and %ss.
14681 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14682 variables to prevent long lines. Update comments to reflect
14685 2004-01-09 David Carlton <carlton@kealia.com>
14687 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14688 * dwarf2read.c (read_namespace): Pull out name-generating code
14689 into namespace_name. Rename previous_namespace to previous_prefix
14690 and processing_current_namespace to processing_current_prefix..
14691 (namespace_name): New function.
14692 (add_partial_symbol): Substitute uses of pdi->name with
14694 * cp-support.h: Rename processing_current_namespace to
14695 processing_current_prefix.
14696 Update copyright year.
14697 * cp-namespace.c: Rename processing_current_namespace to
14698 processing_current_prefix.
14699 Update copyright year.
14701 2004-01-09 Andrew Cagney <cagney@redhat.com>
14703 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14705 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14707 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14709 (process_one_symbol): Deal with N_PATCH stabs.
14711 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14713 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14715 Update copyright year.
14717 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14719 * config/pa/tm-hppa.h: Update extern declarations for
14720 hppa32_hpux_frame_saved_pc_in_sigtramp,
14721 hppa32_hpux_frame_base_before_sigtramp, and
14722 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14724 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14726 * config/pa/tm-hppah.h: Update copyright years.
14728 2004-01-08 Andrew Cagney <cagney@redhat.com>
14730 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14731 (mips_o32_reg_struct_has_addr): Delete function.
14732 (mips_gdbarch_init): Update.
14733 (mips_extract_struct_value_address): Delete function.
14735 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14737 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14740 2004-01-07 Andrew Cagney <cagney@redhat.com>
14742 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14743 architecture's elf flags (when available).
14745 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14746 FPU to the start, check the MIPS FPU when looking for an old
14748 (set_mipsfpu_single_command): Update the architecture.
14749 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14751 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14752 (mips_mask_address_p): Add "tdep" parameter.
14753 (show_mask_address, mips_addr_bits_remove): Update.
14754 (mips_dump_tdep): Update.
14755 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14756 (MIPS_STACK_ARGSIZE): Delete macro.
14757 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14758 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14759 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14760 (mips_dump_tdep): Update.
14761 (MIPS_SAVED_REGSIZE): Delete macro.
14762 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14763 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14764 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14765 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14766 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14767 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14768 (mips_pop_frame, return_value_location): Update.
14769 (mips_n32n64_return_value, mips_dump_tdep): Update.
14771 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14774 * mips-tdep.c: Update copyright.
14775 (mips_gdbarch_init): Merge two code blocks handling the register
14776 name and number layout.
14778 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14780 * tracepoint.c (validate_actionline): Fix segv at EOF
14782 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14784 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14785 properly for static fields.
14787 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14788 Jason Molenda <jmolenda@apple.com>
14790 * disasm.c: Update copyright to include 2004.
14791 (do_mixed_source_and_assembly): For uiout asm list
14792 and tuple cleanups, initialize to null_cleanup instead of
14793 NULL and do so prior to loop. Only reset when we close off
14794 the tuple/list. Move check for whether to close off the
14795 asm tuple/list to after dump_insns call where it will be run
14796 on each loop iteration.
14798 2004-01-05 Andrew Cagney <cagney@redhat.com>
14800 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14801 should be a switch case and not a label.
14802 * mips-tdep.c (mips32_next_pc): Delete unused labels
14803 "greater_equal_branch" and "less_zero_branch".
14804 * jv-valprint.c (java_print_value_fields): Delete unused label
14807 * target.c (unpush_target): Only close a target that is in the
14810 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14812 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14813 address from [sp + 64] instead of %o2.
14815 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14816 fixes PR backtrace/1476.
14818 2004-01-05 Andrew Cagney <cagney@redhat.com>
14820 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14821 move to start of file.
14822 * i386-tdep.h (struct regcache): Add opaque declaration.
14823 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14825 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14826 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14827 * win32-nat.c (fake_create_process): Use ISO C style definition.
14828 * stabsread.c (define_symbol): Delete #ifndef
14829 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14830 stabs_argument_has_addr call, macro never defined.
14832 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14834 * op50-rom.c: Delete.
14835 * w89k-rom.c: Delete.
14836 * Makefile.in: Remove references.
14838 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14840 * x86-64-tdep.c: Update copyright year.
14841 (struct amd64_register_info): Rename from x86_64_register_info.
14842 (amd64_register_info): Rename from x86_64_register_info.
14843 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14844 (amd64_register_name): Rename from x86_64_register_name.
14845 (amd64_register_type): Rename from x86_64_register_type.
14846 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14847 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14848 (amd64_dwarf_reg_to_regnum): Rename from
14849 x86_64_dwarf_reg_to_regnum.
14850 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14851 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14852 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14853 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14854 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14855 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14856 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14857 (amd64_frame_cache): Rename from x86_64_frame_cache.
14858 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14859 (amd64_frame_prev_register): Rename from
14860 x86_64_frame_prev_register.
14861 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14862 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14863 (amd64_sigtramp_frame_cache): Rename from
14864 x86_64_sigtramp_frame_cache.
14865 (amd64_sigtramp_frame_prev_register): Rename from
14866 x86_64_sigtramp_frame_prev_register.
14867 (amd64_sigtramp_frame_unwind): Rename from
14868 x86_64_sigtramp_frame_unwind.
14869 (amd64_sigtramp_frame_sniffer): Rename from
14870 x86_64_sigtramp_frame_sniffer.
14871 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14872 (amd64_frame_base): Rename from x86_64_frame_base.
14873 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14874 (amd64_frame_align): Rename from x86_64_frame_align.
14875 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14876 (amd64_regset_from_core_section): Rename from
14877 x86_64_regset_from_core_section.
14878 (x86_64_init_abi): Update comments.
14880 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14882 * MAINTAINERS (write after approval): Add myself.
14884 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14886 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14889 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14891 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14892 such that it mentions a specific version of GCC that exhibits this
14895 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14897 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14898 structure that has a single `float' member, store it in %f1 in
14901 * sparc-sol2-nat.c: Add missing '\'.
14903 * sparc-tdep.c (sparc32_return_value): New function.
14904 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14906 (sparc32_gdbarch_init): Set return_value, don't set
14907 extract_return_value, store_return_value, use_struct_convention
14908 and return_value_on_stack.
14910 * sparc-sol2-nat.c: Add missing ')'.
14912 2004-01-03 J. Brobecker <brobecker@gnat.com>
14914 * infrun.c (handle_step_into_function): New function.
14915 (handle_inferior_event): Extract out some code into the new
14918 2004-01-03 J. Brobecker <brobecker@gnat.com>
14920 * infrun.c (handle_inferior_event): Move the declaration of
14921 real_stop_pc inside the if blocks where it is used.
14923 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14925 * sparc64-tdep.c (sparc64_16_byte_align_p)
14926 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14927 Use check_typedef to get subtypes of structures and unions.
14928 (sparc64_store_return_value): Fix calculation of the appropriate
14929 offset into VALBUF when storing a structure or union.
14930 (sparc64_return_value): New function.
14931 (sparc64_use_struct_convention): Remove function.
14932 (sparc64_init_abi): Set return_value, don't set
14933 extract_return_value, store_return_value and
14934 use_struct_convention.
14936 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14938 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14939 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14940 gdb/config/alpha/xm-alphaosf.h,
14941 gdb/config/powerpc/tm-ppcle-eabi.h,
14942 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14943 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14944 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14945 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14946 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14947 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14948 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14949 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14950 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14951 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14952 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14953 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14954 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14955 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14956 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14957 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14958 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14959 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14960 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14961 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14962 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14963 Remove lines for .cvsignore files.
14965 2004-01-03 J. Brobecker <brobecker@gnat.com>
14967 * infrun.c: Back out the previous change.
14969 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14971 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14972 sparc-*-sunos4* to the list of REMOVED configurations.
14974 * configure.tgt: Add back sparc-*-vxworks*.
14975 * remote-vxsparc.c: Remove all includes except for "defs.h",
14976 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14977 Include "sparc-tdep.h".
14978 (SPARC_R_G1): New define.
14979 (vxsparc_gregset): New variable.
14980 (ext_format_sparc): Remove extern declaration.
14981 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14982 sparc32_supply_fpregset.
14983 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14984 sparc_collect_rwindow and sparc32_collect_fpregset.
14985 * config/sparc/tm-vxworks.h: New file, based on recently removed
14987 * config/sparc/vxworks.mt: New file, based on recently removed
14990 2004-01-03 J. Brobecker <brobecker@gnat.com>
14992 * infrun.c (handle_step_into_function): New function.
14993 (handle_inferior_event): Extract out some code into the new
14996 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14998 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14999 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
15000 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
15001 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
15002 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
15003 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
15004 (sparc_nat_h): New variable.
15005 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
15006 (tm-sun4os4.h): Remove dependency.
15007 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
15008 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
15009 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
15010 sparc-tdep.o): Update dependencies.
15011 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
15012 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
15013 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
15015 * configure.host: Remove existing sparc-*-lynxos*,
15016 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
15017 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
15018 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
15019 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
15021 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
15022 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
15023 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
15024 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
15025 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
15026 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
15027 sparc64-*-solaris2* and sparc64-*-* triplets.
15028 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
15029 "symtab.h" and "objfiles.h".
15030 (BIAS): Remove define.
15031 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
15032 (X_DISP19): Remove macros.
15033 (sparc_fetch_instruction): Remove function.
15034 (struct gdbarch_tdep): Remove definition.
15035 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
15036 (sparc_breakpoint_from_pc): Remove function.
15037 (struct sparc64_frame_cache): Remove definition.
15038 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
15039 sparc64_unwind_pc): Remove functions.
15040 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
15041 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
15042 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
15043 (sparc64_frame_cache): Change return type to `struct
15044 sparc_frame_cache *'. Simply call sparc_frame_cache.
15045 (sparc64_frame_this_id, sparc64_frame_prev_register,
15046 sparc64_frame_base_address): Use `struct sparc_frame_cache'
15047 instead of `struct sparc64_frame_cache.
15048 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
15049 sparc_analyze_control_transfer, sparc_software_single_step,
15050 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
15051 _initialize_sparc64_tdep): Remove functions.
15052 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
15053 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
15055 (sparc64_supply_gregset, sparc64_collect_gregset,
15056 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
15057 (sparc64_init_abi): New function.
15058 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
15059 inclusion guard. Include "sparc-tdep.h".
15061 (r_tstate_offset, r_fprs_offset): New defines.
15062 (enum sparc_regnum): Remove defenition.
15063 (enum sparc64_regnum): Reformat.
15064 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
15065 (sparc64_init_abi, sparc64_supply_gregset,
15066 sparc64_collect_gregset, sparc64_supply_fpregset,
15067 sparc64_collect_fpregset): New prototypes.
15068 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
15069 Add extern declarations.
15070 (sparc64_sol2_init_abi): New prototype.
15071 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15072 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15074 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
15076 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
15078 (_initialize_sparc64fbsd_nat): Remove initialization of
15079 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
15080 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
15081 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
15082 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
15083 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
15084 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
15085 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
15086 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
15087 (sparc64fbsd_r_y_offset): Remove variables.
15088 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
15089 Make static and const.
15090 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15091 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15093 (sparc64fbsd_gregset): New variable.
15094 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
15095 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
15096 and sparc64_supply_fpregset.
15097 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
15098 (sparc64fbsd_sigtramp_frame_this_id)
15099 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
15100 (sparc64fbsd_sigtramp_frame_unwind): New variable.
15101 (sparc64fbsd_sigtramp_frame_sniffer): New function.
15102 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
15103 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
15104 * sparcnbsd-tdep.c: Update copyright year. Include
15105 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
15106 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
15107 "value.h" and "sparcnbsd-tdep.h".
15108 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
15109 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
15110 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15111 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15113 (sparcnbsd_gregset): New variable.
15114 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15115 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15116 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15117 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15118 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15120 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15121 (sparc32nbsd_sigcontext_frame_this_id)
15122 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15123 (sparc32nbsd_sigcontext_frame_unwind): New variable.
15124 (sparc32nbsd_sigtramp_frame_sniffer): New function.
15125 (sparcnbsd_get_longjmp_target_32,
15126 sparcnbsd_get_longjmp_target_64): Remove functions.
15127 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15128 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15129 sparcnbsd_init_elf): Remove.
15130 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15131 (sparcnbsd_elf_init_abi): New functions.
15132 (_initialize_sparcnbsd_tdep): New prototype.
15133 (_initialize_sparnbsd_tdep): Update.
15134 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15135 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15136 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15137 * config/sparc/linux.mh: Update comment.
15138 (XM_FILE, HOST_IPC): Remove variables.
15139 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15141 * config/sparc/linux.mt: Update comment.
15142 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15143 * config/sparc/nbsd.mt: Reformat.
15144 * config/sparc/nbsd64.mh: Update comment.
15145 (NATDEPFILES): Add sparc-nat.o.
15146 * config/sparc/nbsd64.mt: Update comment.
15147 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15148 (TM_FILE): Set to tm-nbsd.h.
15149 * config/sparc/nbsdelf.mh: Update comment.
15150 (NATDEPFILES): Add sparc-nat.o.
15152 * config/sparc/nbsdaout.mh: Update comment.
15153 (NATDEPFILES): Add sparc-nat.o
15155 * config/sparc/nm-linux.h: Update copyright year. Don't include
15156 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15158 (KERNEL_U_SIZE): Remove define.
15159 (kernel_u_size): Remove prototype.
15160 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15161 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15163 (CHILD_PREPARE_TO_STORE): Remove define.
15164 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15165 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15166 sparcnbsd-nat.c: Rewrite files.
15167 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15168 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15169 sparcnbsd-tdep.h: Remove files.
15170 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15171 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15172 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15173 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15174 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15175 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15176 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15177 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15178 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15179 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15180 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15181 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15182 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15183 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15184 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15185 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15186 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15187 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15188 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15190 2004-01-02 Andrew Cagney <cagney@redhat.com>
15192 From 2003-12-18 Kazuhiro Inaoka:
15193 * configure.host: Add m32r-linux target.
15195 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15197 * top.c (print_gdb_version): Update year to 2004.
15199 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15201 * MAINTAINERS: Add myself to the write-after-approval category.
15203 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15205 From Bernardo Innocenti <bernie@develer.com>:
15206 * configure.tgt: Add uClinux target.
15208 2004-01-02 Andrew Cagney <cagney@redhat.com>
15210 * utils.c (do_my_cleanups): Make static, add forward declaration.
15211 * defs.h (do_my_cleanups): Delete declaration.
15213 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15215 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15216 bfd/ChangeLog-0203.
15218 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15220 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15221 in <machine/reg.h>.
15222 * configure, config.in: Regenerate.
15224 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15225 tui/ChangeLog-1998-2003.
15231 version-control: never