8bf93a2aaaecb8a79989c57ccde140c130d83a1a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-04-23 Randolph Chung <tausq@debian.org>
2
3 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4 starts at a pc before the frame is created.
5
6 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7
8 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9
10 2004-04-23 Jerome Guitton <guitton@gnat.fr>
11
12 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
13 use convert_typed_floating to get the appropriate format.
14
15 2004-04-22 Randolph Chung <tausq@debian.org>
16
17 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
18 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
19 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
20 (hppa_sign_extend): Add prototype.
21 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
22 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
23 (sign_extend): Rename with hppa_ prefix and make non-static. Other
24 hppa targets will also use these functions.
25 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
26 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
27 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
28 (hppa_gdbarch_init): Remove gdbarch setting of
29 skip_trampoline_code, in_solib_call_trampoline and
30 in_solib_return_trampoline.
31 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
32 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
33 hppa_in_solib_call_trampoline.
34 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
35 Moved from hppa-tdep.c.
36 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
37 in_solib_call_trampoline and in_solib_return_trampoline.
38
39 2004-04-22 Randolph Chung <tausq@debian.org>
40
41 * hppa-tdep.c (hppa_debug): New variable.
42 (find_unwind_entry, hppa_frame_cache): Add debug output.
43 (_initialize_hppa_tdep): Add command to set debug flag.
44
45 2004-04-22 Andrew Cagney <cagney@redhat.com>
46
47 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
48 "trad-frame.h".
49 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
50 signal trampoline unwinder.
51 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
52
53 2004-04-22 Mark Kettenis <kettenis@gnu.org>
54
55 Add OpenBSD/powerpc support.
56 * NEWS (New native configurations): Mention OpenBSD/powerpc.
57 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
58 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
59 (ppc_collect_fpregset): New prototypes.
60 * ppcobsd-nat.c: New file.
61 * ppcobsd-tdep.c: New file.
62 * ppcobsd-tdep.h: New file.
63 * rs6000-tdep.c: Include "regset.h".
64 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
65 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
66 New functions.
67 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
68 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
69 (rs6000-tdep.o): Update dependencies.
70 * configure.host: Add powerpc-*-openbsd.
71 * configure.tgt: Add powerpc-*-openbsd.
72 * config/powerpc/obsd.mh: New file.
73 * config/powerpc/nm-obsd.h: New file.
74 * config/powerpc/obsd.mt: New file.
75
76 2004-04-22 Andrew Cagney <cagney@redhat.com>
77
78 * frame.h (show_frame_info): Delete declaration.
79
80 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
81 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
82 * m32r-tdep.c (m32r_frame_this_id): Ditto.
83 * frv-tdep.c (frv_frame_this_id): Ditto.
84 * avr-tdep.c (avr_frame_this_id): Ditto.
85
86 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
87
88 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
89
90 2004-04-22 Jim Blandy <jimb@redhat.com>
91
92 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
93 register number zero.
94
95 2004-04-21 Michael Snyder <msnyder@redhat.com>
96
97 * mips-tdep.c (heuristic_proc_start):
98 Warning() already prefixes "Warning: ".
99
100 2004-04-21 Andrew Cagney <cagney@redhat.com>
101
102 * annotate.h (deprecated_annotate_starting_hook)
103 (deprecated_annotate_stopped_hook)
104 (deprecated_annotate_exited_hook)
105 (deprecated_annotate_signal_hook)
106 (deprecated_annotate_signalled_hook): Deprecate.
107 * tracepoint.h (deprecated_create_tracepoint_hook)
108 (deprecated_delete_tracepoint_hook)
109 (deprecated_modify_tracepoint_hook)
110 (deprecated_trace_find_hook)
111 (deprecated_trace_start_stop_hook): Deprecate.
112 * target.h (deprecated_target_new_objfile_hook): Deprecate.
113 * remote.h (deprecated_target_resume_hook)
114 (deprecated_target_wait_loop_hook): Deprecate.
115 * gdbcore.h (deprecated_exec_file_display_hook)
116 (deprecated_file_changed_hook): Deprecate.
117 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
118 * defs.h (deprecated_modify_breakpoint_hook)
119 (deprecated_command_loop_hook, deprecated_show_load_progress)
120 (deprecated_print_frame_info_listing_hook)
121 (deprecated_query_hook, deprecated_warning_hook)
122 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
123 (deprecated_delete_breakpoint_hook)
124 (deprecated_interactive_hook, deprecated_registers_changed_hook)
125 (deprecated_readline_begin_hook, deprecated_readline_hook)
126 (deprecated_readline_end_hook, deprecated_register_changed_hook)
127 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
128 (deprecated_context_hook, deprecated_target_wait_hook)
129 (deprecated_attach_hook, deprecated_detach_hook)
130 (deprecated_call_command_hook, deprecated_set_hook)
131 (deprecated_error_hook, deprecated_error_begin_hook)
132 (deprecated_ui_load_progress_hook): Deprecate.
133 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
134 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
135 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
136 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
137 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
138 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
139 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
140 * annotate.c, aix-thread.c: Update.
141
142 2004-04-21 Andrew Cagney <cagney@redhat.com>
143
144 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
145 * vaxnbsd-tdep.c: Include "gdb_string.h".
146
147 * symfile.c (symbol_file_add_from_memory): #if 0 function.
148 (add_symbol_file_from_memory_command): #if 0 function body, call
149 error instead.
150
151 2004-04-21 Andrew Cagney <cagney@redhat.com>
152
153 * gdbcore.h: Update copyright.
154 (deprecated_add_core_fns): Rename add_core_fns.
155 * win32-nat.c (_initialize_core_win32): Update.
156 * sun3-nat.c (_initialize_core_sun3): Update.
157 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
158 * rs6000-nat.c (_initialize_core_rs6000): Update.
159 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
160 * nto-tdep.c (_initialize_nto_tdep): Update.
161 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
162 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
163 * mips-nat.c (_initialize_core_mips): Update.
164 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
165 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
166 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
167 * lynx-nat.c (_initialize_core_lynx): Update.
168 * irix5-nat.c (_initialize_core_irix5): Update.
169 * i386-interix-nat.c (_initialize_core_interix): Update.
170 * cris-tdep.c (_initialize_cris_tdep): Update.
171 * corelow.c (deprecated_add_core_fns): Update.
172 * core-regset.c (_initialize_core_regset): Update.
173 * core-aout.c (_initialize_core_aout): Update.
174 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
175 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
176 * alpha-nat.c (_initialize_core_alpha): Update.
177
178 2004-04-21 Jim Blandy <jimb@redhat.com>
179
180 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
181
182 >>>>>>> 1.5719
183 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
184
185 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
186 Delete.
187 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
188 (read_attribute_value): Update calls to dwarf_alloc_block.
189 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
190 dwarf2_tmp_obstack.
191 (psymtab_to_symtab_1): Likewise. Clean up using
192 free_stack_comp_unit.
193 (add_to_cu_func_list): Use the comp_unit_obstack.
194
195 2004-04-19 Joel Brobecker <brobecker@gnat.com>
196
197 * dwarf2read.c (dwarf2_flag_true_p): New function.
198 (die_is_declaration): Use the function above. Add some comments.
199
200 2004-04-19 Mark Kettenis <kettenis@gnu.org>
201
202 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
203 architecture when registering sparcnbsd_core_osabi_sniffer.
204 Adjust comment.
205
206 2004-04-18 Mark Kettenis <kettenis@gnu.org>
207
208 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
209 return value.
210
211 Based on a patch from Brian Ford <ford@vss.fsi.com>:
212 * i386-tdep.c: Correct register numbering scheme comments
213 throughout.
214 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
215 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
216 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
217 (i386_gdb_arch_init): Likewise.
218
219 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
220 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
221 ppcnbsd-tdep.o.
222
223 * m68k-tdep.h: Tweak comments.
224 * m68k-tdep.c: Tweak comment.
225
226 2004-04-17 Randolph Chung <tausq@debian.org>
227
228 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
229 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
230 (hppa_hpux_som_init_abi): Set is_elf to 0.
231 (hppa_hpux_elf_init_abi): Set is_elf to 1.
232 * hppa-tdep.c (low_text_segment_address): Remove global.
233 (record_text_segment_lowaddr): Pass in low address as parameter. Use
234 section offset to calculate segment address.
235 (internalize_unwinds): Define low_text_segment_address as local and
236 pass to record_text_segment_lowaddr for ELF targets.
237 (hppa_gdbarch_init): Zero fill tdep structure.
238 (hppa_dump_tdep): Print tdep structure.
239 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
240
241 2004-04-17 Randolph Chung <tausq@debian.org>
242
243 * hppa-tdep.c (hppa_pseudo_register_read): Define.
244 (hppa_gdbarch_init): Set pseudo_register_read.
245 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
246 * regcache.c (supply_register): Remove check for
247 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
248
249 2004-04-17 Randolph Chung <tausq@debian.org>
250
251 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
252 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
253 (hpread_adjust_stack_address): Move to hpread.c.
254 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
255 obj_private_struct): Move from tm-hppa.h.
256 * hpread.c (hppa-tdep.h): Include.
257 (hpread_adjust_stack_address): Move from hppa-tdep.c.
258 (hpread_read_function_type, hpread_read_doc_function_type)
259 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
260 directly.
261 * pa64solib.c (hppa-tdep.h): Include.
262 * somsolib.c (hppa-tdep.h): Include.
263 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
264 inferior_status): Remove unused forward declarations.
265 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
266 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
267 obj_private_struct): Move to hppa-tdep.h.
268 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
269
270 2004-04-17 Randolph Chung <tausq@debian.org>
271
272 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
273 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
274 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
275 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
276 Remove forward declaration and make static.
277 (hppa_reg_struct_has_addr): Remove.
278
279 2004-04-16 Joel Brobecker <brobecker@gnat.com>
280
281 * observer.sh: Move comments in sed command to first column.
282
283 2004-04-16 Jason Molenda (jmolenda@apple.com)
284
285 * frame.c: Minor typeo corrections in comments.
286
287 2004-04-16 Joel Brobecker <brobecker@gnat.com>
288
289 * observer.c (observer_test_first_notification_function): Update
290 function profile.
291 (observer_test_second_notification_function): Likewise.
292 (observer_test_third_notification_function): Likewise.
293
294 2004-04-16 Mark Kettenis <kettenis@gnu.org>
295
296 From Brian Ford <ford@vss.fsi.com>:
297 * i386-tdep.c (i386_coff_init_abi): New function.
298 * i386-tdep.h (i386_coff_init_abi): New prototype.
299 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
300 register number translation functions for DWARF and DWARF 2.
301
302 2004-04-16 Joel Brobecker <brobecker@gnat.com>
303
304 * dwarf2read.c: Back out my previous change, it was incorrect.
305
306 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
307
308 * dwarf2read.c: Include "hashtab.h".
309 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
310 has_namespace_info.
311 (struct partial_die_info): Add comments. Use bitfields to reduce
312 memory footprint. Add scope, scope_set, has_specification,
313 spec_offset, die_parent, die_child, and die_sibling.
314 (peek_die_abbrev): Add prototype.
315 (partial_read_comp_unit_head): New function, broken out from
316 dwarf2_build_psymtabs_hard.
317 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
318 Use partial_read_comp_unit_head. Initialize the CU and
319 comp_unit_obstack. Update calls to read_partial_die and
320 scan_partial_symbols. Use free_stack_comp_unit and
321 load_partial_dies.
322 (scan_partial_symbols): Change PDI to a pointer. Use the child and
323 sibling pointers to walk partial DIEs. Call fixup_partial_die.
324 Update calls to helper functions. Remove NAMESPACE argument.
325 Update comments.
326 (partial_die_parent_scope, partial_die_full_name): New functions.
327 (add_partial_symbol): Remove namespace argument. Update call to
328 pdi_needs_namespace. Use partial_die_full_name. Handle
329 DW_TAG_namespace. Check has_namespace_info flag.
330 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
331 tag. Handle namespaces.
332 (add_partial_namespace, add_partial_enumeration): Simplify.
333 (guess_structure_name): New function, derived from
334 add_partial_structure.
335 (add_partial_structure): Remove.
336 (determine_class_name): Update comment.
337 (dwarf2_read_abbrevs): Set has_namespace_info flag.
338 (is_type_tag_for_partial, load_partial_dies): New functions.
339 (read_partial_die): Pass abbrev and abbrev_len as arguments.
340 Record specifications instead of following them immediately.
341 (find_partial_die_in_comp_unit, find_partial_die)
342 (fixup_partial_die, free_stack_comp_unit)
343 (hashtab_obstack_allocate, dummy_obstack_deallocate)
344 (partial_die_hash, partial_die_eq): New functions.
345 * Makefile.in (hashtab_h): Define.
346 (dwarf2read.o): Update dependencies.
347 (observer_inc, observer_h): Move to the correct section.
348
349 2004-04-15 Joel Brobecker <brobecker@gnat.com>
350
351 * dwarf2read.c (dwarf2_attribute_true_p): New function.
352 (die_is_declaration): Use the function above. Add comment.
353
354 2004-04-15 Joel Brobecker <brobecker@gnat.com>
355
356 * dwarf2read.c (read_structure_scope): Identify stub types
357 using die_is_declaration() only.
358
359 2004-04-15 Roland McGrath <roland@redhat.com>
360
361 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
362 argument instead of NAME.
363 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
364 in call to symbol_file_add_with_addrs_or_offsets.
365 (build_addr_info): New function, helper for ...
366 (symbol_file_add_from_memory): New function.
367 (add_symbol_file_from_memory_command): New function using that.
368 (_initialize_symfile): Register it for add-symbol-file-from-memory.
369 (pre_add_symbol_hook): Add const to argument type.
370 * symfile.h (symbol_file_add_from_memory): Declare it.
371
372 2004-04-15 Mark Kettenis <kettenis@gnu.org>
373
374 * NEWS (New native configurations): Mention OpenBSD/vax.
375 * configure.host: Add vax-*-openbsd*.
376 * config/vax/obsd.mh: New file.
377 * config/vax/nm-obsd.h: New file.
378
379 * vax-tdep.c: Include "regset.h".
380 (vax_supply_gregset): New function.
381 (vax_gregset): New variable.
382 (vax_regset_from_core_section): New function.
383 (vax_gdbarch_init): Set regset_from_core_section.
384 * Makefile.in (vax-tdep.o): Update dependencies.
385
386 2004-04-15 Andrew Cagney <cagney@redhat.com>
387
388 * observer.c (normal_stop_subject, observer_notify_normal_stop)
389 (observer_normal_stop_notification_stub)
390 (observer_attach_normal_stop, observer_detach_normal_stop):
391 Delete, replaced by #include "observer.inc".
392 * infrun.c (normal_stop): Pass "stop_bpstat" to
393 observer_notify_normal_stop.
394 * Makefile.in (observer_inc): Define.
395 (observer.o): Update dependencies.
396 (observer.h, observer.inc): New rules.
397 * observer.h: Delete file.
398 * observer.sh: New file.
399
400 2004-04-15 Mark Kettenis <kettenis@gnu.org>
401
402 * vax-tdep.c (vax_frame_cache): Fix typo.
403
404 2004-04-14 Mark Kettenis <kettenis@gnu.org>
405
406 * NEWS (New native configurations): Mention NetBSD/vax.
407 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
408 * config/vax/nbsdelf.mh: New file.
409 * config/vax/nbsdaout.mh: New file.
410 * config/vax/nm-nbsd.h: New file.
411 * config/vax/nm-nbsdaout.h: New file.
412
413 * vaxnbsd-tdep.c: New file.
414 * Makefile.in (vaxnbsd-tdep.o): New dependency.
415 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
416 * config/vax/nbsd.mt: New file.
417 * config/vax/tm-nbsd.h: New file.
418
419 * Makefile.in (vaxbsd-nat.o): New dependency.
420
421 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
422 * vax-tdep.c (vax_store_arguments): Remove struct_return and
423 struct_addr arguments. Don't push return value address.
424 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
425 arguments to vax_store_arguments. Store return value address in
426 R1.
427 (vax_store_struct_return, vax_extract_return_value)
428 (vax_store_return_value): Remove functions.
429 (vax_return_value): New function.
430 (vax_gdbarch_init): Set return value. Don't set
431 deprecated_store_struct_return, deprecated_extract_struct_return
432 and deprecated_store_return_value.
433
434 2004-04-14 Andreas Schwab <schwab@suse.de>
435
436 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
437 value buffer.
438 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
439
440 2004-04-14 Mark Kettenis <kettenis@gnu.org>
441
442 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
443 (vax_unwind_dummy_id): New functions.
444 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
445 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
446 variables.
447 (vax_fix_call_dummy): Remove function.
448 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
449 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
450 call_dummy_location, deprecated_call_dummy_words,
451 deprecated_sizeof_call_dummy_words,
452 deprecated_call_dummy_breakpoint_offset,
453 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
454 and deprecated_dummy_write_sp.
455
456 2004-04-13 David Carlton <carlton@kealia.com>
457
458 * MAINTAINERS: Move myself to "paper trail" section.
459
460 2004-04-12 Mark Kettenis <kettenis@gnu.org>
461
462 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
463 "trad-frame.h".
464 (vax_frame_init_saved_regs): Remove function.
465 (vax_sigtramp_saved_pc): Remove function.
466 (vax_frame_saved_pc): Remove function.
467 (vax_frame_args_address): Remove function.
468 (vax_frame_num_args): Rewrite.
469 (vax_frame_chain): Remove function.
470 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
471 VAX_FP_REGNUM.
472 (vax_pop_frame): Likewise.
473 (vax_saved_pc_after_call): Remove function.
474 (struct vax_frame_cache): New structure.
475 (vax_frame_cache): New function.
476 (vax_frame_this_id): New function.
477 (vax_frame_prev_register): New function.
478 (vax_frame_unwind): New variable.
479 (vax_frame_sniffer): New function.
480 (vax_frame_base_address): New function.
481 (vax_frame_args_address): New function.
482 (vax_frame_base): New variable.
483 (vax_unwind_pc): New function.
484 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
485 deprecated_fp_regnum, deprecated_saved_pc_after_call,
486 deprecated_frame_chain, deprecated_frame_saved_pc,
487 deprecated_frame_args_address and
488 deprecated_frame_init_saved_regs.
489 * Makefile.in (vax-tdep.o): Update dependencies.
490
491 * vaxbsd-nat.c: New file.
492
493 * vax-tdep.h: Update copyright year. Adjust comments.
494 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
495 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
496 (vax_regnum): New enum. Replacing...
497 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
498 (VAX_PS_REGNUM): ... these removed macros.
499 * vax-tdep.c (vax_register_name): Remove prototype.
500 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
501 (vax_register_byte, vax_register_raw_size,
502 vax_register_virtual_size, vax_register_virtual_type): Remove
503 functions.
504 (vax_register_type): New function.
505 (vax_breakpoint_from_pc): Reorganize.
506 (vax_gdbarch_init): Set register_type. Don't set
507 deprecated_register_size, deprecated_register_bytes,
508 deprecated_register_byte, deprecated_register_raw_size,
509 deprecated_max_register_raw_size,
510 deprecated_register_virtual_size,
511 deprecated_max_register_virtual_size and
512 deprecated_register_virtual_type. Add comment on stack direction.
513
514 2004-04-11 Mark Kettenis <kettenis@gnu.org>
515
516 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
517 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
518 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
519
520 2004-04-10 Randolph Chung <tausq@debian.org>
521
522 * MAINTAINERS (write after approval): Add myself.
523
524 2004-04-07 Randolph Chung <tausq@debian.org>
525
526 * hppa-tdep.c (hppa_inner_than): Remove.
527 (is_pa_2): Remove unused static variable.
528 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
529
530 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
531
532 * language.h (language_defn): Add new la_post_parser field.
533 * parser-defs.h (null_post_parser): New declaration (default for
534 la_post_parser).
535
536 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
537 insert call to that function.
538 (parse_exp_in_context): New function, including code formerly in
539 parse_exp_1. Calls language-dependent post-parser after
540 prefixification.
541 (parse_expression_in_context): New exported function.
542 (null_post_parser): New definition.
543 * expression.h (parse_expression_in_context): Add declaration.
544
545 * p-lang.c (pascal_language_defn): Add trivial post-parser.
546 * c-lang.c (c_language_defn): Ditto.
547 (cplus_language_defn): Ditto.
548 (asm_language_defn): Ditto.
549 (minimal_language_defn): Ditto.
550 * f-lang.c (f_language_defn): Ditto.
551 * jv-lang.c (java_language_defn): Ditto.
552 * language.c (unknown_language_defn): Ditto.
553 (auto_language_defn): Ditto.
554 (local_language_defn): Ditto.
555 * m2-lang.c (m2_language_defn): Ditto.
556 * scm-lang.c (scm_language_defn): Ditto.
557 * obj-lang.c (objc_language_defn): Ditto.
558
559 2004-04-10 Mark Kettenis <kettenis@gnu.org>
560
561 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
562 (amd64nbsd_mcontext_addr): New function.
563 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
564 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
565 with amd64nbsd_r_reg_offset, instead of building it on the fly.
566
567 * corelow.c (core_xfer_partial): Fix coding standards violation.
568 Add support for TARGET_OBJECT_WCOOKIE.
569
570 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
571 deprecated_pc_in_sigtramp.
572 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
573 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
574 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
575 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
576 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
577 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
578 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
579
580 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
581 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
582 Fix typo.
583
584 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
585 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
586 (amd64_collect_fxsave): Likewise.
587
588 * i386-sol2-tdep.c: Include "gdb_string.h".
589 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
590 name.
591 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
592
593 2004-04-10 Mark Kettenis <kettenis@gnu.org>
594
595 * i386-sol2-tdep.c: Include "solib-svr4.h".
596 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
597 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
598 * config/i386/tm-i386sol2.h: Include :solib.h".
599 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
600 solib-svr4.o and solib-legacy.o.
601 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
602 solib-svr4.o.
603
604 2004-04-09 Mark Kettenis <kettenis@gnu.org>
605
606 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
607 whether a register is supplied by PTRACE_GETFPREGS.
608 (store_inferior_registers): Likewise.
609 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
610 whether a register is supplied by PT_GETFPREGS.
611 (store_inferior_registers): Likewise.
612
613 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
614 * config/i386/linux64.mt (TDEPFILES): Likewise.
615
616 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
617
618 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
619 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
620 the program counter is in the range specified by `struct
621 gdbarch_tdep'.
622 * amd64-linux-tdep.c: Include "symtab.h".
623 (amd64_linux_pc_in_sigtramp): Remove function.
624 (amd64_linux_sigtramp_p): New function.
625 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
626 deprecated_pc_in_sigtramp.
627 * amd64nbsd-tdep.c: Include "symtab.h".
628 (amd64nbsd_sigtramp_p): New function.
629 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
630 deprecated_pc_in_sigtramp.
631 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
632 few comments.
633 (amd64obsd_pc_in_sigtramp): Remove function.
634 (amd64obsd_sigtramp_p): New function.
635 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
636 deprecated_pc_in_sigtramp.
637 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
638 (i386bsd_pc_ins_sigtramp): Remove prototype.
639 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
640 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
641 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
642 the program counter is in the range specified by `struct
643 gdbarch_tdep'.
644 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
645 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
646 (i386_go32_pc_in_sigtramp): Remove function.
647 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
648 Initialize TDEP->sigtramp_p.
649 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
650 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
651 deprecated_pc_in_sigtramp.
652 * i386-linux-tdep.c: Adjust comments.
653 (i386_linux_pc_in_sigtramp): Remove function.
654 (i386_linux_sigtramp_p): New function.
655 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
656 deprecated_pc_in_sigtramp.
657 * i386-nto-tdep.c: Update copyright year.
658 (i386nto_pc_in_sigtramp): Remove function.
659 (i386nto_sigtramp_p): New function.
660 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
661 SP_REGNUM.
662 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
663 deprecated_pc_in_sigtramp.
664 * i386-sol2-tdep.c: Update copyright year.
665 (i386_sol2_pc_in_sigtramp): Remove function.
666 (i386_sol2_sigtramp_p): New function.
667 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
668 deprecated_pc_in_sigtramp.
669 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
670 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
671 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
672 deprecated_sigtramp_start and deprecated_sigtramp_end.
673 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
674 (i386nbsd_pc_in_sigtramp): Remove function.
675 (i386nbsd_sigtramp_p): New function.
676 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
677 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
678 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
679 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
680 (i386obsd_pc_in_sigtramp): Remove function.
681 (i386obsd_sigtramp_p): New function.
682 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
683 functions.
684 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
685 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
686 TDEP->sigtramp_p.
687 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
688 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
689 dependencies.
690
691 * config/i386/i386aout.mt: Remove file.
692
693 * configure.tgt: Remove i[34567]86-*-go32*,
694 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
695 and i[34567]86-*-isc*. Set gdb_target to i386 for
696 i[34567]86-*-netware* and i[34567]86-*-*.
697 * config/i386/i386.mt: New file.
698 * config/i386/embed.mt: Remove file.
699 * config/i386/go32.mt: Remove file.
700 * config/i386/i386nw.mt: Remove file.
701 * config/i386/i386v.mt: Remove file.
702 * config/i386/tm-go32.h: Remove file.
703
704 * tui/tui-hooks.c: Include "readline/readline.h" after
705 "gdb_curses.h" instead of before.
706 * tui/tui-io.c: Likewise.
707
708 * tui/tui.c: Fix typo in comment.
709
710 * sparc64-tdep.c (sparc_address_from_register): Remove function.
711
712 2004-04-08 Andrew Cagney <cagney@redhat.com>
713
714 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
715 (deprecated_exception_support_initialized): Declare.
716 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
717 (initialize_hp_cxx_exception_support)
718 (child_enable_exception_callback): Update.
719 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
720 (deprecated_exception_support_initialized): Rename
721 deprecated_exception_catchpoints_are_fragile and
722 deprecated_exception_support_initialized.
723 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
724
725 * symtab.c (deprecated_hp_som_som_object_present): Rename
726 hp_som_som_object_present.
727 * symtab.h (deprecated_hp_som_som_object_present): Declare.
728 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
729 Update. Delete extern declaration.
730 * valops.c (hp_som_som_object_present): Ditto.
731 * parse.c (deprecated_hp_som_som_object_present)
732 (parse_nested_classes_for_hpacc): Ditto.
733 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
734 * hppa-hpux-tdep.c (hp_som_som_object_present)
735 (initialize_hp_cxx_exception_support): Ditto.
736 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
737 * cp-valprint.c (hp_som_som_object_present)
738 (cp_print_class_method): Ditto.
739 * c-typeprint.c (hp_som_som_object_present):
740 (c_type_print_base): Ditto.
741 * c-exp.y (hp_som_som_object_present): Ditto.
742
743 2004-04-08 Andrew Cagney <cagney@redhat.com>
744
745 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
746 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
747 (frame_unwind_find_by_frame): Re-implement the unwind code so
748 that it can both prepend and append sniffers. Replace
749 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
750 * tramp-frame.c (tramp_frame_append): Use
751 frame_unwind_prepend_unwinder.
752 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
753 frame_unwind_register_unwinder.
754 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
755 tramp_frame_append.
756 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
757 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
758 (mips_linux_init_abi): Update.
759
760 2004-04-08 Kevin Buettner <kevinb@redhat.com>
761
762 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
763 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
764 file support.
765
766 2004-04-07 Kevin Buettner <kevinb@redhat.com>
767
768 * ia64-tdep.c (elf.h): Don't include.
769 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
770
771 2004-04-07 Jason Molenda (jmolenda@apple.com)
772
773 * frame.h: Typeo corrections in comments.
774
775 2004-04-07 Jim Blandy <jimb@redhat.com>
776
777 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
778 %esp and %ebp
779
780 2004-04-07 Mark Kettenis <kettenis@gnu.org>
781
782 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
783 * config/sparc/linux64.mt (TDEPFILES): Likewise.
784 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
785 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
786 and solib-legacy.o.
787 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
788 solib-svr4.o.
789 * config/sparc/tm-sol2.h: Update copyright year. Include
790 "solib.h".
791
792 * sparc-sol2-tdep.c: Update copyright year. Include
793 "solib-svr4.h".
794 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
795 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
796 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
797 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
798 dependencies.
799
800 2004-04-06 Andrew Cagney <cagney@redhat.com>
801
802 * infttrace.c: Include "infttrace.h".
803 * infttrace.h: Include "target.h".
804 * Makefile.in (infttrace_h): Update.
805 (infttrace.o): Update.
806
807 2004-04-06 Andrew Cagney <cagney@redhat.com>
808
809 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
810 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
811 move extern declarations from here ...
812 * infttrace.h: ... to here.
813 * Makefile.in (hppah-nat.o): Update dependencies.
814
815 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
816 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
817 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
818 (hppa_breakpoint_from_pc): Delete.
819
820 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
821
822 2004-04-05 Andrew Cagney <cagney@redhat.com>
823
824 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
825 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
826 <sys/file.h>.
827
828 2004-04-06 Randolph Chung <tausq@debian.org>
829
830 Committed by Andrew Cagney (mechanical change).
831 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
832 exception_catchpoints_are_fragile, find_stub_with_shl_get,
833 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
834 child_enable_exception_callback, current_ex_event,
835 null_symtab_and_line, child_get_current_exception_event,
836 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
837 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
838 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
839 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
840 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
841 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
842 Move hpux-specific definitions ...
843 * hppa-hpux-tdep.c: ... to here.
844
845 2004-04-05 Andrew Cagney <cagney@redhat.com>
846
847 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
848 skip_prologue_using_sal.
849
850 2004-04-05 Andrew Cagney <cagney@redhat.com>
851
852 * config/i386/tm-i386.h: Delete file.
853 * config/i386/tm-vxworks.h: Update copyright, do not include
854 "tm-i386.h".
855 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
856 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
857 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
858 * config/i386/ncr3000.mt (TM_FILE): Delete.
859 * config/i386/interix.mt (TM_FILE): Delete.
860 * config/i386/i386v.mt (TM_FILE): Delete.
861 * config/i386/i386nw.mt (TM_FILE): Delete.
862 * config/i386/i386gnu.mt (TM_FILE): Delete.
863 * config/i386/i386aout.mt (TM_FILE): Delete.
864 * config/i386/embed.mt (TM_FILE): Delete.
865
866 2004-04-05 Kevin Buettner <kevinb@redhat.com>
867
868 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
869 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
870 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
871 (accg7_regnum): New constants.
872 (last_spr_regnum, last_pseudo_regnum): Update.
873 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
874 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
875 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
876 for accg registers.
877 (frv_register_sim_regno): Update spr_map[].
878
879 2004-04-04 Andrew Cagney <cagney@redhat.com>
880
881 * config/mips/xm-riscos.h: Delete.
882 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
883 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
884 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
885 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
886 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
887 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
888 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
889 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
890 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
891 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
892 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
893 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
894 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
895 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
896 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
897 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
898 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
899 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
900 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
901 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
902 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
903 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
904 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
905 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
906 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
907 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
908
909 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
910 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
911 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
912 * configure.host: Remove m680[01]0-sun-sunos3*,
913 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
914 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
915 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
916 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
917 mips-*-riscos*.
918 * NEWS: Mention removed systems.
919
920 2004-04-04 Andrew Cagney <cagney@redhat.com>
921
922 GDB 6.1 release created from 6.1 branch.
923
924 2004-04-04 Andrew Cagney <cagney@redhat.com>
925
926 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
927 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
928 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
929
930 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
931 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
932 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
933
934 2004-04-03 Jim Blandy <jimb@redhat.com>
935
936 * MAINTAINERS: Chris Faylor has changed employers; add him to
937 "paper trail" section, and update his E-mail address.
938
939 2004-04-03 Andrew Cagney <cagney@redhat.com>
940
941 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
942 generic dummy frames.
943 * dummy-frame.c: Update copyright.
944 (dummy_frame_sniffer): Delete check for generic dummy frames.
945
946 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
947 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
948 (REG_PARM_STACK_SPACE): Delete.
949 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
950 Inline reference to REG_PARM_STACK_SPACE.
951
952 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
953 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
954 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
955 (FRAME_BASE_BEFORE_SIGTRAMP)
956 (hppa32_hpux_frame_base_before_sigtramp)
957 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
958 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
959 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
960 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
961 (FRAME_BASE_BEFORE_SIGTRAMP)
962 (hppa64_hpux_frame_base_before_sigtramp)
963 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
964
965 2004-04-03 Andrew Cagney <cagney@redhat.com>
966
967 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
968
969 2004-04-02 Andrew Cagney <cagney@redhat.com>
970
971 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
972 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
973 * dummy-frame.h: Delete out-of-date comments.
974 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
975 * gdbarch.h, gdbarch.c: Re-generate.
976
977 2004-04-02 Joel Brobecker <brobecker@gnat.com>
978
979 Committed by Andrew Cagney <cagney@redhat.com>.
980 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
981 into account an instruction saving a register if we have already
982 seen an earlier instruction saving that same register.
983
984 2004-04-02 Andrew Cagney <cagney@redhat.com>
985
986 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
987 * gdbarch.h, gdbarch.c: Re-generate.
988 * frame.c (legacy_get_prev_frame): Delete references to
989 DEPRECATED_INIT_FRAME_PC_FIRST.
990
991 * infrun.c (pc_in_sigtramp): Delete function.
992 (check_sigtramp2): Inline call to pc_in_sigtramp, use
993 get_frame_type.
994
995 2004-04-02 Andrew Cagney <cagney@redhat.com>
996
997 * infrun.c (handle_step_into_function): Delete code conditional on
998 legacy_frame_p.
999 (handle_inferior_event, step_over_function): Ditto.
1000
1001 2004-04-02 Andrew Cagney <cagney@redhat.com>
1002
1003 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
1004 "previous frame inner to this frame" test.
1005
1006 2004-04-02 Andrew Cagney <cagney@redhat.com>
1007
1008 * frame.c (safe_frame_unwind_memory): New function.
1009 * frame.h (safe_frame_unwind_memory): Declare. Update description
1010 of /safe_/ methods.
1011 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
1012 "next_frame". Use safe_frame_unwind_memory.
1013 (tramp_frame_sniffer): Update call to tramp_frame_start.
1014
1015 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
1016
1017 * dwarf2read.c (dwarf2_objfile_data_key): New.
1018 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
1019 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
1020 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
1021 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
1022 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
1023 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
1024 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
1025 Remove variables.
1026 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
1027 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
1028 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
1029 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
1030 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
1031 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
1032 Remove macros.
1033 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
1034 data.
1035 (dwarf2_locate_sections, dwarf2_build_psymtabs)
1036 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
1037 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
1038 (read_partial_die, read_full_die, read_indirect_string)
1039 (dwarf_decode_line_header, dwarf_decode_macros)
1040 (dwarf2_symbol_mark_computed): Remove use of removed macros.
1041 Update uses of removed variables.
1042 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
1043 of removed macros.
1044 (_initialize_dwarf2_read): New function.
1045 * symfile.h (dwarf2_has_info): Update prototype.
1046 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
1047 * elfread.c (elf_symfile_read): Likewise.
1048
1049 2004-04-01 Jim Blandy <jimb@redhat.com>
1050
1051 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
1052 function for register numbers on all the rs6000-derived targets.
1053 (rs6000_gdbarch_init): Don't register a separate
1054 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
1055 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
1056 variants.
1057
1058 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
1059 numbering.
1060
1061 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1062
1063 * valarith.c: Update copyright notice.
1064 (value_add): Handle range types.
1065 (value_sub): Ditto.
1066 (value_equal): Ditto.
1067 (value_less): Ditto.
1068 (value_neg): Ditto.
1069 (value_complement): Ditto.
1070 (value_binop): Simplify slightly by using is_integral_type and
1071 eliminiating unnecessary COERCE_ENUMs.
1072
1073 2004-03-31 Andrew Cagney <cagney@redhat.com>
1074
1075 * frame.h (frame_unwind_id): Declare.
1076 * frame.c (frame_unwind_id): New function.
1077 (get_prev_frame_1): New function.
1078 (frame_debug_got_null_frame): New function.
1079 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
1080 code proper to prev_frame, update description.
1081 * infrun.c (step_over_function): Use frame_unwind_id.
1082
1083 2004-04-31 J. Brobecker <brobecker@gnat.com>
1084
1085 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
1086 (hppa64_push_dummy_call): Likewise.
1087
1088 2004-03-30 Jim Blandy <jimb@redhat.com>
1089
1090 From Ulrich Weigand:
1091 * utils.c (query): Do not use a va_list variable multiple times.
1092
1093 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
1094
1095 * Makefile.in (linux_nat_h): Update dependencies.
1096 * configure.in: Check for <gnu/libc-version.h>.
1097 * configure: Regenerate.
1098 * config.in: Regenerate.
1099 * linux-nat.h: Include "target.h". Add waitstatus field to
1100 struct lwp_info.
1101 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
1102 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
1103 to.
1104 (lin_lwp_handle_extended): New function. Handle clone events.
1105 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
1106 thread exit events.
1107 (child_wait): Handle clone events.
1108 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
1109 * linux-nat.c (linux_enable_event_reporting): Turn on
1110 PTRACE_O_TRACECLONE.
1111 (linux_handle_extended_wait): Handle clone events.
1112 * thread-db.c: Include <gnu/libc-version.h>.
1113 (struct private_thread_info): Add dying flag.
1114 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
1115 higher.
1116 (attach_thread): Update comments. Handle dying threads.
1117 (detach_thread): Set the dying flag.
1118 (check_event): Always call attach_thread.
1119
1120 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
1121
1122 * mips-tdep.c (mips_pdr_data): New.
1123 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
1124 (_initialize_mips_tdep): Initialize mips_pdr_data.
1125
1126 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
1127
1128 * minsyms.c (install_minimal_symbols): Move dropping leading
1129 char from linkage name from here...
1130 (prim_record_minimal_symbol_and_info): ...to here. Simplify
1131 test for "__gnu_compiled*" symbols.
1132
1133 2004-03-28 Jim Blandy <jimb@redhat.com>
1134
1135 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
1136 registers to temp register r0 and byte stores as prologue
1137 instructions.
1138
1139 2004-03-28 Andrew Cagney <cagney@redhat.com>
1140
1141 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
1142 arm*-*-*.
1143
1144 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
1145
1146 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
1147 and switch the layout to force a display of register window.
1148
1149 2004-02-26 J. Brobecker <brobecker@gnat.com>
1150
1151 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
1152 of the INTEGER class.
1153
1154 2004-03-26 Jim Blandy <jimb@redhat.com>
1155
1156 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
1157 bytes long on PPC GNU/Linux.
1158
1159 2004-03-26 David Carlton <carlton@kealia.com>
1160
1161 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
1162
1163 2004-03-25 Andrew Cagney <cagney@redhat.com>
1164
1165 * PROBLEMS: Add general section titles, remove references to
1166 specific releases.
1167
1168 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
1169
1170 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
1171 INT_REGISTER_SIZE.
1172 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
1173 FP_REGISTER_VIRTUAL_SIZE.
1174 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
1175 of DEPRECATED_REGISTER_RAW_SIZE.
1176 (arm_register_type): Add gdbarch argument.
1177 (arm_register_raw_size, arm_register_virtual_size): Delete.
1178 (arm_register_byte, arm_extract_return_value)
1179 (arm_store_return_value, arm_get_longjmp_target): Update references
1180 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
1181 (arm_gdbarch_init): Likewise. Don't set
1182 deprecated_register_raw_size, deprecated_register_virtual_size,
1183 deprecated_max_register_raw_size,
1184 deprecated_max_register_virtual_size, or
1185 deprecated_max_register_virtual_type. Do set register_type.
1186 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
1187 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
1188 (FP_REGISTER_VIRTUAL_SIZE): Delete.
1189 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
1190 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
1191 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
1192 INT_REGISTER_SIZE.
1193 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
1194 (remote_rdp_store_register): Likewise.
1195
1196 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
1197
1198 * Makefile.in (mips-linux-tdep.o): Update dependencies.
1199 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
1200 to after osabi initialization.
1201 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
1202 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
1203 functions.
1204 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
1205 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
1206 variables.
1207 (mips_linux_init_abi): Append signal trampoline unwinders.
1208
1209 2004-03-24 Andrew Cagney <cagney@redhat.com>
1210
1211 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
1212 * tramp-frame.c: Include "gdb_assert.h".
1213 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
1214 correct sizeof.
1215 (tramp_frame_append): Validate the tramp frame's instructions.
1216 * Makefile.in (tramp-frame.o): Update dependencies.
1217
1218 2004-03-23 Andrew Cagney <cagney@redhat.com>
1219
1220 * trad-frame.h (trad_frame_set_reg_addr): Declare.
1221
1222 2004-03-23 Andrew Cagney <cagney@redhat.com>
1223
1224 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
1225 Nasser as past testsuite/lib/ (and other) maintainers.
1226
1227 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
1228
1229 * infcmd.c (attach_command): Reread symbols if we already have
1230 an exec file.
1231
1232 2004-03-23 Andrew Cagney <cagney@redhat.com>
1233
1234 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
1235
1236 2004-03-23 Andrew Cagney <cagney@redhat.com>
1237
1238 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
1239 * gdbarch.h, gdbarch.c: Re-generate.
1240 * i386obsd-tdep.c (i386obsd_init_abi): Update.
1241 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
1242 * i386bsd-tdep.c (i386bsd_init_abi): Update.
1243 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
1244 (DEPRECATED_SIGTRAMP_START): Update.
1245 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
1246 (DEPRECATED_SIGTRAMP_START): Update.
1247 * blockframe.c (find_pc_sect_partial_function): Update.
1248 * arch-utils.c (legacy_pc_in_sigtramp): Update.
1249
1250 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * remote.c (remote_open_1): Reopen the exec file and reread symbols
1253 if necessary.
1254
1255 2004-03-23 Andrew Cagney <cagney@redhat.com>
1256
1257 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
1258 predicate, deprecate.
1259 * gdbarch.h, gdbarch.c: Re-generate.
1260 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1261 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1262 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
1263 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1264 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
1265 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
1266 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
1267 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
1268 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
1269 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
1270 * blockframe.c (find_pc_partial_function): Update.
1271 * breakpoint.c (bpstat_what): Update.
1272 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
1273 * frv-linux-tdep.c (frv_linux_init_abi): Update.
1274 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
1275 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
1276 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1277 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1278 * i386-nto-tdep.c (i386nto_init_abi): Update.
1279 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
1280 * i386-tdep.c (i386_sigtramp_frame_sniffer)
1281 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
1282 * i386bsd-tdep.c (i386bsd_init_abi): Update.
1283 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
1284 * i386obsd-tdep.c (i386obsd_init_abi): Update.
1285 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
1286 * infrun.c (pc_in_sigtramp): Update.
1287 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
1288 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
1289 * mips-tdep.c (mips_gdbarch_init): Update.
1290 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
1291 * ppc-linux-tdep.c: Update comment.
1292 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
1293 * shnbsd-tdep.c (shnbsd_init_abi): Update.
1294 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
1295 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
1296 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
1297 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
1298 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
1299 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
1300 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
1301 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
1302
1303 2004-03-23 Andrew Cagney <cagney@redhat.com>
1304
1305 * tramp-frame.h, tramp-frame.h: New files.
1306 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
1307 Update rules to include "tramp-frame.h" and "tramp-frame.c".
1308
1309 * Makefile.in: Update all dependencies.
1310
1311 2004-03-23 Andrew Cagney <cagney@redhat.com>
1312
1313 * Makefile.in (trad_frame_h): Add $(frame_h).
1314 * trad-frame.h: Update copyright. Include "frame.h".
1315 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
1316 (trad_frame_set_id, trad_frame_get_id): Declare.
1317 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
1318 * trad-frame.c: Update copyright.
1319 (struct trad_frame_cache): Define.
1320 (trad_frame_cache_zalloc): New function.
1321 (trad_frame_set_id, trad_frame_get_id): New functions.
1322 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
1323
1324 2004-03-22 Andrew Cagney <cagney@redhat.com>
1325
1326 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
1327 s390_pltstub_unwind_cache.
1328 (s390_stub_frame_unwind_cache): Rename
1329 s390_pltstub_frame_unwind_cache.
1330 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
1331 (s390_stub_frame_prev_register): Rename
1332 s390_pltstub_frame_prev_register.
1333 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
1334 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
1335
1336 From Ulrich Weigand:
1337 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
1338 pointer calls like PLT calls.
1339
1340 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
1341
1342 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
1343 PC rather than the partial function start address. Use the start
1344 address to sanity check the found PDR.
1345
1346 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
1347
1348 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
1349 linux_handle_extended_wait.
1350
1351 2004-03-22 Andrew Cagney <cagney@redhat.com>
1352
1353 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
1354 function.
1355
1356 * frame.h (generic_pop_current_frame): Delete declaration.
1357 (deprecate_pop_dummy_frame): Deprecate
1358 generic_pop_dummy_frame.
1359 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
1360 (generic_pop_current_frame): Delete function.
1361 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
1362 generic_pop_current_frame.
1363 * v850-tdep.c (v850_pop_frame): Update.
1364 * mcore-tdep.c (mcore_pop_frame): Update.
1365 * sh64-tdep.c (sh64_pop_frame): Update.
1366 * h8300-tdep.c (h8300_pop_frame): Update.
1367
1368 2004-03-22 Andrew Cagney <cagney@redhat.com>
1369
1370 * frame.h (deprecated_pc_in_call_dummy): Rename
1371 generic_pc_in_call_dummy.
1372 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
1373 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
1374 generic_pc_in_call_dummy.
1375 (pc_in_dummy_frame): Make static.
1376 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
1377 * gdbarch.h, gdbarch.c: Re-generate.
1378 * dummy-frame.c (dummy_frame_sniffer): Simplify.
1379 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
1380 (legacy_get_prev_frame): Ditto.
1381 * inferior.h: Delete reference to generic_pc_in_call_dummy in
1382 comment.
1383
1384 2004-03-21 Andrew Cagney <cagney@redhat.com>
1385
1386 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
1387 declaration and out-of-date comment.
1388 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1389 Delete function.
1390 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1391 deprecated_pc_in_call_dummy.
1392
1393 * infrun.c (handle_inferior_event): For non legacy frames, use the
1394 frame ID and frame type to identify a signal trampoline. Update
1395 comments.
1396
1397 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
1398
1399 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
1400 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1401
1402 2004-03-21 Andrew Cagney <cagney@redhat.com>
1403
1404 * frame-unwind.h: Update copyright.
1405 (struct frame_data): Add opaque declaration.
1406 (frame_sniffer_ftype): Declare.
1407 (struct frame_unwind): Add "unwind_data" and "sniffer".
1408 (frame_unwind_register_unwinder): Declare.
1409 (frame_unwind_find_by_frame): Add parameter "this_cache".
1410 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
1411 (legacy_get_prev_frame, legacy_get_prev_frame)
1412 (get_frame_type): Pass the prologue_cache to
1413 frame_unwind_find_by_frame.
1414 * frame-unwind.c (struct frame_unwind_table_entry): Add field
1415 "unwinder".
1416 (frame_unwind_register_unwinder): New function.
1417 (frame_unwind_find_by_frame): Handle an unwind sniffer.
1418
1419 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
1420
1421 * bcache.c (print_percentage): Use floating point to avoid
1422 incorrect results when portion*100 overflows.
1423
1424 2004-03-19 Kevin Buettner <kevinb@redhat.com>
1425
1426 * ppc_tdep.h (ppc_linux_frame_saved_pc)
1427 (ppc_linux_init_extra_frame_info)
1428 (ppc_linux_frameless_function_invocation)
1429 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
1430 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
1431 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
1432 (rs6000_frame_chain): Delete declarations.
1433 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
1434 (ppc_linux_init_extra_frame_info)
1435 (ppc_linux_frameless_function_invocation)
1436 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
1437 (ppc_linux_init_abi): Remove registration of above deleted functions.
1438 * rs6000-tdep.c (rs6000_init_extra_frame_info)
1439 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
1440 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
1441 (rs6000_pop_frame, rs6000_frameless_function_invocation)
1442 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
1443 (rs6000_gdbarch_init): Remove registration of above deleted functions.
1444 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
1445 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
1446 frame management for all OSABIs.
1447
1448 2004-03-19 Andrew Cagney <cagney@redhat.com>
1449
1450 Committed by Kevin Buettner <kevinb@redhat.com>.
1451
1452 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
1453 Update copyright.
1454 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
1455 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
1456 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
1457 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
1458 unwinders. #ifdef legacy frame code.
1459 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
1460 "frame-base.h".
1461 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
1462 (struct rs6000_frame_cache, rs6000_frame_cache)
1463 (rs6000_frame_this_id, rs6000_frame_prev_register)
1464 (rs6000_frame_sniffer, rs6000_frame_unwind)
1465 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
1466 (rs6000_frame_base): Implement a traditional frame unwinder.
1467 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
1468 frame unwinder.
1469
1470 2004-03-19 Kevin Buettner <kevinb@redhat.com>
1471
1472 * breakpoint.c (adjust_breakpoint_address): Don't adjust
1473 breakpoint address for watchpoints or the catch eventpoints.
1474 Add new paramter ``bptype''. Adjust all callers.
1475
1476 2004-03-19 Andrew Cagney <cagney@redhat.com>
1477
1478 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
1479
1480 * PROBLEMS: Delete note that ARM does not use frame code, problem
1481 fixed.
1482
1483 2004-03-18 Andrew Cagney <cagney@redhat.com>
1484
1485 * stack.c (return_command): Delete code wrapped in #ifdef
1486 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
1487
1488 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
1489
1490 2004-03-18 Andrew Cagney <cagney@redhat.com>
1491
1492 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
1493 DEPRECATED_IN_SIGTRAMP.
1494 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1495 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
1496 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1497 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1498 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1499 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1500 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1501 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
1502 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
1503 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
1504
1505 2004-03-18 Andrew Cagney <cagney@redhat.com>
1506
1507 * frame-base.c: Update copyright. Include "gdb_obstack.h".
1508 (struct frame_base_table_entry): Define.
1509 (struct frame_base_table): Re-implement as a linked list.
1510 (frame_base_init): Re-implement.
1511 (frame_base_table): Delete function.
1512 (append_predicate): Delete function.
1513 (frame_base_append_sniffer): Update.
1514 (frame_base_set_default): Update.
1515 (frame_base_find_by_frame): Update.
1516 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
1517 * Makefile.in (frame-base.o): Update dependencies.
1518
1519 2004-03-17 Andrew Cagney <cagney@redhat.com>
1520
1521 * frame.c (legacy_get_prev_frame): Pass correct frame to
1522 frame_unwind_find_by_frame.
1523
1524 2004-03-17 David Carlton <carlton@kealia.com>
1525
1526 * NEWS: Mention C++ nested types and namespaces
1527
1528 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
1529
1530 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
1531 and "Regressions since gdb 5.3.". Add known regressions since
1532 gdb 6.0.
1533
1534 2004-03-16 David Carlton <carlton@kealia.com>
1535
1536 * dwarf2read.c (process_structure_scope): Process children even
1537 when we're a declaration.
1538
1539 2004-03-16 Andrew Cagney <cagney@redhat.com>
1540
1541 * symtab.h (find_pc_sect_partial_function): Delete declaration.
1542 * blockframe.c (find_pc_partial_function)
1543 (find_pc_sect_partial_function): Merge into a single
1544 find_pc_partial_function.
1545
1546 2004-03-16 Mark Kettenis <kettenis@gnu.org>
1547
1548 * i386bsd-nat.c: s/regno/regnum/g.
1549 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
1550 FP0_REGNUM.
1551 (store_inferior_registers): Likewise.
1552
1553 2004-03-16 Mark Kettenis <kettenis@gnu.org>
1554
1555 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
1556 of i387_fill_fsave.
1557 (store_inferior_registers): Call i387_collect_fsave and
1558 i387_collect_fxsave instead of i387_fill_fsave and
1559 i387_fill_fxsave.
1560
1561 2004-03-15 Andrew Cagney <cagney@redhat.com>
1562
1563 * Makefile.in (frame-unwind.o): Update dependencies.
1564 * frame-unwind.c: Include "gdb_obstack.h".
1565 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
1566 parameter.
1567 (append_predicate): Delete function.
1568 (struct frame_unwind_table_entry): New structure.
1569 (struct frame_unwind_table): Replace "sniffer" with "head" and
1570 "tail".
1571 (frame_unwind_append_sniffer): Update.
1572 (frame_unwind_find_by_frame): Update.
1573 (_initialize_frame_unwind): Registe frame_unwind_init using
1574 gdbarch_data_register_pre_init.
1575
1576 2004-03-15 Mark Kettenis <kettenis@gnu.org>
1577
1578 * i386bsd-nat.c: Update copyright year.
1579 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
1580 define unconditionally.
1581
1582 2004-03-15 Mark Kettenis <kettenis@gnu.org>
1583
1584 * i387-tdep.h (i387_collect_fsave): New prototype.
1585 * i387-tdep.c (i387_collect_fsave): New function containing most
1586 of the code from i387_fill_fsave.
1587 (i387_fill_fsave): Call i387_collect_fsave.
1588
1589 2004-03-15 Mark Kettenis <kettenis@gnu.org>
1590
1591 * i386-linux-tdep.c: Update copyright year.
1592 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
1593 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
1594 svr4_ilp32_link_map_offsets instead of
1595 i386_linux_svr4_fetch_link_map_offsets.
1596
1597 2004-03-15 David Carlton <carlton@kealia.com>
1598
1599 Fix for PR c++/1553:
1600 * dwarf2read.c (read_structure_type): Determine type name by
1601 calling determine_class_name.
1602 (determine_class_name): New.
1603 (determine_prefix): Look at TYPE_TAG_NAME and call
1604 determine_class_name when appropriate.
1605 (determine_prefix_aux, class_name): Delete.
1606 (read_namespace): Set die->type.
1607
1608 2004-03-15 Kevin Buettner <kevinb@redhat.com>
1609
1610 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
1611 unused macro definition. The definition in target.h (or perhaps
1612 elsewhere) takes precedence.
1613
1614 2004-03-15 Andrew Cagney <cagney@redhat.com>
1615
1616 * ppc-tdep.h: Update copyright.
1617 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
1618 function signatures to match "regsets.h".
1619 * ppc-linux-tdep.c: Include "regset.h".
1620 (ELF_GREGSET_SIZE): Delete.
1621 (right_supply_register): New function.
1622 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
1623 using right_supply_register.
1624 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
1625 functions.
1626 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
1627 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
1628 (_initialize_ppc_linux_tdep): Do not register
1629 ppc_linux_regset_core_fns.
1630 (ppc_linux_regset_from_core_section): Replace
1631 fetch_core_registers.
1632 (ppc_linux_regset_core_fns): Delete.
1633 * ppc-linux-nat.c: (right_fill_reg): New function.
1634 (supply_gregset): Update call to ppc_linux_supply_gregset.
1635 (fill_gregset): Clear the register set, use right_fill_reg.
1636 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
1637 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
1638
1639 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
1640 unsigned.
1641
1642 2004-03-15 Andrew Cagney <cagney@redhat.com>
1643
1644 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
1645 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
1646 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
1647 and register_gdbarch_data.
1648 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
1649 (struct gdbarch_data): Replace "init" by "pre_init" and
1650 "post_init".
1651 * gdbarch.h, gdbarch.c: Re-generate.
1652 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
1653 with"obstack", use OBSTACK_ZALLOC.
1654 (dwarf2_frame_ops): Delete.
1655 (dwarf2_frame_set_init_reg): Use gdbarch_data.
1656 (dwarf2_frame_init_reg): Use gdbarch_data.
1657 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
1658 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
1659 (_initialize_svr4_solib): Update.
1660 * user-regs.c (_initialize_user_regs): Update.
1661 * reggroups.c (_initialize_reggroup): Update.
1662 * regcache.c (_initialize_regcache): Update.
1663 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1664 * libunwind-frame.c (_initialize_libunwind_frame): Update.
1665 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1666 * frame-unwind.c (_initialize_frame_unwind): Update.
1667 * frame-base.c (_initialize_frame_base): Update.
1668 * user-regs.c (user_reg_add): Update.
1669 * reggroups.c (reggroup_add): Update.
1670 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
1671 * libunwind-frame.c (libunwind_frame_set_descr): Update.
1672 * frame-unwind.c (frame_unwind_append_sniffer): Update.
1673 * frame-base.c (frame_base_table): Update.
1674 * remote.c (_initialize_remote): Update.
1675 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
1676
1677 2004-03-15 Andrew Cagney <cagney@redhat.com>
1678
1679 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
1680
1681 2004-03-15 Kevin Buettner <kevinb@redhat.com>
1682
1683 * Makefile.in (frv-linux-tdep.o): Add dependencies.
1684 * frv-linux-tdep.c: New file.
1685 * frv-tdep.c (struct gdbarch_tdep): Add new field
1686 ``sigcontext_reg_addr''.
1687 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
1688 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1689 (frv_sigramp_frame_sniffer): New functions.
1690 (frv_sigtramp_frame_unwind): New static global.
1691 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
1692 sniffers.
1693 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
1694 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
1695
1696 2004-03-15 Kevin Buettner <kevinb@redhat.com>
1697
1698 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
1699 but not via a call to error(), when unable to read memory.
1700
1701 2004-03-15 Kevin Buettner <kevinb@redhat.com>
1702
1703 * frv-tdep.c (frv_call_dummy_words): Delete.
1704 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
1705
1706 2004-03-15 Andrew Cagney <cagney@redhat.com>
1707
1708 * infrun.c (handle_step_into_function, step_over_function): Only
1709 update and use STEP_FRAME_ID when the system is using legacy
1710 frames. Update comments.
1711
1712 2004-03-14 Mark Kettenis <kettenis@gnu.org>
1713
1714 * amd64-linux-tdep.h: Remove file.
1715 * amd64-linux-tdep.c: Don't include "inferior.h" and
1716 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
1717 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
1718 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
1719 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
1720 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
1721 macros.
1722 (user_to_gdb_regmap): Remove variable.
1723 (amd64_linux_gregset_reg_offset): New variable.
1724 (amd64_core_fns): Remove variable.
1725 (fetch_core_registers): Remove function.
1726 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
1727 functions.
1728 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
1729 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
1730 * Makefile.in (amd64_linux_tdep_h): Remove.
1731 (amd64-linux-nat.o): Update dependencies.
1732 (amd64-linux-tdep.o): Update dependencies.
1733
1734 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1735 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
1736 functions.
1737 (fetch_inferior_registers, store_inferior_registers): Rewrite.
1738
1739 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
1740 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
1741
1742 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
1743
1744 * dwarf2read.c (read_structure_type): Rename from
1745 read_structure_scope. Don't create a symbol or call process_die.
1746 Return immediately if die->type is set. Call read_type_die before
1747 dwarf2_add_member_fn.
1748 (process_structure_scope): New function.
1749 (read_enumeration_type, process_enumeration_scope): New functions,
1750 broken out from read_enumeration. Don't create the enumeration
1751 type if it has already been created.
1752 (read_enumeration): Removed.
1753 (process_die): Call read_structure_type, process_structure_scope,
1754 read_enumeration_type, and process_enumeration_scope. Just call
1755 new_symbol for base and subrange types. Add a comment about other
1756 type dies.
1757 (read_type_die): Call read_enumeration_type.
1758 (add_partial_structure, new_symbol): Update comments.
1759
1760 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
1761
1762 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
1763
1764 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
1765
1766 * tui/tui-win.h (tui_get_cmd_list): Declare.
1767 * tui/tui-win.c (tui_command): New function.
1768 (tui_get_cmd_list): New function.
1769 (_initialize_tui_win): Moved initialization of tui command in
1770 tui_get_cmd_list.
1771
1772 * tui/tui-data.c (init_content_element): Setup new data members.
1773 (init_win_info): Likewise.
1774 (free_content_elements): Free it.
1775 * tui/tui-data.h (struct tui_data_element): Store the register
1776 content to print.
1777 (struct tui_data_info): Keep the current register group.
1778
1779 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
1780
1781 * tui/tui-regs.h (tui_show_registers): Update prototype.
1782 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
1783 (tui_resize_all): No need to calculate anything for register window.
1784 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
1785 (tui_set_register_element, tui_set_general_regs_content): Remove.
1786 (tui_set_special_regs_content): Remove.
1787 (tui_set_general_and_special_regs_content): Remove.
1788 (tui_set_float_regs_content): Remove.
1789 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
1790 (tui_set_regs_content): Remove.
1791 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
1792 (tui_v_show_registers_command_support): Remove.
1793 (tui_show_registers): Use a reggroup to specify the registers to show.
1794 (tui_show_register_group): New function.
1795 (tui_display_registers_from): Compute the layout of register window
1796 and refresh with new API; be sure to delete old register windows.
1797 (tui_check_register_values): Update to use tui_get_register and
1798 tui_display_data.
1799 (tui_display_register): Just refresh the register window part.
1800 (tui_register_format): Format registers and save in tui_data_element.
1801 (tui_get_register): New to combine tui_reg_value_has_changed and
1802 tui_get_register_raw_value; fix to use the new gdb API.
1803 (tui_show_float_command): Renamed tui_reg_float_command.
1804 (tui_show_general_command): Renamed tui_reg_general_command.
1805 (tui_show_special_command): Renamed tui_reg_system_command.
1806 (_initialize_tui_regs): Remove unused commands.
1807
1808 2004-03-13 Mark Kettenis <kettenis@gnu.org>
1809
1810 * NEWS (New native configurations): Mention OpenBSD/amd64.
1811
1812 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
1813 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
1814 Remove defines.
1815 * config/i386/nm-fbsd64.h: Likewise.
1816 * config/i386/nm-obsd.h: Likewise.
1817 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
1818 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
1819
1820 2004-03-12 Kevin Buettner <kevinb@redhat.com>
1821
1822 * frv-tdep.c (set_variant_scratch_registers): New function.
1823 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
1824 New constants.
1825
1826 From Richard Sandiford <rsandifo@redhat.com>:
1827 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
1828
1829 2004-03-12 Kevin Buettner <kevinb@redhat.com>
1830
1831 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
1832 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
1833 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
1834 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
1835 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
1836 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
1837 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
1838 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
1839 definitions from frv-tdep.c to frv-tdep.h.
1840
1841 2004-03-12 Kevin Buettner <kevinb@redhat.com>
1842
1843 Add shared library support for FR-V FDPIC ABI:
1844 * Makefile.in (solib-frv.o): Add dependencies.
1845 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
1846 New functions.
1847 (frv_push_dummy_call): Add support for FDPIC ABI.
1848 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
1849 for FDPIC ABI.
1850 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
1851 (frv_fdpic_find_canonical_descriptor): Declare.
1852 * solib-frv.c: New file.
1853 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
1854 * config/frv/tm-frv.h (solib.h): Include.
1855
1856 2004-03-12 Kevin Buettner <kevinb@redhat.com>
1857
1858 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
1859 (frv-tdep.o): Update dependencies.
1860 * frv-tdep.h: New file.
1861 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
1862 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
1863 constants.
1864 (struct gdbarch_tdep): Add new member ``frv_abi''.
1865 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
1866 functions.
1867 (new_variant): Set ``frv_abi'' field.
1868 (gdb_arch_init): Detect FDPIC executables.
1869
1870 2004-03-12 Mark Kettenis <kettenis@gnu.org>
1871
1872 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
1873 wrapper.
1874
1875 2004-03-11 Andrew Cagney <cagney@redhat.com>
1876
1877 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
1878
1879 2004-03-11 Kevin Buettner <kevinb@redhat.com>
1880
1881 * solist.h (master_so_list): New function.
1882 * solib.c (master_so_list): Likewise.
1883 * solib-svr4.c (enable_break): Iterate over so_list entries
1884 obtained from master list instead of entries obtained directly
1885 via svr4_current_sos().
1886
1887 2004-03-10 Ben Elliston <bje@gnu.org>
1888
1889 * MAINTAINERS: Update my mail address.
1890
1891 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1892
1893 * remote-m32r-sdi.c: Support hardware watchpoint.
1894
1895 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1896
1897 * user-regs.c: Update copyright years.
1898 (struct user_regs): Rename to gdb_user_regs.
1899 (append_user_reg, builtin_user_regs, user_regs_init)
1900 (user_reg_add, user_reg_map_name_to_regnum)
1901 (usernum_to_user_reg): Update.
1902
1903 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1904
1905 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
1906 (skip_children): New functions.
1907 (locate_pdi_sibling): Call skip_children.
1908
1909 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1910
1911 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
1912 * gdbtypes.c (check_typedef): Update comments.
1913
1914 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1915
1916 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
1917 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
1918 pointer. Update comment about comp_unit_head.
1919 (struct abbrev_info): Shorten two int flags.
1920 (dwarf_alloc_abbrev): Take a CU argument.
1921 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
1922 each time through the loop. Update cleanup argument.
1923 (psymtab_to_symtab_1): Update cleanup call.
1924 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
1925 abbrev_obstack.
1926 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
1927 Just call obstack_free and clear the pointer.
1928
1929 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1930
1931 * infrun.c (handle_inferior_event): Remove short-circuit code for
1932 events in a different thread.
1933
1934 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1935
1936 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
1937 print the whole transfer.
1938 (initialize_targets): Update description of "set debug target".
1939
1940 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
1941
1942 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
1943
1944 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
1945
1946 * MAINTAINERS (write after approval): Add myself.
1947
1948 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
1949
1950 * sh-tdep.c (sh_print_registers_info): Use for loop.
1951 Don't skip multiple registers when a float register is encountered.
1952
1953 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
1954
1955 Fix PR tdep/1291.
1956 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
1957 to official SH documentation.
1958
1959 2004-03-07 Andrew Cagney <cagney@redhat.com>
1960
1961 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
1962 unused function.
1963
1964 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
1965
1966 * arm-tdep.c (thumb_get_next_pc): Handle BX.
1967 (arm_get_next_pc): Handle BX and BLX.
1968
1969 2004-03-07 Andrew Cagney <cagney@redhat.com>
1970
1971 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
1972 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
1973 HPPA_SP_REGNUM.
1974 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
1975 (hppa_target_read_fp): Delete.
1976 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
1977 register_virtual_size, max_register_raw_size,
1978 max_register_virtual_size, register_byte, register_size,
1979 target_read_fp, fp_regnum, and register_bytes. Set register_type
1980 instead of register_virtual_type.
1981 (hppa32_register_type, hppa64_register_type): Replace
1982 hppa32_register_virtual_type and hppa64_register_virtual_type.
1983 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
1984 (HPPA_FP_REGNUM): Define.
1985
1986 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
1987
1988 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
1989 (pa_do_registers_info): Delete.
1990 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
1991 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
1992 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
1993
1994 * infcall.c (legacy_push_dummy_code): Delete #ifdef
1995 GDB_TARGET_IS_HPPA code.
1996 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
1997 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
1998 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
1999 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
2000 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
2001 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
2002 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
2003 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
2004 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
2005 (hppa_frameless_function_invocation, hppa64_store_return_value)
2006 (hppa_store_struct_return, hppa64_extract_return_value)
2007 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
2008 (hppa32_call_dummy_length, hppa64_call_dummy_length)
2009 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
2010 (find_proc_framesize, deposit_21, restore_pc_queue)
2011 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
2012 (rp_saved, pc_in_linker_stub): Delete.
2013
2014 Unconditionally enable 64-bit frame and ABI code.
2015 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
2016 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
2017 push_dummy_frame, fix_call_dummy, push_arguments,
2018 call_dummy_location, extract_return_value, use_struct_convention,
2019 store_return_value, store_struct_return, saved_pc_after_call,
2020 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
2021 frame_chain, frame_chain_valid, frameless_function_invocation,
2022 frame_saved_pc, and pop_frame.
2023
2024 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
2025 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
2026 (hppa_gdbarch_init): Do not set PC_REGNUM.
2027
2028 2004-03-06 Mark Kettenis <kettenis@gnu.org>
2029
2030 * config/alpha/tm-fbsd.h: Remove file.
2031 * config/alpha/fbsd.mt: Tweak comment.
2032 (TM_FILE): Set to tm-alpha.h.
2033
2034 2004-03-05 Andrew Cagney <cagney@redhat.com>
2035
2036 * infrun.c (step_over_function): When non-legacy code, and no
2037 step_frame_id, use the unwinder to get the caller's frame ID.
2038
2039 2004-03-05 Mark Kettenis <kettenis@gnu.org>
2040
2041 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
2042 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
2043 bfd_arch_unknown. Adjust comment.
2044
2045 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
2046 * i386obsd-tdep.c: Correct spelling in comment.
2047 * i386nbsd-tdep.c: Correct spelling in comment.
2048 * sparc-tdep.c: Correct spelling in comments.
2049
2050 2004-03-05 David Carlton <carlton@kealia.com>
2051
2052 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
2053 bug.
2054
2055 2004-03-05 Mark Kettenis <kettenis@gnu.org>
2056
2057 * sparc-tdep.c: Fix typo in comment.
2058
2059 2004-03-04 J. Brobecker <brobecker@gnat.com>
2060
2061 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
2062
2063 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
2064
2065 * dwarf2read.c: Add comment describing memory lifetimes.
2066 (struct dwarf2_pinfo): Update comment.
2067 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
2068 (read_enumeration, new_symbol): Don't use obsavestring.
2069
2070 2004-03-04 Mark Kettenis <kettenis@gnu.org>
2071
2072 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
2073 instead of amd64_fill_fxsave.
2074 * amd64bsd-nat.c (store_inferior_registers): Likewise.
2075 * amd64fbsd-nat.c (fill_fpregset): Likewise.
2076
2077 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
2078 Reorganize code a bit.
2079
2080 2004-03-04 Orjan Friberg <orjanf@axis.com>
2081
2082 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
2083 when the frame pointer is pushed. Don't set the frame pointer's
2084 address on the stack unless it's actually located there.
2085 Set the SRP's address on the stack correctly when the PC is still in
2086 the prologue.
2087 (cris_return_value): New function.
2088 (cris_gdbarch_init): Clear deprecated store_return_value,
2089 extract_return_value.
2090
2091 2004-03-02 Jim Blandy <jimb@redhat.com>
2092
2093 * stabsread.c (reg_value_complaint): The maximum register number
2094 is one less than the number of registers.
2095
2096 2004-03-02 Andrew Cagney <cagney@redhat.com>
2097
2098 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
2099 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
2100 trailing comma and redundant assignment of I386_ST0_REGNUM.
2101 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
2102 32-bit segment registers.
2103
2104 2004-03-01 Andrew Cagney <cagney@redhat.com>
2105
2106 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
2107 use frame_relative_level and get_next_frame.
2108
2109 2004-02-29 Andrew Cagney <cagney@redhat.com>
2110
2111 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
2112 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
2113 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
2114 Delete macro.
2115
2116 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2117
2118 * inflow.c (terminal_inferior): Don't give up the terminal if we
2119 previously couldn't get the inferior's terminal state.
2120
2121 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
2122
2123 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
2124 PC_REGNUM.
2125
2126 2004-02-28 Andrew Cagney <cagney@redhat.com>
2127
2128 * NEWS: Refer to GDB 6.1.
2129 * README: Refer to GDB 6.1.
2130 * PROBLEMS: Refer to GDB 6.1.
2131
2132 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
2133
2134 * thread-db.c (disable_thread_signals): Remove unused function.
2135
2136 2004-02-28 Mark Kettenis <kettenis@gnu.org>
2137
2138 * amd64-nat.c: Include "gdb_string.h".
2139 (amd64_collect_native_gregset): Zero-extend the 32-bit
2140 general-purpose registers and %eip.
2141
2142 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
2143 * amd64-tdep.c (amd64_collect_fxsave): New function.
2144 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
2145
2146 * i387-tdep.h: Update copyright year.
2147 (i387_collect_fxsave): New prototype.
2148 * i387-tdep.c: Update copyright year.
2149 (i387_collect_fxsave): New function containing most of the code
2150 from i387_fill_fxsave.
2151 (i387_fill_fxsave): Call i387_collect_fxsave.
2152
2153 2004-02-28 Andrew Cagney <cagney@redhat.com>
2154
2155 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
2156 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
2157
2158 2004-02-28 Mark Kettenis <kettenis@gnu.org>
2159
2160 * amd64-tdep.c (amd64_frame_cache): Fix comment.
2161
2162 2004-02-28 Andrew Cagney <cagney@redhat.com>
2163
2164 * utils.c: Use "", instead of <>, to include readline.
2165 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
2166 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
2167 * source.c, solib.c, exec.c, event-top.c: Ditto.
2168 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
2169 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
2170 * Makefile.in: Update all dependencies.
2171 (readline_tilde_h, readline_history_h): Define.
2172 (readline_headers): Delete.
2173
2174 2004-02-28 Mark Kettenis <kettenis@gnu.org>
2175
2176 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
2177 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
2178 "config/i386/tm-lx64.h".
2179
2180 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
2181 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
2182 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
2183
2184 2004-02-28 Andrew Cagney <cagney@redhat.com>
2185
2186 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
2187
2188 * breakpoint.c (_initialize_breakpoint): Use
2189 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
2190 Add help to show command.
2191
2192 2004-02-28 Mark Kettenis <kettenis@gnu.org>
2193
2194 * i386-nat.c: Reformat to be closer to coding standards.
2195 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
2196 `retval'. Make variables `align' and `size' local to while-loop.
2197 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
2198 (_initialize_i386_nat): New prototype.
2199
2200 * tui/tui.c: Include <readline/readline.h> instead of
2201 "readline/readline.h". Include it after <term.h> and
2202 "gdb_curses.h".
2203
2204 2004-02-27 Andrew Cagney <cagney@redhat.com>
2205
2206 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
2207 the new frame unwind code.
2208 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
2209 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
2210 PCOQ_HEAD_REGNUM.
2211
2212 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
2213 "return_value" and "push_dummy_call".
2214 (hppa32_use_struct_convention): Delete unused function.
2215 (hppa32_store_return_value): Delete unused function.
2216 (hppa32_extract_return_value): Delete unused function.
2217 (hppa32_stack_align): Delete function.
2218
2219 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
2220
2221 * coffread.c (enter_linenos): Don't let rawptr reference memory
2222 outside linetab[]'s limits.
2223
2224 2004-02-27 Andrew Cagney <cagney@redhat.com>
2225
2226 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
2227 inferior stack space - the stack needs to grow upwards.
2228 (hppa32_frame_align): New function.
2229 (hppa64_frame_align): Replace hppa_frame_align.
2230 (hppa_gdbarch_init): Update.
2231
2232 2004-02-26 Orjan Friberg <orjanf@axis.com>
2233
2234 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
2235 (dwarf2-frame.h): Include.
2236 (enum cris_regnums): New enum CRIS_FP_REGNUM.
2237 Remove static variables related to ABI setting.
2238 (struct gdbarch_tdep): Remove cris_abi member.
2239 (struct frame_extra_info): Remove.
2240 (cris_unwind_cache, stack_item): New structs.
2241 (cris_frame_unwind, cris_frame_base): New variables.
2242 (push_stack_item, pop_stack_item)
2243 (cris_frame_unwind_cache, cris_frame_this_id)
2244 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
2245 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
2246 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
2247 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
2248 (cris_reg_struct_has_addr): New functions.
2249 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
2250 (cris_frame_saved_pc, cris_saved_pc_after_call,
2251 (cris_store_struct_return, cris_frameless_function_invocation)
2252 (cris_pop_frame, cris_skip_prologue_main)
2253 (cris_abi_original_store_return_value)
2254 (cris_abi_v2_store_return_value)
2255 (cris_abi_original_extract_return_value)
2256 (cris_abi_v2_extract_return_value)
2257 (cris_abi_original_reg_struct_has_addr)
2258 (cris_abi_v2_reg_struct_has_addr)
2259 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
2260 (cris_push_return_address, cris_abi_update): Remove.
2261 (_initialize_cris_tdep): Remove ABI command.
2262 (cris_dump_tdep): Ditto.
2263 (cris_gdbarch_init): Remove ABI command.
2264 Set store_return_value, extract_return_value, push_dummy_code,
2265 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
2266 frame_unwind_append_sniffer, frame_base_set_default.
2267 Clear deprecated init_frame_pc, push_arguments, store_return_value,
2268 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
2269 sizeof_call_dummy_words, get_saved_register, push_return_address,
2270 pop_frame, store_struct_return, frame_init_saved_regs,
2271 init_extra_frame_info, frameless_function_invocation, frame_chain,
2272 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
2273 dummy_write_sp.
2274
2275 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
2276
2277 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
2278 * valprint.c (print_hex_chars): Change from static to external.
2279 (print_char_chars): New function.
2280 * printcmd.c (print_scalar_formatted): For integer and enum types
2281 that are longer than LONGEST, perform processing via appropriate
2282 print_*_chars routines.
2283
2284 2004-02-26 Andrew Cagney <cagney@redhat.com>
2285
2286 * Makefile.in: Update dependencies.
2287 Changes from Ulrich Weigand,
2288 * s390-tdep.c: Include "dwarf2-frame.h".
2289 (s390_dwarf2_frame_init_reg): New function.
2290 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
2291 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
2292
2293 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
2294
2295 * breakpoint.c (pending_break_support): New setting variable.
2296 (break_command_1): Account for pending_break_support setting
2297 when creating pending breakpoints.
2298 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
2299 (_initialize_breakpoint): Add "set breakpoint pending" and
2300 "show breakpoint pending" commands.
2301
2302 2004-02-26 Andrew Cagney <cagney@redhat.com>
2303
2304 Fix PR i18n/1570.
2305 * charset.c (backslashable, backslashed, represented): Remove 'e'
2306 from list of escaped characters, not part of ISO-C.
2307
2308 2004-02-25 J. Brobecker <brobecker@gnat.com>
2309
2310 From Peter Schauer <schauer@pdf.de>:
2311 * tui/tui.c: Move system header includes after local includes.
2312 Fixes a build failure on solaris systems.
2313
2314 2004-02-25 J. Brobecker <brobecker@gnat.com>
2315
2316 * configure.in: Refine the previous change.
2317 * configure: Regenerate.
2318
2319 2004-02-25 Mark Kettenis <kettenis@gnu.org>
2320
2321 * amd64-tdep.h: Renamed from x86-64-tdep.h.
2322 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
2323 "amd64-tdep.h" instead of "x86-64-tdep.h".
2324 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
2325 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
2326 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
2327 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
2328 and "x86-64-tdep.c".
2329 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
2330 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
2331 and "x86-64-tdep.c".
2332 * amd64bsd-nat.c: Update copyright year.
2333 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
2334 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
2335 "x86-64-tdep.h".
2336 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
2337 "x86-64-tdep.h".
2338 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
2339 "x86-64-tdep.h".
2340 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
2341 "x86-64-tdep.h".
2342 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
2343 "x86-64-tdep.h".
2344 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
2345 "x86-64-tdep.h".
2346 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
2347 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
2348 * Makefile.in (amd64_linux_tdep_h): Renamed from
2349 x86_64_linux_tdep_h.
2350 (amd64_tdep_h): Renamed from x86_64_tdep_h.
2351 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
2352 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
2353 (amd64obsd-tdep.o): Update dependencies.
2354 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
2355 dependencies.
2356 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
2357 dependencies.
2358 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
2359 amd64-linux-nat.c amd64-linux-tdep.c.
2360 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
2361 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
2362 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
2363 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
2364 amd64-tdep.o and amd64-linux-tdep.o.
2365 (TM_FILE): Set to tm-linux64.h.
2366 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
2367 (NAT_FILE): Set to nm-linux64.h.
2368 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
2369 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2370 amd64-tdep.o.
2371 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2372 amd64-tdep.o.
2373 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2374 amd64-tdep.o.
2375
2376 2004-02-25 Roland McGrath <roland@redhat.com>
2377
2378 * remote.c (remote_protocol_qPart_auxv): New variable.
2379 (init_all_packet_configs): Initialize it.
2380 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
2381 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
2382 (show_remote_cmd): Call it.
2383 (_initialize_remote): Initialize commands.
2384 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
2385 service TARGET_OBJECT_AUXV requests.
2386
2387 2004-02-25 J. Brobecker <brobecker@gnat.com>
2388
2389 * configure.in: Make sure that the wborder function is available.
2390 Otherwise, search for it in the cur_colr library.
2391 * configure: Regenerate.
2392
2393 2004-02-25 Andrew Cagney <cagney@redhat.com>
2394
2395 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
2396
2397 2004-02-25 Mark Kettenis <kettenis@gnu.org>
2398
2399 * config/i386/tm-x86-64linux.h: Tweak comments.
2400
2401 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
2402
2403 * MAINTAINERS: Add self to write-after-approval list.
2404
2405 2004-02-25 Andrew Cagney <cagney@redhat.com>
2406
2407 PR cli/1566. Problem found, and fix suggested by David Allan.
2408 * cli/cli-script.c (execute_control_command): Unconditionally
2409 install a cleanup. Default "ret" to "invalid_control". Use
2410 "break" instead of "return" to escape from the switch.
2411
2412 2004-02-24 J. Brobecker <brobecker@gnat.com>
2413
2414 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
2415 with the lines macro defined in term.h on AiX.
2416 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
2417 a collision with the label_width macro defined in term.h on AiX.
2418
2419 2004-02-23 David Mosberger <davidm@hpl.hp.com>
2420
2421 Committed by Kevin Buettner <kevinb@redhat.com>.
2422
2423 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
2424 * ia64-tdep.c (ia64_write_pc): Make it a global function.
2425 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
2426 instead of ia64_write_pc().
2427 * ia64-linux-tdep.c (regcache.h): Include.
2428 (ia64_linux_write_pc): New function.
2429
2430 2004-02-23 Roland McGrath <roland@redhat.com>
2431
2432 * auxv.c (info_auxv_command): Fix typos in error messages.
2433
2434 2004-02-23 Mark Kettenis <kettenis@gnu.org>
2435
2436 * x86-64-tdep.h: Tweak comment.
2437 (enum amd64_regnum): New.
2438 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
2439 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
2440 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
2441 (X86_64_XMM1_REGNUM): Removed.
2442 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
2443 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
2444 prototypes for renamed functions.
2445 * x86-64-tdep.c: Fix typo.
2446 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
2447 register numbers.
2448 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
2449 Use constants from `enum amd64_regnum' for register numbers.
2450 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
2451 (amd64_analyze_prologue, amd64_frame_cache,
2452 amd64_sigtramp_frame_cache): Use constants from `enum
2453 amd64_regnum' for register numbers.
2454 (amd64_supply_fpregset): Adjust for renamed functions.
2455 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
2456 `enum amd64_regnum' for register numbers.
2457 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
2458 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
2459 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
2460 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
2461 (amd64_linux_fill_gregset): Adjust for renamed macros.
2462 (fetch_core_registers): Adjust for renamed functions.
2463 (amd64_linux_init_abi): Adjust for renamed functions.
2464 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
2465 renamed functions.
2466 * amd64-nat.c: Adjust for renamed macros.
2467 * amd64bsd-nat.c (fetch_inferior_registers)
2468 (store_inferior_registers): Use constants from `enum amd64_regnum'
2469 for register numbers. Adjust for renamed variables.
2470 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
2471 renamed variables.
2472 (_initialize_amd64fbsd_nat): Use constants from `enum
2473 amd64_regnum' for register numbers.
2474 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
2475 `enum amd64_regnum' for register numbers.
2476 (amd64fbsd_init_abi): Adjust for renamed functions.
2477 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
2478 `enum amd64_regnum' for register numbers.
2479 (amd64nbsd_init_abi): Adjust for renamed functions.
2480 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
2481 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
2482 `enum amd64_regnum' for register numbers.
2483 (amd64obsd_init_abi): Adjust for renamed functions.
2484 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
2485
2486 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
2487
2488 * breakpoint.c (print_one_breakpoint): Do not output spaces
2489 after printing <PENDING> for a pending breakpoint.
2490
2491 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
2492
2493 * printcmd.c (print_scalar_formatted): Initialize val_long
2494 to remove compiler warning message.
2495
2496 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
2497
2498 * defs.h (nquery, yquery): New prototypes.
2499 * breakpoint.c (break_command_1): Use new nquery interface.
2500 * utils.c (defaulted_query, nquery, yquery): New functions.
2501
2502 2004-02-23 Andrew Cagney <cagney@redhat.com>
2503
2504 * hppa-tdep.c (hppa_frame_align): New function.
2505 (hppa32_push_dummy_call): New function.
2506 (hppa64_push_dummy_call): New function.
2507 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
2508 disabled.
2509
2510 * infcall.c (legacy_push_dummy_code): Don't call deprecated
2511 FIX_CALL_DUMMY when push_dummy_call is available.
2512 (call_function_by_hand, push_dummy_code): Ditto.
2513
2514 2004-02-22 Andrew Cagney <cagney@redhat.com>
2515
2516 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
2517 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
2518 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
2519 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
2520 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
2521 call_dummy_location to ON_STACK.
2522
2523 2004-02-22 Mark Kettenis <kettenis@gnu.org>
2524
2525 * x86-64-linux-tdep.c: Tweak comment.
2526 (amd64_linux_supply_gregset): Renamed from
2527 x86_64_linux_supply_gresget.
2528 (amd64_linux_fill_gregset): Renamed from
2529 x86_64_linux_fill_gregset.
2530 (fetch_core_registers): Adjust for renamed functions.
2531 (amd64_core_fns): Renamed from x86_64_core_fns.
2532 (amd64_linux_sigtramp_start): Renamed from
2533 x86_64_linux_sigtramp_start.
2534 (amd64_linux_pc_in_sigtramp): Renamed from
2535 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
2536 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
2537 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
2538 (amd64_linux_sigcontext_addr): Renamed from
2539 x86_64_linux_sigcontext_addr.
2540 (amd64_linux_sc_reg_offset): Renamed from
2541 x86_64_linux_sc_reg_offset.
2542 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
2543 Adjust for renamed functions and variables.
2544 (_initialize_amd64_linux_tdep): Renamed from
2545 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
2546 variables.
2547 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
2548 Adjust for renamed functions.
2549
2550 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
2551 from x86_64_linux_gregset64_reg_offset.
2552 (amd64_linux_gregset32_reg_offset): Rename from
2553 x86_64_linux_gregset64_reg_offset.
2554 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
2555 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
2556 (amd64_linux_dr_set_control): Renamed from
2557 x86_64_linux_dr_set_control. Adjust for renamed functions.
2558 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
2559 Adjust for renamed functions.
2560 (amd64_linux_dr_reset_addr): Renamed from
2561 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
2562 (amd64_linux_dr_get_status): Renamed from
2563 x86_64_linux_dr_get_status. Adjust for renamed functions.
2564 (_initialize_amd64_linux_nat): Renamed from
2565 _initialize_x86_64_linux_nat. Adjust for renamed variables and
2566 functions.
2567 * config/i386/nm-x86-64linux.h: Update copyright year.
2568 Adjust for renamed functions.
2569
2570 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
2571 amd64fbsd_sigtramp_start.
2572 (amd64fbsd_sigtramp_end_addr): Renamed from
2573 amd64fbsd_sigtramp_end.
2574 (amd64fbsd_init_abi): Adjust for renamed variables.
2575 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
2576 variables.
2577 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
2578 amd64fbsd_sigtramp_start.
2579 (amd64fbsd_sigtramp_end_addr): Renamed from
2580 amd64fbsd_sigtramp_end.
2581
2582 2004-02-22 Andrew Cagney <cagney@redhat.com>
2583
2584 * hppa-tdep.c (hppa32_return_value): New function.
2585 (hppa64_return_value): New function.
2586 (hppa_gdbarch_init): Set return_value; keep disabled.
2587
2588 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
2589 struct-return and inferior function call methods.
2590
2591 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
2592 "frame-base.h".
2593 (struct hppa_frame_cache): Define.
2594 (hppa_frame_cache, hppa_frame_this_id): New functions.
2595 (hppa_frame_prev_register): New function.
2596 (hppa_frame_unwind, hppa_frame_base): New variables.
2597 (hppa_frame_unwind_sniffer): New function.
2598 (hppa_frame_base_address, hppa_unwind_pc): New function.
2599 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
2600 sniffer, and frame base sniffer; keep disabled.
2601 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
2602 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
2603
2604 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
2605 to predicates for "seriously old code".
2606
2607 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
2608 runtime if(0).
2609
2610 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
2611 unsigned.
2612 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
2613
2614 * config/pa/tm-hppa.h: Update copyright.
2615 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2616 (deprecated_init_frame_pc_default): Delete declaration.
2617 (hppa_frame_init_saved_regs): Delete declaration.
2618 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2619 * hppa-tdep.c: Include "arch-utils.h".
2620 (hppa_gdbarch_init): Set deprecated init_frame_pc
2621 and deprecated frame_init_saved_regs.
2622 (hppa_frame_init_saved_regs): Make static.
2623
2624 2004-02-22 Mark Kettenis <kettenis@gnu.org>
2625
2626 Remove old 386BSD support.
2627 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
2628 * configure.host: Remove i[34567]86-*-bsd*.
2629 * configure.tgt: Remove i[34567]86-*-bsd*.
2630 * i386b-nat.c: Removed.
2631 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
2632 (i386b-nat.o): Remove dependencies.
2633
2634 * config/i386/i386bsd.mh: Removed.
2635 * config/i386/i386bsd.mt: Removed.
2636 * config/i386/nm-i386bsd.h: Removed.
2637 * config/i386/tm-i386bsd.h: Removed.
2638 * config/i386/xm-i386bsd.h: Removed.
2639
2640 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
2641
2642 * amd64fbsd-tdep.c: Include "solib-svr4.h".
2643 (amd64fbsd_init_abi): Set link map offsets.
2644 * amd64nbsd-tdep.c: Include "slib-svr4.h".
2645 (amd64nbsd_init_abi): Set link map offsets.
2646 * amd64obsd-tdep.c: Include "solib-svr4.h".
2647 (amd64obsd_init_abi): Set link map offsets.
2648 * i386fbsd-tdep.c: Include "solib-svr4.h".
2649 (i386fbsd_init_abi): Set link map offsets.
2650 * i386nbsd-tdep.c: Include "solib-svr4.h".
2651 (i386nbsdelf_init_abi): Set link map offsets.
2652 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
2653 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
2654 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
2655 solib-legacy.o and core-aout.o. Reformat.
2656 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
2657 solib-svr4.o, solib-legacy.o. Reformat.
2658 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
2659 * config/i386/nbsdelf.mh: Reformat.
2660 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
2661 solib-svr4.o, solib-legacy.o and corelow.o.
2662 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
2663 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
2664 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
2665 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
2666 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
2667 (TM_FILE): Set to tm-fbsd.h.
2668 * config/i386/nbsd.mt (TDEPFILES): Reformat.
2669 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
2670 solib-svr4.o.
2671 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
2672 solib-svr4.o.
2673 (TM_FILE): Set to nm-nbsd.h.
2674 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
2675 Simplify shared library support. Don't include "elf/common.h".
2676 (SVR4_SHARED_LIBS): Don't define.
2677 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
2678 "solib.h".
2679 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
2680 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
2681 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
2682 Don't include "i386/tm-i386.h". Include "solib.h".
2683 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
2684 Don't include "i386/tm-i386.h".
2685 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
2686 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
2687 Include "i386/xm-i386.h".
2688 (HOST_LONG_DOUBLE_FORMAT): Remove.
2689
2690 Fix OpenBSD/i386 sigtramp recognition.
2691 * i386-tdep.h: Update copyright year.
2692 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
2693 (i386bsd_sigtramp_end): New prototypes.
2694 (i386fbsd_sigtramp_start_addr): Renamed from
2695 i386fbsd_sigtramp_start.
2696 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
2697 (i386obsd_sigtramp_start_addr): Renamed from
2698 i386obsd_sigtramp_start.
2699 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
2700 * i386bsd-tdep.c: Update copyright year.
2701 (i386bsd_pc_in_sigtramp): Make public.
2702 * i386fbsd-nat.c: Update copyright year.
2703 (_initialize_i386fbsd_nat): Adjust for renamed variables.
2704 * i386fbsd-tdep.c: Update copyright year.
2705 (i386fbsd_sigtramp_start_addr): Renamed from
2706 i386fbsd_sigtramp_start.
2707 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
2708 (i386fbsdaout_init_abi): Adjust for renamed variables.
2709 * i386obsd-nat.c: Update copyright year.
2710 (_initialize_i386obsd_nat): Adjust for renamed variables.
2711 * i386obsd-tdep.c: Include "target.h".
2712 (i386obsd_page_size): New variable.
2713 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
2714 (i386obsd_sigtramp_end): New functions.
2715 (i386obsd_sigtramp_start_addr): Renamed from
2716 i386obsd_sigtramp_start.
2717 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
2718 (i386obsd_init_abi): Adjust for renamed variables. Set
2719 pc_in_sigtramp, sigtramp_start and sigtramp_end.
2720 * Makefile.in (i386obsd-tdep.o): Update dependencies.
2721
2722 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
2723 trampoline change in OpenBSD kernel.
2724
2725 * amd64-nat.c: Update copyright year.
2726 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
2727 architecture from REGCACHE.
2728
2729 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
2730 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
2731
2732 2004-02-21 Mark Kettenis <kettenis@gnu.org>
2733
2734 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
2735 i[34567]86-*-openbsd3.[0-3].
2736 * config/i386/obsdaout.mh: New file.
2737
2738 * config/i386/obsd.mh (MH_FLAGS): Remove.
2739
2740 Fix PR build/1549.
2741 * i386obsd-tdep.c: Update copyright years. Include
2742 "solib-svr4.h".
2743 (i386obsd_init_abi): Don't set regset_from_core_section here.
2744 (i386obsd_aout_init_abi): New function. Set
2745 regset_from_core_section here.
2746 (i386obsd_elf_init_abi): New function.
2747 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
2748 * Makefile.in (i386obsd-tdep.o): Update dependecies.
2749 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2750 (TM_FILE): Set to tm-nbsd.h.
2751
2752 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
2753 solib-sunos.o.
2754
2755 * solib-svr4.h: Update copyright year.
2756 (svr4_ilp32_fetch_link_map_offsets)
2757 (svr4_lp64_fetch_link_map_offsets): New prototype.
2758 * solib-svr4.c: Update copyright year.
2759 (svr4_ilp32_fetch_link_map_offsets)
2760 (svr4_lp64_fetch_link_map_offsets): New function.
2761
2762 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
2763
2764 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
2765 to the partial symbol table.
2766
2767 2004-02-20 J. brobecker <brobecker@gnat.com>
2768
2769 * PROBLEMS: Add description of problem documented under gdb/1560.
2770
2771 2004-02-20 Mark Kettenis <kettenis@gnu.org>
2772
2773 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
2774 comments.
2775 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
2776 functions.
2777 (amd64obsd_init_abi): Reorder initializations. Use
2778 amd64obsd_r_reg_offset to initialize the general-purpose register
2779 set details. Set regset_from_core_section.
2780 (_initialize_amd64obsd_tdep): Rename from
2781 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
2782 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
2783 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
2784
2785 * NEWS (New native configurations): Mention OpenBSD/alpha.
2786 * configure.tgt: Add alpha*-*-openbsd*.
2787 * configure.host: Add alpha*-*-openbsd*.
2788 * alphanbsd-tdep.c: Update copyright year.
2789 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
2790
2791 2004-02-20 Andrew Cagney <cagney@redhat.com>
2792
2793 Fix PR tdep/1372.
2794 * configure.tgt: Delete target "none-*-*".
2795 * configure.host: Delete host "none-*-*".
2796 * config/none/none.mh: Delete file.
2797 * config/none/none.mt: Delete file.
2798 * config/none/xm-none.h: Delete file.
2799 * config/none/tm-none.h: Delete file.
2800 * config/none/nm-none.h: Delete file.
2801
2802 2004-02-19 Fred Fish <fnf@redhat.com>
2803
2804 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
2805 cache->uses_fp prior to setting it.
2806
2807 2004-02-19 Fred Fish <fnf@redhat.com>
2808
2809 Fix for PR breakpoint/1558.
2810 * sh-tdep.c (IS_JSR): New macro.
2811 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
2812
2813 2004-02-19 Jim Blandy <jimb@redhat.com>
2814
2815 * findvar.c (value_from_register): Doc fix.
2816
2817 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
2818
2819 * printcmd.c (print_scalar_formatted): Do not check for sizeof
2820 type being greater than sizeof of host's LONGEST. Always use
2821 unpack_long() unless format 'f' chosen.
2822
2823 2004-02-19 Joel Brobecker <brobecker@gnat.com>
2824
2825 Committed by Elena Zannoni <ezannoni@redhat.com>
2826
2827 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
2828 contains a symbol wich is the best, non-exact match for the given
2829 pc. Update comments.
2830
2831 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
2832
2833 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
2834 macro, which was part of the now removed Mach 3 port.
2835 * utils.c (request_quit): Ditto.
2836
2837 2004-02-18 Mark Kettenis <kettenis@gnu.org>
2838
2839 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
2840 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
2841
2842 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2843
2844 Committed by Mark Kettenis <kettenis@gnu.org>.
2845
2846 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
2847 Define.
2848
2849 2004-02-18 Andrew Cagney <cagney@redhat.com>
2850
2851 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
2852 CONFIG_INSTALL and CONFIG_UNINSTALL.
2853 * configure: Re-generate.
2854 * interps.h (INTERP_TUI): Define.
2855 * Makefile.in: Update dependencies.
2856 (TUI): New macro.
2857 (tui-main.o): Specify dependencies.
2858 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
2859 * tui/tui-main.c: New file.
2860
2861 2004-02-18 Mark Kettenis <kettenis@gnu.org>
2862
2863 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
2864 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
2865 dependencies.
2866 * configure.host: Add x86_64-*-openbsd*.
2867 * configure.tgt: Add x86_64-*-openbsd*.
2868 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
2869
2870 * tui/tui.c: Don't include <malloc.h>.
2871
2872 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
2873 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
2874 amd64nbsd-tdep.c.
2875
2876 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
2877 static. Remove extraneous whitespace.
2878 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
2879 static.
2880
2881 2004-02-17 Jim Blandy <jimb@redhat.com>
2882
2883 * findvar.c (value_from_register): Doc fix.
2884
2885 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2886
2887 Committed by Jim Blandy <jimb@redhat.com>.
2888
2889 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
2890 CORE_ADDR as type for selectors. Correct types for GNU run time
2891 message lookup function to use double indirection.
2892 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
2893 * objc-lang.h (lookup_child_selector): Adapt prototype.
2894
2895 * s390-nat.c (SUBOFF): New macro.
2896 (supply_gregset, fill_gregset): Use it to handle debugging
2897 of 32-bit exectuables running under a 64-bit kernel.
2898 * s390-tdep.c: Include "solib-svr4.h".
2899 (s390_svr4_fetch_link_map_offset): New function.
2900 (s390x_svr_fetch_link_map_offset): Likewise.
2901 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
2902 * Makefile.in (s390-tdep.o): Update dependencies.
2903
2904 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
2905 "frame-unwind.h".
2906 (s390_readinstruction): Reformat. Use read_memory_nobpt.
2907 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
2908 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
2909 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
2910 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
2911 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
2912 S390_SIGNAL_FRAMESIZE,
2913 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
2914 (struct frame_extra_info): Remove.
2915 (s390_memset_extra_info): Remove.
2916 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
2917 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
2918 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
2919 (is_rse): Renamed to ...
2920 (is_rsy): ... this. Support long displacements.
2921 (is_rxe): Renamed to ...
2922 (is_rxy): ... this. Support long displacements.
2923 (compute_x_addr): Support long displacements.
2924 (struct s390_prologue_data): New data type.
2925 (s390_on_stack): Change API to use struct s390_prologue_data.
2926 (s390_store): Reimplement.
2927 (s390_load): New function.
2928 (s390_get_signal_frame_info): Remove.
2929 (s390_get_frame_info): Remove, replace by ...
2930 (s390_analyze_prolog): ... this new function.
2931 (s390_check_function_end): Remove.
2932 (s390_function_start): Remove.
2933 (s390_frameless_function_invokation): Remove.
2934 (s390_is_sigreturn): Remove.
2935 (s390_init_frame_pc_first): Remove.
2936 (s390_init_frame_extra_info): Remove.
2937 (s390_frame_init_saved_regs): Remove.
2938 (s390_frame_saved_pc_nofix): Remove.
2939 (s390_frame_saved_pc): Remove.
2940 (s390_frame_chain): Remove.
2941 (s390_fp_regnum, s390_read_fp): Remove.
2942 (s390_pop_frame_regular, s390_pop_frame): Remove.
2943 (s390_saved_pc_after_call): Remove.
2944 (s390_skip_prologue): Reimplement.
2945 (s390_in_function_epilogue_p): Support long displacements.
2946 (struct s390_unwind_cache): New data structure.
2947 (s390_frame_unwind_cache): New function.
2948 (s390_prologue_frame_unwind_cache): Likewise.
2949 (s390_backchain_frame_unwind_cache): Likewise.
2950 (s390_frame_this_id, s390_frame_prev_register): Likewise.
2951 (s390_frame_unwind): Define.
2952 (s390_frame_sniffer): New function.
2953 (struct s390_pltstub_unwind_cache): New data structure.
2954 (s390_pltstub_frame_unwind_cache): New function.
2955 (s390_pltstub_frame_this_id): Likewise.
2956 (s390_pltstub_frame_prev_register): Likewise.
2957 (s390_pltstub_frame_unwind): Define.
2958 (s390_pltstub_frame_sniffer): New function.
2959 (struct s390_sigtramp_unwind_cache): New data structure.
2960 (s390_sigtramp_frame_unwind_cache): New function.
2961 (s390_sigtramp_frame_this_id): Likewise.
2962 (s390_sigtramp_frame_prev_register): Likewise.
2963 (s390_sigtramp_frame_unwind): Define.
2964 (s390_sigtramp_frame_sniffer): New function.
2965 (s390_frame_base_address, s390_local_base_address): New functions.
2966 (s390_frame_base): Define.
2967 (s390_unwind_pc, s390_unwind_sp): New function.
2968 (s390_push_dummy_call): Use new frame base location.
2969 (s390_unwind_dummy_id): Likewise.
2970 (s390_gdbarch_init): Remove calls to:
2971 set_gdbarch_frameless_function_invocation,
2972 set_gdbarch_deprecated_init_frame_pc,
2973 set_gdbarch_deprecated_frame_chain,
2974 set_gdbarch_deprecated_frame_init_saved_regs,
2975 set_gdbarch_deprecated_pop_frame,
2976 set_gdbarch_deprecated_init_extra_frame_info,
2977 set_gdbarch_deprecated_init_frame_pc_first,
2978 set_gdbarch_deprecated_target_read_fp,
2979 set_gdbarch_deprecated_frame_saved_pc,
2980 set_gdbarch_deprecated_saved_pc_after_call,
2981 set_gdbarch_deprecated_fp_regnum.
2982 Add calls to:
2983 set_gdbarch_in_solib_call_trampoline,
2984 frame_unwind_append_sniffer,
2985 frame_base_set_default,
2986 set_gdbarch_unwind_pc,
2987 set_gdbarch_unwind_sp.
2988 * Makefile.in (s390-tdep.o): Update dependencies.
2989
2990 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
2991 (S390_STACK_FRAME_OVERHEAD): Remove.
2992 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
2993 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
2994 (s390_promote_integer_argument): Remove.
2995 (s390_cannot_extract_struct_value_address): Remove.
2996 (s390_use_struct_convention, s390_store_struct_return): Remove.
2997 (s390_extract_return_value, s390_store_return_value): Remove.
2998 (s390_return_value_convention, s390_return_value): New functions.
2999 (is_float_singleton): Handle typedefs.
3000 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
3001 Remove, replace by ...
3002 (s390_function_arg_pass_by_reference, s390_function_arg_float,
3003 s390_function_arg_integer): ... these new functions.
3004 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
3005 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
3006 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
3007 Fill in tdep->abi.
3008 Remove calls to:
3009 set_gdbarch_deprecated_store_struct_return,
3010 set_gdbarch_deprecated_extract_return_value,
3011 set_gdbarch_deprecated_store_return_value,
3012 set_gdbarch_use_struct_convention,
3013 set_gdbarch_extract_struct_value_address,
3014 set_gdbarch_deprecated_pc_in_call_dummy,
3015 set_gdbarch_deprecated_push_arguments,
3016 set_gdbarch_deprecated_save_dummy_frame_tos,
3017 set_gdbarch_deprecated_push_return_address,
3018 set_gdbarch_deprecated_sizeof_call_dummy_words,
3019 set_gdbarch_deprecated_call_dummy_words,
3020 set_gdbarch_deprecated_dummy_write_sp.
3021 Add calls to:
3022 set_gdbarch_push_dummy_call,
3023 set_gdbarch_unwind_dummy_id,
3024 set_gdbarch_return_value.
3025
3026 * config/s390/nm-linux.h: Update comments.
3027 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
3028 (STOPPED_BY_WATCHPOINT): Redefine.
3029 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
3030 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
3031 (s390_stopped_by_watchpoint): Likewise.
3032 (watch_area_cnt): Remove.
3033 * s390-nat.c: Update comments.
3034 (watch_area): Remove typedef.
3035 Global replace watch_area by struct watch_area.
3036 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
3037 (s390_stopped_by_watchpoint): Remove pid argument,
3038 use s390_inferior_tid. Add short-cut for the no watchpoint case.
3039 (s390_fix_watch_points): Remove pid argument,
3040 use s390_inferior_tid. Recompute area spanned by watchpoints.
3041 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
3042 argument. Reimplement.
3043
3044 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
3045 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
3046 (FETCH_INFERIOR_REGISTERS): Define.
3047 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
3048 core-regset.o.
3049 * config/s390/s390x.mt: Remove.
3050 * config/s390/tm-s390.h: Remove.
3051 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
3052 (TARGET_ELF64): Remove.
3053 (SKIP_TRAMPOLINE_CODE): Do not undefine.
3054 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
3055 s390*-*-* case; always set gdb_target to s390.
3056 * regformats/reg-s390.dat: Remove control registers.
3057 * regformats/reg-s390x.dat: Likewise.
3058 * s390-tdep.h: New file.
3059 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
3060 Include "inferior.h" and "s390-tdep.h".
3061 Remove private definition of offsetof.
3062 (s390_register_u_addr): Remove.
3063 (regmap_gregset, regmap_fpregset): Define.
3064 (supply_gregset, fill_gregset): Reimplement.
3065 (supply_fpregset, fill_fpregset): Likewise.
3066 (s390_inferior_tid): New function.
3067 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
3068 (fetch_inferior_registers, store_inferior_registers): Likewise.
3069 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
3070 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
3071 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
3072 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
3073 (struct gdbarch_tdep): Define.
3074 (struct s390_register_info): Define.
3075 (s390_register_info): New variable.
3076 (s390_register_name): Reimplement.
3077 (s390_register_type): New function.
3078 (s390_register_raw_size, s390x_register_raw_size): Remove.
3079 (s390_cannot_fetch_register): Remove.
3080 (s390_register_byte): Remove.
3081 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
3082 (s390_dwarf_regmap): New variable.
3083 (s390_dwarf_reg_to_regnum): New function.
3084 (s390_stab_reg_to_regnum): Remove.
3085 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
3086 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
3087 (s390_convert_register_p): Likewise.
3088 (s390_register_to_value, s390_value_to_register): Likewise.
3089 (s390_register_reggroup_p): Likewise.
3090 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
3091 s390_gregset, s390x_gregset, s390_fpregset): New variables.
3092 (s390_supply_regset, s390_regset_from_core_section): New functions.
3093 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
3094 (S390_FPR_SIZE): Likewise.
3095 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
3096 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
3097 (S390_NUM_GPRS): Move here from tm-s390.h.
3098 (S390_NUM_FPRS): Likewise.
3099 (s390_in_function_epilogue_p): New function.
3100 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
3101 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
3102 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
3103 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
3104 Replace S390_FP_REGNUM by S390_SP_REGNUM.
3105 Remove calls to:
3106 set_gdbarch_deprecated_max_register_raw_size,
3107 set_gdbarch_deprecated_max_register_virtual_size,
3108 set_gdbarch_deprecated_register_byte,
3109 set_gdbarch_cannot_fetch_register,
3110 set_gdbarch_cannot_store_register,
3111 set_gdbarch_deprecated_register_size,
3112 set_gdbarch_deprecated_register_raw_size,
3113 set_gdbarch_deprecated_register_virtual_size,
3114 set_gdbarch_deprecated_register_virtual_type,
3115 set_gdbarch_deprecated_register_bytes.
3116 Add calls to:
3117 set_gdbarch_num_pseudo_regs,
3118 set_gdbarch_register_type,
3119 set_gdbarch_convert_register_p,
3120 set_gdbarch_register_to_value,
3121 set_gdbarch_value_to_register,
3122 set_gdbarch_register_reggroup_p,
3123 set_gdbarch_regset_from_core_section,
3124 set_gdbarch_pseudo_register_read,
3125 set_gdbarch_pseudo_register_write,
3126 set_gdbarch_in_function_epilogue_p.
3127 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
3128 (s390_tdep_h): New variable.
3129
3130 2004-02-17 Jim Blandy <jimb@redhat.com>
3131
3132 * findvar.c (value_from_register): If the type has no length, just
3133 return an acceptable value --- don't report an internal error.
3134
3135 * stabsread.c (read_type): If we find any type numbers that are
3136 forward references, complain if the references aren't resolved by
3137 the time we're finished reading.
3138 (cleanup_undefined_types): Make error message more appropriate for
3139 a complaint.
3140
3141 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
3142
3143 * Makefile.in (defs_h): Remove dependency on progress_h.
3144 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
3145 progress.h.
3146 * main.c (captured_main): Delete use of START_PROGRESS and
3147 END_PROGRESS.
3148
3149 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
3150
3151 * objfiles.c (terminate_minimal_symbol_table): Add back
3152 initialization of MSYMBOL_TYPE.
3153
3154 2004-02-17 David Mosberger <davidm@hpl.hp.com>
3155
3156 Committed by Andrew Cagney.
3157 * Makefile.in (ia64_tdep_h): New macro.
3158 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
3159 (ia64-tdep.o): Likewise.
3160 * ia64-tdep.h: New file.
3161 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
3162 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
3163 (ia64_aix_sigcontext_register_address): Likewise.
3164 (ia64_linux_getunwind_table): Delete declaration.
3165 * ia64-linux-tdep.c: Likewise.
3166
3167 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
3168
3169 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
3170 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
3171 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
3172
3173 2004-02-17 Andrew Cagney <cagney@redhat.com>
3174
3175 * symtab.c (skip_prologue_using_sal): New function.
3176 * symtab.h (skip_prologue_using_sal): Declare.
3177 * frv-tdep.c: Include "symtab.h".
3178 (skip_prologue_using_sal): Delete function.
3179 * mips-tdep.c (skip_prologue_using_sal): Delete function.
3180 * rs6000-tdep.c (refine_prologue_limit): Mention
3181 skip_prologue_using_sal.
3182 * ia64-tdep.c (refine_prologue_limit): Ditto.
3183 * Makefile.in: Update dependencies.
3184
3185 2004-02-16 Andrew Cagney <cagney@redhat.com>
3186
3187 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
3188 START_INFERIOR_TRAPS_EXPECTED.
3189 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
3190 START_INFERIOR_TRAPS_EXPECTED.
3191 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
3192 Delete macro.
3193 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
3194 macro, moved to "nm-osf.h". Update copyright.
3195 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
3196 update copyright.
3197
3198 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
3199 and function replacing FRAMELESS_FUNCTION_INVOCATION.
3200 * blockframe.c (legacy_frameless_look_for_prologue): Rename
3201 frameless_look_for_prologue.
3202 * frame.h (legacy_frameless_look_for_prologue): Rename
3203 frameless_look_for_prologue.
3204 * gdbarch.h, gdbarch.c: Re-generate.
3205 * sh64-tdep.c (sh64_gdbarch_init): Update.
3206 * sh-tdep.c (sh_gdbarch_init): Update.
3207 * s390-tdep.c (s390_gdbarch_init): Update.
3208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3209 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3210 * m68k-tdep.c (m68k_gdbarch_init): Update.
3211 (delta68_frame_args_address): Update.
3212 * m32r-tdep.c (m32r_gdbarch_init): Update.
3213 * hppa-tdep.c (hppa_gdbarch_init): Update.
3214 * h8300-tdep.c (h8300_gdbarch_init): Update.
3215 * frv-tdep.c (frv_gdbarch_init): Update.
3216 (frv_frameless_function_invocation): Update.
3217 * cris-tdep.c (cris_gdbarch_init): Update.
3218 (cris_frameless_function_invocation): Update.
3219 * avr-tdep.c (avr_gdbarch_init): Update.
3220 * arm-tdep.c (arm_gdbarch_init): Update.
3221 * stack.c (frame_info): Update, call predicate.
3222 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
3223 * frame.c (legacy_get_prev_frame): Update, call predicate..
3224 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
3225 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
3226 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
3227 invocation.
3228 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3229 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3230 * vax-tdep.c (vax_gdbarch_init): Ditto.
3231
3232 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
3233 function.
3234
3235 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
3236
3237 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
3238 initializations.
3239
3240 2004-02-16 Andrew Cagney <cagney@redhat.com>
3241
3242 * tui/tui-windata.c: Include "gdb_string.h".
3243 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
3244 * tui/tui-layout.c, tui/tui-command.c: Ditto.
3245 * Makefile.in: Update dependencies.
3246
3247 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
3248
3249 * Makefile.in (infrun.o): Add $(gdb_assert_h).
3250 * infrun.c: Include "gdb_assert.h".
3251 (singlestep_ptid, saved_singlestep_ptid)
3252 (stepping_past_singlestep_breakpoint): New variables.
3253 (resume): Set singlestep_ptid. Check for singlestep thread
3254 hop.
3255 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
3256 (handle_inferior_event): Handle singlestep thread hop.
3257
3258 2004-02-16 Andrew Cagney <cagney@redhat.com>
3259
3260 * dwarf2-frame.c (dwarf2_frame_ops): New function.
3261 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
3262 (dwarf2_frame_init_reg): Ditto.
3263
3264 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
3265 suggested by Joshua Neuheisel
3266
3267 * configure.in: Always check for curses, including pdcurses.
3268 Warn, instead of error, when no curses are found. Enable TUI when
3269 curses is available.
3270 * configure: Re-generate.
3271
3272 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
3273
3274 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
3275 sh_sh4_register_convert_to_virtual.
3276 (sh_register_convert_to_raw): Rename from
3277 sh_sh4_register_convert_to_raw.
3278 (sh_pseudo_register_read): Accomodate above name change.
3279 (sh_pseudo_register_write): Ditto.
3280
3281 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
3282
3283 * sh-tdep.c (sh_generic_register_name): Remove.
3284 (sh_gdbarch_init): Use sh_sh_register_name in default case.
3285
3286 2004-02-15 Andrew Cagney <cagney@redhat.com>
3287
3288 * configure.in (build_warnings): Add -Wunused-function.
3289 * configure: Re-generate.
3290
3291 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
3292 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
3293
3294 * procfs.c (procfs_init_inferior): Assume that
3295 START_INFERIOR_TRAPS_EXPECTED is defined.
3296 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
3297 * config/ns32k/tm-nbsd.h: Delete file,
3298 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
3299
3300 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
3301 * config/vax/tm-vax.h: Delete file.
3302
3303 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3304 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3305 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3306 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3307 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
3308 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3309 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
3310
3311 2004-02-15 Mark Kettenis <kettenis@gnu.org>
3312
3313 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
3314 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3315 (struct dwarf2_frame_ops): New.
3316 (dwarf2_frame_default_init_reg): New function, based on
3317 dwarf2_frame_init_reg.
3318 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
3319 (dwarf2_frame_init_reg): Call architecture-specific function.
3320 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
3321 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
3322 instead of dwarf2_frame_data.
3323 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
3324 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
3325
3326 2004-02-15 Andrew Cagney <cagney@redhat.com>
3327
3328 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
3329 register_gdbarch_swap.
3330 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
3331 * f-lang.c (_initialize_f_language): Update, use
3332 DEPRECATED_REGISTER_GDBARCH_SWAP.
3333 * remote.c (_initialize_remote): Ditto.
3334 * regcache.c (_initialize_regcache): Ditto.
3335 * parse.c (_initialize_parse): Ditto.
3336 * infrun.c (_initialize_infrun): Ditto.
3337 * mi/mi-main.c (_initialize_mi_main): Ditto.
3338 * gdbtypes.c (_initialize_gdbtypes): Ditto.
3339
3340 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
3341 poking .cacheable directly.
3342 * symfile.c (symfile_bfd_open): Ditto.
3343
3344 * Makefile.in: Update all dependencies.
3345
3346 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
3347 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
3348 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
3349 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
3350 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
3351
3352 2004-02-14 Andrew Cagney <cagney@redhat.com>
3353
3354 * arch-utils.c (legacy_convert_register_p): Check
3355 DEPRECATED_REGISTER_CONVERTIBLE_P.
3356 * findvar.c (value_of_register): Ditto.
3357
3358 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
3359 * gdbarch.h, gdbarch.c: Re-generate.
3360 * arch-utils.c (deprecated_register_convertible_not): Delete.
3361 * arch-utils.h (deprecated_register_convertible_not): Delete.
3362 * mi/mi-main.c (get_register): Update. Update copyright.
3363 * infcmd.c (default_print_registers_info): Update.
3364
3365 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3366 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
3367 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
3368 * gdbarch.h, gdbarch.c: Re-generate.
3369 * frame.c (deprecated_get_next_frame_hack): Delete function.
3370 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
3371 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3372 Update.
3373 * infcall.c (call_function_by_hand): Update.
3374
3375 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
3376
3377 * symfile.c (init_entry_point_info, entry_point_address): Move
3378 from here...
3379 * objfiles.c (init_entry_point_info, entry_point_address):..to
3380 here.
3381 * symfile.h (init_entry_point_info, entry_point_address): Remove
3382 prototypes.
3383 * objfiles.h (init_entry_point_info, entry_point_address):Add
3384 prototypes.
3385 * cris-tdep.c: Remove include of symfile.h. Add include of
3386 objfiles.h.
3387 * infcall.c: Ditto.
3388 * mcore-tdep.c: Ditto.
3389 * mn10300-tdep.c: Ditto.
3390 * sh64-tdep.c: Ditto.
3391 * v850-tdep.c: Ditto.
3392 * arm-tdep.c: Remove include of symfile.h.
3393 * blockframe.c: Ditto.
3394 * coffread.c: Ditto.
3395 * dbxread.c: Ditto.
3396 * dwarf2read.c: Ditto.
3397 * dwarfread.c: Ditto.
3398 * frv-tdep.c: Ditto.
3399 * ia64-tdep.c: Ditto.
3400 * mdebugread.c: Ditto.
3401 * mipsread.c: Ditto.
3402 * rs6000-tdep.c: Ditto.
3403 * s390-tdep.c: Ditto.
3404 * sh-tdep.c: Ditto.
3405 * xstormy16-tdep.c: Ditto.
3406 * gdbarch.sh: Remove include of symfile.h.
3407 * gdbarch.c: Regenerate.
3408 * solib-irix.c (enable_break): Use entry_point_address().
3409 Add comment about include file.
3410 * xcoffread.c: Add comment about include file.
3411 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
3412 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
3413 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
3414 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
3415 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
3416
3417 2004-02-13 Andrew Cagney <cagney@redhat.com>
3418
3419 * corelow.c (core_xfer_partial): Use "struct bfd_section".
3420 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
3421 copyright.
3422 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
3423
3424 2004-02-12 Fred Fish <fnf@redhat.com>
3425
3426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
3427 set_gdbarch_store_return_value.
3428
3429 2004-02-12 Andrew Cagney <cagney@redhat.com>
3430
3431 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
3432 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
3433 (interrupt_query): Ditto.
3434 (ofunc): Delete unused variable.
3435 * cris-tdep.c (cris_abi): Delete unused function.
3436 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
3437 (cris_get_wide_opcode, cris_get_short_size): Ditto.
3438 (cris_get_asr_quick_shift_steps): Ditto.
3439 (cris_skip_prologue_frameless_p): Ditto.
3440 * arm-tdep.c (arm_push_return_address): Delete unused function.
3441 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
3442 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
3443 * s390-tdep.c (s390_function_start): Delete unused function.
3444
3445 2004-02-12 Andrew Cagney <cagney@redhat.com>
3446
3447 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
3448 gdbarch.h, gdbarch.c: Re-generate.
3449 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
3450 to generic_prologue_frameless_p.
3451 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
3452 * arch-utils.c (generic_prologue_frameless_p): Delete function.
3453
3454 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
3455
3456 * mips-linux-tdep.c: Include "frame.h".
3457 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
3458 (mips_linux_skip_resolver): New functions.
3459 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
3460 and set_gdbarch_in_solib_call_trampoline.
3461 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
3462 to after set_gdbarch_in_solib_return_trampoline. Only set the
3463 solib hooks to mips16 functions if the OS ABI is unknown.
3464 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
3465 including "config/tm-linux.h".
3466 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
3467 * Makefile.in (mips-linux-tdep.o): Update.
3468
3469 2004-02-11 David Carlton <carlton@kealia.com>
3470
3471 * linespec.c (decode_compound): Only look for a class symbol when
3472 considering all but the rightmost component.
3473
3474 2004-02-11 Andrew Cagney <cagney@redhat.com>
3475
3476 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
3477 abi code are are separatly grouped.
3478
3479 2004-02-11 Andrew Cagney <cagney@redhat.com>
3480
3481 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
3482 * gdbarch.h, gdbarch.c: Re-generate.
3483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3484 * v850-tdep.c (v850_gdbarch_init): Update.
3485 * sh64-tdep.c (sh64_gdbarch_init): Update.
3486 * sh-tdep.c (sh_gdbarch_init): Update.
3487 * s390-tdep.c (s390_gdbarch_init): Update.
3488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3489 * mips-tdep.c (mips_gdbarch_init): Update.
3490 * mcore-tdep.c (mcore_gdbarch_init): Update.
3491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3492 * m32r-tdep.c (m32r_gdbarch_init): Update.
3493 * ia64-tdep.c (ia64_gdbarch_init): Update.
3494 * hppa-tdep.c (hppa_gdbarch_init): Update.
3495 * h8300-tdep.c (h8300_gdbarch_init): Update.
3496 * frv-tdep.c (frv_gdbarch_init): Update.
3497 * d10v-tdep.c (d10v_gdbarch_init): Update.
3498 * cris-tdep.c (cris_gdbarch_init): Update.
3499 * avr-tdep.c (avr_gdbarch_init): Update.
3500 * arm-tdep.c (arm_gdbarch_init): Update.
3501 * alpha-tdep.c (alpha_gdbarch_init): Update.
3502
3503 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
3504
3505 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
3506 comma.
3507 (sh_sh4al_dsp_register_name): Ditto.
3508
3509 2004-02-10 Andrew Cagney <cagney@redhat.com>
3510
3511 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
3512 (mips_init_frame_pc_first): Delete function.
3513 (mips_frame_saved_pc): Delete function.
3514 (mips_frame_chain): Delete function.
3515 (mips_init_extra_frame_info): Delete function.
3516 (mips_xfer_register): Delete unused variable "reg".
3517 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
3518 (mips_n32n64_return_value): Delete unused variable "reg".
3519 (mips_n32n64_return_value): Delete unused variable "pos".
3520 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
3521 (mips_o32_return_value): Delete unused variable "pos".
3522 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
3523 (mips_print_fp_register): Delete unused variable "namelen"
3524 (mips_print_fp_register): Delete unused variable "flt2"
3525 (get_frame_pointer): Delete function.
3526 (cached_proc_desc): Delete static variable.
3527 (mips_pop_frame): Delete function.
3528 (mips_find_saved_regs): Delete function.
3529 (mips_get_saved_register): Delete function.
3530 (mips_saved_pc_after_call): Delete function.
3531 (SIGFRAME_BASE): Delete macro.
3532 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
3533 (SIGFRAME_PC_OFF): Delete macro.
3534 (SIGFRAME_REGSAVE_OFF): Delete macro.
3535 (mips_dump_tdep): Do not print deleted macro definitions.
3536
3537 2004-02-10 Andrew Cagney <cagney@redhat.com>
3538
3539 * Makefile.in (SFILES): Remove explictly listed tui files.
3540 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
3541
3542 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
3543
3544 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
3545 to use paddr functions to format ia64 addresses and long values.
3546 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
3547 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
3548 (get_kernel_table, ia64_find_proc_info_x): Ditto.
3549 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
3550 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
3551
3552 2004-02-10 Andrew Cagney <cagney@redhat.com>
3553
3554 * defs.h: Do not include "tui.h".
3555 * gdb_curses.h: New file.
3556 * tui/tui-hooks.h: New file.
3557 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
3558 (tui_install_hooks, tui_remove_hooks): Delete declarations.
3559 (tui_initialize_io): Delete declaration.
3560 (tui_initialize_readline: Delete redundant declaration.
3561 (struct tui_point): Delete definition.
3562 * tui/tui-data.h (struct tui_point): Define.
3563 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
3564 * utils.c: Include "tui/tui.h".
3565 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
3566 * printcmd.c [TUI]: Include "tui/tui.h".
3567 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
3568 * tui/tui-command.c: Include "gdb_curses.h".
3569 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
3570 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
3571 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
3572 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
3573 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
3574 * Makefile.in: Update all dependencies.
3575 (tui_hooks_h, gdb_curses_h): Define.
3576 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
3577
3578 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
3579
3580 * objfiles.h (struct objfile): Remove unused fields auxf1 and
3581 auxf2. Add comments about some other rarely used fields.
3582
3583 2004-02-10 Andrew Cagney <cagney@redhat.com>
3584
3585 * Makefile.in (init.c): Fix script removing duplicates. Problem
3586 reported by Peter Schauer.
3587
3588 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
3589
3590 * bcache.c (bcache_xmalloc): Use obstack_init instead of
3591 obstack_specify_allocation.
3592 * objfiles.c (allocate_objfile): Ditto.
3593 * solib-sunos.c (solib_add_common_symbols)
3594 (allocate_rt_common_objfile): Ditto.
3595 * symfile.c (reread_symbols): Ditto.
3596 * gdb_obstack.h: Add comment.
3597
3598 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
3599
3600 * linespec.c (decode_line_1, locate_first_half)
3601 (decode_compound, lookup_prefix_sym): Update comments. Delete old
3602 commented out code.
3603
3604 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3605
3606 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
3607 obstack_free.
3608
3609 2004-02-09 Andrew Cagney <cagney@redhat.com>
3610
3611 * blockframe.c (find_pc_partial_function): If find_pc_overlay
3612 fails, try find_pc_section. Fix PR c++/1267.
3613 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
3614 instead of find_pc_mapped_section.
3615 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
3616 not default to the section containing PC. Fix PR symtab/1519.
3617
3618 2004-02-09 Andrew Cagney <cagney@redhat.com>
3619
3620 * Makefile.in (mips-tdep.o): Update dependencies.
3621 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
3622 "trad-frame.h".
3623 (mips_unwind_pc): Return the pseudo PC register.
3624 (mips_unwind_dummy_id): New function.
3625 (mips16_fetch_instruction): New function.
3626 (mips32_fetch_instruction): New function.
3627 (struct mips_frame_cache): Define.
3628 (mips_mdebug_frame_cache): New function.
3629 (mips_mdebug_frame_this_id): New function.
3630 (mips_mdebug_frame_prev_register): New function.
3631 (mips_mdebug_frame_unwind): Define.
3632 (mips_mdebug_frame_sniffer): New function.
3633 (mips_mdebug_frame_base_address): New function.
3634 (mips_mdebug_frame_base): Define.
3635 (mips_mdebug_frame_base_sniffer): New function.
3636 (mips_gdbarch_init): Append unwind and base sniffers. Set
3637 unwind_dummy_id.
3638
3639 2004-02-08 Andrew Cagney <cagney@redhat.com>
3640
3641 * frame.c: Print both the register number and name.
3642
3643 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
3644 and a sed into a single sed. Make .c and .o patterns more robust.
3645 (OBS): Delete.
3646 (INIT_FILES): Replace OBS with COMMON_OBS.
3647 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
3648
3649 2004-02-08 Mark Kettenis <kettenis@gnu.org>
3650
3651 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
3652 the PT_WCOOKIE request.
3653
3654 2004-02-08 Andrew Cagney <cagney@redhat.com>
3655
3656 * mips-tdep.c (mips_unwind_pc): New function.
3657 (mips_gdbarch_init): Set mips_unwind_pc.
3658
3659 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
3660 (get_frame_id): Allow the UNKNOWN_FRAME.
3661 (frame_register_unwind, get_frame_type): Ditto.
3662
3663 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
3664 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
3665 unwind_dummy_id indicates a legacy frame.
3666
3667 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
3668 * configure: Re-generate.
3669
3670 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
3671 methods.
3672
3673 2004-02-08 Andrew Cagney <cagney@redhat.com>
3674
3675 * configure.in (CONFIG_ALL): Set to Makefile target, and not
3676 makefile macro.
3677 * configure: Re-generate.
3678 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
3679 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
3680 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
3681 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
3682 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
3683 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
3684 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
3685 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
3686 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
3687 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
3688
3689 2004-02-07 Andrew Cagney <cagney@redhat.com>
3690
3691 * Makefile.in: Update all dependencies.
3692
3693 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
3694 * configure: Re-generate.
3695 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
3696 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
3697 (COMMON_OBS): Add "main.o" and "annotate.o".
3698 (ANNOTATE_OBS): Delete.
3699 (OBS): Remove ANNOTATE_OBS.
3700 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
3701 CONFIG_INITS.
3702 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
3703 against CONFIG_OBS and "main.o".
3704 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
3705 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
3706
3707 * tui/tui-command.c: Include "gdb_string.h", delete register
3708 attribute, use ISO-C function signatures.
3709 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
3710 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
3711 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
3712 * tui/tui.c: Ditto.
3713
3714 * tui/tui-command.c: Change variable and function names to lower
3715 case.
3716 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
3717 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
3718 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
3719 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3720 * tui/tui-winsource.c, tui/tui.c: Ditto.
3721
3722 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
3723
3724 * buildsym.c (free_pending_blocks, finish_block)
3725 (record_pending_block, make_blockvector, end_symtab): Replace
3726 symbol_obstack with objfile_obstack.
3727 * coffread.c (process_coff_symbol, coff_read_struct_type)
3728 (coff_read_enum_type): Ditto.
3729 * cp-namespace.c (initialize_namespace_symtab)
3730 (check_one_possible_namespace_symbol): Ditto.
3731 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
3732 (dwarf2_symbol_mark_computed): Ditto.
3733 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
3734 * elfread.c (elf_symtab_read): Ditto.
3735 * hpread.c (hpread_symfile_init, hpread_symfile_init)
3736 (hpread_read_enum_type, hpread_read_function_type)
3737 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
3738 Ditto.
3739 * jv-lang.c (get_java_class_symtab, add_class_symbol)
3740 (java_link_class_type): Ditto.
3741 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
3742 (new_symbol): Ditto.
3743 * minsyms.c (install_minimal_symbols): Ditto.
3744 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
3745 (terminate_minimal_symbol_table): Replace symbol_obstack with
3746 objfile_obstack.
3747 (free_objfile): Remove freeing of symbol_obstack.
3748 * objfiles.h: Remove symbol_obstack field.
3749 * pa64solib.c (add_to_solist): Replace symbol_obstack with
3750 objfile_obstack.
3751 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
3752 symbol_obstack.
3753 (solib_add_common_symbols): Replace symbol_obstack with
3754 objfile_obstack.
3755 * somsolib.c (som_solib_add): Ditto.
3756 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3757 (common_block_start, common_block_end): Ditto.
3758 * symfile.c (reread_symbols): Remove freeing and init of
3759 symbol_obstack.
3760 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
3761 * symfile.h: Update comment.
3762 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
3763 stats printing.
3764 * symtab.c (symbol_set_names): Replace symbol_obstack with
3765 objfile_obstack.
3766 * symtab.h (struct general_symbol_info, struct minimal_symbol):
3767 Update comments.
3768 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
3769 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
3770 objfile_obstack.
3771
3772 2004-02-07 Andrew Cagney <cagney@redhat.com>
3773
3774 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
3775 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
3776 fields and variables.
3777 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
3778 (m_beInvisible): Delete macro.
3779 * tui/tui-data.h: Fix case case fields and variables.
3780 (m_genWinPtrIsNull): Delete macro.
3781 (tui_win_list): Rename winList.
3782 (TUI_SRC_WIN): Rename srcWin.
3783 (TUI_DISASM_WIN): Rename disassemWin.
3784 (TUI_DATA_WIN): Rename dataWin.
3785 (TUI_CMD_WIN): Rename cmdWin.
3786 (m_genWinPtrNotNull): Delete macro.
3787 (m_winPtrIsNull): Delete macro.
3788 (m_winPtrNotNull): Delete macro.
3789 (tui_win_is_source_type): Replace m_winIsSourceType
3790 (tui_win_is_auxillary): Replace m_winIsAuzillary.
3791 (tui_win_has_locator): Replace m_hasLocator.
3792 (tui_set_win_highlight): Replace m_setWinHighlightOn and
3793 m_setWinHighlightOff.
3794 * tui/tui-data.c: Update references.
3795 (tui_win_is_source_type, tui_set_win_highlight): New functions.
3796 (tui_win_has_locator, tui_win_is_auxillary): New functions.
3797 * tui/tui-command.c, tui/tui-disasm.c: Update references.
3798 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
3799 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
3800 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3801 * tui/tui-winsource.c, tui/tui.c: Ditto.
3802
3803 2004-02-07 Mark Kettenis <kettenis@gnu.org>
3804
3805 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
3806 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
3807 StackGhost.
3808
3809 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
3810 variable `i6' to `i7'.
3811 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
3812
3813 2004-02-07 Andrew Cagney <cagney@redhat.com>
3814
3815 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
3816 (TuiPoint, TuiPointPtr): Ditto.
3817 (TuiStatus, TuiStatusPtr): Ditto.
3818 (TuiWinType, TuiWinTypePtr): Ditto.
3819 (struct tui_point): Rename _TuiPoint.
3820 (tui_get_low_disassembly_address): Rename
3821 tuiGetLowDisassemblyAddress.
3822 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
3823 (tuiFree): Delete declaration.
3824 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
3825 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
3826 * tui/tui.c (tuiFree): Delete function.
3827 * cli/cli-cmds.c (disassemble_command): Update references.
3828 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
3829 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
3830 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
3831 * tui/tui-winsource.c: Ditto.
3832
3833 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
3834
3835 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
3836 coffstab_build_psymtabs, elfstab_build_psymtabs)
3837 (stabsect_build_psymtabs): Replace psymbol_obstack with
3838 objfile_obstack.
3839 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
3840 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
3841 Ditto.
3842 * dwarfread.c (scan_compilation_units): Ditto.
3843 * elfread.c (elfstab_offset_sections): Ditto.
3844 * hppa-tdep.c (read_unwind_info): Ditto.
3845 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
3846 (hpread_end_psymtab): Ditto.
3847 * mdebugread.c (mdebug_build_psymtabs, add_pending)
3848 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
3849 Ditto.
3850 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3851 * objfiles.c (add_to_objfile_sections)
3852 (build_objfile_section_table): Ditto.
3853 (allocate_objfile): Remove init of psymbol_obstack.
3854 (free_objfile): Remove freeing of psymbol_obstack.
3855 * objfiles.h (struct objfile): Remove field
3856 psymbol_obstack. Update comments.
3857 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
3858 psymbol_obstack with objfile_obstack.
3859 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
3860 psymbol_obstack.
3861 * somread.c (som_symfile_offsets, init_import_symbols)
3862 (init_export_symbols): Replace psymbol_obstack with
3863 objfile_obstack.
3864 * somsolib.c (som_solib_add_solib_objfile): Ditto.
3865 * symfile.c (default_symfile_offsets, syms_from_objfile)
3866 (reread_symbols): Remove freeing and init of psymbol_obstack.
3867 (cashier_psymtab): Update comment.
3868 * symmisc.c (print_objfile_statistics): Don't report stats for
3869 psymbol obstack.
3870 * symtab.h (struct general_symbol_info, struct partial_symtab):
3871 Update comments.
3872 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
3873 (xcoff_symfile_offsets): Replace psymbol_obstack with
3874 objfile_obstack.
3875
3876 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
3877
3878 * objfiles.h (struct objfile): Add objfile_obstack field.
3879 Remove type_obstack field.
3880
3881 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
3882 read_structure_scope read_enumeration, new_symbol): Replace
3883 type_obstack with objfile_obstack.
3884 * dwarfread.c (struct_type, enum_type): Ditto.
3885 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
3886 (lookup_fundamental_type): Ditto.
3887 * gdbtypes.h (TYPE_ALLOC): Ditto.
3888 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
3889 (hpread_read_doc_function_type, hpread_read_struct_type)
3890 (fix_static_member_physnames, hpread_read_array_type)
3891 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
3892 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
3893 (java_link_class_type): Ditto.
3894 * mdebugread.c (parse_type): Ditto.
3895 * objfiles.c (allocate_objfile, free_objfile): Ditto.
3896 * solib-sunos.c (solib_add_common_symbols): Ditto.
3897 * stabsread.c (define_symbol, read_type, read_member_functions,
3898 read_cpp_abbrev, read_one_struct_field): Ditto.
3899 * symfile.c (reread_symbols): Ditto.
3900 * symmisc.c (print_objfile_statistics): Ditto.
3901
3902 2004-02-07 Andrew Cagney <cagney@redhat.com>
3903
3904 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
3905 (tui_exec_info_content): Rename TuiExecInfoContent.
3906 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
3907 (TuiWinInfo, TuiWinInfoPtr): Ditto.
3908 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
3909 (TuiList, TuiListPtr): Ditto.
3910 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
3911 (TuiDataType, TuiDataTypePtr): Ditto.
3912 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
3913 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
3914 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
3915 (TuiSourceElement, TuiSourceElementPtr): Ditto.
3916 (TuiDataElement, TuiDataElementPtr): Ditto.
3917 (TuiWinElement, TuiWinElementPtr): Ditto.
3918 (TuiDataInfo, TuiDataInfoPtr): Ditto.
3919 (TuiCommandElement, TuiCommandElementPtr): Ditto.
3920 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
3921 (TuiWhichElement, TuiWhichElementPtr): Ditto.
3922 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
3923 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
3924 * tui/tui-command.c, tui/tui-data.c: Update references.
3925 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
3926 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
3927 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3928 * tui/tui-winsource.c, tui/tui.c: Ditto.
3929
3930 2004-02-07 Mark Kettenis <kettenis@gnu.org>
3931
3932 * dwarf2-frame.h: Update copyright.
3933 (enum dwarf2_frame_reg_rule): New.
3934 (struct dwarf2_frame_state_reg): New.
3935 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
3936 * dwarf2-frame.c: Update copyright.
3937 (enum dwarf2_reg_rule): Remove.
3938 (struct dwarf2_frame_state): Remove defenition of `struct
3939 dwarf2_frame_state_reg'.
3940 (read_reg): Call get_frame_arch to get the architecture instead of
3941 using CURRENT_GDBARCH.
3942 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
3943 DWARF2_FRAME_.
3944 (dwarf2_frame_init_reg): New function.
3945 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
3946 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
3947 initialize the register state. Prefix old `enum dwarf2_reg_rule'
3948 tags with DWARF2_FRAME_.
3949 (dwarf2_frame_prev_register): Call get_frame_arch to get the
3950 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
3951 dwarf2_reg_rule' tags with DWARF2_FRAME_.
3952
3953 2004-02-06 Andrew Cagney <cagney@redhat.com>
3954
3955 * tui/tui-data.h (struct tui_list): Rename _TuiList.
3956 (enum tui_data_type): Rename _TuiDataType.
3957 (struct tui_layout_def): Rename _TuiLayoutDef.
3958 (struct tui_source_element): Rename _TuiSourceElement.
3959 (struct tui_data_element): Rename _TuiDataElement.
3960 (struct tui_command_element): Rename _TuiCommandElement.
3961 (struct tui_locator_element): Rename _TuiLocatorElement.
3962 (union tui_which_element): Define.
3963 (struct tui_win_element): Rename _TuiWinElement.
3964 (struct tui_data_info): Rename _TuiDataInfo.
3965 (struct tui_source_info): Rename _TuiSourceInfo.
3966 (struct tui_command_info): Rename _TuiCommandInfo.
3967 (tui_initialize_static_data): Rename initializeStaticData.
3968 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
3969 (tui_alloc_win_info): Rename allocWinInfo.
3970 (tui_init_generic_part): Rename initGenericPart.
3971 (tui_init_win_info): Rename initWinInfo.
3972 (tui_alloc_content): Rename allocContent.
3973 (tui_add_content_elements): Rename addContentElements.
3974 (tui_init_content_element): Rename initContentElement.
3975 (tui_free_window): Rename freeWindow.
3976 (tui_free_win_content): Rename freeWinContent.
3977 (tui_free_data_content): Rename freeDataContent.
3978 (tui_free_all_source_wins_content): Rename
3979 freeAllSourceWinsContent.
3980 (tui_del_window): Rename tuiDelWindow.
3981 (tui_del_data_windows): Rename tuiDelDataWindows.
3982 (tui_partial_win_by_name): Rename partialWinByName.
3983 (tui_win_name): Rename winName.
3984 (tui_current_layout): Rename currentLayout.
3985 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
3986 (tui_term_height): Rename termHeight.
3987 (tui_set_term_height_to): Rename setTermHeightTo.
3988 (tui_term_width): Rename termWidth.
3989 (tui_set_term_width_to): Rename setTermWidthTo.
3990 (tui_set_gen_win_origin): Rename setGenWinOrigin.
3991 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
3992 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
3993 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
3994 (tui_source_windows): Rename sourceWindows.
3995 (tui_clear_source_windows): Rename clearSourceWindows.
3996 (tui_clear_source_windows_detail): Rename
3997 clearSourceWindowsDetail.
3998 (tui_clear_win_detail): Rename clearWinDetail.
3999 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
4000 (tui_default_tab_len): Rename tuiDefaultTabLen.
4001 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
4002 (tui_win_with_focus): Rename tuiWinWithFocus.
4003 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
4004 (tui_layout_def): Rename tuiLayoutDef.
4005 (tui_win_resized): Rename tuiWinResized.
4006 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
4007 (tui_next_win): Rename tuiNextWin.
4008 (tui_prev_win): Rename tuiPrevWin.
4009 (tui_add_to_source_windows): Rename addToSourceWindows.
4010 * tui/tui-winsource.c, tui/tui-win.c: Update references.
4011 * tui/tui-layout.c, tui/tui-source.c: Ditto.
4012 * tui/tui-stack.c, tui/tui-io.c: Ditto.
4013 * tui/tui.c, tui/tui-data.c: Ditto.
4014 * tui/tui-interp.c, tui/tui-data.c: Ditto.
4015 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
4016
4017 * tui/tui-source.h: Update copyright. Include "tui-data.h".
4018 (struct symtab): Declare.
4019 (tui_set_source_content): Rename tuiSetSourceContent.
4020 (tui_show_symtab_source): Rename tuiShowSource.
4021 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
4022 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
4023 * tui/tui-source.c: Update copyright. Update references.
4024 * tui/tui-win.c, tui/tui-winsource.c: Update references.
4025 * tui/tui-stack.c: Update references.
4026
4027 * tui/tui-win.h: Update copyright. Include "tui-data.h".
4028 (struct tui_win_info): Declare.
4029 (tui_scroll_forward): Rename tuiScrollForward.
4030 (tui_scroll_backward): Rename tuiScrollBackward.
4031 (tui_scroll_left): Rename tuiScrollLeft.
4032 (tui_scroll_right): Rename tuiScrollRight.
4033 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
4034 (tui_resize_all): Rename tuiResizeAll.
4035 (tui_refresh_all_win): Rename tuiRefreshAll.
4036 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
4037 * tui/tui-layout.c, * tui/tui-io.c: Update references.
4038 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
4039 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
4040
4041 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
4042 (tui_erase_data_content): Rename tuiEraseDataContent.
4043 (tui_display_all_data): Rename tuiDisplayAllData.
4044 (tui_check_data_values): Rename tuiCheckDataValues.
4045 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
4046 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
4047 (tui_first_data_element_no_in_line): Rename
4048 tuiFirstDataElementNoInLine.
4049 (tui_delete_data_content_windows): Rename
4050 tuiDeleteDataContentWindows.
4051 (tui_refresh_data_win): Rename tuiRefreshDataWin.
4052 (tui_display_data_from): Rename tuiDisplayDataFrom.
4053 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
4054 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
4055 * tui/tui-win.c, tui/tui-regs.c: Update references.
4056 * tui/tui-layout.c, tui/tui.c: Update references.
4057
4058 * tui/tui-wingeneral.h: Update copyright.
4059 (m_allBeVisible): Delete macro.
4060 (m_allBeInvisible): Delete macro.
4061 (struct tui_gen_win_info): Declare.
4062 (struct tui_win_info): Declare.
4063 (tui_unhighlight_win): Rename unhighlightWin.
4064 (tui_make_visible, tui_make_invisible): Replace makeVisible.
4065 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
4066 (tui_make_window): Rename makeWindow.
4067 (tui_copy_win): Rename copyWin.
4068 (tui_box_win): Rename boxWin.
4069 (tui_highlight_win): Rename highlightWin.
4070 (tui_check_and_display_highlight_if_needed): Rename
4071 checkAndDisplayHighlightIfNeeded.
4072 (tui_refresh_all): Rename refreshAll.
4073 (tui_delete_win): Rename tuiDelwin.
4074 (tui_refresh_win): Rename tuiRefreshWin.
4075 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
4076 (tui_make_visible, tui_make_invisible): New functions.
4077 (tui_make_all_visible, tui_make_all_invisible): New functions.
4078 (make_all_visible): Rename makeAllVisible.
4079 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
4080 * tui/tui-data.c, tui/tui-winsource.c: Update references.
4081 * tui/tui-windata.c, tui/tui-win.c: Update references.
4082 * tui/tui-regs.c, tui/tui-layout.c: Update references.
4083 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
4084
4085 2004-02-06 Mark Kettenis <kettenis@gnu.org>
4086
4087 * proc-api.c (write_with_trace): Initialize local variable to
4088 silence compiler warning.
4089
4090 2004-02-06 Andrew Cagney <cagney@redhat.com>
4091
4092 * tui/tui-source.h: Do not include "defs.h".
4093 (struct tui_win_info): Declare.
4094 (tui_set_source_content_nil): Declare.
4095 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
4096 (union tui_line_or_address): Rename _TuiLineOrAddress.
4097 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
4098 (tui_update_source_window): Rename tuiUpdateSourceWindow.
4099 (tui_update_source_window_as_is): Rename
4100 tuiUpdateSourceWindowAsIs.
4101 (tui_update_source_windows_with_addr): Rename
4102 tuiUpdateSourceWindowsWithAddr.
4103 (tui_update_source_windows_with_line): Rename
4104 tuiUpdateSourceWindowsWithLine.
4105 (tui_clear_source_content): Rename tuiClearSourceContent.
4106 (tui_erase_source_content): Rename tuiEraseSourceContent.
4107 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
4108 (tui_show_source_content): Rename tuiShowSourceContent.
4109 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
4110 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
4111 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
4112 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
4113 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
4114 (tui_update_exec_info): Rename tuiUpdateExecInfo.
4115 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
4116 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
4117 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
4118 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
4119 (struct tui_win_info): Declare.
4120 * tui/tui-stack.c: Update references.
4121 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
4122 * tui/tui-win.c, tui/tui-source.c: Ditto.
4123 * tui/tui.c, tui/tui-disasm.c: Ditto.
4124
4125 2004-02-06 Mark Kettenis <kettenis@gnu.org>
4126
4127 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
4128 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
4129
4130 2004-02-05 Mark Kettenis <kettenis@gnu.org>
4131
4132 * infrun.c (handle_inferior_event): Allow for breakpoint
4133 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
4134 and SIGEMT. Update comments.
4135 * NEWS (Revised SPARC target): Mention support for non-executable
4136 stack.
4137
4138 2004-02-04 Mark Kettenis <kettenis@gnu.org>
4139
4140 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
4141 * inftarg.c: Update copyright year.
4142 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
4143 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
4144 (sparc_xfer_wcookie): New function.
4145 * sparc-tdep.c (sparc_fetch_wcookie): New function.
4146 * Makefile.in (sparc-nat.o): Update dependencies.
4147 * config/sparc/nm-nbsd.h: Include "target.h".
4148 (NATIVE_XFER_WCOOKIE): New define.
4149 (sparc_xfer_wcookie): New prototype.
4150
4151 2004-02-04 Andrew Cagney <cagney@redhat.com>
4152
4153 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
4154 SYSCALL_TRAP function.
4155 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
4156
4157 2004-02-04 Andrew Cagney <cagney@redhat.com>
4158 Daniel Jacobowitz <drow@mvista.com>
4159
4160 * objfiles.h: Delete comments refering to inside_entry_func and
4161 DEPRECATED_FRAME_CHAIN_VALID.
4162 * defs.h (inside_entry_func): Update prototype..
4163 * blockframe.c (inside_entry_func): Rename to
4164 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
4165 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
4166
4167 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
4168
4169 * breakpoint.c (struct captured_parse_breakpoint_args): Move
4170 outside of #ifdef SOLIB_ADD region.
4171 (do_restore_lang_radix_cleanup): Ditto.
4172 (resolve_pending_breakpoint): Ditto.
4173
4174 2004-02-03 Andrew Cagney <cagney@redhat.com>
4175
4176 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
4177 (process_note_abi_tag_sections): Delete unused function.
4178 (ia64_read_fp): Delete unused function.
4179 (gdbarch_extract_struct_value_address): Delete declaration.
4180
4181 2004-02-02 Andrew Cagney <cagney@redhat.com>
4182
4183 * vax-tdep.c (vax_frame_chain): Delete call to
4184 deprecated_inside_entry_file.
4185 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
4186
4187 2004-02-02 Mark Kettenis <kettenis@gnu.org>
4188
4189 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
4190 column that's "empty" or "same value" when eliminating REG_RA
4191 rules.
4192
4193 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
4194
4195 * NEWS: Add information about new pending breakpoint support.
4196
4197 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
4198
4199 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
4200 and pending fields for pending breakpoint support.
4201 * breakpoint.c (breakpoint_enabled): Add check for not pending.
4202 (condition_command): Only parse condition if not a pending
4203 breakpoint.
4204 (print_one_breakpoint): Add support for pending breakpoints.
4205 (describe_other_breakpoints): Add checks to verify we are not
4206 dealing with pending breakpoints.
4207 (check_duplicates): Don't check pending breakpoints.
4208 (set_raw_breakpoint): Initialize pending flag.
4209 (do_restore_lang_radix_cleanup): New cleanup routine.
4210 (resolve_pending_breakpoint): New function.
4211 (re_enable_breakpoints_in_shlibs): Try and resolve any
4212 pending breakpoints via resolve_pending_breakpoint.
4213 (mention): Add pending breakpoint support.
4214 (parse_breakpoint_sals): Add new parameter to pass to
4215 decode_line_1 to indicate silent errors when files or functions
4216 are not found. Change all callers.
4217 (do_captured_parse_breakpoint): New function.
4218 (break_command_1): Change prototype to return an rc value and to
4219 take an optional pending breakpoint pointer. Support creating
4220 a pending breakpoint if a "not found" form of error occurs when
4221 parsing the breakpoint. Also support resolving an existing pending
4222 breakpoint and be silent if the resolution fails.
4223 (create_breakpoints): Change prototype to take pending breakpoint
4224 pointer. When resolving a pending breakpoint, use the new pointer
4225 to provide a conditional or commands added by the end-user.
4226 (delete_breakpoint): Add appropriate check for pending.
4227 (breakpoint_re_set_one): Ditto.
4228 (do_enable_breakpoint): Ditto.
4229
4230 2004-02-02 David Carlton <carlton@kealia.com>
4231
4232 * valops.c (enum oload_classification): New.
4233 (find_overload_match): Break implementation into separate
4234 functions; delete #if 0'd code; look for symbols within
4235 namespaces.
4236 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
4237 (find_oload_champ,oload_method_static,classify_oload_match): New.
4238 * cp-support.h: Add declaration for cp_func_name; update
4239 declaration for make_symbol_overload_list.
4240 * cp-support.c (cp_func_name): New.
4241 (overload_list_add_symbol): Fix comment, use
4242 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
4243 (make_symbol_overload_list): Take a function name and a namespace
4244 instead of a symbol; change implementation.
4245 (make_symbol_overload_list_using): New.
4246 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
4247
4248 2004-02-02 Fred Fish <fnf@redhat.com>
4249
4250 * main.c (gdb_stdtarg): Move definition to group with other
4251 gdb_stdtarg definitions and update copyright years.
4252 * remote-sim.c (gdb_os_write_stderr): Write output to
4253 gdb_stdtargerr stream instead of gdb_stdtarg stream.
4254 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
4255 gdb_stderr stream and update copyright years.
4256
4257 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
4258
4259 * Makefile.in (mips-linux-nat.o): Update dependencies.
4260 * mips-linux-nat.c: Include mips-tdep.h.
4261
4262 2004-02-01 Roland McGrath <roland@redhat.com>
4263
4264 * sol-thread.c (sol_thread_xfer_partial): New function.
4265 (init_sol_thread_ops): Use that for to_xfer_partial hook.
4266 (init_sol_core_ops): Likewise.
4267
4268 * procfs.c (procfs_xfer_partial): New function.
4269 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
4270 * Makefile.in (procfs.o): Add $(auxv_h) dep.
4271
4272 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
4273 procfs_xfer_auxv function.
4274
4275 * procfs.c (procfs_make_note_section): If we can read
4276 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
4277 * linux-proc.c (linux_make_note_section): Likewise.
4278
4279 * auxv.h: New file.
4280 * auxv.c: New file.
4281 * Makefile.in (auxv_h): New variable.
4282 (COMMON_OBS): Add auxv.o here.
4283 (auxv.o): New target.
4284
4285 * corelow.c (core_xfer_partial): New function.
4286 (init_core_ops): Use it for core_ops.to_xfer_partial.
4287
4288 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
4289 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
4290 macro if that is defined.
4291
4292 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
4293
4294 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
4295 and check the specified thread for each breakpoint.
4296 * breakpoint.h (bpstat_stop_status): Update prototype.
4297 * infrun.c (handle_inferior_event): Update calls to
4298 bpstat_stop_status.
4299
4300 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
4301
4302 * Makefile.in (cli-cmds.o): Add $(readline_h).
4303
4304 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
4305
4306 * cli/cli-cmds.c: Include readline.h.
4307 (complete_command): Pass the start of the last word to
4308 complete_line.
4309
4310 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
4311
4312 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
4313 argument, and change first argument to a CORE_ADDR.
4314 * breakpoint.h (bpstat_stop_status): Update prototype.
4315 * infrun.c (adjust_pc_after_break): Add a new comment.
4316 (handle_inferior_event): Update calls to bpstat_stop_status.
4317
4318 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
4319
4320 * breakpoint.h: Update copyright years.
4321
4322 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
4323
4324 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
4325 (bpstat_stop_status): Don't decrement PC.
4326 * breakpoint.h (software_breakpoint_inserted_here_p): Add
4327 prototype.
4328 * infrun.c (adjust_pc_after_break): New function.
4329 (handle_inferior_event): Call it, early. Remove later references
4330 to DECR_PC_AFTER_BREAK.
4331 (normal_stop): Add commentary.
4332
4333 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
4334
4335 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
4336 2004-01-27 double-free fix.
4337
4338 2004-01-31 Mark Kettenis <kettenis@gnu.org>
4339
4340 * sparc-tdep.c (sparc_fetch_wcookie): New function.
4341 (sparc32_frame_prev_register): Handle StackGhost.
4342 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
4343
4344 2004-01-29 Roland McGrath <roland@redhat.com>
4345
4346 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
4347 * configure: Regenerated.
4348
4349 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
4350 * Makefile.in (procfs.o): Add dep.
4351
4352 2004-01-28 Andrew Cagney <cagney@redhat.com>
4353
4354 * tui/tui-stack.h: Update copyright.
4355 (struct frame_info): Add opaque declaration.
4356 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
4357 (tui_show_locator_content): Rename tuiShowLocatorContent.
4358 (tui_show_frame_info): Rename tuiShowFrameInfo.
4359 * tui/tui-stack.c: Update copyright. Update references.
4360 * tui/tui-winsource.c: Update references.
4361 * tui/tui-win.c: Update references.
4362 * tui/tui-layout.c: Update references.
4363 * tui/tui-hooks.c: Update copyright, update references.
4364 * tui/tui.c: Update copyright, update references.
4365 * tui/tui-disasm.c: Update references.
4366
4367 2004-01-28 David Carlton <carlton@kealia.com>
4368
4369 * dwarf2read.c (add_partial_structure): Use demangled name if
4370 namespace equals "".
4371
4372 2004-01-27 Jim Blandy <jimb@redhat.com>
4373
4374 Clean up misapplied patch:
4375 * dwarf2read.c (determine_prefix): Change one of the two forward
4376 declarations for 'determine_prefix_aux' to a declaration for this.
4377 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
4378 argument to 'die_specification'.
4379
4380 * dwarf2read.c (read_func_scope): Re-indent comment.
4381
4382 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
4383
4384 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
4385 b->exp to NULL after freeing so that error during re-parsing or
4386 evaluation of expressions associated with breakpoint don't
4387 eventually lead to re-freeing of storage.
4388 Committed by Andrew Cagney.
4389
4390 2004-01-27 Andrew Cagney <cagney@redhat.com>
4391
4392 * source.c (ambiguous_line_spec): Delete undefined declaration.
4393 * m32r-rom.c (m32r_set_board_address): Delete unused function.
4394 (m32r_set_server_address, m32r_set_download_path): Ditto.
4395 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
4396
4397 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
4398
4399 * dwarf2read.c: Update calls to changed and renamed functions, and
4400 references to moved variables.
4401
4402 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
4403 language, language_defn, list_in_scope, and ftypes members.
4404 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
4405 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
4406 (baseaddr): Remove globals.
4407
4408 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
4409 (set_cu_language, die_is_declaration, die_specification)
4410 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
4411 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
4412 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
4413 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
4414
4415 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
4416 cu.list_in_scope. Don't initialize cu_header_offset.
4417 (add_partial_symbol): Add local baseaddr.
4418 (psymtab_to_symtab_1): Add local baseaddr. Use
4419 objfile->section_offsets for consistency. Don't initialize
4420 cu_header_offset; do initialize cu.header.offset and
4421 cu.list_in_scope.
4422 (read_file_scope, read_func_scope, read_lexical_block_scope)
4423 (dwarf_decode_lines, new_symbol): Add local baseaddr.
4424
4425 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
4426
4427 * PROBLEMS: Add gdb/1516.
4428
4429 2003-12-29 Robert Millan <robertmh@gnu.org>
4430
4431 Patch committed by Andrw Cagney.
4432 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
4433 * configure.tgt: Match knetbsd*-gnu.
4434
4435 2004-01-26 Andrew Cagney <cagney@redhat.com>
4436
4437 * breakpoint.c (catch_command_1): Delete #ifdef code.
4438 (catch_fork_command_1): Delete #ifdef wrapper.
4439 (catch_exec_command_1): Ditto.
4440 (catch_load_command_1): Ditto.
4441 (catch_unload_command_1): Ditto.
4442
4443 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
4444 (catch_breakpoint): Delete #if0ed function.
4445 (disable_catch_breakpoint): Ditto.
4446 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
4447 (disable_catch, enable_catch, delete_catch): Ditto.
4448
4449 2004-01-26 Andrew Cagney <cagney@redhat.com>
4450
4451 * remote.c (echo_check, quit_flag): Delete variables.
4452 (cisco_kernel_mode): Delete variable.
4453 (minitelnet_return, tty_input, escape_count): Delete variables.
4454 (remote_cisco_mode): Delete variable.
4455 (remote_cisco_open, remote_cisco_close): Delete function.
4456 (remote_cisco_mourn, remote_cisco_wait): Delete function.
4457 (init_remote_cisco_ops): Delete function.
4458 (_initialize_remote): Do not install "remote cisco" code.
4459 (read_frame): Delete cisco specific code.
4460 (remote_info_process): Delete function.
4461 (remote_wait): Delete cisco specific code.
4462 (remote_cisco_section_offsets): Delete function.
4463 (remote_cisco_objfile_relocate): Delete function.
4464 (remote_async_wait): Delete cisco specific code.
4465 (minitelnet, readtty, readsocket): Delete function.
4466
4467 2004-01-26 Andrew Cagney <cagney@redhat.com>
4468
4469 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
4470 comments mentioning extract_returned_value_address.
4471 * infcmd.c (print_return_value): Update. Add comments on
4472 extract_returned_value_address.
4473 * stack.c (return_command): Add comments on
4474 extract_returned_value_address.
4475 * values.c: Update comment.
4476 * m32r-tdep.c: Update comment.
4477 * sparc-tdep.c: Update comment.
4478 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
4479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4480 * sh64-tdep.c (sh64_gdbarch_init): Update.
4481 * sh-tdep.c (sh_gdbarch_init): Update.
4482 * s390-tdep.c (s390_gdbarch_init): Update.
4483 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4484 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
4485 * m68k-tdep.c (m68k_gdbarch_init): Update.
4486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4487 * m32r-tdep.c (m32r_gdbarch_init): Update.
4488 * ia64-tdep.c (ia64_gdbarch_init): Update.
4489 * h8300-tdep.c (h8300_gdbarch_init): Update.
4490 * frv-tdep.c (frv_gdbarch_init): Update.
4491 * arm-tdep.c (arm_gdbarch_init): Update.
4492 * alpha-tdep.c (alpha_gdbarch_init): Update.
4493
4494 2004-01-26 Andrew Cagney <cagney@redhat.com>
4495
4496 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
4497 SYMBOL_LOCATION_FUNCS
4498 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
4499 "struct symbol_ops".
4500 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
4501 type to "struct symbol_ops".
4502 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
4503 (struct symbol): Replace ".aux_value.loc.funcs" and
4504 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
4505 (SYMBOL_OBJFILE): Delete macro.
4506 (SYMBOL_LOCATION_FUNCS): Delete macro.
4507 (SYMBOL_LOCATION_BATON): Update.
4508 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
4509 intead of SYMBOL_LOCATION_FUNCS.
4510 * ax-gdb.c (gen_var_ref): Ditto.
4511 * printcmd.c (address_info): Ditto.
4512 * findvar.c (read_var_value): Ditto.
4513 (symbol_read_needs_frame): Ditto.
4514
4515 2004-01-26 Andrew Cagney <cagney@redhat.com>
4516
4517 * dwarf2read.c (read_func_scope): Document frame-base hack.
4518
4519 2004-01-25 Mark Kettenis <kettenis@gnu.org>
4520
4521 * infcmd.c (print_return_value): Plug memory leak; delete
4522 ui_stream object. Rename argument `structure_return' to
4523 `struct_return'.
4524
4525 2004-01-25 Mark Kettenis <kettenis@gnu.org>
4526
4527 * infcmd.c (print_return_value): Wrap long lines.
4528 (finish_command_continuation, finish_command): Remove unused
4529 variable `funcaddr'. Fix some coding-standards problems.
4530
4531 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
4532 SECT_SIZE is large enough, not whether it's exactly the right size.
4533 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
4534 TDEP->fpregset to zero.
4535
4536 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
4537 floating-point registers for traditional NetBSD core files.
4538 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
4539 TDEP->sizeof_fpregset here.
4540
4541 2004-01-25 Mark Kettenis <kettenis@gnu.org>
4542
4543 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
4544 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
4545 function with code split out from
4546 sparc32nbsd_sigcontext_frame_cache.
4547 (sparc32nbsd_sigcontext_frame_cache): Use
4548 sparc32nbsd_sigcontext_saved_regs.
4549 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
4550 OpenBSD.
4551 * sparcobsd-tdep.c: New file.
4552 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
4553 (sparcobsd-tdep.o): New dependency.
4554 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
4555 * config/sparc/obsd.mt: New file.
4556
4557 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
4558 TDEP->fpregset to be initialized to enable core file register
4559 sets.
4560
4561 2004-01-24 Mark Kettenis <kettenis@gnu.org>
4562
4563 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
4564 Add opaque declarations.
4565 (sparc64nbsd_sigcontext_saved_regs): New prototype.
4566 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
4567 function with code split out from
4568 sparc64nbsd_sigcontext_frame_cache.
4569 (sparc64nbsd_sigcontext_frame_cache): Use
4570 sparc64nbsd_sigcontext_saved_regs.
4571 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
4572 OpenBSD.
4573 * sparc64obsd-tdep.c: New file.
4574 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
4575 (sparc64obsd-tdep.o): New dependency.
4576 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
4577 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
4578 * config/sparc/obsd64.mt: New file.
4579
4580 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
4581 read the instruction at PC.
4582
4583 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
4584 value of GDB_OSABI_DEFAULT.
4585 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
4586 instead of GDB_OSABI_NETBSD_AOUT.
4587
4588 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
4589
4590 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
4591 copyright.
4592
4593 2004-01-23 Andrew Cagney <cagney@redhat.com>
4594
4595 * printcmd.c (display_command): Replace tui_set_display call with
4596 tui_set_layout_for_display_command.
4597 * tui/tui.h (enum tui_win_type): Define.
4598 (tui_set_layout): Delete declaration.
4599 (tui_set_layout_for_display_command): Rename set_tui_layout.
4600 * tui/tui-data.h (enum tui_layout_type): Define.
4601 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
4602 "tui.h".
4603 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
4604 (tui_default_win_height): Rename tuiDefaultWinHeight.
4605 (tui_default_win_viewport_height): Rename
4606 tuiDefaultWinViewportHeight.
4607 (tui_set_layout): RenametuiSetLayout.
4608 * tui/tui-layout.c: Update references.
4609 * tui/tui.c: Update references.
4610 * tui/tui-disasm.c: Update references.
4611
4612 2004-01-23 David Carlton <carlton@kealia.com>
4613
4614 Partial workaround for PR c++/1511:
4615 * cp-namespace.c: Include frame.h.
4616 (cp_lookup_transparent_type): New
4617 (cp_lookup_transparent_type_loop): New.
4618 * cp-support.h: Declare cp_lookup_transparent_type.
4619 * symtab.c (basic_lookup_transparent_type): Renamed from
4620 lookup_transparent_type.
4621 (lookup_transparent_type): Replace old body by a call to
4622 current_language->la_lookup_transparent_type.
4623 * symtab.h: Update copyright. Declare
4624 basic_lookup_transparent_type.
4625 * language.h: Update copyright.
4626 (struct language_defn): Add la_lookup_transparent_type.
4627 * language.c: Update copyright.
4628 (unknown_language_defn): Add basic_lookup_transparent_type.
4629 (auto_language_defn): Add basic_lookup_transparent_type.
4630 (local_language_defn): Add basic_lookup_transparent_type.
4631 * ada-lang.c: Update copyright.
4632 (ada_language_defn): Add basic_lookup_transparent_type.
4633 * c-lang.c: Update copyright.
4634 (c_language_defn): Add basic_lookup_transparent_type.
4635 (cplus_language_defn): Add basic_lookup_transparent_type.
4636 (asm_language_defn): Add basic_lookup_transparent_type.
4637 (minimal_language_defn): Add basic_lookup_transparent_type.
4638 * f-lang.c: Update copyright.
4639 (f_language_defn): Add basic_lookup_transparent_type.
4640 * jv-lang.c: Update copyright.
4641 (java_language_defn): Add basic_lookup_transparent_type.
4642 * m2-lang.c: Update copyright.
4643 (m2_language_defn): Add basic_lookup_transparent_type.
4644 * objc-lang.c: Update copyright.
4645 (objc_language_defn): Add basic_lookup_transparent_type.
4646 * p-lang.c: Update copyright.
4647 (p_language_defn): Add basic_lookup_transparent_type.
4648 * scm-lang.c: Update copyright.
4649 (scm_language_defn): Add basic_lookup_transparent_type.
4650 * Makefile.in (cp-namespace.o): Depend on frame.h.
4651
4652 2004-01-23 David Carlton <carlton@kealia.com>
4653
4654 Patch for PR c++/1520:
4655 * dwarf2read.c (read_func_scope): Set processing_current_prefix
4656 properly if we have a specification die.
4657 (determine_prefix_aux): Rename from determine_prefix.
4658 (determine_prefix): Like the old determine_prefix, but never
4659 returns NULL.
4660
4661 2004-01-23 Theodore A. Roth <troth@openavr.org>
4662
4663 * avr-tdep.c: Update copyright.
4664 (avr_iaddr_p): Delete unused function.
4665 (avr_saddr_p): Delete unused function.
4666
4667 2004-01-23 David Carlton <carlton@kealia.com>
4668
4669 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
4670 Fix for PR symtab/1534.
4671
4672 2004-01-23 Mark Kettenis <kettenis@gnu.org>
4673
4674 * NEWS (New native configurations): Mention OpenBSD/sparc and
4675 OpenBSD/sparc64.
4676 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
4677 * configure.host: Likewise.
4678 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
4679 handler for OpenBSD.
4680 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
4681
4682 2004-01-22 Mark Kettenis <kettenis@gnu.org>
4683
4684 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
4685 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
4686
4687 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
4688 * cli/cli-cmds.c (shell_escape): Likewise.
4689
4690 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
4691 OpenBSD .note.openbsd.ident sections.
4692
4693 2004-01-22 David Carlton <carlton@kealia.com>
4694
4695 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
4696 get_scope_pc_bounds.
4697 (read_file_scope): Ditto.
4698 (get_scope_pc_bounds): New function, produced by extracting code
4699 from the above two functions, consolidating it, and adding support
4700 for DW_TAG_namespace.
4701
4702 2004-01-22 Mark Kettenis <kettenis@gnu.org>
4703
4704 * osabi.c (MAX_NOTESZ): New define.
4705 (check_note): New function.
4706 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
4707 check_note.
4708
4709 2004-01-21 Roland McGrath <roland@redhat.com>
4710
4711 * MAINTAINERS (write after approval): Add myself.
4712
4713 2004-01-21 Eli Zaretskii <eliz@gnu.org>
4714
4715 * utils.c (init_page_info): Move declarations of `rows' and
4716 `cols' before the __GO32__-specific code. Move the closing brace
4717 outside the #ifdef __GO32__..#endif block.
4718 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
4719
4720 2004-01-21 Paul Brook <paul@codesourcery.com>
4721
4722 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
4723 BPSTAT_WHAT_CHECK_SHLIBS.
4724
4725 2004-01-21 Paul Brook <paul@codesourcery.com>
4726
4727 * MAINTAINERS: Add myself to write-after-approval.
4728
4729 2004-01-20 Andrew Cagney <cagney@redhat.com>
4730
4731 * ax-gdb.c (print_axs_value): Delete unused function.
4732 * jv-lang.c (java_lookup_type): Delete unused function.
4733 * cli/cli-dump.c (dump_filetype): Delete unused function.
4734 * remote-mips.c (remote_mips_insert_hw_breakpoint)
4735 (remote_mips_remove_hw_breakpoint): Delete unused functions.
4736 (mips_getstring): Delete unused function.
4737 (pmon_insert_breakpoint): Delete #if0ed function.
4738 (PMON_MAX_BP): Delete #if0ed MACRO.
4739 (mips_pmon_bp_info): Delete #if0ed variable.
4740 (pmon_remove_breakpoint): Delete #if0ed function.
4741 * monitor.c (monitor_write_even_block): Delete unused function.
4742 (monitor_write_memory_block): Delete #if0ed code.
4743 * dink32-rom.c (dink32_load): Delete unused function.
4744 (_initialize_dink32_rom): Delete #if0ed code.
4745 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
4746
4747 * tui/tui-command.c: Update references.
4748 * tui/tui-io.c: Update references.
4749 * tui/tui-command.h: Update copyright.
4750 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
4751
4752 * source.c (ambiguous_line_spec): Delete never-defined function.
4753 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
4754 * gdbtypes.c (add_name, add_mangled_type): Ditto.
4755 * cli/cli-cmds.c (validate_comname): Ditto.
4756
4757 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
4758 "tui-data.h".
4759 (tui_set_disassem_content): Rename tuiSetDisassemContent.
4760 (tui_show_disassem): Rename tuiShowDisassem.
4761 (tui_show_disassem_and_update_source): Rename
4762 tuiVerticalDisassemScroll.
4763 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
4764 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
4765 * tui/tui.h: Update copyright.
4766 (enum tui_status): Define.
4767 * tui/tui-data.h (enum tui_scroll_direction): Define.
4768 * tui/tui-disasm.c: Update copyright. Update references.
4769 * tui/tui-winsource.c: Update copyright. Update references.
4770 * tui/tui-win.c: Update references.
4771 * tui/tui-layout.c: Update references.
4772
4773 2004-01-20 Andrew Cagney <cagney@redhat.com>
4774
4775 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
4776 sym2 to start of block.
4777
4778 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
4779
4780 * MAINTAINERS: Delete mmalloc.
4781 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
4782 * NEWS: Mention removal of --with-malloc.
4783 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
4784 * config.in: Regenerate.
4785 * configure: Regenerate.
4786 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
4787 USE_MMALLOC, MMCHECK_FORCE.
4788 * gdbinit.in: Remove mmalloc.
4789 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
4790 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
4791 * config/i386/go32.mh: Likewise.
4792 * config/i386/interix.mh: Likewise.
4793 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
4794
4795 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
4796
4797 * linespec.c (decode_variable, symtab_from_filename): Call
4798 error_silent with error message instead of throwing an exception
4799 directly.
4800 * defs.h (error_silent, error_output_message): Add prototypes.
4801 (catch_exceptions_with_msg): Ditto.
4802 * utils.c (error_silent, error_output_message): New functions.
4803 * top.c (catch_exceptions_with_msg): New function.
4804
4805 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
4806
4807 * mi/mi-cmds.h (enum print_values): Add definition.
4808
4809 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
4810 type and value for simple data types and just the name and type
4811 for complex ones, if required.
4812
4813 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
4814 children, if required.
4815
4816 2004-01-19 Kevin Buettner <kevinb@redhat.com>
4817
4818 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
4819 unused declarations.
4820
4821 2004-01-19 Andrew Cagney <cagney@redhat.com>
4822
4823 * top.h (mapped_symbol_files): Delete declaration.
4824 * main.c (captured_main): Delete option "m" and "mapped".
4825 * objfiles.c (mapped_symbol_files): Delete variable.
4826 * symfile.c (symbol_file_command): Delete mmap code.
4827 (symbol_file_add_with_addrs_or_offsets): Ditto.
4828 (add_symbol_file_command, reread_separate_symbols): Ditto.
4829 * objfiles.h (OBJF_MAPPED): Delete.
4830 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
4831 (free_objfile) [USE_MMALLOC]: Ditto.
4832 (open_existing_mapped_file): Delete function.
4833 (open_mapped_file): Delete function.
4834 (map_to_file): Delete function.
4835
4836 2004-01-19 Kevin Buettner <kevinb@redhat.com>
4837
4838 * infrun.c (step_into_function): Account for possible breakpoint
4839 adjustment when computing ``stop_func_start''.
4840
4841 2004-01-19 Kevin Buettner <kevinb@redhat.com>
4842
4843 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
4844 the region size against the size of a pointer, not the size of
4845 a register as given by DEPRECATED_REGISTER_SIZE.
4846
4847 2004-01-19 Andrew Cagney <cagney@redhat.com>
4848
4849 * tui/tui-regs.h: Include "tui-data.h".
4850 (tuiFirstRegElementNoInLine): Delete declaration.
4851 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
4852 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
4853 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
4854 (tui_calculate_regs_column_count): Rename
4855 tuiCalculateRegsColumnCount.
4856 (tui_check_register_values): Rename tuiCheckRegisterValues.
4857 (tui_show_registers): Rename tuiShowRegisters.
4858 (tui_display_registers_from_line): Rename
4859 tuiDisplayRegistersFromLine.
4860 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
4861 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
4862 (tui_first_reg_element_no_inline): Rename
4863 tuiFirstRegElementNoInLine.
4864 * tui/tui-data.h: Update copyright.
4865 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
4866 * tui/tui-windata.c: Update copyright, update references.
4867 * tui/tui-regs.c: Update copyright, update references.
4868 * tui/tui-win.c: Update copyright, update references.
4869 * tui/tui-layout.c: Update copyright, update references.
4870
4871 2004-01-18 Andrew Cagney <cagney@redhat.com>
4872
4873 * tui/tui-io.c: Update copyright.
4874 (key_is_end_sequence, key_is_backspace): New functions.
4875 (key_is_command_char, key_is_start_sequence): New function.
4876 (tui_getc): Update references.
4877 * tui/tui-io.h: Update copyright.
4878 (m_tuiStartNewLine): Delete macro.
4879 (m_isBackspace, m_isDeleteChar): Delete macros.
4880 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
4881 (m_isNextPage, m_isPrevPage): Delete macros.
4882 (m_isLeftArrow, m_isRightArrow): Delete macros.
4883 (m_isXdbStyleCommandChar): Delete macro.
4884 (key_is_start_sequence): Declare, replace m_isStartSequence.
4885 (key_is_end_sequence): Declare, replace m_isEndSequence.
4886 (key_is_backspace): Declare ,replace m_isBackspace.
4887 (key_is_command_char): Declare, replace m_isCommandChar.
4888 * tui/tui-command.c: Update copyright.
4889 (tuiDispatchCtrlChar): Update references.
4890
4891 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
4892 tuiSourceWin.h.
4893
4894 * tui/tui-command.c: Rename tui/tuiCommand.c.
4895 * tui/tui-command.h: Rename tui/tuiCommand.h.
4896 * tui/tui-data.c: Rename tui/tuiData.c.
4897 * tui/tui-data.h: Rename tui/tuiData.h.
4898 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
4899 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
4900 * tui/tui-io.c: Rename tui/tuiIO.c.
4901 * tui/tui-io.h: Rename tui/tuiIO.h.
4902 * tui/tui-layout.c: Rename tui/tuiLayout.c.
4903 * tui/tui-layout.h: Rename tui/tuiLayout.h.
4904 * tui/tui-regs.c: Rename tui/tuiRegs.c.
4905 * tui/tui-regs.h: Rename tui/tuiRegs.h.
4906 * tui/tui-source.c: Rename tui/tuiSource.c.
4907 * tui/tui-source.h: Rename tui/tuiSource.h.
4908 * tui/tui-stack.c: Rename tui/tuiStack.c.
4909 * tui/tui-stack.h: Rename tui/tuiStack.h.
4910 * tui/tui-win.c: Rename tui/tuiWin.c.
4911 * tui/tui-win.h: Rename tui/tuiWin.h.
4912 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
4913 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
4914 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
4915 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
4916 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
4917 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
4918 * tui/tui-file.c: Update includes.
4919 * tui/tui-hooks.c: Update includes.
4920 * tui/tui-interp.c: Update includes.
4921 * tui/tui.c: Update includes.
4922 * Makefile.in: Update all tui/ dependencies.
4923 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
4924
4925 * Makefile.in: Update copyright. Update dependencies.
4926
4927 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
4928 problem.
4929
4930 2004-01-18 Andrew Cagney <cagney@redhat.com>
4931
4932 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
4933 instead of register_gdbarch_init.
4934
4935 * remote-sds.c (tohex): Delete unused function. Update copyright.
4936 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
4937 * v850-tdep.c (v850_register_virtual_size): Ditto.
4938 * target.c (normal_target_post_startup_inferior): Ditto.
4939 * source.c (ambiguous_line_spec): Ditto.
4940 * remote.c (adapt_remote_get_threadinfo): Ditto.
4941 * mi/mi-out.c (out_field_fmt): Ditto.
4942 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
4943 (output_control_change_notification): Ditto.
4944 * m68k-tdep.c (m68k_register_byte): Ditto.
4945 (m68k_remote_breakpoint_from_pc): Ditto.
4946 * ui-out.c (init_ui_out_state): Delete unused declaration.
4947 * stabsread.c (search_value): Ditto.
4948 * mi/mi-cmd-env.c (env_cli_command): Ditto.
4949 * maint.c (print_section_table): Ditto.
4950 * infrun.c (set_follow_fork_mode_command): Ditto.
4951
4952 2004-01-18 Mark Kettenis <kettenis@gnu.org>
4953
4954 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
4955 DW_CFA_def_cfa_exporession. Add support for
4956 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
4957 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
4958
4959 2004-01-18 Andrew Cagney <cagney@redhat.com>
4960
4961 * ocd.c: Update copyright.
4962 (bdm_read_register_command): Delete unused function.
4963 (_initialize_remote_ocd): Delete commented out reference.
4964 (get_quoted_char, reset_packet): Delete #if0ed function.
4965 (output_packet, put_quoted_char): Delete #if0ed function.
4966 (stu_put_packet, stu_get_packet): Delete #if0ed function.
4967 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
4968 (BDM_BREAKPOINT): Delete #if0ed macro.
4969 (remote_timeout): Delete #if0ed variable.
4970
4971 2004-01-18 Mark Kettenis <kettenis@gnu.org>
4972
4973 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
4974 (core-sol2.o): Remove dependency.
4975 * core-sol2.c: Remove file.
4976
4977 2004-01-17 Andrew Cagney <cagney@redhat.com>
4978
4979 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
4980 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
4981 enums.
4982
4983 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
4984
4985 * remote.c: Update copyright years.
4986
4987 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
4988
4989 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
4990
4991 2004-01-17 Andrew Cagney <cagney@redhat.com>
4992
4993 * mdebugread.c: Update copyright.
4994 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
4995 (parse_type, parse_procedure): Ditto.
4996 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
4997
4998 * cris-tdep.c (cris_store_struct_return): Put back accidently
4999 deleted function.
5000
5001 * gdbarch.sh: Update copyright year.
5002 * gdbarch.h, gdbarch.c: Re-generate.
5003
5004 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
5005
5006 Suggested by George Anzinger.
5007 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
5008 correct stack offset. Include unknown opcode numbers in the error
5009 message.
5010
5011 2004-01-17 Andrew Cagney <cagney@redhat.com>
5012
5013 * x86-64-tdep.c (x86_64_init_abi): No need to clear
5014 extract_struct_value_address, i386 does not set it.
5015 * sparc64-tdep.c (sparc64_init_abi): Do not set
5016 extract_struct_value_address, never called.
5017 (sparc64_extract_struct_value_address): Delete function.
5018 * m68hc11-tdep.c: Update copyright.
5019 (m68hc11_gdbarch_init): Delete redundant assignment of
5020 extract_struct_value_address.
5021 * i386-tdep.c: Update copyright.
5022 (i386_gdbarch_init): Do not set extract_struct_value_address,
5023 never called.
5024 (i386_extract_struct_value_address): Delete function.
5025 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
5026 extract_struct_value_address, never called.
5027 (sparc32_extract_struct_value_address): #if 0 function. Add
5028 comments explaining its future.
5029
5030 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
5031
5032 * arm-tdep.c (arm_write_pc): New function.
5033 (arm_gdbarch_init): Call set_gdbarch_write_pc.
5034
5035 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
5036
5037 * breakpoint.c (must_shift_inst_regs): Delete.
5038 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
5039 and SHIFT_INST_REGS.
5040 * infcmd.c (step_1, step_1_continuation): Delete references to
5041 SHIFT_INST_REGS.
5042 * infrun.c (keep_going): Likewise.
5043 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
5044 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
5045
5046 2004-01-17 Andrew Cagney <cagney@redhat.com>
5047
5048 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5049 * gdbarch.h, gdbarch.c: Re-generate.
5050 * infcmd.c (print_return_value): Delete reference to
5051 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5052
5053 * cris-tdep.c (cris_gdbarch_init): Do not set
5054 deprecated_extract_struct_value_address.
5055
5056 * xstormy16-tdep.c: Update copyright.
5057 (xstormy16_extract_struct_value_address): Update to current
5058 extract struct value address interface.
5059 (xstormy16_gdbarch_init): Set extract_struct_value_address.
5060 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
5061 current extract struct value address interface.
5062 (sh64_gdbarch_init): Set extract_struct_value_address.
5063
5064 * cris-tdep.c: Update copyright.
5065 (cris_extract_struct_value_address): Delete function.
5066 (struct_return_address): Delete variable.
5067 (cris_store_struct_return): Do not set struct_return_address.
5068
5069 * mcore-tdep.c: Update copyright.
5070 (mcore_extract_struct_value_address): Delete function. Update
5071 comments.
5072 (mcore_gdbarch_init): Update.
5073 * mn10300-tdep.c: Update copyright.
5074 (mn10300_extract_struct_value_address): Delete function.
5075 (mn10300_gdbarch_init): Update.
5076 * v850-tdep.c: Update copyright.
5077 (v850_extract_struct_value_address): Delete.
5078 (v850_gdbarch_init): Update.
5079 * ns32k-tdep.c: Update copyright.
5080 (ns32k_extract_struct_value_address): Delete.
5081 (ns32k_gdbarch_init): Update.
5082 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
5083 (hppa_gdbarch_init): Update.
5084 * vax-tdep.c: Update copyright.
5085 (vax_extract_struct_value_address): Delete.
5086 (vax_gdbarch_init): Update.
5087
5088 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
5089 * gdbarch.h, gdbarch.c: Re-generate.
5090 * procfs.c (procfs_fetch_registers): Delete reference to
5091 DEPRECATED_NPC_REGNUM.
5092 (procfs_store_registers): Ditto.
5093 * regcache.c (generic_target_write_pc): Simplify.
5094 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
5095
5096 * core-sol2.c (fetch_core_registers): Replace
5097 DEPRECATED_NPC_REGNUM with equivalent tdep value.
5098
5099 * hppa-tdep.c: Update copyright year.
5100 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
5101 NPC_REGNUM.
5102 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
5103
5104 * mips-tdep.c (mips_write_pc): New function.
5105 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
5106 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
5107 (mips_find_saved_regs, mips_software_single_step: Ditto.
5108 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
5109 mips_init_extra_frame_info, mips_pop_frame): Ditto.
5110
5111 2004-01-17 Andrew Cagney <cagney@redhat.com>
5112
5113 * mips-tdep.c: Re-indent. Group functions by ABI.
5114
5115 2004-01-17 Andrew Cagney <cagney@redhat.com>
5116
5117 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
5118 * gdbarch.c: Re-generate.
5119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5120 DECR_PC_AFTER_BREAK to zero.
5121 * vax-tdep.c (vax_gdbarch_init): Ditto.
5122 * v850-tdep.c (v850_gdbarch_init): Ditto.
5123 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
5124 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5125 * sh-tdep.c (sh_gdbarch_init): Ditto.
5126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5127 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5128 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5129 * mips-tdep.c (mips_gdbarch_init): Ditto.
5130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5132 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
5133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5134 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
5135 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5137 * frv-tdep.c (frv_gdbarch_init): Ditto.
5138 * cris-tdep.c (cris_gdbarch_init): Ditto.
5139 * avr-tdep.c (avr_gdbarch_init): Ditto.
5140 * arm-tdep.c (arm_gdbarch_init): Ditto.
5141 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
5142
5143 2004-01-17 J. Brobecker <brobecker@gnat.com>
5144
5145 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
5146 Delete, no longer used.
5147 (read_subrange_type): New function, mostly extracted from
5148 read_array_type().
5149 (read_array_type): Replace extracted code by call to
5150 read_subrange_type().
5151 (dwarf2_get_attr_constant_value): New function.
5152 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
5153 (add_partial_symbol): Likewise.
5154 (process_die): Likewise.
5155 (new_symbol): Likewise.
5156 (read_type_die): Likewise.
5157
5158 2004-01-16 Andrew Cagney <cagney@redhat.com>
5159
5160 * symfile.c: Update copyright year.
5161 (compare_symbols): Delete unused function.
5162 * stabsread.c: Update copyright year.
5163 (lrs_general_complaint): Delete unused function.
5164 (ref_search_value): Ditto.
5165 (get_substring): Delete declaration.
5166 * sh64-tdep.c: Update copyright year.
5167 (sh64_get_gdb_regnum): Delete unused function.
5168 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
5169 Delete unused function.
5170
5171 2004-01-17 Mark Kettenis <kettenis@gnu.org>
5172
5173 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
5174 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
5175
5176 2004-01-16 Andrew Cagney <cagney@redhat.com>
5177
5178 Changes from Peter Schauer.
5179 * rs6000-tdep.c: Update copyright year.
5180 (rs6000_push_dummy_call): Update the stack pointer before
5181 accessing the corresponding stack region.
5182 * rs6000-nat.c: Update copyright year.
5183 (set_host_arch): Set "info.abfd" to "exec_bfd".
5184
5185 2004-01-15 Mark Kettenis <kettenis@gnu.org>
5186
5187 * blockframe.c: Update copyright year.
5188 (inside_entry_func): Don't treat a zero PC specially.
5189
5190 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
5191
5192 * gcore.c (gcore_copy_callback): Use paddr_d to print size
5193 variable.
5194 (gcore_create_callback): Ditto. Skip any memory segment that has
5195 no permissions set.
5196
5197 2004-01-14 David Carlton <carlton@kealia.com>
5198
5199 Change symbols for C++ nested types to contain the fully qualified
5200 name, if possible. (At least in the DWARF-2 case.) Partial fix
5201 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
5202 c++/895.
5203 * c-exp.y (qualified_type): Handle types nested within classes.
5204 * cp-namespace.c: Update comments.
5205 (cp_set_block_scope): Delete #if 0.
5206 (cp_lookup_nested_type): Handle types nested within classes.
5207 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
5208 when appropriate.
5209 (add_partial_symbol): Add the name of the enclosing namespace to
5210 types.
5211 (pdi_needs_namespace): New.
5212 (add_partial_namespace): Tweak comment.
5213 (add_partial_structure): New.
5214 (psymtab_to_symtab_1): Initialize processing_current_prefix
5215 here...
5216 (process_die): instead of here.
5217 (read_structure_scope): Try to figure out the name of the class or
5218 namespace that the structure might be defined within.
5219 (read_enumeration): Generate fully-qualified names, if possible.
5220 (read_namespace): Don't set name to NULL.
5221 (die_specification): New.
5222 (new_symbol): Generate fully-qualified names for types.
5223 (read_type_die): Determine appropriate prefix.
5224 (determine_prefix): New.
5225 (typename_concat): New.
5226 (class_name): New.
5227 * valops.c (value_aggregate_elt): Pass NOSIDE to
5228 value_struct_elt_for_reference.
5229 (value_struct_elt_for_reference): Make static, add NOSIDE
5230 parameter, call value_maybe_namespace_elt as a last resort.
5231 (value_namespace_elt): Break out code into
5232 value_maybe_namespace_elt.
5233 (value_maybe_namespace_elt): New.
5234
5235 2004-01-12 Andrew Cagney <cagney@redhat.com>
5236
5237 * mips-tdep.c (mips_convert_register_p): Handle both raw and
5238 cooked floating-point registers.
5239 (mips_gdbarch_init): Set convert_register_p, register_to_value,
5240 and value_to_register.
5241
5242 2004-01-13 Andrew Cagney <cagney@redhat.com>
5243
5244 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
5245 * gdbarch.c: Re-generate.
5246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5247 FUNCTION_START_OFFSET.
5248 * v850-tdep.c (v850_gdbarch_init): Ditto.
5249 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
5250 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5251 * sh-tdep.c (sh_gdbarch_init): Ditto.
5252 * s390-tdep.c (s390_gdbarch_init): Ditto.
5253 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5254 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5255 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5256 * mips-tdep.c (mips_gdbarch_init): Ditto.
5257 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5258 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5260 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
5261 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5262 * i386-tdep.c (i386_gdbarch_init): Ditto.
5263 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5264 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5265 * frv-tdep.c (frv_gdbarch_init): Ditto.
5266 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5267 * cris-tdep.c (cris_gdbarch_init): Ditto.
5268 * avr-tdep.c (avr_gdbarch_init): Ditto.
5269 * arm-tdep.c (arm_gdbarch_init): Ditto.
5270 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5271
5272 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
5273
5274 * infrun.c (follow_fork_mode_ask): Remove.
5275 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
5276 (follow_fork): Simplify and remove internal error for
5277 follow_fork_mode_ask.
5278 (_initialize_infrun): Update "set follow-fork-mode" help text.
5279
5280 2004-01-13 Andrew Cagney <cagney@redhat.com>
5281
5282 * configure.in: Update copyright year.
5283 (build_warnings): Add -Wunused-label.
5284 * configure: Re-generate.
5285
5286 2004-01-12 Andrew Cagney <cagney@redhat.com>
5287
5288 * exec.h (exec_ops): Make "extern".
5289
5290 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
5291 the function is void.
5292 (mips_pseudo_register_write): Ditto.
5293
5294 2004-01-12 Andrew Cagney <cagney@redhat.com>
5295
5296 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
5297 call. Never defined.
5298 * sparc-tdep.h (struct frame_info): Add opaque declaration.
5299 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
5300 (struct sparc_gregset, struct regcache): Ditto.
5301 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
5302
5303 2004-01-12 Andrew Cagney <cagney@redhat.com>
5304
5305 * mi/ChangeLog: Delete file. Renamed to ...
5306 * mi/ChangeLog-1999-2003: New file.
5307 * tui/ChangeLog: Delete file. Renamed to ...
5308 * tui/ChangeLog-1998-2003: New file.
5309
5310 2004-01-11 Mark Kettenis <kettenis@gnu.org>
5311
5312 * sparc64nbsd-tdep.c: Include "regset.h".
5313 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
5314 Remove variables.
5315 (fetch_core_registers): Remove function.
5316 (sparc64nbsd_core_fns): Remove variable.
5317 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
5318 functions.
5319 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
5320 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
5321 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
5322
5323 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
5324 sparc_extract_struct_value_address.
5325 (sparc32_gdbarch_init): Set extract_struct_value_address.
5326 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
5327 function.
5328 (sparc64_init_abi): Set extract_struct_value_address. Don't set
5329 return_value_on_stack.
5330
5331 * NEWS: Mention that %cs and %ss have been added to the AMD64
5332 configurations
5333
5334 * frame.c: Update copyright year.
5335 (get_prev_frame): Improve comment.
5336
5337 * sparc64fbsd-tdep.c: Include "regset.h".
5338 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
5339 Remove variables.
5340 (fetch_core_registers): Remove function.
5341 (sparc64fbsd_core_fns): Remove variable.
5342 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
5343 functions.
5344 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
5345 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
5346 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
5347
5348 * sparcnbsd-tdep.c: Include "regset.h".
5349 (fetch_core_registers): Remove function.
5350 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
5351 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
5352 functions.
5353 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
5354 TDEP->fpregset.
5355 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
5356
5357 * sparc-tdep.h (struct regset): Provide opaque declaration.
5358 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
5359 fpregset and sizeof_fpregset members.
5360 * sparc-tdep.c (struct regset): Provide opaque declaration.
5361 (sparc_regset_from_core_section): New function.
5362 (sparc32_gdbarch_init): Initialize TDEP->gregset,
5363 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
5364 Set regset_from_core_section when appropriate.
5365
5366 2004-01-10 Mark Kettenis <kettenis@gnu.org>
5367
5368 * x86-64-tdep.c (amd64_non_pod_p): New function.
5369 (amd64_classify_aggregate): Return class memory for non-POD
5370 C++ structure types.
5371
5372 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
5373 argument. Use it to reserve a register if necessary.
5374 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
5375 amd64_push_arguments.
5376
5377 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
5378
5379 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
5380 register numbers in comments.
5381 * x86-64-tdep.h: Update copyright year.
5382 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
5383 Adjust for addition of %cs and %ss.
5384 * amd64fbsd-nat.c: Update copyright year.
5385 (reg_offset): Add register offsets for %cs and %ss.
5386 * amd64fbsd-tdep.c: Update copyright year.
5387 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
5388 (amd64fbsd_sc_reg_offset): Likewise.
5389 * x86-64-linux-nat.c: Update copyright year.
5390 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
5391 and %ss.
5392 * amd64nbsd-nat.c: Update copyright year.
5393 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
5394 * amd64nbsd-tdep.c: Update copyright year.
5395 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
5396 * x86-64-linux-tdep.c: Update copyright year.
5397 (user_to_gdb_regmap): Add mapping for %cs and %ss.
5398 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
5399 * regformats/reg-x86-64.dat: Add %cs and %ss.
5400
5401 * blockframe.c (inside_entry_func): Reformat. Introduce new local
5402 variables to prevent long lines. Update comments to reflect
5403 reality.
5404
5405 2004-01-09 David Carlton <carlton@kealia.com>
5406
5407 Checked in by Elena Zannoni <ezannoni@redhat.com>.
5408 * dwarf2read.c (read_namespace): Pull out name-generating code
5409 into namespace_name. Rename previous_namespace to previous_prefix
5410 and processing_current_namespace to processing_current_prefix..
5411 (namespace_name): New function.
5412 (add_partial_symbol): Substitute uses of pdi->name with
5413 actual_name.
5414 * cp-support.h: Rename processing_current_namespace to
5415 processing_current_prefix.
5416 Update copyright year.
5417 * cp-namespace.c: Rename processing_current_namespace to
5418 processing_current_prefix.
5419 Update copyright year.
5420
5421 2004-01-09 Andrew Cagney <cagney@redhat.com>
5422
5423 * jv-valprint.c, ser-unix.c: Add missing copyright years.
5424
5425 2004-01-09 Mark Kettenis <kettenis@gnu.org>
5426
5427 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
5428 complaining.
5429 (process_one_symbol): Deal with N_PATCH stabs.
5430
5431 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
5432
5433 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
5434 ifdeffed code.
5435 Update copyright year.
5436
5437 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
5438
5439 * config/pa/tm-hppa.h: Update extern declarations for
5440 hppa32_hpux_frame_saved_pc_in_sigtramp,
5441 hppa32_hpux_frame_base_before_sigtramp, and
5442 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
5443
5444 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
5445
5446 * config/pa/tm-hppah.h: Update copyright years.
5447
5448 2004-01-08 Andrew Cagney <cagney@redhat.com>
5449
5450 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
5451 (mips_o32_reg_struct_has_addr): Delete function.
5452 (mips_gdbarch_init): Update.
5453 (mips_extract_struct_value_address): Delete function.
5454
5455 2004-01-08 David Mosberger <davidm@hpl.hp.com>
5456
5457 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
5458 reality.
5459
5460 2004-01-07 Andrew Cagney <cagney@redhat.com>
5461
5462 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
5463 architecture's elf flags (when available).
5464
5465 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
5466 FPU to the start, check the MIPS FPU when looking for an old
5467 architecture.
5468 (set_mipsfpu_single_command): Update the architecture.
5469 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
5470
5471 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
5472 (mips_mask_address_p): Add "tdep" parameter.
5473 (show_mask_address, mips_addr_bits_remove): Update.
5474 (mips_dump_tdep): Update.
5475 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
5476 (MIPS_STACK_ARGSIZE): Delete macro.
5477 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
5478 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
5479 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
5480 (mips_dump_tdep): Update.
5481 (MIPS_SAVED_REGSIZE): Delete macro.
5482 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
5483 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
5484 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
5485 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
5486 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
5487 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
5488 (mips_pop_frame, return_value_location): Update.
5489 (mips_n32n64_return_value, mips_dump_tdep): Update.
5490
5491 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
5492 MIPS ABI.
5493
5494 * mips-tdep.c: Update copyright.
5495 (mips_gdbarch_init): Merge two code blocks handling the register
5496 name and number layout.
5497
5498 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
5499
5500 * tracepoint.c (validate_actionline): Fix segv at EOF
5501
5502 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
5503
5504 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
5505 properly for static fields.
5506
5507 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
5508 Jason Molenda <jmolenda@apple.com>
5509
5510 * disasm.c: Update copyright to include 2004.
5511 (do_mixed_source_and_assembly): For uiout asm list
5512 and tuple cleanups, initialize to null_cleanup instead of
5513 NULL and do so prior to loop. Only reset when we close off
5514 the tuple/list. Move check for whether to close off the
5515 asm tuple/list to after dump_insns call where it will be run
5516 on each loop iteration.
5517
5518 2004-01-05 Andrew Cagney <cagney@redhat.com>
5519
5520 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
5521 should be a switch case and not a label.
5522 * mips-tdep.c (mips32_next_pc): Delete unused labels
5523 "greater_equal_branch" and "less_zero_branch".
5524 * jv-valprint.c (java_print_value_fields): Delete unused label
5525 "flush_it".
5526
5527 * target.c (unpush_target): Only close a target that is in the
5528 target stack.
5529
5530 2004-01-05 Mark Kettenis <kettenis@gnu.org>
5531
5532 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
5533 address from [sp + 64] instead of %o2.
5534
5535 * frame.c (get_prev_frame): Don't try to unwind the PC. This
5536 fixes PR backtrace/1476.
5537
5538 2004-01-05 Andrew Cagney <cagney@redhat.com>
5539
5540 * libunwind-frame.h (struct frame_id): Add opaque declaration,
5541 move to start of file.
5542 * i386-tdep.h (struct regcache): Add opaque declaration.
5543 * config/ia64/nm-linux.h (struct target_ops): Add opaque
5544 declaration.
5545 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
5546 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
5547 * win32-nat.c (fake_create_process): Use ISO C style definition.
5548 * stabsread.c (define_symbol): Delete #ifndef
5549 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
5550 stabs_argument_has_addr call, macro never defined.
5551
5552 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
5553
5554 * op50-rom.c: Delete.
5555 * w89k-rom.c: Delete.
5556 * Makefile.in: Remove references.
5557
5558 2004-01-04 Mark Kettenis <kettenis@gnu.org>
5559
5560 * x86-64-tdep.c: Update copyright year.
5561 (struct amd64_register_info): Rename from x86_64_register_info.
5562 (amd64_register_info): Rename from x86_64_register_info.
5563 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
5564 (amd64_register_name): Rename from x86_64_register_name.
5565 (amd64_register_type): Rename from x86_64_register_type.
5566 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
5567 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
5568 (amd64_dwarf_reg_to_regnum): Rename from
5569 x86_64_dwarf_reg_to_regnum.
5570 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
5571 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
5572 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
5573 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
5574 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
5575 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
5576 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
5577 (amd64_frame_cache): Rename from x86_64_frame_cache.
5578 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
5579 (amd64_frame_prev_register): Rename from
5580 x86_64_frame_prev_register.
5581 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
5582 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
5583 (amd64_sigtramp_frame_cache): Rename from
5584 x86_64_sigtramp_frame_cache.
5585 (amd64_sigtramp_frame_prev_register): Rename from
5586 x86_64_sigtramp_frame_prev_register.
5587 (amd64_sigtramp_frame_unwind): Rename from
5588 x86_64_sigtramp_frame_unwind.
5589 (amd64_sigtramp_frame_sniffer): Rename from
5590 x86_64_sigtramp_frame_sniffer.
5591 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
5592 (amd64_frame_base): Rename from x86_64_frame_base.
5593 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
5594 (amd64_frame_align): Rename from x86_64_frame_align.
5595 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
5596 (amd64_regset_from_core_section): Rename from
5597 x86_64_regset_from_core_section.
5598 (x86_64_init_abi): Update comments.
5599
5600 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
5601
5602 * MAINTAINERS (write after approval): Add myself.
5603
5604 2004-01-04 Mark Kettenis <kettenis@gnu.org>
5605
5606 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5607 `float' arguments.
5608
5609 2004-01-04 Mark Kettenis <kettenis@gnu.org>
5610
5611 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
5612 such that it mentions a specific version of GCC that exhibits this
5613 bug.
5614
5615 2004-01-03 Mark Kettenis <kettenis@gnu.org>
5616
5617 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
5618 structure that has a single `float' member, store it in %f1 in
5619 addition to %f0.
5620
5621 * sparc-sol2-nat.c: Add missing '\'.
5622
5623 * sparc-tdep.c (sparc32_return_value): New function.
5624 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
5625 Remove functions.
5626 (sparc32_gdbarch_init): Set return_value, don't set
5627 extract_return_value, store_return_value, use_struct_convention
5628 and return_value_on_stack.
5629
5630 * sparc-sol2-nat.c: Add missing ')'.
5631
5632 2004-01-03 J. Brobecker <brobecker@gnat.com>
5633
5634 * infrun.c (handle_step_into_function): New function.
5635 (handle_inferior_event): Extract out some code into the new
5636 function above.
5637
5638 2004-01-03 J. Brobecker <brobecker@gnat.com>
5639
5640 * infrun.c (handle_inferior_event): Move the declaration of
5641 real_stop_pc inside the if blocks where it is used.
5642
5643 2004-01-03 Mark Kettenis <kettenis@gnu.org>
5644
5645 * sparc64-tdep.c (sparc64_16_byte_align_p)
5646 (sparc64_store_floating_fields, sparc64_store_floating_fields):
5647 Use check_typedef to get subtypes of structures and unions.
5648 (sparc64_store_return_value): Fix calculation of the appropriate
5649 offset into VALBUF when storing a structure or union.
5650 (sparc64_return_value): New function.
5651 (sparc64_use_struct_convention): Remove function.
5652 (sparc64_init_abi): Set return_value, don't set
5653 extract_return_value, store_return_value and
5654 use_struct_convention.
5655
5656 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
5657
5658 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
5659 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
5660 gdb/config/alpha/xm-alphaosf.h,
5661 gdb/config/powerpc/tm-ppcle-eabi.h,
5662 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
5663 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
5664 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
5665 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
5666 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
5667 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
5668 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
5669 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
5670 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
5671 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
5672 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
5673 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
5674 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
5675 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
5676 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
5677 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
5678 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
5679 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
5680 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
5681 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
5682 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
5683 Remove lines for .cvsignore files.
5684
5685 2004-01-03 J. Brobecker <brobecker@gnat.com>
5686
5687 * infrun.c: Back out the previous change.
5688
5689 2004-01-03 Mark Kettenis <kettenis@gnu.org>
5690
5691 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
5692 sparc-*-sunos4* to the list of REMOVED configurations.
5693
5694 * configure.tgt: Add back sparc-*-vxworks*.
5695 * remote-vxsparc.c: Remove all includes except for "defs.h",
5696 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
5697 Include "sparc-tdep.h".
5698 (SPARC_R_G1): New define.
5699 (vxsparc_gregset): New variable.
5700 (ext_format_sparc): Remove extern declaration.
5701 (vx_read_register): Rewrite to use sparc32_supply_gregset and
5702 sparc32_supply_fpregset.
5703 (vx_write_register): Rewrite to use sparc32_collect_gregset,
5704 sparc_collect_rwindow and sparc32_collect_fpregset.
5705 * config/sparc/tm-vxworks.h: New file, based on recently removed
5706 tm-vxsparc.h.
5707 * config/sparc/vxworks.mt: New file, based on recently removed
5708 vxworks.mt.
5709
5710 2004-01-03 J. Brobecker <brobecker@gnat.com>
5711
5712 * infrun.c (handle_step_into_function): New function.
5713 (handle_inferior_event): Extract out some code into the new
5714 function above.
5715
5716 2004-01-02 Mark Kettenis <kettenis@gnu.org>
5717
5718 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
5719 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
5720 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
5721 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
5722 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
5723 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
5724 (sparc_nat_h): New variable.
5725 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
5726 (tm-sun4os4.h): Remove dependency.
5727 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
5728 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
5729 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
5730 sparc-tdep.o): Update dependencies.
5731 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
5732 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
5733 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
5734 dependencies.
5735 * configure.host: Remove existing sparc-*-lynxos*,
5736 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
5737 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
5738 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
5739 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
5740 triplets.
5741 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
5742 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
5743 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
5744 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
5745 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
5746 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
5747 sparc64-*-solaris2* and sparc64-*-* triplets.
5748 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
5749 "symtab.h" and "objfiles.h".
5750 (BIAS): Remove define.
5751 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
5752 (X_DISP19): Remove macros.
5753 (sparc_fetch_instruction): Remove function.
5754 (struct gdbarch_tdep): Remove definition.
5755 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
5756 (sparc_breakpoint_from_pc): Remove function.
5757 (struct sparc64_frame_cache): Remove definition.
5758 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
5759 sparc64_unwind_pc): Remove functions.
5760 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
5761 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
5762 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
5763 (sparc64_frame_cache): Change return type to `struct
5764 sparc_frame_cache *'. Simply call sparc_frame_cache.
5765 (sparc64_frame_this_id, sparc64_frame_prev_register,
5766 sparc64_frame_base_address): Use `struct sparc_frame_cache'
5767 instead of `struct sparc64_frame_cache.
5768 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
5769 sparc_analyze_control_transfer, sparc_software_single_step,
5770 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
5771 _initialize_sparc64_tdep): Remove functions.
5772 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
5773 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
5774 macros.
5775 (sparc64_supply_gregset, sparc64_collect_gregset,
5776 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
5777 (sparc64_init_abi): New function.
5778 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
5779 inclusion guard. Include "sparc-tdep.h".
5780 (BIAS): Define.
5781 (r_tstate_offset, r_fprs_offset): New defines.
5782 (enum sparc_regnum): Remove defenition.
5783 (enum sparc64_regnum): Reformat.
5784 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
5785 (sparc64_init_abi, sparc64_supply_gregset,
5786 sparc64_collect_gregset, sparc64_supply_fpregset,
5787 sparc64_collect_fpregset): New prototypes.
5788 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
5789 Add extern declarations.
5790 (sparc64_sol2_init_abi): New prototype.
5791 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
5792 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
5793 prototypes.
5794 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
5795 "sparnbsd-nat.h".
5796 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
5797 functions.
5798 (_initialize_sparc64fbsd_nat): Remove initialization of
5799 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
5800 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
5801 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
5802 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
5803 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
5804 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
5805 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
5806 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
5807 (sparc64fbsd_r_y_offset): Remove variables.
5808 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
5809 Make static and const.
5810 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
5811 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
5812 functions.
5813 (sparc64fbsd_gregset): New variable.
5814 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
5815 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
5816 and sparc64_supply_fpregset.
5817 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
5818 (sparc64fbsd_sigtramp_frame_this_id)
5819 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
5820 (sparc64fbsd_sigtramp_frame_unwind): New variable.
5821 (sparc64fbsd_sigtramp_frame_sniffer): New function.
5822 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
5823 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
5824 * sparcnbsd-tdep.c: Update copyright year. Include
5825 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
5826 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
5827 "value.h" and "sparcnbsd-tdep.h".
5828 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
5829 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
5830 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
5831 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
5832 defines.
5833 (sparcnbsd_gregset): New variable.
5834 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
5835 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
5836 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
5837 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
5838 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
5839 variables.
5840 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
5841 (sparc32nbsd_sigcontext_frame_this_id)
5842 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
5843 (sparc32nbsd_sigcontext_frame_unwind): New variable.
5844 (sparc32nbsd_sigtramp_frame_sniffer): New function.
5845 (sparcnbsd_get_longjmp_target_32,
5846 sparcnbsd_get_longjmp_target_64): Remove functions.
5847 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
5848 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
5849 sparcnbsd_init_elf): Remove.
5850 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
5851 (sparcnbsd_elf_init_abi): New functions.
5852 (_initialize_sparcnbsd_tdep): New prototype.
5853 (_initialize_sparnbsd_tdep): Update.
5854 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
5855 corelow.o. Add sparc64-nat.o and sparc-nat.o.
5856 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
5857 * config/sparc/linux.mh: Update comment.
5858 (XM_FILE, HOST_IPC): Remove variables.
5859 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
5860 sparc-linux-nat.o.
5861 * config/sparc/linux.mt: Update comment.
5862 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
5863 * config/sparc/nbsd.mt: Reformat.
5864 * config/sparc/nbsd64.mh: Update comment.
5865 (NATDEPFILES): Add sparc-nat.o.
5866 * config/sparc/nbsd64.mt: Update comment.
5867 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
5868 (TM_FILE): Set to tm-nbsd.h.
5869 * config/sparc/nbsdelf.mh: Update comment.
5870 (NATDEPFILES): Add sparc-nat.o.
5871 (XM_FILE): Delete.
5872 * config/sparc/nbsdaout.mh: Update comment.
5873 (NATDEPFILES): Add sparc-nat.o
5874 (XM_FILE): Delete.
5875 * config/sparc/nm-linux.h: Update copyright year. Don't include
5876 "config/nm-svr4.h" and "solib.h". Add protection against multiple
5877 inclusion.
5878 (KERNEL_U_SIZE): Remove define.
5879 (kernel_u_size): Remove prototype.
5880 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
5881 * config/sparc/nm-nbsd.h: Update copyright. Don't include
5882 "regcache.h".
5883 (CHILD_PREPARE_TO_STORE): Remove define.
5884 * config/sparc/nm-nbsdaout.h: Tweak some comments.
5885 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
5886 sparcnbsd-nat.c: Rewrite files.
5887 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
5888 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
5889 sparcnbsd-tdep.h: Remove files.
5890 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
5891 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
5892 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
5893 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
5894 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
5895 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
5896 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
5897 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
5898 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5899 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5900 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
5901 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
5902 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
5903 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
5904 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
5905 * config/sparc/linux64.mh, config/sparc/linux64.mt,
5906 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
5907 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
5908 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
5909
5910 2004-01-02 Andrew Cagney <cagney@redhat.com>
5911
5912 From 2003-12-18 Kazuhiro Inaoka:
5913 * configure.host: Add m32r-linux target.
5914
5915 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
5916
5917 * top.c (print_gdb_version): Update year to 2004.
5918
5919 2004-01-02 Mark Mitchell <mark@codesourcery.com>
5920
5921 * MAINTAINERS: Add myself to the write-after-approval category.
5922
5923 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
5924
5925 From Bernardo Innocenti <bernie@develer.com>:
5926 * configure.tgt: Add uClinux target.
5927
5928 2004-01-02 Andrew Cagney <cagney@redhat.com>
5929
5930 * utils.c (do_my_cleanups): Make static, add forward declaration.
5931 * defs.h (do_my_cleanups): Delete declaration.
5932
5933 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
5934
5935 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
5936 bfd/ChangeLog-0203.
5937
5938 2004-01-02 Mark Kettenis <kettenis@gnu.org>
5939
5940 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
5941 in <machine/reg.h>.
5942 * configure, config.in: Regenerate.
5943
5944 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
5945 tui/ChangeLog-1998-2003.
5946 \f
5947 Local Variables:
5948 mode: change-log
5949 left-margin: 8
5950 fill-column: 74
5951 version-control: never
5952 End:
This page took 0.150707 seconds and 4 git commands to generate.