1 2004-12-23 Mark Kettenis <kettenis@gnu.org>
3 * i386-nto-tdep.c: Reorder include files.
4 (i386nto_svr4_fetch_link_map_offsets): Remove function.
5 (init_i386nto_ops, i386nto_init_abi): Use
6 svr4_ilp32_fetch_link_map_offsets instead of
7 i386nto_svr4_fetch_link_map_offsets.
9 2004-12-21 Mark Kettenis <kettenis@gnu.org>
11 * hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe.
13 2004-12-21 Mark Kettenis <kettenis@gnu.org>
15 * hppa-tdep.c (hppa64_return_value): Fix previous commit.
17 2004-12-21 Mark Kettenis <kettenis@gnu.org>
19 * hppa-tdep.c (hppa32_return_value): Move further down.
20 (hppa64_return_value): Re-implement.
22 2004-12-21 Jim Blandy <jimb@redhat.com>
24 * remote.c (fetch_register_using_p): Fix formatting.
26 2004-12-21 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
28 * ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
30 * ada-typeprint.c (ada_typedef_print): Ditto.
31 (print_unchecked_union_type): Ditto.
32 (print_record_type): Ditto, and correct output for non-derived
33 types that was inadvertently left off during the markup.
35 2004-12-19 Mark Kettenis <kettenis@gnu.org>
37 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
38 whether the name returned by find_pc_partial_function is a null
39 pointer, not whether it is an empty string.
41 * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
42 HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
43 * hppa-tdep.c (hppa64_integral_or_pointer_p)
44 (hppa64_floating_p) New functions.
45 (hppa64_push_dummy_call): Re-implement.
46 (hppa32_register_type): Rename argument reg_nr to regnum.
47 (hppa64_register_type): Likewise. Use HPPA64_FP4_REGNUM instead
49 (hppa32_cannot_store_register): Renamed from
50 hppa_cannot_store_register.
51 (hppa64_cannot_store_register): New function.
52 (hppa_gdbarch_init): Set cannot_store_register and
53 cannot_fetch_register to hppa32_cannot_store_register or
54 hppa64_cannot_store_register when appropriate.
56 2004-12-18 Mark Kettenis <kettenis@gnu.org>
58 * hppah-nat.c: Remove file.
59 * infttrace.h: Remove file.
60 * infttrace.c: Remove file.
61 * Makefile.in (ALLDEPFILES): Remove hppah-nat.c
62 (infttrace_h): Remove variable.
63 (hppah-nat.o, infttrace.o): Remove dependencies.
64 * configure.host (hppa*64*-*-hpux11*): Remove.
65 * config/pa/hpux11w.mh: Remove file.
66 * config/pa/nm-hppah.h: Remove file.
67 * config/pa/nm-hppah11.h: Remove file.
69 * config/djgpp/fnchange.lst: Resolve name clash between
70 ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
71 i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
72 testsuite/gdb.base/bitfields.c and
73 testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
74 and testsuite/gdb.base/bitfields2.exp. Remove entry for
75 config/m88k/xm-delta88v4.h.
77 * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
78 PA_SOM_ONLY isn't defined.
80 * somread.c: Include "solib-som.h".
81 (som_symfile_init, som_new_init, som_symfile_read,
82 som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
84 * Makefile.in (somread.o): Update dependencies.
86 2004-12-17 Jim Blandy <jimb@redhat.com>
88 * remote.c (fetch_register_using_p): Indentation cleanup.
90 2004-12-17 Randolph Chung <tausq@debian.org>
92 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
93 (find_stub_with_shl_get): Make static.
95 2004-12-17 Randolph Chung <tausq@debian.org>
97 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
98 (in_opd_section): New.
99 (hppa32_hpux_find_global_pointer): Rename from
100 hppa_hpux_som_find_global_pointer.
101 (hppa64_hpux_find_global_pointer): New.
102 (ldsid_pattern): New.
103 (hppa_hpux_search_pattern): New.
104 (hppa32_hpux_search_dummy_call_sequence): New.
105 (hppa64_hpux_search_dummy_call_sequence): New.
106 (hppa_hpux_find_import_stub_for_addr): New.
107 (hppa_hpux_sr_for_addr): New.
108 (hppa_hpux_find_dummy_bpaddr): New.
109 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
110 (hppa_hpux_som_init_abi): Set find_global_pointer method to
111 hppa32_hpux_find_global_pointer instead of
112 hppa_hpux_som_find_global_pointer.
113 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
114 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
115 (read_unwind_info): Use function to initialize objfile-private data.
116 (hppa32_push_dummy_call): Don't automatically set the RP if there is
117 a push_dummy_code method.
118 (hppa64_push_dummy_call): Retrieve and set the global pointer.
119 Don't automatically set the RP if there is a push_dummy_code method.
120 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
121 dummy_call_sequence_addr members.
122 (hppa_init_objfile_priv_data): New prototype.
124 2004-12-17 Joel Brobecker <brobecker@gnat.com>
126 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
127 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
128 * solib-som.c (som_solib_create_inferior_hook): Replace stub
129 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
130 extends the search to all objfiles, not just shared libraries.
131 Remove unused variable.
133 2004-12-16 Michael Snyder <msnyder@redhat.com>
135 * MAINTAINERS: Add myself as maintainer for mn10300.
136 * NEWS: Mention mn10300.
138 2004-12-15 Kevin Buettner <kevinb@redhat.com>
140 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
143 2004-12-14 Randolph Chung <tausq@debian.org>
145 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
146 (hppa_gdbarch_init): Set in_epilogue_p method.
148 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
150 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
151 sh_default_extract_return_value.
152 (sh_extract_return_value_fpu): Rename from
153 sh3e_sh4_extract_return_value.
154 (sh_store_return_value_nofpu): Rename from
155 sh_default_store_return_value.
156 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
157 (sh_return_value_nofpu): Accomodate above changes.
158 (sh_return_value_fpu): Ditto.
160 2004-12-13 Jerome Guitton <guitton@gnat.com>
162 * stabsread.c (read_huge_number): Add support for reading octal
163 signed number in twos complement, based on the size of this
165 (read_range_type): Add support for reading octal signed bounds
166 in twos complements, based on the size of the type.
167 (read_type_number, read_cpp_abbrev, read_member_functions,
168 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
169 read_struct_type, read_array_type, read_enum_type,
170 read_sun_builtin_type, read_sun_floating_type): Update calls to
172 (read_type): Update call to read_range_type.
174 2004-12-13 Randolph Chung <tausq@debian.org>
176 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
177 solib_get_solib_by_pc method through target vector.
178 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
179 method through target vector.
181 2004-12-13 Joel Brobecker <brobecker@gnat.com>
183 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
184 parameter name to make it clear that we already have a next
185 frame. Return the sigcontext from that next frame instead
186 of the frame following it.
188 2004-12-13 Randolph Chung <tausq@debian.org>
190 * Makefile.in (pa64solib_h, somsolib_h): Delete.
191 (solib_pa64_h, solib_som_h): New.
192 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
193 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
194 (pa64solib.o, somsolib.o): Delete.
195 (solib-pa64.o, solib-som.o): New.
196 * hppa-hpux-tdep.c: Include new solib interfaces.
197 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
198 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
199 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
200 is available, use it to determine the base of unwind records.
201 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
202 * hpread.c: Replace somsolib.h with solib-som.h.
203 (hpread_process_one_debug_symbol): Use target vector to get thread
205 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
206 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
207 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
208 * config/pa/tm-hppah.h: Use new solib interface.
210 2004-12-13 Randolph Chung <tausq@debian.org>
212 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
213 sections to be trampolines too.
215 2004-12-13 Ben Elliston <bje@au.ibm.com>
217 * f-exp.y (typename): Remove unused nonterminal.
220 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
222 Committed by Andrew Cagney.
223 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
226 2004-12-12 Andrew Cagney <cagney@gnu.org>
228 * frame.c (get_prev_frame): When unwinding normal frames, check
229 that the PC isn't zero.
230 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
233 * MAINTAINERS: Reword description of what "Target Instruction Set
234 Architectures" covers.
236 2004-12-12 Mark Kettenis <kettenis@gnu.org>
238 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
240 2004-12-11 Mark Kettenis <kettenis@gnu.org>
242 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
243 (hppa_hpux_save_state_offset): New function, replacing variable
245 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
247 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
248 Use new hppa_hpux_save_state_offset function. Add special
249 handling for handling 64-bit "flags" register.
250 (hppa_hpux_store_register): Likewise.
251 (hppa_hpux_child_can_run): Tweak comment.
253 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
254 (inf_ttrace_attach): Likewise.
255 (inf_ttrace_resume_callback): New function.
256 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
257 lwps and call inf_ttrace_resume_callback instead.
258 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
260 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
262 2004-12-10 Michael Snyder <msnyder@redhat.com>
264 * mn10300-tdep.c: New file. This is a re-implementation of
265 the mn10300 target back-end using the new frame api etc.
266 * mn10300-tdep.h: New file.
267 * config/mn10300/mn10300.mt: New file (or replace old file).
268 * configure.tgt: Add mn10300 target.
270 2004-12-10 Mark Kettenis <kettenis@gnu.org>
272 * configure.host (hppa*-*-hpux11*): Remove.
273 * config/pa/hpux11.mh: Remove file.
275 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
278 2004-12-10 Kris Warkentin <kewarken@qnx.com>
280 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
281 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
282 function and nto_set_target function.
283 (struct nto_target_ops): Put comments inline with struct. Add osabi
284 sniffer hook. Redefine macros to permit testing/assignment. Remove
285 nto_ prefix from members.
286 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
287 dynamically to support arbitrary root paths. Check for basename of
288 lib in search path and then check for absolute.
289 (nto_in_dynsym_resolve_code): New function.
290 (nto_core_sniffer): New function.
291 (regset_core_fns): Register core sniffer.
292 (nto_initialize_signals): New function.
293 (_initialize_nto_tdep): Move signal initialization code to above to
294 avoid initialization race conditions.
295 (nto_set_target): New function.
296 * nto-procfs.c: Minor formatting/indenting changes.
297 (procfs_is_nto_target): New function.
298 (procfs_open): Set nto_is_nto_target.
299 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
300 initialization race conditions.
301 (procfs_create_inferior): Resume inferior after creation.
302 * i386-nto-tdep.c: Declare i386_nto_target.
303 (init_i386nto_ops): Initialize i386_nto_target instead of
305 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
306 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
307 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
310 2004-12-10 Mark Kettenis <kettenis@gnu.org>
312 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
313 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
314 (hppa_hpux_init_abi): Reformat long line.
316 2004-12-09 Mark Kettenis <kettenis@gnu.org>
318 * hppa-hpux-tdep.c: Include "regset.h".
319 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
320 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
321 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
322 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
323 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
324 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
326 (hppa_hpux_regset): New variable.
327 (hppa_hpux_regset_from_core_section): New function.
328 (hppa_hpux_init_abi): Set regset_from_core_section.
329 (hppa_hpux_core_osabi_sniffer): New function.
330 (_initialize_hppa_hpux_tdep): Register
331 hppa_hpux_core_osabi_sniffer.
332 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
333 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
335 2004-12-09 Randolph Chung <tausq@debian.org>
337 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
338 text and data sections.
339 (pa64_current_sos): Also include the dld in the list of current shared
341 (pa64_solib_get_solib_by_pc): Update comments.
342 (pa64_solib_get_text_base): New function.
343 (pa64_solib_select): Set solib_get_text_base method.
345 2004-12-08 Daniel Jacobowitz <dan@debian.org>
347 * linux-thread-db.c (BUILD_THREAD): Delete.
348 (thread_get_info_callback): Include LWP ID in thread ID.
349 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
350 (lwp_from_thread): Use the LWP ID from the thread ID.
352 2004-12-07 Randolph Chung <tausq@debian.org>
354 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
355 register for both 32- and 64-bit targets.
357 2004-12-07 Randolph Chung <tausq@debian.org>
359 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
360 are unwinding through a dummy frame.
362 2004-12-07 Randolph Chung <tausq@debian.org>
364 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
365 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
366 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
367 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
370 2004-12-07 Randolph Chung <tausq@debian.org>
372 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
373 unwinding from a frame with pc == 0.
374 (hppa_stub_frame_this_id): Likewise.
375 (hppa_stub_frame_prev_register): Only provide real values if the frame
378 2004-12-07 Randolph Chung <tausq@debian.org>
380 * solib-som.c: New file.
381 * solib-som.h: New file.
382 * solib-pa64.c: New file.
383 * solib-pa64.h: New file.
385 2004-12-07 Mark Kettenis <kettenis@gnu.org>
387 * Makefile.in (inf-ttrace.o): Fix typo.
389 2004-12-07 Jim Blandy <jimb@redhat.com>
391 * remote.c (remote_threads_info, remote_current_thread): Use
392 strtoul to parse thread ID numbers.
394 2004-12-07 Mark Kettenis <kettenis@gnu.org>
396 * inf-ttrace.c: Include "gdbthread.h".
397 (inf_ttrace_num_lwps): New variable.
398 (inf_ttrace_num_lwps_in_syscall): Renamed from
399 inf_ttrace_num_threads_in_syscall.
400 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
401 TTEVT_LWP_TERMINATE events.
402 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
404 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
405 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
406 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
408 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
409 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
410 TTEVT_LWP_TERMINATE events.
411 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
412 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
413 * Makefile.in (inf-ttrace.o): Update dependencies.
415 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
417 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
418 Make global. Remove HP-UX specific code. Use
419 frame_unwind_register_unsigned instead of
420 frame_unwind_register_signed.
421 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
422 Remove HP-UX specific code.
423 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
424 (hppa_frame_prev_register_helper): Set "flags" register to zero
425 for all unwound frames.
426 (hppa_gdbarch_init): Adjust.
427 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
428 (hppa_hpux_read_pc, hppa_hpux_write_pc)
429 (hppa_hpux_unwind_pc): New functions.
430 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
432 2004-12-07 Andreas Schwab <schwab@suse.de>
434 * main.c (long_options): Add entry for "-l".
435 (print_gdb_help): Add line for -l option.
438 2004-12-05 Randolph Chung <tausq@debian.org>
440 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
441 DEPRECATED_REGISTER_BYTE.
443 2004-12-05 Randolph Chung <tausq@debian.org>
445 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
448 2004-12-05 Mark Kettenis <kettenis@gnu.org>
450 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
451 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
453 * hppa-hpux-tdep.c: Update copyright notice and year.
455 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
457 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
458 (get_field, put_field): Assert that the format is one we can handle.
459 Simplify logic accordingly.
460 (floatformat_normalize_byteorder): New function.
461 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
462 to normalize and select modified byte order. Pass modified byte order
464 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
466 (convert_doublest_to_floatformat): Select an appropriate intermediate
467 byte order if necessary. Always convert to the final format before
470 2004-12-04 Daniel Jacobowitz <dan@debian.org>
473 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
474 Suggested by Joshua Neuheisel.
476 2004-12-03 Randolph Chung <tausq@debian.org>
478 * gdbarch.sh (instruction_nullified): Delete.
479 * gdbarch.c: Regenerate.
480 * gdbarch.h: Regenerate.
481 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
483 (hppa_unwind_pc): Likewise.
484 (hppa_instruction_nullified): Delete.
485 (hppa_gdbarch_init): Don't set instruction_nullified method.
486 * infrun.c (infwait_states): Remove infwait_nullified_state.
487 (handle_inferior_event): Remove handling of infwait_nullified_state.
488 Remove handling of nullified instructions.
490 2004-12-03 Mark Kettenis <kettenis@gnu.org>
492 * inf-ttrace.c: Include <sys/mman.h>.
493 (struct inf_ttrace_page): New.
494 (struct inf_ttrace_page_dict): New.
495 (inf_ttrace_num_threads_in_syscall)
496 (inf_ttrace_reenable_page_protections): New variables.
497 (inf_ttrace_enable_syscall_events)
498 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
499 (inf_ttrace_add_page, inf_ttrace_insert_page)
500 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
501 (inf_ttrace_enable_page_protections)
502 (inf_ttrace_disable_page_protections)
503 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
504 (inf_ttrace_can_use_hw_breakpoint)
505 (inf_ttrace_region_size_ok_for_hw_watchpoint)
506 (inf_ttrace_stopped_by_watchpoint): New functions.
507 (inf_ttrace_him): Remove unsused varaible `tts'.
508 (inf_ttrace_create_inferior): Add assertionts.
509 (inf_ttrace_mourn_inferior): Clear page dictionary.
510 (inf_ttrace_attach): Set initial event mask.
511 (inf_ttrace_detach): Reset number of threads in system call.
512 (inf_ttrace_wait): Deal with system call events.
513 (inf_ttrace_target): Initialize "hardware" watchpoint-related
514 parts of the target vector.
515 (_initialize_inf_ttrace): New prototype and function.
517 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
518 type of `gp' variable.
520 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
522 * README: Remove config.if from directory listing.
524 2004-12-01 Joel Brobecker <brobecker@gnat.com>
526 * alpha-tdep.c (alpha_register_name): Add comment.
527 (alpha_cannot_fetch_register): Exclude registers numbers which
528 are no longer used from the list of registers that can be fetched.
529 (alpha_cannot_store_register): Exclude registers numbers which
530 are no longer used from the list of registers that can be stored.
531 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
532 core_reg_mapping array.
534 2004-12-01 Joel Brobecker <brobecker@gnat.com>
536 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
537 the register value from the correct frame.
539 2004-11-30 Randolph Chung <tausq@debian.org>
541 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
542 (hppa_linux_in_dyncall): Check that we are inside the range of
543 $$dyncall, not necessarily at the first insn.
544 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
545 even if the pc does not point to the first insn of the trampoline.
547 2004-11-30 Randolph Chung <tausq@debian.org>
549 * breakpoint.c (break_at_finish_command): Delete.
550 (break_at_finish_command_1): Delete.
551 (break_at_finish_at_depth_command): Delete.
552 (break_at_finish_at_depth_command_1): Delete.
553 (tbreak_at_finish_command): Delete.
554 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
557 2004-11-30 Andrew Cagney <cagney@gnu.org>
559 * config/nm-gnu.h: Delete file.
560 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
562 * config/nm-sysv4.h: Delete file.
563 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
564 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
565 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
566 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
567 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
569 2004-11-29 Andrew Cagney <cagney@gnu.org>
571 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
572 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
573 as can-commit architecture developers.
575 2004-11-29 Mark Kettenis <kettenis@gnu.org>
577 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
578 (sparc32_skip_prologue): Skip instructions that store arguments in
579 registers into their corresponding stack slots.
581 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
583 * config/m68k/obsd.mh (NAT_FILE): Likewise.
585 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
586 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
587 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
588 sparc32nbsd_elf_init_abi. Remove duplicate code.
590 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
591 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
592 * config/sparc/nm-nbsd.h: Remove file.
593 * config/sparc/nm-nbsdaout.h: Remove file.
595 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
596 (sparc_xfer_partial): New function.
597 (sparc_target): Save value of to_xfer_partial from ptrace vector.
600 * fork-child.c (fork_inferior): Fork instead of vfork if
601 PRE_TRACE_FUN is non-null.
603 2004-11-24 Fred Fish <fnf@specifixinc.com>
605 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
606 compiler generated function calls made as part of a prologue.
608 2004-11-23 Mark Kettenis <kettenis@gnu.org>
610 * inf-ttrace.c: New file.
611 * inf-ttrace.h: New file.
612 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
613 Include "inf-ttrace.h".
614 (ss_mpsfu_high): Define to ss_tlsp if necessary.
615 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
616 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
618 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
619 instead of inf_ptrace_target.
620 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
621 * Makefile.in (inf_ttrace_h): New variable.
622 (hppa-hpux-nat.o): Update dependency.
623 (inf-ttrace.o): New dependency.
624 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
626 2004-11-23 Randolph Chung <tausq@debian.org>
628 * arch-utils.c (generic_instruction_nullified): New.
629 * arch-utils.h (generic_instruction_nullified): New.
630 * gdbarch.sh (instruction_nullified): New method.
631 * gdbarch.c: Regenerate.
632 * gdbarch.h: Regenerate.
633 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
634 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
636 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
637 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
638 static. Rewrite to work directly off the passed regcache.
639 (hppa_gdbarch_init): Set instruction_nullified method.
641 2004-11-23 Joel Brobecker <brobecker@gnat.com>
643 * sparc-tdep.c (sparc_is_unimp_insn): New function.
644 (sparc32_frame_cache): For functions where there is no debugging
645 information to help us determine whether it's a struct-return
646 function or not, fallback on checking whether the instruction
647 at the return address is an "unimp" instruction or not.
649 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
651 * MAINTAINERS: Add myself to write after approval section.
653 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
654 hpux-thread.c to suppress children from running.
655 (hppa_hpux_child_can_run): New function.
656 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
657 * hpux-thread.c: Include string.h and hppa-tdep.h.
658 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
659 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
660 (hpux_thread_store_registers): Replace deprecated_registers with
661 calls to regcache_raw_read.
662 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
664 2004-11-21 Mark Kettenis <kettenis@gnu.org>
666 * sparc64fbsd-nat.c: Update copyright year.
667 (_initialize_sparc64fbsd_nat): Construct and add target vector.
668 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
671 2004-11-21 Daniel Jacobowitz <dan@debian.org>
673 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
675 2004-11-21 Daniel Jacobowitz <dan@debian.org>
677 * linux-nat.c (my_waitpid): New function.
678 (linux_test_for_tracefork): Make more robust and verbose. Take
679 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
680 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
681 argument. Update calls to linux_test_for_tracefork.
682 (linux_enable_event_reporting, child_follow_fork)
683 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
684 (child_insert_exec_catchpoint): Update calls to
685 linux_supports_tracefork and linux_supports_tracevforkdone.
687 2004-11-21 Daniel Jacobowitz <dan@debian.org>
689 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
690 (value_subscripted_rvalue): Likewise.
691 * valops.c (search_struct_field, value_slice): Likewise.
693 2004-11-21 Mark Kettenis <kettenis@gnu.org>
695 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
696 Reorder includes a bit. Fix comment.
697 * Makefile.in (inf-ptrace.o): Update dependencies.
699 2004-11-21 Andreas Schwab <schwab@suse.de>
701 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
702 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
703 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
704 to glibc_skip_solib_resolver.
705 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
707 * Makefile.in (m68klinux-tdep.o): Update dependencies.
709 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
711 * infttrace.h (ttrace_write_reg_64): Add prototype.
712 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
714 (store_inferior_registers): Correct formatting. Replace uses of
715 deprecated_registers with calls to regcache_raw_read,
716 regcache_raw_write_part and regcache_raw_read_part.
718 2004-11-21 Mark Kettenis <kettenis@gnu.org>
720 * config/pa/hppahpux.mh: Remove file.
721 * config/pa/hpux1020.mh: Remove file.
723 2004-11-20 Andreas Schwab <schwab@suse.de>
725 * configure.host: Set host floatformat for m68k.
727 2004-11-20 Eli Zaretskii <eliz@gnu.org>
729 * config/djgpp/fnchange.lst: Resolve file-name clash between
730 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
732 2004-11-20 Mark Kettenis <kettenis@gnu.org>
734 * hppa-hpux-nat.c: New file.
735 * config/pa/hpux.mh (NATDEPFILES): New file.
736 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
737 (hppa-hpux-nat.o): New dependency.
738 * configure.host: Remove hppa*-*-hpux10.20.
739 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
741 * inf-ptrace.c: Fix coding style.
743 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
744 * infptrace.c (call_ptrace): Simply call ptrace with four
747 * dbxread.c (process_one_symbol): Fix a few coding standard
748 issues. Improve code formatting.
750 * dbxread.c: Include "gdb_string.h".
751 (record_minimal_symbol, read_ofile_symtab): Replace
752 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
753 * Makefile.in (dbxread.o): Update dependencies.
755 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
756 of bytes read for aligned LEB128 encodings.
758 2004-11-19 Mark Kettenis <kettenis@gnu.org>
760 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
761 parse_and_eval_address to u_long before converting it to a pointer
763 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
764 ps_strings from int to u_long.
765 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
766 u_long instead of CORE_ADDR.
768 2004-11-18 Mark Kettenis <kettenis@gnu.org>
770 * dbxread.c (process_one_symbol): Do not adjust address of first
771 N_SLINE stab for a function for code generated by non-GCC
774 2004-11-18 Kevin Buettner <kevinb@redhat.com>
776 * solib-null.c: New file.
778 2004-11-17 Andrew Cagney <cagney@gnu.org>
780 * MAINTAINERS: Drop MIPS and remote.
782 2004-11-15 Andrew Cagney <cagney@gnu.org>
784 * findvar.c (value_of_register): Set the frame ID.
785 * value.c (value_primitive_field): Copy the frame ID.
786 * valops.c (value_assign): Simplify lval_register case, there's
789 2004-11-14 Daniel Jacobowitz <dan@debian.org>
791 * Makefile.in (mips-linux-tdep.o): Update dependencies.
792 * mips-linux-tdep.c: Include "regcache.h".
793 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
795 2004-11-14 Daniel Jacobowitz <dan@debian.org>
797 * Makefile.in (linux-thread-db.o): Fix typo in last change.
799 2004-11-14 Daniel Jacobowitz <dan@debian.org>
801 * linux-thread-db.c: New file, renamed from thread-db.c.
802 * thread-db.c: Remove.
803 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
804 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
805 to linux-thread-db.o.
806 * config/arm/linux.mh (NATDEPFILES): Likewise.
807 * config/i386/linux.mh (NATDEPFILES): Likewise.
808 * config/i386/linux64.mh (NATDEPFILES): Likewise.
809 * config/ia64/linux.mh (NATDEPFILES): Likewise.
810 * config/m32r/linux.mh (NATDEPFILES): Likewise.
811 * config/m68k/linux.mh (NATDEPFILES): Likewise.
812 * config/mips/linux.mh (NATDEPFILES): Likewise.
813 * config/pa/linux.mh (NATDEPFILES): Likewise.
814 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
815 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
816 * config/s390/s390.mh (NATDEPFILES): Likewise.
817 * config/sparc/linux.mh (NATDEPFILES): Likewise.
818 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
820 2004-11-13 Andrew Cagney <cagney@gnu.org>
822 * config/i386/i386lynx.mh: Delete file.
823 * config/i386/i386lynx.mt: Delete file.
824 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
825 * i386ly-tdep.c: Delete.
827 * config/tm-lynx.h: Delete, inline contents ...
828 * config/rs6000/tm-rs6000ly.h: ... here.
830 * config/tm-sysv4.h: Delete file, inlining contents.
831 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
832 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
833 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
835 * regcache.h (deprecated_register_valid): Delete.
836 (deprecated_registers): Delete.
837 * regcache.c (deprecated_register_valid): Delete.
838 (deprecated_registers): Delete.
839 (deprecated_read_register_byte, _initialize_regcache)
840 (deprecated_write_register_bytes, build_regcache): Update.
841 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
843 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
844 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
846 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
847 v850-*-* under removed.
848 * configure.host: Delete ns32k-*-netbsd*.
849 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
850 ns32k-*-netbsd*, and v850*-*-*.
851 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
853 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
854 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
855 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
856 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
857 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
858 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
859 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
860 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
861 * v850-tdep.c: Delete.
863 2004-11-13 Joel Brobecker <brobecker@gnat.com>
865 * irix5-nat.c (fetch_core_registers): Replace use of
866 deprecated_registers by equivalent code.
868 2004-11-13 Joel Brobecker <brobecker@gnat.com>
870 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
871 with equivalent code.
872 (fill_fpregset): Likewise.
874 2004-11-13 Andrew Cagney <cagney@gnu.org>
876 * MAINTAINERS: Do not list "Deleted" architectures.
878 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
879 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
881 * NEWS: Mention that vxworks was deleted.
882 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
883 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
884 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
885 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
886 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
887 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
888 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
889 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
890 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
891 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
892 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
893 * remote-vxmips.c, remote-vx.c: Delete.
894 * remote-vx68.c: Delete.
895 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
896 * config/m68k/os68k.mt, ada-lang.h: Ditto.
897 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
898 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
900 2004-11-13 Eli Zaretskii <eliz@gnu.org>
902 * config/i386/xm-go32.h: Don't include fopen-bin.h.
903 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
905 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
906 branch that doesn't define CRLF_SOURCE_FILES; always use
908 (print_source_lines_base, forward_search_command)
909 (reverse_search_command): Enable the code that accepts DOS-style
910 CRLF line endings on all platforms (this removes the need for
913 * defs.h: Fix wording of the comment before FOPEN_RB.
914 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
916 * config/djgpp/fnchange.lst: Group renames for opcode directory
919 * config/djgpp/djconfig.sh: Replace file names that don't exist
920 anymore with existing files, for checking the unpacked
923 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
924 Export pre-cooked values in configure-* targets that begin with
925 "@test -f stage_last".
927 2004-11-12 Andrew Cagney <cagney@gnu.org>
929 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
930 * value.h (struct value): Update comment.
931 * valops.c (value_assign): Fold lval_reg_fame_relative into
933 * findvar.c (value_from_register, locate_var_value): Ditto.
935 2004-11-12 Randolph Chung <tausq@debian.org>
937 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
938 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
939 (write_exp_msymbol): Remove conditional check for symbols starting
940 with $. Update comments.
942 2004-11-12 Randolph Chung <tausq@debian.org>
944 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
945 so_lib_thread_start_addr.
946 * pa64solib.h (so_list): Forward declare.
947 (pa64_solib_thread_start_addr): Prototype.
948 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
949 (no_shared_libraries): Remove.
950 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
951 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
952 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
953 the elf solib handler to find the start address.
955 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
956 files to the target makefile.
957 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
958 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
959 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
961 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
962 files for symbol reading and shared library handling here.
963 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
964 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
965 without bringing in 64-bit support.
967 2004-11-12 Andrew Cagney <cagney@gnu.org>
969 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
970 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
971 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
972 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
973 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
974 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
975 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
977 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
978 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
979 (VALUE_REGNUM): Define.
980 (struct value): Delete location.regnum, rename "regno" to
982 * value.c, valops.c, valarith.c, findvar.c: Update.
984 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
985 (VALUE_BITPOS): Delete.
986 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
987 * value.c (value_type, value_offset, value_bitpos)
988 (value_bitsize): New functions. Update references.
989 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
990 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
991 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
992 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
993 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
994 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
995 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
996 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
997 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
999 2004-11-12 Andrew Cagney <cagney@gnu.org>
1001 * cris-tdep.c (cris_register_offset): Delete, never called.
1002 (cris_spec_reg_applicable): Delete cris_ver_sim.
1003 * MAINTAINERS: List d10v as OBSOLETE.
1004 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
1005 FOPEN_WB et.al., defined by "fopen-bin.h".
1007 2004-11-12 Randolph Chung <tausq@debian.org>
1009 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
1010 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
1011 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
1012 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
1014 2004-11-12 Mark Kettenis <kettenis@jive.nl>
1016 * tui/tui-io.c: Don't include "terminal.h".
1017 * Makefile.in (tui-io.o): Update dependencies.
1019 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
1021 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
1022 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
1023 set_gdbarch_regset_from_core_section for core file support.
1024 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
1027 2004-11-11 Randolph Chung <tausq@debian.org>
1029 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
1030 stop_after_branch parameter and use it to determine if we should look
1031 at the delay slot of the first branch insn to find prologue insns.
1032 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
1033 (hppa_frame_cache): Likewise.
1035 2004-11-11 Randolph Chung <tausq@debian.org>
1037 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
1038 register so that it can be unwound from anywhere in the prologue.
1040 2004-11-10 msnyder <msnyder@redhat.com>
1042 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
1043 must invalidate lr_reg (so we don't try to save it again).
1044 Ditto for cr_offset and cr_reg.
1046 2004-11-05 Jon Beniston <jon@beniston.com>
1048 Committed by Andrew Cagney.
1049 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
1050 when an unexpected packet is received, as the target stubs
1051 continually retransmit the same packet until ACKed.
1053 2004-11-10 Randolph Chung <tausq@debian.org>
1055 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
1058 2004-11-10 Randolph Chung <tausq@debian.org>
1060 * blockframe.c (inside_entry_func): Move to .....
1061 * frame.c (inside_entry_func): ... here, and make static.
1062 (backtrace_past_entry): New flag.
1063 (get_prev_frame): Stop backtrace at the entry function if enabled
1064 by flag. Update comments.
1065 (_initialize_frame): Add command to set backtrace_past_entry flag.
1066 * defs.h (inside_entry_func): Remove prototype.
1068 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1070 * dwarf2read.c: Fix formatting.
1072 2004-11-10 Andrew Cagney <cagney@gnu.org>
1074 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1075 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1076 macros with function declarations.
1077 * value.c (coerce_ref, coerce_array, coerce_number)
1078 (coerce_enum): New functions.
1079 (value_as_long, value_as_address): Update.
1080 * ada-lang.c (ada_coerce_ref, ada_value_binop)
1081 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1082 * jv-lang.c (evaluate_subexp_java): Update.
1083 * valarith.c (value_less, value_neg, value_complement)
1084 (value_binop, value_add, value_subscript, value_x_binop)
1085 (value_logical_not, value_sub): Update.
1086 * valops.c (check_field, value_struct_elt, value_ind)
1087 (value_find_oload_method_list, value_cast, value_assign): Update.
1088 * eval.c (evaluate_subexp_standard): Update.
1090 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1092 * mips-tdep.c (mips32_relative_offset): Change return type to
1093 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1095 2004-11-10 Randolph Chung <tausq@debian.org>
1097 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1098 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1099 (hppa_fetch_pointer_argument): Likewise.
1100 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1101 deprecated_read_memory_nobpt.
1102 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1103 add_set_cmd sequence with add_setshow_boolean_cmd.
1105 2004-11-09 Andrew Cagney <cagney@gnu.org>
1107 GDB 6.3 released from GDB 6.3 branch.
1109 2004-11-09 Andrew Cagney <cagney@gnu.org>
1111 * values.c: Rename to ...
1112 * value.c: ..., new file.
1113 * Makefile.in: Update.
1115 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1117 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1120 2004-11-09 Andrew Cagney <cagney@gnu.org>
1124 * value.h (struct value): Delete field bfd_section.
1125 (VALUE_BFD_SECTION): Delete macro.
1126 (COERCE_REF): Update.
1127 (value_at, value_at_lazy): Delete asection parameter.
1128 * printcmd.c (print_formatted, x_command): Update.
1129 (do_examine): Delete asection parameter.
1130 (next_section): Delete variable.
1131 * valops.c (value_cast, value_at, value_at_lazy)
1132 (value_coerce_function, value_addr, value_ind, value_string)
1133 (find_rt_vbase_offset, value_full_object): Update.
1134 * hpacc-abi.c (hpacc_virtual_fn_field)
1135 (hpacc_value_rtti_type): Update.
1136 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1137 (gnuv3_baseclass_offset): Update.
1138 * f-valprint.c (f_val_print): Update.
1139 * c-valprint.c (c_val_print): Update.
1140 * p-valprint.c (pascal_val_print): Update.
1141 * jv-valprint.c (java_value_print): Update.
1142 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1143 * ada-lang.c (ada_value_primitive_packed_val)
1144 (ada_evaluate_subexp): Update.
1145 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1146 * expprint.c (print_subexp_standard): Update.
1147 * infcall.c (call_function_by_hand): Update.
1148 * valarith.c (value_add): Update.
1149 * eval.c (evaluate_subexp_standard): Update.
1150 * values.c (allocate_value, value_copy, value_static_field): Update.
1151 * findvar.c (read_var_value, locate_var_value): Update.
1153 2004-11-09 Andrew Cagney <cagney@gnu.org>
1155 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1156 * Makefile.in: Update all dependencies.
1158 2004-11-08 Andrew Cagney <cagney@gnu.org>
1160 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1161 (sentinel_frame_unwinder): Add the prev_pc method.
1162 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1163 available. Do not handle the sentinel-frame case.
1164 * frame-unwind.h (frame_prev_register_ftype): Define.
1165 (struct frame_unwind): Add prev_pc;
1167 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1169 * configure.in: Check for ncurses/term.h.
1170 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1171 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1172 * tui/tui.c: Don't include term.h.
1173 * configure, config.in: Rebuilt.
1175 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1177 * m68kbsd-nat.c: Include "inf-ptrace.h".
1178 (_initialize_m68kbsd_nat): Fix pasto.
1179 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1181 2004-11-08 Randolph Chung <tausq@debian.org>
1183 * infrun.c (debug_infrun): New variable.
1184 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1185 (handle_inferior_event, keep_going): Likewise.
1186 (_initialize_infrun): Register "set debug infrun" command.
1188 2004-11-08 Andreas Schwab <schwab@suse.de>
1190 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1191 PTRACE_EVENT_VFORKDONE.
1192 (child_follow_fork): Adjust.
1194 2004-11-08 Andrew Cagney <cagney@gnu.org>
1196 * README: Refer to 6.3, not 6.2, update directory listing droppng
1197 references to intl/ and mmalloc/.
1198 * PROBLEMS: Refer to 6.3 not 6.2.
1200 * PROBLEMS: Delete no-longer applicable problems.
1202 2004-11-07 Andrew Cagney <cagney@redhat.com>
1203 Daniel Jacobowitz <dan@debian.org>
1204 Roland McGrath <roland@redhat.com>
1206 * Makefile.in (symfile-mem.o): Update dependencies.
1207 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1208 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1209 * inf-ptrace.c (inf_ptrace_attach): Call
1210 observer_notify_inferior_created.
1211 * inftarg.c (child_attach): Likewise.
1212 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1213 (symbol_file_add_from_memory): Take NAME argument. Use it for
1214 the new BFD's filename.
1215 (add_symbol_file_from_memory_command): Update call to
1216 symbol_file_add_from_memory.
1217 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1218 (symbol_file_add_from_memory_wrapper): New.
1219 (_initialize_symfile_mem): Register add_vsyscall_page as an
1220 inferior_created observer.
1222 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1224 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1225 fetch_inferior_registers. Make static.
1226 (m68kbsd_store_inferior_registers): Rename from
1227 store_inferior_registers. Make static.
1228 (_initialize_m68kbsd_nat): Construct and add target vector.
1229 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1230 inftarg.o. Add inf-ptrace.o.
1231 (NAT_FILE): Set to tm-solib.h.
1232 (LOADLIBES): New variable.
1233 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1234 inftarg.o. Add inf-ptrace.o.
1235 (NAT_FILE): Delete variable.
1236 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1237 inftarg.o. Add inf-ptrace.o.
1238 (NAT_FILE): Set to tm-solib.h.
1239 * config/m68k/nm-nbsdaout.h: Remove file.
1241 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1243 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1244 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1245 (dwarf2_signal_frame_unwind): New.
1246 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1247 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1249 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1251 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1253 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1254 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1255 to only include the structure members we actually need.
1256 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1257 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1258 only include the structure members we actually need.
1259 (mipsnbsd_init_abi): Update.
1261 * mips64obsd-nat.c: Include "mips-tdep.h".
1262 (MIPS64OBSD_NUM_REGS): Remove define.
1263 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1264 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1265 floating-point registers correctly.
1266 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1268 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1270 (mips64obsd_sigframe_init): New function.
1271 (mips64obsd_sigframe): New variable.
1272 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1274 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1276 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1278 * alpha-mdebug-tdep.c: #include mdebugread.h.
1279 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1280 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1282 2004-11-05 Andrew Cagney <cagney@gnu.org>
1284 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1285 CFI and the init_reg method leave the register unspecified.
1286 Include the register name in the "Incomplete CFI data" complaint.
1287 Supress leading zeros in the address.
1289 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1291 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1292 skipping a personality routine in a CIE augmentation.
1294 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1296 * defs.h (fatal, vfatal): New function prototypes.
1297 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1299 (backtrace_command): Change to call backtrace_command_stub via
1300 catch_errors instead of calling backtrace_command_1 directly.
1301 (backtrace_full_command): Ditto.
1302 * utils.c (error_stream_1): New static function.
1303 (verror): Change to call error_stream_1 instead of error_stream.
1304 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1305 (vfatal, fatal): New functions.
1307 2004-11-05 Andrew Cagney <cagney@gnu.org>
1309 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1310 when not using selected frame.
1312 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1314 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1315 personality routine in a CIE augmentation.
1317 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1319 * stack.c (set_current_sal_from_frame): New function.
1320 (print_args_stub): Use it.
1321 (print_frame_info): Don't set sal here.
1323 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1325 * dwarf2-frame.c (read_encoded_value): Change type of third
1326 argument to `unsigned char *'. Add support for LEB128 encodings.
1328 2004-11-04 Jim Blandy <jimb@redhat.com>
1330 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1331 prevent cross-objfile references.
1332 (make_cv_type): Doc fix. Don't create cross-objfile references,
1333 even for stub types.
1334 (replace_type): Add assertion to prevent cross-objfile references.
1335 (check_typedef): Never resolve a stub type by copying over a type
1338 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1340 * Makefile.in (m32r-tdep.o): Update dependencies.
1341 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1342 ABI-specific overrides.
1344 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1346 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1347 unnecessary parallel execution bit.
1348 (m32r_memory_remove_breakpoint): Ditto.
1349 (m32r_breakpoint_from_pc): Update.
1351 2004-11-03 Randolph Chung <tausq@debian.org>
1353 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1354 frame_func_unwind to locate the unwind entry.
1355 (hppa_frame_this_id): Likewise.
1357 2004-11-03 Andrew Cagney <cagney@gnu.org>
1359 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1360 packet, obsolete configurations, end-of-life deprecated_registers.
1362 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1364 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1365 encodings as well as unsigned encodings.
1367 2004-11-02 Andrew Cagney <cagney@gnu.org>
1369 * value.h (COERCE_VARYING_ARRAY): Delete.
1370 * valops.c (value_cast, value_slice): Delete use.
1371 * valarith.c (value_subscript, value_concat): Delete use.
1373 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1375 * NEWS: GDB understands GNAT Ada.
1377 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1379 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1380 (amd64-sol2-tdep.o): Add dependencies.
1381 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1382 config/i386/sol2-64.mt: New files.
1383 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1384 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1385 (supply_gregset): Correct order of arguments to
1386 amd64_supply_native_gregset.
1387 (fill_gregset): Correct order of arguments to
1388 amd64_collect_native_gregset.
1389 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1390 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1391 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1392 for definition of NEW_PROC_API.
1393 * configure: Regenerate.
1395 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1397 * MAINTAINERS (Write After Approval): Add myself.
1399 2004-11-01 Andrew Cagney <cagney@gnu.org>
1401 * configure.tgt: Mark d10v-*-* as obsolete.
1402 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1404 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1406 * values.c (modify_field): Correct handling of bit-fields that
1407 don't fit in 32 bits. Use unsigned operations throughout and
1408 simplify the code a bit. Document preconditions.
1410 2004-10-31 Andrew Cagney <cagney@gnu.org>
1412 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1413 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1414 (in_plt_section): Delete.
1416 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1417 (mips_gdbarch_init): Do not set same.
1419 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1420 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1422 * gdbarch.sh (in_solib_call_trampoline): Delete.
1423 * gdbarch.h, gdbarch.c: Re-generate.
1425 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1426 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1427 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1428 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1429 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1431 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1433 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1434 (mipsnbsd_fetch_inferior_registers): Rename from
1435 fetch_inferior_registers. Make static.
1436 (mipsnbsd_store_inferior_registers): Rename from
1437 store_inferior_registers. Make static.
1438 (_initialize_mipsnbsd_nat): New function and prototype.
1439 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1440 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1441 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1444 2004-10-31 Andrew Cagney <cagney@gnu.org>
1446 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1447 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1448 delete corresponding unused function.
1449 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1450 in_solib_call_trampoline.
1451 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1452 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1453 * config/mips/tm-nbsd.h: Ditto.
1454 * config/arm/tm-linux.h: Ditto.
1455 * config/mips/tm-linux.h: Ditto.
1457 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1458 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1459 in_solib_call_trampoline, delete corresponding unused function.
1460 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1461 (vaxnbsd_aout_init_abi): Ditto.
1462 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1463 (sparc32nbsd_aout_init_abi): Ditto.
1464 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1465 (ppc_linux_init_abi): Ditto.
1466 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1467 (ns32knbsd_init_abi_aout): Ditto.
1468 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1469 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1470 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1471 (m68kbsd_aout_init_abi): Ditto.
1472 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1473 (i386_cygwin_init_abi): Ditto.
1474 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1475 (i386bsd_init_abi): Ditto.
1477 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1478 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1479 isn't used by this architecture.
1480 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1481 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1482 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1483 * s390-tdep.c (s390_gdbarch_init): Ditto.
1484 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1485 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1486 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1487 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1488 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1489 * amd64-tdep.c (amd64_init_abi): Ditto.
1491 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1492 in_solib_call_trampoline to its default value of
1493 generic_in_solib_call_trampoline.
1494 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1495 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1496 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1497 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1498 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1499 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1501 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1503 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1505 * config/mips/tm-mips.h: Delete file.
1506 * remote-mips.c: Delete tm-mips.h from comment.
1507 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1508 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1509 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1510 * config/mips/tm-linux.h: Don't include tm-mips.h.
1511 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1512 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1513 * config/mips/tm-wince.h: Don't include.
1515 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1516 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1517 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1518 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1520 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1521 * mdebugread.c (ecoff_relocate_efi): Delete function.
1522 * objfiles.c (objfile_relocate): Delete #ifdef
1523 MDEBUG_EFI_SYMBOL_NAME code.
1525 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1526 Andrew Cagney <cagney@gnu.org>
1528 * gdbarch.sh (single_step_through_delay): Add.
1529 * gdbarch.h, gdbarch.c: Re-generate.
1530 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1531 (mips_step_skips_delay): Delete.
1532 * mips-tdep.c (mips_single_step_through_delay): Replace
1533 mips_step_skips_delay.
1534 (mips_gdbarch_init): Set single_step_through_delay.
1535 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1537 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1539 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1540 from TRAMP_FRAME frame type.
1542 2004-10-31 Andrew Cagney <cagney@gnu.org>
1544 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1546 * mips-tdep.c (mips_ignore_helper): Delete.
1547 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1548 * infrun.c (handle_inferior_event): Delete #ifdef
1549 DEPRECATED_IGNORE_HELPER_CALL code.
1551 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1553 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1555 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1556 (fill_fpregset): Do not compile for 64-bit systems.
1557 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1558 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1559 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1561 2004-10-30 Andrew Cagney <cagney@gnu.org>
1563 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1564 (struct mdebug_extra_func_info): Define.
1565 * config/alpha/tm-alpha.h: Delete same.
1566 * config/mips/tm-mips.h: Delete same.
1567 * mdebugread.c: Delete same.
1568 * Makefile.in: Update dependencies.
1569 * mips-mdebug-tdep.c: Include "mdebugread.h".
1571 * objfiles.c: Include "mdebugread.h".
1572 * mdebugread.c: Include "mdebugread.h".
1573 (ecoff_relocate_cfi): Delete.
1574 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1575 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1576 * mdebugread.h (ecoff_relocate_efi): New file.
1577 * Makefile.in: Update dependencies.
1579 * mips-tdep.c (struct frame_extra_info): Delete.
1580 (temp_proc_desc): Delete.
1582 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1583 MIPS_EFI_SYMBOL_NAME.
1584 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1585 (struct mdebug_extra_func_info): Replace struct
1586 alpha_extra_func_info and alpha_extra_func_info_t.
1587 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1588 MIPS_EFI_SYMBOL_NAME.
1589 (struct mdebug_extra_func_info): Replace struct
1590 alpha_extra_func_info and alpha_extra_func_info_t.
1591 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1592 * mdebugread.c, alpha-mdebug-tdep.c:
1594 Suggested by Mark Kettenis.
1595 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1596 fields frame_adjust and high_addr.
1597 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1598 (non_heuristic_proc_desc): Delete references.
1600 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1601 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1602 * mips-tdep.c: Update.
1604 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1605 (MIPS_LAST_EMBED_REGNUM): Add.
1606 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1607 (LAST_EMBED_REGNUM): Delete.
1608 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1610 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1611 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1612 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1613 * mips-linux-nat.c: Update.
1615 * mips-tdep.h: Add comments on registers.
1616 (MIPS_UNUSED_REGNUM): Define.
1617 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1618 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1619 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1620 * mips-linux-nat.c, remote-mips.c: Update.
1622 * config/mips/tm-mips.h (t_insn): Delete.
1623 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1624 Replace t_insn with ULONGEST.
1626 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1628 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1629 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1630 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1631 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1632 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1633 (mipsnbsd_core_osabi_sniffer): New function.
1634 (mipsnbsd_init_abi): Set regset_from_core_section.
1635 (_initialize_mipsnbsd_tdep): Remove calls to
1636 deprecated_add_core_fns.
1637 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1638 (mipsnbsd_regset_from_core_section): New functions.
1639 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1640 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1642 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1643 Remove optimization for DEPRECATED_FP_REGNUM.
1645 2004-10-30 Andrew Cagney <cagney@gnu.org>
1647 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1648 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1649 (alpha_setup_arbitrary_frame): Delete.
1650 * mips-tdep.c (setup_arbitrary_frame): Delete.
1651 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1652 (setup_arbitrary_frame): Delete.
1653 * stack.c (parse_frame_specification_1): When specified, call
1654 create_new_frame with two parameters. Delete #ifdef
1655 SETUP_ARBITRARY_FRAME.
1657 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1658 (MIPS_INSTLEN): Delete.
1659 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1660 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1661 * remote-mips.c, mips-tdep.c: Update.
1663 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1664 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1665 * mips-tdep.c (mips_mdebug_frame_cache)
1666 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1667 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1668 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1669 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1670 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1671 (mips_gdbarch_init): Do not append mdebug sniffers.
1672 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1673 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1674 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1675 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1676 * Makefile.in: Update dependencies.
1678 * mips-tdep.h (mips_abi_regsize): Declare.
1679 * mips-tdep.c (mips_abi_regsize): Make non-static.
1681 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1682 (make_mips16_addr): Delete.
1684 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1686 * i386-sol2-nat.c: New file.
1687 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1689 (i386-sol2-nat.o): Update dependencies.
1690 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1693 2004-10-30 Andrew Cagney <cagney@gnu.org>
1695 Total breakage identified by Joel Brobecker.
1696 * mips-tdep.c (after_prologue): Delete.
1697 (mips_skip_prologue): Use skip_prologue_using_sal.
1698 (heuristic_proc_desc): Delete, unused.
1700 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1702 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1703 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1704 Cleanup coding style.
1706 2004-10-30 Andrew Cagney <cagney@gnu.org>
1708 * mips-tdep.h (mips_pc_is_mips16): Declare.
1709 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1710 non-static. Update calls.
1712 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1713 * command.h (add_setshow_enum_cmd): Declare.
1714 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1716 * mips-tdep.c (_initialize_mips_tdep): Use
1717 add_setshow_zinteger_cmd.
1719 * mips-tdep.c (mips_eabi_extract_return_value)
1720 (mips_o64_extract_return_value, mips_o64_store_return_value)
1721 (return_value_location, mips_eabi_reg_struct_has_addr)
1722 (mips_eabi_use_struct_convention)
1723 (mips_eabi_store_return_value): Delete.
1724 (mips_eabi_store_return_value): New function.
1725 (mips_eabi_return_value): New function.
1726 (mips_gdbarch_init): For O64 and EABI, delete
1727 extract_return_value, store_return_value, use_struct_convention
1728 and reg_struct_has_addr, add return_value.
1730 * mips-tdep.c (read_signed_register): Use
1731 regcache_cooked_read_signed.
1733 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1735 * mipsread.c: Cleanup coding style.
1736 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1737 (mipscoff_symfile_finish): Remove prototypes.
1739 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1741 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1742 (mips_mdebug_frame_cache, mips16_scan_prologue)
1743 (mips32_scan_prologue, mips_stub_frame_cache)
1744 (heuristic_proc_start, heuristic_proc_desc)
1745 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1746 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1747 (mips_o32_return_value, mips_o64_push_dummy_call)
1748 (mips_step_skips_delay, mips_skip_trampoline_code)
1749 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1750 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1751 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1752 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1753 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1754 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1755 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1756 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1757 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1758 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1760 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1761 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1763 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1765 * mipsnbsd-nat.c: Include "mips-tdep.h".
1766 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1767 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1769 2004-10-29 Andrew Cagney <cagney@gnu.org>
1771 * stack.c (parse_frame_specification_1): New function based on
1772 parse_frame_specification. Add message and selected_frame_p
1773 paramters. Truely always return non-NULL.
1774 (parse_frame_specification): Call parse_frame_specification_1.
1775 (frame_info): Update. Eliminate target_has_stack check.
1776 (select_frame_command): Update.
1778 2004-10-29 Andrew Cagney <cagney@gnu.org>
1780 * frame.h (get_selected_frame): Add message parameter.
1781 * frame.c (get_selected_frame): Add and use message parameter.
1782 * stack.c (current_frame_command, return_command, locals_info)
1783 (catch_info, args_info, up_silently_base, down_silently_base): Use
1784 get_selected_frame with an explicit message.
1785 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1786 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1787 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1788 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1789 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1790 * breakpoint.c: Update.
1792 2004-10-29 Andrew Cagney <cagney@gnu.org>
1794 * trad-frame.c (trad_frame_get_prev_register): Use
1795 frame_unwind_register instead of frame_register_unwind, do not
1796 recurse the register's location.
1797 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1798 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1799 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1800 * sh-tdep.c (sh_frame_prev_register): Ditto.
1801 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1802 * i386-tdep.c (i386_frame_prev_register): Ditto.
1803 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1804 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1806 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1808 * proc-events.c: Fix several coding-style issues. Consistently
1809 use #ifdef instead of #if defined().
1810 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1812 (_initialize_proc_events): New prototype.
1814 * proc-why.c: Fix several coding-style issues.
1815 (proc_prettyfprint_why): Use ARRAY_SIZE.
1817 2004-10-27 Jim Blandy <jimb@redhat.com>
1819 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1820 manner independent of the host byte order.
1822 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1824 * mips-tdep.c (id_delayed): Remove prototype.
1826 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1828 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1829 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1830 to enum with register numbers.
1831 (enum mips_insn_size): New enum.
1833 2004-10-26 Andrew Cagney <cagney@gnu.org>
1835 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1836 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1837 (mips_gdbarch_init): Update.
1838 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1840 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1841 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1842 IN_SOLIB_RETURN_TRAMPOLINE.
1843 * mips-tdep.c (mips_dump_tdep): Do not print
1844 IN_SOLIB_RETURN_TRAMPOLINE.
1845 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1846 (mips_gdbarch_init): Update.
1848 * mips-tdep.h (mips_software_single_step): Move to here ...
1849 * config/mips/tm-mips.h: ... from here.
1850 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1851 (SOFTWARE_SINGLE_STEP): Delete.
1852 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1854 2004-10-25 Andrew Cagney <cagney@gnu.org>
1856 * NEWS: Add Changes since GDB 6.3 section.
1858 2004-10-23 Andreas Schwab <schwab@suse.de>
1860 * ada-lang.c (grow_vect): Return the new array instead of
1861 expecting pointer to pointer to avoid violation of aliasing rules.
1862 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1864 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1866 * s390-tdep.c (enum pv_boolean): Remove.
1867 (pv_is_array_ref): Remove.
1868 (s390_on_stack): Remove.
1869 (S390_NUM_SPILL_SLOTS): Remove.
1870 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1871 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1872 (s390_store): Track all stores of orginal incoming registers to the
1873 stack constant offsets relative to the CFA, instead of only tracking
1874 stores into specific spill slots.
1875 (s390_load): Likewise.
1876 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1877 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1878 defined as call-saved by the ABI.
1879 (s390_push_dummy_call): Use bottom of dummy call argument save area
1880 as return value, not the top. Do not store to the called function's
1882 (s390_unwind_dummy_id): Adapt accordingly.
1884 2004-10-23 Andrew Cagney <cagney@gnu.org>
1886 * objfiles.h (struct objfile): Rename obj_private to
1887 deprecated_obj_private, sym_private to deprecated_sym_private, and
1888 sym_stab_info to deprecated_sym_stab_info.
1889 * gdb-stabs.h: Update.
1890 * elfread.c: Update.
1891 * dbxread.c: Update.
1892 * coffread.c: Update.
1893 * xcoffread.c: Update.
1894 * symfile.c: Update.
1895 * somread.c: Update.
1896 * nlmread.c: Update.
1897 * mdebugread.c: Update.
1899 * coffread.c: Update.
1901 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1903 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1904 * configure.host: Add mips64*-*-openbsd*.
1905 * configure.tgt: Add mips64*-*-openbsd*.
1906 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1908 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1909 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1911 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1913 * symtab.c (symbol_search_name): Minor reformatting.
1915 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1917 * symtab.h: Fix typo in comment.
1919 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1921 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1922 (dwarf_decode_line_header): Likewise.
1924 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1926 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1928 2004-10-19 Andrew Cagney <cagney@gnu.org>
1930 GDB 6.3 branch created.
1931 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1933 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1935 * dwarf2read.c (set_cu_language): Set language to Ada for
1936 DW_LANG_Ada83 and DW_LANG_Ada95.
1938 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1940 From Andreas Schwab <schwab@suse.de>:
1941 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1942 for xmalloc and xrealloc.
1944 2004-10-15 Andrew Cagney <cagney@gnu.org>
1946 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1947 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1948 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1949 Update dependencies.
1951 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1953 * ada-lang.c (ada_lookup_symbol): Correct comment.
1954 (ada_evaluate_subexp): Change error message for
1955 OP_FUNCALL case so as not to indicate an internal error.
1957 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1959 Committed by Paul Hilfinger.
1960 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1961 type sizes in XVE/XVU types, and emit a warning when that happens,
1962 instead of rounding up the size of the resulting type.
1963 Some minor reformatting.
1964 (ada_is_aligner_type): Do not consider a type as an aligner type
1965 if there is a corresponding XVS type as well.
1966 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1967 have several levels of pointer indirection to the array.
1969 2004-10-15 Jerome Guitton <guitton@gnat.com>
1971 Committed by Paul Hilfinger.
1972 * ada-lang.c (check_size): New function.
1973 (coerce_unspec_val_to_type): call check_size to make sure
1974 that the object size is reasonable.
1975 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1976 Implements the case when we get a reference when we evaluate
1977 the expression of one of the bounds of the slice.
1978 (ada_value_struct_elt): when a packed array field is
1979 a reference, use ada_coerce_ref to dereference it; use
1980 ada_value_ind only if it is a pointer.
1982 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1984 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1985 a bit to avoid the necessity of an advance declaration. Remove
1987 (set_reg_offset): Move implemenation up.
1988 (mips16_get_imm): Likewise.
1989 (mips16_scan_prologue): Likewise.
1990 (reset_saved_regs): Likewise.
1991 (mips32_scan_prologue): Likewise.
1993 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1995 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1996 Remove sp as a parameter, compute it internally instead. Move
1997 prologue scanning limit from heuristic_proc_desc to here.
1998 (mips16_scan_prologue): Likewise.
1999 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
2000 by call to mips16_scan_prologue.
2001 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
2002 by call to mips32_scan_prologue.
2003 (heuristic_proc_desc): Remove code that's no longer necessary.
2004 Update calls to mips16_scan_prologue and mips32_scan_prologue.
2005 (mips_skip_prologue): Update calls to mips16_scan_prologue
2006 and mips32_scan_prologue.
2008 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2010 * mips-tdep.c (mips16_scan_prologue): Merge code from
2011 mips16_skip_prologue. Now return the address of the first
2012 instruction past the function prologue.
2013 (mips16_skip_prologue): Remove, no longer necessary.
2014 (mips_skip_prologue): Replace call to mips16_skip_prologue
2015 by call to mips16_scan_prologue.
2017 2004-10-14 Joel Brobecker <brobecker@gnat.com>
2019 * mips-tdep.c (mips32_scan_prologue): Merge code from
2020 mips32_skip_prologue. Now return the address of the first
2021 instruction past the function prologue.
2022 (mips32_skip_prologue): Remove. No longer necessary.
2023 (mips16_skip_prologue): Add parameter end_pc instead of
2025 (mips_skip_prologue): Compute the upper limit for the
2026 prologue scanning. Update call to mips16_skip_prologue.
2027 Replace call to mips32_skip_prologue by call to
2028 mips32_scan_prologue.
2030 2004-10-14 Mark Kettenis <kettenis@gnu.org>
2032 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
2033 NetBSD system call stubs that store %rp in the ERP slot of the
2036 * source.c: Always define O_BINARY to 0 if not defined already.
2037 (openp): Unconditionally use O_BINARY.
2039 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
2040 * event-top.c (gdb_readline2): Likewise.
2042 2004-10-14 Orjan Friberg <orjanf@axis.com>
2044 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
2045 deprecated_add_core_fns which was removed by mistake.
2047 2004-10-13 Kevin Buettner <kevinb@redhat.com>
2049 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
2050 references to deprecated_registers[] with equivalent code.
2052 2004-10-13 Kevin Buettner <kevinb@redhat.com>
2054 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
2055 ``deprecated_registers'' with equivalent code. Use gdb_assert()
2056 instead of explicit test and print statement.
2058 2004-10-12 Mark Kettenis <kettenis@gnu.org>
2060 * sparc-nat.c: Include "inf-ptrace.h".
2061 (sparc_target): New function.
2062 * sparc-nat.h: Update copyright year.
2063 (sparc_target): New prototype.
2064 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
2065 (_initialize_sparcnbsd_nat): Construct and add target vector.
2066 * sparc64nbsd-nat.c: Include "target.h".
2067 (_initialize_sparc64nbsd_nat): Construct and add target vector.
2068 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
2069 Update dependencies.
2070 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
2071 inftarg.o, add inf-ptrace.o.
2072 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2073 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2074 (NAT_FILE): Set to nm-bsd.h.
2075 (LOADLIBES): New variable.
2076 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2077 infarg.o, add inf-ptrace.o.
2078 * config/sparc/nm-nbsdaout.h: Remove file.
2079 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2080 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2081 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2083 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2084 "fopen-same.h". Update comment.
2086 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2088 * i386gnu-nat.c: Include "gdb_string.h".
2089 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2090 registers when the floating-point state isn't initialized.
2091 * Makefile.in (i386gnu-nat.o): Update dependencies.
2093 2004-10-11 David Anderson <davea@sgi.com>
2095 * regcache.c (regcache_raw_read): Comment was missing "to".
2096 Extraneous ' removed.
2097 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2098 comment now describes use.
2100 2004-10-11 Orjan Friberg <orjanf@axis.com>
2102 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2103 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2104 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2105 (cris_sigtramp_frame_sniffer): New functions.
2106 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2107 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2108 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2109 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2110 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2112 (cris_version_update): Remove, replace with ...
2113 (set_cris_version): New function.
2114 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2115 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2116 (_initialize_cris_tdep): Remove CRIS mode command.
2117 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2118 cris-fpless-backtrace command.
2119 (cris_scan_prologue): Fix prologue scanning limit.
2120 (cris_register_type): Update to reflect actual registers.
2121 (cris_register_bytes_ok) Remove.
2122 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2123 Remove set_gdbarch_deprecated_register_size,
2124 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2126 2004-10-10 Andrew Cagney <cagney@gnu.org>
2128 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2131 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2133 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2135 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2137 * mips-tdep.c (mips16_scan_prologue): Renames
2138 mips16_heuristic_proc_desc. Update comment.
2139 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2140 (heuristic_proc_desc): Update calls to the 2 functions above.
2142 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2144 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2145 Update comments. Also immediately return empty cache when the start
2146 address of our function could not be found.
2147 (mips_insn32_frame_cache): Likewise.
2149 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2151 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2152 (mips_insn16_frame_cache): Pass frame cache in call to
2153 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2154 Remove code that became redundant as a consequence.
2155 (mips32_heuristic_proc_desc): No longer compute a fake
2156 procedure descriptor. Compute the full frame cache instead.
2157 Some minor comment reformatting.
2159 2004-10-10 Jim Blandy <jimb@redhat.com>
2161 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2162 reader, tracing bytecode stuff): Remove self.
2164 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2166 * sparc64-linux-tdep.c: Update copyright year. Don't include
2168 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2169 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2170 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2172 * sparc-linux-tdep.c: Update copyright year.
2173 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2174 to struct frame_info *. Use safe_frame_unwind_memory instead of
2175 deprecated_read_memory_nobpt.
2176 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2177 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2178 changed signature of sparc_linux_sigtramp_start.
2179 (sparc32_linux_pc_in_sigtramp): Remove function.
2180 (sparc32_linux_sigtramp_p): New function.
2181 (sparc32_linux_sigtramp_frame_sniffer): Use
2182 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2184 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2186 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2188 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2189 (decode_packed_array_type, value_subscript_packed)
2190 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2191 argument in call to lim_warning.
2193 * configure.in: Really disable the TUI if an enhanced curses
2194 library isn't found.
2195 * configure: Regenerate.
2197 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2199 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2200 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2201 * config/i386/nm-nbsdaout.h: Remove file.
2202 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2203 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2204 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2205 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2206 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2207 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2208 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2209 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2210 (ldd, ld_un, ld_2): Remove defines.
2211 * config/i386/nm-obsd.h: Likewise.
2213 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2215 * ada-lex.l: Remove useless rule whose right-context clause
2216 causes unreferenced static function warning for yyrealloc.
2217 (ada_flex_use): Remove the artificial reference to yyrealloc.
2219 2004-10-08 Andrew Cagney <cagney@gnu.org>
2221 * target.h (struct target_ops): Rename to_xfer_memory to
2222 deprecated_xfer_memory.
2224 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2226 * win32-nat.c: Update.
2227 * v850ice.c: Update.
2228 * uw-thread.c: Update.
2229 * thread-db.c: Update.
2230 * sol-thread.c: Update.
2232 * remote-vx.c: Update.
2233 * remote-st.c: Update.
2234 * remote-sim.c: Update.
2235 * remote-sds.c: Update.
2236 * remote-rdp.c: Update.
2237 * remote-rdi.c: Update.
2238 * remote-mips.c: Update.
2239 * remote-m32r-sdi.c: Update.
2240 * remote-e7000.c: Update.
2242 * ppc-bdm.c: Update.
2243 * nto-procfs.c: Update.
2244 * monitor.c: Update.
2245 * linux-nat.c: Update.
2246 * inftarg.c: Update.
2247 * hpux-thread.c: Update.
2248 * go32-nat.c: Update.
2249 * gnu-nat.c: Update.
2251 * corelow.c: Update.
2252 * bsd-kvm.c: Update.
2253 * aix-thread.c: Update.
2255 2004-10-08 Andrew Cagney <cagney@gnu.org>
2257 * target.c (debug_target): Move to near start of file.
2258 (target_stopped_data_address_p): Re-org logic, add casts.
2260 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2262 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2263 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2264 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2265 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2268 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2270 * target.h (to_stopped_data_address): Change prototype to
2271 take a CORE_ADDR pointer and return an int.
2272 * target.c (update_current_target): Change to_stopped_data_address
2273 to match new prototype.
2274 (debug_to_stopped_data_address): Change appropriately.
2275 * breakpoint.c (bpstat_stop_status): Change call to
2276 target_stopped_data_address to use new prototype.
2277 * frv-tdep.c (frv_have_stopped_data_address): New function.
2278 (frv_stopped_data_address): Change to new prototype and
2280 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2281 prototype and functionality.
2282 (ia64_stopped_by_watchpoint): New function.
2283 * i386-nat.c (i386_stopped_data_address): Change to new
2284 prototype and functionality.
2285 (i386_stopped_by_watchpoint): New function.
2286 * remote.c (remote_stopped_data_address): Change to new prototype
2288 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2289 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2290 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2291 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2292 new i386_stopped_by_watchpoint function.
2293 (i386_stopped_by_watchpoint): New prototype.
2294 (i386_stoppped_data_address): Change to new prototype.
2295 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2296 new ia64_stopped_by_watchpoint function.
2297 (ia64_stopped_by_watchpoint): New prototype.
2298 (ia64_stopped_data_address): Ditto.
2300 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2302 * ada-typeprint.c (ada_print_type): Use int_string for printing
2303 modulus of modular type.
2304 * ada-lang.h (ada_modulus): Change return type to unsigned.
2305 * ada-lang.c (ada_language_arch_info): Correct type of
2307 (ada_modulus): Return unsigned result.
2308 (ada_lookup_symbol): Remove user disambiguation and modify comment
2311 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2313 Committed by Paul Hilfinger.
2314 * ada-lang.c (decode_packed_array): On big-endian targets,
2315 left-justify the value if it comes with a modular type.
2317 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2319 Committed by Paul Hilfinger.
2320 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2321 (is_name_suffix): Add support for "___JM" suffixes.
2322 (ada_check_typedef): Renames ada_completed_type.
2323 Update all users of CHECK_TYPEDEF, check_typedef, and
2324 ada_complete_type to call ada_check_typedef.
2325 * ada-typeprint.c: Likewise.
2326 * ada-valprint.c: Likewise.
2328 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2330 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2332 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2334 * MAINTAINERS: Update e-mail address.
2336 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2338 From Maciej W. Rozycki <macro@mips.com>:
2339 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2340 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2342 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2344 * m32r-tdep.c (decode_prologue): Support functions written
2345 in assembler language. Recognize trap instructions as the
2347 (m32r_frame_unwind_cache): Ditto.
2348 (m32r_skip_prologue): Extend search limit. Quit analyzing
2349 prologue if pc's location is not readable.
2351 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2353 * Makefile.in (.l.c): Do conversions of names of alloc and free
2354 functions that are done for .y.c files, plus special one
2355 for yy_flex_realloc. Also, correct missing-file tests here.
2356 * ada-lex.l (malloc, free): Remove macros.
2357 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2359 (ada_flex_use): Dummy definition to remove warnings about unused
2361 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2362 to suppress warning.
2364 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2366 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2368 (sh_return_value_fpu): Ditto for CPUs with FPU.
2369 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2370 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2371 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2372 RETURN_VALUE functions.
2374 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2376 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2377 (sh_pseudo_register_write): Ditto.
2379 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2381 * sh-tdep.c (IS_MACL_STS): New define.
2383 (IS_MACL_LDS): Ditto.
2384 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2385 instructions in prologue.
2386 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2387 instructions in epilogue.
2389 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2391 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2392 (sh_sh_register_name): Add eight empty register names.
2393 (sh_sh3_register_name): Ditto.
2394 (sh_sh3e_register_name): Ditto.
2395 (sh_sh2e_register_name): Ditto.
2396 (sh_sh2a_register_name): New function, defining SH2A register set.
2397 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2399 (sh_sh_dsp_register_name): Add eight empty register names.
2400 (sh_sh3_dsp_register_name): Ditto.
2401 (sh_sh4_register_name): Ditto.
2402 (sh_sh4_nofpu_register_name): Ditto.
2403 (sh_sh4al_dsp_register_name): Ditto.
2404 (sh2a_show_regs): New function.
2405 (sh2a_nofpu_show_regs): New function.
2406 (sh_sh2a_register_type): New function.
2407 (do_bank_register_info): New function.
2408 (sh_print_pseudo_register): Call do_bank_register_info.
2409 Call sh_print_pseudo_register for valid "bank" register.
2410 (sh_sh2a_register_sim_regno): New function.
2411 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2412 Increment pseudo register count by one for all sh variants with
2413 pseudo registers to accomodate pseudo bank register.
2414 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2415 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2416 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2417 Increment pseudo register numbers.
2419 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2421 * dwarf2read.c (read_subroutine_type): Call make_function_type
2422 instead of lookup_function_type.
2424 2004-10-05 Jim Blandy <jimb@redhat.com>
2426 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2427 (Previous change missed some uses.)
2429 2004-10-05 Andrew Cagney <cagney@gnu.org>
2431 * target.h (deprecated_child_ops): Rename child_ops.
2432 * wince.c: Update copyright. Rename child_ops.
2433 * win32-nat.c: Rename child_ops.
2434 * target.c: Rename child_ops.
2435 * rs6000-nat.c: Rename child_ops.
2436 * linux-nat.c: Rename child_ops.
2437 * infttrace.c: Rename child_ops.
2438 * inftarg.c: Rename child_ops.
2439 * infptrace.c: Rename child_ops.
2440 * hppah-nat.c: Update copyright. Rename child_ops.
2441 * hpux-thread.c: Update copyright. Rename child_ops.
2443 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2445 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2447 2004-10-05 Andrew Cagney <cagney@gnu.org>
2449 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2451 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2453 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2454 (die_ref_table): Remove.
2455 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2456 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2457 the usage of this type.
2458 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2459 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2460 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2461 (dwarf2_create_include_psymtab): Update comment.
2462 (find_partial_die): Remove third argument. Remove unreachable call
2464 (dwarf2_find_containing_comp_unit): Update comments. Change one
2465 assertion to an error. Remove an unreachable error.
2466 (dwarf2_find_comp_unit): Update comments.
2467 (type_at_offset): Remove dead code.
2468 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2469 (store_in_ref_table): Add CU argument.
2470 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2471 inter-compilation-unit references.
2472 (load_full_comp_unit, process_full_comp_unit): New functions, based
2473 on psymtab_to_symtab_1.
2474 (psymtab_to_symtab_1): Use them.
2475 (dwarf2_add_dependence): New function.
2476 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2477 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2478 (partial_die_parent_scope, guess_structure_name): Update for changes
2479 to find_partial_die.
2480 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2481 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2482 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2483 (read_die_and_children): Update call to store_in_ref_table.
2484 (do_free_die_list_cleanup): Remove.
2485 (fixup_partial_die): Update for changes to find_partial_die.
2486 (read_full_die): Handle queueing absolute references.
2487 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2488 (dwarf2_attr, die_specification, die_type)
2489 (die_containing_type, dwarf2_extension): Update calls to
2491 (dump_die): Update DW_FORM_ref* handling.
2492 (dwarf2_get_ref_die_offset): Likewise.
2493 (free_one_comp_unit): Release the dies list.
2494 (dwarf2_mark_helper): New function.
2495 (dwarf2_mark): Use it.
2497 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2499 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2500 when writing to memory.
2502 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2504 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2505 (m32r_extract_struct_value_address): Delete function.
2506 (m32r_return_value): New function.
2507 (m32r_gdbarch_init): Instead of store_return_value,
2508 extract_return_value, deprecated_extract_struct_value_address
2509 and deprecated_use_struct_convention, set return_value.
2511 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2513 * dwarf2read.c (read_subrange_type): Add comment for variable
2516 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2518 * Makefile.in (.l.c): Modify rule for compatibility with recent
2519 versions of flex, and remove most command-line options.
2520 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2523 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2525 Turn on initial Ada support (mainly expression evaluation).
2527 * Makefile.in (SFILES): Remove ada-tasks.c.
2528 (HFILES_NO_SRCDIR): Add ada-lang.h.
2529 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2530 (YYOBJ): Add ada-exp.o.
2531 (rule .l.c): Generalize to not mention ada.
2532 * symtab.c: Include ada-lang.h.
2533 (symbol_natural_name, symbol_demangled_name)
2534 (symbol_search_name): Add Ada case.
2536 2004-10-01 Andrew Cagney <cagney@gnu.org>
2538 * Makefile.in (COMMON_OBS): Add inf-child.o.
2539 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2540 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2541 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2542 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2543 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2544 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2545 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2546 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2547 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2548 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2549 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2550 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2551 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2553 * target.c (xfer_using_stratum): Change return type to LONGEST.
2554 On each iteration offset, readbuf and writebuf.
2555 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2556 partial_length, and read/modify/write predicate, update comments.
2557 Pass buffer.word to ptrace write.
2559 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2561 * symfile.c (init_filename_language_table): Add extensions for
2563 * defs.h (enum language): Add language_ada.
2564 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2565 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2566 (add_symbols_from_enclosing_procs): Make a no-op for now.
2567 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2568 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2569 (find_line_in_linetable, find_next_line_in_linetable)
2570 (read_all_symtabs, is_plausible_func_for_line)
2571 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2572 (is_runtime_sym_defined, check_size): Remove declaration.
2573 (function_name_from_pc, ada_translate_error_message)
2574 (ada_lookup_minimal_symbol): Remove definition.
2575 (ada_add_block_symbols): Remove useless label.
2576 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2577 useless declaration.
2578 (ada_is_exception_sym): Likewise.
2580 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2582 Add m32r-linux support.
2583 * configure.tgt: Add m32r*-*-linux*.
2584 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2585 and m32r-linux-tdep.c.
2586 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2587 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2588 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2590 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2591 config/m32r/linux.mh, config/m32r/linux.mt,
2592 config/m32r/nm-linux.h: New files.
2594 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2596 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2597 (mips32_fetch_instruction): Remove, unused.
2599 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2601 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2602 conditions that will always be true.
2604 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2606 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2607 (vaxbsd_fetch_inferior_registers): Rename from
2608 fetch_inferior_registers. Make static.
2609 (vaxbsd_store_inferior_registers): Rename from
2610 store_inferior_registers. Make static.
2611 (_initialize_vaxbsd_nat): Construct and add target vector.
2612 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2613 inftarg.o. Add inf-child.o and inf-ptrace.o.
2614 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2615 inftarg.o. Add inf-child.o and inf-ptrace.o.
2617 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2618 inftarg.o. Add inf-child.o and inf-ptrace.o.
2620 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2622 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2623 (m88kbsd_fetch_inferior_registers): Rename from
2624 fetch_inferior_registers. Make static.
2625 (m88kbsd_store_inferior_registers): Rename from
2626 store_inferior_registers. Make static.
2627 (_initialize_m88kbsd_nat): New prototype and function.
2628 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2629 inftarg.o. Add inf-child.o and inf-ptrace.o.
2631 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2633 2004-09-30 Andrew Cagney <cagney@gnu.org>
2635 * target.c (target_xfer_partial): New function.
2636 (target_read_memory_partial, target_write_memory_partial)
2637 (default_xfer_partial, target_read_partial, target_write_partial)
2638 (xfer_using_stratum): Use.
2639 (debug_to_xfer_partial): Delete function.
2640 (setup_target_debug): Do not override to_xfer_partial.
2642 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2644 * fork-child.c: Update copyright year. Fix coding style.
2646 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2648 * defs.h (msavestring, mstrsave): Remove prototypes.
2649 * utils.c (msavestring, mstrsave): Remove functions.
2650 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2651 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2653 * source.c (find_and_open_source): Use xstrdup instead of
2656 2004-09-30 Andrew Cagney <cagney@gnu.org>
2658 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2659 (inf_ptrace_xfer_memory): Delete.
2660 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2661 (target_read_memory, target_write_memory): Use xfer_using_stratum
2662 when target_xfer_partial_p.
2663 (debug_target): Move to start of file.
2664 (target_read_memory_partial, target_write_memory_partial): Use
2665 to_xfer_partial when target_xfer_partial_p.
2667 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2668 inf_ptrace_xfer_memory with equivalent code.
2669 * inftarg.c (child_xfer_partial): When performing a write, pass
2670 writebuf to child_xfer_memory.
2672 * target.c (target_read_string): Use target_read_memory instead of
2675 2004-09-29 Andrew Cagney <cagney@gnu.org>
2677 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2678 the address of status.
2680 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2681 (kill_inferior): Inline ptrace_wait call.
2682 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2683 * inftarg.c (child_wait): Inline ptrace_wait call.
2685 * target.h (struct target_ops): Delete field to_post_wait.
2686 (target_post_wait): Delete macro.
2687 (child_post_wait): Delete declaration.
2688 * target.c (update_current_target, update_current_target)
2689 (debug_to_post_wait, setup_target_debug): Delete functions and
2691 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2692 * inftarg.c (child_post_wait): Delete.
2693 (init_child_ops): Do not set to_post_wait.
2694 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2695 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2696 * inf-child.c (inf_child_post_wait): Delete.
2697 (inf_child_target): Do not set to_post_wait.
2698 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2699 (inf_ptrace_target): Do not set to_post_wait.
2701 * wince.c (child_ops): Delete.
2702 * win32-nat.c (child_ops): Delete.
2704 * inftarg.c (inftarg_set_find_memory_regions)
2705 (inftarg_set_make_corefile_notes): Delete functions.
2706 (_initialize_linux_nat): Inline calls.
2708 * target.h (child_ops): Declare.
2709 * inftarg.c (child_ops): Move from here ...
2710 * target.c (child_ops): ... to here.
2711 * wince.c (child_ops): Delete extern declaration.
2712 * win32-nat.c (child_ops): Delete extern declaration.
2713 * linux-nat.c (child_ops): Delete extern declaration.
2714 * hpux-thread.c (child_ops): Delete extern declaration.
2716 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2718 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2720 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2722 * configure.in: Only set host_makefile_frag when building a native
2724 * configure: Regenerate.
2726 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2729 2004-09-28 Andrew Cagney <cagney@gnu.org>
2731 Problem identified by Paul Hilfinger.
2732 * Makefile.in (ada_lex_c): Define.
2733 (ada-lex.o): Delete rule.
2735 * linux-proc.c: Delete file.
2736 * Makefile.in: Update.
2737 * config/sparc/linux64.mh (NATDEPFILES):
2738 * config/sparc/linux.mh (NATDEPFILES): Update.
2739 * config/s390/s390.mh (NATDEPFILES): Update.
2740 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2741 * config/powerpc/linux.mh (NATDEPFILES): Update.
2742 * config/pa/linux.mh (NATDEPFILES): Update.
2743 * config/mips/linux.mh (NATDEPFILES): Update.
2744 * config/m68k/linux.mh (NATDEPFILES): Update.
2745 * config/ia64/linux.mh (NATDEPFILES): Update.
2746 * config/i386/linux64.mh (NATDEPFILES): Update.
2747 * config/i386/linux.mh (NATDEPFILES): Update.
2748 * config/arm/linux.mh (NATDEPFILES): Update.
2749 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2750 * linux-nat.c: Update copyright. Include <sys/param.h>,
2751 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2752 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2753 (O_LARGEFILE): Possibly define.
2754 (_initialize_linux_nat, linux_proc_pending_signals)
2755 (add_line_to_sigset, linux_proc_xfer_memory)
2756 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2757 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2758 (struct linux_corefile_thread_data)
2759 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2760 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2762 2004-09-16 Andrew Cagney <cagney@gnu.org>
2764 * lin-lwp.c: Delete file.
2765 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2766 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2767 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2768 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2769 (linux_nat_attach, detach_callback, linux_nat_detach)
2770 (resume_callback, resume_clear_callback, linux_nat_resume)
2771 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2772 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2773 (status_callback, running_callback, count_events_callback)
2774 (select_singlestep_lwp_callback, select_event_lwp_callback)
2775 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2776 (child_wait, stop_and_resume_callback, linux_nat_wait)
2777 (kill_callback, kill_wait_callback, linux_nat_kill)
2778 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2779 (linux_nat_xfer_memory, linux_nat_thread_alive)
2780 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2781 (_initialize_linux_nat): New functions.
2782 * Makefile.in: Update all dependencies.
2783 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2784 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2785 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2786 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2787 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2788 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2789 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2790 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2791 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2792 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2793 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2794 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2795 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2797 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2799 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2800 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2802 * configure.in: Don't comment out NATDEPFILES in the generated
2803 Makefile if NAT_FILE is unset.
2804 * configure: Regenerate.
2806 2004-09-27 Andrew Cagney <cagney@gnu.org>
2808 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2809 (insert_step_resume_breakpoint): Delete.
2810 (insert_step_resume_breakpoint_at_frame): New function.
2811 (insert_step_resume_breakpoint_at_sal): New function.
2812 (handle_inferior_event, step_into_function)
2813 (insert_step_resume_breakpoint): Simplify by using same.
2815 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2817 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2819 * fbsd-proc.c: Remove file.
2820 * Makefile.in (fbsd-proc.o): Remove dependency.
2822 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2825 * config/i386/nm-fbsd64.h: Remove file.
2826 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2828 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2830 * amd64-nat.h: Update copyright year.
2831 (amd64bsd_target): New prototype.
2832 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2833 (amd64bsd_target): New function.
2834 (amd64bsd_fetch_inferior_registers): Rename from
2835 fetch_inferior_registers. Make static.
2836 (amd64bsd_store_inferior_registers): Rename from
2837 store_inferior_registers. Make static.
2838 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2839 (_initialize_amd64fbsd_nat): Construct and add target vector.
2840 * amd64nbsd-nat.o: Include "target.h".
2841 (_initialize_amd64nbsd_nat): Construct and add target vector.
2842 * amd64obsd-nat.c: Include "target.h".
2843 (_initialize_amd64obsd_nat): Construct and add target vector.
2844 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2845 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2846 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2848 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2849 Remove infptrace.o and inftarg.o. Add inf-child.o and
2851 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2852 (amd64obsd-nat.o): Update dependencies.
2854 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2856 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2857 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2858 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2859 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2860 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2862 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2864 (inf_ptrace_detach): Inline detach call.
2866 * configure.in: Check for waddstr instead of mvwaddstr when
2867 searching for curses library. Check for wborder.
2868 * configure, config.in: Regenerate.
2869 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2872 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2874 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2876 Committed by Andrew Cagney.
2877 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2878 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2880 (fetch_register_using_p): Implement 'p' packet. Based on code by
2882 (remote_fetch_registers): Call fetch_register_using_p.
2883 (init_all_packet_configs, show_remote_cmd)
2884 (_initialize_remote): Add p-packet.
2886 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2888 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2889 instead of call_ptrace. Call wait directly instead of
2891 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2892 (inf_ptrace_wait): Inline ptrace_wait call.
2894 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2896 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2897 rolled back instead.
2899 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2901 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2902 the new argument order.
2904 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2906 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2907 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2908 (struct gdbarch_tdep): Remove.
2909 (struct xstormy16_frame_cache): New frame cache structure.
2910 (xstormy16_register_byte, xstormy16_register_raw_size)
2911 (xstormy16_reg_virtual_type, xstormy16_register_type)
2912 (xstormy16_push_arguments, xstormy16_push_return_address)
2913 (xstormy16_pop_frame, xstormy16_store_struct_return)
2914 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2915 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2916 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2917 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2918 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2919 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2920 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2921 (xstormy16_extract_return_value, xstormy16_store_return_value):
2922 Regcachify. Drop useless struct convention handling.
2923 (xstormy16_register_type, xstormy16_return_value)
2924 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2925 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2926 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2927 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2928 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2929 (xstormy16_unwind_dummy_id) : New functions.
2930 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2931 of xstormy16_scan_prologue.
2932 (xstormy16_frame_unwind): New frame_unwind structure.
2933 (xstormy16_frame_base): New frame_base structure.
2934 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2935 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2937 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2939 * language.c (language_gdbarch_post_init): Fix off-by one error.
2941 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2943 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2944 (struct dwarf2_offset_and_type): New.
2945 (set_die_type, reset_die_and_siblings_types, get_die_type)
2946 (offset_and_type_hash, offset_and_type_eq): New functions.
2947 (read_structure_type, read_enumeration_type, read_array_type)
2948 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2949 (read_tag_reference_type, read_tag_const_type)
2950 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2951 (read_typedef, read_base_type, read_subrange_type): Use
2954 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2956 * Makefile.in (dwarf2read.o): Update dependencies.
2957 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2958 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2960 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2961 mark, and has_form_ref_addr.
2962 (struct dwarf2_per_cu_data): New.
2963 (dwarf2_max_cache_age): New.
2964 (dwarf2_build_psymtabs_hard): Free cached compilation units
2965 after loading. Create and manage the list of compilation units.
2966 Remove unnecessary NULL initialization. Fix indentation.
2967 (psymtab_to_symtab_1): Initialize all of CU.
2968 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2969 (find_partial_die): Use dwarf2_find_containing_comp_unit
2971 (free_stack_comp_unit): Update comments. Clear the per-cu
2972 pointer. Handle aging.
2973 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2974 (age_cached_comp_units, free_one_cached_comp_unit)
2975 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2976 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2977 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2978 (show_dwarf2_cmd): New.
2979 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2980 and "maint show dwarf2 max-cache-age".
2981 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2983 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2986 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2988 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2989 and dwarf2_cu struct pointer as arguments. Change function to use
2990 obstack if provided and use dwarf2_cu to determine language-specific
2992 (partial_die_parent_scope): Change comment to include java. Use
2993 new version of typename_concat instead of obconcat.
2994 (partial_die_full_name): Use typename_concat.
2995 (read_namespace): Ditto.
2996 (read_enumeration_type): Use typename_concat instead of obconcat.
2997 (new_symbol): Ditto.
2998 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2999 (guess_structure_name): Ditto.
3000 (read_subroutine_type): Ditto.
3001 (read_structure_type): Ditto.
3002 (is_vtable_name): Add Java support.
3003 (determine_class_name): Switch to new typename_concat call.
3004 (determine_prefix): Switch to new typename_concat call.
3005 * jv-exp.y (FuncStart): New pattern.
3006 (MethodInvocation): Add support for simple function calls. Change
3007 warning message for other forms of inferior call currently not
3009 * valarith.c (value_subscript): Treat an array with upper-bound
3010 of -1 as unknown size.
3012 2004-09-20 Daniel Jacobowitz <dan@debian.org>
3014 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
3015 (lookup_partial_symtab): Use symtab_to_fullname.
3017 2004-09-19 Jim Blandy <jimb@redhat.com>
3019 * minsyms.c (lookup_minimal_symbol): Doc fix.
3021 2004-09-20 Andrew Cagney <cagney@gnu.org>
3023 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
3025 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
3026 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
3028 * infptrace.c: Update.
3030 2004-09-19 Daniel Jacobowitz <dan@debian.org>
3032 * symtab.c (output_source_filename): Mark first argument as const.
3033 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
3034 for "info sources" output.
3036 2004-09-20 Mark Kettenis <kettenis@gnu.org>
3038 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
3039 <machine/vmparam.h>.
3040 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
3041 (register_u_addr): Remove prototype.
3043 2004-09-19 Mark Kettenis <kettenis@gnu.org>
3045 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
3046 (i386bsd_fetch_inferior_registers): Rename from
3047 fetch_inferior_registers. Make static.
3048 (i386bsd_store_inferior_registers): Rename from
3049 store_inferior_registers. Make static.
3050 (i386bsd_target): New function.
3051 * i386bsd-nat.h: New file.
3052 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
3054 (i386fbsd_resume): Rename from child_resume. Make static.
3055 (_initialize_i386fbsd_nat): Construct and add target vector.
3056 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
3057 (_initialize_i386nbsd_nat): Construct and add target vector.
3058 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
3060 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
3061 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
3062 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
3063 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
3064 (LOADLIBES): New variable.
3065 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
3066 inf-ptrace.o. Remove inftarg.o.
3067 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
3068 inf-ptrace.o. Remove inftarg.o.
3069 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
3070 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
3071 (LOADLIBES): New variable.
3072 * Makefile.in (i386bsd_nat_h): New variable.
3073 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3076 * sparc64nbsd-tdep.c: Include "objfiles.h".
3077 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3078 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3079 svr4_lp64_fetch_link_map_offsets.
3080 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
3082 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3083 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3084 svr4_lp64_fetch_link_map_offsets.
3085 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3088 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3089 * fbsd-nat.h: New file.
3090 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3091 (fbsd_nat_h): New variable.
3092 (fbsd-nat.o): New dependency.
3094 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3095 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3097 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3100 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3102 * ada-exp.y (type_int): New function to add layer of abstraction
3103 around references to expression types.
3105 (type_long_long): Ditto.
3106 (type_float): Ditto.
3107 (type_double): Ditto.
3108 (type_long_double): Ditto.
3110 (type_system_address): Ditto.
3111 (simple_exp): Use type_* functions in place of builtin_*
3114 (write_var_from_name): Ditto.
3115 (write_object_renaming): Ditto.
3116 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3118 (build_ada_types): Remove, replacing with...
3119 (ada_language_arch_info): New function to initialize primitive
3120 type vector in language_arch_info.
3121 (ada_array_length): Remove use of builtin_type_ada_int.
3122 (value_pos_atr): Ditto.
3123 (ada_evaluate_subexp): Ditto.
3124 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3125 builtin_type_ada_long_long, builtin_type_ada_char,
3126 builtin_type_ada_float, builtin_type_ada_double,
3127 builtin_type_ada_long_double, builtin_type_ada_natural,
3128 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3129 (ada_builtin_types): Remove.
3130 (ada_language_defn): Remove entries for la_builtin_type_vector and
3131 string_char_type and use ada_language_arch_info.
3132 (_initialize_ada_language): Do type-vector initialization along
3133 the lines of c-lang.c.
3134 (ada_create_fundamental_type): Break up line.
3135 (ada_dump_symtab): Remove unused function.
3136 (enum ada_primitive_types): Define.
3137 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3138 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3139 builtin_type_ada_float, builtin_type_ada_double,
3140 builtin_type_ada_long_double, builtin_type_ada_natural,
3141 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3142 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3143 (processInt): Ditto.
3144 (processReal): Ditto.
3145 (name_lookup): Ditto.
3146 * ada-typeprint.c (print_range): Use builtin_type_int, not
3147 builtin_type_ada_int.
3149 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3151 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3153 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3154 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3155 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3156 * configure.in: Improve checks for curses library by checking for
3157 mvwaddstr instead of initscr. Drop HP curses in favour of
3158 standard curses on HP-UX.
3159 * configure: Regenerated.
3161 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3163 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3164 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3165 Minor formatting changes.
3166 (empty_array): Slight rewrite for formatting.
3167 (emit_char,parse,ada_language_defn,build_ada_types,
3168 ada_is_exception_sym, _initialize_ada_language): Move
3170 (ada_dump_symtab): Remove unused definition.
3171 (ada_maybe_exception_partial_symbol): Remove unused definition.
3173 2004-09-16 Andrew Cagney <cagney@gnu.org>
3175 * inf-child.c: Include "gdb_string.h".
3176 (inf_child_core_file_to_sym_file): Delete.
3177 (inf_child_target): Set to_fetch_registers and to_store_registers.
3178 * inf-ptrace.c: Include "gdb_string.h".
3179 * Makefile.in: Update all dependencies.
3181 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3184 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3186 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3187 call to heuristic_proc_desc. Remove code that became redundant
3189 (read_next_frame_reg): Remove special case for SP_REGNUM.
3190 (set_reg_offset): Fix small typo.
3191 (reset_saved_regs): New procedure.
3192 (mips32_heuristic_proc_desc): No longer compute a fake
3193 procedure descriptor. Compute the full frame cache instead.
3194 Some minor comment reformatting.
3196 2004-09-14 Andrew Cagney <cagney@gnu.org>
3198 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3201 * thread-db.c (thread_db_new_objfile): Assume that there is a
3204 2004-09-13 Jim Blandy <jimb@redhat.com>
3206 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3207 so that its storage isn't referenced after its lifetime ends.
3209 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3210 and never assigned to. Delete it, and the 'if (use_buffer)'
3211 clauses. Delete 'raw_buffer', since it is now unused.
3213 2004-09-13 Andrew Cagney <cagney@gnu.org>
3215 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3216 * configure: Re-generate.
3217 * nlm/Makefile.in (TAGS): Update.
3218 * Makefile.in (TAGS): Update.
3219 * config/vax/nbsd.mt (TM_FILE): Update.
3220 * config/sparc/vxworks.mt (TM_FILE): Update.
3221 * config/sparc/sol2.mt (TM_FILE): Update.
3222 * config/sparc/sol2-64.mt (TM_FILE): Update.
3223 * config/sparc/obsd64.mt (TM_FILE): Update.
3224 * config/sparc/obsd.mt (TM_FILE): Update.
3225 * config/sparc/nbsd64.mt (TM_FILE): Update.
3226 * config/sparc/nbsd.mt (TM_FILE): Update.
3227 * config/sparc/linux64.mt (TM_FILE): Update.
3228 * config/sparc/linux.mt (TM_FILE): Update.
3229 * config/sparc/fbsd.mt (TM_FILE): Update.
3230 * config/sh/wince.mt (TM_FILE): Update.
3231 * config/sh/nbsd.mt (TM_FILE): Update.
3232 * config/sh/linux.mt (TM_FILE): Update.
3233 * config/sh/embed.mt (TM_FILE): Update.
3234 * config/s390/s390.mt (TM_FILE): Update.
3235 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3236 * config/rs6000/rs6000.mt (TM_FILE): Update.
3237 * config/rs6000/aix4.mt (TM_FILE): Update.
3238 * config/powerpc/vxworks.mt (TM_FILE): Update.
3239 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3240 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3241 * config/powerpc/obsd.mt (TM_FILE): Update.
3242 * config/powerpc/nbsd.mt (TM_FILE): Update.
3243 * config/powerpc/linux.mt (TM_FILE): Update.
3244 * config/powerpc/aix.mt (TM_FILE): Update.
3245 * config/pa/obsd.mt (TM_FILE): Update.
3246 * config/pa/linux.mt (TM_FILE): Update.
3247 * config/pa/hppahpux.mt (TM_FILE): Update.
3248 * config/pa/hppa64.mt (TM_FILE): Update.
3249 * config/pa/hppa.mt (TM_FILE): Update.
3250 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3251 * config/mips/wince.mt (TM_FILE): Update.
3252 * config/mips/vxmips.mt (TM_FILE): Update.
3253 * config/mips/nbsd.mt (TM_FILE): Update.
3254 * config/mips/linux.mt (TM_FILE): Update.
3255 * config/mips/irix6.mt (TM_FILE): Update.
3256 * config/mips/irix5.mt (TM_FILE): Update.
3257 * config/mips/embed.mt (TM_FILE): Update.
3258 * config/m68k/vxworks68.mt (TM_FILE): Update.
3259 * config/m68k/st2000.mt (TM_FILE): Update.
3260 * config/m68k/os68k.mt (TM_FILE): Update.
3261 * config/m68k/obsd.mt (TM_FILE): Update.
3262 * config/m68k/nbsd.mt (TM_FILE): Update.
3263 * config/m68k/monitor.mt (TM_FILE): Update.
3264 * config/m68k/linux.mt (TM_FILE): Update.
3265 * config/m68k/cisco.mt (TM_FILE): Update.
3266 * config/ia64/linux.mt (TM_FILE): Update.
3267 * config/ia64/aix.mt (TM_FILE): Update.
3268 * config/ia64/ia64.mt (TM_FILE): Update.
3269 * config/i386/vxworks.mt (TM_FILE): Update.
3270 * config/i386/obsd64.mt (TM_FILE): Update.
3271 * config/i386/obsd.mt (TM_FILE): Update.
3272 * config/i386/nto.mt (TM_FILE): Update.
3273 * config/i386/nbsd64.mt (TM_FILE): Update.
3274 * config/i386/nbsd.mt (TM_FILE): Update.
3275 * config/i386/linux64.mt (TM_FILE): Update.
3276 * config/i386/linux.mt (TM_FILE): Update.
3277 * config/i386/i386sol2.mt (TM_FILE): Update.
3278 * config/i386/i386lynx.mt (TM_FILE): Update.
3279 * config/i386/fbsd64.mt (TM_FILE): Update.
3280 * config/i386/fbsd.mt (TM_FILE): Update.
3281 * config/i386/cygwin.mt (TM_FILE): Update.
3282 * config/h8300/h8300.mt (TM_FILE): Update.
3283 * config/frv/frv.mt (TM_FILE): Update.
3284 * config/cris/cris.mt (TM_FILE): Update.
3285 * config/arm/wince.mt (TM_FILE): Update.
3286 * config/arm/nbsd.mt (TM_FILE): Update.
3287 * config/arm/linux.mt (TM_FILE): Update.
3288 * config/arm/embed.mt (TM_FILE): Update.
3289 * config/alpha/nbsd.mt (TM_FILE): Update.
3290 * config/alpha/fbsd.mt (TM_FILE): Update.
3291 * config/alpha/alpha.mt (TM_FILE): Update.
3292 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3293 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3295 Eliminate event_loop_p, always has the value 1.
3296 * defs.h (event_loop_p): Delete macro.
3297 * breakpoint.c (until_break_command): Simplify.
3298 * utils.c (prompt_for_continue): Simplify.
3299 * tracepoint.c (read_actions): Simplify.
3300 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3301 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3302 (set_prompt, init_main): Simplify.
3303 (init_signals, disconnect): Delete, unused.
3304 * remote.c (remote_async_resume)
3305 (extended_remote_async_create_inferior): Simplify.
3306 * mi/mi-interp.c (mi_input): Delete, unused.
3307 (mi_interpreter_resume, mi_command_loop): Simplify.
3308 * interps.c (current_interp_command_loop): Simplify.
3309 * infrun.c (proceed): Simplify.
3310 * infcmd.c (run_command, continue_command, step_1, jump_command)
3311 (until_command, advance_command, finish_command)
3312 (interrupt_target_command): Simplify.
3313 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3315 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3316 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3317 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3318 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3319 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3320 * mips-tdep.c (mips_dump_tdep): Do not print same.
3322 2004-09-12 Andrew Cagney <cagney@gnu.org>
3324 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3326 * Makefile.in (valprint.o): Delete explict rule.
3328 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3329 reported by Dave Anderson.
3331 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3333 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3335 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3336 Andrew Cagney <cagney@gnu.org>
3338 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3339 (mi_cmd_data_list_register_values)
3340 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3341 the register number computation.
3343 2004-09-12 Andrew Cagney <cagney@gnu.org>
3345 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3346 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3347 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3348 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3350 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3351 inf-ptrace.o and inf-child.o.
3352 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3353 * Makefile.in: Update dependencies.
3355 2004-09-11 Andrew Cagney <cagney@gnu.org>
3357 * language.c (hex_string, hex_string_custom): Move from here ...
3358 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3359 (CELLSIZE): Increase to 50.
3360 * language.h (hex_string, hex_string_custom): Move from here ...
3361 * defs.h: ... to here.
3362 * Makefile.in: Update all dependencies.
3364 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3366 * language.c (local_hex_format_custom): Remove.
3367 (local_hex_string): Rename to hex_string, use C format, and move to
3369 (local_hex_string_custom): Rename to hex_string_custom and change
3370 interface. Now uses C format. Move to utils.c
3371 (local_octal_format_custom): Remove.
3372 (local_decimal_format_custom): Remove.
3373 (unknown_language_defn): Remove language-specific number
3375 (auto_language_defn): Ditto.
3376 (local_language_defn): Ditto.
3377 * language.h (struct language_format_info): Delete declaration.
3378 (struct language_defn): Remove language_format_info fields
3379 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3380 (local_binary_format): Remove macro.
3381 (local_binary_format_prefix): Remove macro.
3382 (local_binary_format_specifier): Remove macro.
3383 (local_binary_format_suffix): Remove macro.
3384 (local_octal_format): Remove macro.
3385 (local_octal_format_prefix): Remove macro.
3386 (local_octal_format_specifier): Remove macro.
3387 (local_octal_format_suffix): Remove macro.
3388 (local_decimal_format): Remove macro.
3389 (local_decimal_format_prefix): Remove macro.
3390 (local_decimal_format_specifier): Remove macro.
3391 (local_decimal_format_suffix): Remove macro.
3392 (local_hex_format): Remove macro.
3393 (local_hex_format_prefix): Remove macro.
3394 (local_hex_format_specifier): Remove macro.
3395 (local_hex_format_suffix): Remove macro.
3396 (local_decimal_format_custom): Remove.
3397 (local_octal_format_custom): Remove.
3398 (local_hex_format_custom): Remove.
3399 (local_hex_string): Rename to hex_string and move to defs.h.
3400 (local_hex_string_custom): Rename to hex_string_custom, change
3401 interface, and move to defs.h.
3402 * utils.c: (int_string): New function.
3403 (hex_string): New function (from language.c).
3404 (hex_string_custom): New function (from language.c).
3405 (octal2str): New function.
3406 (decimal2str): Add width parameter.
3407 (paddr_u): Use new decimal2str interface.
3409 * defs.h (hex_string): Declare.
3410 (hex_string_custom): Declare.
3411 (int_string): Declare.
3412 * printcmd.c (print_scalar_formatted): Remove localized binary
3414 * valprint.c (print_longest): Use int_string.
3415 (print_floating): Use C hex format.
3416 (print_hex_chars): Ditto.
3417 (print_binary_chars): Remove language-specific formatting.
3418 (print_octal_chars): Use C octal format.
3419 (print_decimal_chars): Delocalize format.
3420 (print_decimal): Remove.
3421 * ada-lang.c (ada_language_defn): Remove language-specific number
3423 * p-lang.c (pascal_language_defn): Ditto.
3424 * c-lang.c (c_language_defn): Ditto.
3425 (cplus_language_defn): Ditto.
3426 (asm_language_defn): Ditto.
3427 (minimal_language_defn): Ditto.
3428 * f-lang.c (f_language_defn): Ditto.
3429 * jv-lang.c (java_language_defn): Ditto.
3430 * m2-lang.c (m2_language_defn): Ditto.
3431 * scm-lang.c (scm_language_defn): Ditto.
3432 * objc-lang.c (objc_language_defn): Ditto.
3433 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3435 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3436 * ui-out.c (ui_out_field_core_addr): Ditto.
3437 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3438 * exec.c (print_section_info): Ditto.
3439 * i387-tdep.c (print_i387_status_word): Ditto.
3440 (print_i387_control_word): Ditto.
3441 (i387_print_float_info): Ditto.
3442 * maint.c (maint_print_section_info): Ditto.
3443 * solib.c (info_sharedlibrary_command): Ditto.
3444 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3445 * symtab.c (print_msymbol_info): Ditto.
3446 * tracepoint.c (tracepoints_info): Ditto.
3447 * solib-frv.c (lm_base): Ditto.
3448 (frv_current_sos): Ditto.
3449 (enable_break2): Ditto.
3450 (enable_break): Ditto.
3451 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3452 (process_one_symbol): Ditto.
3453 * infcmd.c (program_info): Ditto.
3454 * mdebugread.c (parse_partial_symbols): Ditto.
3455 * symfile.c (add_symbol_file_command): Ditto.
3456 * cli/cli-cmds.c (edit_command): Ditto.
3457 (list_command): Ditto.
3458 * infcall.c (call_function_by_hand): Ditto.
3459 * remote-vx.c (vx_run_files_info): Ditto.
3464 * aix-thread.c (pdc_symbol_addrs): Ditto.
3465 (pdc_read_regs): Ditto.
3466 (pdc_write_regs): Ditto.
3467 (pdc_read_data): Ditto.
3468 (pdc_write_data): Ditto.
3469 * d10v-tdep.c (display_trace): Ditto.
3470 * rs6000-nat.c (find_toc_address): Ditto.
3471 * aix-thread.c: Don't include language.h.
3472 * buildsym.c: Ditto.
3474 * mdebugread.c: Ditto.
3475 * rs6000-nat.c: Ditto.
3476 * buildsym.c (make_blockvector): Use renamed hex_string.
3478 2004-09-10 Jason Molenda (jmolenda@apple.com)
3480 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3481 chars after 'if' or 'while' commands in user-defined commands.
3483 2004-09-08 Jim Blandy <jimb@redhat.com>
3485 Fix bug reported and analyzed by Olivier Crete:
3486 * symfile.c (copy_section_addr_info): New function.
3487 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3488 original set of address arguments, instead of handwritten code
3489 that uses one length to allocate and a different length to
3490 initialize. Use make_cleanup_free_section_addr_info.
3491 * symfile.h (copy_section_addr_info): New declaration.
3492 * utils.c: #include "symfile.h".
3493 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3495 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3496 * Makefile.in (utils.o): Update dependencies.
3498 2004-09-08 Andrew Cagney <cagney@gnu.org>
3500 * thread-db.c (keep_thread_db): Delete.
3501 (thread_db_new_objfile, thread_db_create_inferior)
3502 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3504 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3506 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3507 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3508 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3509 (i386_frameless_signal_p): Remove prototype.
3510 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3511 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3513 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3514 instead of FP0_REGNUM.
3515 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3516 of FP0_REGNUM and FPC_REGNUM.
3518 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3519 (sunos_solib_create_inferior_hook): Don't call
3520 sunos_relocate_main_executable.
3522 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3523 solib_svr4_fetch_link_map_offsets to
3524 svr4_ilp32_fetch_link_map_offsets.
3525 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3526 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3527 svr4_ilp32_fetch_link_map_offsets.
3528 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3530 2004-09-07 Jim Blandy <jimb@redhat.com>
3532 * frame.h (frame_register): Doc fix.
3534 2004-09-07 Andrew Cagney <cagney@gnu.org>
3536 * vx-share/wait.h: Delete #ifdef USG.
3537 * utils.c (request_quit): Ditto.
3538 * tui/tui.c (tui_reset): Ditto.
3540 * remote-sds.c: Ditto.
3541 * remote-rdi.c: Ditto.
3542 * mdebugread.c: Ditto.
3543 * m68klinux-nat.c: Ditto.
3544 * infttrace.c: Ditto.
3545 * infptrace.c: Ditto.
3546 * i386v-nat.c: Ditto.
3549 * core-aout.c: Ditto.
3551 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3553 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3554 heuristic_proc_desc.
3555 (mips_insn32_frame_cache): Likewise.
3557 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3559 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3560 left behind by error.
3562 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3564 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3565 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3567 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3569 * config/rs6000/xm-aix4.h: Remove this file.
3570 * config/rs6000/aix4.mh (XM_FILE): Delete.
3572 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3574 * config/rs6000/xm-rs6000.h: Remove this file.
3575 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3577 2004-09-03 Andrew Cagney <cagney@gnu.org>
3579 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3580 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3583 * mips-tdep.c (temp_saved_regs): Delete.
3584 (set_reg_offset): Replace saved_regs parameter with this_cache.
3585 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3586 (mips32_heuristic_proc_desc): Add this_cache parameter.
3587 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3588 (after_prologue): Pass a NULL this_cache.
3590 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3591 non-kernel trap prologues.
3593 * mips-tdep.c (find_proc_desc): Delete function.
3594 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3596 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3597 mips_insn32_frame_cache.
3599 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3600 Simplify as NEXT_FRAME is NULL.
3601 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3603 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3605 (mips_skip_prologue): Update.
3607 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3608 "cur_frame" parameter.
3609 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3610 (mips_insn32_frame_cache, find_proc_desc): Update
3612 * config/vax/nm-obsd.h: Delete file.
3613 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3614 * config/vax/nm-nbsd.h: Delete file.
3615 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3616 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3617 * config/sh/nm-nbsd.h: Delete file.
3618 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3619 * config/rs6000/nm-rs6000ly.h: Delete file.
3620 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3621 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3622 * config/powerpc/nm-obsd.h: Delete file.
3623 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3624 * config/powerpc/nm-nbsd.h: Delete file.
3625 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3626 * config/pa/nm-obsd.h: Delete file.
3627 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3628 * config/mips/nm-nbsd.h: Delete file.
3629 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3630 * config/m88k/nm-obsd.h: Delete file.
3631 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3632 * config/m68k/nm-nbsd.h: Delete file.
3633 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3634 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3635 * config/i386/nm-nbsd.h: Delete file.
3636 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3637 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3638 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3639 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3640 * config/i386/nm-i386lynx.h: Delete file.
3641 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3642 * config/arm/nm-nbsd.h: Delete file.
3643 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3644 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3646 * config/i386/tm-fbsd.h: Delete file.
3647 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3648 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3650 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3651 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3652 * config/rs6000/aix4.mt (TM_FILE): Set to
3653 config/rs6000/tm-rs6000.h.
3654 * config/powerpc/tm-ppc-aix.h: Delete file.
3655 * config/powerpc/aix.mt (TM_FILE): Set to
3656 config/rs6000/tm-rs6000.h.
3657 * config/m68k/tm-linux.h: Delete file.
3658 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3659 * config/i386/tm-linux64.h: Delete file.
3660 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3661 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3663 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3664 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3665 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3666 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3667 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3668 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3669 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3670 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3671 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3673 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3676 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3678 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3679 Minor reformatting. Some code factoring.
3681 2004-09-02 Andrew Cagney <cagney@gnu.org>
3683 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3684 * config/vax/tm-nbsd.h: Delete file.
3685 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3686 * config/sparc/tm-vxworks.h: Delete file.
3687 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3688 * config/sparc/tm-nbsd.h: Delete file.
3689 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3690 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3691 * config/sparc/tm-linux.h: Delete file.
3692 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3693 * config/s390/tm-linux.h: Delete file.
3694 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3695 * config/pa/tm-bsd.h: Delete file.
3696 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3697 * config/m68k/tm-obsd.h: Delete file.
3698 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3699 * config/m68k/tm-nbsd.h: Delete file.
3700 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3701 * config/i386/tm-vxworks.h: Delete file.
3702 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3703 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3704 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3705 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3706 * config/i386/tm-nbsd.h: Delete file.
3707 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3708 * config/i386/tm-i386lynx.h: Delete file.
3709 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3710 * config/cris/tm-cris.h: Delete file.
3712 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3713 * configure: Re-generate.
3714 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3715 * config/arm/tm-nbsd.h: Delete file.
3717 * config/powerpc/tm-ppcle-sim.h: Delete.
3718 * config/powerpc/tm-ppcle-eabi.h: Delete.
3719 * config/powerpc/tm-nbsd.h: Delete.
3720 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3721 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3724 * config/i386/nto.mh (NAT_FILE): Delete.
3725 * config/i386/nm-nto.h: Delete.
3727 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3728 * config/m68k/tm-os68k.h: Ditto.
3729 * config/m68k/tm-monitor.h: Ditto.
3730 * config/m68k/tm-cisco.h: Ditto.
3731 * config/m68k/st2000.mt (TM_FILE): Delete.
3732 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3733 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3734 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3735 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3737 * config/m68k/tm-st2000.h: Delete.
3738 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3739 * config/sparc/fbsd.mt (TM_FILE): Delete.
3740 * config/sparc/tm-fbsd.h: Delete.
3742 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3743 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3744 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3746 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3747 GDB_TM_FILE and GDB_XM_FILE.
3748 * gdbarch.c: Re-generate.
3749 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3750 quotes in macro definition.
3751 * configure.in: Re-generate.
3753 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3754 validating architecture methods.
3755 * gdbarch.c: Re-generate.
3757 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3758 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3759 GDB_MULTI_ARCH_PARTIAL.
3760 * gdbarch.h: Re-generate.
3762 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3763 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3764 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3765 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3766 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3767 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3768 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3769 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3770 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3771 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3772 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3773 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3775 2004-09-01 Andrew Cagney <cagney@gnu.org>
3777 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3778 and main_func_highpc.
3779 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3780 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3781 * nlmread.c (nlm_symfile_read): Update.
3783 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3785 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3786 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3787 (find_proc_desc): Remove dead code.
3789 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3791 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3793 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3795 * observer.sh: Add struct so_list declaration.
3796 * Makefile.in: Add dependencies on observer.h for solib.c and
3798 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3800 (_initialize_breakpoint): Register
3801 disable_breakpoints_in_unloaded_shlib as an observer of the
3802 "solib unloaded" observation event.
3803 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3804 call decode_line_1 so unfound breakpoint errors are silent.
3805 * solib.c (update_solib_list): When a solib is discovered to have
3806 been unloaded by the program, notify all observers of the
3807 "solib unloaded" observation event.
3809 2004-09-01 Andrew Cagney <cagney@gnu.org>
3811 * frame.c: Include "objfiles.h".
3812 (inside_main_func): New function.
3813 (get_prev_frame): Use new inside_main_func.
3814 * Makefile.in (frame.o): Update dependencies.
3815 * defs.h (inside_main_func): Delete declaration.
3816 * blockframe.c (inside_main_func): Delete function.
3818 2004-08-31 Jim Blandy <jimb@redhat.com>
3820 * dwarf2read.c (is_vtable_name): New function, based on logic from
3821 read_structure_type, but passing the correct length to strncmp,
3822 and using 'sizeof' instead of 'strlen'.
3823 (read_structure_type): Call it.
3825 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3827 * config/powerpc/aix.mh: Add comment.
3829 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3831 * MAINTAINERS: Add self to Write-After-Approval.
3833 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3835 * MAINTAINERS: Add self to Write-After-Approval.
3837 2004-08-30 Andrew Cagney <cagney@gnu.org>
3839 Fix PR breakpoints/1757.
3840 * infrun.c (struct execution_control_state): Replace
3841 remove_breakpoints_on_following_step with
3842 step_after_step_resume_breakpoint.
3843 (init_execution_control_state): Update.
3844 (handle_inferior_event): For signals, when stepping off a
3845 breakpoint, set step_after_step_resume_breakpoint. When
3846 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3847 (keep_going): Delete code handling
3848 remove_breakpoints_on_following_step.
3850 2004-08-29 David Lecomber <david@streamline-computing.com>
3853 * language.h (enum array_ordering): New enum.
3854 * language.h (struct language_defn): New la_array_ordering
3856 * language.c (unknown_language_defn, auto_language_defn)
3857 (local_language_defn): Ditto.
3858 * ada-lang.c (ada_language_defn): Ditto.
3859 * c-lang.c (c_language_defn, cplus_language_defn)
3860 (asm_language_defn, minimal_language_defn): Ditto.
3861 * f-lang.c (f_language_defn): Ditto.
3862 * jv-lang.c (java_language_defn): Ditto.
3863 * m2-lang.c (f_language_defn): Ditto.
3864 * objc-lang.c (objc_language_defn): Ditto.
3865 * p-lang.c (pascal_language_defn): Ditto.
3866 * scm-lang.c (scm_language_defn): Ditto.
3867 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3868 oriented large to small in type structure.
3869 * dwarf2read.c (read_array_order): New function.
3870 (read_array_type): Use read_array_order to check row/column
3873 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3875 * target.c (target_resize_to_sections): Check
3876 current_target.to_sections for an old value when updating.
3878 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3880 * procfs.c (dbx_link_bpt_addr): New static global variable.
3881 (dbx_link_shadow_contents): New static global variable.
3882 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3883 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3885 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3886 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3888 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3889 after the inferior has been forked.
3890 (remove_dbx_link_breakpoint): New function.
3891 (dbx_link_addr): New function.
3892 (insert_dbx_link_bpt_in_file): New function.
3893 (insert_dbx_link_bpt_in_region): New function.
3894 (insert_dbx_link_breakpoint): New function.
3895 (proc_trace_syscalls_1): New function, extracted from
3896 proc_trace_syscalls.
3897 (proc_trace_syscalls): Replace extract code by call to
3898 proc_trace_syscalls_1.
3899 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3902 2004-08-25 Jim Blandy <jimb@redhat.com>
3904 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3906 2004-08-25 Andrew Cagney <cagney@gnu.org>
3908 * infrun.c (struct execution_control_state): Delete field
3909 "stepping_through_sigtramp".
3910 (init_execution_control_state): Do not set same.
3911 (context_switch): Do not pass same to save_infrun_state and
3913 * gdbthread.h (struct thread_info): Delete field
3914 stepping_through_sigtramp.
3915 (save_infrun_state, load_infrun_state): Delete parameter
3916 stepping_through_sigtramp.
3917 * thread.c (load_infrun_state, save_infrun_state): Update.
3919 * infrun.c: Re-indent. Move expression operators to the beginning
3920 of the line. Remove long disabled #if 0 code.
3922 2004-08-24 Andrew Cagney <cagney@gnu.org>
3924 * doublest.h (floatformat_ieee_quad): Rename
3925 floatformat_ia64_quad.
3926 * doublest.c (floatformat_ieee_quad): Rename
3927 floatformat_ia64_quad.
3928 (_initialize_doublest): Update.
3930 2004-08-24 Jim Blandy <jimb@redhat.com>
3932 * dwarf2expr.h (struct dwarf_expr_context): New members
3933 'num_pieces' and 'pieces', for returning the result of an
3934 expression that uses DW_OP_piece.
3935 (struct dwarf_expr_piece): New struct type.
3936 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3938 (free_dwarf_expr_context): Free pieces, if any.
3939 (add_piece): New function.
3940 (execute_stack_op): Implement DW_OP_piece.
3941 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3942 expression is a list of pieces, print an error message.
3943 (dwarf2_loc_desc_needs_frame): If the expression yields
3944 pieces, and any piece is in a register, then we need a frame.
3946 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3947 the stack until we've decided what sort of result the evaluation
3948 has produced. Use separate variables, with more specific names.
3950 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3952 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3953 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3954 (arm_netbsd_init_abi_common): Register them.
3956 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3958 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3960 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3961 safe_frame_unwind_memory instead of target_read_memory.
3963 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3965 (fetch_register, store_register): Remove prototypes.
3966 (child_resume): Reorganize code and comments such that it is
3967 grouped a bit more logically.
3968 (attach): Explicitly compare errno against 0.
3969 (detach): Likewise. Use perror_with_name instead of
3971 * Makefile.in (infptrace.o): Update dependencies.
3973 * ia64-linux-nat.c: Update copyright year.
3974 (fetch_debug_register, store_debug_register)
3975 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3977 * config/ia64/nm-linux.h: Update copyright year.
3978 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3980 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3981 from CORE_ADDR to struct frame_info *. Use
3982 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3983 (amd64_linux_sigtramp_p): Adjust for changed signature of
3984 and64_linux_sigtramp_start
3986 * gdb_ptrace.h: GNU/Linux.
3988 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3991 * infptrace.c: Include "gdb_assert.h".
3992 (PTRACE_XFER_TYPE): Remove define.
3993 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3994 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3996 (fetch_inferior_registers, store_inferior_registers): Remove
3997 redundant culry braces. Tweak comment. s/regno/regnum.
3998 * Makefile.in (infptrace.o): Update dependencies.
4000 * configure.in: Change test for return type of ptrace to default
4001 to `long' instead of `int'.
4002 * configure: Regenerate.
4004 2004-08-21 Mark Kettenis <kettenis@gnu.org>
4006 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
4008 * configure.in: Check for ttrace function.
4009 * configure, config.in: Regenerate.
4011 * gdb_ptrace.h: New file.
4012 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
4014 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
4015 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
4016 (attach): Don't define PT_ATTACH.
4017 (detach): Don't define PT_DETACH.
4018 * Makefile.in (gdb_ptrace_h): New variable.
4019 (infptrace.o): Update dependencies.
4021 2004-08-16 Mark Kettenis <kettenis@gnu.org>
4023 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
4024 instead of `int' if not already defined.
4025 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
4027 * infptrace.c (call_ptrace): Revert change that replaced
4028 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4030 2004-08-15 Mark Kettenis <kettenis@gnu.org>
4032 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
4035 * linux-nat.c (kill_inferior): Add missing third and fourth
4036 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
4038 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
4041 * proc-why.c (proc_prettyfprint_why): Fix format string.
4043 * solib-osf.c (osf_current_sos): Remove unsused label.
4045 * configure.in: Add <ncurses/ncurses.h> to the list of possible
4047 * configure, config.in: Regenerate.
4048 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
4049 <ncurses/ncurses.h>.
4051 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
4052 * config/nm-nbsd.h: Update copyright year.
4053 (PTRACE_ARG3_TYPE): Remove define.
4055 * sparc-nat.c (fetch_inferior_registers)
4056 (store_inferior_registers, sparc_xfer_wcookie):
4057 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4059 * alphabsd-nat.c (fetch_inferior_registers):
4060 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4062 * amd64bsd-nat.c (fetch_inferior_registers)
4063 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4065 * armnbsd-nat.c: Update copyright year.
4066 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
4067 (store_register, store_regs, store_fp_register, store_fp_regs):
4068 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4069 * hppabsd-nat.c (fetch_inferior_registers)
4070 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4072 * i386bsd-nat.c (fetch_inferior_registers)
4073 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4074 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4075 * m68kbsd-nat.c (fetch_inferior_registers)
4076 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4078 * m88kbsd-nat.c (fetch_inferior_registers)
4079 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4081 * mipsnbsd-nat.c: Update copyright year.
4082 (fetch_inferior_registers, store_inferior_registers):
4083 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4084 * ns32knbsd-nat.c: Update copyright year.
4085 (fetch_inferior_registers, store_inferior_registers):
4086 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4087 * ppcnbsd-nat.c (fetch_inferior_registers):
4088 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4090 * ppcobsd-nat.c (fetch_inferior_registers):
4091 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4093 * shnbsd-nat.c: Update copyright year.
4094 (fetch_inferior_registers, store_inferior_registers):
4095 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4096 * vaxbsd-nat.c (fetch_inferior_registers)
4097 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4100 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4102 * infptrace.c (call_ptrace, child_resume, attach, detach)
4103 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4104 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4105 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4108 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4110 * defs.h: Remove out-of-date comment.
4111 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4112 [!GETENV_PROVIDED] (getenv): Remove prototype.
4114 * standalone.c: Remove file.
4115 * Makefile.in (standalone.o): Remove dependency.
4117 * i386-linux-nat.c (dummy_sse_values): Remove function and
4119 (i386_linux_dr_get): Fix typo in comment.
4120 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4122 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4124 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4126 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4129 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4131 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4132 parenthesis in definition.
4133 * configure: Regenerated.
4135 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4137 * PROBLEMS: Mention build/1411.
4139 2004-08-09 Robert Millan <robertmh@gnu.org>
4141 Committed by Nathanael Nerode.
4142 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4143 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4145 2004-08-12 Andrew Cagney <cagney@gnu.org>
4147 * NEWS: Mention fixes in GDB 6.2.1.
4148 * PROBLEMS: Remove mention of mips-irix.
4150 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4152 * config/powerpc/xm-aix.h: Delete.
4153 * config/powerpc/aix.mh (MH_FILE): Remove.
4154 * config/powerpc/aix432.mh (MH_FILE): Remove.
4156 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4158 * config/powerpc/aix.mh: Remove obsolete comment.
4159 * config/powerpc/aix432.mh: Likewise.
4161 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4163 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4165 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4167 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4168 this file is now empty.
4169 * config/xm-aix4.h: Remove, this file is no longer included
4172 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4174 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4175 that file is now empty.
4176 (termdef): Remove prototype, function no longer used.
4178 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4180 * doc/gdbint.texinfo (Host Definition): Remove documentation
4181 for USE_O_NOCTTY, no longer used.
4182 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4183 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4185 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4187 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4188 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4189 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4191 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4193 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4194 instead of FIVE_ARG_PTRACE.
4196 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4197 (new_tty): Use O_NOCTTY unconditionally.
4199 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4201 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4202 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4205 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4207 * xcoff_symfile_finish: Replace last call to xmfree by call
4210 2004-08-10 Andrew Cagney <cagney@gnu.org>
4212 * main.c (captured_main): Delete call to init_malloc.
4213 * defs.h (init_malloc): Delete declaration.
4214 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4215 (init_malloc): Delete functions.
4217 * defs.h (xmfree): Delete.
4218 * utils.c (xmfree): Delete function.
4219 (xfree): Inline calls to xmfree and mfree.
4220 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4221 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4222 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4223 * somread.c (som_symfile_finish): Ditto.
4224 * objfiles.c (allocate_objfile, free_objfile):
4225 * nlmread.c (nlm_symfile_finish): Ditto.
4226 * hpread.c (hpread_symfile_finish): Ditto.
4227 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4228 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4229 * coffread.c (coff_symfile_finish): Ditto.
4231 * defs.h (xmcalloc): Delete declaration.
4232 * utils.c (xmcalloc): Delete.
4233 (xcalloc): Inline calls to xmcalloc and mcalloc.
4234 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4236 * symtab.c (create_demangled_names_hash): Ditto.
4238 * defs.h (xmrealloc): Delete.
4239 * utils.c (xmrealloc): Delete.
4240 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4241 * symmisc.c (extend_psymbol_list): Use xrealloc.
4242 * source.c (find_source_lines): Ditto.
4243 * hpread.c (hpread_lookup_type): Ditto.
4244 * dbxread.c (add_bincl_to_list): Ditto.
4246 * utils.c (xmmalloc): Delete.
4247 (xmalloc): Inline xmmalloc and mmalloc calls.
4248 (msavestring): Use xmalloc.
4249 * defs.h (xmmalloc): Delete declaration.
4250 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4252 * symmisc.c (extend_psymbol_list): Ditto.
4253 * symfile.c (init_psymbol_list): Ditto.
4254 * source.c (find_source_lines): Ditto.
4255 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4256 * elfread.c (elf_symtab_read): Ditto.
4257 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4258 * coffread.c (coff_symfile_init): Ditto.
4260 2004-08-10 David Carlton <carlton@bactrian.org>
4262 * MAINTAINERS: Remove David Carlton from c++ testsuite
4265 2004-08-10 Jerome Guitton <guitton@gnat.com>
4267 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4268 print a line feed before the prompt.
4270 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4272 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4274 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4276 General cleanup of the AIX xm include file:
4277 * config/xm-aix4.h (fd_set): Remove undefine.
4278 Remove include of <sys/select.h>.
4279 (HAVE_TERMIO): Remove define.
4281 (NULL): Remove redefine.
4282 (alloca): Remove #pragma.
4283 (vfork): Remove define.
4285 (SIGWINCH_HANDLER): Remove.
4286 (SIGWINCH_HANDLER_BODY): Remove.
4288 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4290 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4291 GDB_OSABI_OPENBSD_ELF.
4293 2004-08-07 Robert Millan <robertmh@gnu.org>
4295 * bsd-kvm.c: Check for nlist.h before including it.
4297 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4299 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4300 sigcontext' offset consistency checks for ancient BSD.
4302 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4304 * configure.in: Check for <sys/types.h>. Check return and
4305 argument types of ptrace.
4306 * configure, config.in: Regenerate.
4308 2004-08-09 Jim Blandy <jimb@redhat.com>
4310 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4311 rs6000_register_sim_regno): Doc fixes.
4313 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4315 * mips-tdep.c: Include "floatformat.h".
4316 (n32n64_floatformat_always_valid): New function.
4317 (floatformat_n32n64_long_double_big): New constant.
4318 (mips_gdbarch_init): Set size and format of long double
4319 for N32 and N64 ABIs.
4320 * Makefile.in (mips-tdep.o): Update dependencies.
4322 2004-08-08 Andrew Cagney <cagney@gnu.org>
4324 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4325 print. Improve script's error messages.
4326 * gdbarch.h: Re-generate.
4328 * gdbarch.sh (pformat): New function.
4329 (float_format, double_format, long_double_format): List with bit
4330 members. Use pformat when printing.
4331 * gdbarch.c, gdbarch.h: Re-generate.
4333 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4335 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4336 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4337 (ppcnbsd_supply_pcb): New function.
4338 (_initialize_ppcnbsd_nat): New prototype and function.
4339 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4340 (LOADLIBES): New variable.
4341 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4343 2004-08-08 Andrew Cagney <cagney@gnu.org>
4345 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4346 (builtin_type_ieee_double, builtin_type_ia64_quad)
4347 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4348 BE/LE floating-point types.
4349 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4350 (builtin_type_ieee_double, builtin_type_ia64_quad)
4351 (builtin_type_ia64_spill): Declare.
4352 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4353 (floatformat_ieee_double, floatformat_arm_ext)
4354 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4355 of LE/BE floatformats.
4356 * doublest.h: (struct floatformat, floatformat_ieee_single)
4357 (floatformat_ieee_double, floatformat_arm_ext)
4358 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4360 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4362 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4364 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4365 instead of regcache_raw_supply when storing the registers.
4367 * i386gnu-nat.c: Update copyright year.
4368 (gnu_store_registers): Don't use deprecated_registers and
4369 deprecated_registers_valid. Use regcache_valid_p and
4370 regcache_raw_supply instead.
4372 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4375 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4376 variables. Incapitalized "process".
4378 * configure.in: Add cursesX to the list of possible curses libs.
4379 Add cursesX.h to the list of possible curses headers.
4380 * configure, config.in: Regenerate.
4382 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4384 * configure.in: Test for struct lwp in <sys/lwp.h>.
4385 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4386 the offset of l_addr in struct lwp.
4388 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4390 * bsd-kvm.c: Include "gdbcore.h"
4391 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4393 2004-08-07 Andrew Cagney <cagney@gnu.org>
4395 * gdbtypes.c (build_flt, build_complex): New functions.
4396 (gdbtypes_post_init): Use.
4398 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4400 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4401 through to builtin_type_uint128.
4403 * c-exp.y: Use builtin_type function to obtain builtin types.
4405 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4407 * gdbtypes.c (gdbtypes_post_init): Update.
4408 (build_gdbtypes): Move initialization of builtin_type_int0
4409 through to builtin_type_uint128 from here ...
4410 (_initialize_gdbtypes): ... to here.
4411 * d10v-tdep.c (d10v_register_type): Update.
4413 * doublest.c: Update copyright.
4414 (floatformat_from_length): Call error when floatformat is NULL.
4415 (extract_floating_by_length): Remove NULL fmt check.
4416 (store_floating_by_length): Ditto.
4418 2004-08-07 Andrew Cagney <cagney@gnu.org>
4420 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4421 that the register is valid.
4423 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4425 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4426 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4427 struct frame_info *. Use safe_frame_unwind_memory instead of
4428 deprecated_read_memory_nobpt.
4429 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4430 changed signature of i386_linux_sigtramp_start and
4431 i386_linux_rt_sigtramp_start.
4433 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4434 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4435 instead of deprecated_read_memory_nobpt.
4436 (i386nbsd_sigtramp_p): Adjust for changed signature of
4437 i386nbsd_sigtramp_offset.
4439 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4440 safe_frame_unwind_memory instead of target_read_memory.
4442 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4444 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4445 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4446 (_initialize_kernel_u_addr): Remove prototype and function.
4447 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4449 * xcoffread.c: Likewise.
4451 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4453 * vax-nat.c: New file.
4454 * vaxbsd-nat.c: Tweak comment.
4455 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4457 (vax-nat.o): New dependency.
4458 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4459 (vax-*-ultrix2*): Remove.
4460 * config/vax/vax.mh: New file.
4461 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4462 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4463 (vax_register_u_addr): New prototype.
4464 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4465 * config/vax/vaxult2.mh: Remove file.
4466 * config/vax/vaxult.mh: Remove file.
4467 * config/vax/vaxbsd.mh: Remove file.
4468 * config/vax/vax.mt (TM_FILE): Remove.
4469 * config/vax/tm-vaxbsd.h: Remove file.
4471 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4473 * aix-thread.c (get_signaled_thread): New function.
4474 (iter_trap): Delete, no longer used.
4475 (iter_tid): New function.
4476 (pd_update): Find the thread that received the SIGTRAP signal
4477 by first locating the kernel thread, and then finding its
4480 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4482 * lin-lwp.c (child_wait): Continue inferior after processing
4483 PTRACE_EVENT_CLONE event.
4485 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4487 * MAINTAINERS: Add self to Write-After-Approval.
4489 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4491 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4492 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4494 2004-08-05 Andrew Cagney <cagney@gnu.org>
4496 * config/xm-sysv4.h: Delete file.
4497 * config/mips/xm-irix5.h: Delete file.
4498 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4499 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4500 * config/ia64/xm-aix.h: Delete file.
4501 * config/ia64/aix.mh (XM_FILE): Delete.
4502 * config/pa/xm-hppah.h: Delete file.
4503 * config/pa/hpux11w.mh (XM_FILE): Delete.
4504 * config/pa/hpux11.mh (XM_FILE): Delete.
4505 * config/pa/hpux1020.mh (XM_FILE): Delete.
4506 * config/pa/hppahpux.mh (XM_FILE): Delete.
4508 * config/alpha/xm-alphalinux.h: Delete file.
4509 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4510 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4511 * config/alpha/xm-alphaosf.h: Delete file.
4512 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4513 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4514 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4515 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4517 * config/i386/xm-i386v.h: Delete file.
4518 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4519 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4520 * config/i386/xm-i386sco.h: Delete file.
4521 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4522 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4523 * config/i386/xm-i386v4.h: Delete file.
4524 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4525 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4526 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4527 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4529 * config/vax/xm-vax.h: Delete file.
4530 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4531 * config/vax/xm-vaxult2.h: Delete file.
4532 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4533 * config/vax/vaxult2.mh (XM_FILE): Delete.
4534 * config/vax/xm-vaxult.h: Delete file.
4535 * config/vax/vaxult.mh (XM_FILE): Delete.
4536 * config/vax/xm-vaxbsd.h: Delete file.
4537 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4539 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4540 * gdbarch.h, gdbarch.c: Re-generate.
4541 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4542 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4543 * frame.h: Delete deprecated_read_fp from comments.
4544 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4545 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4547 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4549 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4550 trampoline in OpenBSD 3.5-current.
4552 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4555 * Makefile.in: Remove embedded page breaks.
4557 2004-08-04 Jim Blandy <jimb@redhat.com>
4559 * regcache.c (regcache_raw_read): Assert that, after calling
4560 target_fetch_registers, the register we're reading is cached.
4562 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4563 a call to 'internal_error', with a more helpful error message.
4564 * rs6000-tdep.c (e500_pseudo_register_read,
4565 e500_pseudo_register_write, rs6000_store_return_value): Same.
4567 2004-08-04 Andrew Cagney <cagney@gnu.org>
4569 * Makefile.in: Update dependencies.
4571 2004-08-04 Jim Blandy <jimb@redhat.com>
4573 Change the layout of the PowerPC E500 raw register cache to allow
4574 the lower 32-bit halves of the GPRS to be their own raw registers,
4575 not pseudoregisters.
4576 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4577 add ppc_ev0_upper_regnum flag.
4578 * rs6000-tdep.c: #include "reggroups.h".
4579 (spe_register_p): Recognize the ev upper half registers as SPE
4581 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4583 (e500_move_ev_register): New function.
4584 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4585 vector registers are the pseudo-registers now, formed by splicing
4586 together the gprs and the upper-half registers.
4587 (e500_register_reggroup_p): New function.
4589 (P8, A4): New macro.
4590 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4591 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4593 (registers_e500): Rearrange register set so that the raw register
4594 set contains 32-bit GPRs and upper-half registers, and the SPE
4595 vector registers become pseudo-registers.
4596 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4597 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4598 register numbers are now the same for the E500 as they are for
4599 other PowerPC variants. Register e500_register_reggroup_p as the
4600 register group function for the E500.
4601 * Makefile.in (rs6000-tdep.o): Update dependencies.
4603 Adapt PPC E500 native support to the new raw regcache layout.
4604 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4605 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4606 (fetch_spe_register, store_spe_register): Handle fetching/storing
4607 all the SPE registers at once, if regno == -1. These now take
4608 over the job of fetch_spe_registers and store_spe_registers.
4609 (fetch_spe_registers, store_spe_registers): Deleted.
4610 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4611 unconditionally; they're always raw. Fetch/store SPE upper half
4612 registers, if present, instead of ev registers.
4613 (fetch_register, store_register): Remove sanity checks: gprs are
4614 never pseudo-registers now, so we never need to even mention any
4615 registers that are ever pseudoregisters.
4617 Use a fixed register numbering when communicating with the PowerPC
4619 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4620 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4621 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4623 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4624 init_sim_regno_table.
4625 * Makefile.in (gdb_sim_ppc_h): New variable.
4626 (rs6000-tdep.o): Update dependencies.
4628 2004-08-02 Andrew Cagney <cagney@gnu.org>
4630 * cris-tdep.c (cris_register_size): Restore function, still used
4633 * gdbarch.sh (deprecated_target_read_fp)
4634 (deprecated_frame_locals_address, deprecated_frame_args_address)
4635 (deprecated_frame_chain_valid, deprecated_frame_chain)
4636 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4637 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4638 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4639 * gdbarch.h, gdbarch.c: Re-generate.
4640 * regcache.c (deprecated_read_fp): Do not call
4641 DEPRECATED_TARGET_READ_FP_P.
4642 * infcmd.c (default_print_registers_info): Do not call
4643 DEPRECATED_DO_REGISTERS_INFO.
4644 * frame-base.c (default_frame_locals_address): Do not call
4645 DEPRECATED_FRAME_LOCALS_ADDRESS.
4646 (default_frame_args_address): Do not call
4647 DEPRECATED_FRAME_ARGS_ADDRESS.
4649 * gdbarch.sh (deprecated_register_raw_size)
4650 (deprecated_register_virtual_size:int): Delete.
4651 * gdbarch.h, gdbarch.c: Re-generate.
4652 * cris-tdep.c (cris_register_size): Delete.
4653 (cris_gdbarch_init): Update.
4654 * alpha-tdep.c (alpha_register_raw_size)
4655 (alpha_register_virtual_size): Delete.
4656 (alpha_gdbarch_init): Update.
4658 * gdbarch.sh (deprecated_register_virtual_type)
4659 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4660 (deprecated_dummy_write_sp): Delete.
4661 * gdbarch.h, gdbarch.c: Re-generate.
4663 * gdbarch.sh (deprecated_register_bytes): Delete.
4664 * gdbarch.h, gdbarch.c: Re-generate.
4665 * regcache.c (deprecated_register_bytes): New function.
4666 * regcache.h (deprecated_register_bytes): Declare.
4667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4668 * v850-tdep.c (v850_gdbarch_init): Update.
4669 * sh64-tdep.c (sh64_gdbarch_init): Update.
4670 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4671 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4672 * mcore-tdep.c (mcore_gdbarch_init): Update.
4673 * cris-tdep.c (cris_gdbarch_init): Update.
4674 * arm-tdep.c (arm_gdbarch_init): Update.
4675 * remote.c (init_remote_state): Update.
4676 * remote-vx.c (vx_prepare_to_store): Update.
4677 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4678 * irix5-nat.c (fetch_core_registers): Update.
4679 * cris-tdep.c (cris_register_bytes_ok): Update.
4680 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4682 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4683 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4684 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4685 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4686 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4687 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4688 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4689 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4690 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4691 with mips_insn16 and mips_insn32.
4693 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4694 * rs6000-tdep.c (rs6000_push_dummy_call)
4695 (rs6000_extract_return_value): Use register_size.
4696 * xstormy16-tdep.c (xstormy16_get_saved_register)
4697 (xstormy16_extract_return_value): Ditto.
4698 * valops.c (value_assign): Ditto.
4699 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4700 * v850-tdep.c (v850_extract_return_value): Ditto.
4701 * tracepoint.c (collect_symbol): Ditto.
4702 * target.c (debug_print_register): Ditto.
4703 * stack.c (frame_info): Ditto.
4704 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4705 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4706 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4707 (store_register_using_P): Ditto.
4708 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4709 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4710 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4711 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4712 * regcache.c (deprecated_read_register_bytes)
4713 (deprecated_write_register_bytes, read_register)
4714 (write_register): Ditto.
4715 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4716 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4717 * monitor.c (monitor_supply_register, monitor_fetch_register)
4718 (monitor_store_register): Ditto.
4719 * mn10300-tdep.c (mn10300_pop_frame_regular)
4720 (mn10300_print_register): Ditto.
4721 * mipsv4-nat.c (fill_fpregset): Ditto.
4722 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4723 (mips64_fill_fpregset): Ditto.
4724 * mi/mi-main.c (register_changed_p, get_register)
4725 (mi_cmd_data_write_register_values): Ditto.
4726 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4727 * irix5-nat.c (fill_gregset, fetch_core_registers):
4728 * infrun.c (write_inferior_status_register): Ditto.
4729 * infptrace.c (fetch_register, store_register): Ditto.
4730 * infcmd.c (default_print_registers_info): Ditto.
4731 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4732 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4733 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4734 * hpux-thread.c (hpux_thread_fetch_registers)
4735 (hpux_thread_store_registers): Ditto.
4736 * hppah-nat.c (store_inferior_registers, fetch_register):
4737 * findvar.c (value_from_register): Ditto.
4738 * dve3900-rom.c (fetch_bitmapped_register):
4739 * cris-tdep.c (cris_gdbarch_init): Ditto.
4740 * alpha-tdep.h: Ditto.
4741 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4743 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4744 DEPRECATED_REGISTER_RAW_SIZE from comments.
4745 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4746 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4747 DEPRECATED_REGISTER_RAW_SIZE.
4748 * findvar.c (value_of_register): Simplify by assuming that the
4749 registers raw and virtual sizes are identical.
4750 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4752 * arch-utils.c (generic_register_size): Simplify by assuming
4755 * regcache.c (legacy_read_register_gen, real_register)
4756 (legacy_write_register_gen): Delete, not used.
4758 * regcache.c (struct regcache_descr): Delete legacy_p.
4759 (init_legacy_regcache_descr): Delete function.
4760 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4761 Do not use deprecated register functions.
4762 (regcache_raw_read, deprecated_write_register_gen):
4763 (deprecated_read_register_gen, regcache_raw_write): Delete code
4764 predicated on legacy_p.
4765 (register_size): Delete check against register raw size.
4767 * cris-tdep.c (cris_register_type): Replace
4768 cris_register_virtual_type.
4769 (cris_gdbarch_init): Update, set register_type.
4771 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4772 * gdbarch.h, gdbarch.c: Re-generate.
4773 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4774 (arm_gdbarch_init) Do not set frameless function invocation.
4775 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4776 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4777 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4778 (frv_gdbarch_init): Do not set frameless function invocation.
4779 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4780 * sh-tdep.c (sh_gdbarch_init): Ditto.
4781 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4782 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4783 * avr-tdep.c (avr_gdbarch_init): Ditto.
4785 * blockframe.c (legacy_frame_chain_valid): Delete function.
4787 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4788 and pc. Update comments.
4789 (pc_in_dummy_frame): Delete function.
4790 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4792 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4793 call_hi, top and pc, use the id.
4794 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4796 * dummy-frame.c: Include "gdb_string.h".
4797 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4798 (generic_save_dummy_frame_tos): Delete.
4799 (dummy_frame_push): New function, replaces above.
4800 * dummy-frame.h: Update copyright.
4801 (dummy_frame_push): Declare.
4802 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4803 (generic_save_call_dummy_addr): Delete declarations.
4804 * infcall.c: Include "dummy-frame.h".
4805 (call_function_by_hand): Add locals caller_regcache,
4806 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4807 with call to frame_save_as_regcache plus cleanup. Delete calls to
4808 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4809 Move clear_proceed_status to just before the resume, add call to
4810 dummy_frame_push (discard cleanup).
4811 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4812 (dummy-frame.o): Add $(gdb_string_h).
4814 2004-08-01 Andrew Cagney <cagney@gnu.org>
4816 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4817 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4818 * dummy-frame.c (find_dummy_frame): Delete.
4819 (struct dummy_frame_cache, dummy_frame_sniffer)
4820 (dummy_frame_prev_register, dummy_frame_this_id)
4821 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4822 frame unwinder using a dummy_frame_cache.
4824 2004-08-01 Andrew Cagney <cagney@gnu.org>
4826 * frame.h (frame_save_as_regcache): Declare.
4827 * frame.c (frame_save_as_regcache): New function.
4828 (do_frame_read_register): Replace do_frame_unwind_register.
4829 (frame_pop): Use frame_save_as_regcache.
4830 * dummy-frame.c (generic_push_dummy_frame): Use
4831 frame_save_as_regcache.
4833 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4835 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4836 file as included until we record the first line in the linetable.
4838 2004-08-01 Andrew Cagney <cagney@gnu.org>
4840 * frame.h (deprecated_pop_dummy_frame)
4841 (deprecated_read_register_dummy)
4842 (deprecated_generic_find_dummy_frame): Delete.
4843 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4844 (deprecated_read_register_dummy)
4845 (deprecated_find_dummy_frame_regcache)
4846 (discard_innermost_dummy)
4847 (deprecated_pop_dummy_frame): Delete.
4848 (dummy_frame_this_id): Simplify.
4849 (struct dummy_frame): Delete "fp" and "sp".
4850 (find_dummy_frame): Simplify.
4851 (generic_push_dummy_frame): Do not set "fp" or "sp".
4852 (fprint_dummy_frames): Do not print "fp" and "sp"
4854 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4856 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4857 (struct i386_insn): New structure.
4858 (i386_match_insn): New function.
4859 (i386_frame_setup_skip_insns): New variable.
4860 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4861 array i386_frame_setup_insns of instructions that should be
4862 skipped inside the frame setup sequence.
4864 2004-08-01 Andrew Cagney <cagney@gnu.org>
4866 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4867 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4868 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4869 * stack.c (frame_info): Delete references to
4870 DEPRECATED_FRAME_INIT_SAVED_REGS and
4871 deprecated_get_frame_saved_regs.
4872 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4873 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4874 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4875 (frame_unwind_register_signed)
4876 (frame_unwind_register_unsigned)
4877 (frame_unwind_unsigned_register): Use register_size.
4878 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4879 (deprecated_frame_xmalloc_with_cleanup)
4880 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4881 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4883 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4884 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4885 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4886 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4888 * infcall.c (call_function_by_hand): Do not use
4889 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4890 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4891 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4892 DEPRECATED_STACK_ALIGN.
4894 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4896 Committed by Andrew Cagney.
4897 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4899 2004-08-01 Andrew Cagney <cagney@gnu.org>
4901 * mips-tdep.c (mips16_frame_cache)
4902 (mips16_frame_this_id, mips16_frame_prev_register)
4903 (mips16_frame_unwind, mips16_frame_sniffer)
4904 (mips16_frame_base_address, mips16_frame_base)
4905 (mips16_frame_base_sniffer, mips32_frame_cache)
4906 (mips32_frame_this_id, mips32_frame_prev_register)
4907 (mips32_frame_unwind, mips32_frame_sniffer)
4908 (mips32_frame_base_address, mips32_frame_base)
4909 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4910 separate heuristic mips16 and mips32 unwinders.
4911 (mips_stub_frame_cache, mips_stub_frame_this_id)
4912 (mips_stub_frame_prev_register)
4913 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4914 (mips_stub_frame_base_address, mips_stub_frame_base)
4915 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4916 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4917 match true mdebug frames.
4918 (non_heuristic_proc_desc): Add forward declaration.
4920 2004-08-01 Andrew Cagney <cagney@gnu.org>
4922 * config/mips/tm-irix6.h: Delete file.
4923 * config/mips/tm-irix5.h: Delete file.
4924 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4925 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4927 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4928 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4929 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4930 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4931 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4932 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4933 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4934 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4935 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4936 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4937 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4938 (TARGET_SIGNAL_RAW_VALUES): Delete.
4939 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4941 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4942 (TARGET_HW_WATCH_LIMIT): Delete.
4943 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4944 * minimon.h: Delete file.
4946 * trad-frame.c (trad_frame_get_this_base)
4947 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4949 * trad-frame.h (trad_frame_set_this_base)
4950 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4952 2004-07-31 Andrew Cagney <cagney@gnu.org>
4954 * trad-frame.c (trad_frame_get_prev_register): Rename
4955 trad_frame_get_prev_register.
4956 * vax-tdep.c (vax_frame_prev_register): Update.
4957 * trad-frame.h: Update.
4958 * trad-frame.c (trad_frame_get_register): Update.
4959 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4960 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4962 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4963 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4965 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4967 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4969 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4971 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4973 * s390-tdep.c (s390_frame_prev_register)
4974 (s390_stub_frame_prev_register)
4975 (s390_sigtramp_frame_prev_register): Update.
4976 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4977 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4978 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4979 * m88k-tdep.c (m88k_frame_prev_register)
4980 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4981 * m32r-tdep.c (m32r_frame_prev_register): Update.
4982 * hppa-tdep.c (hppa_frame_prev_register_helper)
4983 * frv-tdep.c (frv_frame_prev_register): Update.
4984 * d10v-tdep.c (d10v_frame_prev_register): Update.
4985 * cris-tdep.c (cris_frame_prev_register): Update.
4986 * avr-tdep.c (avr_frame_prev_register): Update.
4987 * arm-tdep.c (arm_prologue_prev_register)
4988 (arm_sigtramp_prev_register): Update.
4990 2004-07-31 Andrew Cagney <cagney@gnu.org>
4992 * frame.h (legacy_saved_regs_unwind)
4993 (legacy_frame_chain_valid, legacy_frame_p)
4994 (enum frame_type): Delete UNKNOWN_FRAME.
4995 * dummy-frame.c (dummy_frame_this_id): Simplify.
4996 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4997 * frame.c (struct frame_info): Delete the field "type".
4998 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4999 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
5000 (legacy_saved_regs_unwind, legacy_frame_p)
5001 (frame_type_from_pc): Delete.
5002 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
5003 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
5005 2004-07-31 Mark Kettenis <kettenis@gnu.org>
5007 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
5010 * mips-nat.c: Remove file.
5011 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
5012 (mips-nat.o): Remove dependency.
5014 * infptrace.c: Update copyright year.
5015 (fetch_register): Pass NULL in regcache_raw_supply call instead of
5016 explicitly setting the buffer to all zeroes.
5018 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
5019 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
5021 2004-07-30 Andrew Cagney <cagney@gnu.org>
5023 * GDB 6.2 released from gdb_6_2-branch.
5025 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
5027 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
5029 * exec.c (exec_file_attach):
5030 * nto-tdep.c (nto_find_and_open_solib):
5031 * pa64solib.c (pa64_solib_sizeof_symbol_table):
5032 * solib.c (solib_open):
5033 * somsolib.c (som_solib_sizeof_symbol_table):
5034 * source.c (is_regular_file, openp, open_source_file):
5035 * symfile.c (symfile_bfd_open):
5036 * wince.c (upload_to_device): Differentiate between the search for
5037 binary and source files.
5039 2004-07-30 Andrew Cagney <cagney@gnu.org>
5041 * complaints.c (_initialize_complaints): Pass NULL to
5042 add_setshow_zinteger_cmd for help_doc.
5043 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
5045 2004-07-30 Andrew Cagney <cagney@gnu.org>
5048 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
5049 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
5050 $(PACKAGE).pot and update-po.
5051 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
5052 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
5053 (update-po): New rules.
5054 (localedir): Define using autoconf.
5055 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
5056 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
5057 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
5058 * configure.in: Generate CATALOGS and LINGUAS from contents of
5059 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
5060 * configure: Re-generate.
5061 * po/gdbtext: New file
5063 2004-07-30 Jerome Guitton <guitton@gnat.com>
5065 * MAINTAINERS: Reorder Write After Approval list in alphabetical
5068 2004-07-30 David Lecomber <dsl@sources.redhat.com>
5070 * dwarf2read.c (read_file_scope): Set producer if attribute
5072 (struct dwarf2_cu): Added new member producer.
5074 2004-07-30 Jerome Guitton <guitton@gnat.com>
5076 * inflow.c (kill_command): release file handles in BFD.
5077 * exec.c (exec_file_attach): Ditto.
5078 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5080 2004-07-29 Andrew Cagney <cagney@gnu.org>
5082 * PROBLEMS (mips-irix): Note that it is broken.
5084 2004-07-29 Andrew Cagney <cagney@gnu.org>
5086 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5087 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5089 * config/xm-nbsd.h: Delete file.
5090 * config/arm/xm-nbsd.h: Delete file.
5091 * config/i386/xm-nbsd.h: Delete file.
5092 * config/ns32k/xm-nbsd.h: Delete file.
5093 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5094 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5095 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5096 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5097 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5099 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5100 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5101 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5102 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5103 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5104 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5106 * config/powerpc/xm-linux.h: Delete empty file.
5107 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5108 * config/powerpc/linux.mh (XM_FILE): Delete.
5109 * config/m68k/xm-linux.h: Delete empty file.
5110 * config/m68k/linux.mh (XM_FILE): Delete.
5111 * config/ia64/xm-linux.h: Delete empty file.
5112 * config/ia64/linux.mh (XM_FILE): Delete.
5113 * config/arm/xm-linux.h: Delete empty file.
5114 * config/arm/linux.mh (XM_FILE): Delete.
5116 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5117 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5118 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5119 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5120 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5121 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5122 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5123 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5125 * config/m68k/xm-m68k.h: Delete file.
5126 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5128 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5129 * config/pa/xm-linux.h: Delete empty file.
5130 * config/pa/linux.mh (XM_FILE): Delete.
5131 * config/i386/xm-i386.h: Delete empty file.
5132 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5134 * config/i386/obsdaout.mh (XM_FILE): Delete.
5135 * config/i386/obsd64.mh (XM_FILE): Delete.
5136 * config/i386/fbsd64.mh (XM_FILE): Delete.
5137 * config/i386/nto.mh (XM_FILE): Delete.
5138 * config/i386/obsd.mh (XM_FILE): Delete.
5139 * config/i386/linux64.mh (XM_FILE): Delete.
5140 * config/i386/linux.mh (XM_FILE): Delete.
5141 * config/i386/i386sol2.mh (XM_FILE): Delete.
5142 * config/i386/i386gnu.mh (XM_FILE): Delete.
5143 * config/i386/fbsd.mh (XM_FILE): Delete.
5144 * config/i386/nbsd64.mh (XM_FILE): Delete.
5146 2004-07-29 Andrew Cagney <cagney@gnu.org>
5148 * config/pa/xm-linux.h: Do not include "floatformat.h".
5149 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5150 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5151 * config/i386/xm-i386.h: Do not include "floatformat.h".
5152 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5153 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5154 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5155 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5156 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5157 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5158 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5159 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5160 * configure, config.in: Regenerate.
5161 * configure.host (gdb_host_float_format, gdb_host_double_format)
5162 (gdb_host_long_double_format): Set according to the host.
5164 2004-07-29 Andrew Cagney <cagney@gnu.org>
5166 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5168 2004-07-28 Andrew Cagney <cagney@gnu.org>
5170 * PROBLEMS: Mention threads/1650.
5171 * NEWS: Mention the NPTL fix.
5173 2004-07-28 Andrew Cagney <cagney@gnu.org>
5175 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5176 (add_setshow_cmd_full): Make static.
5177 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5178 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5179 * cli/cli-decode.c (add_setshow_filename_cmd)
5180 (add_setshow_string_cmd): New functions.
5181 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5182 * mips-tdep.c (_initialize_mips_tdep): Update.
5183 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5184 * cli/cli-logging.c (_initialize_cli_logging): Update.
5185 * complaints.c (_initialize_complaints): Update.
5186 * remote.c (_initialize_remote): Update.
5188 2004-07-28 Andrew Cagney <cagney@gnu.org>
5190 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5191 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5192 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5193 print parameters. Make string parameters constant.
5194 * command.h: Update. Update copyright.
5195 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5196 * observer.c (_initialize_observer): Ditto.
5197 * frame.c (_initialize_frame): Ditto.
5198 * complaints.c (_initialize_complaints): Ditto.
5199 * maint.c (_initialize_maint_cmds): Ditto.
5200 * target.c (initialize_targets): Ditto.
5201 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5202 * infcall.c (_initialize_infcall): Ditto.
5203 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5204 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5205 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5206 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5207 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5209 2004-07-28 Andrew Cagney <cagney@gnu.org>
5211 * gdbtypes.c (lookup_primitive_typename): Delete function.
5212 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5213 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5214 * gdbtypes.c (lookup_typename): Ditto.
5215 * f-exp.y (yylex): Ditto.
5216 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5218 * scm-lang.c (c_builtin_types): Delete extern declaration.
5219 (scm_language_defn): Replace
5220 string_char_type and primitive_type_vector with
5221 la_language_arch_info.
5222 * jv-lang.c (java_language_defn): Replace
5223 string_char_type and primitive_type_vector with
5224 la_language_arch_info.
5225 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5226 c_builtin_types in comment.
5227 * c-lang.h (struct language_arch_info): Declare opaque.
5228 (c_language_arch_info): Declare.
5229 (c_builtin_types): Delete declaration.
5230 * c-lang.c (c_language_arch_info): Set string_char_type to
5231 builtin_char, not builtin_true_char. Make global.
5232 (c_builtin_types): Delete array.
5233 (asm_language_defn, minimal_language_defn): Replace
5234 string_char_type and primitive_type_vector with
5235 la_language_arch_info.
5237 2004-07-28 Andrew Cagney <cagney@gnu.org>
5239 * gdbtypes.h (struct builtin_type): Rename true_char to
5241 * gdbtypes.c (gdbtypes_post_init): Update.
5242 * c-lang.c (arch_info): New function.
5243 (enum c_primitive_types): New enum.
5244 (c_language_defn): Instead of string_char_type and
5245 primitive_type_vector set la_language_arch_info.
5247 2004-07-28 Andrew Cagney <cagney@gnu.org>
5249 * language.h (struct language_arch_info): Fix typo
5250 s/primative/primitive/.
5251 * gdbtypes.c (lookup_primitive_typename): Ditto.
5252 * language.c (language_lookup_primitive_type_by_name)
5253 (unknown_language_arch_info): Ditto.
5255 2004-07-27 Andrew Cagney <cagney@gnu.org>
5257 * defs.h (enum language): Add nr_languages.
5258 * language.h (struct language_arch_info): Define.
5259 (struct language_defn): Add la_language_arch_info.
5260 (language_lookup_primative_type_by_name): Declare.
5261 (language_string_char_type): Declare.
5262 * language.c (_initialize_language, language_gdbarch_post_init)
5263 (struct language_gdbarch, language_gdbarch_data): Implement
5264 per-architecture language information.
5265 (unknown_language_arch_info, language_string_char_type)
5266 (language_lookup_primative_type_by_name): New functions.
5267 (unknown_language_defn, auto_language_defn)
5268 (local_language_defn): Set la_language_arch_info to
5269 unknown_language_arch_info.
5270 (unknown_builtin_types): Delete.
5271 * gdbtypes.c (lookup_primitive_typename): Use
5272 language_lookup_primative_type_by_name.
5273 (create_string_type): Use language_string_char_type.
5274 * values.c (value_from_string): Use language_string_char_type.
5275 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5276 * p-lang.c (pascal_language_defn): Ditto.
5277 * m2-lang.c (m2_language_defn): Ditto.
5278 * jv-lang.c (java_language_defn): Ditto.
5279 * objc-lang.c (objc_language_defn): Ditto.
5280 * f-lang.c (f_language_defn): Ditto.
5281 * c-lang.c (c_language_defn, cplus_language_defn)
5282 (asm_language_defn, minimal_language_defn): Ditto.
5284 2004-07-27 Andrew Cagney <cagney@gnu.org>
5286 * gdbtypes.h (struct builtin_type): Declare.
5287 (builtin_type): Declare.
5288 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5289 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5290 (gdbtypes_post_init): New function.
5291 (builtin_type): New function.
5293 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5295 * remote-m32r-sdi.c: Fix breakpoint bug.
5296 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5297 recv_char_data, recv_long_data): New functions to replace communication
5300 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5302 Document PR threads/1650.
5303 * PROBLEMS (Threads): Document problem with many threads
5305 2004-07-26 Andrew Cagney <cagney@gnu.org>
5307 * gdb-mi.el: Move from here ...
5308 * mi/gdb-mi.el: ... to here.
5310 2004-07-26 Andrew Cagney <cagney@gnu.org>
5312 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5313 * main.c (captured_main): When in batch mode always detach.
5315 2004-07-26 Andrew Cagney <cagney@gnu.org>
5317 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5318 and h8300 as broken.
5319 * NEWS: END-OF-LIFE frame compatibility module.
5320 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5323 2004-07-26 Andrew Cagney <cagney@gnu.org>
5325 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5326 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5327 * wince.c (_initialize_wince): Update.
5328 * win32-nat.c (_initialize_win32_nat): Update.
5329 * varobj.c (_initialize_varobj): Update.
5330 * valops.c (_initialize_valops): Update.
5331 * utils.c (initialize_utils, initialize_utils): Update.
5332 * tui/tui-win.c (_initialize_tui_win): Update.
5333 * top.c (init_main): Update.
5334 * symfile.c (_initialize_symfile): Update.
5335 * source.c (_initialize_source): Update.
5336 * somsolib.c (_initialize_som_solib): Update.
5337 * solib.c (_initialize_solib): Update.
5338 * solib-frv.c (_initialize_frv_solib): Update.
5339 * serial.c (_initialize_serial): Update.
5340 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5341 * remote.c (_initialize_remote, _initialize_remote): Update.
5342 * remote-vx.c (_initialize_vx): Update.
5343 * remote-utils.c (_initialize_sr_support): Update.
5344 * remote-sds.c (_initialize_remote_sds): Update.
5345 * remote-mips.c (_initialize_remote_mips): Update.
5346 * remote-e7000.c (_initialize_remote_e7000): Update.
5347 * proc-api.c (_initialize_proc_api): Update.
5348 * printcmd.c: Update.
5349 * parse.c (_initialize_parse): Update.
5350 * pa64solib.c (_initialize_pa64_solib): Update.
5351 * p-valprint.c (_initialize_pascal_valprint): Update.
5352 * monitor.c (_initialize_remote_monitors): Update.
5353 * mips-tdep.c (_initialize_mips_tdep): Update.
5354 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5355 * maint.c (_initialize_maint_cmds): Update.
5356 * lin-lwp.c (_initialize_lin_lwp): Update.
5357 * language.c (_initialize_language): Update.
5358 * kod.c (_initialize_kod): Update.
5359 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5360 * i386-tdep.c (_initialize_i386_tdep): Update.
5361 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5362 * gdbarch.sh: Update.
5363 * gdbarch.c: Re-generate.
5364 * gdb-events.sh: Update.
5365 * gdb-events.c: Re-generate.
5366 * frame.c (_initialize_frame): Update.
5368 * demangle.c (_initialize_demangler): Update.
5369 * dcache.c (_initialize_dcache): Update.
5370 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5371 * cp-valprint.c (_initialize_cp_valprint): Update.
5372 * corefile.c (_initialize_core): Update.
5373 * command.h: Update.
5374 * cli/cli-decode.h: Update.
5375 * cli/cli-cmds.c (init_cli_cmds): Update.
5376 * charset.c (_initialize_charset): Update.
5377 * breakpoint.c (_initialize_breakpoint): Update.
5378 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5379 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5380 * aix-thread.c (_initialize_aix_thread): Update.
5382 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5384 Partial fix for PR backtrace/1718.
5385 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5386 that GCC migrates into the prolugue. Don't handle any
5387 instructions that clobber %ebx.
5389 2004-07-23 Andrew Cagney <cagney@gnu.org>
5391 Use regcache_raw_collect instead of regcache_collect.
5392 * regcache.h (regcache_collect): Delete declaration.
5393 * regcache.c (regcache_colect): Delete function.
5394 * win32-nat.c (do_child_store_inferior_registers): Update.
5395 * sol-thread.c (sol_thread_store_registers): Update.
5396 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5397 * rs6000-nat.c (store_register): Update.
5398 * remote.c (store_register_using_P, remote_store_registers): Update.
5399 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5400 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5401 (fill_vrregset, store_spe_registers, fill_gregset)
5402 (fill_gregset): Update.
5403 * nto-procfs.c (procfs_store_registers): Update.
5404 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5405 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5406 * m68klinux-nat.c (store_register, fill_gregset): Update.
5407 * m68k-tdep.c (fill_gregset): Update.
5408 * infptrace.c (store_register): Update.
5409 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5410 * i386-linux-nat.c (store_register, fill_gregset): Update.
5411 * hppa-linux-nat.c (fill_gregset): Update.
5412 * go32-nat.c (store_register): Update.
5413 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5414 (store_fp_regs): Update.
5415 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5416 (store_nwfpe_extended, store_fpregister, store_fpregs)
5417 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5418 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5419 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5420 (store_regs_user_thread, store_regs_kernel_thread): Update.
5422 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5424 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5425 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5427 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5428 member of `struct comp_unit'.
5430 2004-07-23 Andrew Cagney <cagney@gnu.org>
5432 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5433 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5435 2004-07-23 Martin Hunt <hunt@redhat.com>
5436 Kevin Buettner <kevinb@redhat.com>
5438 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5439 alignment was being added to the offset instead of multiplied.
5441 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5443 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5444 changed signal trampoline in OpenBSD 3.5-current.
5446 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5447 <machine/pcb.h> and "bsd-kvm.h".
5448 (sparc64nbsd_supply_pcb): New function.
5449 (_initialize_sparc64nbsd_nat): Renamed from
5450 _initialize_sparcnbsd_nat. Enable libkvm interface.
5451 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5452 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5453 (LOADLIBES): New variable.
5455 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5457 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5459 2004-07-21 Andrew Cagney <cagney@gnu.org>
5461 Use regcache_raw_supply instead of supply_register.
5462 * regcache.h (supply_register): Delete declaration.
5463 * regcache.c (supply_register): Delete function.
5464 * wince.c (do_child_fetch_inferior_registers): Update.
5465 * win32-nat.c (do_child_fetch_inferior_registers)
5466 (fetch_elf_core_registers): Update.
5467 * v850ice.c (v850ice_fetch_registers): Update.
5468 * thread-db.c (thread_db_store_registers): Update.
5469 * sol-thread.c (sol_thread_store_registers): Update.
5470 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5471 * rs6000-nat.c (fetch_register): Update.
5472 * rom68k-rom.c (rom68k_supply_one_register): Update.
5473 * remote.c (remote_wait, remote_async_wait): Update.
5474 * remote-st.c (get_hex_regs): Update.
5475 * remote-sim.c (gdbsim_fetch_register): Update.
5476 * remote-sds.c (sds_fetch_registers): Update.
5477 * remote-rdp.c (remote_rdp_fetch_register): Update.
5478 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5479 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5480 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5481 * remote-hms.c (init_hms_cmds): Update.
5482 * remote-est.c (init_est_cmds): Update.
5483 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5484 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5485 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5486 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5487 (fetch_register, supply_vrregset, supply_vrregset)
5488 (fetch_spe_registers): Update.
5489 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5490 * monitor.c (monitor_supply_register): Update.
5491 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5492 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5493 (mipsnbsd_supply_fpreg): Update.
5494 * mips-nat.c (fetch_inferior_registers)
5495 (fetch_core_registers): Update.
5496 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5497 (supply_fpregset, mips64_supply_gregset)
5498 (mips64_supply_fpregset): Update.
5499 * m68klinux-nat.c (fetch_register, supply_gregset)
5500 (supply_fpregset): Update.
5501 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5502 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5503 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5504 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5505 * infptrace.c (fetch_register): Update.
5506 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5507 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5508 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5509 (gnu_fetch_registers, gnu_store_registers): Update.
5510 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5511 * i386-linux-nat.c (fetch_register, supply_gregset)
5512 (dummy_sse_values): Update.
5513 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5514 * hppah-nat.c (fetch_register): Update.
5515 * hppa-linux-nat.c (fetch_register, supply_gregset)
5516 (supply_fpregset): Update.
5517 * go32-nat.c (fetch_register): Update.
5518 * dve3900-rom.c (fetch_bitmapped_register)
5519 (_initialize_r3900_rom): Update.
5520 * cris-tdep.c (supply_gregset): Update.
5521 * abug-rom.c (init_abug_cmds): Update.
5522 * core-aout.c (fetch_core_registers): Update.
5523 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5524 (fetch_register, fetch_fp_register): Update.
5525 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5526 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5527 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5528 * alphanbsd-tdep.c (fetch_core_registers): Update.
5529 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5530 * alpha-nat.c (fetch_osf_core_registers)
5531 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5532 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5533 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5535 2004-07-21 Andrew Cagney <cagney@gnu.org>
5537 * PROBLEMS: Mention breakpoints/1702.
5538 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5539 that is known to work.
5541 2004-07-21 Andrew Cagney <cagney@gnu.org>
5543 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5544 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5545 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5546 (handle_inferior_event): Wrap call to deprecated
5547 IGNORE_HELPER_CALL in #ifdef.
5548 * config/mips/tm-nbsd.h: Update.
5550 2004-07-20 Jim Blandy <jimb@redhat.com>
5552 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5553 bfd_mach_ppc has no segment registers.
5555 Include PowerPC SPR numbers for special-purpose registers.
5556 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5557 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5558 new member in initializer.
5559 (S, S4, SN4, S64): New macros for defining special-purpose
5561 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5562 registers_403, registers_403GC, registers_505, registers_860,
5563 registers_601, registers_602, registers_603, registers_604,
5564 registers_750, registers_e500): Use them.
5566 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5567 replace references with expression used to initialize variable.
5569 2004-07-20 Andrew Cagney <cagney@gnu.org>
5571 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5573 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5574 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5575 (s390_sigtramp_frame_sniffer): Update.
5576 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5577 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5578 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5579 (mips32_fetch_instruction): Update.
5580 * mcore-tdep.c (get_insn): Update.
5581 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5582 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5583 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5584 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5585 (i386_linux_rt_sigtramp_start): Update.
5586 * i386-linux-nat.c (child_resume): Update.
5587 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5588 * hppa-linux-tdep.c (insns_match_pattern): Update.
5589 * gdbcore.h: Update.
5590 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5591 * frame.c (safe_frame_unwind_memory): Update.
5592 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5593 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5594 * alpha-tdep.c (alpha_read_insn): Update.
5596 2004-07-20 Andrew Cagney <cagney@gnu.org>
5598 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5599 containing both bytes and mask. Add "frame_type".
5600 * tramp-frame.c (tramp_frame_start): Update.
5601 (tramp_frame_prepend_unwinder): Update.
5602 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5603 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5604 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5605 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5607 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5609 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5610 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5611 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5612 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5614 2004-07-17 Andrew Cagney <cagney@gnu.org>
5616 * NEWS, PROBLEMS: Update for 6.2.
5618 * README: Update to 6.2.
5620 * utils.c (xvasprintf): Call xstrvprintf.
5622 * parse.c: Update copyright.
5623 (null_post_parser): Eliminate ARGSUSED.
5625 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5626 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5627 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5629 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5630 * ppc-linux-nat.c: Use "Linux kernel".
5631 * hppa-linux-tdep.c: Use GNU/Linux.
5632 * hppa-linux-nat.c: Use GNU/Linux.
5633 * dwarfread.c: Add [sic] to use of Linux.
5635 * hppa-linux-nat.c: Do not include <string.h>.
5636 (supply_fpregset): Remove "register" attribute.
5638 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5640 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5642 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5643 * configure, config.in: Regenerated.
5645 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5647 (vaxbsd_supply_pcb): New function.
5648 (_initialize_vaxbsd_nat): New prototype and function.
5649 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5651 (LOADLIBES): New variable.
5652 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5653 (LOADLIBES): New variable.
5654 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5655 (LOADLIBES): New variable.
5656 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5658 2004-07-16 Andrew Cagney <cagney@gnu.org>
5660 * defs.h (event_loop_p): Replace variable declaration with macro,
5662 * main.c (captured_main): Delete options "-async" and "-noasync".
5663 (event_loop_p): Delete variable.
5664 * NEWS: Mention that "-async" and "-noasync" were removed.
5666 2004-07-16 Andrew Cagney <cagney@gnu.org>
5668 * remote-m32r-sdi.c: Re-indent.
5670 2004-07-16 Jim Blandy <jimb@redhat.com>
5672 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5673 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5674 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5675 missing MPC823 SPRs.
5676 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5677 incorrect. (This was corrected in GDB's register name tables on
5680 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5681 should be "esasrr" ("ESA Save and Restore Register").
5683 2004-07-16 Andrew Cagney <cagney@gnu.org>
5685 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5686 calls, no longer applicable. Update comments and rename parameter
5687 "step_frame" to "return_frame".
5689 2004-07-16 Andrew Cagney <cagney@gnu.org>
5691 * frame.c (fprint_field): New function.
5692 (fprint_frame_id): Use fprint_field.
5694 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5696 * ada-lang.c (ada_language_defn): Remove commented out code.
5698 2004-07-15 Jim Blandy <jimb@redhat.com>
5700 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5701 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5703 2004-07-14 Jim Blandy <jimb@redhat.com>
5705 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5707 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5709 * ppc-tdep.h (ppc_num_srs): New enum constant.
5711 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5712 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5713 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5714 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5715 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5716 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5717 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5718 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5719 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5720 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5721 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5722 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5723 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5724 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5725 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5726 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5727 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5728 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5729 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5730 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5731 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5732 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5733 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5734 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5735 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5736 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5737 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5738 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5739 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5740 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5741 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5742 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5743 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5744 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5745 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5746 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5747 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5748 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5749 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5750 special-purpose register numbers.
5752 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5753 manual mentions 'md_twb', but many mention 'm_twb', and at that
5754 point in the register list.)
5756 2004-07-14 Andrew Cagney <cagney@gnu.org>
5758 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5759 instead of "internal-error".
5761 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5763 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5764 that was inserted inside a comment.
5766 2004-07-10 Randolph Chung <tausq@debian.org>
5768 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5770 (hppa_hpux_push_dummy_code): New function.
5771 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5772 Set find_global_pointer method.
5774 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5776 * NEWS: Mention BSD libkvm interface.
5778 2004-07-10 Michael Snyder <msnyder@redhat.com>
5780 * symfile.c (generic_load): Comment typo.
5781 * stack.c (get_selected_block): Ditto.
5782 * regcache.c (regcache_cooked_read): Ditto.
5783 * monitor.c (monitor_debug): Ditto.
5784 * mips-tdep.c (mips_read_pc): Ditto.
5785 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5786 * gdb_mbuild.sh: Ditto.
5787 * gdbarch.sh: Ditto.
5790 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5792 * ada-tasks.c: Remove file.
5794 Remove ARI problems:
5796 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5799 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5801 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5802 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5803 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5804 (UMIN_OF_SIZE): Remove.
5805 (max_of_type): New function to replace orphan macro in gdbtypes.h
5806 (min_of_type): Ditto.
5807 (discrete_type_high_bound): Use max_of_type.
5808 (discrete_type_low_bound): Use min_of_type.
5809 (possible_user_operator_p): Move operator to beginning of line.
5810 (ada_is_variant_part): Ditto.
5811 (ensure_lval): Rewrite to avoid deprecated operations.
5812 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5813 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5814 (ada_enum_name): Remove assignments in 'if' statements.
5815 (build_ada_types): Add gdbarch parameter.
5816 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5817 with gdbarch_data_register_post_init.
5818 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5821 * ada-valprint.c (inspect_it): Remove declaration.
5822 (repeat_count_threshold): Remove declaration.
5823 (ada_print_floating): Remove assignments in 'if' statements.
5824 (print_str): Move operator to beginning of line.
5826 2004-07-08 Jim Blandy <jimb@redhat.com>
5828 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5830 2004-07-08 Bob Rossi <bob@brasko.net>
5832 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5834 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5836 * language.h (struct_language_defn): Add new function pointer:
5837 la_class_name_from_physname. Also add new prototype for
5838 language_class_name_from_physname.
5839 * language.c (language_class_name_from_physname): New function.
5840 (unk_lang_class_name): Ditto.
5841 (unknown_language_defn, auto_language_defn): Change
5842 to add unk_lang_class_name function pointer for
5843 la_class_name_from_physname.
5844 (local_language_defn): Ditto.
5845 * dwarf2read.c (guess_structure_name): Change to call
5846 language_class_name_from_physname.
5847 (determine_class_name): Ditto.
5848 * cp-support.c (class_name_from_physname): Renamed.
5849 (cp_class_name_from_physname): New name of function.
5850 * cp-support.h: Ditto.
5851 * c-lang.c (c_language_defn): Change to add NULL
5852 for class_name_from_physname function pointer.
5853 (cplus_language_defn): Change to add cp_class_name_from_physname.
5854 * jv-lang.c (java_class_name_physname): New function.
5855 (java_find_last_component): New static routine.
5856 (java_language_defn): Add java_class_name_from_physname pointer.
5857 * ada-lang.c (ada_language_defn): Change to add NULL
5858 for class_name_from_physname function pointer.
5859 * f-lang.c (f_language_defn): Ditto.
5860 * m2-lang.c (m2_language_defn): Ditto.
5861 * objc-lang.c (objc_language_defn): Ditto.
5862 * p-lang.c (pascal_language_defn): Ditto.
5863 * scm-lang.c (scm_language_defn): Ditto.
5865 2004-07-06 Andrew Cagney <cagney@gnu.org>
5867 Patch from Bart Robinson.
5868 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5869 (O_LARGEFILE): Define to 0, if not defined.
5871 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5873 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5874 <machine/pcb.h> and "bsd-kvm.h".
5875 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5876 (m68kbsd_supply_pcb): New function.
5877 (_initialize_m68kbsd_nat): New prototype and function.
5878 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5879 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5880 (LOADLIBES): New variable.
5881 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5882 (LOADLIBES): New variable.
5884 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5886 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5888 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5890 (bsd_kvm_cmdlist): New variable.
5891 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5892 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5893 command and "kvm proc" command.
5894 * Makefile.in (bsd-kvm.o): Update dependencies.
5896 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5898 * osabi.c: Update copyright year.
5899 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5900 notes if EI_OSABI is set to ELFOSABI_HPUX.
5902 2004-07-01 Michael Snyder <msnyder@redhat.com>
5904 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5905 that seems to have gotten whacked out of line.
5907 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5909 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5912 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5914 * ada-lang.c (decode_packed_array): Minor change to comment.
5915 (ada_value_slice_ptr): New function.
5916 (ada_value_slice): New function.
5917 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5918 test. Don't know why it is there.
5919 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5920 to avoid dereferencing huge arrays from which one is slicing.
5921 (empty_array): Correct to return an array rather than
5923 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5924 on empty arrays (let'em use 'FIRST instead).
5926 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5928 Address complaints from gdb_ari.sh:
5930 * ada-exp.y: Include gdb_string.h rather than string.h.
5931 (convert_char_literal): Reformat declaration.
5932 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5933 * ada-lex.l: Change use of free to xfree (the macro would do so
5934 anyway, but this is harmless).
5935 Include gdb_string.h rather than string.h.
5936 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5938 * ada-lang.c (parse): Remove K&Rism in parameter list.
5939 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5941 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5943 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5946 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5948 * alphabsd-nat.c: Update copyright year.
5949 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5951 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5953 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5954 (i386_cygwin_in_solib_call_trampoline): New function.
5955 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5956 and skip_trampoline_code gdbarch methods.
5958 2004-06-29 Jim Blandy <jimb@redhat.com>
5960 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5961 name actually used in the dependency lists.
5963 2004-06-29 Randolph Chung <tausq@debian.org>
5965 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5967 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5969 * win32-nat.c (child_pid_to_exec_file): New function.
5970 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5973 2004-06-28 Andrew Cagney <cagney@gnu.org>
5975 * defs.h (xstrvprintf): Declare.
5976 * utils.c (xstrvprintf): New function.
5977 (internal_vproblem, xstrprintf, xasprintf)
5978 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5979 * serial.c (serial_printf): Ditto.
5980 * complaints.c (vcomplaint): Ditto.
5982 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5984 * infcmd.c (attach_command): Move call to target_terminal_inferior
5985 behind loading symbol table.
5987 2004-06-28 Andrew Cagney <cagney@gnu.org>
5989 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5990 change - add back extern deprecated_ui_loop_hook declaration.
5992 2004-06-28 Andrew Cagney <cagney@gnu.org>
5994 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5996 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5997 (c_value_of_variable): Ditto.
5998 * utils.c (internal_vproblem): Ditto.
5999 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
6000 * remote.c (add_packet_config_cmd): Ditto.
6001 * remote-rdp.c (rdp_set_command_line): Ditto.
6002 * regcache.c (regcache_dump): Ditto.
6003 * frv-tdep.c (new_variant, new_variant): Ditto.
6004 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
6005 (fbsd_find_memory_regions): Ditto.
6006 * breakpoint.c (create_thread_event_breakpoint)
6007 (create_breakpoints): Ditto.
6008 * aix-thread.c (aix_thread_pid_to_str): Ditto.
6009 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
6011 2004-06-28 Joel Brobecker <brobecker@gnat.com>
6013 * ada-lang.c: Re-indent file, with some massaging to help indent
6014 a bit when the result is otherwise really too ugly.
6016 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
6018 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
6019 code_addr_p and special_addr_p to 'unsigned int'.
6021 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6023 * i386v4-nat.c: Update copyright year and tweak comment.
6024 (regmap): Remove trailing comma.
6025 (supply_gregset): Rename local variable i to regnum. Call
6026 regcache_raw_supply instead of supply_register.
6027 (fill_gregset): Rename argument regno to regnum. Call
6028 regcache_raw_collect instead of regcache_collect.
6030 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
6032 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
6034 (frame_id_build, frame_id_build_special): Update comments.
6035 (frame_id_build_wild): New prototype.
6036 * frame.c (frame_id_build, frame_id_build_special): Fill in new
6037 struct frame_id fields.
6038 (frame_id_build_wild): New function.
6039 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
6041 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6043 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
6046 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6048 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
6050 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6052 * ada-lang.c: Re-indent file.
6054 2004-06-27 Joel Brobecker <brobecker@gnat.com>
6056 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
6057 (no_symtab_msg): Likewise.
6059 2004-06-27 Andreas Schwab <schwab@suse.de>
6061 * source.c: Fix whitespace.
6063 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6065 * configure.in: Include <sys/param.h> for td_pcb test.
6066 * configure: Regenerated.
6068 * i386nbsd-nat.c: New file.
6069 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
6070 i386obsd-nat.c and i386obsd-tdep.c.
6071 (i386nbsd-nat.o): New dependency.
6072 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
6074 (LOADLIBES): New variable.
6075 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6077 (LOADLIBES): New variable.
6079 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6080 (LOADLIBES): New variable.
6082 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6083 fetching from BSD_KVM_PADDR. Correctly lookup address for
6086 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6088 (amd64fbsd_supply_pcb): New funcion.
6089 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6091 2004-06-27 <david@streamline-computing.com>
6093 Partial fix for PR cli/1056.
6094 * valarith.c: Check for zero in division and remainder
6097 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6099 * i387-tdep.c: Remove excessive whitespace.
6101 2004-06-26 Andrew Cagney <cagney@gnu.org>
6103 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6104 * gdb-events.h, gdb-events.c: Re-generate.
6105 * tui/tui-hooks.c (tui_install_hooks): Update.
6106 (tui_remove_hooks): Update.
6107 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6109 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6111 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6112 (gregset_t, fpregset_t): Remove typedefs.
6113 (REG_OFFSET): Rename argument.
6114 (amd64bsd_r_reg_offset): Rename from reg_offset.
6115 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6117 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6119 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6121 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6123 * vax-tdep.c: Tweak comment.
6125 Add OpenBSD/hppa support.
6126 * NEWS (New native configurations): Mention OpenBSD/hppa.
6127 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6128 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6130 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6131 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6132 * configure.host: Add hppa*-*-openbsd*.
6133 * configure.tgt: Add hppa*-*-openbsd*.
6135 2004-06-25 Andrew Cagney <cagney@gnu.org>
6137 * defs.h (deprecated_ui_loop_hook): Deprecated.
6138 * wince.c (child_wait): Update.
6139 * win32-nat.c (child_wait): Update.
6140 * v850ice.c (v850ice_wait): Update.
6141 * top.c (deprecated_ui_loop_hook): Update.
6143 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6144 (do_unix_readchar): Update.
6145 * ser-tcp.c (net_open): Update.
6146 * remote-sim.c (gdb_os_poll_quit): Update.
6147 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6149 2004-06-24 Andrew Cagney <cagney@gnu.org>
6151 * defs.h (deprecated_pre_add_symbol_hook)
6152 (deprecated_post_add_symbol_hook): Deprecated.
6153 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6154 (symbol_file_add_with_addrs_or_offsets): Update references.
6156 2004-06-24 Andrew Cagney <cagney@gnu.org>
6158 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6159 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6160 * wince.c (ui_loop_hook): Delete extern declaration.
6161 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6162 * v850ice.c (ui_loop_hook): Delete extern declaration..
6163 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6164 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6165 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6166 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6167 ui_loop_hook declaration.
6169 2004-06-24 Andrew Cagney <cagney@gnu.org>
6171 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6172 entry_func_highpc fields.
6173 * objfiles.c (init_entry_point_info): Do not clear
6174 entry_func_lowpc and entry_func_highpc.
6175 (objfile_relocate): Do not relocate entry_func_lowpc and
6177 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6179 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6181 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6182 entry_func_lowpc and entry_func_highpc with call to
6185 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6187 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6188 quad-precision floating point arguments in registers.
6190 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6192 From Michael Mueller <m.mueller99@kay-mueller.de>:
6193 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6196 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6198 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6200 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6201 untriggered watchpoints to a separate if clause. Update function
6202 comment regarding STOPPED_BY_WATCHPOINT argument.
6204 2004-06-22 Jim Blandy <jimb@redhat.com>
6206 * gdbarch.sh: Doc fix.
6208 2004-06-21 Martin Hunt <hunt@redhat.com>
6209 Kevin Buettner <kevinb@redhat.com>
6211 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6212 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6213 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6214 to set_gdbarch_sp_regnum(). Use cooked register number.
6215 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6217 2004-06-21 Andrew Cagney <cagney@gnu.org>
6219 * gdbarch.sh: When the macro field is empty, do not generate a
6220 macro definition. When the macro field is "=", generate the macro
6221 name from the upper-case function name.
6222 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6223 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6224 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6225 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6226 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6227 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6228 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6229 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6230 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6231 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6232 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6233 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6234 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6235 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6236 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6237 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6238 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6239 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6240 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6241 (DEPRECATED_USE_STRUCT_CONVENTION)
6242 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6243 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6244 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6245 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6246 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6247 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6248 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6249 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6250 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6251 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6252 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6253 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6254 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6255 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6256 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6257 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6258 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6259 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6261 2004-06-21 Andrew Cagney <cagney@gnu.org>
6263 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6264 macro name, and the function rather than macro value. Only wrap
6265 macro print statements in #ifdef. Move format logic to where it
6267 * gdbarch.c: Re-generate.
6269 * gdbarch.sh (read): Delete "print_p" and "description", add
6270 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6271 Delete references to print_p.
6272 (TARGET_ARCHITECTURE): Delete print predicate.
6273 * gdbarch.c: Re-generate.
6275 * gdbarch.sh: Check that multi-arch methods do not provide a
6277 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6278 (print_registers_info, print_float_info, print_vector_info)
6279 (adjust_breakpoint_address, remote_translate_xfer_address)
6280 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6281 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6282 name from the multi-arch definition.
6284 2004-06-20 Andrew Cagney <cagney@gnu.org>
6286 * gdbarch.sh: Sort by the function, instead of macro name.
6287 * gdbarch.c: Re-generate.
6289 2004-06-20 Andrew Cagney <cagney@gnu.org>
6291 * gdbarch.sh: Use the function, instead of macro name in
6292 errors and the log file.
6293 (return_value): Remove stray ":" in spec.
6295 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6296 * gdbarch.h, gdbarch.c: Re-generate.
6297 * Makefile.in (arch-utils.o): Update dependencies.
6298 * values.c (using_struct_return): Move code calling
6299 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6300 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6301 to legacy_return_value, simplify.
6302 * infcmd.c (print_return_value): Move code calling
6303 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6304 to legacy_return_value, simplify.
6305 * infcall.c (call_function_by_hand): Move code calling
6306 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6307 * arch-utils.c: Update copyright. Include "gdbcore.h".
6308 (legacy_return_value): New function.
6309 * arch-utils.h: Update copyright.
6310 (legacy_return_value): Declare.
6312 2004-06-20 Andrew Cagney <cagney@gnu.org>
6314 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6315 * gdbarch.h, gdbarch.c: Re-generate.
6316 * values.c (using_struct_return): Update call.
6317 * mcore-tdep.c: Update comment.
6318 * infcall.c (call_function_by_hand): Update comment.
6319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6320 * arch-utils.h (always_use_struct_convention): Update.
6321 * v850-tdep.c (v850_gdbarch_init): Update.
6322 * sh64-tdep.c (sh64_gdbarch_init): Update.
6323 * sh-tdep.c (sh_gdbarch_init): Update.
6324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6325 * mips-tdep.c (mips_gdbarch_init): Update.
6326 * mcore-tdep.c (mcore_gdbarch_init): Update.
6327 * m32r-tdep.c (m32r_gdbarch_init): Update.
6328 * ia64-tdep.c (ia64_gdbarch_init): Update.
6329 * h8300-tdep.c (h8300_gdbarch_init): Update.
6330 * frv-tdep.c (frv_gdbarch_init): Update.
6331 * cris-tdep.c (cris_gdbarch_init): Update.
6332 * arm-tdep.c (arm_gdbarch_init): Update.
6333 * alpha-tdep.c (alpha_gdbarch_init): Update.
6335 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6337 * PROBLEMS: Add more specific information, and a work-around,
6340 2004-06-18 Andrew Cagney <cagney@gnu.org>
6342 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6343 * gdbarch.h, gdbarch.c: Re-generate.
6344 * ada-lang.c (ada_finish_decode_line_1): Update.
6345 * infrun.c (handle_inferior_event): Update.
6346 * infcall.c (find_function_addr): Update.
6347 * linespec.c (minsym_found): Update.
6348 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6350 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6351 * cli/cli-cmds.c (disassemble_command): Update.
6352 * vax-tdep.c (vax_gdbarch_init): Update.
6354 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6356 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6358 2004-06-17 Andrew Cagney <cagney@gnu.org>
6360 GDB 6.1.1 released from the GDB 6.1 branch.
6361 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6364 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6367 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6368 operation as a uleb128. Found by Michael Coulter.
6370 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6372 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6374 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6375 to ada-lang.h; this is needed to be able to implement the kill command
6378 (task_entry): Ditto.
6380 (ada_build_task_list): Ditto.
6382 * ada-lang.c: Conditionalize routines and data structures related
6383 to breakpoints, exceptions, completion, and symbol caching on
6384 GNAT_GDB, since these are not yet used in the submitted public sources.
6385 (ada_main_name): Editorial: Move definition out of exception-related
6388 2004-06-15 Andrew Cagney <cagney@gnu.org>
6390 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6391 deprecated_pc_in_call_dummy.
6393 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6395 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6396 bfd_get_section_size_before_reloc or _raw_size.
6397 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6398 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6399 (dwarf2_read_section): Likewise.
6400 * elfread.c (elf_locate_sections): Likewise.
6401 * gcore.c (derive_heap_segment): Likewise.
6402 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6403 * remote-e7000.c (e7000_load): Likewise.
6404 * remote-m32r-sdi.c (m32r_load): Likewise.
6405 * remote-mips.c (mips_load_srec): Likewise.
6406 (pmon_load_fast): Likewise.
6407 * remote.c (compare_sections_command): Likewise.
6408 * symfile.c (add_section_size_callback): Likewise.
6409 (load_section_callback): Likewise.
6410 (pc_in_unmapped_range): Likewise.
6411 (pc_in_mapped_range): Likewise.
6412 (sections_overlap): Likewise.
6413 (list_overlays_command): Likewise.
6414 (simple_overlay_update_1): Likewise.
6415 (simple_overlay_update): Likewise.
6416 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6417 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6419 2004-06-14 Randolph Chung <tausq@debian.org>
6421 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6422 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6424 (hppa_hpux_inferior_created): New function.
6425 (hppa_hpux_init_abi): Register observer.
6426 * symfile.c (hp_cxx_exception_support_initialized)
6427 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6428 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6430 2004-06-14 Randolph Chung <tausq@debian.org>
6432 * MAINTAINERS (Write After Approval): Alphabetize my entry
6435 2004-06-14 Andrew Cagney <cagney@gnu.org>
6437 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6438 testsuite maintainer.
6440 2004-06-13 Andrew Cagney <cagney@gnu.org>
6442 * infcmd.c (print_return_value): Fix logic, allow
6443 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6445 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6446 defining any macros.
6447 * gdbarch.h: Re-generate.
6449 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6450 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6451 * gdbarch.h: Re-generate.
6453 * values.c (generic_use_struct_convention): Don't check gcc_p.
6455 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6456 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6457 * gdbarch.h, gdbarch.c: Regenerate.
6458 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6459 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6461 deprecated_max_register_raw_size and
6462 deprecated_max_register_virtual_size.
6463 * v850-tdep.c (v850_gdbarch_init): Ditto.
6464 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6465 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6466 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6467 * cris-tdep.c (cris_gdbarch_init): Ditto.
6469 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6470 * gdbarch.h, gdbarch.c: Re-generate.
6471 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6472 (m68hc11_use_struct_convention): Delete function.
6473 (m68hc11_extract_struct_value_address): Delete function.
6474 (m68hc11_return_value): New function.
6475 (m68hc11_gdbarch_init): Instead of store_return_value,
6476 extract_return_value, return_value_on_stack,
6477 deprecated_extract_struct_value_address and use_struct_convention,
6479 * values.c (using_struct_return): Do not call
6480 RETURN_VALUE_ON_STACK.
6481 * arch-utils.h (generic_return_value_on_stack_not): Delete
6483 * arch-utils.c (generic_return_value_on_stack_not): Delete
6486 2004-06-12 Andrew Cagney <cagney@gnu.org>
6488 * values.c (register_value_being_returned): Delete function.
6489 * infcmd.c (legacy_return_value): Delete function.
6490 * infcall.c (call_function_by_hand): Inline
6491 "register_value_being_returned", simplify.
6492 * values.c (using_struct_return): Update comment, refer to
6493 print_return_value instead of register_value_being_returned.
6494 * infcmd.c (print_return_value): Inline calls to
6495 register_value_being_returned and legacy_return_value. Simplify.
6497 2004-06-11 Randolph Chung <tausq@debian.org>
6499 * somread.c (som_symtab_read): Exclude gcc local symbols.
6501 2004-06-11 Randolph Chung <tausq@debian.org>
6503 * infrun.c (handle_inferior_event): Handle the case when a
6504 trampoline ends up in the runtime resolver, and if the trampoline
6505 has no name. Rearrange the code so that all the trampoline
6506 processing happens before other step-out-of-range handling.
6508 2004-06-11 Martin Hunt <hunt@redhat.com>
6510 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6513 2004-06-10 Andrew Cagney <cagney@gnu.org>
6515 * blockframe.c (legacy_inside_entry_func): Delete.
6516 (legacy_frame_chain_valid): Inline call to
6517 legacy_inside_entry_func, simplify.
6519 2004-06-10 Bob Rossi <bob@brasko.net>
6521 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6522 * dwarf2read.c (partial_die_info): Add dirname field.
6523 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6524 (read_partial_die): Save away DW_AT_comp_dir.
6525 * defs.h (symtab_to_filename): Removed.
6526 * source.c (find_and_open_source): Added.
6527 (open_source_file): Just calls find_and_open_source.
6528 (symtab_to_filename): Removed.
6529 (symtab_to_fullname, psymtab_to_fullname): Added.
6530 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6531 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6533 * symtab.h (partial_symtab): Add dirname field.
6534 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6535 (mi_cmd_file_list_exec_source_file): Call new function
6536 symtab_to_fullname to find fullname.
6537 (mi_cmd_file_list_exec_source_files): Added.
6538 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6539 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6541 2004-06-10 Andrew Cagney <cagney@gnu.org>
6543 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6544 to generic_use_struct_convention, the default value.
6546 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6549 * ns32k-tdep.c (ns32k_push_arguments): New function.
6550 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6551 * infcall.c (call_function_by_hand): Call error instead of
6552 legacy_push_arguments.
6553 * value.h (legacy_push_arguments): Delete declaration.
6554 * valops.c (legacy_push_arguments): Delete function.
6555 (value_push): Delete function.
6557 2004-06-10 Brian Ford <ford@vss.fsi.com>
6559 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6560 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6562 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6564 2004-06-10 Andrew Cagney <cagney@gnu.org>
6566 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6567 * gdbarch.h, gdbarch.c: Re-generate.
6568 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6570 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6571 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6572 deprecated_pc_in_call_dummy instead of
6573 DEPRECATED_PC_IN_CALL_DUMMY.
6574 (arm_skip_prologue): Ditto.
6575 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6576 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6577 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6578 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6580 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6581 (sh64_init_extra_frame_info, sh64_get_saved_register)
6582 (sh64_pop_frame): Ditto.
6583 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6584 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6585 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6586 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6587 (h8300_pop_frame): Ditto.
6588 * blockframe.c (legacy_inside_entry_func)
6589 (legacy_frame_chain_valid): Ditto.
6590 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6591 to deprecated_pc_in_call_dummy.
6593 2004-06-09 Andrew Cagney <cagney@gnu.org>
6595 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6596 provide a default value.
6597 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6598 * gdbarch.h, gdbarch.c: Re-generate.
6599 * arch-utils.c (generic_convert_register_p): Rename
6600 legacy_convert_register_p
6601 (legacy_register_to_value, legacy_value_to_register): Delete
6603 * arch-utils.h (generic_convert_register_p): Rename
6604 legacy_convert_register_p.
6605 (legacy_register_to_value, legacy_value_to_register): Delete
6608 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6609 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6610 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6611 * gdbarch.h, gdbarch.c: Re-generate.
6612 * infcmd.c (default_print_registers_info): Simplify.
6613 * findvar.c (value_of_register): Simplify.
6614 * mi/mi-main.c (get_register): Simplify.
6615 * arch-utils.c (legacy_convert_register_p): Always return 0.
6616 (legacy_register_to_value, legacy_value_to_register): Always call
6619 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6620 #ifdef CLEAR_INSN_CACHE code.
6621 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6622 Delete #ifdef CLEAR_DEFERRED_STORES code.
6624 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6626 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6628 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6630 * config/mips/mipsv4.mh: Delete file.
6632 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6634 (hpread_adjust_stack_address): Delete declaration.
6636 2004-06-08 Andrew Cagney <cagney@gnu.org>
6638 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6639 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6640 PTRACE_ATTACH / PTRACE_DETACH available call error.
6641 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6642 * infttrace.c (update_thread_state_after_attach, attach, detach):
6643 Remove #ifdef wrappers.
6644 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6645 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6646 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6647 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6648 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6649 * config/nm-linux.h (ATTACH_DETACH): Delete.
6650 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6651 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6652 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6653 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6654 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6656 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6658 * configure.in: Set $configdir to the right OS specific value.
6659 Use value when setting $tcldir and $tkdir.
6660 * configure: Regenerate.
6662 2004-06-06 Paul Brook <paul@codesourcery.com>
6664 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6667 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6669 * ada-lang.c (lookup_symbol_in_language): New function to allow
6670 re-use of another language's symbol lookup code. (Placed here
6671 temporarily while Ada support is being integrated into the public
6673 (restore_language): New auxiliary function for
6674 lookup_symbol_in_language.
6675 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6676 temporarily while Ada support is being integrated into the public
6679 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6681 * Makefile.in (check//%): New.
6683 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6684 (mn10300_store_return_value): Rewrite.
6685 (mn10300_type_align): New.
6686 (mn10300_use_struct_convention): Rewrite.
6687 (mn10300_return_value): New, using all of the above.
6688 (mn10300_pop_frame_regular): Add saved_regs_size.
6689 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6691 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6692 regs if PC is on movm.
6694 2004-06-07 Jim Blandy <jimb@redhat.com>
6696 Add native Linux support for the PowerPC E500.
6697 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6698 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6699 all architectures except the E500.
6700 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6702 (struct gdb_evrregset_t): New type.
6703 (have_ptrace_getsetevrregs): New variable.
6704 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6705 fetch_spe_registers): New functions.
6706 (fetch_register): Call fetch_spe_register as appropriate.
6707 Assert that we're only passed raw register numbers.
6708 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6709 Don't fetch gprs if they're pseudoregisters.
6710 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6711 store_spe_registers): New functions.
6712 (store_register): Call store_spe_register as appropriate.
6713 Assert that we're only passed raw register numbers.
6714 (store_ppc_registers): Call store_spe_registers as appropriate.
6715 Don't store gprs if they're pseudoregisters.
6717 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6719 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6720 struct if one exists, even if we are dealing with a zombie thread.
6722 2004-06-07 Andrew Cagney <cagney@gnu.org>
6724 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6725 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6726 Rename PC_REQUIRES_RUN_BEFORE_USE.
6727 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6730 2004-06-07 Randolph Chung <tausq@debian.org>
6732 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6733 unwinding after sp has been saved to the stack but before the end
6734 of the prologue, and after the fp has been modified but before it has
6735 been saved to the stack.
6736 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6737 Remove superfluous definitions.
6738 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6740 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6742 Committed by Randolph Chung.
6743 * hppa-linux-nat.c: Include the correct version of the header file
6744 depending on the kernel version.
6746 2004-06-06 Randolph Chung <tausq@debian.org>
6748 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6749 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6751 2004-06-06 Randolph Chung <tausq@debian.org>
6753 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6754 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6755 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6756 * hppa-tdep.c (hppa_symbol_address): New function definition.
6757 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6759 2004-06-06 Randolph Chung <tausq@debian.org>
6761 * hppa-tdep.h (struct value): Forward declaration.
6762 (gdbarch_tdep): Define tdep find_global_pointer method.
6763 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6764 associated with the function we are trying to call, and write it
6766 (hppa32_convert_from_funct_ptr_addr): New function.
6767 (hppa_find_global_pointer): New function.
6768 (hppa_gdbarch_init): Set default find_global_pointer method; set
6769 convert_from_func_ptr_addr method.
6770 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6771 (hppa_linux_init_abi): Set find_global_pointer method.
6772 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6774 2004-06-06 Randolph Chung <tausq@debian.org>
6776 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6777 to struct value *function.
6778 * gdbarch.c: Regenerate.
6779 * gdbarch.h: Likewise.
6780 * infcall.c (call_function_by_hand): Pass entire function value
6783 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6784 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6785 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6786 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6787 * arm-tdep.c (arm_push_dummy_call): Likewise.
6788 * avr-tdep.c (avr_push_dummy_call): Likewise.
6789 * cris-tdep.c (cris_push_dummy_call): Likewise.
6790 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6791 * frv-tdep.c (frv_push_dummy_call): Likewise.
6792 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6793 * hppa-tdep.c (hppa32_push_dummy_call)
6794 (hppa64_push_dummy_call): Likewise.
6795 * i386-tdep.c (i386_push_dummy_call): Likewise.
6796 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6797 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6798 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6799 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6800 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6801 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6802 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6803 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6804 (ppc64_sysv_abi_push_dummy_call): Likewise.
6805 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6806 (ppc64_sysv_abi_push_dummy_call): Likewise.
6807 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6808 * s390-tdep.c (s390_push_dummy_call): Likewise.
6809 * sh-tdep.c (sh_push_dummy_call_fpu)
6810 (sh_push_dummy_call_nofpu): Likewise.
6811 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6812 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6813 * vax-tdep.c (vax_push_dummy_call): Likewise.
6815 2004-06-04 Jim Blandy <jimb@redhat.com>
6817 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6818 gdbarch argument to register_size.
6820 * rs6000-tdep.c (rs6000_store_return_value): Use
6821 regcache_cooked_write_part instead of
6822 deprecated_write_register_bytes.
6823 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6824 not gdbarch_deprecated_store_return_value.
6826 * ppc-linux-nat.c (store_register, fetch_register): Remove
6827 incorrect assertions. Simplify and generalize handling of
6828 transfers whose sizes are not multiples of, or less than, sizeof
6831 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6833 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6834 as a new thread event.
6835 * thread-db.c (thread_get_info_callback): If the thread is a
6836 zombie, return TD_THR_ZOMBIE.
6837 (thread_from_lwp): If thread_get_info_callback returns
6838 TD_THR_ZOMBIE, check if the thread is still on the thread list
6839 and return a -1 ptid if not found.
6840 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6841 change the status to TARGET_WAITKIND_SPURIOUS.
6843 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6845 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6846 double values in little endian mode.
6848 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6850 Committed by Andrew Cagney.
6851 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6852 after last enum constant to avoid error from IBM C
6855 2004-06-02 Jim Blandy <jimb@redhat.com>
6857 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6858 to 'message', and make it local to the lone block that uses it.
6860 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6862 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6864 * ada-exp.y: Update copyright notice.
6867 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6868 SPECIAL_VARIABLE and unify the treatment of these cases.
6870 (write_attribute_call0): Remove.
6871 (write_attribute_call1): Remove.
6872 (write_attribute_calln): Remove.
6873 (save_qualifier): Add missing semicolon.
6875 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6876 temporarily disabled to allow compilation with FSF head version.
6878 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6879 use individual operators (OP_*) for all attributes.
6880 (exp syntax): Use write_int.
6881 Handle STRING literals with OP_STRING.
6882 (variable syntax): Add limit parameter to calls to
6883 write_object_renaming.
6885 (temp_parse_space): New definition to hold entities that need
6886 only live until the next call to ada_parse.
6887 (string_to_operator): Rename fields of ada_opname_table entries.
6889 (write_var_from_sym): Record block.
6890 (write_var_from_name): Minor reformatting.
6891 Make sure saved name is properly encoded in the case of multiple
6892 matches, and set its language to Ada.
6894 Modify to indicate unresolved name as symbol in the UNRESOLVED
6895 namespace, allocated in temp_parse_space.
6896 (write_int): New function.
6898 (write_object_renaming): Add max_depth parameter to limit
6899 chains of object renamings.
6900 Handle case where root of renaming expression is itself a renaming.
6901 Use temp_parse_space for temporary name buffer.
6902 Handle renamings to dereferenced pointers (___XEXA suffices).
6904 (ada_parse, yyerror, string_to_operator,
6905 write_var_from_sym, write_var_from_name, write_attribute_call0,
6906 write_attribute_call1, write_attribute_calln,
6907 write_object_renaming): Protoize.
6909 (_initialize_ada_exp): New function.
6911 * ada-lang.c: Update copyright notice.
6912 General terminology change to conform to GNAT compiler usage:
6913 mangle => encode, demangle => decode
6914 Include gdb_obstack.h.
6923 (ADA_RETAIN_DOTS): Make sure this is defined.
6924 (TRUNCATION_TOWARDS_ZERO): Define.
6925 (struct string_vector): Define.
6926 (unresolved_names): Remove definition.
6927 (xnew_string_vector): New function.
6928 (string_vector_append): New function.
6929 (extract_string): Make static.
6930 (ada_unqualified_name): New function.
6931 (add_angle_brackets): New function.
6932 (function_name_from_pc): New function.
6933 (place_on_stack): Rename to ensure_lval.
6935 (ensure_lval): Renamed from place_on_stack.
6936 Make identity on lvals.
6938 (is_nonfunction): New interface.
6939 Only symbols in LOC_CONST class can be enumerals.
6940 (fill_in_ada_prototype): Remove; now independent of language.
6941 (add_defn_to_vec): Add obstack and symtab arguments.
6942 Use obstack to hold collected definitions.
6943 (num_defns_collected): New function.
6944 (defns_collected): New function.
6945 (ada_resolve_subexp): Rename to resolve_subexp.
6946 (resolve_subexp): Renamed from ada_resolve_subexp.
6947 (ada_op_name): Return non-const result.
6948 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6951 (to_fixed_array_type): Add declaration.
6952 (coerce_unspec_val_to_type): Remove offset parameter.
6953 (find_sal_from_funcs_and_line): New interface.
6954 (find_line_in_linetable): Ditto.
6956 (all_sals_for_line): Rename to ada_sals_for_line and make
6958 Add new parameter. When set, do not ask the user to choose the
6959 instance, but use the first one found instead.
6960 Use given line number in returned sals.
6962 Skip the prologue if funfirstline is set.
6963 Correct for memory leak when 0 lines found.
6965 (value_pos_atr): Use pos_atr.
6966 (pos_atr): New function.
6967 (standard_lookup): Add block parameter.
6969 (makeTimeStart): Remove declaration and uses.
6970 (makeTimeStop): Remove declaration and uses.
6972 (ada_completer_word_break_characters): Allow for VMS.
6973 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6974 (raise_sym_name): New constant.
6975 (raise_unhandled_sym_name): New constant.
6976 (raise_assert_sym_name): New constant.
6977 (process_raise_exception_name): New constant.
6978 (longest_exception_template): New constant.
6979 (warning_limit): New variable to limit warnings during expression
6981 (warnings_issued): New variable to keep track of warnings issued.
6982 (known_runtime_file_name_patterns): New constant.
6983 (known_auxiliary_function_name_patterns): New constant.
6984 (symbol_list_obstack): New variable.
6986 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6987 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6988 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6989 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6990 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6991 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6992 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6993 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6996 (ada_get_field_index): New function.
6997 (lim_warning): New function.
6998 (ada_translate_error_message): New function.
6999 (MAX_OF_SIZE): New function.
7000 (MIN_OF_SIZE): New function.
7001 (UMAX_OF_SIZE): New function.
7002 (UMIN_OF_SIZE): New function.
7003 (discrete_type_high_bound): New function.
7004 (discrete_type_low_bound): New function.
7005 (base_type): New function.
7006 (do_command): Remove.
7008 (ada_update_initial_language): Use language_ada, not language_unknown.
7009 (ada_encode): Renamed from ada_mangle.
7010 Obey ADA_RETAIN_DOTS.
7011 (ada_decode): Renamed from ada_demangle.
7012 Update coding conventions.
7013 (decoded_names_store): New hash table.
7014 (ada_decode_symbol): New function.
7015 (ada_la_decode): New function.
7017 (modify_general_field): Correct computations of offset and bit
7019 (desc_base_type): Handle ref types, too.
7020 (ada_is_direct_array_type): New function.
7022 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7023 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7024 (ada_is_bogus_array_descriptor,ada_type_of_array,
7025 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
7026 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
7027 ada_is_array_descriptor_type.
7029 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
7030 (ada_is_packed_array_type): Handle pointers or
7031 references to packed arrays as well.
7032 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
7033 (decode_packed_array_type): Search for the packed array type
7034 symbol in the currently selected block and associated
7036 Use lookup_symbol again.
7038 (decode_packed_array): Handle pointers and references.
7039 Update call to coerce_unspec_val_to_type.
7040 (decode_packed_array_type,value_subscript_packed): Limit warnings.
7041 (ada_value_primitive_packed_val): Improve comment.
7043 (ada_index_type): Substitute int type for "undefined".
7044 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
7045 ada_array_langth, ada_is_string_type): Use renamed
7046 ada_is_simple_array_type.
7047 (empty_array): New function.
7049 (ada_resolve): Rename to resolve.
7050 (resolve): Make static.
7051 Call renamed resolve_subexp.
7053 (ada_resolve_subexp): Rename to resolve_subexp.
7054 (resolve_subexp): Update comment.
7055 Decomment disabled code.
7056 Add LOC_COMPUTED* cases.
7057 Modify to use temporary struct symbols (marked as being in
7058 UNDEF_NAMESPACE) to indicate unresolved names, instead of
7059 OP_UNRESOLVED_VALUE.
7060 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
7063 Use SYMBOL_PRINT_NAME instead of ada_demangle.
7064 Use new ada_lookup_symbol_list interface.
7065 Use new ada_resolve_function interface.
7066 Remove OP_TYPE case.
7068 (ada_args_match): Idiot proof against null actuals.
7069 Use intermediate variables to clarify.
7070 (ada_resolve_function): Update comment and interface.
7071 (mangled_ordered_before): Rename to encoded_ordered_before and
7073 (sort_choices): Update comment and interface.
7074 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7075 (user_select_syms): New interface.
7076 Use new sort_choices interface.
7077 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7078 (possible_user_operator_p): Idiot-proof against null values.
7079 (ada_simple_renamed_entity): Don't make cleanup; rely on
7080 caller to free result string.
7081 Remove const from return type.
7082 (make_array_descriptor): Rename uses of place_on_stack to
7084 Make sure that arrays are on stack.
7086 (HASH_SIZE): Define.
7087 (struct cache_entry): Define.
7088 (cache_space): Define.
7090 (clear_ada_sym_cache): New function.
7091 (find_entry): New function.
7092 (lookup_cached_symbol): New function.
7093 (defn_vector_size): Define.
7094 (cache_symbol): New function.
7095 (defn_symbols): Remove.
7097 (standard_lookup): Use lookup_symbol_in_language to get effect of
7101 (symbol_completion_match): New function.
7102 (symbol_completion_add): New function.
7103 (ada_make_symbol_completion_list): New function.
7105 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7106 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7107 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7108 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7110 (ada_lookup_simple_minsym): New function.
7111 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7113 (add_symbols_from_enclosing_procs): New interface.
7114 Conditionalize more helpfully.
7115 Don't bother if program isn't running.
7116 Use new interface to get_frame_block.
7117 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7119 (remove_extra_symbols): New interface.
7120 (xget_renaming_scope): New function.
7121 (is_package_name): New function.
7122 (renaming_is_visible): New function.
7123 (remove_out_of_scope_renamings): New function.
7125 (ada_lookup_symbol_list): New interface.
7126 Properly reinitialize the symbol list obstack.
7127 Don't call add_symbols_from_enclosing_procs if we start from a
7128 static or global block.
7129 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7130 add_symbols_from_enclosing_procs.
7131 Add symtab data to cached entries.
7132 Handle symbols prefixed with
7133 "standard__" specially; strip prefix and don't look in local symbols.
7134 Do not include out of scope renaming symbols in list of
7136 Add const to block parameter.
7137 Move check for non-local, non-global symbols earlier.
7138 Remove timing stuff.
7139 (ada_lookup_symbol): New interface.
7140 Find symtab as well.
7141 (ada_lookup_symbol_nonlocal): New function.
7143 (is_name_suffix): Enhance suffix detection to recognize
7144 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7145 (is_dot_digits_suffix): New function.
7146 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7148 (ada_add_block_symbols): New interface. Use obstack to return results
7149 in a vector of struct ada_symbol_infos. Add symtab argument.
7150 Use new interface to add_defn_to_vec.
7151 Remove calls to fill_in_ada_prototype.
7152 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7154 (ada_finish_decode_line_1): Add const qualification to local to fix
7156 Start looking in static block for functions to avoid attempts
7157 to search frame chain for up-level variables.
7158 Adapt to new ada_sals_for_line interface.
7159 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7160 Handle quoting of the function name inside the spec string.
7161 Skip prologue when funfirstline is set and update the
7162 function documentation to that effect.
7164 (debug_print_lines, debug_print_block, debug_print_blocks,
7165 debug_print_symtab): Remove.
7167 (ada_main_name): New function.
7168 (ada_exception_breakpoint_type): New function.
7169 (is_known_support_routine): New function.
7170 (ada_find_printable_frame): Renamed from find_printable_frame and made
7172 Remove level parameter.
7173 Use new interface to select_frame.
7175 (begin_command): Remove.
7176 (ada_adjust_exception_stop): New function.
7177 (ada_print_exception_stop): New function.
7178 (exception_name_from_cond): New function.
7179 (ada_report_exception_break): Replace disabled code with
7180 conditionalization on GNAT_GDB.
7181 Get the exception name from the condition string.
7182 Remove and move functionality into new functions
7183 ada_print_exception_breakpoint_task and
7184 ada_print_exception_breakpoint_nontask.
7185 (error_breakpoint_runtime_sym_not_found): New function.
7186 (is_runtime_sym_defined): New function.
7187 (ada_breakpoint_rewrite): Uncomment suppressed code.
7188 Use symbolic error-message and runtime-symbol names.
7189 Surround runtime symbol names in quotes.
7190 Allow non-specific breakpoints on exceptions and assertions before
7193 (ada_is_tagged_type): Add parameter.
7194 (ada_is_tag_type): New function.
7195 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7196 (ada_variant_discrim_type): Ditto.
7197 (value_tag_from_contents_and_address): New function.
7198 (type_from_tag): New function.
7199 (struct tag_args): New structure used to communicate with
7201 (ada_tag_name_1): New function.
7202 (ada_tag_name): New function.
7204 (ada_scan_number): Update comment.
7205 (find_struct_field): New function.
7206 (ada_search_struct_field): Make static.
7207 (ada_value_struct_elt): New version that returns references when
7208 given pointers or references to structs.
7209 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7210 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7212 (ada_value_ind): Use new ada_to_fixed_value interface.
7213 (ada_coerce_ref): Ditto.
7214 (field_offset): Remove.
7216 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7217 (ada_find_renaming_symbol): New function.
7218 (ada_prefer_type): Prefer named types over unnamed ones.
7219 (variant_field_index): New function.
7220 (contains_variant_part): Removed: subsumed by variant_field_index.
7221 (ada_template_to_fixed_record_type): New function, mostly from
7222 template_to_fixed_record_type.
7223 (template_to_fixed_record_type):
7224 Do not scan the type fields beyond the last one; prevents a
7226 Handle case where variant field is listed BEFORE discriminant it
7228 Fix calculation of record length when bit length is
7229 not evenly divisible by char length.
7230 Move code to ada_template_to_fixed_record_type and call it.
7232 (template_to_static_fixed_type): Revise comment.
7233 Modify to work on ordinary record types as well as templates,
7234 so as to handle fields that use ___XVE or ___XVU encodings.
7235 (to_record_with_fixed_variant_part): Fill out comment.
7236 Initialize C++ stuff in right type.
7237 Allow case where DVAL is null.
7238 Handle case where variant field is not last.
7239 Fix typo concerning record length.
7240 (to_fixed_record_type): Decomment disabled code.
7241 (to_fixed_record_type): Use variant_field_index instead of
7242 contains_variant_part.
7243 (to_fixed_variant_branch_type): Ditto.
7244 (to_fixed_array_type): Decomment disabled code.
7245 (ada_to_fixed_type): Convert tagged types to the specific type.
7246 Deactivate the size-check for array types in order to avoid
7247 some false size alarms.
7248 (to_static_fixed_type): Decomment disabled code.
7249 Modify to call template_to_static_fixed_type
7250 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7251 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7252 Remove valaddr argument, as it is never really used.
7253 (ada_to_fixed_value): Change interface to act on single struct value*
7255 (adjust_pc_past_prologue): New function.
7256 (ada_attribute_name): Modify to take enum exp_opcode argument.
7258 (ada_enum_name): Recognize new homonym-distinguishing convention.
7259 Adjust local variable's type to remove compiler warning.
7260 Fix a small problem in the part that unqualifies the enumeration name.
7261 (ada_value_binop): New function.
7262 (ada_value_equal): New function.
7264 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7265 Don't give error message when not doing normal evaluation
7266 and a tagged type doesn't seem to contain a structure member.
7267 Give error message for packed arrays.
7268 For indexing arrays, handle pointers to packed arrays correctly.
7269 Handle case of 'first and 'last attributes of bare integral type
7270 without encoded subtype info.
7271 Remove some unnecessary casts.
7272 Fix uninitialized value of type in computing 'first, 'last, or 'length
7274 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7275 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7277 Attributes are now exp_opcode values.
7278 Correct treatment of 'modulus.
7279 Better error message for taking 'length of wrong kind of type;
7281 Change EVAL_NORMAL to noside for consistency.
7282 Use ada_value_binop for DIV, MOD, REM.
7283 Make special case out of array of length 0, since an argument
7284 of 0 upsets some platforms' malloc.
7285 Use OP_STRING instead of OP_ARRAY.
7286 For slice, add check that we have an array type before extracting
7287 a slice out of it. Avoids a SEGV.
7288 When evaluating an array slice, if the array type is a reference to
7289 an aligner type, then replace the aligner type by the actual type.
7290 Decomment disabled code.
7291 Remove some dead code.
7292 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7293 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7294 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7295 and UNOP_MBR to UNOP_IN_RANGE.
7296 If an array type has a parallel ___XVE type, then use it.
7297 Turn arrays into pointers for lvalue arrays.
7298 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7299 bounds error and handle 0-length slices.
7301 When selecting fields, apply ada_to_fixed_value (because the fields
7302 might have ___XVU or ___XVE encodings even if not dynamic.)
7303 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7304 (ada_is_system_address_type): New function.
7306 (get_var_value): Use new interface to ada_lookup_symbol_list.
7307 (get_int_var_value): New interface.
7308 (to_fixed_range_type): Allow unknown bound, with warning.
7309 (ada_is_modular_type): Decomment disabled code.
7310 (ADA_OPERATORS): New definition.
7311 (ada_operator_length): New function.
7312 (ada_expr_op_name): New function.
7313 (ada_forward_operator_length): New function.
7314 (ada_dump_subexp_body): New function.
7315 (ada_print_subexp): New function.
7316 (ada_exp_descriptor): New constant.
7317 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7318 (ada_language_defn): Add ada_exp_descriptor entry.
7319 Change ada_parse => parse.
7320 Add post-parser entry.
7321 Use ada-specific non-local symbol lookup.
7322 Don't use C-style arrays.
7323 String lower-bound is 1.
7324 Decomment disabled code.
7325 (parse): New function.
7326 New fields ada_translate_error_message, ada_lookup_symbol,
7327 ada_lookup_minimal_symbol.
7329 * ada-lang.h: Update copyright dates.
7330 Replace the mangle/demangle terminology throughout by the
7331 more appropriate encode/decode one.
7332 Include breakpoint.h.
7333 Forward declare struct partial_symbol, struct block.
7334 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7335 (EXTRACT_ADDRESS): Remove.
7336 (EXTRACT_INT): Remove.
7337 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7338 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7339 (MAX_RENAMING_CHAIN_LENGTH): Define.
7340 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7342 (enum task_states): Remove.
7343 ada_task_states: Remove.
7344 (fat_string): Remove.
7345 (struct entry_call): Remove.
7346 (struct task_fields): Remove.
7347 (struct task_entry): Remove.
7349 (struct ada_symbol_info): Define.
7350 (enum ada_attribute): Remove.
7351 (enum ada_operator): Define.
7353 (ada_get_field_index): Declare.
7354 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7355 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7356 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7357 (ada_lookup_symbol_list): New interface.
7358 (ada_decode_symbol): Declare.
7359 (ada_decode): Declare.
7360 (ada_lookup_symbol): New interface.
7361 (ada_update_initial_language): Declare.
7362 (ada_lookup_simple_minsym): Declare.
7363 (user_select_syms): New interface.
7364 (ada_sals_for_line): Declare.
7365 (ada_is_tagged_type): New interface.
7366 (ada_tag_name): Declare.
7367 (ada_lookup_struct_elt_type): Remove declaration.
7368 (ada_search_struct_field): Remove declaration.
7369 (ada_attribute_name): New interface.
7370 (ada_is_system_address_type): Declare.
7371 (ada_to_fixed_value): Remove declaration.
7372 (ada_template_to_fixed_record_type_1): Declare.
7373 (get_int_var_value): New interface.
7374 (ada_find_any_symbol): Declare.
7375 (ada_find_renaming_symbol): Declare.
7376 (ada_mangle): Rename to ada_encode.
7377 (ada_simple_renamed_entity): Remove const.
7378 (ada_main_name): Declare.
7379 (get_current_task): Rename to ada_get_current_task.
7380 (get_entry_number): Remove declaration.
7381 (ada_report_exception_break): Remove declaration.
7382 (ada_print_exception_breakpoint_nontask): Declare.
7383 (ada_print_exception_breakpoint_task): Declare.
7384 (ada_find_printable_frame): Declare.
7386 * ada-lex.l: Update copyright notices.
7387 Use xmalloc and xfree instead of malloc and free.
7388 Use new interface to name_lookup.
7389 Use new interface to
7390 ada_mangle=>ada_encode.
7391 Redo handling of '$...' variable to parallel current treatment
7393 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7394 digit_to_int, strtoulst, processInt, processReal, processId,
7395 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7398 (processInt): Use cast to remove harmless warning.
7399 (processReal): Modify to get rid of compiler warning on scan formats.
7401 (processId): Replace xmalloc with obstack_alloc for name and remove
7402 call to ada_name_string_cleanup.
7403 Remove obsolete disabled code.
7404 (name_lookup): Ditto.
7406 Use obsavestring on temp_parse_space instead of savestring
7407 on name, and remove call to ada_name_string_cleanup.
7408 Free string returned from ada_simple_renamed_entity.
7409 Use new interface to ada_lookup_symbol_list.
7410 Decomment disabled code.
7411 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7413 When a type name lookup succeeds as a result of
7414 lookup_primitive_typename, check for regular type entry that has not
7416 Limit length of chain of renamed symbols we are willing to follow.
7417 Do not break names beginning with "standard__" into segments.
7418 (block_lookup): Use new interface to ada_lookup_symbol_list.
7420 * ada-typeprint.c: Update copyright notice.
7421 (demangled_type_name): Rename to decoded_type_name.
7422 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7423 (print_range_bound): Correct handling of negative
7424 bounds that make the index type looked unsigned under STABS.
7425 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7426 (print_range_type_named): Use the builtin int type if no type
7427 corresponding to the given type name could be found.
7428 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7429 Add some bullet-proofing.
7430 (print_variant_clauses): Allow for variant branches with ___XVU
7431 encodings that are not dynamic fields.
7432 Use new interface to ada_is_tagged_type.
7433 (print_record_type): Allow for fields with ___XVE encodings that
7434 are not dynamic fields.
7435 Use new interface to ada_is_tagged_type.
7436 (ada_print_type): ada_is_array_descriptor =>
7437 ada_is_array_descriptor_type.
7439 * ada-valprint.c: Update copyright notice.
7440 Include gdb_string.h
7442 (ui_memcpy): New function.
7443 (ada_print_floating): New function.
7444 (ada_print_str): Order arguments correctly.
7445 Correct handling of empty arrays and arrays of 0-length items.
7446 ada_is_array_descriptor => ada_is_array_descriptor_type
7447 Print values of type System.Address in hexadecimal format.
7448 Use ada_print_floating to print floating-point numbers in Ada format.
7449 Print class tag values with type names.
7450 No longer print the address of reference values. Avoids
7451 a potential confusion.
7452 (ada_value_print): Stop printing the object type for reference
7453 values, but preserve that behavior for access types. Avoids
7454 a potential confusion.
7455 Simplify one conditional expression, as the first part is now
7457 ada_is_array_descriptor => ada_is_array_descriptor_type
7458 Add check for arrays for null records, and print them by hand.
7460 2004-06-01 Jim Blandy <jimb@redhat.com>
7462 * ppc-tdep.h: Delete unused 'regoff' member.
7463 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7465 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7468 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7469 (hpread_read_struct_type): Likewise.
7471 2004-06-01 Andrew Cagney <cagney@gnu.org>
7473 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7474 instead of xasprintf.
7475 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7476 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7477 (mi_cmd_data_list_register_names)
7478 (mi_cmd_data_list_changed_registers)
7479 (mi_cmd_data_list_register_values)
7480 (get_register, mi_cmd_data_write_register_values)
7481 (mi_cmd_data_write_register_values)
7482 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7483 (mi_cmd_target_download, mi_cmd_target_select)
7484 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7485 (mi_execute_cli_command, mi_execute_async_cli_command)
7486 (mi_execute_async_cli_command): Ditto.
7487 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7488 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7490 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7491 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7492 error_last_message instead of mi_error_last_message.
7493 * mi/mi-main.c (mi_error_last_message): Delete function.
7495 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7496 "invalid number of columns" error. Delete redundant "out of
7499 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7501 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7502 (gregset_t, fpregset_t): Remove typedefs.
7503 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7504 (REG_OFFSET): Rename argument.
7505 (i386bsd_r_reg_offset): Rename from reg_offset.
7506 (REG_ADDR): Remove macro.
7507 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7509 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7510 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7511 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7512 instead of supply_gregset.
7513 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7514 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7515 instead of fill_gregset.
7516 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7518 * i386bsd-nat.c: Don't include "gregset.h".
7519 (supply_gregset, fill_gregset): Make static.
7520 (supply_fpregset, fill_fpregset): Remove.
7521 * Makefile.in (i386bsd-nat.o): Update dependencies.
7523 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7525 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7526 "gdb_assert.h". Con't include "gregset.h".
7527 (fbsd_make_corefile_notes): Use regset-based core file support
7528 instead off fill_gregset and fill_fpregset.
7529 * Makefile.in (fbsd-proc.o): Update dependencies.
7531 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7533 (m88k_frame_prev_register): Simplify code a bit.
7535 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7536 (amd64_collect_fpregset): New function.
7537 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7539 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7541 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7542 (i386_collect_gregset): New function.
7543 (i386_supply_fpregset): Adjust comment.
7544 (i386_collect_fpregset): New function.
7545 (i386_regset_from_core_section): Use i386_collect_gregset and
7546 i386_collect_fpregset.
7548 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7549 handle VALUEP being null.
7551 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7553 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7555 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7557 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7558 assembler in OpenBSD 3.5-current.
7559 (amd64obsd_sigcontext_addr): Likewise.
7561 2004-05-28 Jim Blandy <jimb@redhat.com>
7563 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7564 register set, so our regcache isn't declared "legacy" and our E500
7565 pseudoregister read and write functions aren't ignored.
7566 (rs6000_register_byte, rs6000_register_raw_size,
7567 rs6000_register_virtual_type, rs6000_register_convertible,
7568 rs6000_register_convert_to_virtual,
7569 rs6000_register_convert_to_raw): Deleted.
7570 (rs6000_register_type, rs6000_convert_register_p,
7571 rs6000_register_to_value, rs6000_value_to_register): New
7573 (rs6000_gdbarch_init): Don't register
7574 gdbarch_deprecated_register_size,
7575 gdbarch_deprecated_register_bytes,
7576 gdbarch_deprecated_register_byte,
7577 gdbarch_deprecated_register_raw_size,
7578 gdbarch_deprecated_register_virtual_type,
7579 gdbarch_deprecated_register_convertible,
7580 gdbarch_deprecated_register_convert_to_virtual, or
7581 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7582 register gdbarch_register_type, gdbarch_convert_register_p,
7583 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7585 2004-05-26 Jim Blandy <jimb@redhat.com>
7587 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7588 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7589 functions, updated to match the register numberings used in GCC.
7590 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7591 rs6000_dwarf2_reg_to_regnum as register number conversions
7592 functions for STABS and Dwarf2.
7594 2004-05-26 Randolph Chung <tausq@debian.org>
7596 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7599 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7601 * NEWS: Document new "start" command.
7603 2004-05-25 Randolph Chung <tausq@debian.org>
7605 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7608 2004-05-25 Randolph Chung <tausq@debian.org>
7610 * hppa-hpux-tdep.c (offsetof): Define.
7611 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7612 (hppa32_hpux_frame_base_before_sigtramp)
7613 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7614 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7615 (hppa64_hpux_frame_base_before_sigtramp)
7616 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7618 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7619 (hppa_hpux_sigtramp_frame_unwind_cache)
7620 (hppa_hpux_sigtramp_frame_this_id)
7621 (hppa_hpux_sigtramp_frame_prev_register)
7622 (hppa_hpux_sigtramp_frame_unwind)
7623 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7624 (hppa_hpux_init_abi): Register sigtramp unwinder.
7625 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7627 2004-05-25 Randolph Chung <tausq@debian.org>
7629 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7630 and multiple stack unwinds.
7631 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7633 2004-05-25 Andrew Cagney <cagney@gnu.org>
7635 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7636 * symfile-mem.h: Delete file.
7637 * symfile-mem.c: Do not include "symfile-mem.h".
7638 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7639 "struct bfd_section". When an error do not bother returning NULL.
7640 (add_symbol_file_from_memory_command): Use "struct bfd" and
7641 "struct bfd_section".
7642 * Makefile.in (symfile_mem_h): Delete.
7643 (symfile-mem.o): Update dependencies.
7645 2004-05-25 Nick Roberts <nickrob@gnu.org>
7647 * gdb-mi.el: New file.
7649 2004-05-25 Andrew Cagney <cagney@gnu.org>
7651 * inftarg.c: Include "observer.h".
7652 (child_attach, child_create_inferior): Notify inferior_created.
7653 * corelow.c: Include "observer.h".
7654 (core_open): Notify inferior_created.
7655 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7657 2004-05-25 Andrew Cagney <cagney@gnu.org>
7659 * target.h (struct target_ops): Add from_tty to
7661 (target_create_inferior, find_default_create_inferior): Update.
7662 * infcmd.c (run_command): Update.
7663 * wince.c (child_create_inferior): Update.
7664 * win32-nat.c (child_create_inferior): Update.
7665 * uw-thread.c (uw_thread_create_inferior): Update.
7666 * thread-db.c (thread_db_create_inferior): Update.
7667 * target.c (debug_to_create_inferior)
7668 (find_default_create_inferior): Update.
7669 (maybe_kill_then_create_inferior): Update.
7670 * sol-thread.c (sol_thread_create_inferior): Update.
7671 * remote.c (extended_remote_async_create_inferior)
7672 (extended_remote_create_inferior): Update.
7673 * remote-vx.c (vx_create_inferior): Update.
7674 * remote-st.c (st2000_create_inferior): Update.
7675 * remote-sim.c (gdbsim_create_inferior): Update.
7676 * remote-sds.c (sds_create_inferior): Update.
7677 * remote-rdp.c (remote_rdp_create_inferior): Update.
7678 * remote-rdi.c (arm_rdi_create_inferior): Update.
7679 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7680 * remote-e7000.c (e7000_create_inferior): Update.
7681 * procfs.c (procfs_create_inferior): Update.
7682 * ocd.c (ocd_create_inferior): Update.
7683 * ocd.h (ocd_create_inferior): Update.
7684 * nto-procfs.c (procfs_create_inferior): Update.
7685 * monitor.c (monitor_create_inferior): Update.
7686 * lin-lwp.c (lin_lwp_create_inferior): Update.
7687 * inftarg.c (child_create_inferior): Update.
7688 * hpux-thread.c (hpux_thread_create_inferior): Update.
7689 * gnu-nat.c (gnu_create_inferior): Update.
7691 2004-05-25 Andrew Cagney <cagney@gnu.com>
7693 * MAINTAINERS: Update e-mail address.
7695 2004-05-24 Randolph Chung <tausq@debian.org>
7697 * thread.c (info_threads_command, thread_apply_all_command)
7698 (thread_apply_command, thread_command, do_captured_thread_select):
7699 Remove HPUXHPPA-specific code.
7701 2004-05-24 Randolph Chung <tausq@debian.org>
7703 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7705 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7708 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7710 * infcmd.c (kill_if_already_running): New function, extracted
7712 (run_command): Replace extracted code by call to
7713 kill_if_already_running().
7714 (start_command): New function.
7715 (_initialize_infcmd): Add "start" command.
7717 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7719 Add OpenBSD/m88k support.
7720 * NEWS (New native configurations): Mention OpenBSD/m88k.
7721 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7722 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7723 * Makefile.in (m88k_tdep_h): New variable.
7724 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7725 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7726 * configure.host: Add m88*-*-openbsd*.
7727 * configure.tgt: Add m88*-*-openbsd*.
7729 2004-05-24 Jim Blandy <jimb@redhat.com>
7731 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7734 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7736 * symtab.c (fixup_section): Search section table when lookup by
7739 2004-05-24 Randolph Chung <tausq@debian.org>
7741 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7744 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7746 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7747 register number in regcache_raw_collect call.
7748 (m68kbsd_collect_fpregset): Likewise.
7749 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7751 * regset.h (struct regset): Add back `regset' member.
7753 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7755 * configure.in: Check for td_pcb in `struct thread'.
7756 * configure, config.in: Regenerated.
7758 * dpx2-nat.c: Remove file.
7759 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7760 (dpx2-nat.o): Remove dependencies.
7762 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7763 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7764 (amd64obsd_supply_pcb): New function.
7765 (_initialize_amd64obsd_nat): Enable libkvm interface.
7766 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7767 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7768 (LOADLIBES): New variable.
7770 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7771 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7772 (sparc32nbsd_supply_pcb): New function.
7773 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7774 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7775 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7776 (LOADLIBES): New variable.
7778 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7780 * bsd-kvm.c, bsd-kvm.h: New files.
7781 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7783 (i386fbsd_supply_pcb): New function.
7784 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7785 (i386fbsd-nat.o): Update dependencies.
7786 (bsd_kvm_h): New variable.
7787 (bsd-kvm.o): New dependency.
7788 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7789 (LOADLIBES): New variable.
7791 * regset.c: Tweak comment.
7792 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7794 * regset.h: Update copyright year.
7795 (struct regset): Remove `descr' member, add `gdbarch' member.
7796 (regset_alloc): Adjust prototype and comment.
7797 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7798 (i386_supply_fpregset): Likewise.
7799 (i386_regset_from_core_section): Update call to regset_alloc.
7800 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7802 (i386obsd_aout_regset_from_core_section): Update call to
7804 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7806 (i386nbsd_aout_regset_from_core_section): Update call to
7808 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7810 (amd64_regset_from_core_section): Update call to regset_alloc.
7811 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7813 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7814 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7815 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7816 (sparc32nbsd_init_abi): Update call to regset_alloc.
7817 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7818 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7819 (sparc64obsd_init_abi): Update call to regset_alloc.
7820 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7821 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7822 (sparc64nbsd_init_abi): Update call to regset_alloc.
7823 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7824 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7825 (sparc64fbsd_init_abi): Update call to regset_alloc.
7827 2004-05-22 Jim Blandy <jimb@redhat.com>
7829 * ppc-tdep.h (spe_register_p): New declaration.
7830 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7832 * rs6000-tdep.c (spe_register_p): New function.
7833 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7835 (rs6000_gdbarch_init): Initialize the new members of the tdep
7838 2004-05-21 Jim Blandy <jimb@redhat.com>
7840 * ppc-linux-nat.c (fetch_register): Move code back to be next
7841 to the comment that describes it. (Moved code, instead of
7842 comment, for symmetry with store_register.)
7844 Allocate regset structures in the gdbarch's obstack, not using
7846 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7847 Add 'arch' argument. Allocate the regset on arch's obstack, not
7849 * regset.h (regset_alloc): Update declaration.
7850 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7852 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7853 * i386-tdep.c (i386_regset_from_core_section): Same.
7854 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7855 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7856 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7857 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7858 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7859 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7861 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7863 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7865 2004-05-21 Jim Blandy <jimb@redhat.com>
7867 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7868 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7870 2004-05-20 Jim Blandy <jimb@redhat.com>
7872 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7874 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7876 * regset.h: Make prototype const-correct.
7877 * regset.c (regset_xmalloc): Make const-correct.
7879 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7881 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7882 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7883 (symbol_search_name): Declare.
7885 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7886 (iter_name_next_hashed): Ditto.
7887 (iter_name_next_linear): Ditto.
7888 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7890 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7891 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7892 (symbol_search_name): New function.
7894 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7896 * minsyms.c (build_minimal_symbol_hash_tables): Change
7897 test for adding to demangled hash table to check for difference
7898 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7900 2004-05-19 Jim Blandy <jimb@redhat.com>
7902 Use a constructor function to create regset structures.
7903 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7904 (struct regset): Use supply_regset_ftype. Add new
7905 'collect_regset' member.
7906 (regset_xmalloc): New declaration.
7907 * regset.c: New file.
7908 * am64-tdep.c (amd64_regset_from_core_section): Use
7909 regset_xmalloc to construct regset structures.
7910 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7911 * i386-tdep.c (i386_regset_from_core_section): Same.
7912 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7913 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7914 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7915 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7916 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7917 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7918 * Makefile.in (COMMON_OBS): Add regset.o.
7919 (regset.o): New rule.
7921 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7923 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7924 and pthread_cond_wait.c.
7926 2004-05-18 Jim Blandy <jimb@redhat.com>
7928 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7929 before the mach-specific switch, and then let the individual cases
7930 override the defaults, rather than leaving them uninitialized
7931 until the switch and then setting them in each case.
7933 2004-05-18 Randolph Chung <tausq@debian.org>
7935 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7936 millicode functions.
7938 2004-05-18 Randolph Chung <tausq@debian.org>
7940 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7941 references to dld_flags_buffer consistent.
7943 2004-05-18 Randolph Chung <tausq@debian.org>
7945 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7946 it for unwinding the stack.
7948 2004-05-18 Randolph Chung <tausq@debian.org>
7950 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7951 Undefine these so we can overide them using gdbarch.
7953 2004-05-18 Randolph Chung <tausq@debian.org>
7955 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7956 handling for 64-bit HPUX (elf).
7958 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7960 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7962 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7963 * ia64-tdep.c (examine_prologue): Likewise.
7964 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7965 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7967 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7969 * vax-tdep.c (vax_return_value): Implement
7970 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7972 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7974 * vax-tdep.c (vax_return_value): Fix typo.
7976 2004-05-17 Andrew Cagney <cagney@redhat.com>
7978 * MAINTAINERS: Mark Salter was also responsible for
7981 * NEWS: Mention signal fixes.
7983 2004-05-17 Randolph Chung <tausq@debian.org>
7985 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7986 check to see if we are unwinding an export stub. Export stubs clobber
7987 the %rp in the call path and stores the original rp in a stack slot.
7989 2004-05-17 Jim Blandy <jimb@redhat.com>
7991 * MAINTAINERS: Update address for J.T. Conklin.
7993 2004-05-17 Randolph Chung <tausq@debian.org>
7995 * hppa-tdep.c: Remove superfluous #include's.
7996 * Makefile.in (hppa-tdep.o): Update dependencies.
7998 2004-05-17 Randolph Chung <tausq@debian.org>
8000 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
8001 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
8002 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
8003 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
8004 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
8005 Remove static function declarations.
8007 2004-05-17 Mark Kettenis <kettenis@gnu.org>
8009 * alphabsd-nat.c: Update copyright year.
8010 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
8012 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
8015 * m68k-tdep.c (m68k_svr4_return_value): Implement
8016 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8018 2004-05-16 Mark Kettenis <kettenis@gnu.org>
8020 * sol-thread.c Update copyright year. Fix various coding
8021 standards violations. Tweak a few comments.
8022 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
8025 2004-05-15 Randolph Chung <tausq@debian.org>
8027 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
8028 as pointer instead of array reference since HPUX compiler does
8029 not accept unsized array arguments.
8030 * somsolib.c (dld_flags_buffer): Use constant array size.
8032 2004-05-15 Mark Kettenis <kettenis@gnu.org>
8034 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
8035 offset with decimal offset.
8036 (amd64obsd_sigcontext_addr): Return correct address for entire
8039 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
8040 instead of get_frame_base.
8042 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
8043 (fill_gregset): Use regcache_raw_collect.
8045 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
8048 * config/sparc/tm-nbsd64.h: Remove file.
8049 * config/tm-sunos.h: Remove file.
8051 2004-05-15 Joel Brobecker <brobecker@gnat.com>
8053 * rs6000-tdep.c (store_param_on_stack_p): New function,
8054 an improved version of some code extracted from skip_prologue().
8055 (skip_prologue): Use store_param_on_stack_p() to detect
8056 instructions saving a parameter on the stack. Detect when r0
8057 is used to save a parameter.
8058 Do not mark "li rx, SIMM" instructions as part of the prologue,
8059 unless the following instruction is also part of the prologue.
8061 2004-05-14 Andrew Cagney <cagney@redhat.com>
8063 * infrun.c (handle_inferior_event): Simplify
8064 STEP_OVER_UNDEBUGGABLE.
8066 * infrun.c (handle_step_into_function): Delete function.
8067 (handle_inferior_event): Inline calls to
8068 handle_step_into_function.
8070 2004-05-14 Jerome Guitton <guitton@gnat.com>
8072 * rs6000-nat.c: Fix a comment.
8074 2004-05-12 David Anderson <davea@sgi.com>
8076 Committed by Jim Blandy <jimb@redhat.com>:
8077 * regcache.c (struct regcache_descr): fix comment spelling.
8079 2004-05-13 J. Brobecker <brobecker@gnat.com>
8081 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8082 Fixes a link link failure.
8084 2004-05-13 J. Brobecker <brobecker@gnat.com>
8086 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8087 error that was causing the build to fail.
8089 2004-05-13 J. Brobecker <brobecker@gnat.com>
8091 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8092 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8094 2004-05-13 Andrew Cagney <cagney@redhat.com>
8096 * infrun.c (handle_inferior_event): Check for
8097 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8098 calls. Update comments.
8100 2004-05-13 Jim Blandy <jimb@redhat.com>
8102 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8103 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8104 (store_regs_user_thread, store_regs_kernel_thread): Use
8105 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8106 * ppc-linux-nat.c (fill_gregset): Same.
8107 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8108 (ppc_linux_sigtramp_cache): Same.
8109 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8110 (ppcnbsd_sigtramp_cache_init): Same.
8111 * rs6000-nat.c (fetch_core_registers): Same.
8112 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8113 (rs6000_frame_cache): Same.
8115 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8116 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8117 of assuming that the gprs are numbered starting with zero.
8118 * ppc-linux-nat.c (fill_gregset): Same.
8119 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8120 * ppcnbsd-nat.c (getregs_supplies): Same.
8121 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8122 * rs6000-nat.c (fetch_core_registers): Same.
8123 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8125 2004-05-07 Michael Snyder <msnyder@redhat.com>
8127 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8128 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8130 2004-05-13 Andrew Cagney <cagney@redhat.com>
8132 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8134 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8136 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8137 base_address for shared libraries.
8139 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8141 * MAINTAINERS (write after approval): Add myself.
8143 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8145 * breakpoint.c (bpstat_stop_status): Add new argument
8146 STOPPED_BY_WATCHPOINT. Use it instead of testing
8147 target_stopped_data_address agaist 0 to check whether
8148 or not we stopped due to a hardware watchpoint.
8149 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8150 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8153 2004-05-12 Jim Blandy <jimb@redhat.com>
8155 * configure.in: When checking whether we should use the -bbigtoc
8156 option, don't forget to restore the original value of LDFLAGS.
8157 * configure: Regenerated.
8159 2004-05-12 Andrew Cagney <cagney@redhat.com>
8161 * thread.c (load_infrun_state): Delete step_sp.
8162 * infrun.c (context_switch): Ditto.
8163 * inferior.h (step_sp): Ditto.
8164 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8165 * gdbthread.h (struct thread_info, save_infrun_state)
8166 (restore_infrun_state): Ditto.
8168 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8170 * MAINTAINERS (write after approval): Add myself.
8172 2004-05-12 Andrew Cagney <cagney@redhat.com>
8174 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8175 eliminate reference to step_sp.
8176 (struct execution_control_state, init_execution_control_state)
8177 (handle_inferior_event, keep_going): Delete update_step_sp and
8179 * infcmd.c (step_sp): Note that variable is unused.
8181 2004-05-11 Andrew Cagney <cagney@redhat.com>
8183 * infrun.c (step_over_function): Delete function.
8184 (handle_step_into_function): Use insert_step_resume_breakpoint.
8185 (insert_step_resume_breakpoint): Fix assertion.
8187 2004-05-11 Nick Roberts <nickrob@gnu.org>
8189 * utils.c (defaulted_query): Just use the normal query input type
8190 when printing the annotations.
8192 2004-05-11 Andrew Cagney <cagney@redhat.com>
8194 * infrun.c (handle_inferior_event): Simplify code handling
8195 step-into or return-from a signal trampoline.
8197 2004-05-11 Andrew Cagney <cagney@redhat.com>
8199 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8200 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8202 2004-05-10 Jim Blandy <jimb@redhat.com>
8204 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8205 with a call to internal_error.
8207 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8208 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8209 processor variant lacks those registers.
8210 (ppc_floating_point_unit_p): Change description to make it clear
8211 that this returns info about the ISA, not the ABI.
8212 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8213 return true or false by checking tdep->ppc_fp0_regnum and
8214 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8215 arch/mach switching done in rs6000_gdbarch_init; it's better to
8216 keep that logic there, and just check the results here.
8217 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8218 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8219 floating-point registers.
8220 (ppc_supply_fpregset, ppc_collect_fpregset)
8221 (rs6000_push_dummy_call, rs6000_extract_return_value)
8222 (rs6000_store_return_value): Assert that we have floating-point
8224 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8225 (rs6000_frame_cache): Don't note the locations at which
8226 floating-point registers were saved if we have no fprs.
8227 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8229 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8230 (store_regs_user_thread, store_regs_kernel_thread): Only call
8231 supply_fprs / fill_fprs if we actually have floating-point
8233 (special_register_p): Check ppc_fpscr_regnum before matching
8235 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8236 supply / collect fpscr if we don't have it.
8237 * ppc-bdm.c: #include "gdb_assert.h".
8238 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8239 have floating-point registers, since I can't test this code on
8240 FP-free systems to adapt it.
8241 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8242 fpscr and floating point register numbers if they don't exist.
8243 (fetch_register): Assert that we have floating-point registers
8244 before we reach the code that handles them.
8245 (store_register): Same. And use tdep instead of calling
8247 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8249 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8250 fprs and fpscr if we don't have them.
8251 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8253 * ppcnbsd-nat.c: #include "gdb_assert.h".
8254 (getfpregs_supplies): Assert that we have floating-point registers.
8255 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8256 * ppcobsd-tdep.c: #include "gdb_assert.h".
8257 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8258 have floating-point registers.
8259 * rs6000-nat.c (regmap): Don't match against the fpscr and
8260 floating point register numbers if they don't exist.
8261 (fetch_inferior_registers, store_inferior_registers,
8262 fetch_core_registers): Only fetch / store / supply the
8263 floating-point registers and the fpscr if we have them.
8264 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8265 (ppcobsd-tdep.o): Update dependencies.
8267 2004-05-10 Andrew Cagney <cagney@redhat.com>
8269 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8270 (context_switch): Do not switch through_sigtramp_breakpoint.
8271 * gdbthread.h (save_infrun_state, load_infrun_state)
8272 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8273 and structure member.
8274 * thread.c (load_infrun_state, save_infrun_state): Update.
8276 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8278 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8280 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8282 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8284 * aclocal.m4: Regenerate.
8286 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8288 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8290 2004-05-10 Andrew Cagney <cagney@redhat.com>
8292 * infrun.c (check_sigtramp2): Delete function.
8293 (handle_inferior_event): When single stepping, and taking a
8294 signal, set a breakpoint at the signal return address. Delete
8295 redundant calls to check_sigtramp2.
8296 (insert_step_resume_breakpoint): New function.
8297 (through_sigtramp_breakpoint, handle_inferior_event)
8298 (follow_exec, wait_for_inferior, fetch_inferior_event)
8299 (currently_stepping, keep_going): Delete most uses of
8300 through_sigtramp_breakpoint, not that it should be deleted.
8301 (delete_breakpoint_current_contents): Delete function.
8303 2004-05-10 Randolph Chung <tausq@debian.org>
8305 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8307 * config/pa/tm-linux.h: New file.
8309 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8311 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8312 of prefixes. Don't print the prefix twice in the CLI.
8314 2004-05-10 Jim Blandy <jimb@redhat.com>
8316 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8317 collect all the gprs.
8319 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8320 loop collecting gprs.
8322 2004-05-09 Andrew Cagney <cagney@redhat.com>
8324 * remote-vx.c (net_step): Delete step-range code.
8325 * remote.c (remote_resume, init_all_packet_configs)
8326 (set_remote_protocol_E_packet_cmd)
8327 (show_remote_protocol_E_packet_cmd)
8328 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8329 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8330 (show_remote_protocol_e_packet_cmd): Ditto.
8332 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8334 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8336 * hppa-tdep.h: Update copyright year.
8337 (struct trad_frame_saved_reg): Add opaque declaration.
8339 * amd64-tdep.c (amd64_return_value): Implement
8340 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8342 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8343 (m68k_value_to_register): New functions.
8344 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8347 * defs.h (enum return_value_convention): Add
8348 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8349 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8350 * infcmd.c (legacy_return_value): New function.
8351 (print_return_value): Rwerite to implement
8352 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8353 * values.c (using_struct_return): Check for inequality to
8354 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8355 RETURN_VALUE_STRUCT_CONVENTION.
8356 * i386-tdep.c (i386_return_value): Implement
8357 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8359 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8360 include "symtab.h", "opcode/vax.h" and "inferior.h".
8361 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8362 to read_memory_unsigned_integer.
8363 (vax_gdbarch_init): Reorder.
8364 (_initialize_vax_tdep): Spell out prototype.
8365 * Makefile.in (vax-tdep.o): Update dependencies.
8367 2004-05-08 Andrew Cagney <cagney@redhat.com>
8369 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8370 * target.c (target_detach, target_disconnect): Ditto.
8372 * infcall.c (call_function_by_hand): When no
8373 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8374 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8375 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8376 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8377 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8379 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8380 * gdbarch.h, gdbarch.c: Re-generate.
8381 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8382 deprecated_fix_call_dummy.
8383 * v850-tdep.c (v850_gdbarch_init): Ditto.
8384 * infcall.c (call_function_by_hand): Do not call
8385 DEPRECATED_FIX_CALL_DUMMY.
8387 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8388 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8389 * gdbarch.h, gdbarch.c: Re-generate.
8390 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8391 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8392 deprecated_sizeof_call_dummy_words.
8393 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8395 * v850-tdep.c (v850_gdbarch_init): Ditto.
8396 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8397 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8398 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8399 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8400 * arch-utils.h (legacy_call_dummy_words)
8401 (legacy_sizeof_call_dummy_words): Delete declarations.
8402 * arch-utils.c (legacy_call_dummy_words)
8403 (legacy_sizeof_call_dummy_words): Delete variables.
8405 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8406 * gdbarch.h, gdbarch.c: Re-generate.
8407 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8408 * infcall.c (call_function_by_hand): Eliminate call to
8409 DEPRECATED_PUSH_DUMMY_FRAME.
8410 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8412 (ns32k_push_dummy_frame): Delete function.
8414 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8415 deprecated_call_dummy_breakpoint_offset or
8416 deprecated_call_dummy_start_offset.
8417 * dummy-frame.c, arm-tdep.c: Update comments.
8418 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8419 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8420 * gdbarch.h, gdbarch.c: Re-generate.
8422 * infcall.c (legacy_push_dummy_code): Delete function.
8423 (push_dummy_code): Delete call.
8425 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8428 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8429 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8430 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8432 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8433 (struct frame_info): Delete opaque declaration.
8434 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8435 * frame.c (get_frame_type): Delete call.
8437 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8439 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8440 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8442 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8444 * alphanbsd-tdep.c: Include "gdb_string.h".
8445 * armnbsd-tdep.c: Update copyright year.
8446 Include "gdb_string.h".
8447 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8450 * delta68-nat.c: Remove file.
8451 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8452 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8453 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8454 (delta68-nat.o): Remove dependency.
8456 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8458 (m68k_gdbarch_init): Don't set
8459 deprecated_frameless_function_invocation.
8461 2004-05-07 Randolph Chung <tausq@debian.org>
8463 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8464 read_memory_nobpt for code reading when doing frame unwinding.
8465 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8467 2004-05-07 Randolph Chung <tausq@debian.org>
8469 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8470 instead of sp, handle sigaltstack case.
8471 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8472 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8473 signal handler and not that of the caller.
8474 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8475 hppa_linux_sigtramp_find_sigcontext.
8477 2004-05-07 Randolph Chung <tausq@debian.org>
8479 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8481 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8482 * hppa-linux-nat.c (fetch_register, store_register): Define.
8483 (fetch_inferior_registers, store_inferior_registers): Define.
8484 (supply_gregset): Add comment and clean up some unneeded code.
8485 (fill_gregset): Add comment and fix so that it saves registers in
8486 the right place in the gregset.
8487 (fill_fpregset): Fix buffer overrun problem.
8488 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8490 2004-05-07 Randolph Chung <tausq@debian.org>
8492 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8493 do common handling of the pcoqt register.
8494 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8495 to use helper function.
8496 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8497 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8498 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8499 generic fallback unwinder when all else fails.
8500 (hppa_gdbarch_init): Add fallback sniffer.
8501 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8502 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8503 to use helper function.
8505 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8507 * config/djgpp/fnchange.lst: Add translation rules for
8508 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8510 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8512 * frame.c (get_prev_frame_1): Work around GCC bug.
8513 * frame.h: Add comment about GCC bug.
8515 2004-05-07 Andrew Cagney <cagney@redhat.com>
8517 * observer.c: Include "commands.h" and "gdbcmd.h".
8518 (observer_debug, _initialize_observer): Add the
8519 command "set/show debug observer".
8520 * observer.sh: When observer debugging, log notify calls.
8521 * Makefile.in (observer.o): Update dependencies.
8523 2004-05-07 Jason Molenda (jmolenda@apple.com)
8525 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8527 2004-05-07 Jim Blandy <jimb@redhat.com>
8529 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8530 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8531 to recognize gpr regnums, instead of assuming that
8532 tdep->ppc_fp0_regnum marks the end of the general-purpose
8535 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8536 the given architecture has floating-point registers.
8538 2004-05-07 Andrew Cagney <cagney@redhat.com>
8540 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8542 * gdbarch.h, gdbarch.c: Re-generate.
8543 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8544 deprecated_use_generic_dummy_frames.
8546 2004-05-07 Brian Ford <ford@vss.fsi.com>
8548 * NEWS: Mention Cygwin DWARF 2 support.
8550 2004-05-07 Andrew Cagney <cagney@redhat.com>
8552 * objfiles.h (struct entry_info): Delete unused fields
8553 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8554 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8555 * mipsread.c (mipscoff_symfile_read): Update.
8556 * mdebugread.c (parse_partial_symbols): Update.
8557 * dwarfread.c (read_file_scope): Update.
8558 * dwarf2read.c (read_file_scope): Update.
8559 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8560 * coffread.c (complete_symtab): Update.
8562 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8564 * infcall.c (_initialize_infcall): Fix typo.
8566 2004-05-07 Andrew Cagney <cagney@redhat.com>
8568 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8569 * command.h (add_setshow_zinteger_cmd): Declare.
8571 2004-05-06 Randolph Chung <tausq@debian.org>
8573 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8574 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8575 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8576 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8577 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8578 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8579 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8581 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8582 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8583 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8584 (hppa64_hpux_frame_find_saved_regs_in_sig)
8585 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8586 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8587 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8588 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8589 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8590 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8591 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8592 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8593 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8594 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8595 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8596 (hppa32_register_type, hppa_cannot_store_register)
8597 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8598 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8599 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8600 * pa64solib.c (pa64_solib_have_load_event)
8601 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8602 (pa64_solib_unloaded_library_pathname): Likewise.
8603 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8604 (som_solib_library_pathname): Likewise.
8606 2004-05-05 Jim Ingham <jingham@apple.com>
8608 * breakpoint.c (create_breakpoints): Copy the ignore count and
8609 thread id over from the pended breakpoint to the actual
8612 2004-05-05 Andrew Cagney <cagney@redhat.com>
8614 * gdbarch.sh (PARM_BOUNDARY): Delete.
8615 gdbarch.h, gdbarch.c: Re-generate.
8616 * valops.c (PARM_BOUNDARY): Delete macro.
8617 (value_push): Delete PARM_BOUNDARY code.
8618 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8620 2004-05-04 Jim Blandy <jimb@redhat.com>
8622 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8623 Don't assume that the gprs, fprs, and UISA sprs are
8624 contiguous, start at register number zero, and end with fpscr.
8625 Instead, use the numbers from the tdep structure.
8627 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8628 should no longer be used in code specific to the RS6000 and its
8630 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8631 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8632 tdep->ppc_fp0_regnum.
8633 (ppc_supply_fpregset, ppc_collect_fpregset)
8634 (rs6000_push_dummy_call, rs6000_extract_return_value)
8635 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8636 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8638 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8639 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8641 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8642 bdm_ppc_store_registers): Same.
8643 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8644 (store_register, fill_fpregset): Same.
8645 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8646 (ppc_linux_supply_fpregset): Same.
8647 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8648 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8650 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8651 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8652 ppc64_sysv_abi_return_value): Same.
8653 * rs6000-nat.c (regmap, fetch_inferior_registers)
8654 (store_inferior_registers, fetch_core_registers): Same.
8656 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8658 * m68knbsd-nat.c: Remove file.
8659 * m68knbsd-tdep.c: Remove file.
8660 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8662 * configure.host: Add m68k-*-netbsdelf*.
8663 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8664 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8665 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8667 * config/m68k/nbsdelf.mh: New file.
8668 * config/m68k/nbsd.mt: New file.
8669 * config/m68k/nbsdaout.mt: Remove file.
8670 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8671 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8672 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8673 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8674 (use_struct_convention): Remove prototype.
8675 (USE_STRUCT_CONVENTION): Remove define.
8676 * config/m68k/xm-nbsd.h: Remove file.
8678 2004-05-04 Michael Snyder <msnyder@redhat.com>
8680 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8681 reg_struct_return method (as gcc usually does for cross targets).
8683 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8685 Committed by Andrew Cagney.
8686 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8687 alignment padding when accessing ucontext struct members.
8689 2004-05-04 Jim Blandy <jimb@redhat.com>
8691 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8692 'ppc_gplast_regnum' member.
8693 (ppc_num_gprs): New enum constant.
8694 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8695 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8696 * rs6000-nat.c (regmap, fetch_inferior_registers,
8697 store_inferior_registers): Same.
8698 * rs6000-tdep.c (e500_pseudo_register_read)
8699 (e500_pseudo_register_write): Same.
8700 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8702 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8703 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8704 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8705 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8707 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8709 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8710 * rs6000-nat.c (regmap, fetch_inferior_registers)
8711 (store_inferior_registers): Same.
8713 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8716 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8718 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8719 failure detected by recent versions of GCC.
8720 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8721 to be consistent with the usage in dwarf2_create_include_psymtab.
8723 2004-05-03 Michael Snyder <msnyder@redhat.com>
8725 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8726 (heuristic_proc_start): Whitespace cleanup.
8728 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8730 * sun3-nat.c: Remove file.
8731 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8733 (ALLDEPFILES): Remove sun3-nat.c.
8734 (sun3-nat.o): Remove dependencies.
8736 * i386-interix-nat.c, i386-interix-tdep.c,
8737 config/i386/nm-interix.h, config/i386/interix.mh,
8738 config/i386/interix.mt: Remove files.
8739 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8742 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8744 * m68k-tdep.h (struct gdbarch_tdep): Add member
8745 struct_value_regnum.
8746 (m68k_svr4_init_abi): New prototype.
8747 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8748 different calling conventions.
8749 (m68k_extract_return_value): Remove code dealing with single-field
8751 (m68k_store_return_value): Remove code dealing with single-field
8752 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8753 (m68k_extract_struct_value_address): Remove function.
8754 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8755 (m68k_reg_struct_return_p, m68k_return_value)
8756 (m68k_svr4_return_value): New functions.
8757 (m68k_use_struct_convention): Remove function.
8758 (m68k_push_dummy_call): Use new struct_value_regnum member of
8759 `struct gdbarch_tdep' instead of hardcoded register number to
8761 (m68k_svr4_init_abi): New function.
8762 (m68k_gdbarch_init): Don't set extract_return_value,
8763 store_return_values, deprecated_extract_struct_value_address and
8764 use_struct_convention. Set return_value instead. Initialize new
8765 struct_value_regnum member of `struct gdbarch_tdep'.
8766 * m68klinux-tdep.c: Update copyright year.
8767 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8768 (m68k_linux_extract_struct_value_address): Remove function.
8769 (m68k_linux_init_abi): Don't set extract_return_value,
8770 store_return_values, deprecated_extract_struct_value_address and
8771 use_struct_convention. Call m68k_svr4_init_abi but override the
8772 new struct_value_regnum member of `struct gdbarch_tdep'.
8773 * Makefile.in (m68k-tdep.o): Update dependencies.
8775 2004-05-03 J. Brobecker <brobecker@gnat.com>
8777 * dwarf2read.c (line_header): Add new included_p field in
8779 (partial_die_info): New field has_stmt_list. New field line_offset.
8780 (dwarf2_create_include_psymtab): New function.
8781 (dwarf2_build_include_psymtabs): New function.
8782 (add_file_name): Add forward declaration. Initialize new field.
8783 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8784 to be able to determine the list of files included by the
8785 given unit, and build their associated psymtabs.
8786 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8788 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8789 (read_file_scope): Update call to dwarf_decode_lines.
8790 (read_partial_die): Handle DW_AT_stmt_list attributes.
8792 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8795 * configure.in: Revert special case for osf5.*.
8796 * configure: Regenerate.
8798 2004-05-02 Jim Blandy <jimb@redhat.com>
8800 Move the symbol-file-from-memory functions into their own file.
8801 * symfile-mem.c, symfile-mem.h: New files.
8802 * symfile.c (symbol_file_add_from_bfd): New function.
8803 (symbol_file_add): Call symbol_file_add_from_bfd.
8804 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8805 Moved to symfile-mem.c.
8806 (_initialize_symfile): Move definition of
8807 add-symbol-file-from-memory command to symfile-mem.c.
8808 * symfile.h (symbol_file_add_from_bfd): New declaration.
8809 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8810 * config/powerpc/linux.mt (TDEPFILES): Same.
8811 * Makefile.in (SFILES): Add symfile-mem.c.
8812 (symfile_mem_h): New variable.
8813 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8814 (symfile-mem.o): New rule.
8816 2004-05-01 Andrew Cagney <cagney@redhat.com>
8818 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8819 frame_find_by_id instead of frame_relative_level.
8820 (do_enable_breakpoint): Ditto.
8821 * thread.c: Update copyright.
8822 (info_threads_command): Ditto, simplify.
8824 * frame.c (deprecated_generic_get_saved_register): Delete
8825 function, moved to "xstormy16-tdep.c".
8826 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8827 deprecated_generic_get_saved_register from "frame.c".
8828 (xstormy16_frame_saved_register): Call
8829 xstormy16_get_saved_register.
8830 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8832 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8833 * frame.h (deprecated_generic_get_saved_register): Delete.
8835 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8837 * dwarfread.c: Update documentation on the state of dwarf-1.
8839 2004-05-01 Andrew Cagney <cagney@redhat.com>
8841 * stack.c (select_frame_command): Delete call to
8842 frame_relative_level.
8843 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8845 (frame_info): Do not print FRAMELESS.
8846 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8847 (catch_info): Delete #if0 code.
8849 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8850 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8851 of frame_relative_level.
8852 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8854 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8855 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8856 frame_relative_level.
8858 * frame.h (deprecated_set_frame_type): Delete declaration.
8859 * frame.c (deprecated_set_frame_type): Delete function, update
8862 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8863 * gdbarch.h, gdbarch.c: Re-generate.
8864 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8865 (shnbsd_pc_in_sigtramp): Delete.
8866 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8868 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8870 * frame.h: Update comments.
8871 * ppc-linux-tdep.c: Update comments.
8872 * breakpoint.c (bpstat_what): Update comments.
8874 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8875 m68klinux-tdep.o's dependencies, were previously added to
8878 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8879 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8880 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8881 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8882 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8884 * Makefile.in (m68klinux-nat.o): Update dependencies.
8885 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8886 (m68k_linux_sigtramp_frame_cache)
8887 (m68k_linux_sigtramp_frame_this_id)
8888 (m68k_linux_sigtramp_frame_prev_register)
8889 (m68k_linux_sigtramp_frame_unwind)
8890 (m68k_linux_sigtramp_frame_sniffer)
8891 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8892 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8893 names, use trad-frame.h.
8894 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8895 (struct m68k_sigtramp_info): Delete.
8896 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8897 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8898 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8899 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8902 * infrun.c (check_sigtramp2): Delete check for
8903 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8905 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8907 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8909 2004-05-01 Andrew Cagney <cagney@redhat.com>
8911 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8912 (frv_linux_sigtramp_frame_cache)
8913 (frv_linux_sigtramp_frame_this_id)
8914 (frv_linux_sigtramp_frame_prev_register)
8915 (frv_linux_sigtramp_frame_unwind)
8916 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8917 include "linux" in function and variable names, directly call
8918 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8919 the latest trad-frame code.
8920 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8921 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8922 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8923 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8924 * frv-tdep.c (frv_sigtramp_frame_cache)
8925 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8926 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8928 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8929 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8930 (frv_set_sigcontext_reg_addr): Delete function.
8932 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8933 (DEPRECATED_SIGTRAMP_END): Delete.
8934 * gdbarch.h, gdbarch.c: Re-generate.
8935 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8936 * config/vax/tm-vaxbsd.h: Update copyright.
8937 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8938 (DEPRECATED_IN_SIGTRAMP): Define.
8939 * config/m68k/tm-nbsd.h: Update copyright.
8940 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8941 (DEPRECATED_IN_SIGTRAMP): Define.
8943 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8945 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8946 encondings. Fixes PR gdb/1628.
8948 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8949 DW_CFA_restore state without a matching DW_CFA_remember_state
8950 instead of aborting. Fixes PR backtrace/1589.
8952 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8954 * MAINTAINERS: Add self as AIX maintainer.
8955 Update my e-mail address in write-after-approval section.
8957 2004-04-30 Andrew Cagney <cagney@redhat.com>
8959 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8960 (legacy_get_prev_frame): Ditto.
8962 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8963 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8964 * mipsread.c (sigtramp_address): Delete extern variable.
8965 (mipscoff_new_init): Delete reference.
8966 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8967 (fixup_sigtramp): Delete function.
8968 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8969 (fixup_sigtramp): Delete declarations.
8971 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8972 deprecated_pc_in_sigtramp.
8973 (ppcnbsd_pc_in_sigtramp): Delete function.
8975 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8977 * config/m68k/nm-nbsd.h: Tweak comments.
8978 * config/m68k/nm-nbsdaout.h: Likewise.
8980 2004-04-30 Andrew Cagney <cagney@redhat.com>
8982 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8983 legacy_pc_in_sigtramp.
8984 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8986 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8988 Add OpenBSD/m68k support.
8989 * NEWS (New native configurations): Mention OpenBSD/m68k.
8990 * m68kbsd-tdep.c: New file.
8991 * m68kbsd-nat.c: New file.
8992 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8993 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8994 * configure.host: Add m68k-*-openbsd.
8995 * configure.tgt: Add m68k-*-openbsd.
8996 * config/m68k/tm-obsd.h: New file.
8997 * config/m68k/obsd.mt: New file.
8998 * config/m68k/obsd.mh: New file.
8999 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
9002 2004-04-30 Andrew Cagney <cagney@redhat.com>
9004 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
9005 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
9007 2004-04-30 Mark Kettenis <kettenis@gnu.org>
9009 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
9010 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
9012 2004-04-30 Brian Ford <ford@vss.fsi.com>
9014 Revert 2004-04-16 change.
9015 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
9016 (i386_coff_init_abi): Remove.
9017 * i386-tdep.h (i386_coff_init_abi): Remove.
9018 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
9020 2004-04-30 Andrew Cagney <cagney@redhat.com>
9022 * blockframe.c (find_pc_partial_function): Delete use of
9023 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
9024 DEPRECATED_SIGTRAMP_END.
9026 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
9027 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
9028 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
9029 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
9030 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
9032 * defs.h (deprecated_inside_entry_file): Delete declaration.
9033 * blockframe.c (deprecated_inside_entry_file): Delete function.
9034 (legacy_frame_chain_valid): Delete call.
9035 * sh64-tdep.c (sh64_frame_chain): Delete call.
9036 * objfiles.h: Update comments.
9037 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
9039 * frame.c (get_prev_frame): Delete call, update comments.
9041 2004-04-30 Brian Ford <ford@vss.fsi.com>
9043 * MAINTAINERS (Write After Approval): Add myself.
9045 2004-04-30 Andrew Cagney <cagney@redhat.com>
9047 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
9048 * gdbarch.h, gdbarch.c: Re-generate.
9049 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
9052 2004-04-30 Andrew Cagney <cagney@redhat.com>
9054 * gdb-events.sh (selected_thread_changed)
9055 (selected_frame_level_changed, target_changed): Delete.
9056 * gdb-events.h, gdb-events.c: Re-generate.
9057 * valops.c (value_assign): Update.
9058 * stack.c (select_frame_command, up_silently_base)
9059 (down_silently_base): Update.
9061 2004-04-29 Andrew Cagney <cagney@redhat.com>
9063 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
9064 registers correctly.
9065 (print_gp_register_row, mips32_heuristic_proc_desc)
9066 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
9067 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
9068 references to mips_isa_regsize.
9070 2004-04-29 Andrew Cagney <cagney@redhat.com>
9072 * mips-tdep.c (struct gdbarch_tdep): Delete
9073 mips_fp_register_double.
9074 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9076 (mips_gdbarch_init): Do not set mips_fp_register_double.
9077 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9079 2004-04-29 Joel Brobecker <brobecker@gnat.com>
9081 Committed by Andrew Cagney.
9082 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9085 2004-04-29 Andrew Cagney <cagney@redhat.com>
9087 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9088 gdbarch, use mips_abi, update callers.
9089 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9090 mips_abi_regsize, update callers.
9091 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9092 mips_default_abi_regsize.
9093 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9094 mips_default_abi_regsize.
9096 2004-04-29 Andrew Cagney <cagney@redhat.com>
9098 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9099 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9100 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9101 mips_default_abi_regsize.
9102 (mips_isa_regsize): Rename mips_regisze.
9103 * mipsnbsd-tdep.c: Update.
9104 * mips-linux-tdep.c: Update.
9105 * irix5-nat.c: Update.
9106 * mips-tdep.h (mips_isa_regsize): Update.
9108 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9109 Delete all disabled code.
9110 * gdb-events.h, gdb-events.c: Re-generate.
9112 2004-04-19 Jerome Guitton <guitton@gnat.com>
9113 Mark Kettenis <kettenis@gnu.org>
9115 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9116 the function begins with a branch instruction.
9118 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9120 * i386-tdep.c: Fix spelling mistakes.
9122 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9123 Andrew Cagney <cagney@redhat.com>
9125 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9127 * acconfig.h: Provide default _KMEMUSER value.
9128 * config.in, configure: Re-generate.
9129 * NEWS: Mention fix.
9131 2004-04-24 Randolph Chung <tausq@debian.org>
9133 * configure.host (hppa*-*-linux*): New target.
9134 * configure.tgt (hppa*-*-linux*): Likewise.
9135 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9136 gdbarch_init_osabi() call earlier so that osabi-specific frame
9137 unwinders can be registered first.
9138 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9140 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9141 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9142 * config/pa/linux.mh: New file.
9143 * config/pa/linux.mt: New file.
9144 * config/pa/nm-linux.h: New file.
9145 * config/pa/xm-linux.h: New file.
9146 * hppa-linux-nat.c: New file.
9147 * hppa-linux-tdep.c: New file.
9149 2004-04-28 Randolph Chung <tausq@debian.org>
9151 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9153 (hppa32_push_dummy_call): Fix small struct and floating point argument
9154 passing, and make sure the stack frame is properly aligned.
9156 2004-04-28 Andrew Cagney <cagney@redhat.com>
9158 * stack.c (print_stack_frame): Fix description.
9160 * NEWS: Mention gdb/gdbserver/configure execute permission
9161 changed. PR server/519.
9163 2004-04-28 Andrew Cagney <cagney@redhat.com>
9165 * stack.c (print_stack_frame_stub): Delete declaration.
9166 (struct print_stack_frame_args, print_stack_frame)
9167 (print_frame_info, print_frame): Replace "source" with print what.
9168 Replace "print" with "print_level". Replace "args" with
9170 * frame.h (show_and_print_stack_frame, print_stack_frame)
9171 (print_frame_info): Update declarations.
9172 * stack.c (select_and_print_frame, frame_command)
9173 (current_frame_command, up_command, down_command): Update calls -
9174 use get_selected_frame, pass "enum print_what" for source, do not
9175 call frame_relative_level.
9176 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9177 * remote-rdp.c (remote_rdp_open): Ditto.
9178 * remote-mips.c (common_open): Ditto.
9179 * remote-e7000.c (e7000_start_remote): Ditto.
9180 * ocd.c (ocd_start_remote): Ditto.
9181 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9182 * infrun.c (normal_stop): Ditto.
9183 * inflow.c (kill_command): Ditto.
9184 * infcmd.c (finish_command): Ditto.
9185 * corelow.c (core_open): Ditto.
9186 * tracepoint.c (finish_tfind_command): Ditto.
9187 * thread.c (info_threads_command, info_threads_command)
9188 (restore_current_thread, do_captured_thread_select): Ditto.
9189 * ada-tasks.c (task_command): Ditto.
9191 2004-04-26 Orjan Friberg <orjanf@axis.com>
9193 * frame.c: Include "observer.h".
9194 (frame_observer_target_changed): New function.
9195 (_initialize_frame): Attach target_changed observer.
9196 * regcache.c: Include "observer.h".
9197 (regcache_observer_target_changed): New function.
9198 (_initialize_regcache): Attach target_changed observer.
9199 * valops.c: Include "observer.h".
9200 (value_assign): Notify target_changed event when modifying register.
9201 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9203 2004-04-26 Orjan Friberg <orjanf@axis.com>
9205 From Paul Koning <pkoning@equallogic.com>:
9206 * breakpoint.c (free_valchain): New function.
9207 (insert_bp_location, delete_breakpoint): Use free_valchain.
9208 (remove_breakpoint): Do not remove the valchain.
9209 (bpstat_stop_status): If not stopped by watchpoint, skip
9210 watchpoints when generating stop status list.
9211 * infrun.c (handle_inferior_event): Make
9212 stepped_after_stopped_by_watchpoint a global variable.
9213 * remote.c (remote_stopped_data_address): Return watch data
9214 address rather than zero if stepped_after_stopped_by_watchpoint is
9217 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9220 * configure.in: Check for curses after termcap.
9221 On osf5.*, do not check for ncurses.
9222 * configure: Regenerate.
9224 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9226 * ppcobsd-nat.c: Include "ppc-tdep.h".
9227 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9229 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9230 Fixes PR tdep/1623 and PR tdep/1624.
9232 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9234 * xmodem.h, xmodem.c: Remove files.
9235 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9237 2004-04-23 Randolph Chung <tausq@debian.org>
9239 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9240 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9241 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9242 for handling stackless frames.
9243 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9245 2004-04-23 Randolph Chung <tausq@debian.org>
9247 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9248 starts at a pc before the frame is created.
9250 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9252 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9254 2004-04-23 Jerome Guitton <guitton@gnat.com>
9256 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9257 use convert_typed_floating to get the appropriate format.
9259 2004-04-22 Randolph Chung <tausq@debian.org>
9261 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9262 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9263 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9264 (hppa_sign_extend): Add prototype.
9265 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9266 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9267 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9268 hppa targets will also use these functions.
9269 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9270 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9271 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9272 (hppa_gdbarch_init): Remove gdbarch setting of
9273 skip_trampoline_code, in_solib_call_trampoline and
9274 in_solib_return_trampoline.
9275 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9276 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9277 hppa_in_solib_call_trampoline.
9278 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9279 Moved from hppa-tdep.c.
9280 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9281 in_solib_call_trampoline and in_solib_return_trampoline.
9283 2004-04-22 Randolph Chung <tausq@debian.org>
9285 * hppa-tdep.c (hppa_debug): New variable.
9286 (find_unwind_entry, hppa_frame_cache): Add debug output.
9287 (_initialize_hppa_tdep): Add command to set debug flag.
9289 2004-04-22 Andrew Cagney <cagney@redhat.com>
9291 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9293 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9294 signal trampoline unwinder.
9295 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9297 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9299 Add OpenBSD/powerpc support.
9300 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9301 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9302 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9303 (ppc_collect_fpregset): New prototypes.
9304 * ppcobsd-nat.c: New file.
9305 * ppcobsd-tdep.c: New file.
9306 * ppcobsd-tdep.h: New file.
9307 * rs6000-tdep.c: Include "regset.h".
9308 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9309 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9311 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9312 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9313 (rs6000-tdep.o): Update dependencies.
9314 * configure.host: Add powerpc-*-openbsd.
9315 * configure.tgt: Add powerpc-*-openbsd.
9316 * config/powerpc/obsd.mh: New file.
9317 * config/powerpc/nm-obsd.h: New file.
9318 * config/powerpc/obsd.mt: New file.
9320 2004-04-22 Andrew Cagney <cagney@redhat.com>
9322 * frame.h (show_frame_info): Delete declaration.
9324 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9325 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9326 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9327 * frv-tdep.c (frv_frame_this_id): Ditto.
9328 * avr-tdep.c (avr_frame_this_id): Ditto.
9330 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9332 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9334 2004-04-22 Jim Blandy <jimb@redhat.com>
9336 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9337 register number zero.
9339 2004-04-21 Michael Snyder <msnyder@redhat.com>
9341 * mips-tdep.c (heuristic_proc_start):
9342 Warning() already prefixes "Warning: ".
9344 2004-04-21 Andrew Cagney <cagney@redhat.com>
9346 * annotate.h (deprecated_annotate_starting_hook)
9347 (deprecated_annotate_stopped_hook)
9348 (deprecated_annotate_exited_hook)
9349 (deprecated_annotate_signal_hook)
9350 (deprecated_annotate_signalled_hook): Deprecate.
9351 * tracepoint.h (deprecated_create_tracepoint_hook)
9352 (deprecated_delete_tracepoint_hook)
9353 (deprecated_modify_tracepoint_hook)
9354 (deprecated_trace_find_hook)
9355 (deprecated_trace_start_stop_hook): Deprecate.
9356 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9357 * remote.h (deprecated_target_resume_hook)
9358 (deprecated_target_wait_loop_hook): Deprecate.
9359 * gdbcore.h (deprecated_exec_file_display_hook)
9360 (deprecated_file_changed_hook): Deprecate.
9361 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9362 * defs.h (deprecated_modify_breakpoint_hook)
9363 (deprecated_command_loop_hook, deprecated_show_load_progress)
9364 (deprecated_print_frame_info_listing_hook)
9365 (deprecated_query_hook, deprecated_warning_hook)
9366 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9367 (deprecated_delete_breakpoint_hook)
9368 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9369 (deprecated_readline_begin_hook, deprecated_readline_hook)
9370 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9371 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9372 (deprecated_context_hook, deprecated_target_wait_hook)
9373 (deprecated_attach_hook, deprecated_detach_hook)
9374 (deprecated_call_command_hook, deprecated_set_hook)
9375 (deprecated_error_hook, deprecated_error_begin_hook)
9376 (deprecated_ui_load_progress_hook): Deprecate.
9377 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9378 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9379 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9380 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9381 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9382 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9383 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9384 * annotate.c, aix-thread.c: Update.
9386 2004-04-21 Andrew Cagney <cagney@redhat.com>
9388 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9389 * vaxnbsd-tdep.c: Include "gdb_string.h".
9391 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9392 (add_symbol_file_from_memory_command): #if 0 function body, call
9395 2004-04-21 Andrew Cagney <cagney@redhat.com>
9397 * gdbcore.h: Update copyright.
9398 (deprecated_add_core_fns): Rename add_core_fns.
9399 * win32-nat.c (_initialize_core_win32): Update.
9400 * sun3-nat.c (_initialize_core_sun3): Update.
9401 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9402 * rs6000-nat.c (_initialize_core_rs6000): Update.
9403 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9404 * nto-tdep.c (_initialize_nto_tdep): Update.
9405 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9406 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9407 * mips-nat.c (_initialize_core_mips): Update.
9408 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9409 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9410 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9411 * lynx-nat.c (_initialize_core_lynx): Update.
9412 * irix5-nat.c (_initialize_core_irix5): Update.
9413 * i386-interix-nat.c (_initialize_core_interix): Update.
9414 * cris-tdep.c (_initialize_cris_tdep): Update.
9415 * corelow.c (deprecated_add_core_fns): Update.
9416 * core-regset.c (_initialize_core_regset): Update.
9417 * core-aout.c (_initialize_core_aout): Update.
9418 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9419 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9420 * alpha-nat.c (_initialize_core_alpha): Update.
9422 2004-04-21 Jim Blandy <jimb@redhat.com>
9424 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9426 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9428 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9430 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9431 (read_attribute_value): Update calls to dwarf_alloc_block.
9432 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9434 (psymtab_to_symtab_1): Likewise. Clean up using
9435 free_stack_comp_unit.
9436 (add_to_cu_func_list): Use the comp_unit_obstack.
9438 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9440 * dwarf2read.c (dwarf2_flag_true_p): New function.
9441 (die_is_declaration): Use the function above. Add some comments.
9443 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9445 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9446 architecture when registering sparcnbsd_core_osabi_sniffer.
9449 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9451 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9454 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9455 * i386-tdep.c: Correct register numbering scheme comments
9457 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9458 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9459 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9460 (i386_gdb_arch_init): Likewise.
9462 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9463 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9466 * m68k-tdep.h: Tweak comments.
9467 * m68k-tdep.c: Tweak comment.
9469 2004-04-17 Randolph Chung <tausq@debian.org>
9471 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9472 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9473 (hppa_hpux_som_init_abi): Set is_elf to 0.
9474 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9475 * hppa-tdep.c (low_text_segment_address): Remove global.
9476 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9477 section offset to calculate segment address.
9478 (internalize_unwinds): Define low_text_segment_address as local and
9479 pass to record_text_segment_lowaddr for ELF targets.
9480 (hppa_gdbarch_init): Zero fill tdep structure.
9481 (hppa_dump_tdep): Print tdep structure.
9482 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9484 2004-04-17 Randolph Chung <tausq@debian.org>
9486 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9487 (hppa_gdbarch_init): Set pseudo_register_read.
9488 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9489 * regcache.c (supply_register): Remove check for
9490 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9492 2004-04-17 Randolph Chung <tausq@debian.org>
9494 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9495 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9496 (hpread_adjust_stack_address): Move to hpread.c.
9497 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9498 obj_private_struct): Move from tm-hppa.h.
9499 * hpread.c (hppa-tdep.h): Include.
9500 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9501 (hpread_read_function_type, hpread_read_doc_function_type)
9502 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9504 * pa64solib.c (hppa-tdep.h): Include.
9505 * somsolib.c (hppa-tdep.h): Include.
9506 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9507 inferior_status): Remove unused forward declarations.
9508 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9509 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9510 obj_private_struct): Move to hppa-tdep.h.
9511 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9513 2004-04-17 Randolph Chung <tausq@debian.org>
9515 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9516 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9517 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9518 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9519 Remove forward declaration and make static.
9520 (hppa_reg_struct_has_addr): Remove.
9522 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9524 * observer.sh: Move comments in sed command to first column.
9526 2004-04-16 Jason Molenda (jmolenda@apple.com)
9528 * frame.c: Minor typeo corrections in comments.
9530 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9532 * observer.c (observer_test_first_notification_function): Update
9534 (observer_test_second_notification_function): Likewise.
9535 (observer_test_third_notification_function): Likewise.
9537 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9539 From Brian Ford <ford@vss.fsi.com>:
9540 * i386-tdep.c (i386_coff_init_abi): New function.
9541 * i386-tdep.h (i386_coff_init_abi): New prototype.
9542 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9543 register number translation functions for DWARF and DWARF 2.
9545 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9547 * dwarf2read.c: Back out my previous change, it was incorrect.
9549 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9551 * dwarf2read.c: Include "hashtab.h".
9552 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9554 (struct partial_die_info): Add comments. Use bitfields to reduce
9555 memory footprint. Add scope, scope_set, has_specification,
9556 spec_offset, die_parent, die_child, and die_sibling.
9557 (peek_die_abbrev): Add prototype.
9558 (partial_read_comp_unit_head): New function, broken out from
9559 dwarf2_build_psymtabs_hard.
9560 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9561 Use partial_read_comp_unit_head. Initialize the CU and
9562 comp_unit_obstack. Update calls to read_partial_die and
9563 scan_partial_symbols. Use free_stack_comp_unit and
9565 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9566 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9567 Update calls to helper functions. Remove NAMESPACE argument.
9569 (partial_die_parent_scope, partial_die_full_name): New functions.
9570 (add_partial_symbol): Remove namespace argument. Update call to
9571 pdi_needs_namespace. Use partial_die_full_name. Handle
9572 DW_TAG_namespace. Check has_namespace_info flag.
9573 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9574 tag. Handle namespaces.
9575 (add_partial_namespace, add_partial_enumeration): Simplify.
9576 (guess_structure_name): New function, derived from
9577 add_partial_structure.
9578 (add_partial_structure): Remove.
9579 (determine_class_name): Update comment.
9580 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9581 (is_type_tag_for_partial, load_partial_dies): New functions.
9582 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9583 Record specifications instead of following them immediately.
9584 (find_partial_die_in_comp_unit, find_partial_die)
9585 (fixup_partial_die, free_stack_comp_unit)
9586 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9587 (partial_die_hash, partial_die_eq): New functions.
9588 * Makefile.in (hashtab_h): Define.
9589 (dwarf2read.o): Update dependencies.
9590 (observer_inc, observer_h): Move to the correct section.
9592 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9594 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9595 (die_is_declaration): Use the function above. Add comment.
9597 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9599 * dwarf2read.c (read_structure_scope): Identify stub types
9600 using die_is_declaration() only.
9602 2004-04-15 Roland McGrath <roland@redhat.com>
9604 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9605 argument instead of NAME.
9606 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9607 in call to symbol_file_add_with_addrs_or_offsets.
9608 (build_addr_info): New function, helper for ...
9609 (symbol_file_add_from_memory): New function.
9610 (add_symbol_file_from_memory_command): New function using that.
9611 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9612 (pre_add_symbol_hook): Add const to argument type.
9613 * symfile.h (symbol_file_add_from_memory): Declare it.
9615 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9617 * NEWS (New native configurations): Mention OpenBSD/vax.
9618 * configure.host: Add vax-*-openbsd*.
9619 * config/vax/obsd.mh: New file.
9620 * config/vax/nm-obsd.h: New file.
9622 * vax-tdep.c: Include "regset.h".
9623 (vax_supply_gregset): New function.
9624 (vax_gregset): New variable.
9625 (vax_regset_from_core_section): New function.
9626 (vax_gdbarch_init): Set regset_from_core_section.
9627 * Makefile.in (vax-tdep.o): Update dependencies.
9629 2004-04-15 Andrew Cagney <cagney@redhat.com>
9631 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9632 (observer_normal_stop_notification_stub)
9633 (observer_attach_normal_stop, observer_detach_normal_stop):
9634 Delete, replaced by #include "observer.inc".
9635 * infrun.c (normal_stop): Pass "stop_bpstat" to
9636 observer_notify_normal_stop.
9637 * Makefile.in (observer_inc): Define.
9638 (observer.o): Update dependencies.
9639 (observer.h, observer.inc): New rules.
9640 * observer.h: Delete file.
9641 * observer.sh: New file.
9643 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9645 * vax-tdep.c (vax_frame_cache): Fix typo.
9647 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9649 * NEWS (New native configurations): Mention NetBSD/vax.
9650 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9651 * config/vax/nbsdelf.mh: New file.
9652 * config/vax/nbsdaout.mh: New file.
9653 * config/vax/nm-nbsd.h: New file.
9654 * config/vax/nm-nbsdaout.h: New file.
9656 * vaxnbsd-tdep.c: New file.
9657 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9658 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9659 * config/vax/nbsd.mt: New file.
9660 * config/vax/tm-nbsd.h: New file.
9662 * Makefile.in (vaxbsd-nat.o): New dependency.
9664 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9665 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9666 struct_addr arguments. Don't push return value address.
9667 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9668 arguments to vax_store_arguments. Store return value address in
9670 (vax_store_struct_return, vax_extract_return_value)
9671 (vax_store_return_value): Remove functions.
9672 (vax_return_value): New function.
9673 (vax_gdbarch_init): Set return value. Don't set
9674 deprecated_store_struct_return, deprecated_extract_struct_return
9675 and deprecated_store_return_value.
9677 2004-04-14 Andreas Schwab <schwab@suse.de>
9679 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9681 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9683 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9685 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9686 (vax_unwind_dummy_id): New functions.
9687 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9688 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9690 (vax_fix_call_dummy): Remove function.
9691 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9692 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9693 call_dummy_location, deprecated_call_dummy_words,
9694 deprecated_sizeof_call_dummy_words,
9695 deprecated_call_dummy_breakpoint_offset,
9696 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9697 and deprecated_dummy_write_sp.
9699 2004-04-13 David Carlton <carlton@kealia.com>
9701 * MAINTAINERS: Move myself to "paper trail" section.
9703 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9705 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9707 (vax_frame_init_saved_regs): Remove function.
9708 (vax_sigtramp_saved_pc): Remove function.
9709 (vax_frame_saved_pc): Remove function.
9710 (vax_frame_args_address): Remove function.
9711 (vax_frame_num_args): Rewrite.
9712 (vax_frame_chain): Remove function.
9713 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9715 (vax_pop_frame): Likewise.
9716 (vax_saved_pc_after_call): Remove function.
9717 (struct vax_frame_cache): New structure.
9718 (vax_frame_cache): New function.
9719 (vax_frame_this_id): New function.
9720 (vax_frame_prev_register): New function.
9721 (vax_frame_unwind): New variable.
9722 (vax_frame_sniffer): New function.
9723 (vax_frame_base_address): New function.
9724 (vax_frame_args_address): New function.
9725 (vax_frame_base): New variable.
9726 (vax_unwind_pc): New function.
9727 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9728 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9729 deprecated_frame_chain, deprecated_frame_saved_pc,
9730 deprecated_frame_args_address and
9731 deprecated_frame_init_saved_regs.
9732 * Makefile.in (vax-tdep.o): Update dependencies.
9734 * vaxbsd-nat.c: New file.
9736 * vax-tdep.h: Update copyright year. Adjust comments.
9737 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9738 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9739 (vax_regnum): New enum. Replacing...
9740 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9741 (VAX_PS_REGNUM): ... these removed macros.
9742 * vax-tdep.c (vax_register_name): Remove prototype.
9743 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9744 (vax_register_byte, vax_register_raw_size,
9745 vax_register_virtual_size, vax_register_virtual_type): Remove
9747 (vax_register_type): New function.
9748 (vax_breakpoint_from_pc): Reorganize.
9749 (vax_gdbarch_init): Set register_type. Don't set
9750 deprecated_register_size, deprecated_register_bytes,
9751 deprecated_register_byte, deprecated_register_raw_size,
9752 deprecated_max_register_raw_size,
9753 deprecated_register_virtual_size,
9754 deprecated_max_register_virtual_size and
9755 deprecated_register_virtual_type. Add comment on stack direction.
9757 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9759 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9760 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9761 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9763 2004-04-10 Randolph Chung <tausq@debian.org>
9765 * MAINTAINERS (write after approval): Add myself.
9767 2004-04-07 Randolph Chung <tausq@debian.org>
9769 * hppa-tdep.c (hppa_inner_than): Remove.
9770 (is_pa_2): Remove unused static variable.
9771 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9773 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9775 * language.h (language_defn): Add new la_post_parser field.
9776 * parser-defs.h (null_post_parser): New declaration (default for
9779 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9780 insert call to that function.
9781 (parse_exp_in_context): New function, including code formerly in
9782 parse_exp_1. Calls language-dependent post-parser after
9784 (parse_expression_in_context): New exported function.
9785 (null_post_parser): New definition.
9786 * expression.h (parse_expression_in_context): Add declaration.
9788 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9789 * c-lang.c (c_language_defn): Ditto.
9790 (cplus_language_defn): Ditto.
9791 (asm_language_defn): Ditto.
9792 (minimal_language_defn): Ditto.
9793 * f-lang.c (f_language_defn): Ditto.
9794 * jv-lang.c (java_language_defn): Ditto.
9795 * language.c (unknown_language_defn): Ditto.
9796 (auto_language_defn): Ditto.
9797 (local_language_defn): Ditto.
9798 * m2-lang.c (m2_language_defn): Ditto.
9799 * scm-lang.c (scm_language_defn): Ditto.
9800 * obj-lang.c (objc_language_defn): Ditto.
9802 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9804 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9805 (amd64nbsd_mcontext_addr): New function.
9806 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9807 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9808 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9810 * corelow.c (core_xfer_partial): Fix coding standards violation.
9811 Add support for TARGET_OBJECT_WCOOKIE.
9813 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9814 deprecated_pc_in_sigtramp.
9815 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9816 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9817 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9818 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9819 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9820 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9821 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9823 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9824 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9827 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9828 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9829 (amd64_collect_fxsave): Likewise.
9831 * i386-sol2-tdep.c: Include "gdb_string.h".
9832 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9834 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9836 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9838 * i386-sol2-tdep.c: Include "solib-svr4.h".
9839 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9840 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9841 * config/i386/tm-i386sol2.h: Include :solib.h".
9842 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9843 solib-svr4.o and solib-legacy.o.
9844 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9847 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9849 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9850 whether a register is supplied by PTRACE_GETFPREGS.
9851 (store_inferior_registers): Likewise.
9852 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9853 whether a register is supplied by PT_GETFPREGS.
9854 (store_inferior_registers): Likewise.
9856 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9857 * config/i386/linux64.mt (TDEPFILES): Likewise.
9859 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9861 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9862 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9863 the program counter is in the range specified by `struct
9865 * amd64-linux-tdep.c: Include "symtab.h".
9866 (amd64_linux_pc_in_sigtramp): Remove function.
9867 (amd64_linux_sigtramp_p): New function.
9868 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9869 deprecated_pc_in_sigtramp.
9870 * amd64nbsd-tdep.c: Include "symtab.h".
9871 (amd64nbsd_sigtramp_p): New function.
9872 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9873 deprecated_pc_in_sigtramp.
9874 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9876 (amd64obsd_pc_in_sigtramp): Remove function.
9877 (amd64obsd_sigtramp_p): New function.
9878 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9879 deprecated_pc_in_sigtramp.
9880 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9881 (i386bsd_pc_ins_sigtramp): Remove prototype.
9882 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9883 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9884 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9885 the program counter is in the range specified by `struct
9887 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9888 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9889 (i386_go32_pc_in_sigtramp): Remove function.
9890 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9891 Initialize TDEP->sigtramp_p.
9892 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9893 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9894 deprecated_pc_in_sigtramp.
9895 * i386-linux-tdep.c: Adjust comments.
9896 (i386_linux_pc_in_sigtramp): Remove function.
9897 (i386_linux_sigtramp_p): New function.
9898 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9899 deprecated_pc_in_sigtramp.
9900 * i386-nto-tdep.c: Update copyright year.
9901 (i386nto_pc_in_sigtramp): Remove function.
9902 (i386nto_sigtramp_p): New function.
9903 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9905 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9906 deprecated_pc_in_sigtramp.
9907 * i386-sol2-tdep.c: Update copyright year.
9908 (i386_sol2_pc_in_sigtramp): Remove function.
9909 (i386_sol2_sigtramp_p): New function.
9910 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9911 deprecated_pc_in_sigtramp.
9912 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9913 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9914 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9915 deprecated_sigtramp_start and deprecated_sigtramp_end.
9916 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9917 (i386nbsd_pc_in_sigtramp): Remove function.
9918 (i386nbsd_sigtramp_p): New function.
9919 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9920 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9921 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9922 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9923 (i386obsd_pc_in_sigtramp): Remove function.
9924 (i386obsd_sigtramp_p): New function.
9925 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9927 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9928 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9930 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9931 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9934 * config/i386/i386aout.mt: Remove file.
9936 * configure.tgt: Remove i[34567]86-*-go32*,
9937 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9938 and i[34567]86-*-isc*. Set gdb_target to i386 for
9939 i[34567]86-*-netware* and i[34567]86-*-*.
9940 * config/i386/i386.mt: New file.
9941 * config/i386/embed.mt: Remove file.
9942 * config/i386/go32.mt: Remove file.
9943 * config/i386/i386nw.mt: Remove file.
9944 * config/i386/i386v.mt: Remove file.
9945 * config/i386/tm-go32.h: Remove file.
9947 * tui/tui-hooks.c: Include "readline/readline.h" after
9948 "gdb_curses.h" instead of before.
9949 * tui/tui-io.c: Likewise.
9951 * tui/tui.c: Fix typo in comment.
9953 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9955 2004-04-08 Andrew Cagney <cagney@redhat.com>
9957 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9958 (deprecated_exception_support_initialized): Declare.
9959 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9960 (initialize_hp_cxx_exception_support)
9961 (child_enable_exception_callback): Update.
9962 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9963 (deprecated_exception_support_initialized): Rename
9964 deprecated_exception_catchpoints_are_fragile and
9965 deprecated_exception_support_initialized.
9966 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9968 * symtab.c (deprecated_hp_som_som_object_present): Rename
9969 hp_som_som_object_present.
9970 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9971 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9972 Update. Delete extern declaration.
9973 * valops.c (hp_som_som_object_present): Ditto.
9974 * parse.c (deprecated_hp_som_som_object_present)
9975 (parse_nested_classes_for_hpacc): Ditto.
9976 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9977 * hppa-hpux-tdep.c (hp_som_som_object_present)
9978 (initialize_hp_cxx_exception_support): Ditto.
9979 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9980 * cp-valprint.c (hp_som_som_object_present)
9981 (cp_print_class_method): Ditto.
9982 * c-typeprint.c (hp_som_som_object_present):
9983 (c_type_print_base): Ditto.
9984 * c-exp.y (hp_som_som_object_present): Ditto.
9986 2004-04-08 Andrew Cagney <cagney@redhat.com>
9988 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9989 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9990 (frame_unwind_find_by_frame): Re-implement the unwind code so
9991 that it can both prepend and append sniffers. Replace
9992 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9993 * tramp-frame.c (tramp_frame_append): Use
9994 frame_unwind_prepend_unwinder.
9995 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9996 frame_unwind_register_unwinder.
9997 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9999 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
10000 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
10001 (mips_linux_init_abi): Update.
10003 2004-04-08 Kevin Buettner <kevinb@redhat.com>
10005 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
10006 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
10009 2004-04-07 Kevin Buettner <kevinb@redhat.com>
10011 * ia64-tdep.c (elf.h): Don't include.
10012 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
10014 2004-04-07 Jason Molenda (jmolenda@apple.com)
10016 * frame.h: Typeo corrections in comments.
10018 2004-04-07 Jim Blandy <jimb@redhat.com>
10020 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
10023 2004-04-07 Mark Kettenis <kettenis@gnu.org>
10025 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
10026 * config/sparc/linux64.mt (TDEPFILES): Likewise.
10027 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10028 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
10029 and solib-legacy.o.
10030 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
10032 * config/sparc/tm-sol2.h: Update copyright year. Include
10035 * sparc-sol2-tdep.c: Update copyright year. Include
10037 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10038 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
10039 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10040 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
10043 2004-04-06 Andrew Cagney <cagney@redhat.com>
10045 * infttrace.c: Include "infttrace.h".
10046 * infttrace.h: Include "target.h".
10047 * Makefile.in (infttrace_h): Update.
10048 (infttrace.o): Update.
10050 2004-04-06 Andrew Cagney <cagney@redhat.com>
10052 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
10053 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
10054 move extern declarations from here ...
10055 * infttrace.h: ... to here.
10056 * Makefile.in (hppah-nat.o): Update dependencies.
10058 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
10059 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
10060 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
10061 (hppa_breakpoint_from_pc): Delete.
10063 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
10065 2004-04-05 Andrew Cagney <cagney@redhat.com>
10067 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
10068 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
10071 2004-04-06 Randolph Chung <tausq@debian.org>
10073 Committed by Andrew Cagney (mechanical change).
10074 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10075 exception_catchpoints_are_fragile, find_stub_with_shl_get,
10076 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10077 child_enable_exception_callback, current_ex_event,
10078 null_symtab_and_line, child_get_current_exception_event,
10079 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10080 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10081 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10082 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10083 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10084 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10085 Move hpux-specific definitions ...
10086 * hppa-hpux-tdep.c: ... to here.
10088 2004-04-05 Andrew Cagney <cagney@redhat.com>
10090 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10091 skip_prologue_using_sal.
10093 2004-04-05 Andrew Cagney <cagney@redhat.com>
10095 * config/i386/tm-i386.h: Delete file.
10096 * config/i386/tm-vxworks.h: Update copyright, do not include
10098 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10099 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10100 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10101 * config/i386/ncr3000.mt (TM_FILE): Delete.
10102 * config/i386/interix.mt (TM_FILE): Delete.
10103 * config/i386/i386v.mt (TM_FILE): Delete.
10104 * config/i386/i386nw.mt (TM_FILE): Delete.
10105 * config/i386/i386gnu.mt (TM_FILE): Delete.
10106 * config/i386/i386aout.mt (TM_FILE): Delete.
10107 * config/i386/embed.mt (TM_FILE): Delete.
10109 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10111 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10112 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10113 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10114 (accg7_regnum): New constants.
10115 (last_spr_regnum, last_pseudo_regnum): Update.
10116 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10117 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10118 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10119 for accg registers.
10120 (frv_register_sim_regno): Update spr_map[].
10122 2004-04-04 Andrew Cagney <cagney@redhat.com>
10124 * config/mips/xm-riscos.h: Delete.
10125 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10126 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10127 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10128 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10129 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10130 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10131 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10132 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10133 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10134 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10135 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10136 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10137 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10138 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10139 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10140 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10141 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10142 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10143 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10144 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10145 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10146 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10147 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10148 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10149 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10150 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10152 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10153 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10154 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10155 * configure.host: Remove m680[01]0-sun-sunos3*,
10156 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10157 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10158 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10159 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10161 * NEWS: Mention removed systems.
10163 2004-04-04 Andrew Cagney <cagney@redhat.com>
10165 GDB 6.1 release created from 6.1 branch.
10167 2004-04-04 Andrew Cagney <cagney@redhat.com>
10169 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10170 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10171 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10173 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10174 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10175 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10177 2004-04-03 Jim Blandy <jimb@redhat.com>
10179 * MAINTAINERS: Chris Faylor has changed employers; add him to
10180 "paper trail" section, and update his E-mail address.
10182 2004-04-03 Andrew Cagney <cagney@redhat.com>
10184 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10185 generic dummy frames.
10186 * dummy-frame.c: Update copyright.
10187 (dummy_frame_sniffer): Delete check for generic dummy frames.
10189 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10190 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10191 (REG_PARM_STACK_SPACE): Delete.
10192 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10193 Inline reference to REG_PARM_STACK_SPACE.
10195 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10196 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10197 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10198 (FRAME_BASE_BEFORE_SIGTRAMP)
10199 (hppa32_hpux_frame_base_before_sigtramp)
10200 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10201 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10202 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10203 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10204 (FRAME_BASE_BEFORE_SIGTRAMP)
10205 (hppa64_hpux_frame_base_before_sigtramp)
10206 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10208 2004-04-03 Andrew Cagney <cagney@redhat.com>
10210 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10212 2004-04-02 Andrew Cagney <cagney@redhat.com>
10214 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10215 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10216 * dummy-frame.h: Delete out-of-date comments.
10217 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10218 * gdbarch.h, gdbarch.c: Re-generate.
10220 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10222 Committed by Andrew Cagney <cagney@redhat.com>.
10223 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10224 into account an instruction saving a register if we have already
10225 seen an earlier instruction saving that same register.
10227 2004-04-02 Andrew Cagney <cagney@redhat.com>
10229 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10230 * gdbarch.h, gdbarch.c: Re-generate.
10231 * frame.c (legacy_get_prev_frame): Delete references to
10232 DEPRECATED_INIT_FRAME_PC_FIRST.
10234 * infrun.c (pc_in_sigtramp): Delete function.
10235 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10238 2004-04-02 Andrew Cagney <cagney@redhat.com>
10240 * infrun.c (handle_step_into_function): Delete code conditional on
10242 (handle_inferior_event, step_over_function): Ditto.
10244 2004-04-02 Andrew Cagney <cagney@redhat.com>
10246 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10247 "previous frame inner to this frame" test.
10249 2004-04-02 Andrew Cagney <cagney@redhat.com>
10251 * frame.c (safe_frame_unwind_memory): New function.
10252 * frame.h (safe_frame_unwind_memory): Declare. Update description
10253 of /safe_/ methods.
10254 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10255 "next_frame". Use safe_frame_unwind_memory.
10256 (tramp_frame_sniffer): Update call to tramp_frame_start.
10258 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10260 * dwarf2read.c (dwarf2_objfile_data_key): New.
10261 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10262 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10263 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10264 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10265 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10266 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10267 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10269 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10270 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10271 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10272 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10273 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10274 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10276 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10278 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10279 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10280 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10281 (read_partial_die, read_full_die, read_indirect_string)
10282 (dwarf_decode_line_header, dwarf_decode_macros)
10283 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10284 Update uses of removed variables.
10285 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10287 (_initialize_dwarf2_read): New function.
10288 * symfile.h (dwarf2_has_info): Update prototype.
10289 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10290 * elfread.c (elf_symfile_read): Likewise.
10292 2004-04-01 Jim Blandy <jimb@redhat.com>
10294 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10295 function for register numbers on all the rs6000-derived targets.
10296 (rs6000_gdbarch_init): Don't register a separate
10297 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10298 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10301 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10304 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10306 * valarith.c: Update copyright notice.
10307 (value_add): Handle range types.
10308 (value_sub): Ditto.
10309 (value_equal): Ditto.
10310 (value_less): Ditto.
10311 (value_neg): Ditto.
10312 (value_complement): Ditto.
10313 (value_binop): Simplify slightly by using is_integral_type and
10314 eliminiating unnecessary COERCE_ENUMs.
10316 2004-03-31 Andrew Cagney <cagney@redhat.com>
10318 * frame.h (frame_unwind_id): Declare.
10319 * frame.c (frame_unwind_id): New function.
10320 (get_prev_frame_1): New function.
10321 (frame_debug_got_null_frame): New function.
10322 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10323 code proper to prev_frame, update description.
10324 * infrun.c (step_over_function): Use frame_unwind_id.
10326 2004-04-31 J. Brobecker <brobecker@gnat.com>
10328 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10329 (hppa64_push_dummy_call): Likewise.
10331 2004-03-30 Jim Blandy <jimb@redhat.com>
10333 From Ulrich Weigand:
10334 * utils.c (query): Do not use a va_list variable multiple times.
10336 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10338 * Makefile.in (linux_nat_h): Update dependencies.
10339 * configure.in: Check for <gnu/libc-version.h>.
10340 * configure: Regenerate.
10341 * config.in: Regenerate.
10342 * linux-nat.h: Include "target.h". Add waitstatus field to
10344 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10345 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10347 (lin_lwp_handle_extended): New function. Handle clone events.
10348 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10349 thread exit events.
10350 (child_wait): Handle clone events.
10351 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10352 * linux-nat.c (linux_enable_event_reporting): Turn on
10353 PTRACE_O_TRACECLONE.
10354 (linux_handle_extended_wait): Handle clone events.
10355 * thread-db.c: Include <gnu/libc-version.h>.
10356 (struct private_thread_info): Add dying flag.
10357 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10359 (attach_thread): Update comments. Handle dying threads.
10360 (detach_thread): Set the dying flag.
10361 (check_event): Always call attach_thread.
10363 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10365 * mips-tdep.c (mips_pdr_data): New.
10366 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10367 (_initialize_mips_tdep): Initialize mips_pdr_data.
10369 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10371 * minsyms.c (install_minimal_symbols): Move dropping leading
10372 char from linkage name from here...
10373 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10374 test for "__gnu_compiled*" symbols.
10376 2004-03-28 Jim Blandy <jimb@redhat.com>
10378 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10379 registers to temp register r0 and byte stores as prologue
10382 2004-03-28 Andrew Cagney <cagney@redhat.com>
10384 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10387 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10389 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10390 and switch the layout to force a display of register window.
10392 2004-02-26 J. Brobecker <brobecker@gnat.com>
10394 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10395 of the INTEGER class.
10397 2004-03-26 Jim Blandy <jimb@redhat.com>
10399 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10400 bytes long on PPC GNU/Linux.
10402 2004-03-26 David Carlton <carlton@kealia.com>
10404 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10406 2004-03-25 Andrew Cagney <cagney@redhat.com>
10408 * PROBLEMS: Add general section titles, remove references to
10411 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10413 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10415 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10416 FP_REGISTER_VIRTUAL_SIZE.
10417 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10418 of DEPRECATED_REGISTER_RAW_SIZE.
10419 (arm_register_type): Add gdbarch argument.
10420 (arm_register_raw_size, arm_register_virtual_size): Delete.
10421 (arm_register_byte, arm_extract_return_value)
10422 (arm_store_return_value, arm_get_longjmp_target): Update references
10423 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10424 (arm_gdbarch_init): Likewise. Don't set
10425 deprecated_register_raw_size, deprecated_register_virtual_size,
10426 deprecated_max_register_raw_size,
10427 deprecated_max_register_virtual_size, or
10428 deprecated_max_register_virtual_type. Do set register_type.
10429 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10430 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10431 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10432 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10433 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10434 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10436 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10437 (remote_rdp_store_register): Likewise.
10439 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10441 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10442 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10443 to after osabi initialization.
10444 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10445 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10447 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10448 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10450 (mips_linux_init_abi): Append signal trampoline unwinders.
10452 2004-03-24 Andrew Cagney <cagney@redhat.com>
10454 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10455 * tramp-frame.c: Include "gdb_assert.h".
10456 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10458 (tramp_frame_append): Validate the tramp frame's instructions.
10459 * Makefile.in (tramp-frame.o): Update dependencies.
10461 2004-03-23 Andrew Cagney <cagney@redhat.com>
10463 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10465 2004-03-23 Andrew Cagney <cagney@redhat.com>
10467 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10468 Nasser as past testsuite/lib/ (and other) maintainers.
10470 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10472 * infcmd.c (attach_command): Reread symbols if we already have
10475 2004-03-23 Andrew Cagney <cagney@redhat.com>
10477 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10479 2004-03-23 Andrew Cagney <cagney@redhat.com>
10481 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10482 * gdbarch.h, gdbarch.c: Re-generate.
10483 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10484 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10485 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10486 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10487 (DEPRECATED_SIGTRAMP_START): Update.
10488 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10489 (DEPRECATED_SIGTRAMP_START): Update.
10490 * blockframe.c (find_pc_sect_partial_function): Update.
10491 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10493 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10495 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10498 2004-03-23 Andrew Cagney <cagney@redhat.com>
10500 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10501 predicate, deprecate.
10502 * gdbarch.h, gdbarch.c: Re-generate.
10503 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10504 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10505 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10506 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10507 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10508 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10509 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10510 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10511 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10512 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10513 * blockframe.c (find_pc_partial_function): Update.
10514 * breakpoint.c (bpstat_what): Update.
10515 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10516 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10517 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10518 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10519 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10520 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10521 * i386-nto-tdep.c (i386nto_init_abi): Update.
10522 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10523 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10524 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10525 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10526 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10527 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10528 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10529 * infrun.c (pc_in_sigtramp): Update.
10530 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10531 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10532 * mips-tdep.c (mips_gdbarch_init): Update.
10533 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10534 * ppc-linux-tdep.c: Update comment.
10535 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10536 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10537 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10538 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10539 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10540 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10541 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10542 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10543 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10544 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10546 2004-03-23 Andrew Cagney <cagney@redhat.com>
10548 * tramp-frame.h, tramp-frame.h: New files.
10549 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10550 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10552 * Makefile.in: Update all dependencies.
10554 2004-03-23 Andrew Cagney <cagney@redhat.com>
10556 * Makefile.in (trad_frame_h): Add $(frame_h).
10557 * trad-frame.h: Update copyright. Include "frame.h".
10558 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10559 (trad_frame_set_id, trad_frame_get_id): Declare.
10560 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10561 * trad-frame.c: Update copyright.
10562 (struct trad_frame_cache): Define.
10563 (trad_frame_cache_zalloc): New function.
10564 (trad_frame_set_id, trad_frame_get_id): New functions.
10565 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10567 2004-03-22 Andrew Cagney <cagney@redhat.com>
10569 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10570 s390_pltstub_unwind_cache.
10571 (s390_stub_frame_unwind_cache): Rename
10572 s390_pltstub_frame_unwind_cache.
10573 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10574 (s390_stub_frame_prev_register): Rename
10575 s390_pltstub_frame_prev_register.
10576 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10577 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10579 From Ulrich Weigand:
10580 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10581 pointer calls like PLT calls.
10583 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10585 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10586 PC rather than the partial function start address. Use the start
10587 address to sanity check the found PDR.
10589 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10591 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10592 linux_handle_extended_wait.
10594 2004-03-22 Andrew Cagney <cagney@redhat.com>
10596 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10599 * frame.h (generic_pop_current_frame): Delete declaration.
10600 (deprecate_pop_dummy_frame): Deprecate
10601 generic_pop_dummy_frame.
10602 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10603 (generic_pop_current_frame): Delete function.
10604 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10605 generic_pop_current_frame.
10606 * v850-tdep.c (v850_pop_frame): Update.
10607 * mcore-tdep.c (mcore_pop_frame): Update.
10608 * sh64-tdep.c (sh64_pop_frame): Update.
10609 * h8300-tdep.c (h8300_pop_frame): Update.
10611 2004-03-22 Andrew Cagney <cagney@redhat.com>
10613 * frame.h (deprecated_pc_in_call_dummy): Rename
10614 generic_pc_in_call_dummy.
10615 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10616 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10617 generic_pc_in_call_dummy.
10618 (pc_in_dummy_frame): Make static.
10619 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10620 * gdbarch.h, gdbarch.c: Re-generate.
10621 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10622 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10623 (legacy_get_prev_frame): Ditto.
10624 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10627 2004-03-21 Andrew Cagney <cagney@redhat.com>
10629 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10630 declaration and out-of-date comment.
10631 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10633 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10634 deprecated_pc_in_call_dummy.
10636 * infrun.c (handle_inferior_event): For non legacy frames, use the
10637 frame ID and frame type to identify a signal trampoline. Update
10640 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10642 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10643 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10645 2004-03-21 Andrew Cagney <cagney@redhat.com>
10647 * frame-unwind.h: Update copyright.
10648 (struct frame_data): Add opaque declaration.
10649 (frame_sniffer_ftype): Declare.
10650 (struct frame_unwind): Add "unwind_data" and "sniffer".
10651 (frame_unwind_register_unwinder): Declare.
10652 (frame_unwind_find_by_frame): Add parameter "this_cache".
10653 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10654 (legacy_get_prev_frame, legacy_get_prev_frame)
10655 (get_frame_type): Pass the prologue_cache to
10656 frame_unwind_find_by_frame.
10657 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10659 (frame_unwind_register_unwinder): New function.
10660 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10662 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10664 * bcache.c (print_percentage): Use floating point to avoid
10665 incorrect results when portion*100 overflows.
10667 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10669 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10670 (ppc_linux_init_extra_frame_info)
10671 (ppc_linux_frameless_function_invocation)
10672 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10673 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10674 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10675 (rs6000_frame_chain): Delete declarations.
10676 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10677 (ppc_linux_init_extra_frame_info)
10678 (ppc_linux_frameless_function_invocation)
10679 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10680 (ppc_linux_init_abi): Remove registration of above deleted functions.
10681 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10682 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10683 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10684 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10685 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10686 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10687 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10688 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10689 frame management for all OSABIs.
10691 2004-03-19 Andrew Cagney <cagney@redhat.com>
10693 Committed by Kevin Buettner <kevinb@redhat.com>.
10695 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10697 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10698 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10699 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10700 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10701 unwinders. #ifdef legacy frame code.
10702 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10704 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10705 (struct rs6000_frame_cache, rs6000_frame_cache)
10706 (rs6000_frame_this_id, rs6000_frame_prev_register)
10707 (rs6000_frame_sniffer, rs6000_frame_unwind)
10708 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10709 (rs6000_frame_base): Implement a traditional frame unwinder.
10710 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10713 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10715 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10716 breakpoint address for watchpoints or the catch eventpoints.
10717 Add new paramter ``bptype''. Adjust all callers.
10719 2004-03-19 Andrew Cagney <cagney@redhat.com>
10721 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10723 * PROBLEMS: Delete note that ARM does not use frame code, problem
10726 2004-03-18 Andrew Cagney <cagney@redhat.com>
10728 * stack.c (return_command): Delete code wrapped in #ifdef
10729 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10731 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10733 2004-03-18 Andrew Cagney <cagney@redhat.com>
10735 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10736 DEPRECATED_IN_SIGTRAMP.
10737 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10738 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10739 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10740 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10741 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10742 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10743 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10744 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10745 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10746 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10748 2004-03-18 Andrew Cagney <cagney@redhat.com>
10750 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10751 (struct frame_base_table_entry): Define.
10752 (struct frame_base_table): Re-implement as a linked list.
10753 (frame_base_init): Re-implement.
10754 (frame_base_table): Delete function.
10755 (append_predicate): Delete function.
10756 (frame_base_append_sniffer): Update.
10757 (frame_base_set_default): Update.
10758 (frame_base_find_by_frame): Update.
10759 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10760 * Makefile.in (frame-base.o): Update dependencies.
10762 2004-03-17 Andrew Cagney <cagney@redhat.com>
10764 * frame.c (legacy_get_prev_frame): Pass correct frame to
10765 frame_unwind_find_by_frame.
10767 2004-03-17 David Carlton <carlton@kealia.com>
10769 * NEWS: Mention C++ nested types and namespaces
10771 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10773 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10774 and "Regressions since gdb 5.3.". Add known regressions since
10777 2004-03-16 David Carlton <carlton@kealia.com>
10779 * dwarf2read.c (process_structure_scope): Process children even
10780 when we're a declaration.
10782 2004-03-16 Andrew Cagney <cagney@redhat.com>
10784 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10785 * blockframe.c (find_pc_partial_function)
10786 (find_pc_sect_partial_function): Merge into a single
10787 find_pc_partial_function.
10789 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10791 * i386bsd-nat.c: s/regno/regnum/g.
10792 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10794 (store_inferior_registers): Likewise.
10796 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10798 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10799 of i387_fill_fsave.
10800 (store_inferior_registers): Call i387_collect_fsave and
10801 i387_collect_fxsave instead of i387_fill_fsave and
10804 2004-03-15 Andrew Cagney <cagney@redhat.com>
10806 * Makefile.in (frame-unwind.o): Update dependencies.
10807 * frame-unwind.c: Include "gdb_obstack.h".
10808 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10810 (append_predicate): Delete function.
10811 (struct frame_unwind_table_entry): New structure.
10812 (struct frame_unwind_table): Replace "sniffer" with "head" and
10814 (frame_unwind_append_sniffer): Update.
10815 (frame_unwind_find_by_frame): Update.
10816 (_initialize_frame_unwind): Registe frame_unwind_init using
10817 gdbarch_data_register_pre_init.
10819 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10821 * i386bsd-nat.c: Update copyright year.
10822 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10823 define unconditionally.
10825 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10827 * i387-tdep.h (i387_collect_fsave): New prototype.
10828 * i387-tdep.c (i387_collect_fsave): New function containing most
10829 of the code from i387_fill_fsave.
10830 (i387_fill_fsave): Call i387_collect_fsave.
10832 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10834 * i386-linux-tdep.c: Update copyright year.
10835 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10836 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10837 svr4_ilp32_link_map_offsets instead of
10838 i386_linux_svr4_fetch_link_map_offsets.
10840 2004-03-15 David Carlton <carlton@kealia.com>
10842 Fix for PR c++/1553:
10843 * dwarf2read.c (read_structure_type): Determine type name by
10844 calling determine_class_name.
10845 (determine_class_name): New.
10846 (determine_prefix): Look at TYPE_TAG_NAME and call
10847 determine_class_name when appropriate.
10848 (determine_prefix_aux, class_name): Delete.
10849 (read_namespace): Set die->type.
10851 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10853 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10854 unused macro definition. The definition in target.h (or perhaps
10855 elsewhere) takes precedence.
10857 2004-03-15 Andrew Cagney <cagney@redhat.com>
10859 * ppc-tdep.h: Update copyright.
10860 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10861 function signatures to match "regsets.h".
10862 * ppc-linux-tdep.c: Include "regset.h".
10863 (ELF_GREGSET_SIZE): Delete.
10864 (right_supply_register): New function.
10865 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10866 using right_supply_register.
10867 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10869 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10870 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10871 (_initialize_ppc_linux_tdep): Do not register
10872 ppc_linux_regset_core_fns.
10873 (ppc_linux_regset_from_core_section): Replace
10874 fetch_core_registers.
10875 (ppc_linux_regset_core_fns): Delete.
10876 * ppc-linux-nat.c: (right_fill_reg): New function.
10877 (supply_gregset): Update call to ppc_linux_supply_gregset.
10878 (fill_gregset): Clear the register set, use right_fill_reg.
10879 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10880 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10882 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10885 2004-03-15 Andrew Cagney <cagney@redhat.com>
10887 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10888 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10889 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10890 and register_gdbarch_data.
10891 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10892 (struct gdbarch_data): Replace "init" by "pre_init" and
10894 * gdbarch.h, gdbarch.c: Re-generate.
10895 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10896 with"obstack", use OBSTACK_ZALLOC.
10897 (dwarf2_frame_ops): Delete.
10898 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10899 (dwarf2_frame_init_reg): Use gdbarch_data.
10900 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10901 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10902 (_initialize_svr4_solib): Update.
10903 * user-regs.c (_initialize_user_regs): Update.
10904 * reggroups.c (_initialize_reggroup): Update.
10905 * regcache.c (_initialize_regcache): Update.
10906 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10907 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10908 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10909 * frame-unwind.c (_initialize_frame_unwind): Update.
10910 * frame-base.c (_initialize_frame_base): Update.
10911 * user-regs.c (user_reg_add): Update.
10912 * reggroups.c (reggroup_add): Update.
10913 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10914 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10915 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10916 * frame-base.c (frame_base_table): Update.
10917 * remote.c (_initialize_remote): Update.
10918 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10920 2004-03-15 Andrew Cagney <cagney@redhat.com>
10922 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10924 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10926 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10927 * frv-linux-tdep.c: New file.
10928 * frv-tdep.c (struct gdbarch_tdep): Add new field
10929 ``sigcontext_reg_addr''.
10930 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10931 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10932 (frv_sigramp_frame_sniffer): New functions.
10933 (frv_sigtramp_frame_unwind): New static global.
10934 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10936 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10937 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10939 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10941 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10942 but not via a call to error(), when unable to read memory.
10944 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10946 * frv-tdep.c (frv_call_dummy_words): Delete.
10947 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10949 2004-03-15 Andrew Cagney <cagney@redhat.com>
10951 * infrun.c (handle_step_into_function, step_over_function): Only
10952 update and use STEP_FRAME_ID when the system is using legacy
10953 frames. Update comments.
10955 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10957 * amd64-linux-tdep.h: Remove file.
10958 * amd64-linux-tdep.c: Don't include "inferior.h" and
10959 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10960 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10961 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10962 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10963 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10965 (user_to_gdb_regmap): Remove variable.
10966 (amd64_linux_gregset_reg_offset): New variable.
10967 (amd64_core_fns): Remove variable.
10968 (fetch_core_registers): Remove function.
10969 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10971 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10972 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10973 * Makefile.in (amd64_linux_tdep_h): Remove.
10974 (amd64-linux-nat.o): Update dependencies.
10975 (amd64-linux-tdep.o): Update dependencies.
10977 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10978 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10980 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10982 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10983 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10985 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10987 * dwarf2read.c (read_structure_type): Rename from
10988 read_structure_scope. Don't create a symbol or call process_die.
10989 Return immediately if die->type is set. Call read_type_die before
10990 dwarf2_add_member_fn.
10991 (process_structure_scope): New function.
10992 (read_enumeration_type, process_enumeration_scope): New functions,
10993 broken out from read_enumeration. Don't create the enumeration
10994 type if it has already been created.
10995 (read_enumeration): Removed.
10996 (process_die): Call read_structure_type, process_structure_scope,
10997 read_enumeration_type, and process_enumeration_scope. Just call
10998 new_symbol for base and subrange types. Add a comment about other
11000 (read_type_die): Call read_enumeration_type.
11001 (add_partial_structure, new_symbol): Update comments.
11003 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
11005 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
11007 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
11009 * tui/tui-win.h (tui_get_cmd_list): Declare.
11010 * tui/tui-win.c (tui_command): New function.
11011 (tui_get_cmd_list): New function.
11012 (_initialize_tui_win): Moved initialization of tui command in
11015 * tui/tui-data.c (init_content_element): Setup new data members.
11016 (init_win_info): Likewise.
11017 (free_content_elements): Free it.
11018 * tui/tui-data.h (struct tui_data_element): Store the register
11020 (struct tui_data_info): Keep the current register group.
11022 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
11024 * tui/tui-regs.h (tui_show_registers): Update prototype.
11025 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
11026 (tui_resize_all): No need to calculate anything for register window.
11027 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
11028 (tui_set_register_element, tui_set_general_regs_content): Remove.
11029 (tui_set_special_regs_content): Remove.
11030 (tui_set_general_and_special_regs_content): Remove.
11031 (tui_set_float_regs_content): Remove.
11032 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
11033 (tui_set_regs_content): Remove.
11034 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
11035 (tui_v_show_registers_command_support): Remove.
11036 (tui_show_registers): Use a reggroup to specify the registers to show.
11037 (tui_show_register_group): New function.
11038 (tui_display_registers_from): Compute the layout of register window
11039 and refresh with new API; be sure to delete old register windows.
11040 (tui_check_register_values): Update to use tui_get_register and
11042 (tui_display_register): Just refresh the register window part.
11043 (tui_register_format): Format registers and save in tui_data_element.
11044 (tui_get_register): New to combine tui_reg_value_has_changed and
11045 tui_get_register_raw_value; fix to use the new gdb API.
11046 (tui_show_float_command): Renamed tui_reg_float_command.
11047 (tui_show_general_command): Renamed tui_reg_general_command.
11048 (tui_show_special_command): Renamed tui_reg_system_command.
11049 (_initialize_tui_regs): Remove unused commands.
11051 2004-03-13 Mark Kettenis <kettenis@gnu.org>
11053 * NEWS (New native configurations): Mention OpenBSD/amd64.
11055 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
11056 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
11058 * config/i386/nm-fbsd64.h: Likewise.
11059 * config/i386/nm-obsd.h: Likewise.
11060 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
11061 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
11063 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11065 * frv-tdep.c (set_variant_scratch_registers): New function.
11066 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
11069 From Richard Sandiford <rsandifo@redhat.com>:
11070 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
11072 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11074 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
11075 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11076 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11077 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11078 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11079 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11080 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11081 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11082 definitions from frv-tdep.c to frv-tdep.h.
11084 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11086 Add shared library support for FR-V FDPIC ABI:
11087 * Makefile.in (solib-frv.o): Add dependencies.
11088 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11090 (frv_push_dummy_call): Add support for FDPIC ABI.
11091 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11093 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11094 (frv_fdpic_find_canonical_descriptor): Declare.
11095 * solib-frv.c: New file.
11096 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11097 * config/frv/tm-frv.h (solib.h): Include.
11099 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11101 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11102 (frv-tdep.o): Update dependencies.
11103 * frv-tdep.h: New file.
11104 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11105 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11107 (struct gdbarch_tdep): Add new member ``frv_abi''.
11108 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11110 (new_variant): Set ``frv_abi'' field.
11111 (gdb_arch_init): Detect FDPIC executables.
11113 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11115 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11118 2004-03-11 Andrew Cagney <cagney@redhat.com>
11120 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11122 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11124 * solist.h (master_so_list): New function.
11125 * solib.c (master_so_list): Likewise.
11126 * solib-svr4.c (enable_break): Iterate over so_list entries
11127 obtained from master list instead of entries obtained directly
11128 via svr4_current_sos().
11130 2004-03-10 Ben Elliston <bje@gnu.org>
11132 * MAINTAINERS: Update my mail address.
11134 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11136 * remote-m32r-sdi.c: Support hardware watchpoint.
11138 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11140 * user-regs.c: Update copyright years.
11141 (struct user_regs): Rename to gdb_user_regs.
11142 (append_user_reg, builtin_user_regs, user_regs_init)
11143 (user_reg_add, user_reg_map_name_to_regnum)
11144 (usernum_to_user_reg): Update.
11146 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11148 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11149 (skip_children): New functions.
11150 (locate_pdi_sibling): Call skip_children.
11152 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11154 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11155 * gdbtypes.c (check_typedef): Update comments.
11157 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11159 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11160 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11161 pointer. Update comment about comp_unit_head.
11162 (struct abbrev_info): Shorten two int flags.
11163 (dwarf_alloc_abbrev): Take a CU argument.
11164 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11165 each time through the loop. Update cleanup argument.
11166 (psymtab_to_symtab_1): Update cleanup call.
11167 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11169 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11170 Just call obstack_free and clear the pointer.
11172 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11174 * infrun.c (handle_inferior_event): Remove short-circuit code for
11175 events in a different thread.
11177 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11179 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11180 print the whole transfer.
11181 (initialize_targets): Update description of "set debug target".
11183 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11185 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11187 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11189 * MAINTAINERS (write after approval): Add myself.
11191 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11193 * sh-tdep.c (sh_print_registers_info): Use for loop.
11194 Don't skip multiple registers when a float register is encountered.
11196 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11199 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11200 to official SH documentation.
11202 2004-03-07 Andrew Cagney <cagney@redhat.com>
11204 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11207 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11209 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11210 (arm_get_next_pc): Handle BX and BLX.
11212 2004-03-07 Andrew Cagney <cagney@redhat.com>
11214 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11215 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11217 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11218 (hppa_target_read_fp): Delete.
11219 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11220 register_virtual_size, max_register_raw_size,
11221 max_register_virtual_size, register_byte, register_size,
11222 target_read_fp, fp_regnum, and register_bytes. Set register_type
11223 instead of register_virtual_type.
11224 (hppa32_register_type, hppa64_register_type): Replace
11225 hppa32_register_virtual_type and hppa64_register_virtual_type.
11226 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11227 (HPPA_FP_REGNUM): Define.
11229 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11231 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11232 (pa_do_registers_info): Delete.
11233 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11234 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11235 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11237 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11238 GDB_TARGET_IS_HPPA code.
11239 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11240 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11241 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11242 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11243 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11244 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11245 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11246 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11247 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11248 (hppa_frameless_function_invocation, hppa64_store_return_value)
11249 (hppa_store_struct_return, hppa64_extract_return_value)
11250 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11251 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11252 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11253 (find_proc_framesize, deposit_21, restore_pc_queue)
11254 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11255 (rp_saved, pc_in_linker_stub): Delete.
11257 Unconditionally enable 64-bit frame and ABI code.
11258 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11259 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11260 push_dummy_frame, fix_call_dummy, push_arguments,
11261 call_dummy_location, extract_return_value, use_struct_convention,
11262 store_return_value, store_struct_return, saved_pc_after_call,
11263 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11264 frame_chain, frame_chain_valid, frameless_function_invocation,
11265 frame_saved_pc, and pop_frame.
11267 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11268 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11269 (hppa_gdbarch_init): Do not set PC_REGNUM.
11271 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11273 * config/alpha/tm-fbsd.h: Remove file.
11274 * config/alpha/fbsd.mt: Tweak comment.
11275 (TM_FILE): Set to tm-alpha.h.
11277 2004-03-05 Andrew Cagney <cagney@redhat.com>
11279 * infrun.c (step_over_function): When non-legacy code, and no
11280 step_frame_id, use the unwinder to get the caller's frame ID.
11282 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11284 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11285 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11286 bfd_arch_unknown. Adjust comment.
11288 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11289 * i386obsd-tdep.c: Correct spelling in comment.
11290 * i386nbsd-tdep.c: Correct spelling in comment.
11291 * sparc-tdep.c: Correct spelling in comments.
11293 2004-03-05 David Carlton <carlton@kealia.com>
11295 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11298 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11300 * sparc-tdep.c: Fix typo in comment.
11302 2004-03-04 J. Brobecker <brobecker@gnat.com>
11304 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11306 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11308 * dwarf2read.c: Add comment describing memory lifetimes.
11309 (struct dwarf2_pinfo): Update comment.
11310 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11311 (read_enumeration, new_symbol): Don't use obsavestring.
11313 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11315 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11316 instead of amd64_fill_fxsave.
11317 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11318 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11320 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11321 Reorganize code a bit.
11323 2004-03-04 Orjan Friberg <orjanf@axis.com>
11325 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11326 when the frame pointer is pushed. Don't set the frame pointer's
11327 address on the stack unless it's actually located there.
11328 Set the SRP's address on the stack correctly when the PC is still in
11330 (cris_return_value): New function.
11331 (cris_gdbarch_init): Clear deprecated store_return_value,
11332 extract_return_value.
11334 2004-03-02 Jim Blandy <jimb@redhat.com>
11336 * stabsread.c (reg_value_complaint): The maximum register number
11337 is one less than the number of registers.
11339 2004-03-02 Andrew Cagney <cagney@redhat.com>
11341 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11342 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11343 trailing comma and redundant assignment of I386_ST0_REGNUM.
11344 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11345 32-bit segment registers.
11347 2004-03-01 Andrew Cagney <cagney@redhat.com>
11349 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11350 use frame_relative_level and get_next_frame.
11352 2004-02-29 Andrew Cagney <cagney@redhat.com>
11354 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11355 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11356 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11359 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11361 * inflow.c (terminal_inferior): Don't give up the terminal if we
11362 previously couldn't get the inferior's terminal state.
11364 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11366 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11369 2004-02-28 Andrew Cagney <cagney@redhat.com>
11371 * NEWS: Refer to GDB 6.1.
11372 * README: Refer to GDB 6.1.
11373 * PROBLEMS: Refer to GDB 6.1.
11375 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11377 * thread-db.c (disable_thread_signals): Remove unused function.
11379 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11381 * amd64-nat.c: Include "gdb_string.h".
11382 (amd64_collect_native_gregset): Zero-extend the 32-bit
11383 general-purpose registers and %eip.
11385 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11386 * amd64-tdep.c (amd64_collect_fxsave): New function.
11387 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11389 * i387-tdep.h: Update copyright year.
11390 (i387_collect_fxsave): New prototype.
11391 * i387-tdep.c: Update copyright year.
11392 (i387_collect_fxsave): New function containing most of the code
11393 from i387_fill_fxsave.
11394 (i387_fill_fxsave): Call i387_collect_fxsave.
11396 2004-02-28 Andrew Cagney <cagney@redhat.com>
11398 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11399 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11401 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11403 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11405 2004-02-28 Andrew Cagney <cagney@redhat.com>
11407 * utils.c: Use "", instead of <>, to include readline.
11408 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11409 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11410 * source.c, solib.c, exec.c, event-top.c: Ditto.
11411 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11412 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11413 * Makefile.in: Update all dependencies.
11414 (readline_tilde_h, readline_history_h): Define.
11415 (readline_headers): Delete.
11417 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11419 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11420 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11421 "config/i386/tm-lx64.h".
11423 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11424 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11425 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11427 2004-02-28 Andrew Cagney <cagney@redhat.com>
11429 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11431 * breakpoint.c (_initialize_breakpoint): Use
11432 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11433 Add help to show command.
11435 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11437 * i386-nat.c: Reformat to be closer to coding standards.
11438 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11439 `retval'. Make variables `align' and `size' local to while-loop.
11440 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11441 (_initialize_i386_nat): New prototype.
11443 * tui/tui.c: Include <readline/readline.h> instead of
11444 "readline/readline.h". Include it after <term.h> and
11447 2004-02-27 Andrew Cagney <cagney@redhat.com>
11449 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11450 the new frame unwind code.
11451 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11452 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11455 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11456 "return_value" and "push_dummy_call".
11457 (hppa32_use_struct_convention): Delete unused function.
11458 (hppa32_store_return_value): Delete unused function.
11459 (hppa32_extract_return_value): Delete unused function.
11460 (hppa32_stack_align): Delete function.
11462 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11464 * coffread.c (enter_linenos): Don't let rawptr reference memory
11465 outside linetab[]'s limits.
11467 2004-02-27 Andrew Cagney <cagney@redhat.com>
11469 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11470 inferior stack space - the stack needs to grow upwards.
11471 (hppa32_frame_align): New function.
11472 (hppa64_frame_align): Replace hppa_frame_align.
11473 (hppa_gdbarch_init): Update.
11475 2004-02-26 Orjan Friberg <orjanf@axis.com>
11477 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11478 (dwarf2-frame.h): Include.
11479 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11480 Remove static variables related to ABI setting.
11481 (struct gdbarch_tdep): Remove cris_abi member.
11482 (struct frame_extra_info): Remove.
11483 (cris_unwind_cache, stack_item): New structs.
11484 (cris_frame_unwind, cris_frame_base): New variables.
11485 (push_stack_item, pop_stack_item)
11486 (cris_frame_unwind_cache, cris_frame_this_id)
11487 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11488 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11489 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11490 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11491 (cris_reg_struct_has_addr): New functions.
11492 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11493 (cris_frame_saved_pc, cris_saved_pc_after_call,
11494 (cris_store_struct_return, cris_frameless_function_invocation)
11495 (cris_pop_frame, cris_skip_prologue_main)
11496 (cris_abi_original_store_return_value)
11497 (cris_abi_v2_store_return_value)
11498 (cris_abi_original_extract_return_value)
11499 (cris_abi_v2_extract_return_value)
11500 (cris_abi_original_reg_struct_has_addr)
11501 (cris_abi_v2_reg_struct_has_addr)
11502 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11503 (cris_push_return_address, cris_abi_update): Remove.
11504 (_initialize_cris_tdep): Remove ABI command.
11505 (cris_dump_tdep): Ditto.
11506 (cris_gdbarch_init): Remove ABI command.
11507 Set store_return_value, extract_return_value, push_dummy_code,
11508 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11509 frame_unwind_append_sniffer, frame_base_set_default.
11510 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11511 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11512 sizeof_call_dummy_words, get_saved_register, push_return_address,
11513 pop_frame, store_struct_return, frame_init_saved_regs,
11514 init_extra_frame_info, frameless_function_invocation, frame_chain,
11515 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11518 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11520 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11521 * valprint.c (print_hex_chars): Change from static to external.
11522 (print_char_chars): New function.
11523 * printcmd.c (print_scalar_formatted): For integer and enum types
11524 that are longer than LONGEST, perform processing via appropriate
11525 print_*_chars routines.
11527 2004-02-26 Andrew Cagney <cagney@redhat.com>
11529 * Makefile.in: Update dependencies.
11530 Changes from Ulrich Weigand,
11531 * s390-tdep.c: Include "dwarf2-frame.h".
11532 (s390_dwarf2_frame_init_reg): New function.
11533 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11534 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11536 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11538 * breakpoint.c (pending_break_support): New setting variable.
11539 (break_command_1): Account for pending_break_support setting
11540 when creating pending breakpoints.
11541 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11542 (_initialize_breakpoint): Add "set breakpoint pending" and
11543 "show breakpoint pending" commands.
11545 2004-02-26 Andrew Cagney <cagney@redhat.com>
11548 * charset.c (backslashable, backslashed, represented): Remove 'e'
11549 from list of escaped characters, not part of ISO-C.
11551 2004-02-25 J. Brobecker <brobecker@gnat.com>
11553 From Peter Schauer <schauer@pdf.de>:
11554 * tui/tui.c: Move system header includes after local includes.
11555 Fixes a build failure on solaris systems.
11557 2004-02-25 J. Brobecker <brobecker@gnat.com>
11559 * configure.in: Refine the previous change.
11560 * configure: Regenerate.
11562 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11564 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11565 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11566 "amd64-tdep.h" instead of "x86-64-tdep.h".
11567 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11568 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11569 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11570 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11571 and "x86-64-tdep.c".
11572 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11573 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11574 and "x86-64-tdep.c".
11575 * amd64bsd-nat.c: Update copyright year.
11576 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11577 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11579 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11581 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11583 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11585 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11587 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11589 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11590 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11591 * Makefile.in (amd64_linux_tdep_h): Renamed from
11592 x86_64_linux_tdep_h.
11593 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11594 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11595 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11596 (amd64obsd-tdep.o): Update dependencies.
11597 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11599 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11601 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11602 amd64-linux-nat.c amd64-linux-tdep.c.
11603 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11604 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11605 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11606 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11607 amd64-tdep.o and amd64-linux-tdep.o.
11608 (TM_FILE): Set to tm-linux64.h.
11609 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11610 (NAT_FILE): Set to nm-linux64.h.
11611 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11612 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11614 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11616 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11619 2004-02-25 Roland McGrath <roland@redhat.com>
11621 * remote.c (remote_protocol_qPart_auxv): New variable.
11622 (init_all_packet_configs): Initialize it.
11623 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11624 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11625 (show_remote_cmd): Call it.
11626 (_initialize_remote): Initialize commands.
11627 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11628 service TARGET_OBJECT_AUXV requests.
11630 2004-02-25 J. Brobecker <brobecker@gnat.com>
11632 * configure.in: Make sure that the wborder function is available.
11633 Otherwise, search for it in the cur_colr library.
11634 * configure: Regenerate.
11636 2004-02-25 Andrew Cagney <cagney@redhat.com>
11638 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11640 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11642 * config/i386/tm-x86-64linux.h: Tweak comments.
11644 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11646 * MAINTAINERS: Add self to write-after-approval list.
11648 2004-02-25 Andrew Cagney <cagney@redhat.com>
11650 PR cli/1566. Problem found, and fix suggested by David Allan.
11651 * cli/cli-script.c (execute_control_command): Unconditionally
11652 install a cleanup. Default "ret" to "invalid_control". Use
11653 "break" instead of "return" to escape from the switch.
11655 2004-02-24 J. Brobecker <brobecker@gnat.com>
11657 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11658 with the lines macro defined in term.h on AiX.
11659 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11660 a collision with the label_width macro defined in term.h on AiX.
11662 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11664 Committed by Kevin Buettner <kevinb@redhat.com>.
11666 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11667 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11668 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11669 instead of ia64_write_pc().
11670 * ia64-linux-tdep.c (regcache.h): Include.
11671 (ia64_linux_write_pc): New function.
11673 2004-02-23 Roland McGrath <roland@redhat.com>
11675 * auxv.c (info_auxv_command): Fix typos in error messages.
11677 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11679 * x86-64-tdep.h: Tweak comment.
11680 (enum amd64_regnum): New.
11681 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11682 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11683 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11684 (X86_64_XMM1_REGNUM): Removed.
11685 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11686 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11687 prototypes for renamed functions.
11688 * x86-64-tdep.c: Fix typo.
11689 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11691 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11692 Use constants from `enum amd64_regnum' for register numbers.
11693 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11694 (amd64_analyze_prologue, amd64_frame_cache,
11695 amd64_sigtramp_frame_cache): Use constants from `enum
11696 amd64_regnum' for register numbers.
11697 (amd64_supply_fpregset): Adjust for renamed functions.
11698 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11699 `enum amd64_regnum' for register numbers.
11700 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11701 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11702 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11703 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11704 (amd64_linux_fill_gregset): Adjust for renamed macros.
11705 (fetch_core_registers): Adjust for renamed functions.
11706 (amd64_linux_init_abi): Adjust for renamed functions.
11707 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11709 * amd64-nat.c: Adjust for renamed macros.
11710 * amd64bsd-nat.c (fetch_inferior_registers)
11711 (store_inferior_registers): Use constants from `enum amd64_regnum'
11712 for register numbers. Adjust for renamed variables.
11713 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11715 (_initialize_amd64fbsd_nat): Use constants from `enum
11716 amd64_regnum' for register numbers.
11717 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11718 `enum amd64_regnum' for register numbers.
11719 (amd64fbsd_init_abi): Adjust for renamed functions.
11720 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11721 `enum amd64_regnum' for register numbers.
11722 (amd64nbsd_init_abi): Adjust for renamed functions.
11723 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11724 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11725 `enum amd64_regnum' for register numbers.
11726 (amd64obsd_init_abi): Adjust for renamed functions.
11727 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11729 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11731 * breakpoint.c (print_one_breakpoint): Do not output spaces
11732 after printing <PENDING> for a pending breakpoint.
11734 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11736 * printcmd.c (print_scalar_formatted): Initialize val_long
11737 to remove compiler warning message.
11739 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11741 * defs.h (nquery, yquery): New prototypes.
11742 * breakpoint.c (break_command_1): Use new nquery interface.
11743 * utils.c (defaulted_query, nquery, yquery): New functions.
11745 2004-02-23 Andrew Cagney <cagney@redhat.com>
11747 * hppa-tdep.c (hppa_frame_align): New function.
11748 (hppa32_push_dummy_call): New function.
11749 (hppa64_push_dummy_call): New function.
11750 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11753 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11754 FIX_CALL_DUMMY when push_dummy_call is available.
11755 (call_function_by_hand, push_dummy_code): Ditto.
11757 2004-02-22 Andrew Cagney <cagney@redhat.com>
11759 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11760 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11761 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11762 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11763 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11764 call_dummy_location to ON_STACK.
11766 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11768 * x86-64-linux-tdep.c: Tweak comment.
11769 (amd64_linux_supply_gregset): Renamed from
11770 x86_64_linux_supply_gresget.
11771 (amd64_linux_fill_gregset): Renamed from
11772 x86_64_linux_fill_gregset.
11773 (fetch_core_registers): Adjust for renamed functions.
11774 (amd64_core_fns): Renamed from x86_64_core_fns.
11775 (amd64_linux_sigtramp_start): Renamed from
11776 x86_64_linux_sigtramp_start.
11777 (amd64_linux_pc_in_sigtramp): Renamed from
11778 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11779 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11780 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11781 (amd64_linux_sigcontext_addr): Renamed from
11782 x86_64_linux_sigcontext_addr.
11783 (amd64_linux_sc_reg_offset): Renamed from
11784 x86_64_linux_sc_reg_offset.
11785 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11786 Adjust for renamed functions and variables.
11787 (_initialize_amd64_linux_tdep): Renamed from
11788 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11790 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11791 Adjust for renamed functions.
11793 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11794 from x86_64_linux_gregset64_reg_offset.
11795 (amd64_linux_gregset32_reg_offset): Rename from
11796 x86_64_linux_gregset64_reg_offset.
11797 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11798 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11799 (amd64_linux_dr_set_control): Renamed from
11800 x86_64_linux_dr_set_control. Adjust for renamed functions.
11801 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11802 Adjust for renamed functions.
11803 (amd64_linux_dr_reset_addr): Renamed from
11804 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11805 (amd64_linux_dr_get_status): Renamed from
11806 x86_64_linux_dr_get_status. Adjust for renamed functions.
11807 (_initialize_amd64_linux_nat): Renamed from
11808 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11810 * config/i386/nm-x86-64linux.h: Update copyright year.
11811 Adjust for renamed functions.
11813 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11814 amd64fbsd_sigtramp_start.
11815 (amd64fbsd_sigtramp_end_addr): Renamed from
11816 amd64fbsd_sigtramp_end.
11817 (amd64fbsd_init_abi): Adjust for renamed variables.
11818 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11820 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11821 amd64fbsd_sigtramp_start.
11822 (amd64fbsd_sigtramp_end_addr): Renamed from
11823 amd64fbsd_sigtramp_end.
11825 2004-02-22 Andrew Cagney <cagney@redhat.com>
11827 * hppa-tdep.c (hppa32_return_value): New function.
11828 (hppa64_return_value): New function.
11829 (hppa_gdbarch_init): Set return_value; keep disabled.
11831 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11832 struct-return and inferior function call methods.
11834 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11836 (struct hppa_frame_cache): Define.
11837 (hppa_frame_cache, hppa_frame_this_id): New functions.
11838 (hppa_frame_prev_register): New function.
11839 (hppa_frame_unwind, hppa_frame_base): New variables.
11840 (hppa_frame_unwind_sniffer): New function.
11841 (hppa_frame_base_address, hppa_unwind_pc): New function.
11842 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11843 sniffer, and frame base sniffer; keep disabled.
11844 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11845 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11847 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11848 to predicates for "seriously old code".
11850 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11853 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11855 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11857 * config/pa/tm-hppa.h: Update copyright.
11858 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11859 (deprecated_init_frame_pc_default): Delete declaration.
11860 (hppa_frame_init_saved_regs): Delete declaration.
11861 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11862 * hppa-tdep.c: Include "arch-utils.h".
11863 (hppa_gdbarch_init): Set deprecated init_frame_pc
11864 and deprecated frame_init_saved_regs.
11865 (hppa_frame_init_saved_regs): Make static.
11867 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11869 Remove old 386BSD support.
11870 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11871 * configure.host: Remove i[34567]86-*-bsd*.
11872 * configure.tgt: Remove i[34567]86-*-bsd*.
11873 * i386b-nat.c: Removed.
11874 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11875 (i386b-nat.o): Remove dependencies.
11877 * config/i386/i386bsd.mh: Removed.
11878 * config/i386/i386bsd.mt: Removed.
11879 * config/i386/nm-i386bsd.h: Removed.
11880 * config/i386/tm-i386bsd.h: Removed.
11881 * config/i386/xm-i386bsd.h: Removed.
11883 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11885 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11886 (amd64fbsd_init_abi): Set link map offsets.
11887 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11888 (amd64nbsd_init_abi): Set link map offsets.
11889 * amd64obsd-tdep.c: Include "solib-svr4.h".
11890 (amd64obsd_init_abi): Set link map offsets.
11891 * i386fbsd-tdep.c: Include "solib-svr4.h".
11892 (i386fbsd_init_abi): Set link map offsets.
11893 * i386nbsd-tdep.c: Include "solib-svr4.h".
11894 (i386nbsdelf_init_abi): Set link map offsets.
11895 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11896 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11897 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11898 solib-legacy.o and core-aout.o. Reformat.
11899 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11900 solib-svr4.o, solib-legacy.o. Reformat.
11901 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11902 * config/i386/nbsdelf.mh: Reformat.
11903 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11904 solib-svr4.o, solib-legacy.o and corelow.o.
11905 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11906 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11907 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11908 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11909 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11910 (TM_FILE): Set to tm-fbsd.h.
11911 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11912 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11914 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11916 (TM_FILE): Set to nm-nbsd.h.
11917 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11918 Simplify shared library support. Don't include "elf/common.h".
11919 (SVR4_SHARED_LIBS): Don't define.
11920 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11922 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11923 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11924 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11925 Don't include "i386/tm-i386.h". Include "solib.h".
11926 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11927 Don't include "i386/tm-i386.h".
11928 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11929 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11930 Include "i386/xm-i386.h".
11931 (HOST_LONG_DOUBLE_FORMAT): Remove.
11933 Fix OpenBSD/i386 sigtramp recognition.
11934 * i386-tdep.h: Update copyright year.
11935 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11936 (i386bsd_sigtramp_end): New prototypes.
11937 (i386fbsd_sigtramp_start_addr): Renamed from
11938 i386fbsd_sigtramp_start.
11939 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11940 (i386obsd_sigtramp_start_addr): Renamed from
11941 i386obsd_sigtramp_start.
11942 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11943 * i386bsd-tdep.c: Update copyright year.
11944 (i386bsd_pc_in_sigtramp): Make public.
11945 * i386fbsd-nat.c: Update copyright year.
11946 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11947 * i386fbsd-tdep.c: Update copyright year.
11948 (i386fbsd_sigtramp_start_addr): Renamed from
11949 i386fbsd_sigtramp_start.
11950 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11951 (i386fbsdaout_init_abi): Adjust for renamed variables.
11952 * i386obsd-nat.c: Update copyright year.
11953 (_initialize_i386obsd_nat): Adjust for renamed variables.
11954 * i386obsd-tdep.c: Include "target.h".
11955 (i386obsd_page_size): New variable.
11956 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11957 (i386obsd_sigtramp_end): New functions.
11958 (i386obsd_sigtramp_start_addr): Renamed from
11959 i386obsd_sigtramp_start.
11960 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11961 (i386obsd_init_abi): Adjust for renamed variables. Set
11962 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11963 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11965 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11966 trampoline change in OpenBSD kernel.
11968 * amd64-nat.c: Update copyright year.
11969 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11970 architecture from REGCACHE.
11972 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11973 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11975 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11977 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11978 i[34567]86-*-openbsd3.[0-3].
11979 * config/i386/obsdaout.mh: New file.
11981 * config/i386/obsd.mh (MH_FLAGS): Remove.
11984 * i386obsd-tdep.c: Update copyright years. Include
11986 (i386obsd_init_abi): Don't set regset_from_core_section here.
11987 (i386obsd_aout_init_abi): New function. Set
11988 regset_from_core_section here.
11989 (i386obsd_elf_init_abi): New function.
11990 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11991 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11992 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11993 (TM_FILE): Set to tm-nbsd.h.
11995 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11998 * solib-svr4.h: Update copyright year.
11999 (svr4_ilp32_fetch_link_map_offsets)
12000 (svr4_lp64_fetch_link_map_offsets): New prototype.
12001 * solib-svr4.c: Update copyright year.
12002 (svr4_ilp32_fetch_link_map_offsets)
12003 (svr4_lp64_fetch_link_map_offsets): New function.
12005 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
12007 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
12008 to the partial symbol table.
12010 2004-02-20 J. brobecker <brobecker@gnat.com>
12012 * PROBLEMS: Add description of problem documented under gdb/1560.
12014 2004-02-20 Mark Kettenis <kettenis@gnu.org>
12016 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
12018 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
12020 (amd64obsd_init_abi): Reorder initializations. Use
12021 amd64obsd_r_reg_offset to initialize the general-purpose register
12022 set details. Set regset_from_core_section.
12023 (_initialize_amd64obsd_tdep): Rename from
12024 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
12025 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
12026 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
12028 * NEWS (New native configurations): Mention OpenBSD/alpha.
12029 * configure.tgt: Add alpha*-*-openbsd*.
12030 * configure.host: Add alpha*-*-openbsd*.
12031 * alphanbsd-tdep.c: Update copyright year.
12032 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
12034 2004-02-20 Andrew Cagney <cagney@redhat.com>
12037 * configure.tgt: Delete target "none-*-*".
12038 * configure.host: Delete host "none-*-*".
12039 * config/none/none.mh: Delete file.
12040 * config/none/none.mt: Delete file.
12041 * config/none/xm-none.h: Delete file.
12042 * config/none/tm-none.h: Delete file.
12043 * config/none/nm-none.h: Delete file.
12045 2004-02-19 Fred Fish <fnf@redhat.com>
12047 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
12048 cache->uses_fp prior to setting it.
12050 2004-02-19 Fred Fish <fnf@redhat.com>
12052 Fix for PR breakpoint/1558.
12053 * sh-tdep.c (IS_JSR): New macro.
12054 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
12056 2004-02-19 Jim Blandy <jimb@redhat.com>
12058 * findvar.c (value_from_register): Doc fix.
12060 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
12062 * printcmd.c (print_scalar_formatted): Do not check for sizeof
12063 type being greater than sizeof of host's LONGEST. Always use
12064 unpack_long() unless format 'f' chosen.
12066 2004-02-19 Joel Brobecker <brobecker@gnat.com>
12068 Committed by Elena Zannoni <ezannoni@redhat.com>
12070 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
12071 contains a symbol wich is the best, non-exact match for the given
12072 pc. Update comments.
12074 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
12076 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12077 macro, which was part of the now removed Mach 3 port.
12078 * utils.c (request_quit): Ditto.
12080 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12082 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12083 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12085 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12087 Committed by Mark Kettenis <kettenis@gnu.org>.
12089 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12092 2004-02-18 Andrew Cagney <cagney@redhat.com>
12094 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12095 CONFIG_INSTALL and CONFIG_UNINSTALL.
12096 * configure: Re-generate.
12097 * interps.h (INTERP_TUI): Define.
12098 * Makefile.in: Update dependencies.
12100 (tui-main.o): Specify dependencies.
12101 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12102 * tui/tui-main.c: New file.
12104 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12106 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12107 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12109 * configure.host: Add x86_64-*-openbsd*.
12110 * configure.tgt: Add x86_64-*-openbsd*.
12111 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12113 * tui/tui.c: Don't include <malloc.h>.
12115 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12116 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12119 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12120 static. Remove extraneous whitespace.
12121 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12124 2004-02-17 Jim Blandy <jimb@redhat.com>
12126 * findvar.c (value_from_register): Doc fix.
12128 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12130 Committed by Jim Blandy <jimb@redhat.com>.
12132 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12133 CORE_ADDR as type for selectors. Correct types for GNU run time
12134 message lookup function to use double indirection.
12135 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12136 * objc-lang.h (lookup_child_selector): Adapt prototype.
12138 * s390-nat.c (SUBOFF): New macro.
12139 (supply_gregset, fill_gregset): Use it to handle debugging
12140 of 32-bit exectuables running under a 64-bit kernel.
12141 * s390-tdep.c: Include "solib-svr4.h".
12142 (s390_svr4_fetch_link_map_offset): New function.
12143 (s390x_svr_fetch_link_map_offset): Likewise.
12144 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12145 * Makefile.in (s390-tdep.o): Update dependencies.
12147 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12149 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12150 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12151 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12152 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12153 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12154 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12155 S390_SIGNAL_FRAMESIZE,
12156 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12157 (struct frame_extra_info): Remove.
12158 (s390_memset_extra_info): Remove.
12159 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12160 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12161 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12162 (is_rse): Renamed to ...
12163 (is_rsy): ... this. Support long displacements.
12164 (is_rxe): Renamed to ...
12165 (is_rxy): ... this. Support long displacements.
12166 (compute_x_addr): Support long displacements.
12167 (struct s390_prologue_data): New data type.
12168 (s390_on_stack): Change API to use struct s390_prologue_data.
12169 (s390_store): Reimplement.
12170 (s390_load): New function.
12171 (s390_get_signal_frame_info): Remove.
12172 (s390_get_frame_info): Remove, replace by ...
12173 (s390_analyze_prolog): ... this new function.
12174 (s390_check_function_end): Remove.
12175 (s390_function_start): Remove.
12176 (s390_frameless_function_invokation): Remove.
12177 (s390_is_sigreturn): Remove.
12178 (s390_init_frame_pc_first): Remove.
12179 (s390_init_frame_extra_info): Remove.
12180 (s390_frame_init_saved_regs): Remove.
12181 (s390_frame_saved_pc_nofix): Remove.
12182 (s390_frame_saved_pc): Remove.
12183 (s390_frame_chain): Remove.
12184 (s390_fp_regnum, s390_read_fp): Remove.
12185 (s390_pop_frame_regular, s390_pop_frame): Remove.
12186 (s390_saved_pc_after_call): Remove.
12187 (s390_skip_prologue): Reimplement.
12188 (s390_in_function_epilogue_p): Support long displacements.
12189 (struct s390_unwind_cache): New data structure.
12190 (s390_frame_unwind_cache): New function.
12191 (s390_prologue_frame_unwind_cache): Likewise.
12192 (s390_backchain_frame_unwind_cache): Likewise.
12193 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12194 (s390_frame_unwind): Define.
12195 (s390_frame_sniffer): New function.
12196 (struct s390_pltstub_unwind_cache): New data structure.
12197 (s390_pltstub_frame_unwind_cache): New function.
12198 (s390_pltstub_frame_this_id): Likewise.
12199 (s390_pltstub_frame_prev_register): Likewise.
12200 (s390_pltstub_frame_unwind): Define.
12201 (s390_pltstub_frame_sniffer): New function.
12202 (struct s390_sigtramp_unwind_cache): New data structure.
12203 (s390_sigtramp_frame_unwind_cache): New function.
12204 (s390_sigtramp_frame_this_id): Likewise.
12205 (s390_sigtramp_frame_prev_register): Likewise.
12206 (s390_sigtramp_frame_unwind): Define.
12207 (s390_sigtramp_frame_sniffer): New function.
12208 (s390_frame_base_address, s390_local_base_address): New functions.
12209 (s390_frame_base): Define.
12210 (s390_unwind_pc, s390_unwind_sp): New function.
12211 (s390_push_dummy_call): Use new frame base location.
12212 (s390_unwind_dummy_id): Likewise.
12213 (s390_gdbarch_init): Remove calls to:
12214 set_gdbarch_frameless_function_invocation,
12215 set_gdbarch_deprecated_init_frame_pc,
12216 set_gdbarch_deprecated_frame_chain,
12217 set_gdbarch_deprecated_frame_init_saved_regs,
12218 set_gdbarch_deprecated_pop_frame,
12219 set_gdbarch_deprecated_init_extra_frame_info,
12220 set_gdbarch_deprecated_init_frame_pc_first,
12221 set_gdbarch_deprecated_target_read_fp,
12222 set_gdbarch_deprecated_frame_saved_pc,
12223 set_gdbarch_deprecated_saved_pc_after_call,
12224 set_gdbarch_deprecated_fp_regnum.
12226 set_gdbarch_in_solib_call_trampoline,
12227 frame_unwind_append_sniffer,
12228 frame_base_set_default,
12229 set_gdbarch_unwind_pc,
12230 set_gdbarch_unwind_sp.
12231 * Makefile.in (s390-tdep.o): Update dependencies.
12233 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12234 (S390_STACK_FRAME_OVERHEAD): Remove.
12235 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12236 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12237 (s390_promote_integer_argument): Remove.
12238 (s390_cannot_extract_struct_value_address): Remove.
12239 (s390_use_struct_convention, s390_store_struct_return): Remove.
12240 (s390_extract_return_value, s390_store_return_value): Remove.
12241 (s390_return_value_convention, s390_return_value): New functions.
12242 (is_float_singleton): Handle typedefs.
12243 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12244 Remove, replace by ...
12245 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12246 s390_function_arg_integer): ... these new functions.
12247 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12248 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12249 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12252 set_gdbarch_deprecated_store_struct_return,
12253 set_gdbarch_deprecated_extract_return_value,
12254 set_gdbarch_deprecated_store_return_value,
12255 set_gdbarch_use_struct_convention,
12256 set_gdbarch_extract_struct_value_address,
12257 set_gdbarch_deprecated_pc_in_call_dummy,
12258 set_gdbarch_deprecated_push_arguments,
12259 set_gdbarch_deprecated_save_dummy_frame_tos,
12260 set_gdbarch_deprecated_push_return_address,
12261 set_gdbarch_deprecated_sizeof_call_dummy_words,
12262 set_gdbarch_deprecated_call_dummy_words,
12263 set_gdbarch_deprecated_dummy_write_sp.
12265 set_gdbarch_push_dummy_call,
12266 set_gdbarch_unwind_dummy_id,
12267 set_gdbarch_return_value.
12269 * config/s390/nm-linux.h: Update comments.
12270 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12271 (STOPPED_BY_WATCHPOINT): Redefine.
12272 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12273 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12274 (s390_stopped_by_watchpoint): Likewise.
12275 (watch_area_cnt): Remove.
12276 * s390-nat.c: Update comments.
12277 (watch_area): Remove typedef.
12278 Global replace watch_area by struct watch_area.
12279 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12280 (s390_stopped_by_watchpoint): Remove pid argument,
12281 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12282 (s390_fix_watch_points): Remove pid argument,
12283 use s390_inferior_tid. Recompute area spanned by watchpoints.
12284 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12285 argument. Reimplement.
12287 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12288 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12289 (FETCH_INFERIOR_REGISTERS): Define.
12290 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12292 * config/s390/s390x.mt: Remove.
12293 * config/s390/tm-s390.h: Remove.
12294 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12295 (TARGET_ELF64): Remove.
12296 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12297 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12298 s390*-*-* case; always set gdb_target to s390.
12299 * regformats/reg-s390.dat: Remove control registers.
12300 * regformats/reg-s390x.dat: Likewise.
12301 * s390-tdep.h: New file.
12302 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12303 Include "inferior.h" and "s390-tdep.h".
12304 Remove private definition of offsetof.
12305 (s390_register_u_addr): Remove.
12306 (regmap_gregset, regmap_fpregset): Define.
12307 (supply_gregset, fill_gregset): Reimplement.
12308 (supply_fpregset, fill_fpregset): Likewise.
12309 (s390_inferior_tid): New function.
12310 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12311 (fetch_inferior_registers, store_inferior_registers): Likewise.
12312 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12313 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12314 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12315 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12316 (struct gdbarch_tdep): Define.
12317 (struct s390_register_info): Define.
12318 (s390_register_info): New variable.
12319 (s390_register_name): Reimplement.
12320 (s390_register_type): New function.
12321 (s390_register_raw_size, s390x_register_raw_size): Remove.
12322 (s390_cannot_fetch_register): Remove.
12323 (s390_register_byte): Remove.
12324 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12325 (s390_dwarf_regmap): New variable.
12326 (s390_dwarf_reg_to_regnum): New function.
12327 (s390_stab_reg_to_regnum): Remove.
12328 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12329 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12330 (s390_convert_register_p): Likewise.
12331 (s390_register_to_value, s390_value_to_register): Likewise.
12332 (s390_register_reggroup_p): Likewise.
12333 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12334 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12335 (s390_supply_regset, s390_regset_from_core_section): New functions.
12336 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12337 (S390_FPR_SIZE): Likewise.
12338 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12339 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12340 (S390_NUM_GPRS): Move here from tm-s390.h.
12341 (S390_NUM_FPRS): Likewise.
12342 (s390_in_function_epilogue_p): New function.
12343 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12344 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12345 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12346 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12347 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12349 set_gdbarch_deprecated_max_register_raw_size,
12350 set_gdbarch_deprecated_max_register_virtual_size,
12351 set_gdbarch_deprecated_register_byte,
12352 set_gdbarch_cannot_fetch_register,
12353 set_gdbarch_cannot_store_register,
12354 set_gdbarch_deprecated_register_size,
12355 set_gdbarch_deprecated_register_raw_size,
12356 set_gdbarch_deprecated_register_virtual_size,
12357 set_gdbarch_deprecated_register_virtual_type,
12358 set_gdbarch_deprecated_register_bytes.
12360 set_gdbarch_num_pseudo_regs,
12361 set_gdbarch_register_type,
12362 set_gdbarch_convert_register_p,
12363 set_gdbarch_register_to_value,
12364 set_gdbarch_value_to_register,
12365 set_gdbarch_register_reggroup_p,
12366 set_gdbarch_regset_from_core_section,
12367 set_gdbarch_pseudo_register_read,
12368 set_gdbarch_pseudo_register_write,
12369 set_gdbarch_in_function_epilogue_p.
12370 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12371 (s390_tdep_h): New variable.
12373 2004-02-17 Jim Blandy <jimb@redhat.com>
12375 * findvar.c (value_from_register): If the type has no length, just
12376 return an acceptable value --- don't report an internal error.
12378 * stabsread.c (read_type): If we find any type numbers that are
12379 forward references, complain if the references aren't resolved by
12380 the time we're finished reading.
12381 (cleanup_undefined_types): Make error message more appropriate for
12384 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12386 * Makefile.in (defs_h): Remove dependency on progress_h.
12387 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12389 * main.c (captured_main): Delete use of START_PROGRESS and
12392 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12394 * objfiles.c (terminate_minimal_symbol_table): Add back
12395 initialization of MSYMBOL_TYPE.
12397 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12399 Committed by Andrew Cagney.
12400 * Makefile.in (ia64_tdep_h): New macro.
12401 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12402 (ia64-tdep.o): Likewise.
12403 * ia64-tdep.h: New file.
12404 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12405 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12406 (ia64_aix_sigcontext_register_address): Likewise.
12407 (ia64_linux_getunwind_table): Delete declaration.
12408 * ia64-linux-tdep.c: Likewise.
12410 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12412 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12413 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12414 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12416 2004-02-17 Andrew Cagney <cagney@redhat.com>
12418 * symtab.c (skip_prologue_using_sal): New function.
12419 * symtab.h (skip_prologue_using_sal): Declare.
12420 * frv-tdep.c: Include "symtab.h".
12421 (skip_prologue_using_sal): Delete function.
12422 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12423 * rs6000-tdep.c (refine_prologue_limit): Mention
12424 skip_prologue_using_sal.
12425 * ia64-tdep.c (refine_prologue_limit): Ditto.
12426 * Makefile.in: Update dependencies.
12428 2004-02-16 Andrew Cagney <cagney@redhat.com>
12430 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12431 START_INFERIOR_TRAPS_EXPECTED.
12432 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12433 START_INFERIOR_TRAPS_EXPECTED.
12434 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12436 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12437 macro, moved to "nm-osf.h". Update copyright.
12438 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12441 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12442 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12443 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12444 frameless_look_for_prologue.
12445 * frame.h (legacy_frameless_look_for_prologue): Rename
12446 frameless_look_for_prologue.
12447 * gdbarch.h, gdbarch.c: Re-generate.
12448 * sh64-tdep.c (sh64_gdbarch_init): Update.
12449 * sh-tdep.c (sh_gdbarch_init): Update.
12450 * s390-tdep.c (s390_gdbarch_init): Update.
12451 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12452 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12453 * m68k-tdep.c (m68k_gdbarch_init): Update.
12454 (delta68_frame_args_address): Update.
12455 * m32r-tdep.c (m32r_gdbarch_init): Update.
12456 * hppa-tdep.c (hppa_gdbarch_init): Update.
12457 * h8300-tdep.c (h8300_gdbarch_init): Update.
12458 * frv-tdep.c (frv_gdbarch_init): Update.
12459 (frv_frameless_function_invocation): Update.
12460 * cris-tdep.c (cris_gdbarch_init): Update.
12461 (cris_frameless_function_invocation): Update.
12462 * avr-tdep.c (avr_gdbarch_init): Update.
12463 * arm-tdep.c (arm_gdbarch_init): Update.
12464 * stack.c (frame_info): Update, call predicate.
12465 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12466 * frame.c (legacy_get_prev_frame): Update, call predicate..
12467 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12468 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12469 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12471 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12472 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12473 * vax-tdep.c (vax_gdbarch_init): Ditto.
12475 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12478 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12480 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12483 2004-02-16 Andrew Cagney <cagney@redhat.com>
12485 * tui/tui-windata.c: Include "gdb_string.h".
12486 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12487 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12488 * Makefile.in: Update dependencies.
12490 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12492 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12493 * infrun.c: Include "gdb_assert.h".
12494 (singlestep_ptid, saved_singlestep_ptid)
12495 (stepping_past_singlestep_breakpoint): New variables.
12496 (resume): Set singlestep_ptid. Check for singlestep thread
12498 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12499 (handle_inferior_event): Handle singlestep thread hop.
12501 2004-02-16 Andrew Cagney <cagney@redhat.com>
12503 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12504 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12505 (dwarf2_frame_init_reg): Ditto.
12507 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12508 suggested by Joshua Neuheisel
12510 * configure.in: Always check for curses, including pdcurses.
12511 Warn, instead of error, when no curses are found. Enable TUI when
12512 curses is available.
12513 * configure: Re-generate.
12515 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12517 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12518 sh_sh4_register_convert_to_virtual.
12519 (sh_register_convert_to_raw): Rename from
12520 sh_sh4_register_convert_to_raw.
12521 (sh_pseudo_register_read): Accomodate above name change.
12522 (sh_pseudo_register_write): Ditto.
12524 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12526 * sh-tdep.c (sh_generic_register_name): Remove.
12527 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12529 2004-02-15 Andrew Cagney <cagney@redhat.com>
12531 * configure.in (build_warnings): Add -Wunused-function.
12532 * configure: Re-generate.
12534 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12535 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12537 * procfs.c (procfs_init_inferior): Assume that
12538 START_INFERIOR_TRAPS_EXPECTED is defined.
12539 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12540 * config/ns32k/tm-nbsd.h: Delete file,
12541 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12543 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12544 * config/vax/tm-vax.h: Delete file.
12546 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12547 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12548 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12549 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12550 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12551 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12552 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12554 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12556 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12557 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12558 (struct dwarf2_frame_ops): New.
12559 (dwarf2_frame_default_init_reg): New function, based on
12560 dwarf2_frame_init_reg.
12561 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12562 (dwarf2_frame_init_reg): Call architecture-specific function.
12563 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12564 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12565 instead of dwarf2_frame_data.
12566 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12567 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12569 2004-02-15 Andrew Cagney <cagney@redhat.com>
12571 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12572 register_gdbarch_swap.
12573 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12574 * f-lang.c (_initialize_f_language): Update, use
12575 DEPRECATED_REGISTER_GDBARCH_SWAP.
12576 * remote.c (_initialize_remote): Ditto.
12577 * regcache.c (_initialize_regcache): Ditto.
12578 * parse.c (_initialize_parse): Ditto.
12579 * infrun.c (_initialize_infrun): Ditto.
12580 * mi/mi-main.c (_initialize_mi_main): Ditto.
12581 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12583 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12584 poking .cacheable directly.
12585 * symfile.c (symfile_bfd_open): Ditto.
12587 * Makefile.in: Update all dependencies.
12589 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12590 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12591 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12592 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12593 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12595 2004-02-14 Andrew Cagney <cagney@redhat.com>
12597 * arch-utils.c (legacy_convert_register_p): Check
12598 DEPRECATED_REGISTER_CONVERTIBLE_P.
12599 * findvar.c (value_of_register): Ditto.
12601 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12602 * gdbarch.h, gdbarch.c: Re-generate.
12603 * arch-utils.c (deprecated_register_convertible_not): Delete.
12604 * arch-utils.h (deprecated_register_convertible_not): Delete.
12605 * mi/mi-main.c (get_register): Update. Update copyright.
12606 * infcmd.c (default_print_registers_info): Update.
12608 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12609 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12610 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12611 * gdbarch.h, gdbarch.c: Re-generate.
12612 * frame.c (deprecated_get_next_frame_hack): Delete function.
12613 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12614 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12616 * infcall.c (call_function_by_hand): Update.
12618 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12620 * symfile.c (init_entry_point_info, entry_point_address): Move
12622 * objfiles.c (init_entry_point_info, entry_point_address):..to
12624 * symfile.h (init_entry_point_info, entry_point_address): Remove
12626 * objfiles.h (init_entry_point_info, entry_point_address):Add
12628 * cris-tdep.c: Remove include of symfile.h. Add include of
12630 * infcall.c: Ditto.
12631 * mcore-tdep.c: Ditto.
12632 * mn10300-tdep.c: Ditto.
12633 * sh64-tdep.c: Ditto.
12634 * v850-tdep.c: Ditto.
12635 * arm-tdep.c: Remove include of symfile.h.
12636 * blockframe.c: Ditto.
12637 * coffread.c: Ditto.
12638 * dbxread.c: Ditto.
12639 * dwarf2read.c: Ditto.
12640 * dwarfread.c: Ditto.
12641 * frv-tdep.c: Ditto.
12642 * ia64-tdep.c: Ditto.
12643 * mdebugread.c: Ditto.
12644 * mipsread.c: Ditto.
12645 * rs6000-tdep.c: Ditto.
12646 * s390-tdep.c: Ditto.
12647 * sh-tdep.c: Ditto.
12648 * xstormy16-tdep.c: Ditto.
12649 * gdbarch.sh: Remove include of symfile.h.
12650 * gdbarch.c: Regenerate.
12651 * solib-irix.c (enable_break): Use entry_point_address().
12652 Add comment about include file.
12653 * xcoffread.c: Add comment about include file.
12654 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12655 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12656 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12657 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12658 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12660 2004-02-13 Andrew Cagney <cagney@redhat.com>
12662 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12663 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12665 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12667 2004-02-12 Fred Fish <fnf@redhat.com>
12669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12670 set_gdbarch_store_return_value.
12672 2004-02-12 Andrew Cagney <cagney@redhat.com>
12674 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12675 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12676 (interrupt_query): Ditto.
12677 (ofunc): Delete unused variable.
12678 * cris-tdep.c (cris_abi): Delete unused function.
12679 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12680 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12681 (cris_get_asr_quick_shift_steps): Ditto.
12682 (cris_skip_prologue_frameless_p): Ditto.
12683 * arm-tdep.c (arm_push_return_address): Delete unused function.
12684 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12685 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12686 * s390-tdep.c (s390_function_start): Delete unused function.
12688 2004-02-12 Andrew Cagney <cagney@redhat.com>
12690 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12691 gdbarch.h, gdbarch.c: Re-generate.
12692 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12693 to generic_prologue_frameless_p.
12694 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12695 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12697 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12699 * mips-linux-tdep.c: Include "frame.h".
12700 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12701 (mips_linux_skip_resolver): New functions.
12702 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12703 and set_gdbarch_in_solib_call_trampoline.
12704 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12705 to after set_gdbarch_in_solib_return_trampoline. Only set the
12706 solib hooks to mips16 functions if the OS ABI is unknown.
12707 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12708 including "config/tm-linux.h".
12709 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12710 * Makefile.in (mips-linux-tdep.o): Update.
12712 2004-02-11 David Carlton <carlton@kealia.com>
12714 * linespec.c (decode_compound): Only look for a class symbol when
12715 considering all but the rightmost component.
12717 2004-02-11 Andrew Cagney <cagney@redhat.com>
12719 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12720 abi code are are separatly grouped.
12722 2004-02-11 Andrew Cagney <cagney@redhat.com>
12724 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12725 * gdbarch.h, gdbarch.c: Re-generate.
12726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12727 * v850-tdep.c (v850_gdbarch_init): Update.
12728 * sh64-tdep.c (sh64_gdbarch_init): Update.
12729 * sh-tdep.c (sh_gdbarch_init): Update.
12730 * s390-tdep.c (s390_gdbarch_init): Update.
12731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12732 * mips-tdep.c (mips_gdbarch_init): Update.
12733 * mcore-tdep.c (mcore_gdbarch_init): Update.
12734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12735 * m32r-tdep.c (m32r_gdbarch_init): Update.
12736 * ia64-tdep.c (ia64_gdbarch_init): Update.
12737 * hppa-tdep.c (hppa_gdbarch_init): Update.
12738 * h8300-tdep.c (h8300_gdbarch_init): Update.
12739 * frv-tdep.c (frv_gdbarch_init): Update.
12740 * d10v-tdep.c (d10v_gdbarch_init): Update.
12741 * cris-tdep.c (cris_gdbarch_init): Update.
12742 * avr-tdep.c (avr_gdbarch_init): Update.
12743 * arm-tdep.c (arm_gdbarch_init): Update.
12744 * alpha-tdep.c (alpha_gdbarch_init): Update.
12746 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12748 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12750 (sh_sh4al_dsp_register_name): Ditto.
12752 2004-02-10 Andrew Cagney <cagney@redhat.com>
12754 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12755 (mips_init_frame_pc_first): Delete function.
12756 (mips_frame_saved_pc): Delete function.
12757 (mips_frame_chain): Delete function.
12758 (mips_init_extra_frame_info): Delete function.
12759 (mips_xfer_register): Delete unused variable "reg".
12760 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12761 (mips_n32n64_return_value): Delete unused variable "reg".
12762 (mips_n32n64_return_value): Delete unused variable "pos".
12763 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12764 (mips_o32_return_value): Delete unused variable "pos".
12765 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12766 (mips_print_fp_register): Delete unused variable "namelen"
12767 (mips_print_fp_register): Delete unused variable "flt2"
12768 (get_frame_pointer): Delete function.
12769 (cached_proc_desc): Delete static variable.
12770 (mips_pop_frame): Delete function.
12771 (mips_find_saved_regs): Delete function.
12772 (mips_get_saved_register): Delete function.
12773 (mips_saved_pc_after_call): Delete function.
12774 (SIGFRAME_BASE): Delete macro.
12775 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12776 (SIGFRAME_PC_OFF): Delete macro.
12777 (SIGFRAME_REGSAVE_OFF): Delete macro.
12778 (mips_dump_tdep): Do not print deleted macro definitions.
12780 2004-02-10 Andrew Cagney <cagney@redhat.com>
12782 * Makefile.in (SFILES): Remove explictly listed tui files.
12783 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12785 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12787 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12788 to use paddr functions to format ia64 addresses and long values.
12789 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12790 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12791 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12792 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12793 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12795 2004-02-10 Andrew Cagney <cagney@redhat.com>
12797 * defs.h: Do not include "tui.h".
12798 * gdb_curses.h: New file.
12799 * tui/tui-hooks.h: New file.
12800 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12801 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12802 (tui_initialize_io): Delete declaration.
12803 (tui_initialize_readline: Delete redundant declaration.
12804 (struct tui_point): Delete definition.
12805 * tui/tui-data.h (struct tui_point): Define.
12806 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12807 * utils.c: Include "tui/tui.h".
12808 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12809 * printcmd.c [TUI]: Include "tui/tui.h".
12810 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12811 * tui/tui-command.c: Include "gdb_curses.h".
12812 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12813 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12814 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12815 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12816 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12817 * Makefile.in: Update all dependencies.
12818 (tui_hooks_h, gdb_curses_h): Define.
12819 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12821 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12823 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12824 auxf2. Add comments about some other rarely used fields.
12826 2004-02-10 Andrew Cagney <cagney@redhat.com>
12828 * Makefile.in (init.c): Fix script removing duplicates. Problem
12829 reported by Peter Schauer.
12831 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12833 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12834 obstack_specify_allocation.
12835 * objfiles.c (allocate_objfile): Ditto.
12836 * solib-sunos.c (solib_add_common_symbols)
12837 (allocate_rt_common_objfile): Ditto.
12838 * symfile.c (reread_symbols): Ditto.
12839 * gdb_obstack.h: Add comment.
12841 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12843 * linespec.c (decode_line_1, locate_first_half)
12844 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12845 commented out code.
12847 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12849 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12852 2004-02-09 Andrew Cagney <cagney@redhat.com>
12854 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12855 fails, try find_pc_section. Fix PR c++/1267.
12856 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12857 instead of find_pc_mapped_section.
12858 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12859 not default to the section containing PC. Fix PR symtab/1519.
12861 2004-02-09 Andrew Cagney <cagney@redhat.com>
12863 * Makefile.in (mips-tdep.o): Update dependencies.
12864 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12866 (mips_unwind_pc): Return the pseudo PC register.
12867 (mips_unwind_dummy_id): New function.
12868 (mips16_fetch_instruction): New function.
12869 (mips32_fetch_instruction): New function.
12870 (struct mips_frame_cache): Define.
12871 (mips_mdebug_frame_cache): New function.
12872 (mips_mdebug_frame_this_id): New function.
12873 (mips_mdebug_frame_prev_register): New function.
12874 (mips_mdebug_frame_unwind): Define.
12875 (mips_mdebug_frame_sniffer): New function.
12876 (mips_mdebug_frame_base_address): New function.
12877 (mips_mdebug_frame_base): Define.
12878 (mips_mdebug_frame_base_sniffer): New function.
12879 (mips_gdbarch_init): Append unwind and base sniffers. Set
12882 2004-02-08 Andrew Cagney <cagney@redhat.com>
12884 * frame.c: Print both the register number and name.
12886 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12887 and a sed into a single sed. Make .c and .o patterns more robust.
12889 (INIT_FILES): Replace OBS with COMMON_OBS.
12890 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12892 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12894 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12895 the PT_WCOOKIE request.
12897 2004-02-08 Andrew Cagney <cagney@redhat.com>
12899 * mips-tdep.c (mips_unwind_pc): New function.
12900 (mips_gdbarch_init): Set mips_unwind_pc.
12902 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12903 (get_frame_id): Allow the UNKNOWN_FRAME.
12904 (frame_register_unwind, get_frame_type): Ditto.
12906 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12907 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12908 unwind_dummy_id indicates a legacy frame.
12910 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12911 * configure: Re-generate.
12913 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12916 2004-02-08 Andrew Cagney <cagney@redhat.com>
12918 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12920 * configure: Re-generate.
12921 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12922 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12923 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12924 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12925 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12926 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12927 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12928 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12929 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12930 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12932 2004-02-07 Andrew Cagney <cagney@redhat.com>
12934 * Makefile.in: Update all dependencies.
12936 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12937 * configure: Re-generate.
12938 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12939 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12940 (COMMON_OBS): Add "main.o" and "annotate.o".
12941 (ANNOTATE_OBS): Delete.
12942 (OBS): Remove ANNOTATE_OBS.
12943 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12945 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12946 against CONFIG_OBS and "main.o".
12947 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12948 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12950 * tui/tui-command.c: Include "gdb_string.h", delete register
12951 attribute, use ISO-C function signatures.
12952 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12953 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12954 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12955 * tui/tui.c: Ditto.
12957 * tui/tui-command.c: Change variable and function names to lower
12959 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12960 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12961 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12962 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12963 * tui/tui-winsource.c, tui/tui.c: Ditto.
12965 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12967 * buildsym.c (free_pending_blocks, finish_block)
12968 (record_pending_block, make_blockvector, end_symtab): Replace
12969 symbol_obstack with objfile_obstack.
12970 * coffread.c (process_coff_symbol, coff_read_struct_type)
12971 (coff_read_enum_type): Ditto.
12972 * cp-namespace.c (initialize_namespace_symtab)
12973 (check_one_possible_namespace_symbol): Ditto.
12974 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12975 (dwarf2_symbol_mark_computed): Ditto.
12976 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12977 * elfread.c (elf_symtab_read): Ditto.
12978 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12979 (hpread_read_enum_type, hpread_read_function_type)
12980 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12982 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12983 (java_link_class_type): Ditto.
12984 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12985 (new_symbol): Ditto.
12986 * minsyms.c (install_minimal_symbols): Ditto.
12987 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12988 (terminate_minimal_symbol_table): Replace symbol_obstack with
12990 (free_objfile): Remove freeing of symbol_obstack.
12991 * objfiles.h: Remove symbol_obstack field.
12992 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12994 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12996 (solib_add_common_symbols): Replace symbol_obstack with
12998 * somsolib.c (som_solib_add): Ditto.
12999 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
13000 (common_block_start, common_block_end): Ditto.
13001 * symfile.c (reread_symbols): Remove freeing and init of
13003 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
13004 * symfile.h: Update comment.
13005 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
13007 * symtab.c (symbol_set_names): Replace symbol_obstack with
13009 * symtab.h (struct general_symbol_info, struct minimal_symbol):
13011 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
13012 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
13015 2004-02-07 Andrew Cagney <cagney@redhat.com>
13017 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
13018 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
13019 fields and variables.
13020 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
13021 (m_beInvisible): Delete macro.
13022 * tui/tui-data.h: Fix case case fields and variables.
13023 (m_genWinPtrIsNull): Delete macro.
13024 (tui_win_list): Rename winList.
13025 (TUI_SRC_WIN): Rename srcWin.
13026 (TUI_DISASM_WIN): Rename disassemWin.
13027 (TUI_DATA_WIN): Rename dataWin.
13028 (TUI_CMD_WIN): Rename cmdWin.
13029 (m_genWinPtrNotNull): Delete macro.
13030 (m_winPtrIsNull): Delete macro.
13031 (m_winPtrNotNull): Delete macro.
13032 (tui_win_is_source_type): Replace m_winIsSourceType
13033 (tui_win_is_auxillary): Replace m_winIsAuzillary.
13034 (tui_win_has_locator): Replace m_hasLocator.
13035 (tui_set_win_highlight): Replace m_setWinHighlightOn and
13036 m_setWinHighlightOff.
13037 * tui/tui-data.c: Update references.
13038 (tui_win_is_source_type, tui_set_win_highlight): New functions.
13039 (tui_win_has_locator, tui_win_is_auxillary): New functions.
13040 * tui/tui-command.c, tui/tui-disasm.c: Update references.
13041 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
13042 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
13043 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13044 * tui/tui-winsource.c, tui/tui.c: Ditto.
13046 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13048 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
13049 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
13052 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
13053 variable `i6' to `i7'.
13054 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13056 2004-02-07 Andrew Cagney <cagney@redhat.com>
13058 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
13059 (TuiPoint, TuiPointPtr): Ditto.
13060 (TuiStatus, TuiStatusPtr): Ditto.
13061 (TuiWinType, TuiWinTypePtr): Ditto.
13062 (struct tui_point): Rename _TuiPoint.
13063 (tui_get_low_disassembly_address): Rename
13064 tuiGetLowDisassemblyAddress.
13065 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
13066 (tuiFree): Delete declaration.
13067 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
13068 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
13069 * tui/tui.c (tuiFree): Delete function.
13070 * cli/cli-cmds.c (disassemble_command): Update references.
13071 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
13072 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
13073 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13074 * tui/tui-winsource.c: Ditto.
13076 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13078 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13079 coffstab_build_psymtabs, elfstab_build_psymtabs)
13080 (stabsect_build_psymtabs): Replace psymbol_obstack with
13082 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13083 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13085 * dwarfread.c (scan_compilation_units): Ditto.
13086 * elfread.c (elfstab_offset_sections): Ditto.
13087 * hppa-tdep.c (read_unwind_info): Ditto.
13088 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13089 (hpread_end_psymtab): Ditto.
13090 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13091 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13093 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13094 * objfiles.c (add_to_objfile_sections)
13095 (build_objfile_section_table): Ditto.
13096 (allocate_objfile): Remove init of psymbol_obstack.
13097 (free_objfile): Remove freeing of psymbol_obstack.
13098 * objfiles.h (struct objfile): Remove field
13099 psymbol_obstack. Update comments.
13100 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13101 psymbol_obstack with objfile_obstack.
13102 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13104 * somread.c (som_symfile_offsets, init_import_symbols)
13105 (init_export_symbols): Replace psymbol_obstack with
13107 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13108 * symfile.c (default_symfile_offsets, syms_from_objfile)
13109 (reread_symbols): Remove freeing and init of psymbol_obstack.
13110 (cashier_psymtab): Update comment.
13111 * symmisc.c (print_objfile_statistics): Don't report stats for
13113 * symtab.h (struct general_symbol_info, struct partial_symtab):
13115 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13116 (xcoff_symfile_offsets): Replace psymbol_obstack with
13119 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13121 * objfiles.h (struct objfile): Add objfile_obstack field.
13122 Remove type_obstack field.
13124 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13125 read_structure_scope read_enumeration, new_symbol): Replace
13126 type_obstack with objfile_obstack.
13127 * dwarfread.c (struct_type, enum_type): Ditto.
13128 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13129 (lookup_fundamental_type): Ditto.
13130 * gdbtypes.h (TYPE_ALLOC): Ditto.
13131 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13132 (hpread_read_doc_function_type, hpread_read_struct_type)
13133 (fix_static_member_physnames, hpread_read_array_type)
13134 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13135 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13136 (java_link_class_type): Ditto.
13137 * mdebugread.c (parse_type): Ditto.
13138 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13139 * solib-sunos.c (solib_add_common_symbols): Ditto.
13140 * stabsread.c (define_symbol, read_type, read_member_functions,
13141 read_cpp_abbrev, read_one_struct_field): Ditto.
13142 * symfile.c (reread_symbols): Ditto.
13143 * symmisc.c (print_objfile_statistics): Ditto.
13145 2004-02-07 Andrew Cagney <cagney@redhat.com>
13147 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13148 (tui_exec_info_content): Rename TuiExecInfoContent.
13149 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13150 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13151 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13152 (TuiList, TuiListPtr): Ditto.
13153 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13154 (TuiDataType, TuiDataTypePtr): Ditto.
13155 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13156 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13157 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13158 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13159 (TuiDataElement, TuiDataElementPtr): Ditto.
13160 (TuiWinElement, TuiWinElementPtr): Ditto.
13161 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13162 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13163 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13164 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13165 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13166 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13167 * tui/tui-command.c, tui/tui-data.c: Update references.
13168 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13169 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13170 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13171 * tui/tui-winsource.c, tui/tui.c: Ditto.
13173 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13175 * dwarf2-frame.h: Update copyright.
13176 (enum dwarf2_frame_reg_rule): New.
13177 (struct dwarf2_frame_state_reg): New.
13178 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13179 * dwarf2-frame.c: Update copyright.
13180 (enum dwarf2_reg_rule): Remove.
13181 (struct dwarf2_frame_state): Remove defenition of `struct
13182 dwarf2_frame_state_reg'.
13183 (read_reg): Call get_frame_arch to get the architecture instead of
13184 using CURRENT_GDBARCH.
13185 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13187 (dwarf2_frame_init_reg): New function.
13188 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13189 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13190 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13191 tags with DWARF2_FRAME_.
13192 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13193 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13194 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13196 2004-02-06 Andrew Cagney <cagney@redhat.com>
13198 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13199 (enum tui_data_type): Rename _TuiDataType.
13200 (struct tui_layout_def): Rename _TuiLayoutDef.
13201 (struct tui_source_element): Rename _TuiSourceElement.
13202 (struct tui_data_element): Rename _TuiDataElement.
13203 (struct tui_command_element): Rename _TuiCommandElement.
13204 (struct tui_locator_element): Rename _TuiLocatorElement.
13205 (union tui_which_element): Define.
13206 (struct tui_win_element): Rename _TuiWinElement.
13207 (struct tui_data_info): Rename _TuiDataInfo.
13208 (struct tui_source_info): Rename _TuiSourceInfo.
13209 (struct tui_command_info): Rename _TuiCommandInfo.
13210 (tui_initialize_static_data): Rename initializeStaticData.
13211 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13212 (tui_alloc_win_info): Rename allocWinInfo.
13213 (tui_init_generic_part): Rename initGenericPart.
13214 (tui_init_win_info): Rename initWinInfo.
13215 (tui_alloc_content): Rename allocContent.
13216 (tui_add_content_elements): Rename addContentElements.
13217 (tui_init_content_element): Rename initContentElement.
13218 (tui_free_window): Rename freeWindow.
13219 (tui_free_win_content): Rename freeWinContent.
13220 (tui_free_data_content): Rename freeDataContent.
13221 (tui_free_all_source_wins_content): Rename
13222 freeAllSourceWinsContent.
13223 (tui_del_window): Rename tuiDelWindow.
13224 (tui_del_data_windows): Rename tuiDelDataWindows.
13225 (tui_partial_win_by_name): Rename partialWinByName.
13226 (tui_win_name): Rename winName.
13227 (tui_current_layout): Rename currentLayout.
13228 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13229 (tui_term_height): Rename termHeight.
13230 (tui_set_term_height_to): Rename setTermHeightTo.
13231 (tui_term_width): Rename termWidth.
13232 (tui_set_term_width_to): Rename setTermWidthTo.
13233 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13234 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13235 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13236 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13237 (tui_source_windows): Rename sourceWindows.
13238 (tui_clear_source_windows): Rename clearSourceWindows.
13239 (tui_clear_source_windows_detail): Rename
13240 clearSourceWindowsDetail.
13241 (tui_clear_win_detail): Rename clearWinDetail.
13242 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13243 (tui_default_tab_len): Rename tuiDefaultTabLen.
13244 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13245 (tui_win_with_focus): Rename tuiWinWithFocus.
13246 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13247 (tui_layout_def): Rename tuiLayoutDef.
13248 (tui_win_resized): Rename tuiWinResized.
13249 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13250 (tui_next_win): Rename tuiNextWin.
13251 (tui_prev_win): Rename tuiPrevWin.
13252 (tui_add_to_source_windows): Rename addToSourceWindows.
13253 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13254 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13255 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13256 * tui/tui.c, tui/tui-data.c: Ditto.
13257 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13258 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13260 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13261 (struct symtab): Declare.
13262 (tui_set_source_content): Rename tuiSetSourceContent.
13263 (tui_show_symtab_source): Rename tuiShowSource.
13264 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13265 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13266 * tui/tui-source.c: Update copyright. Update references.
13267 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13268 * tui/tui-stack.c: Update references.
13270 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13271 (struct tui_win_info): Declare.
13272 (tui_scroll_forward): Rename tuiScrollForward.
13273 (tui_scroll_backward): Rename tuiScrollBackward.
13274 (tui_scroll_left): Rename tuiScrollLeft.
13275 (tui_scroll_right): Rename tuiScrollRight.
13276 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13277 (tui_resize_all): Rename tuiResizeAll.
13278 (tui_refresh_all_win): Rename tuiRefreshAll.
13279 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13280 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13281 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13282 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13284 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13285 (tui_erase_data_content): Rename tuiEraseDataContent.
13286 (tui_display_all_data): Rename tuiDisplayAllData.
13287 (tui_check_data_values): Rename tuiCheckDataValues.
13288 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13289 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13290 (tui_first_data_element_no_in_line): Rename
13291 tuiFirstDataElementNoInLine.
13292 (tui_delete_data_content_windows): Rename
13293 tuiDeleteDataContentWindows.
13294 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13295 (tui_display_data_from): Rename tuiDisplayDataFrom.
13296 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13297 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13298 * tui/tui-win.c, tui/tui-regs.c: Update references.
13299 * tui/tui-layout.c, tui/tui.c: Update references.
13301 * tui/tui-wingeneral.h: Update copyright.
13302 (m_allBeVisible): Delete macro.
13303 (m_allBeInvisible): Delete macro.
13304 (struct tui_gen_win_info): Declare.
13305 (struct tui_win_info): Declare.
13306 (tui_unhighlight_win): Rename unhighlightWin.
13307 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13308 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13309 (tui_make_window): Rename makeWindow.
13310 (tui_copy_win): Rename copyWin.
13311 (tui_box_win): Rename boxWin.
13312 (tui_highlight_win): Rename highlightWin.
13313 (tui_check_and_display_highlight_if_needed): Rename
13314 checkAndDisplayHighlightIfNeeded.
13315 (tui_refresh_all): Rename refreshAll.
13316 (tui_delete_win): Rename tuiDelwin.
13317 (tui_refresh_win): Rename tuiRefreshWin.
13318 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13319 (tui_make_visible, tui_make_invisible): New functions.
13320 (tui_make_all_visible, tui_make_all_invisible): New functions.
13321 (make_all_visible): Rename makeAllVisible.
13322 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13323 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13324 * tui/tui-windata.c, tui/tui-win.c: Update references.
13325 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13326 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13328 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13330 * proc-api.c (write_with_trace): Initialize local variable to
13331 silence compiler warning.
13333 2004-02-06 Andrew Cagney <cagney@redhat.com>
13335 * tui/tui-source.h: Do not include "defs.h".
13336 (struct tui_win_info): Declare.
13337 (tui_set_source_content_nil): Declare.
13338 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13339 (union tui_line_or_address): Rename _TuiLineOrAddress.
13340 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13341 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13342 (tui_update_source_window_as_is): Rename
13343 tuiUpdateSourceWindowAsIs.
13344 (tui_update_source_windows_with_addr): Rename
13345 tuiUpdateSourceWindowsWithAddr.
13346 (tui_update_source_windows_with_line): Rename
13347 tuiUpdateSourceWindowsWithLine.
13348 (tui_clear_source_content): Rename tuiClearSourceContent.
13349 (tui_erase_source_content): Rename tuiEraseSourceContent.
13350 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13351 (tui_show_source_content): Rename tuiShowSourceContent.
13352 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13353 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13354 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13355 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13356 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13357 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13358 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13359 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13360 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13361 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13362 (struct tui_win_info): Declare.
13363 * tui/tui-stack.c: Update references.
13364 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13365 * tui/tui-win.c, tui/tui-source.c: Ditto.
13366 * tui/tui.c, tui/tui-disasm.c: Ditto.
13368 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13370 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13371 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13373 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13375 * infrun.c (handle_inferior_event): Allow for breakpoint
13376 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13377 and SIGEMT. Update comments.
13378 * NEWS (Revised SPARC target): Mention support for non-executable
13381 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13383 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13384 * inftarg.c: Update copyright year.
13385 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13386 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13387 (sparc_xfer_wcookie): New function.
13388 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13389 * Makefile.in (sparc-nat.o): Update dependencies.
13390 * config/sparc/nm-nbsd.h: Include "target.h".
13391 (NATIVE_XFER_WCOOKIE): New define.
13392 (sparc_xfer_wcookie): New prototype.
13394 2004-02-04 Andrew Cagney <cagney@redhat.com>
13396 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13397 SYSCALL_TRAP function.
13398 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13400 2004-02-04 Andrew Cagney <cagney@redhat.com>
13401 Daniel Jacobowitz <drow@mvista.com>
13403 * objfiles.h: Delete comments refering to inside_entry_func and
13404 DEPRECATED_FRAME_CHAIN_VALID.
13405 * defs.h (inside_entry_func): Update prototype..
13406 * blockframe.c (inside_entry_func): Rename to
13407 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13408 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13410 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13412 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13413 outside of #ifdef SOLIB_ADD region.
13414 (do_restore_lang_radix_cleanup): Ditto.
13415 (resolve_pending_breakpoint): Ditto.
13417 2004-02-03 Andrew Cagney <cagney@redhat.com>
13419 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13420 (process_note_abi_tag_sections): Delete unused function.
13421 (ia64_read_fp): Delete unused function.
13422 (gdbarch_extract_struct_value_address): Delete declaration.
13424 2004-02-02 Andrew Cagney <cagney@redhat.com>
13426 * vax-tdep.c (vax_frame_chain): Delete call to
13427 deprecated_inside_entry_file.
13428 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13430 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13432 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13433 column that's "empty" or "same value" when eliminating REG_RA
13436 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13438 * NEWS: Add information about new pending breakpoint support.
13440 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13442 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13443 and pending fields for pending breakpoint support.
13444 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13445 (condition_command): Only parse condition if not a pending
13447 (print_one_breakpoint): Add support for pending breakpoints.
13448 (describe_other_breakpoints): Add checks to verify we are not
13449 dealing with pending breakpoints.
13450 (check_duplicates): Don't check pending breakpoints.
13451 (set_raw_breakpoint): Initialize pending flag.
13452 (do_restore_lang_radix_cleanup): New cleanup routine.
13453 (resolve_pending_breakpoint): New function.
13454 (re_enable_breakpoints_in_shlibs): Try and resolve any
13455 pending breakpoints via resolve_pending_breakpoint.
13456 (mention): Add pending breakpoint support.
13457 (parse_breakpoint_sals): Add new parameter to pass to
13458 decode_line_1 to indicate silent errors when files or functions
13459 are not found. Change all callers.
13460 (do_captured_parse_breakpoint): New function.
13461 (break_command_1): Change prototype to return an rc value and to
13462 take an optional pending breakpoint pointer. Support creating
13463 a pending breakpoint if a "not found" form of error occurs when
13464 parsing the breakpoint. Also support resolving an existing pending
13465 breakpoint and be silent if the resolution fails.
13466 (create_breakpoints): Change prototype to take pending breakpoint
13467 pointer. When resolving a pending breakpoint, use the new pointer
13468 to provide a conditional or commands added by the end-user.
13469 (delete_breakpoint): Add appropriate check for pending.
13470 (breakpoint_re_set_one): Ditto.
13471 (do_enable_breakpoint): Ditto.
13473 2004-02-02 David Carlton <carlton@kealia.com>
13475 * valops.c (enum oload_classification): New.
13476 (find_overload_match): Break implementation into separate
13477 functions; delete #if 0'd code; look for symbols within
13479 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13480 (find_oload_champ,oload_method_static,classify_oload_match): New.
13481 * cp-support.h: Add declaration for cp_func_name; update
13482 declaration for make_symbol_overload_list.
13483 * cp-support.c (cp_func_name): New.
13484 (overload_list_add_symbol): Fix comment, use
13485 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13486 (make_symbol_overload_list): Take a function name and a namespace
13487 instead of a symbol; change implementation.
13488 (make_symbol_overload_list_using): New.
13489 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13491 2004-02-02 Fred Fish <fnf@redhat.com>
13493 * main.c (gdb_stdtarg): Move definition to group with other
13494 gdb_stdtarg definitions and update copyright years.
13495 * remote-sim.c (gdb_os_write_stderr): Write output to
13496 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13497 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13498 gdb_stderr stream and update copyright years.
13500 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13502 * Makefile.in (mips-linux-nat.o): Update dependencies.
13503 * mips-linux-nat.c: Include mips-tdep.h.
13505 2004-02-01 Roland McGrath <roland@redhat.com>
13507 * sol-thread.c (sol_thread_xfer_partial): New function.
13508 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13509 (init_sol_core_ops): Likewise.
13511 * procfs.c (procfs_xfer_partial): New function.
13512 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13513 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13515 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13516 procfs_xfer_auxv function.
13518 * procfs.c (procfs_make_note_section): If we can read
13519 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13520 * linux-proc.c (linux_make_note_section): Likewise.
13522 * auxv.h: New file.
13523 * auxv.c: New file.
13524 * Makefile.in (auxv_h): New variable.
13525 (COMMON_OBS): Add auxv.o here.
13526 (auxv.o): New target.
13528 * corelow.c (core_xfer_partial): New function.
13529 (init_core_ops): Use it for core_ops.to_xfer_partial.
13531 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13532 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13533 macro if that is defined.
13535 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13537 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13538 and check the specified thread for each breakpoint.
13539 * breakpoint.h (bpstat_stop_status): Update prototype.
13540 * infrun.c (handle_inferior_event): Update calls to
13541 bpstat_stop_status.
13543 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13545 * Makefile.in (cli-cmds.o): Add $(readline_h).
13547 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13549 * cli/cli-cmds.c: Include readline.h.
13550 (complete_command): Pass the start of the last word to
13553 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13555 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13556 argument, and change first argument to a CORE_ADDR.
13557 * breakpoint.h (bpstat_stop_status): Update prototype.
13558 * infrun.c (adjust_pc_after_break): Add a new comment.
13559 (handle_inferior_event): Update calls to bpstat_stop_status.
13561 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13563 * breakpoint.h: Update copyright years.
13565 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13567 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13568 (bpstat_stop_status): Don't decrement PC.
13569 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13571 * infrun.c (adjust_pc_after_break): New function.
13572 (handle_inferior_event): Call it, early. Remove later references
13573 to DECR_PC_AFTER_BREAK.
13574 (normal_stop): Add commentary.
13576 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13578 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13579 2004-01-27 double-free fix.
13581 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13583 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13584 (sparc32_frame_prev_register): Handle StackGhost.
13585 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13587 2004-01-29 Roland McGrath <roland@redhat.com>
13589 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13590 * configure: Regenerated.
13592 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13593 * Makefile.in (procfs.o): Add dep.
13595 2004-01-28 Andrew Cagney <cagney@redhat.com>
13597 * tui/tui-stack.h: Update copyright.
13598 (struct frame_info): Add opaque declaration.
13599 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13600 (tui_show_locator_content): Rename tuiShowLocatorContent.
13601 (tui_show_frame_info): Rename tuiShowFrameInfo.
13602 * tui/tui-stack.c: Update copyright. Update references.
13603 * tui/tui-winsource.c: Update references.
13604 * tui/tui-win.c: Update references.
13605 * tui/tui-layout.c: Update references.
13606 * tui/tui-hooks.c: Update copyright, update references.
13607 * tui/tui.c: Update copyright, update references.
13608 * tui/tui-disasm.c: Update references.
13610 2004-01-28 David Carlton <carlton@kealia.com>
13612 * dwarf2read.c (add_partial_structure): Use demangled name if
13613 namespace equals "".
13615 2004-01-27 Jim Blandy <jimb@redhat.com>
13617 Clean up misapplied patch:
13618 * dwarf2read.c (determine_prefix): Change one of the two forward
13619 declarations for 'determine_prefix_aux' to a declaration for this.
13620 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13621 argument to 'die_specification'.
13623 * dwarf2read.c (read_func_scope): Re-indent comment.
13625 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13627 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13628 b->exp to NULL after freeing so that error during re-parsing or
13629 evaluation of expressions associated with breakpoint don't
13630 eventually lead to re-freeing of storage.
13631 Committed by Andrew Cagney.
13633 2004-01-27 Andrew Cagney <cagney@redhat.com>
13635 * source.c (ambiguous_line_spec): Delete undefined declaration.
13636 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13637 (m32r_set_server_address, m32r_set_download_path): Ditto.
13638 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13640 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13642 * dwarf2read.c: Update calls to changed and renamed functions, and
13643 references to moved variables.
13645 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13646 language, language_defn, list_in_scope, and ftypes members.
13647 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13648 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13649 (baseaddr): Remove globals.
13651 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13652 (set_cu_language, die_is_declaration, die_specification)
13653 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13654 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13655 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13656 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13658 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13659 cu.list_in_scope. Don't initialize cu_header_offset.
13660 (add_partial_symbol): Add local baseaddr.
13661 (psymtab_to_symtab_1): Add local baseaddr. Use
13662 objfile->section_offsets for consistency. Don't initialize
13663 cu_header_offset; do initialize cu.header.offset and
13665 (read_file_scope, read_func_scope, read_lexical_block_scope)
13666 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13668 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13670 * PROBLEMS: Add gdb/1516.
13672 2003-12-29 Robert Millan <robertmh@gnu.org>
13674 Patch committed by Andrw Cagney.
13675 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13676 * configure.tgt: Match knetbsd*-gnu.
13678 2004-01-26 Andrew Cagney <cagney@redhat.com>
13680 * breakpoint.c (catch_command_1): Delete #ifdef code.
13681 (catch_fork_command_1): Delete #ifdef wrapper.
13682 (catch_exec_command_1): Ditto.
13683 (catch_load_command_1): Ditto.
13684 (catch_unload_command_1): Ditto.
13686 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13687 (catch_breakpoint): Delete #if0ed function.
13688 (disable_catch_breakpoint): Ditto.
13689 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13690 (disable_catch, enable_catch, delete_catch): Ditto.
13692 2004-01-26 Andrew Cagney <cagney@redhat.com>
13694 * remote.c (echo_check, quit_flag): Delete variables.
13695 (cisco_kernel_mode): Delete variable.
13696 (minitelnet_return, tty_input, escape_count): Delete variables.
13697 (remote_cisco_mode): Delete variable.
13698 (remote_cisco_open, remote_cisco_close): Delete function.
13699 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13700 (init_remote_cisco_ops): Delete function.
13701 (_initialize_remote): Do not install "remote cisco" code.
13702 (read_frame): Delete cisco specific code.
13703 (remote_info_process): Delete function.
13704 (remote_wait): Delete cisco specific code.
13705 (remote_cisco_section_offsets): Delete function.
13706 (remote_cisco_objfile_relocate): Delete function.
13707 (remote_async_wait): Delete cisco specific code.
13708 (minitelnet, readtty, readsocket): Delete function.
13710 2004-01-26 Andrew Cagney <cagney@redhat.com>
13712 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13713 comments mentioning extract_returned_value_address.
13714 * infcmd.c (print_return_value): Update. Add comments on
13715 extract_returned_value_address.
13716 * stack.c (return_command): Add comments on
13717 extract_returned_value_address.
13718 * values.c: Update comment.
13719 * m32r-tdep.c: Update comment.
13720 * sparc-tdep.c: Update comment.
13721 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13723 * sh64-tdep.c (sh64_gdbarch_init): Update.
13724 * sh-tdep.c (sh_gdbarch_init): Update.
13725 * s390-tdep.c (s390_gdbarch_init): Update.
13726 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13727 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13728 * m68k-tdep.c (m68k_gdbarch_init): Update.
13729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13730 * m32r-tdep.c (m32r_gdbarch_init): Update.
13731 * ia64-tdep.c (ia64_gdbarch_init): Update.
13732 * h8300-tdep.c (h8300_gdbarch_init): Update.
13733 * frv-tdep.c (frv_gdbarch_init): Update.
13734 * arm-tdep.c (arm_gdbarch_init): Update.
13735 * alpha-tdep.c (alpha_gdbarch_init): Update.
13737 2004-01-26 Andrew Cagney <cagney@redhat.com>
13739 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13740 SYMBOL_LOCATION_FUNCS
13741 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13742 "struct symbol_ops".
13743 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13744 type to "struct symbol_ops".
13745 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13746 (struct symbol): Replace ".aux_value.loc.funcs" and
13747 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13748 (SYMBOL_OBJFILE): Delete macro.
13749 (SYMBOL_LOCATION_FUNCS): Delete macro.
13750 (SYMBOL_LOCATION_BATON): Update.
13751 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13752 intead of SYMBOL_LOCATION_FUNCS.
13753 * ax-gdb.c (gen_var_ref): Ditto.
13754 * printcmd.c (address_info): Ditto.
13755 * findvar.c (read_var_value): Ditto.
13756 (symbol_read_needs_frame): Ditto.
13758 2004-01-26 Andrew Cagney <cagney@redhat.com>
13760 * dwarf2read.c (read_func_scope): Document frame-base hack.
13762 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13764 * infcmd.c (print_return_value): Plug memory leak; delete
13765 ui_stream object. Rename argument `structure_return' to
13768 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13770 * infcmd.c (print_return_value): Wrap long lines.
13771 (finish_command_continuation, finish_command): Remove unused
13772 variable `funcaddr'. Fix some coding-standards problems.
13774 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13775 SECT_SIZE is large enough, not whether it's exactly the right size.
13776 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13777 TDEP->fpregset to zero.
13779 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13780 floating-point registers for traditional NetBSD core files.
13781 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13782 TDEP->sizeof_fpregset here.
13784 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13786 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13787 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13788 function with code split out from
13789 sparc32nbsd_sigcontext_frame_cache.
13790 (sparc32nbsd_sigcontext_frame_cache): Use
13791 sparc32nbsd_sigcontext_saved_regs.
13792 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13794 * sparcobsd-tdep.c: New file.
13795 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13796 (sparcobsd-tdep.o): New dependency.
13797 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13798 * config/sparc/obsd.mt: New file.
13800 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13801 TDEP->fpregset to be initialized to enable core file register
13804 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13806 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13807 Add opaque declarations.
13808 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13809 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13810 function with code split out from
13811 sparc64nbsd_sigcontext_frame_cache.
13812 (sparc64nbsd_sigcontext_frame_cache): Use
13813 sparc64nbsd_sigcontext_saved_regs.
13814 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13816 * sparc64obsd-tdep.c: New file.
13817 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13818 (sparc64obsd-tdep.o): New dependency.
13819 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13820 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13821 * config/sparc/obsd64.mt: New file.
13823 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13824 read the instruction at PC.
13826 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13827 value of GDB_OSABI_DEFAULT.
13828 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13829 instead of GDB_OSABI_NETBSD_AOUT.
13831 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13833 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13836 2004-01-23 Andrew Cagney <cagney@redhat.com>
13838 * printcmd.c (display_command): Replace tui_set_display call with
13839 tui_set_layout_for_display_command.
13840 * tui/tui.h (enum tui_win_type): Define.
13841 (tui_set_layout): Delete declaration.
13842 (tui_set_layout_for_display_command): Rename set_tui_layout.
13843 * tui/tui-data.h (enum tui_layout_type): Define.
13844 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13846 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13847 (tui_default_win_height): Rename tuiDefaultWinHeight.
13848 (tui_default_win_viewport_height): Rename
13849 tuiDefaultWinViewportHeight.
13850 (tui_set_layout): RenametuiSetLayout.
13851 * tui/tui-layout.c: Update references.
13852 * tui/tui.c: Update references.
13853 * tui/tui-disasm.c: Update references.
13855 2004-01-23 David Carlton <carlton@kealia.com>
13857 Partial workaround for PR c++/1511:
13858 * cp-namespace.c: Include frame.h.
13859 (cp_lookup_transparent_type): New
13860 (cp_lookup_transparent_type_loop): New.
13861 * cp-support.h: Declare cp_lookup_transparent_type.
13862 * symtab.c (basic_lookup_transparent_type): Renamed from
13863 lookup_transparent_type.
13864 (lookup_transparent_type): Replace old body by a call to
13865 current_language->la_lookup_transparent_type.
13866 * symtab.h: Update copyright. Declare
13867 basic_lookup_transparent_type.
13868 * language.h: Update copyright.
13869 (struct language_defn): Add la_lookup_transparent_type.
13870 * language.c: Update copyright.
13871 (unknown_language_defn): Add basic_lookup_transparent_type.
13872 (auto_language_defn): Add basic_lookup_transparent_type.
13873 (local_language_defn): Add basic_lookup_transparent_type.
13874 * ada-lang.c: Update copyright.
13875 (ada_language_defn): Add basic_lookup_transparent_type.
13876 * c-lang.c: Update copyright.
13877 (c_language_defn): Add basic_lookup_transparent_type.
13878 (cplus_language_defn): Add basic_lookup_transparent_type.
13879 (asm_language_defn): Add basic_lookup_transparent_type.
13880 (minimal_language_defn): Add basic_lookup_transparent_type.
13881 * f-lang.c: Update copyright.
13882 (f_language_defn): Add basic_lookup_transparent_type.
13883 * jv-lang.c: Update copyright.
13884 (java_language_defn): Add basic_lookup_transparent_type.
13885 * m2-lang.c: Update copyright.
13886 (m2_language_defn): Add basic_lookup_transparent_type.
13887 * objc-lang.c: Update copyright.
13888 (objc_language_defn): Add basic_lookup_transparent_type.
13889 * p-lang.c: Update copyright.
13890 (p_language_defn): Add basic_lookup_transparent_type.
13891 * scm-lang.c: Update copyright.
13892 (scm_language_defn): Add basic_lookup_transparent_type.
13893 * Makefile.in (cp-namespace.o): Depend on frame.h.
13895 2004-01-23 David Carlton <carlton@kealia.com>
13897 Patch for PR c++/1520:
13898 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13899 properly if we have a specification die.
13900 (determine_prefix_aux): Rename from determine_prefix.
13901 (determine_prefix): Like the old determine_prefix, but never
13904 2004-01-23 Theodore A. Roth <troth@openavr.org>
13906 * avr-tdep.c: Update copyright.
13907 (avr_iaddr_p): Delete unused function.
13908 (avr_saddr_p): Delete unused function.
13910 2004-01-23 David Carlton <carlton@kealia.com>
13912 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13913 Fix for PR symtab/1534.
13915 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13917 * NEWS (New native configurations): Mention OpenBSD/sparc and
13919 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13920 * configure.host: Likewise.
13921 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13922 handler for OpenBSD.
13923 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13925 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13927 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13928 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13930 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13931 * cli/cli-cmds.c (shell_escape): Likewise.
13933 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13934 OpenBSD .note.openbsd.ident sections.
13936 2004-01-22 David Carlton <carlton@kealia.com>
13938 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13939 get_scope_pc_bounds.
13940 (read_file_scope): Ditto.
13941 (get_scope_pc_bounds): New function, produced by extracting code
13942 from the above two functions, consolidating it, and adding support
13943 for DW_TAG_namespace.
13945 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13947 * osabi.c (MAX_NOTESZ): New define.
13948 (check_note): New function.
13949 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13952 2004-01-21 Roland McGrath <roland@redhat.com>
13954 * MAINTAINERS (write after approval): Add myself.
13956 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13958 * utils.c (init_page_info): Move declarations of `rows' and
13959 `cols' before the __GO32__-specific code. Move the closing brace
13960 outside the #ifdef __GO32__..#endif block.
13961 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13963 2004-01-21 Paul Brook <paul@codesourcery.com>
13965 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13966 BPSTAT_WHAT_CHECK_SHLIBS.
13968 2004-01-21 Paul Brook <paul@codesourcery.com>
13970 * MAINTAINERS: Add myself to write-after-approval.
13972 2004-01-20 Andrew Cagney <cagney@redhat.com>
13974 * ax-gdb.c (print_axs_value): Delete unused function.
13975 * jv-lang.c (java_lookup_type): Delete unused function.
13976 * cli/cli-dump.c (dump_filetype): Delete unused function.
13977 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13978 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13979 (mips_getstring): Delete unused function.
13980 (pmon_insert_breakpoint): Delete #if0ed function.
13981 (PMON_MAX_BP): Delete #if0ed MACRO.
13982 (mips_pmon_bp_info): Delete #if0ed variable.
13983 (pmon_remove_breakpoint): Delete #if0ed function.
13984 * monitor.c (monitor_write_even_block): Delete unused function.
13985 (monitor_write_memory_block): Delete #if0ed code.
13986 * dink32-rom.c (dink32_load): Delete unused function.
13987 (_initialize_dink32_rom): Delete #if0ed code.
13988 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13990 * tui/tui-command.c: Update references.
13991 * tui/tui-io.c: Update references.
13992 * tui/tui-command.h: Update copyright.
13993 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13995 * source.c (ambiguous_line_spec): Delete never-defined function.
13996 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13997 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13998 * cli/cli-cmds.c (validate_comname): Ditto.
14000 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
14002 (tui_set_disassem_content): Rename tuiSetDisassemContent.
14003 (tui_show_disassem): Rename tuiShowDisassem.
14004 (tui_show_disassem_and_update_source): Rename
14005 tuiVerticalDisassemScroll.
14006 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
14007 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
14008 * tui/tui.h: Update copyright.
14009 (enum tui_status): Define.
14010 * tui/tui-data.h (enum tui_scroll_direction): Define.
14011 * tui/tui-disasm.c: Update copyright. Update references.
14012 * tui/tui-winsource.c: Update copyright. Update references.
14013 * tui/tui-win.c: Update references.
14014 * tui/tui-layout.c: Update references.
14016 2004-01-20 Andrew Cagney <cagney@redhat.com>
14018 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
14019 sym2 to start of block.
14021 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
14023 * MAINTAINERS: Delete mmalloc.
14024 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
14025 * NEWS: Mention removal of --with-malloc.
14026 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
14027 * config.in: Regenerate.
14028 * configure: Regenerate.
14029 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
14030 USE_MMALLOC, MMCHECK_FORCE.
14031 * gdbinit.in: Remove mmalloc.
14032 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
14033 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
14034 * config/i386/go32.mh: Likewise.
14035 * config/i386/interix.mh: Likewise.
14036 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
14038 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
14040 * linespec.c (decode_variable, symtab_from_filename): Call
14041 error_silent with error message instead of throwing an exception
14043 * defs.h (error_silent, error_output_message): Add prototypes.
14044 (catch_exceptions_with_msg): Ditto.
14045 * utils.c (error_silent, error_output_message): New functions.
14046 * top.c (catch_exceptions_with_msg): New function.
14048 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
14050 * mi/mi-cmds.h (enum print_values): Add definition.
14052 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
14053 type and value for simple data types and just the name and type
14054 for complex ones, if required.
14056 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
14057 children, if required.
14059 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14061 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
14062 unused declarations.
14064 2004-01-19 Andrew Cagney <cagney@redhat.com>
14066 * top.h (mapped_symbol_files): Delete declaration.
14067 * main.c (captured_main): Delete option "m" and "mapped".
14068 * objfiles.c (mapped_symbol_files): Delete variable.
14069 * symfile.c (symbol_file_command): Delete mmap code.
14070 (symbol_file_add_with_addrs_or_offsets): Ditto.
14071 (add_symbol_file_command, reread_separate_symbols): Ditto.
14072 * objfiles.h (OBJF_MAPPED): Delete.
14073 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14074 (free_objfile) [USE_MMALLOC]: Ditto.
14075 (open_existing_mapped_file): Delete function.
14076 (open_mapped_file): Delete function.
14077 (map_to_file): Delete function.
14079 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14081 * infrun.c (step_into_function): Account for possible breakpoint
14082 adjustment when computing ``stop_func_start''.
14084 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14086 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14087 the region size against the size of a pointer, not the size of
14088 a register as given by DEPRECATED_REGISTER_SIZE.
14090 2004-01-19 Andrew Cagney <cagney@redhat.com>
14092 * tui/tui-regs.h: Include "tui-data.h".
14093 (tuiFirstRegElementNoInLine): Delete declaration.
14094 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14095 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14096 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14097 (tui_calculate_regs_column_count): Rename
14098 tuiCalculateRegsColumnCount.
14099 (tui_check_register_values): Rename tuiCheckRegisterValues.
14100 (tui_show_registers): Rename tuiShowRegisters.
14101 (tui_display_registers_from_line): Rename
14102 tuiDisplayRegistersFromLine.
14103 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14104 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14105 (tui_first_reg_element_no_inline): Rename
14106 tuiFirstRegElementNoInLine.
14107 * tui/tui-data.h: Update copyright.
14108 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14109 * tui/tui-windata.c: Update copyright, update references.
14110 * tui/tui-regs.c: Update copyright, update references.
14111 * tui/tui-win.c: Update copyright, update references.
14112 * tui/tui-layout.c: Update copyright, update references.
14114 2004-01-18 Andrew Cagney <cagney@redhat.com>
14116 * tui/tui-io.c: Update copyright.
14117 (key_is_end_sequence, key_is_backspace): New functions.
14118 (key_is_command_char, key_is_start_sequence): New function.
14119 (tui_getc): Update references.
14120 * tui/tui-io.h: Update copyright.
14121 (m_tuiStartNewLine): Delete macro.
14122 (m_isBackspace, m_isDeleteChar): Delete macros.
14123 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14124 (m_isNextPage, m_isPrevPage): Delete macros.
14125 (m_isLeftArrow, m_isRightArrow): Delete macros.
14126 (m_isXdbStyleCommandChar): Delete macro.
14127 (key_is_start_sequence): Declare, replace m_isStartSequence.
14128 (key_is_end_sequence): Declare, replace m_isEndSequence.
14129 (key_is_backspace): Declare ,replace m_isBackspace.
14130 (key_is_command_char): Declare, replace m_isCommandChar.
14131 * tui/tui-command.c: Update copyright.
14132 (tuiDispatchCtrlChar): Update references.
14134 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14137 * tui/tui-command.c: Rename tui/tuiCommand.c.
14138 * tui/tui-command.h: Rename tui/tuiCommand.h.
14139 * tui/tui-data.c: Rename tui/tuiData.c.
14140 * tui/tui-data.h: Rename tui/tuiData.h.
14141 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14142 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14143 * tui/tui-io.c: Rename tui/tuiIO.c.
14144 * tui/tui-io.h: Rename tui/tuiIO.h.
14145 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14146 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14147 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14148 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14149 * tui/tui-source.c: Rename tui/tuiSource.c.
14150 * tui/tui-source.h: Rename tui/tuiSource.h.
14151 * tui/tui-stack.c: Rename tui/tuiStack.c.
14152 * tui/tui-stack.h: Rename tui/tuiStack.h.
14153 * tui/tui-win.c: Rename tui/tuiWin.c.
14154 * tui/tui-win.h: Rename tui/tuiWin.h.
14155 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14156 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14157 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14158 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14159 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14160 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14161 * tui/tui-file.c: Update includes.
14162 * tui/tui-hooks.c: Update includes.
14163 * tui/tui-interp.c: Update includes.
14164 * tui/tui.c: Update includes.
14165 * Makefile.in: Update all tui/ dependencies.
14166 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14168 * Makefile.in: Update copyright. Update dependencies.
14170 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14173 2004-01-18 Andrew Cagney <cagney@redhat.com>
14175 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14176 instead of register_gdbarch_init.
14178 * remote-sds.c (tohex): Delete unused function. Update copyright.
14179 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14180 * v850-tdep.c (v850_register_virtual_size): Ditto.
14181 * target.c (normal_target_post_startup_inferior): Ditto.
14182 * source.c (ambiguous_line_spec): Ditto.
14183 * remote.c (adapt_remote_get_threadinfo): Ditto.
14184 * mi/mi-out.c (out_field_fmt): Ditto.
14185 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14186 (output_control_change_notification): Ditto.
14187 * m68k-tdep.c (m68k_register_byte): Ditto.
14188 (m68k_remote_breakpoint_from_pc): Ditto.
14189 * ui-out.c (init_ui_out_state): Delete unused declaration.
14190 * stabsread.c (search_value): Ditto.
14191 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14192 * maint.c (print_section_table): Ditto.
14193 * infrun.c (set_follow_fork_mode_command): Ditto.
14195 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14197 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14198 DW_CFA_def_cfa_exporession. Add support for
14199 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14200 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14202 2004-01-18 Andrew Cagney <cagney@redhat.com>
14204 * ocd.c: Update copyright.
14205 (bdm_read_register_command): Delete unused function.
14206 (_initialize_remote_ocd): Delete commented out reference.
14207 (get_quoted_char, reset_packet): Delete #if0ed function.
14208 (output_packet, put_quoted_char): Delete #if0ed function.
14209 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14210 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14211 (BDM_BREAKPOINT): Delete #if0ed macro.
14212 (remote_timeout): Delete #if0ed variable.
14214 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14216 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14217 (core-sol2.o): Remove dependency.
14218 * core-sol2.c: Remove file.
14220 2004-01-17 Andrew Cagney <cagney@redhat.com>
14222 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14223 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14226 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14228 * remote.c: Update copyright years.
14230 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14232 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14234 2004-01-17 Andrew Cagney <cagney@redhat.com>
14236 * mdebugread.c: Update copyright.
14237 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14238 (parse_type, parse_procedure): Ditto.
14239 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14241 * cris-tdep.c (cris_store_struct_return): Put back accidently
14244 * gdbarch.sh: Update copyright year.
14245 * gdbarch.h, gdbarch.c: Re-generate.
14247 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14249 Suggested by George Anzinger.
14250 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14251 correct stack offset. Include unknown opcode numbers in the error
14254 2004-01-17 Andrew Cagney <cagney@redhat.com>
14256 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14257 extract_struct_value_address, i386 does not set it.
14258 * sparc64-tdep.c (sparc64_init_abi): Do not set
14259 extract_struct_value_address, never called.
14260 (sparc64_extract_struct_value_address): Delete function.
14261 * m68hc11-tdep.c: Update copyright.
14262 (m68hc11_gdbarch_init): Delete redundant assignment of
14263 extract_struct_value_address.
14264 * i386-tdep.c: Update copyright.
14265 (i386_gdbarch_init): Do not set extract_struct_value_address,
14267 (i386_extract_struct_value_address): Delete function.
14268 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14269 extract_struct_value_address, never called.
14270 (sparc32_extract_struct_value_address): #if 0 function. Add
14271 comments explaining its future.
14273 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14275 * arm-tdep.c (arm_write_pc): New function.
14276 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14278 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14280 * breakpoint.c (must_shift_inst_regs): Delete.
14281 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14282 and SHIFT_INST_REGS.
14283 * infcmd.c (step_1, step_1_continuation): Delete references to
14285 * infrun.c (keep_going): Likewise.
14286 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14287 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14289 2004-01-17 Andrew Cagney <cagney@redhat.com>
14291 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14292 * gdbarch.h, gdbarch.c: Re-generate.
14293 * infcmd.c (print_return_value): Delete reference to
14294 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14296 * cris-tdep.c (cris_gdbarch_init): Do not set
14297 deprecated_extract_struct_value_address.
14299 * xstormy16-tdep.c: Update copyright.
14300 (xstormy16_extract_struct_value_address): Update to current
14301 extract struct value address interface.
14302 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14303 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14304 current extract struct value address interface.
14305 (sh64_gdbarch_init): Set extract_struct_value_address.
14307 * cris-tdep.c: Update copyright.
14308 (cris_extract_struct_value_address): Delete function.
14309 (struct_return_address): Delete variable.
14310 (cris_store_struct_return): Do not set struct_return_address.
14312 * mcore-tdep.c: Update copyright.
14313 (mcore_extract_struct_value_address): Delete function. Update
14315 (mcore_gdbarch_init): Update.
14316 * mn10300-tdep.c: Update copyright.
14317 (mn10300_extract_struct_value_address): Delete function.
14318 (mn10300_gdbarch_init): Update.
14319 * v850-tdep.c: Update copyright.
14320 (v850_extract_struct_value_address): Delete.
14321 (v850_gdbarch_init): Update.
14322 * ns32k-tdep.c: Update copyright.
14323 (ns32k_extract_struct_value_address): Delete.
14324 (ns32k_gdbarch_init): Update.
14325 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14326 (hppa_gdbarch_init): Update.
14327 * vax-tdep.c: Update copyright.
14328 (vax_extract_struct_value_address): Delete.
14329 (vax_gdbarch_init): Update.
14331 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14332 * gdbarch.h, gdbarch.c: Re-generate.
14333 * procfs.c (procfs_fetch_registers): Delete reference to
14334 DEPRECATED_NPC_REGNUM.
14335 (procfs_store_registers): Ditto.
14336 * regcache.c (generic_target_write_pc): Simplify.
14337 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14339 * core-sol2.c (fetch_core_registers): Replace
14340 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14342 * hppa-tdep.c: Update copyright year.
14343 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14345 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14347 * mips-tdep.c (mips_write_pc): New function.
14348 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14349 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14350 (mips_find_saved_regs, mips_software_single_step: Ditto.
14351 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14352 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14354 2004-01-17 Andrew Cagney <cagney@redhat.com>
14356 * mips-tdep.c: Re-indent. Group functions by ABI.
14358 2004-01-17 Andrew Cagney <cagney@redhat.com>
14360 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14361 * gdbarch.c: Re-generate.
14362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14363 DECR_PC_AFTER_BREAK to zero.
14364 * vax-tdep.c (vax_gdbarch_init): Ditto.
14365 * v850-tdep.c (v850_gdbarch_init): Ditto.
14366 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14367 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14368 * sh-tdep.c (sh_gdbarch_init): Ditto.
14369 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14370 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14372 * mips-tdep.c (mips_gdbarch_init): Ditto.
14373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14375 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14376 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14377 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14378 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14380 * frv-tdep.c (frv_gdbarch_init): Ditto.
14381 * cris-tdep.c (cris_gdbarch_init): Ditto.
14382 * avr-tdep.c (avr_gdbarch_init): Ditto.
14383 * arm-tdep.c (arm_gdbarch_init): Ditto.
14384 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14386 2004-01-17 J. Brobecker <brobecker@gnat.com>
14388 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14389 Delete, no longer used.
14390 (read_subrange_type): New function, mostly extracted from
14392 (read_array_type): Replace extracted code by call to
14393 read_subrange_type().
14394 (dwarf2_get_attr_constant_value): New function.
14395 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14396 (add_partial_symbol): Likewise.
14397 (process_die): Likewise.
14398 (new_symbol): Likewise.
14399 (read_type_die): Likewise.
14401 2004-01-16 Andrew Cagney <cagney@redhat.com>
14403 * symfile.c: Update copyright year.
14404 (compare_symbols): Delete unused function.
14405 * stabsread.c: Update copyright year.
14406 (lrs_general_complaint): Delete unused function.
14407 (ref_search_value): Ditto.
14408 (get_substring): Delete declaration.
14409 * sh64-tdep.c: Update copyright year.
14410 (sh64_get_gdb_regnum): Delete unused function.
14411 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14412 Delete unused function.
14414 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14416 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14417 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14419 2004-01-16 Andrew Cagney <cagney@redhat.com>
14421 Changes from Peter Schauer.
14422 * rs6000-tdep.c: Update copyright year.
14423 (rs6000_push_dummy_call): Update the stack pointer before
14424 accessing the corresponding stack region.
14425 * rs6000-nat.c: Update copyright year.
14426 (set_host_arch): Set "info.abfd" to "exec_bfd".
14428 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14430 * blockframe.c: Update copyright year.
14431 (inside_entry_func): Don't treat a zero PC specially.
14433 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14435 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14437 (gcore_create_callback): Ditto. Skip any memory segment that has
14438 no permissions set.
14440 2004-01-14 David Carlton <carlton@kealia.com>
14442 Change symbols for C++ nested types to contain the fully qualified
14443 name, if possible. (At least in the DWARF-2 case.) Partial fix
14444 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14446 * c-exp.y (qualified_type): Handle types nested within classes.
14447 * cp-namespace.c: Update comments.
14448 (cp_set_block_scope): Delete #if 0.
14449 (cp_lookup_nested_type): Handle types nested within classes.
14450 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14452 (add_partial_symbol): Add the name of the enclosing namespace to
14454 (pdi_needs_namespace): New.
14455 (add_partial_namespace): Tweak comment.
14456 (add_partial_structure): New.
14457 (psymtab_to_symtab_1): Initialize processing_current_prefix
14459 (process_die): instead of here.
14460 (read_structure_scope): Try to figure out the name of the class or
14461 namespace that the structure might be defined within.
14462 (read_enumeration): Generate fully-qualified names, if possible.
14463 (read_namespace): Don't set name to NULL.
14464 (die_specification): New.
14465 (new_symbol): Generate fully-qualified names for types.
14466 (read_type_die): Determine appropriate prefix.
14467 (determine_prefix): New.
14468 (typename_concat): New.
14470 * valops.c (value_aggregate_elt): Pass NOSIDE to
14471 value_struct_elt_for_reference.
14472 (value_struct_elt_for_reference): Make static, add NOSIDE
14473 parameter, call value_maybe_namespace_elt as a last resort.
14474 (value_namespace_elt): Break out code into
14475 value_maybe_namespace_elt.
14476 (value_maybe_namespace_elt): New.
14478 2004-01-12 Andrew Cagney <cagney@redhat.com>
14480 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14481 cooked floating-point registers.
14482 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14483 and value_to_register.
14485 2004-01-13 Andrew Cagney <cagney@redhat.com>
14487 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14488 * gdbarch.c: Re-generate.
14489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14490 FUNCTION_START_OFFSET.
14491 * v850-tdep.c (v850_gdbarch_init): Ditto.
14492 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14493 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14494 * sh-tdep.c (sh_gdbarch_init): Ditto.
14495 * s390-tdep.c (s390_gdbarch_init): Ditto.
14496 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14497 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14499 * mips-tdep.c (mips_gdbarch_init): Ditto.
14500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14501 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14503 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14504 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14505 * i386-tdep.c (i386_gdbarch_init): Ditto.
14506 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14507 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14508 * frv-tdep.c (frv_gdbarch_init): Ditto.
14509 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14510 * cris-tdep.c (cris_gdbarch_init): Ditto.
14511 * avr-tdep.c (avr_gdbarch_init): Ditto.
14512 * arm-tdep.c (arm_gdbarch_init): Ditto.
14513 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14515 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14517 * infrun.c (follow_fork_mode_ask): Remove.
14518 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14519 (follow_fork): Simplify and remove internal error for
14520 follow_fork_mode_ask.
14521 (_initialize_infrun): Update "set follow-fork-mode" help text.
14523 2004-01-13 Andrew Cagney <cagney@redhat.com>
14525 * configure.in: Update copyright year.
14526 (build_warnings): Add -Wunused-label.
14527 * configure: Re-generate.
14529 2004-01-12 Andrew Cagney <cagney@redhat.com>
14531 * exec.h (exec_ops): Make "extern".
14533 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14534 the function is void.
14535 (mips_pseudo_register_write): Ditto.
14537 2004-01-12 Andrew Cagney <cagney@redhat.com>
14539 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14540 call. Never defined.
14541 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14542 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14543 (struct sparc_gregset, struct regcache): Ditto.
14544 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14546 2004-01-12 Andrew Cagney <cagney@redhat.com>
14548 * mi/ChangeLog: Delete file. Renamed to ...
14549 * mi/ChangeLog-1999-2003: New file.
14550 * tui/ChangeLog: Delete file. Renamed to ...
14551 * tui/ChangeLog-1998-2003: New file.
14553 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14555 * sparc64nbsd-tdep.c: Include "regset.h".
14556 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14558 (fetch_core_registers): Remove function.
14559 (sparc64nbsd_core_fns): Remove variable.
14560 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14562 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14563 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14564 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14566 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14567 sparc_extract_struct_value_address.
14568 (sparc32_gdbarch_init): Set extract_struct_value_address.
14569 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14571 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14572 return_value_on_stack.
14574 * NEWS: Mention that %cs and %ss have been added to the AMD64
14577 * frame.c: Update copyright year.
14578 (get_prev_frame): Improve comment.
14580 * sparc64fbsd-tdep.c: Include "regset.h".
14581 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14583 (fetch_core_registers): Remove function.
14584 (sparc64fbsd_core_fns): Remove variable.
14585 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14587 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14588 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14589 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14591 * sparcnbsd-tdep.c: Include "regset.h".
14592 (fetch_core_registers): Remove function.
14593 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14594 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14596 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14598 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14600 * sparc-tdep.h (struct regset): Provide opaque declaration.
14601 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14602 fpregset and sizeof_fpregset members.
14603 * sparc-tdep.c (struct regset): Provide opaque declaration.
14604 (sparc_regset_from_core_section): New function.
14605 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14606 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14607 Set regset_from_core_section when appropriate.
14609 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14611 * x86-64-tdep.c (amd64_non_pod_p): New function.
14612 (amd64_classify_aggregate): Return class memory for non-POD
14613 C++ structure types.
14615 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14616 argument. Use it to reserve a register if necessary.
14617 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14618 amd64_push_arguments.
14620 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14622 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14623 register numbers in comments.
14624 * x86-64-tdep.h: Update copyright year.
14625 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14626 Adjust for addition of %cs and %ss.
14627 * amd64fbsd-nat.c: Update copyright year.
14628 (reg_offset): Add register offsets for %cs and %ss.
14629 * amd64fbsd-tdep.c: Update copyright year.
14630 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14631 (amd64fbsd_sc_reg_offset): Likewise.
14632 * x86-64-linux-nat.c: Update copyright year.
14633 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14635 * amd64nbsd-nat.c: Update copyright year.
14636 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14637 * amd64nbsd-tdep.c: Update copyright year.
14638 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14639 * x86-64-linux-tdep.c: Update copyright year.
14640 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14641 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14642 * regformats/reg-x86-64.dat: Add %cs and %ss.
14644 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14645 variables to prevent long lines. Update comments to reflect
14648 2004-01-09 David Carlton <carlton@kealia.com>
14650 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14651 * dwarf2read.c (read_namespace): Pull out name-generating code
14652 into namespace_name. Rename previous_namespace to previous_prefix
14653 and processing_current_namespace to processing_current_prefix..
14654 (namespace_name): New function.
14655 (add_partial_symbol): Substitute uses of pdi->name with
14657 * cp-support.h: Rename processing_current_namespace to
14658 processing_current_prefix.
14659 Update copyright year.
14660 * cp-namespace.c: Rename processing_current_namespace to
14661 processing_current_prefix.
14662 Update copyright year.
14664 2004-01-09 Andrew Cagney <cagney@redhat.com>
14666 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14668 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14670 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14672 (process_one_symbol): Deal with N_PATCH stabs.
14674 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14676 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14678 Update copyright year.
14680 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14682 * config/pa/tm-hppa.h: Update extern declarations for
14683 hppa32_hpux_frame_saved_pc_in_sigtramp,
14684 hppa32_hpux_frame_base_before_sigtramp, and
14685 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14687 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14689 * config/pa/tm-hppah.h: Update copyright years.
14691 2004-01-08 Andrew Cagney <cagney@redhat.com>
14693 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14694 (mips_o32_reg_struct_has_addr): Delete function.
14695 (mips_gdbarch_init): Update.
14696 (mips_extract_struct_value_address): Delete function.
14698 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14700 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14703 2004-01-07 Andrew Cagney <cagney@redhat.com>
14705 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14706 architecture's elf flags (when available).
14708 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14709 FPU to the start, check the MIPS FPU when looking for an old
14711 (set_mipsfpu_single_command): Update the architecture.
14712 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14714 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14715 (mips_mask_address_p): Add "tdep" parameter.
14716 (show_mask_address, mips_addr_bits_remove): Update.
14717 (mips_dump_tdep): Update.
14718 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14719 (MIPS_STACK_ARGSIZE): Delete macro.
14720 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14721 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14722 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14723 (mips_dump_tdep): Update.
14724 (MIPS_SAVED_REGSIZE): Delete macro.
14725 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14726 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14727 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14728 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14729 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14730 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14731 (mips_pop_frame, return_value_location): Update.
14732 (mips_n32n64_return_value, mips_dump_tdep): Update.
14734 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14737 * mips-tdep.c: Update copyright.
14738 (mips_gdbarch_init): Merge two code blocks handling the register
14739 name and number layout.
14741 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14743 * tracepoint.c (validate_actionline): Fix segv at EOF
14745 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14747 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14748 properly for static fields.
14750 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14751 Jason Molenda <jmolenda@apple.com>
14753 * disasm.c: Update copyright to include 2004.
14754 (do_mixed_source_and_assembly): For uiout asm list
14755 and tuple cleanups, initialize to null_cleanup instead of
14756 NULL and do so prior to loop. Only reset when we close off
14757 the tuple/list. Move check for whether to close off the
14758 asm tuple/list to after dump_insns call where it will be run
14759 on each loop iteration.
14761 2004-01-05 Andrew Cagney <cagney@redhat.com>
14763 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14764 should be a switch case and not a label.
14765 * mips-tdep.c (mips32_next_pc): Delete unused labels
14766 "greater_equal_branch" and "less_zero_branch".
14767 * jv-valprint.c (java_print_value_fields): Delete unused label
14770 * target.c (unpush_target): Only close a target that is in the
14773 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14775 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14776 address from [sp + 64] instead of %o2.
14778 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14779 fixes PR backtrace/1476.
14781 2004-01-05 Andrew Cagney <cagney@redhat.com>
14783 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14784 move to start of file.
14785 * i386-tdep.h (struct regcache): Add opaque declaration.
14786 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14788 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14789 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14790 * win32-nat.c (fake_create_process): Use ISO C style definition.
14791 * stabsread.c (define_symbol): Delete #ifndef
14792 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14793 stabs_argument_has_addr call, macro never defined.
14795 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14797 * op50-rom.c: Delete.
14798 * w89k-rom.c: Delete.
14799 * Makefile.in: Remove references.
14801 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14803 * x86-64-tdep.c: Update copyright year.
14804 (struct amd64_register_info): Rename from x86_64_register_info.
14805 (amd64_register_info): Rename from x86_64_register_info.
14806 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14807 (amd64_register_name): Rename from x86_64_register_name.
14808 (amd64_register_type): Rename from x86_64_register_type.
14809 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14810 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14811 (amd64_dwarf_reg_to_regnum): Rename from
14812 x86_64_dwarf_reg_to_regnum.
14813 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14814 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14815 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14816 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14817 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14818 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14819 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14820 (amd64_frame_cache): Rename from x86_64_frame_cache.
14821 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14822 (amd64_frame_prev_register): Rename from
14823 x86_64_frame_prev_register.
14824 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14825 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14826 (amd64_sigtramp_frame_cache): Rename from
14827 x86_64_sigtramp_frame_cache.
14828 (amd64_sigtramp_frame_prev_register): Rename from
14829 x86_64_sigtramp_frame_prev_register.
14830 (amd64_sigtramp_frame_unwind): Rename from
14831 x86_64_sigtramp_frame_unwind.
14832 (amd64_sigtramp_frame_sniffer): Rename from
14833 x86_64_sigtramp_frame_sniffer.
14834 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14835 (amd64_frame_base): Rename from x86_64_frame_base.
14836 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14837 (amd64_frame_align): Rename from x86_64_frame_align.
14838 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14839 (amd64_regset_from_core_section): Rename from
14840 x86_64_regset_from_core_section.
14841 (x86_64_init_abi): Update comments.
14843 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14845 * MAINTAINERS (write after approval): Add myself.
14847 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14849 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14852 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14854 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14855 such that it mentions a specific version of GCC that exhibits this
14858 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14860 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14861 structure that has a single `float' member, store it in %f1 in
14864 * sparc-sol2-nat.c: Add missing '\'.
14866 * sparc-tdep.c (sparc32_return_value): New function.
14867 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14869 (sparc32_gdbarch_init): Set return_value, don't set
14870 extract_return_value, store_return_value, use_struct_convention
14871 and return_value_on_stack.
14873 * sparc-sol2-nat.c: Add missing ')'.
14875 2004-01-03 J. Brobecker <brobecker@gnat.com>
14877 * infrun.c (handle_step_into_function): New function.
14878 (handle_inferior_event): Extract out some code into the new
14881 2004-01-03 J. Brobecker <brobecker@gnat.com>
14883 * infrun.c (handle_inferior_event): Move the declaration of
14884 real_stop_pc inside the if blocks where it is used.
14886 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14888 * sparc64-tdep.c (sparc64_16_byte_align_p)
14889 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14890 Use check_typedef to get subtypes of structures and unions.
14891 (sparc64_store_return_value): Fix calculation of the appropriate
14892 offset into VALBUF when storing a structure or union.
14893 (sparc64_return_value): New function.
14894 (sparc64_use_struct_convention): Remove function.
14895 (sparc64_init_abi): Set return_value, don't set
14896 extract_return_value, store_return_value and
14897 use_struct_convention.
14899 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14901 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14902 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14903 gdb/config/alpha/xm-alphaosf.h,
14904 gdb/config/powerpc/tm-ppcle-eabi.h,
14905 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14906 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14907 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14908 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14909 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14910 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14911 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14912 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14913 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14914 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14915 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14916 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14917 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14918 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14919 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14920 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14921 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14922 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14923 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14924 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14925 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14926 Remove lines for .cvsignore files.
14928 2004-01-03 J. Brobecker <brobecker@gnat.com>
14930 * infrun.c: Back out the previous change.
14932 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14934 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14935 sparc-*-sunos4* to the list of REMOVED configurations.
14937 * configure.tgt: Add back sparc-*-vxworks*.
14938 * remote-vxsparc.c: Remove all includes except for "defs.h",
14939 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14940 Include "sparc-tdep.h".
14941 (SPARC_R_G1): New define.
14942 (vxsparc_gregset): New variable.
14943 (ext_format_sparc): Remove extern declaration.
14944 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14945 sparc32_supply_fpregset.
14946 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14947 sparc_collect_rwindow and sparc32_collect_fpregset.
14948 * config/sparc/tm-vxworks.h: New file, based on recently removed
14950 * config/sparc/vxworks.mt: New file, based on recently removed
14953 2004-01-03 J. Brobecker <brobecker@gnat.com>
14955 * infrun.c (handle_step_into_function): New function.
14956 (handle_inferior_event): Extract out some code into the new
14959 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14961 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14962 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14963 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14964 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14965 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14966 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14967 (sparc_nat_h): New variable.
14968 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14969 (tm-sun4os4.h): Remove dependency.
14970 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14971 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14972 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14973 sparc-tdep.o): Update dependencies.
14974 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14975 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14976 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14978 * configure.host: Remove existing sparc-*-lynxos*,
14979 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14980 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14981 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14982 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14984 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14985 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14986 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14987 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14988 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14989 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14990 sparc64-*-solaris2* and sparc64-*-* triplets.
14991 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14992 "symtab.h" and "objfiles.h".
14993 (BIAS): Remove define.
14994 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14995 (X_DISP19): Remove macros.
14996 (sparc_fetch_instruction): Remove function.
14997 (struct gdbarch_tdep): Remove definition.
14998 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14999 (sparc_breakpoint_from_pc): Remove function.
15000 (struct sparc64_frame_cache): Remove definition.
15001 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
15002 sparc64_unwind_pc): Remove functions.
15003 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
15004 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
15005 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
15006 (sparc64_frame_cache): Change return type to `struct
15007 sparc_frame_cache *'. Simply call sparc_frame_cache.
15008 (sparc64_frame_this_id, sparc64_frame_prev_register,
15009 sparc64_frame_base_address): Use `struct sparc_frame_cache'
15010 instead of `struct sparc64_frame_cache.
15011 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
15012 sparc_analyze_control_transfer, sparc_software_single_step,
15013 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
15014 _initialize_sparc64_tdep): Remove functions.
15015 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
15016 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
15018 (sparc64_supply_gregset, sparc64_collect_gregset,
15019 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
15020 (sparc64_init_abi): New function.
15021 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
15022 inclusion guard. Include "sparc-tdep.h".
15024 (r_tstate_offset, r_fprs_offset): New defines.
15025 (enum sparc_regnum): Remove defenition.
15026 (enum sparc64_regnum): Reformat.
15027 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
15028 (sparc64_init_abi, sparc64_supply_gregset,
15029 sparc64_collect_gregset, sparc64_supply_fpregset,
15030 sparc64_collect_fpregset): New prototypes.
15031 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
15032 Add extern declarations.
15033 (sparc64_sol2_init_abi): New prototype.
15034 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15035 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15037 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
15039 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
15041 (_initialize_sparc64fbsd_nat): Remove initialization of
15042 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
15043 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
15044 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
15045 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
15046 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
15047 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
15048 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
15049 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
15050 (sparc64fbsd_r_y_offset): Remove variables.
15051 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
15052 Make static and const.
15053 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15054 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15056 (sparc64fbsd_gregset): New variable.
15057 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
15058 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
15059 and sparc64_supply_fpregset.
15060 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
15061 (sparc64fbsd_sigtramp_frame_this_id)
15062 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
15063 (sparc64fbsd_sigtramp_frame_unwind): New variable.
15064 (sparc64fbsd_sigtramp_frame_sniffer): New function.
15065 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
15066 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
15067 * sparcnbsd-tdep.c: Update copyright year. Include
15068 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
15069 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
15070 "value.h" and "sparcnbsd-tdep.h".
15071 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
15072 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
15073 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15074 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15076 (sparcnbsd_gregset): New variable.
15077 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15078 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15079 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15080 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15081 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15083 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15084 (sparc32nbsd_sigcontext_frame_this_id)
15085 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15086 (sparc32nbsd_sigcontext_frame_unwind): New variable.
15087 (sparc32nbsd_sigtramp_frame_sniffer): New function.
15088 (sparcnbsd_get_longjmp_target_32,
15089 sparcnbsd_get_longjmp_target_64): Remove functions.
15090 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15091 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15092 sparcnbsd_init_elf): Remove.
15093 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15094 (sparcnbsd_elf_init_abi): New functions.
15095 (_initialize_sparcnbsd_tdep): New prototype.
15096 (_initialize_sparnbsd_tdep): Update.
15097 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15098 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15099 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15100 * config/sparc/linux.mh: Update comment.
15101 (XM_FILE, HOST_IPC): Remove variables.
15102 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15104 * config/sparc/linux.mt: Update comment.
15105 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15106 * config/sparc/nbsd.mt: Reformat.
15107 * config/sparc/nbsd64.mh: Update comment.
15108 (NATDEPFILES): Add sparc-nat.o.
15109 * config/sparc/nbsd64.mt: Update comment.
15110 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15111 (TM_FILE): Set to tm-nbsd.h.
15112 * config/sparc/nbsdelf.mh: Update comment.
15113 (NATDEPFILES): Add sparc-nat.o.
15115 * config/sparc/nbsdaout.mh: Update comment.
15116 (NATDEPFILES): Add sparc-nat.o
15118 * config/sparc/nm-linux.h: Update copyright year. Don't include
15119 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15121 (KERNEL_U_SIZE): Remove define.
15122 (kernel_u_size): Remove prototype.
15123 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15124 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15126 (CHILD_PREPARE_TO_STORE): Remove define.
15127 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15128 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15129 sparcnbsd-nat.c: Rewrite files.
15130 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15131 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15132 sparcnbsd-tdep.h: Remove files.
15133 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15134 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15135 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15136 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15137 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15138 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15139 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15140 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15141 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15142 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15143 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15144 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15145 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15146 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15147 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15148 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15149 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15150 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15151 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15153 2004-01-02 Andrew Cagney <cagney@redhat.com>
15155 From 2003-12-18 Kazuhiro Inaoka:
15156 * configure.host: Add m32r-linux target.
15158 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15160 * top.c (print_gdb_version): Update year to 2004.
15162 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15164 * MAINTAINERS: Add myself to the write-after-approval category.
15166 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15168 From Bernardo Innocenti <bernie@develer.com>:
15169 * configure.tgt: Add uClinux target.
15171 2004-01-02 Andrew Cagney <cagney@redhat.com>
15173 * utils.c (do_my_cleanups): Make static, add forward declaration.
15174 * defs.h (do_my_cleanups): Delete declaration.
15176 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15178 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15179 bfd/ChangeLog-0203.
15181 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15183 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15184 in <machine/reg.h>.
15185 * configure, config.in: Regenerate.
15187 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15188 tui/ChangeLog-1998-2003.
15194 version-control: never