3373483410bff35e1733e3fdd97adac27641d9ca
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2
3 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4 dead code.
5
6 2004-06-30 Mark Kettenis <kettenis@gnu.org>
7
8 * alphabsd-nat.c: Update copyright year.
9 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
10
11 2004-06-29 Joel Brobecker <brobecker@gnat.com>
12
13 * i386-cygwin-tdep.c (i386-cygwin-tdep.c): New function.
14 (i386_cygwin_in_solib_call_trampoline): New function.
15 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
16 and skip_trampoline_code gdbarch methods.
17
18 2004-06-29 Jim Blandy <jimb@redhat.com>
19
20 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
21 name actually used in the dependency lists.
22
23 2004-06-29 Randolph Chung <tausq@debian.org>
24
25 * NEWS (New native configurations): Mention GNU/Linux/hppa.
26
27 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
28
29 * win32-nat.c (child_pid_to_exec_file): New function.
30 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
31 functionality.
32
33 2004-06-28 Andrew Cagney <cagney@gnu.org>
34
35 * defs.h (xstrvprintf): Declare.
36 * utils.c (xstrvprintf): New function.
37 (internal_vproblem, xstrprintf, xasprintf)
38 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
39 * serial.c (serial_printf): Ditto.
40 * complaints.c (vcomplaint): Ditto.
41
42 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
43
44 * infcmd.c (attach_command): Move call to target_terminal_inferior
45 behind loading symbol table.
46
47 2004-06-28 Andrew Cagney <cagney@gnu.org>
48
49 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
50 change - add back extern deprecated_ui_loop_hook declaration.
51
52 2004-06-28 Andrew Cagney <cagney@gnu.org>
53
54 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
55 xstrprintf.
56 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
57 (c_value_of_variable): Ditto.
58 * utils.c (internal_vproblem): Ditto.
59 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
60 * remote.c (add_packet_config_cmd): Ditto.
61 * remote-rdp.c (rdp_set_command_line): Ditto.
62 * regcache.c (regcache_dump): Ditto.
63 * frv-tdep.c (new_variant, new_variant): Ditto.
64 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
65 (fbsd_find_memory_regions): Ditto.
66 * breakpoint.c (create_thread_event_breakpoint)
67 (create_breakpoints): Ditto.
68 * aix-thread.c (aix_thread_pid_to_str): Ditto.
69 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
70
71 2004-06-28 Joel Brobecker <brobecker@gnat.com>
72
73 * ada-lang.c: Re-indent file, with some massaging to help indent
74 a bit when the result is otherwise really too ugly.
75
76 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
77
78 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
79 code_addr_p and special_addr_p to 'unsigned int'.
80
81 2004-06-27 Mark Kettenis <kettenis@gnu.org>
82
83 * i386v4-nat.c: Update copyright year and tweak comment.
84 (regmap): Remove trailing comma.
85 (supply_gregset): Rename local variable i to regnum. Call
86 regcache_raw_supply instead of supply_register.
87 (fill_gregset): Rename argument regno to regnum. Call
88 regcache_raw_collect instead of regcache_collect.
89
90 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
91
92 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
93 and special_addr_p.
94 (frame_id_build, frame_id_build_special): Update comments.
95 (frame_id_build_wild): New prototype.
96 * frame.c (frame_id_build, frame_id_build_special): Fill in new
97 struct frame_id fields.
98 (frame_id_build_wild): New function.
99 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
100
101 2004-06-27 Mark Kettenis <kettenis@gnu.org>
102
103 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
104 hppabsd-tdep.c.
105
106 2004-06-27 Joel Brobecker <brobecker@gnat.com>
107
108 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
109
110 2004-06-27 Joel Brobecker <brobecker@gnat.com>
111
112 * ada-lang.c: Re-indent file.
113
114 2004-06-27 Joel Brobecker <brobecker@gnat.com>
115
116 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
117 (no_symtab_msg): Likewise.
118
119 2004-06-27 Andreas Schwab <schwab@suse.de>
120
121 * source.c: Fix whitespace.
122
123 2004-06-27 Mark Kettenis <kettenis@gnu.org>
124
125 * configure.in: Include <sys/param.h> for td_pcb test.
126 * configure: Regenerated.
127
128 * i386nbsd-nat.c: New file.
129 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
130 i386obsd-nat.c and i386obsd-tdep.c.
131 (i386nbsd-nat.o): New dependency.
132 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
133 bsd-kvm.o.
134 (LOADLIBES): New variable.
135 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
136 bsd-kvm.o.
137 (LOADLIBES): New variable.
138
139 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
140 (LOADLIBES): New variable.
141
142 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
143 fetching from BSD_KVM_PADDR. Correctly lookup address for
144 "_thread0".
145
146 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
147 "bsd-kvm.h".
148 (amd64fbsd_supply_pcb): New funcion.
149 (_initialize_amd64fbsd_nat): Enable libkvm interface.
150
151 2004-06-27 <david@streamline-computing.com>
152
153 Partial fix for PR cli/1056.
154 * valarith.c: Check for zero in division and remainder
155 evaluation.
156
157 2004-06-27 Mark Kettenis <kettenis@gnu.org>
158
159 * i387-tdep.c: Remove excessive whitespace.
160
161 2004-06-26 Andrew Cagney <cagney@gnu.org>
162
163 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
164 * gdb-events.h, gdb-events.c: Re-generate.
165 * tui/tui-hooks.c (tui_install_hooks): Update.
166 (tui_remove_hooks): Update.
167 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
168
169 2004-06-26 Mark Kettenis <kettenis@gnu.org>
170
171 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
172 (gregset_t, fpregset_t): Remove typedefs.
173 (REG_OFFSET): Rename argument.
174 (amd64bsd_r_reg_offset): Rename from reg_offset.
175 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
176 Remove functions.
177 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
178 of reg_offset.
179 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
180
181 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
182
183 * vax-tdep.c: Tweak comment.
184
185 Add OpenBSD/hppa support.
186 * NEWS (New native configurations): Mention OpenBSD/hppa.
187 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
188 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
189 files.
190 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
191 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
192 * configure.host: Add hppa*-*-openbsd*.
193 * configure.tgt: Add hppa*-*-openbsd*.
194
195 2004-06-25 Andrew Cagney <cagney@gnu.org>
196
197 * defs.h (deprecated_ui_loop_hook): Deprecated.
198 * wince.c (child_wait): Update.
199 * win32-nat.c (child_wait): Update.
200 * v850ice.c (v850ice_wait): Update.
201 * top.c (deprecated_ui_loop_hook): Update.
202 * serial.h: Update.
203 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
204 (do_unix_readchar): Update.
205 * ser-tcp.c (net_open): Update.
206 * remote-sim.c (gdb_os_poll_quit): Update.
207 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
208
209 2004-06-24 Andrew Cagney <cagney@gnu.org>
210
211 * defs.h (deprecated_pre_add_symbol_hook)
212 (deprecated_post_add_symbol_hook): Deprecated.
213 * symfile.c (symbol_file_add_with_addrs_or_offsets)
214 (symbol_file_add_with_addrs_or_offsets): Update references.
215
216 2004-06-24 Andrew Cagney <cagney@gnu.org>
217
218 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
219 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
220 * wince.c (ui_loop_hook): Delete extern declaration.
221 * win32-nat.c (ui_loop_hook): Delete extern declaration..
222 * v850ice.c (ui_loop_hook): Delete extern declaration..
223 * ser-unix.c (ui_loop_hook): Delete extern declaration..
224 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
225 * remote-sim.c (ui_loop_hook): Delete extern declaration..
226 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
227 ui_loop_hook declaration.
228
229 2004-06-24 Andrew Cagney <cagney@gnu.org>
230
231 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
232 entry_func_highpc fields.
233 * objfiles.c (init_entry_point_info): Do not clear
234 entry_func_lowpc and entry_func_highpc.
235 (objfile_relocate): Do not relocate entry_func_lowpc and
236 entry_func_highpc.
237 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
238 entry_func_highpc.
239 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
240 entry_func_highpc.
241 * blockframe.c (legacy_frame_chain_valid): Replace tests against
242 entry_func_lowpc and entry_func_highpc with call to
243 inside_entry_func.
244
245 2004-06-24 Mark Kettenis <kettenis@gnu.org>
246
247 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
248 quad-precision floating point arguments in registers.
249
250 2004-06-24 Mark Kettenis <kettenis@gnu.org>
251
252 From Michael Mueller <m.mueller99@kay-mueller.de>:
253 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
254 account.
255
256 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
257
258 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
259 to -1.
260 * breakpoint.c (bpstat_stop_status): Move check for ignoring
261 untriggered watchpoints to a separate if clause. Update function
262 comment regarding STOPPED_BY_WATCHPOINT argument.
263
264 2004-06-22 Jim Blandy <jimb@redhat.com>
265
266 * gdbarch.sh: Doc fix.
267
268 2004-06-21 Martin Hunt <hunt@redhat.com>
269 Kevin Buettner <kevinb@redhat.com>
270
271 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
272 * mips-tdep.h (MIPS_SP_REGNUM): Define.
273 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
274 to set_gdbarch_sp_regnum(). Use cooked register number.
275 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
276
277 2004-06-21 Andrew Cagney <cagney@gnu.org>
278
279 * gdbarch.sh: When the macro field is empty, do not generate a
280 macro definition. When the macro field is "=", generate the macro
281 name from the upper-case function name.
282 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
283 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
284 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
285 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
286 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
287 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
288 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
289 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
290 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
291 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
292 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
293 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
294 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
295 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
296 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
297 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
298 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
299 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
300 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
301 (DEPRECATED_USE_STRUCT_CONVENTION)
302 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
303 (DEPRECATED_FRAME_INIT_SAVED_REGS)
304 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
305 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
306 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
307 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
308 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
309 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
310 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
311 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
312 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
313 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
314 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
315 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
316 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
317 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
318 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
319 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
320
321 2004-06-21 Andrew Cagney <cagney@gnu.org>
322
323 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
324 macro name, and the function rather than macro value. Only wrap
325 macro print statements in #ifdef. Move format logic to where it
326 is needed.
327 * gdbarch.c: Re-generate.
328
329 * gdbarch.sh (read): Delete "print_p" and "description", add
330 "garbage_at_eol". Check for non-empty garbage at end-of-line.
331 Delete references to print_p.
332 (TARGET_ARCHITECTURE): Delete print predicate.
333 * gdbarch.c: Re-generate.
334
335 * gdbarch.sh: Check that multi-arch methods do not provide a
336 macro.
337 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
338 (print_registers_info, print_float_info, print_vector_info)
339 (adjust_breakpoint_address, remote_translate_xfer_address)
340 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
341 (address_class_type_flags_to_name, unwind_sp): Remove the macro
342 name from the multi-arch definition.
343
344 2004-06-20 Andrew Cagney <cagney@gnu.org>
345
346 * gdbarch.sh: Sort by the function, instead of macro name.
347 * gdbarch.c: Re-generate.
348
349 2004-06-20 Andrew Cagney <cagney@gnu.org>
350
351 * gdbarch.sh: Use the function, instead of macro name in
352 errors and the log file.
353 (return_value): Remove stray ":" in spec.
354
355 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
356 * gdbarch.h, gdbarch.c: Re-generate.
357 * Makefile.in (arch-utils.o): Update dependencies.
358 * values.c (using_struct_return): Move code calling
359 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
360 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
361 to legacy_return_value, simplify.
362 * infcmd.c (print_return_value): Move code calling
363 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
364 to legacy_return_value, simplify.
365 * infcall.c (call_function_by_hand): Move code calling
366 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
367 * arch-utils.c: Update copyright. Include "gdbcore.h".
368 (legacy_return_value): New function.
369 * arch-utils.h: Update copyright.
370 (legacy_return_value): Declare.
371
372 2004-06-20 Andrew Cagney <cagney@gnu.org>
373
374 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
375 * gdbarch.h, gdbarch.c: Re-generate.
376 * values.c (using_struct_return): Update call.
377 * mcore-tdep.c: Update comment.
378 * infcall.c (call_function_by_hand): Update comment.
379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
380 * arch-utils.h (always_use_struct_convention): Update.
381 * v850-tdep.c (v850_gdbarch_init): Update.
382 * sh64-tdep.c (sh64_gdbarch_init): Update.
383 * sh-tdep.c (sh_gdbarch_init): Update.
384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
385 * mips-tdep.c (mips_gdbarch_init): Update.
386 * mcore-tdep.c (mcore_gdbarch_init): Update.
387 * m32r-tdep.c (m32r_gdbarch_init): Update.
388 * ia64-tdep.c (ia64_gdbarch_init): Update.
389 * h8300-tdep.c (h8300_gdbarch_init): Update.
390 * frv-tdep.c (frv_gdbarch_init): Update.
391 * cris-tdep.c (cris_gdbarch_init): Update.
392 * arm-tdep.c (arm_gdbarch_init): Update.
393 * alpha-tdep.c (alpha_gdbarch_init): Update.
394
395 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
396
397 * PROBLEMS: Add more specific information, and a work-around,
398 for PR gdb/1458.
399
400 2004-06-18 Andrew Cagney <cagney@gnu.org>
401
402 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
403 * gdbarch.h, gdbarch.c: Re-generate.
404 * ada-lang.c (ada_finish_decode_line_1): Update.
405 * infrun.c (handle_inferior_event): Update.
406 * infcall.c (find_function_addr): Update.
407 * linespec.c (minsym_found): Update.
408 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
409 Update.
410 * blockframe.c (legacy_frameless_look_for_prologue): Update.
411 * cli/cli-cmds.c (disassemble_command): Update.
412 * vax-tdep.c (vax_gdbarch_init): Update.
413
414 2004-06-18 Mark Kettenis <kettenis@gnu.org>
415
416 * i386-tdep.c (i386_collect_fpregset): Fix comment.
417
418 2004-06-17 Andrew Cagney <cagney@gnu.org>
419
420 GDB 6.1.1 released from the GDB 6.1 branch.
421 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
422 * PROBLEMS: Ditto.
423
424 2004-06-16 Daniel Jacobowitz <dan@debian.org>
425
426 PR gdb/1658
427 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
428 operation as a uleb128. Found by Michael Coulter.
429
430 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
431
432 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
433 make it non-static.
434 * ada-lang.h (task_control_block): declaration moved from ada-task.c
435 to ada-lang.h; this is needed to be able to implement the kill command
436 in multi-task mode.
437 (task_ptid): Ditto.
438 (task_entry): Ditto.
439 (task_list): Ditto.
440 (ada_build_task_list): Ditto.
441
442 * ada-lang.c: Conditionalize routines and data structures related
443 to breakpoints, exceptions, completion, and symbol caching on
444 GNAT_GDB, since these are not yet used in the submitted public sources.
445 (ada_main_name): Editorial: Move definition out of exception-related
446 code.
447
448 2004-06-15 Andrew Cagney <cagney@gnu.org>
449
450 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
451 deprecated_pc_in_call_dummy.
452
453 2004-06-15 Alan Modra <amodra@bigpond.net.au>
454
455 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
456 bfd_get_section_size_before_reloc or _raw_size.
457 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
458 * dwarf2read.c (dwarf2_locate_sections): Likewise.
459 (dwarf2_read_section): Likewise.
460 * elfread.c (elf_locate_sections): Likewise.
461 * gcore.c (derive_heap_segment): Likewise.
462 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
463 * remote-e7000.c (e7000_load): Likewise.
464 * remote-m32r-sdi.c (m32r_load): Likewise.
465 * remote-mips.c (mips_load_srec): Likewise.
466 (pmon_load_fast): Likewise.
467 * remote.c (compare_sections_command): Likewise.
468 * symfile.c (add_section_size_callback): Likewise.
469 (load_section_callback): Likewise.
470 (pc_in_unmapped_range): Likewise.
471 (pc_in_mapped_range): Likewise.
472 (sections_overlap): Likewise.
473 (list_overlays_command): Likewise.
474 (simple_overlay_update_1): Likewise.
475 (simple_overlay_update): Likewise.
476 * tracepoint.c (remote_set_transparent_ranges): Likewise.
477 * win32-nat.c (core_section_load_dll_symbols): Likewise.
478
479 2004-06-14 Randolph Chung <tausq@debian.org>
480
481 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
482 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
483 static.
484 (hppa_hpux_inferior_created): New function.
485 (hppa_hpux_init_abi): Register observer.
486 * symfile.c (hp_cxx_exception_support_initialized)
487 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
488 (symbol_file_add_main_1, symbol_file_clear): Likewise.
489
490 2004-06-14 Randolph Chung <tausq@debian.org>
491
492 * MAINTAINERS (Write After Approval): Alphabetize my entry
493 correctly.
494
495 2004-06-14 Andrew Cagney <cagney@gnu.org>
496
497 * MAINTAINERS (testsuite): List Michael Chastain as the lead
498 testsuite maintainer.
499
500 2004-06-13 Andrew Cagney <cagney@gnu.org>
501
502 * infcmd.c (print_return_value): Fix logic, allow
503 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
504
505 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
506 defining any macros.
507 * gdbarch.h: Re-generate.
508
509 * gdbarch.sh: Delete "level" attribute. Only check for a macro
510 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
511 * gdbarch.h: Re-generate.
512
513 * values.c (generic_use_struct_convention): Don't check gcc_p.
514
515 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
516 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
517 * gdbarch.h, gdbarch.c: Regenerate.
518 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
519 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
521 deprecated_max_register_raw_size and
522 deprecated_max_register_virtual_size.
523 * v850-tdep.c (v850_gdbarch_init): Ditto.
524 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
525 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
527 * cris-tdep.c (cris_gdbarch_init): Ditto.
528
529 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
530 * gdbarch.h, gdbarch.c: Re-generate.
531 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
532 (m68hc11_use_struct_convention): Delete function.
533 (m68hc11_extract_struct_value_address): Delete function.
534 (m68hc11_return_value): New function.
535 (m68hc11_gdbarch_init): Instead of store_return_value,
536 extract_return_value, return_value_on_stack,
537 deprecated_extract_struct_value_address and use_struct_convention,
538 set return_value.
539 * values.c (using_struct_return): Do not call
540 RETURN_VALUE_ON_STACK.
541 * arch-utils.h (generic_return_value_on_stack_not): Delete
542 declaration.
543 * arch-utils.c (generic_return_value_on_stack_not): Delete
544 function.
545
546 2004-06-12 Andrew Cagney <cagney@gnu.org>
547
548 * values.c (register_value_being_returned): Delete function.
549 * infcmd.c (legacy_return_value): Delete function.
550 * infcall.c (call_function_by_hand): Inline
551 "register_value_being_returned", simplify.
552 * values.c (using_struct_return): Update comment, refer to
553 print_return_value instead of register_value_being_returned.
554 * infcmd.c (print_return_value): Inline calls to
555 register_value_being_returned and legacy_return_value. Simplify.
556
557 2004-06-11 Randolph Chung <tausq@debian.org>
558
559 * somread.c (som_symtab_read): Exclude gcc local symbols.
560
561 2004-06-11 Randolph Chung <tausq@debian.org>
562
563 * infrun.c (handle_inferior_event): Handle the case when a
564 trampoline ends up in the runtime resolver, and if the trampoline
565 has no name. Rearrange the code so that all the trampoline
566 processing happens before other step-out-of-range handling.
567
568 2004-06-11 Martin Hunt <hunt@redhat.com>
569
570 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
571 has no fpu.
572
573 2004-06-10 Andrew Cagney <cagney@gnu.org>
574
575 * blockframe.c (legacy_inside_entry_func): Delete.
576 (legacy_frame_chain_valid): Inline call to
577 legacy_inside_entry_func, simplify.
578
579 2004-06-10 Bob Rossi <bob@brasko.net>
580
581 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
582 * dwarf2read.c (partial_die_info): Add dirname field.
583 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
584 (read_partial_die): Save away DW_AT_comp_dir.
585 * defs.h (symtab_to_filename): Removed.
586 * source.c (find_and_open_source): Added.
587 (open_source_file): Just calls find_and_open_source.
588 (symtab_to_filename): Removed.
589 (symtab_to_fullname, psymtab_to_fullname): Added.
590 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
591 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
592 symtab_to_filename.
593 * symtab.h (partial_symtab): Add dirname field.
594 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
595 (mi_cmd_file_list_exec_source_file): Call new function
596 symtab_to_fullname to find fullname.
597 (mi_cmd_file_list_exec_source_files): Added.
598 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
599 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
600
601 2004-06-10 Andrew Cagney <cagney@gnu.org>
602
603 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
604 to generic_use_struct_convention, the default value.
605
606 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
607 of abort.
608
609 * ns32k-tdep.c (ns32k_push_arguments): New function.
610 (ns32k_gdbarch_init): Set deprecated_push_arguments.
611 * infcall.c (call_function_by_hand): Call error instead of
612 legacy_push_arguments.
613 * value.h (legacy_push_arguments): Delete declaration.
614 * valops.c (legacy_push_arguments): Delete function.
615 (value_push): Delete function.
616
617 2004-06-10 Brian Ford <ford@vss.fsi.com>
618
619 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
620 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
621 info.
622 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
623
624 2004-06-10 Andrew Cagney <cagney@gnu.org>
625
626 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
627 * gdbarch.h, gdbarch.c: Re-generate.
628 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
629 parameters.
630 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
631 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
632 deprecated_pc_in_call_dummy instead of
633 DEPRECATED_PC_IN_CALL_DUMMY.
634 (arm_skip_prologue): Ditto.
635 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
636 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
637 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
638 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
639 Ditto.
640 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
641 (sh64_init_extra_frame_info, sh64_get_saved_register)
642 (sh64_pop_frame): Ditto.
643 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
644 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
645 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
646 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
647 (h8300_pop_frame): Ditto.
648 * blockframe.c (legacy_inside_entry_func)
649 (legacy_frame_chain_valid): Ditto.
650 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
651 to deprecated_pc_in_call_dummy.
652
653 2004-06-09 Andrew Cagney <cagney@gnu.org>
654
655 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
656 provide a default value.
657 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
658 * gdbarch.h, gdbarch.c: Re-generate.
659 * arch-utils.c (generic_convert_register_p): Rename
660 legacy_convert_register_p
661 (legacy_register_to_value, legacy_value_to_register): Delete
662 functions.
663 * arch-utils.h (generic_convert_register_p): Rename
664 legacy_convert_register_p.
665 (legacy_register_to_value, legacy_value_to_register): Delete
666 declarations.
667
668 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
669 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
670 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
671 * gdbarch.h, gdbarch.c: Re-generate.
672 * infcmd.c (default_print_registers_info): Simplify.
673 * findvar.c (value_of_register): Simplify.
674 * mi/mi-main.c (get_register): Simplify.
675 * arch-utils.c (legacy_convert_register_p): Always return 0.
676 (legacy_register_to_value, legacy_value_to_register): Always call
677 internal_error.
678
679 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
680 #ifdef CLEAR_INSN_CACHE code.
681 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
682 Delete #ifdef CLEAR_DEFERRED_STORES code.
683
684 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
685
686 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
687 copyright.
688 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
689
690 * config/mips/mipsv4.mh: Delete file.
691
692 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
693 unreferenced macro.
694 (hpread_adjust_stack_address): Delete declaration.
695
696 2004-06-08 Andrew Cagney <cagney@gnu.org>
697
698 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
699 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
700 PTRACE_ATTACH / PTRACE_DETACH available call error.
701 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
702 * infttrace.c (update_thread_state_after_attach, attach, detach):
703 Remove #ifdef wrappers.
704 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
705 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
706 * config/nm-bsd.h (ATTACH_DETACH): Delete.
707 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
708 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
709 * config/nm-linux.h (ATTACH_DETACH): Delete.
710 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
711 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
712 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
713 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
714 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
715
716 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
717
718 * configure.in: Set $configdir to the right OS specific value.
719 Use value when setting $tcldir and $tkdir.
720 * configure: Regenerate.
721
722 2004-06-06 Paul Brook <paul@codesourcery.com>
723
724 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
725 records.
726
727 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
728
729 * ada-lang.c (lookup_symbol_in_language): New function to allow
730 re-use of another language's symbol lookup code. (Placed here
731 temporarily while Ada support is being integrated into the public
732 tree).
733 (restore_language): New auxiliary function for
734 lookup_symbol_in_language.
735 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
736 temporarily while Ada support is being integrated into the public
737 tree).
738
739 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
740
741 * Makefile.in (check//%): New.
742
743 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
744 (mn10300_store_return_value): Rewrite.
745 (mn10300_type_align): New.
746 (mn10300_use_struct_convention): Rewrite.
747 (mn10300_return_value): New, using all of the above.
748 (mn10300_pop_frame_regular): Add saved_regs_size.
749 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
750
751 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
752 regs if PC is on movm.
753
754 2004-06-07 Jim Blandy <jimb@redhat.com>
755
756 Add native Linux support for the PowerPC E500.
757 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
758 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
759 all architectures except the E500.
760 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
761 #definitions.
762 (struct gdb_evrregset_t): New type.
763 (have_ptrace_getsetevrregs): New variable.
764 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
765 fetch_spe_registers): New functions.
766 (fetch_register): Call fetch_spe_register as appropriate.
767 Assert that we're only passed raw register numbers.
768 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
769 Don't fetch gprs if they're pseudoregisters.
770 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
771 store_spe_registers): New functions.
772 (store_register): Call store_spe_register as appropriate.
773 Assert that we're only passed raw register numbers.
774 (store_ppc_registers): Call store_spe_registers as appropriate.
775 Don't store gprs if they're pseudoregisters.
776
777 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
778
779 * thread-db.c (thread_get_info_callback): Fill in the thread_info
780 struct if one exists, even if we are dealing with a zombie thread.
781
782 2004-06-07 Andrew Cagney <cagney@gnu.org>
783
784 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
785 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
786 Rename PC_REQUIRES_RUN_BEFORE_USE.
787 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
788 #ifdef.
789
790 2004-06-07 Randolph Chung <tausq@debian.org>
791
792 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
793 unwinding after sp has been saved to the stack but before the end
794 of the prologue, and after the fp has been modified but before it has
795 been saved to the stack.
796 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
797 Remove superfluous definitions.
798 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
799
800 2004-06-07 Guy Martin <gmsoft@gentoo.org>
801
802 Committed by Randolph Chung.
803 * hppa-linux-nat.c: Include the correct version of the header file
804 depending on the kernel version.
805
806 2004-06-06 Randolph Chung <tausq@debian.org>
807
808 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
809 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
810
811 2004-06-06 Randolph Chung <tausq@debian.org>
812
813 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
814 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
815 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
816 * hppa-tdep.c (hppa_symbol_address): New function definition.
817 * hppa-tdep.h (hppa_symbol_address): New function declaration.
818
819 2004-06-06 Randolph Chung <tausq@debian.org>
820
821 * hppa-tdep.h (struct value): Forward declaration.
822 (gdbarch_tdep): Define tdep find_global_pointer method.
823 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
824 associated with the function we are trying to call, and write it
825 to the gp register.
826 (hppa32_convert_from_funct_ptr_addr): New function.
827 (hppa_find_global_pointer): New function.
828 (hppa_gdbarch_init): Set default find_global_pointer method; set
829 convert_from_func_ptr_addr method.
830 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
831 (hppa_linux_init_abi): Set find_global_pointer method.
832 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
833
834 2004-06-06 Randolph Chung <tausq@debian.org>
835
836 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
837 to struct value *function.
838 * gdbarch.c: Regenerate.
839 * gdbarch.h: Likewise.
840 * infcall.c (call_function_by_hand): Pass entire function value
841 to push_dummy_call.
842
843 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
844 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
845 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
846 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
847 * arm-tdep.c (arm_push_dummy_call): Likewise.
848 * avr-tdep.c (avr_push_dummy_call): Likewise.
849 * cris-tdep.c (cris_push_dummy_call): Likewise.
850 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
851 * frv-tdep.c (frv_push_dummy_call): Likewise.
852 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
853 * hppa-tdep.c (hppa32_push_dummy_call)
854 (hppa64_push_dummy_call): Likewise.
855 * i386-tdep.c (i386_push_dummy_call): Likewise.
856 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
857 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
858 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
859 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
860 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
861 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
862 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
863 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
864 (ppc64_sysv_abi_push_dummy_call): Likewise.
865 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
866 (ppc64_sysv_abi_push_dummy_call): Likewise.
867 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
868 * s390-tdep.c (s390_push_dummy_call): Likewise.
869 * sh-tdep.c (sh_push_dummy_call_fpu)
870 (sh_push_dummy_call_nofpu): Likewise.
871 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
872 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
873 * vax-tdep.c (vax_push_dummy_call): Likewise.
874
875 2004-06-04 Jim Blandy <jimb@redhat.com>
876
877 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
878 gdbarch argument to register_size.
879
880 * rs6000-tdep.c (rs6000_store_return_value): Use
881 regcache_cooked_write_part instead of
882 deprecated_write_register_bytes.
883 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
884 not gdbarch_deprecated_store_return_value.
885
886 * ppc-linux-nat.c (store_register, fetch_register): Remove
887 incorrect assertions. Simplify and generalize handling of
888 transfers whose sizes are not multiples of, or less than, sizeof
889 (PTRACE_XFER_TYPE).
890
891 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
892
893 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
894 as a new thread event.
895 * thread-db.c (thread_get_info_callback): If the thread is a
896 zombie, return TD_THR_ZOMBIE.
897 (thread_from_lwp): If thread_get_info_callback returns
898 TD_THR_ZOMBIE, check if the thread is still on the thread list
899 and return a -1 ptid if not found.
900 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
901 change the status to TARGET_WAITKIND_SPURIOUS.
902
903 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
904
905 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
906 double values in little endian mode.
907
908 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
909
910 Committed by Andrew Cagney.
911 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
912 after last enum constant to avoid error from IBM C
913 compiler.
914
915 2004-06-02 Jim Blandy <jimb@redhat.com>
916
917 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
918 to 'message', and make it local to the lone block that uses it.
919
920 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
921
922 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
923
924 * ada-exp.y: Synchronize with current ACT sources.
925 * ada-lang.c: Ditto.
926 * ada-lang.h: Ditto.
927 * ada-lex.l: Ditto.
928 * ada-tasks.c: Ditto.
929 * ada-typeprint.c: Ditto.
930 * ada-valprint.c: Ditto.
931
932 2004-06-01 Jim Blandy <jimb@redhat.com>
933
934 * ppc-tdep.h: Delete unused 'regoff' member.
935 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
936
937 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
938
939 Fix PR symtab/1661.
940 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
941 (hpread_read_struct_type): Likewise.
942
943 2004-06-01 Andrew Cagney <cagney@gnu.org>
944
945 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
946 instead of xasprintf.
947 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
948 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
949 (mi_cmd_data_list_register_names)
950 (mi_cmd_data_list_changed_registers)
951 (mi_cmd_data_list_register_values)
952 (get_register, mi_cmd_data_write_register_values)
953 (mi_cmd_data_write_register_values)
954 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
955 (mi_cmd_target_download, mi_cmd_target_select)
956 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
957 (mi_execute_cli_command, mi_execute_async_cli_command)
958 (mi_execute_async_cli_command): Ditto.
959 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
960 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
961
962 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
963 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
964 error_last_message instead of mi_error_last_message.
965 * mi/mi-main.c (mi_error_last_message): Delete function.
966
967 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
968 "invalid number of columns" error. Delete redundant "out of
969 memory" check.
970
971 2004-05-31 Mark Kettenis <kettenis@gnu.org>
972
973 * i386bsd-nat.c: Don't include <sys/procfs.h>.
974 (gregset_t, fpregset_t): Remove typedefs.
975 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
976 (REG_OFFSET): Rename argument.
977 (i386bsd_r_reg_offset): Rename from reg_offset.
978 (REG_ADDR): Remove macro.
979 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
980 functions.
981 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
982 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
983 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
984 instead of supply_gregset.
985 (store_inferior_registers): Use `struct reg' and `struct fpreg'
986 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
987 instead of fill_gregset.
988 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
989
990 * i386bsd-nat.c: Don't include "gregset.h".
991 (supply_gregset, fill_gregset): Make static.
992 (supply_fpregset, fill_fpregset): Remove.
993 * Makefile.in (i386bsd-nat.o): Update dependencies.
994
995 2004-05-30 Mark Kettenis <kettenis@gnu.org>
996
997 * fbsd-proc.c: Include "regcache.h", "regset.h" and
998 "gdb_assert.h". Con't include "gregset.h".
999 (fbsd_make_corefile_notes): Use regset-based core file support
1000 instead off fill_gregset and fill_fpregset.
1001 * Makefile.in (fbsd-proc.o): Update dependencies.
1002
1003 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
1004 instructions.
1005 (m88k_frame_prev_register): Simplify code a bit.
1006
1007 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
1008 (amd64_collect_fpregset): New function.
1009 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
1010
1011 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
1012
1013 * i386-tdep.c (i386_supply_gregset): Adjust comment.
1014 (i386_collect_gregset): New function.
1015 (i386_supply_fpregset): Adjust comment.
1016 (i386_collect_fpregset): New function.
1017 (i386_regset_from_core_section): Use i386_collect_gregset and
1018 i386_collect_fpregset.
1019
1020 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
1021 handle VALUEP being null.
1022
1023 * regset.h (collect_regset_ftype): Unconstify fourth argument.
1024
1025 2004-05-29 Mark Kettenis <kettenis@gnu.org>
1026
1027 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
1028
1029 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
1030 assembler in OpenBSD 3.5-current.
1031 (amd64obsd_sigcontext_addr): Likewise.
1032
1033 2004-05-28 Jim Blandy <jimb@redhat.com>
1034
1035 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
1036 register set, so our regcache isn't declared "legacy" and our E500
1037 pseudoregister read and write functions aren't ignored.
1038 (rs6000_register_byte, rs6000_register_raw_size,
1039 rs6000_register_virtual_type, rs6000_register_convertible,
1040 rs6000_register_convert_to_virtual,
1041 rs6000_register_convert_to_raw): Deleted.
1042 (rs6000_register_type, rs6000_convert_register_p,
1043 rs6000_register_to_value, rs6000_value_to_register): New
1044 functions.
1045 (rs6000_gdbarch_init): Don't register
1046 gdbarch_deprecated_register_size,
1047 gdbarch_deprecated_register_bytes,
1048 gdbarch_deprecated_register_byte,
1049 gdbarch_deprecated_register_raw_size,
1050 gdbarch_deprecated_register_virtual_type,
1051 gdbarch_deprecated_register_convertible,
1052 gdbarch_deprecated_register_convert_to_virtual, or
1053 gdbarch_deprecated_register_convert_to_raw methods. Instead,
1054 register gdbarch_register_type, gdbarch_convert_register_p,
1055 gdbarch_register_to_value, and gdbarch_value_to_register methods.
1056
1057 2004-05-26 Jim Blandy <jimb@redhat.com>
1058
1059 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
1060 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
1061 functions, updated to match the register numberings used in GCC.
1062 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
1063 rs6000_dwarf2_reg_to_regnum as register number conversions
1064 functions for STABS and Dwarf2.
1065
1066 2004-05-26 Randolph Chung <tausq@debian.org>
1067
1068 * infttrace.h (target_waitkind): Forward declare type instead of pulling
1069 in header file.
1070
1071 2004-05-25 Joel Brobecker <brobecker@gnat.com>
1072
1073 * NEWS: Document new "start" command.
1074
1075 2004-05-25 Randolph Chung <tausq@debian.org>
1076
1077 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
1078 hppa-linux.
1079
1080 2004-05-25 Randolph Chung <tausq@debian.org>
1081
1082 * hppa-hpux-tdep.c (offsetof): Define.
1083 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
1084 (hppa32_hpux_frame_base_before_sigtramp)
1085 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
1086 (hppa64_hpux_frame_saved_pc_in_sigtramp)
1087 (hppa64_hpux_frame_base_before_sigtramp)
1088 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
1089 functions.
1090 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
1091 (hppa_hpux_sigtramp_frame_unwind_cache)
1092 (hppa_hpux_sigtramp_frame_this_id)
1093 (hppa_hpux_sigtramp_frame_prev_register)
1094 (hppa_hpux_sigtramp_frame_unwind)
1095 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
1096 (hppa_hpux_init_abi): Register sigtramp unwinder.
1097 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
1098
1099 2004-05-25 Randolph Chung <tausq@debian.org>
1100
1101 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
1102 and multiple stack unwinds.
1103 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
1104
1105 2004-05-25 Andrew Cagney <cagney@gnu.org>
1106
1107 * symfile.h (symbol_file_add_from_memory): Delete declaration.
1108 * symfile-mem.h: Delete file.
1109 * symfile-mem.c: Do not include "symfile-mem.h".
1110 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
1111 "struct bfd_section". When an error do not bother returning NULL.
1112 (add_symbol_file_from_memory_command): Use "struct bfd" and
1113 "struct bfd_section".
1114 * Makefile.in (symfile_mem_h): Delete.
1115 (symfile-mem.o): Update dependencies.
1116
1117 2004-05-25 Nick Roberts <nickrob@gnu.org>
1118
1119 * gdb-mi.el: New file.
1120
1121 2004-05-25 Andrew Cagney <cagney@gnu.org>
1122
1123 * inftarg.c: Include "observer.h".
1124 (child_attach, child_create_inferior): Notify inferior_created.
1125 * corelow.c: Include "observer.h".
1126 (core_open): Notify inferior_created.
1127 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
1128
1129 2004-05-25 Andrew Cagney <cagney@gnu.org>
1130
1131 * target.h (struct target_ops): Add from_tty to
1132 to_create_inferior.
1133 (target_create_inferior, find_default_create_inferior): Update.
1134 * infcmd.c (run_command): Update.
1135 * wince.c (child_create_inferior): Update.
1136 * win32-nat.c (child_create_inferior): Update.
1137 * uw-thread.c (uw_thread_create_inferior): Update.
1138 * thread-db.c (thread_db_create_inferior): Update.
1139 * target.c (debug_to_create_inferior)
1140 (find_default_create_inferior): Update.
1141 (maybe_kill_then_create_inferior): Update.
1142 * sol-thread.c (sol_thread_create_inferior): Update.
1143 * remote.c (extended_remote_async_create_inferior)
1144 (extended_remote_create_inferior): Update.
1145 * remote-vx.c (vx_create_inferior): Update.
1146 * remote-st.c (st2000_create_inferior): Update.
1147 * remote-sim.c (gdbsim_create_inferior): Update.
1148 * remote-sds.c (sds_create_inferior): Update.
1149 * remote-rdp.c (remote_rdp_create_inferior): Update.
1150 * remote-rdi.c (arm_rdi_create_inferior): Update.
1151 * remote-m32r-sdi.c (m32r_create_inferior): Update.
1152 * remote-e7000.c (e7000_create_inferior): Update.
1153 * procfs.c (procfs_create_inferior): Update.
1154 * ocd.c (ocd_create_inferior): Update.
1155 * ocd.h (ocd_create_inferior): Update.
1156 * nto-procfs.c (procfs_create_inferior): Update.
1157 * monitor.c (monitor_create_inferior): Update.
1158 * lin-lwp.c (lin_lwp_create_inferior): Update.
1159 * inftarg.c (child_create_inferior): Update.
1160 * hpux-thread.c (hpux_thread_create_inferior): Update.
1161 * gnu-nat.c (gnu_create_inferior): Update.
1162
1163 2004-05-25 Andrew Cagney <cagney@gnu.com>
1164
1165 * MAINTAINERS: Update e-mail address.
1166
1167 2004-05-24 Randolph Chung <tausq@debian.org>
1168
1169 * thread.c (info_threads_command, thread_apply_all_command)
1170 (thread_apply_command, thread_command, do_captured_thread_select):
1171 Remove HPUXHPPA-specific code.
1172
1173 2004-05-24 Randolph Chung <tausq@debian.org>
1174
1175 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
1176 unused symbols.
1177 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
1178 references.
1179
1180 2004-05-24 Joel Brobecker <brobecker@gnat.com>
1181
1182 * infcmd.c (kill_if_already_running): New function, extracted
1183 from run_command().
1184 (run_command): Replace extracted code by call to
1185 kill_if_already_running().
1186 (start_command): New function.
1187 (_initialize_infcmd): Add "start" command.
1188
1189 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1190
1191 Add OpenBSD/m88k support.
1192 * NEWS (New native configurations): Mention OpenBSD/m88k.
1193 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
1194 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
1195 * Makefile.in (m88k_tdep_h): New variable.
1196 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
1197 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
1198 * configure.host: Add m88*-*-openbsd*.
1199 * configure.tgt: Add m88*-*-openbsd*.
1200
1201 2004-05-24 Jim Blandy <jimb@redhat.com>
1202
1203 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
1204 to approve changes.
1205
1206 2004-05-24 Kevin Buettner <kevinb@redhat.com>
1207
1208 * symtab.c (fixup_section): Search section table when lookup by
1209 name fails.
1210
1211 2004-05-24 Randolph Chung <tausq@debian.org>
1212
1213 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
1214 be "small_struct".
1215
1216 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1217
1218 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
1219 register number in regcache_raw_collect call.
1220 (m68kbsd_collect_fpregset): Likewise.
1221 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
1222
1223 * regset.h (struct regset): Add back `regset' member.
1224
1225 2004-05-23 Mark Kettenis <kettenis@gnu.org>
1226
1227 * configure.in: Check for td_pcb in `struct thread'.
1228 * configure, config.in: Regenerated.
1229
1230 * dpx2-nat.c: Remove file.
1231 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
1232 (dpx2-nat.o): Remove dependencies.
1233
1234 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
1235 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1236 (amd64obsd_supply_pcb): New function.
1237 (_initialize_amd64obsd_nat): Enable libkvm interface.
1238 * Makefile.in (amd64obsd-nat.o): Update dependencies.
1239 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
1240 (LOADLIBES): New variable.
1241
1242 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
1243 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
1244 (sparc32nbsd_supply_pcb): New function.
1245 (_initialize_sparcnbsd_nat): Enable libkvm interface.
1246 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
1247 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1248 (LOADLIBES): New variable.
1249
1250 2004-05-22 Mark Kettenis <kettenis@gnu.org>
1251
1252 * bsd-kvm.c, bsd-kvm.h: New files.
1253 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1254 "bsd-kvm.h".
1255 (i386fbsd_supply_pcb): New function.
1256 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1257 (i386fbsd-nat.o): Update dependencies.
1258 (bsd_kvm_h): New variable.
1259 (bsd-kvm.o): New dependency.
1260 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1261 (LOADLIBES): New variable.
1262
1263 * regset.c: Tweak comment.
1264 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1265 macro.
1266 * regset.h: Update copyright year.
1267 (struct regset): Remove `descr' member, add `gdbarch' member.
1268 (regset_alloc): Adjust prototype and comment.
1269 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1270 (i386_supply_fpregset): Likewise.
1271 (i386_regset_from_core_section): Update call to regset_alloc.
1272 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1273 REGSET->arch.
1274 (i386obsd_aout_regset_from_core_section): Update call to
1275 regset_alloc.
1276 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1277 REGSET->arch.
1278 (i386nbsd_aout_regset_from_core_section): Update call to
1279 regset_alloc.
1280 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1281 REGSET->arch.
1282 (amd64_regset_from_core_section): Update call to regset_alloc.
1283 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1284 REGSET->arch.
1285 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1286 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1287 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1288 (sparc32nbsd_init_abi): Update call to regset_alloc.
1289 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1290 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1291 (sparc64obsd_init_abi): Update call to regset_alloc.
1292 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1293 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1294 (sparc64nbsd_init_abi): Update call to regset_alloc.
1295 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1296 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1297 (sparc64fbsd_init_abi): Update call to regset_alloc.
1298
1299 2004-05-22 Jim Blandy <jimb@redhat.com>
1300
1301 * ppc-tdep.h (spe_register_p): New declaration.
1302 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1303 ppc_spefscr_regnum.
1304 * rs6000-tdep.c (spe_register_p): New function.
1305 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1306 spefscr.
1307 (rs6000_gdbarch_init): Initialize the new members of the tdep
1308 structure.
1309
1310 2004-05-21 Jim Blandy <jimb@redhat.com>
1311
1312 * ppc-linux-nat.c (fetch_register): Move code back to be next
1313 to the comment that describes it. (Moved code, instead of
1314 comment, for symmetry with store_register.)
1315
1316 Allocate regset structures in the gdbarch's obstack, not using
1317 xmalloc.
1318 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1319 Add 'arch' argument. Allocate the regset on arch's obstack, not
1320 using xmalloc.
1321 * regset.h (regset_alloc): Update declaration.
1322 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1323 gdbarch argument.
1324 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1325 * i386-tdep.c (i386_regset_from_core_section): Same.
1326 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1327 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1328 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1329 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1330 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1331 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1332
1333 2004-05-21 Joel Brobecker <brobecker@gnat.com>
1334
1335 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1336
1337 2004-05-21 Jim Blandy <jimb@redhat.com>
1338
1339 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1340 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1341
1342 2004-05-20 Jim Blandy <jimb@redhat.com>
1343
1344 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1345
1346 2004-05-20 Mark Kettenis <kettenis@gnu.org>
1347
1348 * regset.h: Make prototype const-correct.
1349 * regset.c (regset_xmalloc): Make const-correct.
1350
1351 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1352
1353 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1354 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1355 (symbol_search_name): Declare.
1356
1357 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1358 (iter_name_next_hashed): Ditto.
1359 (iter_name_next_linear): Ditto.
1360 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1361
1362 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1363 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1364 (symbol_search_name): New function.
1365
1366 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1367
1368 * minsyms.c (build_minimal_symbol_hash_tables): Change
1369 test for adding to demangled hash table to check for difference
1370 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1371
1372 2004-05-19 Jim Blandy <jimb@redhat.com>
1373
1374 Use a constructor function to create regset structures.
1375 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1376 (struct regset): Use supply_regset_ftype. Add new
1377 'collect_regset' member.
1378 (regset_xmalloc): New declaration.
1379 * regset.c: New file.
1380 * am64-tdep.c (amd64_regset_from_core_section): Use
1381 regset_xmalloc to construct regset structures.
1382 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1383 * i386-tdep.c (i386_regset_from_core_section): Same.
1384 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1385 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1386 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1387 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1388 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1389 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1390 * Makefile.in (COMMON_OBS): Add regset.o.
1391 (regset.o): New rule.
1392
1393 2004-05-19 Joel Brobecker <brobecker@gnat.com>
1394
1395 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1396 and pthread_cond_wait.c.
1397
1398 2004-05-18 Jim Blandy <jimb@redhat.com>
1399
1400 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1401 before the mach-specific switch, and then let the individual cases
1402 override the defaults, rather than leaving them uninitialized
1403 until the switch and then setting them in each case.
1404
1405 2004-05-18 Randolph Chung <tausq@debian.org>
1406
1407 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1408 millicode functions.
1409
1410 2004-05-18 Randolph Chung <tausq@debian.org>
1411
1412 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1413 references to dld_flags_buffer consistent.
1414
1415 2004-05-18 Randolph Chung <tausq@debian.org>
1416
1417 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1418 it for unwinding the stack.
1419
1420 2004-05-18 Randolph Chung <tausq@debian.org>
1421
1422 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1423 Undefine these so we can overide them using gdbarch.
1424
1425 2004-05-18 Randolph Chung <tausq@debian.org>
1426
1427 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1428 handling for 64-bit HPUX (elf).
1429
1430 2004-05-18 Daniel Jacobowitz <dan@debian.org>
1431
1432 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1433 constants.
1434 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1435 * ia64-tdep.c (examine_prologue): Likewise.
1436 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1437 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1438
1439 2004-05-18 Mark Kettenis <kettenis@gnu.org>
1440
1441 * vax-tdep.c (vax_return_value): Implement
1442 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1443
1444 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1445
1446 * vax-tdep.c (vax_return_value): Fix typo.
1447
1448 2004-05-17 Andrew Cagney <cagney@redhat.com>
1449
1450 * MAINTAINERS: Mark Salter was also responsible for
1451 testsuite/config/
1452
1453 * NEWS: Mention signal fixes.
1454
1455 2004-05-17 Randolph Chung <tausq@debian.org>
1456
1457 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1458 check to see if we are unwinding an export stub. Export stubs clobber
1459 the %rp in the call path and stores the original rp in a stack slot.
1460
1461 2004-05-17 Jim Blandy <jimb@redhat.com>
1462
1463 * MAINTAINERS: Update address for J.T. Conklin.
1464
1465 2004-05-17 Randolph Chung <tausq@debian.org>
1466
1467 * hppa-tdep.c: Remove superfluous #include's.
1468 * Makefile.in (hppa-tdep.o): Update dependencies.
1469
1470 2004-05-17 Randolph Chung <tausq@debian.org>
1471
1472 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1473 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1474 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1475 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1476 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1477 Remove static function declarations.
1478
1479 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1480
1481 * alphabsd-nat.c: Update copyright year.
1482 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1483
1484 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1485 and M68K_A2_REGNUM.
1486
1487 * m68k-tdep.c (m68k_svr4_return_value): Implement
1488 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1489
1490 2004-05-16 Mark Kettenis <kettenis@gnu.org>
1491
1492 * sol-thread.c Update copyright year. Fix various coding
1493 standards violations. Tweak a few comments.
1494 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1495 Delete prototypes.
1496
1497 2004-05-15 Randolph Chung <tausq@debian.org>
1498
1499 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1500 as pointer instead of array reference since HPUX compiler does
1501 not accept unsized array arguments.
1502 * somsolib.c (dld_flags_buffer): Use constant array size.
1503
1504 2004-05-15 Mark Kettenis <kettenis@gnu.org>
1505
1506 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1507 offset with decimal offset.
1508 (amd64obsd_sigcontext_addr): Return correct address for entire
1509 signal trampoline.
1510
1511 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1512 instead of get_frame_base.
1513
1514 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1515 (fill_gregset): Use regcache_raw_collect.
1516
1517 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1518 ppcobsd-tdep.c.
1519
1520 * config/sparc/tm-nbsd64.h: Remove file.
1521 * config/tm-sunos.h: Remove file.
1522
1523 2004-05-15 Joel Brobecker <brobecker@gnat.com>
1524
1525 * rs6000-tdep.c (store_param_on_stack_p): New function,
1526 an improved version of some code extracted from skip_prologue().
1527 (skip_prologue): Use store_param_on_stack_p() to detect
1528 instructions saving a parameter on the stack. Detect when r0
1529 is used to save a parameter.
1530 Do not mark "li rx, SIMM" instructions as part of the prologue,
1531 unless the following instruction is also part of the prologue.
1532
1533 2004-05-14 Andrew Cagney <cagney@redhat.com>
1534
1535 * infrun.c (handle_inferior_event): Simplify
1536 STEP_OVER_UNDEBUGGABLE.
1537
1538 * infrun.c (handle_step_into_function): Delete function.
1539 (handle_inferior_event): Inline calls to
1540 handle_step_into_function.
1541
1542 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1543
1544 * rs6000-nat.c: Fix a comment.
1545
1546 2004-05-12 David Anderson <davea@sgi.com>
1547
1548 Committed by Jim Blandy <jimb@redhat.com>:
1549 * regcache.c (struct regcache_descr): fix comment spelling.
1550
1551 2004-05-13 J. Brobecker <brobecker@gnat.com>
1552
1553 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1554 Fixes a link link failure.
1555
1556 2004-05-13 J. Brobecker <brobecker@gnat.com>
1557
1558 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1559 error that was causing the build to fail.
1560
1561 2004-05-13 J. Brobecker <brobecker@gnat.com>
1562
1563 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1564 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1565
1566 2004-05-13 Andrew Cagney <cagney@redhat.com>
1567
1568 * infrun.c (handle_inferior_event): Check for
1569 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1570 calls. Update comments.
1571
1572 2004-05-13 Jim Blandy <jimb@redhat.com>
1573
1574 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1575 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1576 (store_regs_user_thread, store_regs_kernel_thread): Use
1577 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1578 * ppc-linux-nat.c (fill_gregset): Same.
1579 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1580 (ppc_linux_sigtramp_cache): Same.
1581 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1582 (ppcnbsd_sigtramp_cache_init): Same.
1583 * rs6000-nat.c (fetch_core_registers): Same.
1584 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1585 (rs6000_frame_cache): Same.
1586
1587 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1588 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1589 of assuming that the gprs are numbered starting with zero.
1590 * ppc-linux-nat.c (fill_gregset): Same.
1591 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1592 * ppcnbsd-nat.c (getregs_supplies): Same.
1593 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1594 * rs6000-nat.c (fetch_core_registers): Same.
1595 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1596
1597 2004-05-07 Michael Snyder <msnyder@redhat.com>
1598
1599 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1600 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1601
1602 2004-05-13 Andrew Cagney <cagney@redhat.com>
1603
1604 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1605
1606 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1607
1608 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1609 base_address for shared libraries.
1610
1611 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1612
1613 * MAINTAINERS (write after approval): Add myself.
1614
1615 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1616
1617 * breakpoint.c (bpstat_stop_status): Add new argument
1618 STOPPED_BY_WATCHPOINT. Use it instead of testing
1619 target_stopped_data_address agaist 0 to check whether
1620 or not we stopped due to a hardware watchpoint.
1621 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1622 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1623 with new argument.
1624
1625 2004-05-12 Jim Blandy <jimb@redhat.com>
1626
1627 * configure.in: When checking whether we should use the -bbigtoc
1628 option, don't forget to restore the original value of LDFLAGS.
1629 * configure: Regenerated.
1630
1631 2004-05-12 Andrew Cagney <cagney@redhat.com>
1632
1633 * thread.c (load_infrun_state): Delete step_sp.
1634 * infrun.c (context_switch): Ditto.
1635 * inferior.h (step_sp): Ditto.
1636 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1637 * gdbthread.h (struct thread_info, save_infrun_state)
1638 (restore_infrun_state): Ditto.
1639
1640 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1641
1642 * MAINTAINERS (write after approval): Add myself.
1643
1644 2004-05-12 Andrew Cagney <cagney@redhat.com>
1645
1646 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1647 eliminate reference to step_sp.
1648 (struct execution_control_state, init_execution_control_state)
1649 (handle_inferior_event, keep_going): Delete update_step_sp and
1650 step_sp.
1651 * infcmd.c (step_sp): Note that variable is unused.
1652
1653 2004-05-11 Andrew Cagney <cagney@redhat.com>
1654
1655 * infrun.c (step_over_function): Delete function.
1656 (handle_step_into_function): Use insert_step_resume_breakpoint.
1657 (insert_step_resume_breakpoint): Fix assertion.
1658
1659 2004-05-11 Nick Roberts <nickrob@gnu.org>
1660
1661 * utils.c (defaulted_query): Just use the normal query input type
1662 when printing the annotations.
1663
1664 2004-05-11 Andrew Cagney <cagney@redhat.com>
1665
1666 * infrun.c (handle_inferior_event): Simplify code handling
1667 step-into or return-from a signal trampoline.
1668
1669 2004-05-11 Andrew Cagney <cagney@redhat.com>
1670
1671 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1672 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1673
1674 2004-05-10 Jim Blandy <jimb@redhat.com>
1675
1676 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1677 with a call to internal_error.
1678
1679 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1680 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1681 processor variant lacks those registers.
1682 (ppc_floating_point_unit_p): Change description to make it clear
1683 that this returns info about the ISA, not the ABI.
1684 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1685 return true or false by checking tdep->ppc_fp0_regnum and
1686 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1687 arch/mach switching done in rs6000_gdbarch_init; it's better to
1688 keep that logic there, and just check the results here.
1689 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1690 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1691 floating-point registers.
1692 (ppc_supply_fpregset, ppc_collect_fpregset)
1693 (rs6000_push_dummy_call, rs6000_extract_return_value)
1694 (rs6000_store_return_value): Assert that we have floating-point
1695 registers.
1696 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1697 (rs6000_frame_cache): Don't note the locations at which
1698 floating-point registers were saved if we have no fprs.
1699 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1700 registers.
1701 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1702 (store_regs_user_thread, store_regs_kernel_thread): Only call
1703 supply_fprs / fill_fprs if we actually have floating-point
1704 registers.
1705 (special_register_p): Check ppc_fpscr_regnum before matching
1706 against it.
1707 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1708 supply / collect fpscr if we don't have it.
1709 * ppc-bdm.c: #include "gdb_assert.h".
1710 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1711 have floating-point registers, since I can't test this code on
1712 FP-free systems to adapt it.
1713 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1714 fpscr and floating point register numbers if they don't exist.
1715 (fetch_register): Assert that we have floating-point registers
1716 before we reach the code that handles them.
1717 (store_register): Same. And use tdep instead of calling
1718 gdbarch_tdep again.
1719 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1720 don't have them.
1721 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1722 fprs and fpscr if we don't have them.
1723 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1724 don't have them.
1725 * ppcnbsd-nat.c: #include "gdb_assert.h".
1726 (getfpregs_supplies): Assert that we have floating-point registers.
1727 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1728 * ppcobsd-tdep.c: #include "gdb_assert.h".
1729 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1730 have floating-point registers.
1731 * rs6000-nat.c (regmap): Don't match against the fpscr and
1732 floating point register numbers if they don't exist.
1733 (fetch_inferior_registers, store_inferior_registers,
1734 fetch_core_registers): Only fetch / store / supply the
1735 floating-point registers and the fpscr if we have them.
1736 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1737 (ppcobsd-tdep.o): Update dependencies.
1738
1739 2004-05-10 Andrew Cagney <cagney@redhat.com>
1740
1741 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1742 (context_switch): Do not switch through_sigtramp_breakpoint.
1743 * gdbthread.h (save_infrun_state, load_infrun_state)
1744 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1745 and structure member.
1746 * thread.c (load_infrun_state, save_infrun_state): Update.
1747
1748 2004-05-10 Mark Kettenis <kettenis@gnu.org>
1749
1750 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1751
1752 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1753
1754 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1755 throughout.
1756 * aclocal.m4: Regenerate.
1757
1758 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1759
1760 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1761
1762 2004-05-10 Andrew Cagney <cagney@redhat.com>
1763
1764 * infrun.c (check_sigtramp2): Delete function.
1765 (handle_inferior_event): When single stepping, and taking a
1766 signal, set a breakpoint at the signal return address. Delete
1767 redundant calls to check_sigtramp2.
1768 (insert_step_resume_breakpoint): New function.
1769 (through_sigtramp_breakpoint, handle_inferior_event)
1770 (follow_exec, wait_for_inferior, fetch_inferior_event)
1771 (currently_stepping, keep_going): Delete most uses of
1772 through_sigtramp_breakpoint, not that it should be deleted.
1773 (delete_breakpoint_current_contents): Delete function.
1774
1775 2004-05-10 Randolph Chung <tausq@debian.org>
1776
1777 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1778 target.
1779 * config/pa/tm-linux.h: New file.
1780
1781 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
1782
1783 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1784 of prefixes. Don't print the prefix twice in the CLI.
1785
1786 2004-05-10 Jim Blandy <jimb@redhat.com>
1787
1788 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1789 collect all the gprs.
1790
1791 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1792 loop collecting gprs.
1793
1794 2004-05-09 Andrew Cagney <cagney@redhat.com>
1795
1796 * remote-vx.c (net_step): Delete step-range code.
1797 * remote.c (remote_resume, init_all_packet_configs)
1798 (set_remote_protocol_E_packet_cmd)
1799 (show_remote_protocol_E_packet_cmd)
1800 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1801 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1802 (show_remote_protocol_e_packet_cmd): Ditto.
1803
1804 2004-05-09 Mark Kettenis <kettenis@gnu.org>
1805
1806 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1807
1808 * hppa-tdep.h: Update copyright year.
1809 (struct trad_frame_saved_reg): Add opaque declaration.
1810
1811 * amd64-tdep.c (amd64_return_value): Implement
1812 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1813
1814 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1815 (m68k_value_to_register): New functions.
1816 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1817 value_to_register.
1818
1819 * defs.h (enum return_value_convention): Add
1820 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1821 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1822 * infcmd.c (legacy_return_value): New function.
1823 (print_return_value): Rwerite to implement
1824 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1825 * values.c (using_struct_return): Check for inequality to
1826 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1827 RETURN_VALUE_STRUCT_CONVENTION.
1828 * i386-tdep.c (i386_return_value): Implement
1829 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1830
1831 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1832 include "symtab.h", "opcode/vax.h" and "inferior.h".
1833 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1834 to read_memory_unsigned_integer.
1835 (vax_gdbarch_init): Reorder.
1836 (_initialize_vax_tdep): Spell out prototype.
1837 * Makefile.in (vax-tdep.o): Update dependencies.
1838
1839 2004-05-08 Andrew Cagney <cagney@redhat.com>
1840
1841 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1842 * target.c (target_detach, target_disconnect): Ditto.
1843
1844 * infcall.c (call_function_by_hand): When no
1845 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1846 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1847 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1850
1851 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1852 * gdbarch.h, gdbarch.c: Re-generate.
1853 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1854 deprecated_fix_call_dummy.
1855 * v850-tdep.c (v850_gdbarch_init): Ditto.
1856 * infcall.c (call_function_by_hand): Do not call
1857 DEPRECATED_FIX_CALL_DUMMY.
1858
1859 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1860 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1861 * gdbarch.h, gdbarch.c: Re-generate.
1862 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1863 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1864 deprecated_sizeof_call_dummy_words.
1865 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1867 * v850-tdep.c (v850_gdbarch_init): Ditto.
1868 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1869 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1871 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1872 * arch-utils.h (legacy_call_dummy_words)
1873 (legacy_sizeof_call_dummy_words): Delete declarations.
1874 * arch-utils.c (legacy_call_dummy_words)
1875 (legacy_sizeof_call_dummy_words): Delete variables.
1876
1877 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1878 * gdbarch.h, gdbarch.c: Re-generate.
1879 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1880 * infcall.c (call_function_by_hand): Eliminate call to
1881 DEPRECATED_PUSH_DUMMY_FRAME.
1882 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1883 push_dummy_frame.
1884 (ns32k_push_dummy_frame): Delete function.
1885
1886 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1887 deprecated_call_dummy_breakpoint_offset or
1888 deprecated_call_dummy_start_offset.
1889 * dummy-frame.c, arm-tdep.c: Update comments.
1890 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1891 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1892 * gdbarch.h, gdbarch.c: Re-generate.
1893
1894 * infcall.c (legacy_push_dummy_code): Delete function.
1895 (push_dummy_code): Delete call.
1896
1897 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1898 * gdbarch.h, gdbarch.c: Re-generate.
1899 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1900 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1901 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1902 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1903
1904 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1905 (struct frame_info): Delete opaque declaration.
1906 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1907 * frame.c (get_frame_type): Delete call.
1908
1909 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1910 pc_in_call_dummy.
1911 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1912 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1913
1914 2004-05-08 Mark Kettenis <kettenis@gnu.org>
1915
1916 * alphanbsd-tdep.c: Include "gdb_string.h".
1917 * armnbsd-tdep.c: Update copyright year.
1918 Include "gdb_string.h".
1919 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1920 dependencies.
1921
1922 * delta68-nat.c: Remove file.
1923 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1924 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1925 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1926 (delta68-nat.o): Remove dependency.
1927
1928 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1929 function.
1930 (m68k_gdbarch_init): Don't set
1931 deprecated_frameless_function_invocation.
1932
1933 2004-05-07 Randolph Chung <tausq@debian.org>
1934
1935 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1936 read_memory_nobpt for code reading when doing frame unwinding.
1937 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1938
1939 2004-05-07 Randolph Chung <tausq@debian.org>
1940
1941 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1942 instead of sp, handle sigaltstack case.
1943 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1944 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1945 signal handler and not that of the caller.
1946 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1947 hppa_linux_sigtramp_find_sigcontext.
1948
1949 2004-05-07 Randolph Chung <tausq@debian.org>
1950
1951 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1952 hppa-linux-nat.c.
1953 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1954 * hppa-linux-nat.c (fetch_register, store_register): Define.
1955 (fetch_inferior_registers, store_inferior_registers): Define.
1956 (supply_gregset): Add comment and clean up some unneeded code.
1957 (fill_gregset): Add comment and fix so that it saves registers in
1958 the right place in the gregset.
1959 (fill_fpregset): Fix buffer overrun problem.
1960 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1961
1962 2004-05-07 Randolph Chung <tausq@debian.org>
1963
1964 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1965 do common handling of the pcoqt register.
1966 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1967 to use helper function.
1968 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1969 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1970 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1971 generic fallback unwinder when all else fails.
1972 (hppa_gdbarch_init): Add fallback sniffer.
1973 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1974 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1975 to use helper function.
1976
1977 2004-05-08 Joel Brobecker <brobecker@gnat.com>
1978
1979 * config/djgpp/fnchange.lst: Add translation rules for
1980 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1981
1982 2004-05-08 Mark Kettenis <kettenis@gnu.org>
1983
1984 * frame.c (get_prev_frame_1): Work around GCC bug.
1985 * frame.h: Add comment about GCC bug.
1986
1987 2004-05-07 Andrew Cagney <cagney@redhat.com>
1988
1989 * observer.c: Include "commands.h" and "gdbcmd.h".
1990 (observer_debug, _initialize_observer): Add the
1991 command "set/show debug observer".
1992 * observer.sh: When observer debugging, log notify calls.
1993 * Makefile.in (observer.o): Update dependencies.
1994
1995 2004-05-07 Jason Molenda (jmolenda@apple.com)
1996
1997 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1998
1999 2004-05-07 Jim Blandy <jimb@redhat.com>
2000
2001 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
2002 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
2003 to recognize gpr regnums, instead of assuming that
2004 tdep->ppc_fp0_regnum marks the end of the general-purpose
2005 registers.
2006
2007 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
2008 the given architecture has floating-point registers.
2009
2010 2004-05-07 Andrew Cagney <cagney@redhat.com>
2011
2012 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
2013 macro defined to 1.
2014 * gdbarch.h, gdbarch.c: Re-generate.
2015 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2016 deprecated_use_generic_dummy_frames.
2017
2018 2004-05-07 Brian Ford <ford@vss.fsi.com>
2019
2020 * NEWS: Mention Cygwin DWARF 2 support.
2021
2022 2004-05-07 Andrew Cagney <cagney@redhat.com>
2023
2024 * objfiles.h (struct entry_info): Delete unused fields
2025 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
2026 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
2027 * mipsread.c (mipscoff_symfile_read): Update.
2028 * mdebugread.c (parse_partial_symbols): Update.
2029 * dwarfread.c (read_file_scope): Update.
2030 * dwarf2read.c (read_file_scope): Update.
2031 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
2032 * coffread.c (complete_symtab): Update.
2033
2034 2004-05-07 Mark Kettenis <kettenis@gnu.org>
2035
2036 * infcall.c (_initialize_infcall): Fix typo.
2037
2038 2004-05-07 Andrew Cagney <cagney@redhat.com>
2039
2040 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
2041 * command.h (add_setshow_zinteger_cmd): Declare.
2042
2043 2004-05-06 Randolph Chung <tausq@debian.org>
2044
2045 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
2046 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
2047 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
2048 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
2049 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
2050 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
2051 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
2052 definitions ...
2053 * hppa-tdep.h: ... to here, with HPPA_ prefix.
2054 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
2055 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
2056 (hppa64_hpux_frame_find_saved_regs_in_sig)
2057 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
2058 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
2059 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
2060 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
2061 (hppa_linux_sigtramp_frame_prev_register): Likewise.
2062 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
2063 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
2064 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
2065 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
2066 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
2067 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
2068 (hppa32_register_type, hppa_cannot_store_register)
2069 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
2070 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
2071 * hpread.c (hpread_process_one_debug_symbol): Likewise.
2072 * pa64solib.c (pa64_solib_have_load_event)
2073 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
2074 (pa64_solib_unloaded_library_pathname): Likewise.
2075 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
2076 (som_solib_library_pathname): Likewise.
2077
2078 2004-05-05 Jim Ingham <jingham@apple.com>
2079
2080 * breakpoint.c (create_breakpoints): Copy the ignore count and
2081 thread id over from the pended breakpoint to the actual
2082 breakpoint.
2083
2084 2004-05-05 Andrew Cagney <cagney@redhat.com>
2085
2086 * gdbarch.sh (PARM_BOUNDARY): Delete.
2087 gdbarch.h, gdbarch.c: Re-generate.
2088 * valops.c (PARM_BOUNDARY): Delete macro.
2089 (value_push): Delete PARM_BOUNDARY code.
2090 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
2091
2092 2004-05-04 Jim Blandy <jimb@redhat.com>
2093
2094 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
2095 Don't assume that the gprs, fprs, and UISA sprs are
2096 contiguous, start at register number zero, and end with fpscr.
2097 Instead, use the numbers from the tdep structure.
2098
2099 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
2100 should no longer be used in code specific to the RS6000 and its
2101 derivatives.
2102 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
2103 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
2104 tdep->ppc_fp0_regnum.
2105 (ppc_supply_fpregset, ppc_collect_fpregset)
2106 (rs6000_push_dummy_call, rs6000_extract_return_value)
2107 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
2108 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
2109 FP0_REGNUM.
2110 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
2111 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
2112 Same.
2113 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
2114 bdm_ppc_store_registers): Same.
2115 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
2116 (store_register, fill_fpregset): Same.
2117 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
2118 (ppc_linux_supply_fpregset): Same.
2119 * ppcnbsd-nat.c (getfpregs_supplies): Same.
2120 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
2121 Same.
2122 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
2123 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
2124 ppc64_sysv_abi_return_value): Same.
2125 * rs6000-nat.c (regmap, fetch_inferior_registers)
2126 (store_inferior_registers, fetch_core_registers): Same.
2127
2128 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2129
2130 * m68knbsd-nat.c: Remove file.
2131 * m68knbsd-tdep.c: Remove file.
2132 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
2133 dependencies.
2134 * configure.host: Add m68k-*-netbsdelf*.
2135 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
2136 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
2137 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
2138 (XM_FILE): Remove.
2139 * config/m68k/nbsdelf.mh: New file.
2140 * config/m68k/nbsd.mt: New file.
2141 * config/m68k/nbsdaout.mt: Remove file.
2142 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
2143 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
2144 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
2145 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
2146 (use_struct_convention): Remove prototype.
2147 (USE_STRUCT_CONVENTION): Remove define.
2148 * config/m68k/xm-nbsd.h: Remove file.
2149
2150 2004-05-04 Michael Snyder <msnyder@redhat.com>
2151
2152 * m68k-tdep.c (m68k_gdbarch_init): Default to using
2153 reg_struct_return method (as gcc usually does for cross targets).
2154
2155 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2156
2157 Committed by Andrew Cagney.
2158 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
2159 alignment padding when accessing ucontext struct members.
2160
2161 2004-05-04 Jim Blandy <jimb@redhat.com>
2162
2163 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
2164 'ppc_gplast_regnum' member.
2165 (ppc_num_gprs): New enum constant.
2166 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
2167 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
2168 * rs6000-nat.c (regmap, fetch_inferior_registers,
2169 store_inferior_registers): Same.
2170 * rs6000-tdep.c (e500_pseudo_register_read)
2171 (e500_pseudo_register_write): Same.
2172 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
2173
2174 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
2175 * ppc-tdep.h (ppc_num_fprs): New enum constant.
2176 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
2177 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
2178 FPLAST_REGNUM.
2179 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2180 Same.
2181 * ppc-linux-nat.c (ppc_register_u_addr): Same.
2182 * rs6000-nat.c (regmap, fetch_inferior_registers)
2183 (store_inferior_registers): Same.
2184
2185 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
2186 with FPLAST_REGNUM.
2187
2188 2004-05-03 Joel Brobecker <brobecker@gnat.com>
2189
2190 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
2191 failure detected by recent versions of GCC.
2192 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
2193 to be consistent with the usage in dwarf2_create_include_psymtab.
2194
2195 2004-05-03 Michael Snyder <msnyder@redhat.com>
2196
2197 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
2198 (heuristic_proc_start): Whitespace cleanup.
2199
2200 2004-05-04 Mark Kettenis <kettenis@gnu.org>
2201
2202 * sun3-nat.c: Remove file.
2203 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
2204 dependencies.
2205 (ALLDEPFILES): Remove sun3-nat.c.
2206 (sun3-nat.o): Remove dependencies.
2207
2208 * i386-interix-nat.c, i386-interix-tdep.c,
2209 config/i386/nm-interix.h, config/i386/interix.mh,
2210 config/i386/interix.mt: Remove files.
2211 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
2212 dependencies.
2213
2214 2004-05-03 Mark Kettenis <kettenis@gnu.org>
2215
2216 * m68k-tdep.h (struct gdbarch_tdep): Add member
2217 struct_value_regnum.
2218 (m68k_svr4_init_abi): New prototype.
2219 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
2220 different calling conventions.
2221 (m68k_extract_return_value): Remove code dealing with single-field
2222 structs.
2223 (m68k_store_return_value): Remove code dealing with single-field
2224 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
2225 (m68k_extract_struct_value_address): Remove function.
2226 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
2227 (m68k_reg_struct_return_p, m68k_return_value)
2228 (m68k_svr4_return_value): New functions.
2229 (m68k_use_struct_convention): Remove function.
2230 (m68k_push_dummy_call): Use new struct_value_regnum member of
2231 `struct gdbarch_tdep' instead of hardcoded register number to
2232 store STRUCT_ADDR.
2233 (m68k_svr4_init_abi): New function.
2234 (m68k_gdbarch_init): Don't set extract_return_value,
2235 store_return_values, deprecated_extract_struct_value_address and
2236 use_struct_convention. Set return_value instead. Initialize new
2237 struct_value_regnum member of `struct gdbarch_tdep'.
2238 * m68klinux-tdep.c: Update copyright year.
2239 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
2240 (m68k_linux_extract_struct_value_address): Remove function.
2241 (m68k_linux_init_abi): Don't set extract_return_value,
2242 store_return_values, deprecated_extract_struct_value_address and
2243 use_struct_convention. Call m68k_svr4_init_abi but override the
2244 new struct_value_regnum member of `struct gdbarch_tdep'.
2245 * Makefile.in (m68k-tdep.o): Update dependencies.
2246
2247 2004-05-03 J. Brobecker <brobecker@gnat.com>
2248
2249 * dwarf2read.c (line_header): Add new included_p field in
2250 field file_names.
2251 (partial_die_info): New field has_stmt_list. New field line_offset.
2252 (dwarf2_create_include_psymtab): New function.
2253 (dwarf2_build_include_psymtabs): New function.
2254 (add_file_name): Add forward declaration. Initialize new field.
2255 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2256 to be able to determine the list of files included by the
2257 given unit, and build their associated psymtabs.
2258 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2259 files as well.
2260 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2261 (read_file_scope): Update call to dwarf_decode_lines.
2262 (read_partial_die): Handle DW_AT_stmt_list attributes.
2263
2264 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2265
2266 Unfix PR gdb/1626.
2267 * configure.in: Revert special case for osf5.*.
2268 * configure: Regenerate.
2269
2270 2004-05-02 Jim Blandy <jimb@redhat.com>
2271
2272 Move the symbol-file-from-memory functions into their own file.
2273 * symfile-mem.c, symfile-mem.h: New files.
2274 * symfile.c (symbol_file_add_from_bfd): New function.
2275 (symbol_file_add): Call symbol_file_add_from_bfd.
2276 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2277 Moved to symfile-mem.c.
2278 (_initialize_symfile): Move definition of
2279 add-symbol-file-from-memory command to symfile-mem.c.
2280 * symfile.h (symbol_file_add_from_bfd): New declaration.
2281 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2282 * config/powerpc/linux.mt (TDEPFILES): Same.
2283 * Makefile.in (SFILES): Add symfile-mem.c.
2284 (symfile_mem_h): New variable.
2285 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2286 (symfile-mem.o): New rule.
2287
2288 2004-05-01 Andrew Cagney <cagney@redhat.com>
2289
2290 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2291 frame_find_by_id instead of frame_relative_level.
2292 (do_enable_breakpoint): Ditto.
2293 * thread.c: Update copyright.
2294 (info_threads_command): Ditto, simplify.
2295
2296 * frame.c (deprecated_generic_get_saved_register): Delete
2297 function, moved to "xstormy16-tdep.c".
2298 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2299 deprecated_generic_get_saved_register from "frame.c".
2300 (xstormy16_frame_saved_register): Call
2301 xstormy16_get_saved_register.
2302 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2303 static.
2304 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2305 * frame.h (deprecated_generic_get_saved_register): Delete.
2306
2307 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2308
2309 * dwarfread.c: Update documentation on the state of dwarf-1.
2310
2311 2004-05-01 Andrew Cagney <cagney@redhat.com>
2312
2313 * stack.c (select_frame_command): Delete call to
2314 frame_relative_level.
2315 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2316 Delete #if0 code.
2317 (frame_info): Do not print FRAMELESS.
2318 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2319 (catch_info): Delete #if0 code.
2320
2321 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2322 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2323 of frame_relative_level.
2324 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2325 to SENTINEL_FRAME.
2326 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2327 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2328 frame_relative_level.
2329
2330 * frame.h (deprecated_set_frame_type): Delete declaration.
2331 * frame.c (deprecated_set_frame_type): Delete function, update
2332 comments.
2333
2334 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2335 * gdbarch.h, gdbarch.c: Re-generate.
2336 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2337 (shnbsd_pc_in_sigtramp): Delete.
2338 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2339 pc_in_sigtramp.
2340 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2341 pc_in_sigtramp.
2342 * frame.h: Update comments.
2343 * ppc-linux-tdep.c: Update comments.
2344 * breakpoint.c (bpstat_what): Update comments.
2345
2346 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2347 m68klinux-tdep.o's dependencies, were previously added to
2348 m68klinux-nat.o.
2349
2350 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2351 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2352 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2353 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2354 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2355
2356 * Makefile.in (m68klinux-nat.o): Update dependencies.
2357 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2358 (m68k_linux_sigtramp_frame_cache)
2359 (m68k_linux_sigtramp_frame_this_id)
2360 (m68k_linux_sigtramp_frame_prev_register)
2361 (m68k_linux_sigtramp_frame_unwind)
2362 (m68k_linux_sigtramp_frame_sniffer)
2363 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2364 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2365 names, use trad-frame.h.
2366 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2367 (struct m68k_sigtramp_info): Delete.
2368 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2369 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2370 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2371 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2372 "m68klinux-tdep.c".
2373
2374 * infrun.c (check_sigtramp2): Delete check for
2375 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2376
2377 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2378
2379 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2380
2381 2004-05-01 Andrew Cagney <cagney@redhat.com>
2382
2383 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2384 (frv_linux_sigtramp_frame_cache)
2385 (frv_linux_sigtramp_frame_this_id)
2386 (frv_linux_sigtramp_frame_prev_register)
2387 (frv_linux_sigtramp_frame_unwind)
2388 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2389 include "linux" in function and variable names, directly call
2390 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2391 the latest trad-frame code.
2392 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2393 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2394 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2395 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2396 * frv-tdep.c (frv_sigtramp_frame_cache)
2397 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2398 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2399 frv-linux-tdep.c.
2400 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2401 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2402 (frv_set_sigcontext_reg_addr): Delete function.
2403
2404 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2405 (DEPRECATED_SIGTRAMP_END): Delete.
2406 * gdbarch.h, gdbarch.c: Re-generate.
2407 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2408 * config/vax/tm-vaxbsd.h: Update copyright.
2409 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2410 (DEPRECATED_IN_SIGTRAMP): Define.
2411 * config/m68k/tm-nbsd.h: Update copyright.
2412 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2413 (DEPRECATED_IN_SIGTRAMP): Define.
2414
2415 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2416
2417 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2418 encondings. Fixes PR gdb/1628.
2419
2420 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2421 DW_CFA_restore state without a matching DW_CFA_remember_state
2422 instead of aborting. Fixes PR backtrace/1589.
2423
2424 2004-04-30 Joel Brobecker <brobecker@gnat.com>
2425
2426 * MAINTAINERS: Add self as AIX maintainer.
2427 Update my e-mail address in write-after-approval section.
2428
2429 2004-04-30 Andrew Cagney <cagney@redhat.com>
2430
2431 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2432 (legacy_get_prev_frame): Ditto.
2433
2434 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2435 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2436 * mipsread.c (sigtramp_address): Delete extern variable.
2437 (mipscoff_new_init): Delete reference.
2438 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2439 (fixup_sigtramp): Delete function.
2440 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2441 (fixup_sigtramp): Delete declarations.
2442
2443 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2444 deprecated_pc_in_sigtramp.
2445 (ppcnbsd_pc_in_sigtramp): Delete function.
2446
2447 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2448
2449 * config/m68k/nm-nbsd.h: Tweak comments.
2450 * config/m68k/nm-nbsdaout.h: Likewise.
2451
2452 2004-04-30 Andrew Cagney <cagney@redhat.com>
2453
2454 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2455 legacy_pc_in_sigtramp.
2456 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2457
2458 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2459
2460 Add OpenBSD/m68k support.
2461 * NEWS (New native configurations): Mention OpenBSD/m68k.
2462 * m68kbsd-tdep.c: New file.
2463 * m68kbsd-nat.c: New file.
2464 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2465 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2466 * configure.host: Add m68k-*-openbsd.
2467 * configure.tgt: Add m68k-*-openbsd.
2468 * config/m68k/tm-obsd.h: New file.
2469 * config/m68k/obsd.mt: New file.
2470 * config/m68k/obsd.mh: New file.
2471 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2472 m68kbsd-tdep.c.
2473
2474 2004-04-30 Andrew Cagney <cagney@redhat.com>
2475
2476 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2477 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2478
2479 2004-04-30 Mark Kettenis <kettenis@gnu.org>
2480
2481 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2482 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2483
2484 2004-04-30 Brian Ford <ford@vss.fsi.com>
2485
2486 Revert 2004-04-16 change.
2487 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2488 (i386_coff_init_abi): Remove.
2489 * i386-tdep.h (i386_coff_init_abi): Remove.
2490 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2491
2492 2004-04-30 Andrew Cagney <cagney@redhat.com>
2493
2494 * blockframe.c (find_pc_partial_function): Delete use of
2495 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2496 DEPRECATED_SIGTRAMP_END.
2497
2498 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2499 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2500 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2501 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2502 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2503
2504 * defs.h (deprecated_inside_entry_file): Delete declaration.
2505 * blockframe.c (deprecated_inside_entry_file): Delete function.
2506 (legacy_frame_chain_valid): Delete call.
2507 * sh64-tdep.c (sh64_frame_chain): Delete call.
2508 * objfiles.h: Update comments.
2509 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2510 call.
2511 * frame.c (get_prev_frame): Delete call, update comments.
2512
2513 2004-04-30 Brian Ford <ford@vss.fsi.com>
2514
2515 * MAINTAINERS (Write After Approval): Add myself.
2516
2517 2004-04-30 Andrew Cagney <cagney@redhat.com>
2518
2519 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2520 * gdbarch.h, gdbarch.c: Re-generate.
2521 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2522 code.
2523
2524 2004-04-30 Andrew Cagney <cagney@redhat.com>
2525
2526 * gdb-events.sh (selected_thread_changed)
2527 (selected_frame_level_changed, target_changed): Delete.
2528 * gdb-events.h, gdb-events.c: Re-generate.
2529 * valops.c (value_assign): Update.
2530 * stack.c (select_frame_command, up_silently_base)
2531 (down_silently_base): Update.
2532
2533 2004-04-29 Andrew Cagney <cagney@redhat.com>
2534
2535 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2536 registers correctly.
2537 (print_gp_register_row, mips32_heuristic_proc_desc)
2538 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2539 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2540 references to mips_isa_regsize.
2541
2542 2004-04-29 Andrew Cagney <cagney@redhat.com>
2543
2544 * mips-tdep.c (struct gdbarch_tdep): Delete
2545 mips_fp_register_double.
2546 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2547 mips_abi_regsize.
2548 (mips_gdbarch_init): Do not set mips_fp_register_double.
2549 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2550
2551 2004-04-29 Joel Brobecker <brobecker@gnat.com>
2552
2553 Committed by Andrew Cagney.
2554 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2555 function calls.
2556
2557 2004-04-29 Andrew Cagney <cagney@redhat.com>
2558
2559 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2560 gdbarch, use mips_abi, update callers.
2561 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2562 mips_abi_regsize, update callers.
2563 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2564 mips_default_abi_regsize.
2565 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2566 mips_default_abi_regsize.
2567
2568 2004-04-29 Andrew Cagney <cagney@redhat.com>
2569
2570 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2571 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2572 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2573 mips_default_abi_regsize.
2574 (mips_isa_regsize): Rename mips_regisze.
2575 * mipsnbsd-tdep.c: Update.
2576 * mips-linux-tdep.c: Update.
2577 * irix5-nat.c: Update.
2578 * mips-tdep.h (mips_isa_regsize): Update.
2579
2580 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2581 Delete all disabled code.
2582 * gdb-events.h, gdb-events.c: Re-generate.
2583
2584 2004-04-19 Jerome Guitton <guitton@gnat.com>
2585 Mark Kettenis <kettenis@gnu.org>
2586
2587 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2588 the function begins with a branch instruction.
2589
2590 2004-04-29 Mark Kettenis <kettenis@gnu.org>
2591
2592 * i386-tdep.c: Fix spelling mistakes.
2593
2594 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2595 Andrew Cagney <cagney@redhat.com>
2596
2597 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2598 <sys/proc.h>.
2599 * acconfig.h: Provide default _KMEMUSER value.
2600 * config.in, configure: Re-generate.
2601 * NEWS: Mention fix.
2602
2603 2004-04-24 Randolph Chung <tausq@debian.org>
2604
2605 * configure.host (hppa*-*-linux*): New target.
2606 * configure.tgt (hppa*-*-linux*): Likewise.
2607 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2608 gdbarch_init_osabi() call earlier so that osabi-specific frame
2609 unwinders can be registered first.
2610 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2611 hppa-linux-nat.c.
2612 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2613 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2614 * config/pa/linux.mh: New file.
2615 * config/pa/linux.mt: New file.
2616 * config/pa/nm-linux.h: New file.
2617 * config/pa/xm-linux.h: New file.
2618 * hppa-linux-nat.c: New file.
2619 * hppa-linux-tdep.c: New file.
2620
2621 2004-04-28 Randolph Chung <tausq@debian.org>
2622
2623 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2624 return values.
2625 (hppa32_push_dummy_call): Fix small struct and floating point argument
2626 passing, and make sure the stack frame is properly aligned.
2627
2628 2004-04-28 Andrew Cagney <cagney@redhat.com>
2629
2630 * stack.c (print_stack_frame): Fix description.
2631
2632 * NEWS: Mention gdb/gdbserver/configure execute permission
2633 changed. PR server/519.
2634
2635 2004-04-28 Andrew Cagney <cagney@redhat.com>
2636
2637 * stack.c (print_stack_frame_stub): Delete declaration.
2638 (struct print_stack_frame_args, print_stack_frame)
2639 (print_frame_info, print_frame): Replace "source" with print what.
2640 Replace "print" with "print_level". Replace "args" with
2641 "print_args".
2642 * frame.h (show_and_print_stack_frame, print_stack_frame)
2643 (print_frame_info): Update declarations.
2644 * stack.c (select_and_print_frame, frame_command)
2645 (current_frame_command, up_command, down_command): Update calls -
2646 use get_selected_frame, pass "enum print_what" for source, do not
2647 call frame_relative_level.
2648 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2649 * remote-rdp.c (remote_rdp_open): Ditto.
2650 * remote-mips.c (common_open): Ditto.
2651 * remote-e7000.c (e7000_start_remote): Ditto.
2652 * ocd.c (ocd_start_remote): Ditto.
2653 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2654 * infrun.c (normal_stop): Ditto.
2655 * inflow.c (kill_command): Ditto.
2656 * infcmd.c (finish_command): Ditto.
2657 * corelow.c (core_open): Ditto.
2658 * tracepoint.c (finish_tfind_command): Ditto.
2659 * thread.c (info_threads_command, info_threads_command)
2660 (restore_current_thread, do_captured_thread_select): Ditto.
2661 * ada-tasks.c (task_command): Ditto.
2662
2663 2004-04-26 Orjan Friberg <orjanf@axis.com>
2664
2665 * frame.c: Include "observer.h".
2666 (frame_observer_target_changed): New function.
2667 (_initialize_frame): Attach target_changed observer.
2668 * regcache.c: Include "observer.h".
2669 (regcache_observer_target_changed): New function.
2670 (_initialize_regcache): Attach target_changed observer.
2671 * valops.c: Include "observer.h".
2672 (value_assign): Notify target_changed event when modifying register.
2673 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2674
2675 2004-04-26 Orjan Friberg <orjanf@axis.com>
2676
2677 From Paul Koning <pkoning@equallogic.com>:
2678 * breakpoint.c (free_valchain): New function.
2679 (insert_bp_location, delete_breakpoint): Use free_valchain.
2680 (remove_breakpoint): Do not remove the valchain.
2681 (bpstat_stop_status): If not stopped by watchpoint, skip
2682 watchpoints when generating stop status list.
2683 * infrun.c (handle_inferior_event): Make
2684 stepped_after_stopped_by_watchpoint a global variable.
2685 * remote.c (remote_stopped_data_address): Return watch data
2686 address rather than zero if stepped_after_stopped_by_watchpoint is
2687 set.
2688
2689 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2690
2691 Fix PR gdb/1626.
2692 * configure.in: Check for curses after termcap.
2693 On osf5.*, do not check for ncurses.
2694 * configure: Regenerate.
2695
2696 2004-04-25 Mark Kettenis <kettenis@gnu.org>
2697
2698 * ppcobsd-nat.c: Include "ppc-tdep.h".
2699 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2700
2701 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2702 Fixes PR tdep/1623 and PR tdep/1624.
2703
2704 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2705
2706 * xmodem.h, xmodem.c: Remove files.
2707 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2708
2709 2004-04-23 Randolph Chung <tausq@debian.org>
2710
2711 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2712 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2713 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2714 for handling stackless frames.
2715 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2716
2717 2004-04-23 Randolph Chung <tausq@debian.org>
2718
2719 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2720 starts at a pc before the frame is created.
2721
2722 2004-04-23 Joel Brobecker <brobecker@gnat.com>
2723
2724 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2725
2726 2004-04-23 Jerome Guitton <guitton@gnat.fr>
2727
2728 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2729 use convert_typed_floating to get the appropriate format.
2730
2731 2004-04-22 Randolph Chung <tausq@debian.org>
2732
2733 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2734 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2735 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2736 (hppa_sign_extend): Add prototype.
2737 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2738 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2739 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2740 hppa targets will also use these functions.
2741 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2742 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2743 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2744 (hppa_gdbarch_init): Remove gdbarch setting of
2745 skip_trampoline_code, in_solib_call_trampoline and
2746 in_solib_return_trampoline.
2747 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2748 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2749 hppa_in_solib_call_trampoline.
2750 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2751 Moved from hppa-tdep.c.
2752 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2753 in_solib_call_trampoline and in_solib_return_trampoline.
2754
2755 2004-04-22 Randolph Chung <tausq@debian.org>
2756
2757 * hppa-tdep.c (hppa_debug): New variable.
2758 (find_unwind_entry, hppa_frame_cache): Add debug output.
2759 (_initialize_hppa_tdep): Add command to set debug flag.
2760
2761 2004-04-22 Andrew Cagney <cagney@redhat.com>
2762
2763 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2764 "trad-frame.h".
2765 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2766 signal trampoline unwinder.
2767 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2768
2769 2004-04-22 Mark Kettenis <kettenis@gnu.org>
2770
2771 Add OpenBSD/powerpc support.
2772 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2773 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2774 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2775 (ppc_collect_fpregset): New prototypes.
2776 * ppcobsd-nat.c: New file.
2777 * ppcobsd-tdep.c: New file.
2778 * ppcobsd-tdep.h: New file.
2779 * rs6000-tdep.c: Include "regset.h".
2780 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2781 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2782 New functions.
2783 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2784 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2785 (rs6000-tdep.o): Update dependencies.
2786 * configure.host: Add powerpc-*-openbsd.
2787 * configure.tgt: Add powerpc-*-openbsd.
2788 * config/powerpc/obsd.mh: New file.
2789 * config/powerpc/nm-obsd.h: New file.
2790 * config/powerpc/obsd.mt: New file.
2791
2792 2004-04-22 Andrew Cagney <cagney@redhat.com>
2793
2794 * frame.h (show_frame_info): Delete declaration.
2795
2796 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2797 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2798 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2799 * frv-tdep.c (frv_frame_this_id): Ditto.
2800 * avr-tdep.c (avr_frame_this_id): Ditto.
2801
2802 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
2803
2804 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2805
2806 2004-04-22 Jim Blandy <jimb@redhat.com>
2807
2808 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2809 register number zero.
2810
2811 2004-04-21 Michael Snyder <msnyder@redhat.com>
2812
2813 * mips-tdep.c (heuristic_proc_start):
2814 Warning() already prefixes "Warning: ".
2815
2816 2004-04-21 Andrew Cagney <cagney@redhat.com>
2817
2818 * annotate.h (deprecated_annotate_starting_hook)
2819 (deprecated_annotate_stopped_hook)
2820 (deprecated_annotate_exited_hook)
2821 (deprecated_annotate_signal_hook)
2822 (deprecated_annotate_signalled_hook): Deprecate.
2823 * tracepoint.h (deprecated_create_tracepoint_hook)
2824 (deprecated_delete_tracepoint_hook)
2825 (deprecated_modify_tracepoint_hook)
2826 (deprecated_trace_find_hook)
2827 (deprecated_trace_start_stop_hook): Deprecate.
2828 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2829 * remote.h (deprecated_target_resume_hook)
2830 (deprecated_target_wait_loop_hook): Deprecate.
2831 * gdbcore.h (deprecated_exec_file_display_hook)
2832 (deprecated_file_changed_hook): Deprecate.
2833 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2834 * defs.h (deprecated_modify_breakpoint_hook)
2835 (deprecated_command_loop_hook, deprecated_show_load_progress)
2836 (deprecated_print_frame_info_listing_hook)
2837 (deprecated_query_hook, deprecated_warning_hook)
2838 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2839 (deprecated_delete_breakpoint_hook)
2840 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2841 (deprecated_readline_begin_hook, deprecated_readline_hook)
2842 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2843 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2844 (deprecated_context_hook, deprecated_target_wait_hook)
2845 (deprecated_attach_hook, deprecated_detach_hook)
2846 (deprecated_call_command_hook, deprecated_set_hook)
2847 (deprecated_error_hook, deprecated_error_begin_hook)
2848 (deprecated_ui_load_progress_hook): Deprecate.
2849 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2850 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2851 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2852 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2853 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2854 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2855 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2856 * annotate.c, aix-thread.c: Update.
2857
2858 2004-04-21 Andrew Cagney <cagney@redhat.com>
2859
2860 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2861 * vaxnbsd-tdep.c: Include "gdb_string.h".
2862
2863 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2864 (add_symbol_file_from_memory_command): #if 0 function body, call
2865 error instead.
2866
2867 2004-04-21 Andrew Cagney <cagney@redhat.com>
2868
2869 * gdbcore.h: Update copyright.
2870 (deprecated_add_core_fns): Rename add_core_fns.
2871 * win32-nat.c (_initialize_core_win32): Update.
2872 * sun3-nat.c (_initialize_core_sun3): Update.
2873 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2874 * rs6000-nat.c (_initialize_core_rs6000): Update.
2875 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2876 * nto-tdep.c (_initialize_nto_tdep): Update.
2877 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2878 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2879 * mips-nat.c (_initialize_core_mips): Update.
2880 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2881 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2882 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2883 * lynx-nat.c (_initialize_core_lynx): Update.
2884 * irix5-nat.c (_initialize_core_irix5): Update.
2885 * i386-interix-nat.c (_initialize_core_interix): Update.
2886 * cris-tdep.c (_initialize_cris_tdep): Update.
2887 * corelow.c (deprecated_add_core_fns): Update.
2888 * core-regset.c (_initialize_core_regset): Update.
2889 * core-aout.c (_initialize_core_aout): Update.
2890 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2891 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2892 * alpha-nat.c (_initialize_core_alpha): Update.
2893
2894 2004-04-21 Jim Blandy <jimb@redhat.com>
2895
2896 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2897
2898 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
2899
2900 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2901 Delete.
2902 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2903 (read_attribute_value): Update calls to dwarf_alloc_block.
2904 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2905 dwarf2_tmp_obstack.
2906 (psymtab_to_symtab_1): Likewise. Clean up using
2907 free_stack_comp_unit.
2908 (add_to_cu_func_list): Use the comp_unit_obstack.
2909
2910 2004-04-19 Joel Brobecker <brobecker@gnat.com>
2911
2912 * dwarf2read.c (dwarf2_flag_true_p): New function.
2913 (die_is_declaration): Use the function above. Add some comments.
2914
2915 2004-04-19 Mark Kettenis <kettenis@gnu.org>
2916
2917 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2918 architecture when registering sparcnbsd_core_osabi_sniffer.
2919 Adjust comment.
2920
2921 2004-04-18 Mark Kettenis <kettenis@gnu.org>
2922
2923 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2924 return value.
2925
2926 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2927 * i386-tdep.c: Correct register numbering scheme comments
2928 throughout.
2929 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2930 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2931 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2932 (i386_gdb_arch_init): Likewise.
2933
2934 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2935 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2936 ppcnbsd-tdep.o.
2937
2938 * m68k-tdep.h: Tweak comments.
2939 * m68k-tdep.c: Tweak comment.
2940
2941 2004-04-17 Randolph Chung <tausq@debian.org>
2942
2943 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2944 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2945 (hppa_hpux_som_init_abi): Set is_elf to 0.
2946 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2947 * hppa-tdep.c (low_text_segment_address): Remove global.
2948 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2949 section offset to calculate segment address.
2950 (internalize_unwinds): Define low_text_segment_address as local and
2951 pass to record_text_segment_lowaddr for ELF targets.
2952 (hppa_gdbarch_init): Zero fill tdep structure.
2953 (hppa_dump_tdep): Print tdep structure.
2954 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2955
2956 2004-04-17 Randolph Chung <tausq@debian.org>
2957
2958 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2959 (hppa_gdbarch_init): Set pseudo_register_read.
2960 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2961 * regcache.c (supply_register): Remove check for
2962 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2963
2964 2004-04-17 Randolph Chung <tausq@debian.org>
2965
2966 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2967 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2968 (hpread_adjust_stack_address): Move to hpread.c.
2969 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2970 obj_private_struct): Move from tm-hppa.h.
2971 * hpread.c (hppa-tdep.h): Include.
2972 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2973 (hpread_read_function_type, hpread_read_doc_function_type)
2974 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2975 directly.
2976 * pa64solib.c (hppa-tdep.h): Include.
2977 * somsolib.c (hppa-tdep.h): Include.
2978 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2979 inferior_status): Remove unused forward declarations.
2980 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2981 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2982 obj_private_struct): Move to hppa-tdep.h.
2983 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2984
2985 2004-04-17 Randolph Chung <tausq@debian.org>
2986
2987 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2988 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2989 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2990 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2991 Remove forward declaration and make static.
2992 (hppa_reg_struct_has_addr): Remove.
2993
2994 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2995
2996 * observer.sh: Move comments in sed command to first column.
2997
2998 2004-04-16 Jason Molenda (jmolenda@apple.com)
2999
3000 * frame.c: Minor typeo corrections in comments.
3001
3002 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3003
3004 * observer.c (observer_test_first_notification_function): Update
3005 function profile.
3006 (observer_test_second_notification_function): Likewise.
3007 (observer_test_third_notification_function): Likewise.
3008
3009 2004-04-16 Mark Kettenis <kettenis@gnu.org>
3010
3011 From Brian Ford <ford@vss.fsi.com>:
3012 * i386-tdep.c (i386_coff_init_abi): New function.
3013 * i386-tdep.h (i386_coff_init_abi): New prototype.
3014 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
3015 register number translation functions for DWARF and DWARF 2.
3016
3017 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3018
3019 * dwarf2read.c: Back out my previous change, it was incorrect.
3020
3021 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
3022
3023 * dwarf2read.c: Include "hashtab.h".
3024 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
3025 has_namespace_info.
3026 (struct partial_die_info): Add comments. Use bitfields to reduce
3027 memory footprint. Add scope, scope_set, has_specification,
3028 spec_offset, die_parent, die_child, and die_sibling.
3029 (peek_die_abbrev): Add prototype.
3030 (partial_read_comp_unit_head): New function, broken out from
3031 dwarf2_build_psymtabs_hard.
3032 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
3033 Use partial_read_comp_unit_head. Initialize the CU and
3034 comp_unit_obstack. Update calls to read_partial_die and
3035 scan_partial_symbols. Use free_stack_comp_unit and
3036 load_partial_dies.
3037 (scan_partial_symbols): Change PDI to a pointer. Use the child and
3038 sibling pointers to walk partial DIEs. Call fixup_partial_die.
3039 Update calls to helper functions. Remove NAMESPACE argument.
3040 Update comments.
3041 (partial_die_parent_scope, partial_die_full_name): New functions.
3042 (add_partial_symbol): Remove namespace argument. Update call to
3043 pdi_needs_namespace. Use partial_die_full_name. Handle
3044 DW_TAG_namespace. Check has_namespace_info flag.
3045 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
3046 tag. Handle namespaces.
3047 (add_partial_namespace, add_partial_enumeration): Simplify.
3048 (guess_structure_name): New function, derived from
3049 add_partial_structure.
3050 (add_partial_structure): Remove.
3051 (determine_class_name): Update comment.
3052 (dwarf2_read_abbrevs): Set has_namespace_info flag.
3053 (is_type_tag_for_partial, load_partial_dies): New functions.
3054 (read_partial_die): Pass abbrev and abbrev_len as arguments.
3055 Record specifications instead of following them immediately.
3056 (find_partial_die_in_comp_unit, find_partial_die)
3057 (fixup_partial_die, free_stack_comp_unit)
3058 (hashtab_obstack_allocate, dummy_obstack_deallocate)
3059 (partial_die_hash, partial_die_eq): New functions.
3060 * Makefile.in (hashtab_h): Define.
3061 (dwarf2read.o): Update dependencies.
3062 (observer_inc, observer_h): Move to the correct section.
3063
3064 2004-04-15 Joel Brobecker <brobecker@gnat.com>
3065
3066 * dwarf2read.c (dwarf2_attribute_true_p): New function.
3067 (die_is_declaration): Use the function above. Add comment.
3068
3069 2004-04-15 Joel Brobecker <brobecker@gnat.com>
3070
3071 * dwarf2read.c (read_structure_scope): Identify stub types
3072 using die_is_declaration() only.
3073
3074 2004-04-15 Roland McGrath <roland@redhat.com>
3075
3076 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
3077 argument instead of NAME.
3078 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
3079 in call to symbol_file_add_with_addrs_or_offsets.
3080 (build_addr_info): New function, helper for ...
3081 (symbol_file_add_from_memory): New function.
3082 (add_symbol_file_from_memory_command): New function using that.
3083 (_initialize_symfile): Register it for add-symbol-file-from-memory.
3084 (pre_add_symbol_hook): Add const to argument type.
3085 * symfile.h (symbol_file_add_from_memory): Declare it.
3086
3087 2004-04-15 Mark Kettenis <kettenis@gnu.org>
3088
3089 * NEWS (New native configurations): Mention OpenBSD/vax.
3090 * configure.host: Add vax-*-openbsd*.
3091 * config/vax/obsd.mh: New file.
3092 * config/vax/nm-obsd.h: New file.
3093
3094 * vax-tdep.c: Include "regset.h".
3095 (vax_supply_gregset): New function.
3096 (vax_gregset): New variable.
3097 (vax_regset_from_core_section): New function.
3098 (vax_gdbarch_init): Set regset_from_core_section.
3099 * Makefile.in (vax-tdep.o): Update dependencies.
3100
3101 2004-04-15 Andrew Cagney <cagney@redhat.com>
3102
3103 * observer.c (normal_stop_subject, observer_notify_normal_stop)
3104 (observer_normal_stop_notification_stub)
3105 (observer_attach_normal_stop, observer_detach_normal_stop):
3106 Delete, replaced by #include "observer.inc".
3107 * infrun.c (normal_stop): Pass "stop_bpstat" to
3108 observer_notify_normal_stop.
3109 * Makefile.in (observer_inc): Define.
3110 (observer.o): Update dependencies.
3111 (observer.h, observer.inc): New rules.
3112 * observer.h: Delete file.
3113 * observer.sh: New file.
3114
3115 2004-04-15 Mark Kettenis <kettenis@gnu.org>
3116
3117 * vax-tdep.c (vax_frame_cache): Fix typo.
3118
3119 2004-04-14 Mark Kettenis <kettenis@gnu.org>
3120
3121 * NEWS (New native configurations): Mention NetBSD/vax.
3122 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
3123 * config/vax/nbsdelf.mh: New file.
3124 * config/vax/nbsdaout.mh: New file.
3125 * config/vax/nm-nbsd.h: New file.
3126 * config/vax/nm-nbsdaout.h: New file.
3127
3128 * vaxnbsd-tdep.c: New file.
3129 * Makefile.in (vaxnbsd-tdep.o): New dependency.
3130 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
3131 * config/vax/nbsd.mt: New file.
3132 * config/vax/tm-nbsd.h: New file.
3133
3134 * Makefile.in (vaxbsd-nat.o): New dependency.
3135
3136 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
3137 * vax-tdep.c (vax_store_arguments): Remove struct_return and
3138 struct_addr arguments. Don't push return value address.
3139 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
3140 arguments to vax_store_arguments. Store return value address in
3141 R1.
3142 (vax_store_struct_return, vax_extract_return_value)
3143 (vax_store_return_value): Remove functions.
3144 (vax_return_value): New function.
3145 (vax_gdbarch_init): Set return value. Don't set
3146 deprecated_store_struct_return, deprecated_extract_struct_return
3147 and deprecated_store_return_value.
3148
3149 2004-04-14 Andreas Schwab <schwab@suse.de>
3150
3151 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
3152 value buffer.
3153 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
3154
3155 2004-04-14 Mark Kettenis <kettenis@gnu.org>
3156
3157 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
3158 (vax_unwind_dummy_id): New functions.
3159 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
3160 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
3161 variables.
3162 (vax_fix_call_dummy): Remove function.
3163 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
3164 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
3165 call_dummy_location, deprecated_call_dummy_words,
3166 deprecated_sizeof_call_dummy_words,
3167 deprecated_call_dummy_breakpoint_offset,
3168 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
3169 and deprecated_dummy_write_sp.
3170
3171 2004-04-13 David Carlton <carlton@kealia.com>
3172
3173 * MAINTAINERS: Move myself to "paper trail" section.
3174
3175 2004-04-12 Mark Kettenis <kettenis@gnu.org>
3176
3177 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
3178 "trad-frame.h".
3179 (vax_frame_init_saved_regs): Remove function.
3180 (vax_sigtramp_saved_pc): Remove function.
3181 (vax_frame_saved_pc): Remove function.
3182 (vax_frame_args_address): Remove function.
3183 (vax_frame_num_args): Rewrite.
3184 (vax_frame_chain): Remove function.
3185 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
3186 VAX_FP_REGNUM.
3187 (vax_pop_frame): Likewise.
3188 (vax_saved_pc_after_call): Remove function.
3189 (struct vax_frame_cache): New structure.
3190 (vax_frame_cache): New function.
3191 (vax_frame_this_id): New function.
3192 (vax_frame_prev_register): New function.
3193 (vax_frame_unwind): New variable.
3194 (vax_frame_sniffer): New function.
3195 (vax_frame_base_address): New function.
3196 (vax_frame_args_address): New function.
3197 (vax_frame_base): New variable.
3198 (vax_unwind_pc): New function.
3199 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
3200 deprecated_fp_regnum, deprecated_saved_pc_after_call,
3201 deprecated_frame_chain, deprecated_frame_saved_pc,
3202 deprecated_frame_args_address and
3203 deprecated_frame_init_saved_regs.
3204 * Makefile.in (vax-tdep.o): Update dependencies.
3205
3206 * vaxbsd-nat.c: New file.
3207
3208 * vax-tdep.h: Update copyright year. Adjust comments.
3209 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
3210 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
3211 (vax_regnum): New enum. Replacing...
3212 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
3213 (VAX_PS_REGNUM): ... these removed macros.
3214 * vax-tdep.c (vax_register_name): Remove prototype.
3215 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
3216 (vax_register_byte, vax_register_raw_size,
3217 vax_register_virtual_size, vax_register_virtual_type): Remove
3218 functions.
3219 (vax_register_type): New function.
3220 (vax_breakpoint_from_pc): Reorganize.
3221 (vax_gdbarch_init): Set register_type. Don't set
3222 deprecated_register_size, deprecated_register_bytes,
3223 deprecated_register_byte, deprecated_register_raw_size,
3224 deprecated_max_register_raw_size,
3225 deprecated_register_virtual_size,
3226 deprecated_max_register_virtual_size and
3227 deprecated_register_virtual_type. Add comment on stack direction.
3228
3229 2004-04-11 Mark Kettenis <kettenis@gnu.org>
3230
3231 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
3232 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
3233 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
3234
3235 2004-04-10 Randolph Chung <tausq@debian.org>
3236
3237 * MAINTAINERS (write after approval): Add myself.
3238
3239 2004-04-07 Randolph Chung <tausq@debian.org>
3240
3241 * hppa-tdep.c (hppa_inner_than): Remove.
3242 (is_pa_2): Remove unused static variable.
3243 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
3244
3245 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
3246
3247 * language.h (language_defn): Add new la_post_parser field.
3248 * parser-defs.h (null_post_parser): New declaration (default for
3249 la_post_parser).
3250
3251 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
3252 insert call to that function.
3253 (parse_exp_in_context): New function, including code formerly in
3254 parse_exp_1. Calls language-dependent post-parser after
3255 prefixification.
3256 (parse_expression_in_context): New exported function.
3257 (null_post_parser): New definition.
3258 * expression.h (parse_expression_in_context): Add declaration.
3259
3260 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3261 * c-lang.c (c_language_defn): Ditto.
3262 (cplus_language_defn): Ditto.
3263 (asm_language_defn): Ditto.
3264 (minimal_language_defn): Ditto.
3265 * f-lang.c (f_language_defn): Ditto.
3266 * jv-lang.c (java_language_defn): Ditto.
3267 * language.c (unknown_language_defn): Ditto.
3268 (auto_language_defn): Ditto.
3269 (local_language_defn): Ditto.
3270 * m2-lang.c (m2_language_defn): Ditto.
3271 * scm-lang.c (scm_language_defn): Ditto.
3272 * obj-lang.c (objc_language_defn): Ditto.
3273
3274 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3275
3276 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3277 (amd64nbsd_mcontext_addr): New function.
3278 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3279 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3280 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3281
3282 * corelow.c (core_xfer_partial): Fix coding standards violation.
3283 Add support for TARGET_OBJECT_WCOOKIE.
3284
3285 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3286 deprecated_pc_in_sigtramp.
3287 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3288 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3289 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3290 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3291 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3292 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3293 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3294
3295 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3296 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3297 Fix typo.
3298
3299 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3300 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3301 (amd64_collect_fxsave): Likewise.
3302
3303 * i386-sol2-tdep.c: Include "gdb_string.h".
3304 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3305 name.
3306 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3307
3308 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3309
3310 * i386-sol2-tdep.c: Include "solib-svr4.h".
3311 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3312 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3313 * config/i386/tm-i386sol2.h: Include :solib.h".
3314 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3315 solib-svr4.o and solib-legacy.o.
3316 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3317 solib-svr4.o.
3318
3319 2004-04-09 Mark Kettenis <kettenis@gnu.org>
3320
3321 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3322 whether a register is supplied by PTRACE_GETFPREGS.
3323 (store_inferior_registers): Likewise.
3324 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3325 whether a register is supplied by PT_GETFPREGS.
3326 (store_inferior_registers): Likewise.
3327
3328 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3329 * config/i386/linux64.mt (TDEPFILES): Likewise.
3330
3331 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3332
3333 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3334 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3335 the program counter is in the range specified by `struct
3336 gdbarch_tdep'.
3337 * amd64-linux-tdep.c: Include "symtab.h".
3338 (amd64_linux_pc_in_sigtramp): Remove function.
3339 (amd64_linux_sigtramp_p): New function.
3340 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3341 deprecated_pc_in_sigtramp.
3342 * amd64nbsd-tdep.c: Include "symtab.h".
3343 (amd64nbsd_sigtramp_p): New function.
3344 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3345 deprecated_pc_in_sigtramp.
3346 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3347 few comments.
3348 (amd64obsd_pc_in_sigtramp): Remove function.
3349 (amd64obsd_sigtramp_p): New function.
3350 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3351 deprecated_pc_in_sigtramp.
3352 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3353 (i386bsd_pc_ins_sigtramp): Remove prototype.
3354 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3355 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3356 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3357 the program counter is in the range specified by `struct
3358 gdbarch_tdep'.
3359 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3360 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3361 (i386_go32_pc_in_sigtramp): Remove function.
3362 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3363 Initialize TDEP->sigtramp_p.
3364 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3365 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3366 deprecated_pc_in_sigtramp.
3367 * i386-linux-tdep.c: Adjust comments.
3368 (i386_linux_pc_in_sigtramp): Remove function.
3369 (i386_linux_sigtramp_p): New function.
3370 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3371 deprecated_pc_in_sigtramp.
3372 * i386-nto-tdep.c: Update copyright year.
3373 (i386nto_pc_in_sigtramp): Remove function.
3374 (i386nto_sigtramp_p): New function.
3375 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3376 SP_REGNUM.
3377 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3378 deprecated_pc_in_sigtramp.
3379 * i386-sol2-tdep.c: Update copyright year.
3380 (i386_sol2_pc_in_sigtramp): Remove function.
3381 (i386_sol2_sigtramp_p): New function.
3382 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3383 deprecated_pc_in_sigtramp.
3384 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3385 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3386 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3387 deprecated_sigtramp_start and deprecated_sigtramp_end.
3388 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3389 (i386nbsd_pc_in_sigtramp): Remove function.
3390 (i386nbsd_sigtramp_p): New function.
3391 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3392 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3393 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3394 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3395 (i386obsd_pc_in_sigtramp): Remove function.
3396 (i386obsd_sigtramp_p): New function.
3397 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3398 functions.
3399 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3400 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3401 TDEP->sigtramp_p.
3402 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3403 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3404 dependencies.
3405
3406 * config/i386/i386aout.mt: Remove file.
3407
3408 * configure.tgt: Remove i[34567]86-*-go32*,
3409 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3410 and i[34567]86-*-isc*. Set gdb_target to i386 for
3411 i[34567]86-*-netware* and i[34567]86-*-*.
3412 * config/i386/i386.mt: New file.
3413 * config/i386/embed.mt: Remove file.
3414 * config/i386/go32.mt: Remove file.
3415 * config/i386/i386nw.mt: Remove file.
3416 * config/i386/i386v.mt: Remove file.
3417 * config/i386/tm-go32.h: Remove file.
3418
3419 * tui/tui-hooks.c: Include "readline/readline.h" after
3420 "gdb_curses.h" instead of before.
3421 * tui/tui-io.c: Likewise.
3422
3423 * tui/tui.c: Fix typo in comment.
3424
3425 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3426
3427 2004-04-08 Andrew Cagney <cagney@redhat.com>
3428
3429 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3430 (deprecated_exception_support_initialized): Declare.
3431 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
3432 (initialize_hp_cxx_exception_support)
3433 (child_enable_exception_callback): Update.
3434 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3435 (deprecated_exception_support_initialized): Rename
3436 deprecated_exception_catchpoints_are_fragile and
3437 deprecated_exception_support_initialized.
3438 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3439
3440 * symtab.c (deprecated_hp_som_som_object_present): Rename
3441 hp_som_som_object_present.
3442 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3443 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3444 Update. Delete extern declaration.
3445 * valops.c (hp_som_som_object_present): Ditto.
3446 * parse.c (deprecated_hp_som_som_object_present)
3447 (parse_nested_classes_for_hpacc): Ditto.
3448 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
3449 * hppa-hpux-tdep.c (hp_som_som_object_present)
3450 (initialize_hp_cxx_exception_support): Ditto.
3451 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
3452 * cp-valprint.c (hp_som_som_object_present)
3453 (cp_print_class_method): Ditto.
3454 * c-typeprint.c (hp_som_som_object_present):
3455 (c_type_print_base): Ditto.
3456 * c-exp.y (hp_som_som_object_present): Ditto.
3457
3458 2004-04-08 Andrew Cagney <cagney@redhat.com>
3459
3460 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3461 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3462 (frame_unwind_find_by_frame): Re-implement the unwind code so
3463 that it can both prepend and append sniffers. Replace
3464 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3465 * tramp-frame.c (tramp_frame_append): Use
3466 frame_unwind_prepend_unwinder.
3467 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3468 frame_unwind_register_unwinder.
3469 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3470 tramp_frame_append.
3471 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
3472 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
3473 (mips_linux_init_abi): Update.
3474
3475 2004-04-08 Kevin Buettner <kevinb@redhat.com>
3476
3477 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3478 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3479 file support.
3480
3481 2004-04-07 Kevin Buettner <kevinb@redhat.com>
3482
3483 * ia64-tdep.c (elf.h): Don't include.
3484 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3485
3486 2004-04-07 Jason Molenda (jmolenda@apple.com)
3487
3488 * frame.h: Typeo corrections in comments.
3489
3490 2004-04-07 Jim Blandy <jimb@redhat.com>
3491
3492 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3493 %esp and %ebp
3494
3495 2004-04-07 Mark Kettenis <kettenis@gnu.org>
3496
3497 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3498 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3499 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3500 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3501 and solib-legacy.o.
3502 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3503 solib-svr4.o.
3504 * config/sparc/tm-sol2.h: Update copyright year. Include
3505 "solib.h".
3506
3507 * sparc-sol2-tdep.c: Update copyright year. Include
3508 "solib-svr4.h".
3509 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3510 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3511 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3512 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
3513 dependencies.
3514
3515 2004-04-06 Andrew Cagney <cagney@redhat.com>
3516
3517 * infttrace.c: Include "infttrace.h".
3518 * infttrace.h: Include "target.h".
3519 * Makefile.in (infttrace_h): Update.
3520 (infttrace.o): Update.
3521
3522 2004-04-06 Andrew Cagney <cagney@redhat.com>
3523
3524 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3525 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3526 move extern declarations from here ...
3527 * infttrace.h: ... to here.
3528 * Makefile.in (hppah-nat.o): Update dependencies.
3529
3530 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3531 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
3532 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
3533 (hppa_breakpoint_from_pc): Delete.
3534
3535 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3536
3537 2004-04-05 Andrew Cagney <cagney@redhat.com>
3538
3539 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3540 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3541 <sys/file.h>.
3542
3543 2004-04-06 Randolph Chung <tausq@debian.org>
3544
3545 Committed by Andrew Cagney (mechanical change).
3546 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3547 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3548 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3549 child_enable_exception_callback, current_ex_event,
3550 null_symtab_and_line, child_get_current_exception_event,
3551 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3552 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3553 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3554 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3555 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3556 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3557 Move hpux-specific definitions ...
3558 * hppa-hpux-tdep.c: ... to here.
3559
3560 2004-04-05 Andrew Cagney <cagney@redhat.com>
3561
3562 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3563 skip_prologue_using_sal.
3564
3565 2004-04-05 Andrew Cagney <cagney@redhat.com>
3566
3567 * config/i386/tm-i386.h: Delete file.
3568 * config/i386/tm-vxworks.h: Update copyright, do not include
3569 "tm-i386.h".
3570 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3571 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3572 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3573 * config/i386/ncr3000.mt (TM_FILE): Delete.
3574 * config/i386/interix.mt (TM_FILE): Delete.
3575 * config/i386/i386v.mt (TM_FILE): Delete.
3576 * config/i386/i386nw.mt (TM_FILE): Delete.
3577 * config/i386/i386gnu.mt (TM_FILE): Delete.
3578 * config/i386/i386aout.mt (TM_FILE): Delete.
3579 * config/i386/embed.mt (TM_FILE): Delete.
3580
3581 2004-04-05 Kevin Buettner <kevinb@redhat.com>
3582
3583 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3584 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3585 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3586 (accg7_regnum): New constants.
3587 (last_spr_regnum, last_pseudo_regnum): Update.
3588 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3589 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
3590 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3591 for accg registers.
3592 (frv_register_sim_regno): Update spr_map[].
3593
3594 2004-04-04 Andrew Cagney <cagney@redhat.com>
3595
3596 * config/mips/xm-riscos.h: Delete.
3597 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3598 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3599 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3600 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3601 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3602 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3603 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3604 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3605 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3606 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3607 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3608 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3609 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3610 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3611 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3612 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3613 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3614 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3615 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3616 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3617 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3618 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3619 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3620 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3621 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3622 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
3623
3624 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3625 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3626 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3627 * configure.host: Remove m680[01]0-sun-sunos3*,
3628 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3629 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3630 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3631 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3632 mips-*-riscos*.
3633 * NEWS: Mention removed systems.
3634
3635 2004-04-04 Andrew Cagney <cagney@redhat.com>
3636
3637 GDB 6.1 release created from 6.1 branch.
3638
3639 2004-04-04 Andrew Cagney <cagney@redhat.com>
3640
3641 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3642 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3643 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3644
3645 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3646 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3647 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3648
3649 2004-04-03 Jim Blandy <jimb@redhat.com>
3650
3651 * MAINTAINERS: Chris Faylor has changed employers; add him to
3652 "paper trail" section, and update his E-mail address.
3653
3654 2004-04-03 Andrew Cagney <cagney@redhat.com>
3655
3656 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3657 generic dummy frames.
3658 * dummy-frame.c: Update copyright.
3659 (dummy_frame_sniffer): Delete check for generic dummy frames.
3660
3661 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
3662 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
3663 (REG_PARM_STACK_SPACE): Delete.
3664 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3665 Inline reference to REG_PARM_STACK_SPACE.
3666
3667 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3668 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3669 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3670 (FRAME_BASE_BEFORE_SIGTRAMP)
3671 (hppa32_hpux_frame_base_before_sigtramp)
3672 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3673 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3674 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3675 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3676 (FRAME_BASE_BEFORE_SIGTRAMP)
3677 (hppa64_hpux_frame_base_before_sigtramp)
3678 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3679
3680 2004-04-03 Andrew Cagney <cagney@redhat.com>
3681
3682 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3683
3684 2004-04-02 Andrew Cagney <cagney@redhat.com>
3685
3686 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3687 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3688 * dummy-frame.h: Delete out-of-date comments.
3689 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3690 * gdbarch.h, gdbarch.c: Re-generate.
3691
3692 2004-04-02 Joel Brobecker <brobecker@gnat.com>
3693
3694 Committed by Andrew Cagney <cagney@redhat.com>.
3695 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3696 into account an instruction saving a register if we have already
3697 seen an earlier instruction saving that same register.
3698
3699 2004-04-02 Andrew Cagney <cagney@redhat.com>
3700
3701 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3702 * gdbarch.h, gdbarch.c: Re-generate.
3703 * frame.c (legacy_get_prev_frame): Delete references to
3704 DEPRECATED_INIT_FRAME_PC_FIRST.
3705
3706 * infrun.c (pc_in_sigtramp): Delete function.
3707 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3708 get_frame_type.
3709
3710 2004-04-02 Andrew Cagney <cagney@redhat.com>
3711
3712 * infrun.c (handle_step_into_function): Delete code conditional on
3713 legacy_frame_p.
3714 (handle_inferior_event, step_over_function): Ditto.
3715
3716 2004-04-02 Andrew Cagney <cagney@redhat.com>
3717
3718 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3719 "previous frame inner to this frame" test.
3720
3721 2004-04-02 Andrew Cagney <cagney@redhat.com>
3722
3723 * frame.c (safe_frame_unwind_memory): New function.
3724 * frame.h (safe_frame_unwind_memory): Declare. Update description
3725 of /safe_/ methods.
3726 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3727 "next_frame". Use safe_frame_unwind_memory.
3728 (tramp_frame_sniffer): Update call to tramp_frame_start.
3729
3730 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * dwarf2read.c (dwarf2_objfile_data_key): New.
3733 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3734 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3735 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3736 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3737 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3738 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3739 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3740 Remove variables.
3741 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3742 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3743 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3744 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3745 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3746 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3747 Remove macros.
3748 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3749 data.
3750 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3751 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3752 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3753 (read_partial_die, read_full_die, read_indirect_string)
3754 (dwarf_decode_line_header, dwarf_decode_macros)
3755 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3756 Update uses of removed variables.
3757 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3758 of removed macros.
3759 (_initialize_dwarf2_read): New function.
3760 * symfile.h (dwarf2_has_info): Update prototype.
3761 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3762 * elfread.c (elf_symfile_read): Likewise.
3763
3764 2004-04-01 Jim Blandy <jimb@redhat.com>
3765
3766 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3767 function for register numbers on all the rs6000-derived targets.
3768 (rs6000_gdbarch_init): Don't register a separate
3769 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3770 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3771 variants.
3772
3773 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3774 numbering.
3775
3776 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3777
3778 * valarith.c: Update copyright notice.
3779 (value_add): Handle range types.
3780 (value_sub): Ditto.
3781 (value_equal): Ditto.
3782 (value_less): Ditto.
3783 (value_neg): Ditto.
3784 (value_complement): Ditto.
3785 (value_binop): Simplify slightly by using is_integral_type and
3786 eliminiating unnecessary COERCE_ENUMs.
3787
3788 2004-03-31 Andrew Cagney <cagney@redhat.com>
3789
3790 * frame.h (frame_unwind_id): Declare.
3791 * frame.c (frame_unwind_id): New function.
3792 (get_prev_frame_1): New function.
3793 (frame_debug_got_null_frame): New function.
3794 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3795 code proper to prev_frame, update description.
3796 * infrun.c (step_over_function): Use frame_unwind_id.
3797
3798 2004-04-31 J. Brobecker <brobecker@gnat.com>
3799
3800 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3801 (hppa64_push_dummy_call): Likewise.
3802
3803 2004-03-30 Jim Blandy <jimb@redhat.com>
3804
3805 From Ulrich Weigand:
3806 * utils.c (query): Do not use a va_list variable multiple times.
3807
3808 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3809
3810 * Makefile.in (linux_nat_h): Update dependencies.
3811 * configure.in: Check for <gnu/libc-version.h>.
3812 * configure: Regenerate.
3813 * config.in: Regenerate.
3814 * linux-nat.h: Include "target.h". Add waitstatus field to
3815 struct lwp_info.
3816 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3817 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3818 to.
3819 (lin_lwp_handle_extended): New function. Handle clone events.
3820 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3821 thread exit events.
3822 (child_wait): Handle clone events.
3823 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3824 * linux-nat.c (linux_enable_event_reporting): Turn on
3825 PTRACE_O_TRACECLONE.
3826 (linux_handle_extended_wait): Handle clone events.
3827 * thread-db.c: Include <gnu/libc-version.h>.
3828 (struct private_thread_info): Add dying flag.
3829 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3830 higher.
3831 (attach_thread): Update comments. Handle dying threads.
3832 (detach_thread): Set the dying flag.
3833 (check_event): Always call attach_thread.
3834
3835 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3836
3837 * mips-tdep.c (mips_pdr_data): New.
3838 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3839 (_initialize_mips_tdep): Initialize mips_pdr_data.
3840
3841 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
3842
3843 * minsyms.c (install_minimal_symbols): Move dropping leading
3844 char from linkage name from here...
3845 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3846 test for "__gnu_compiled*" symbols.
3847
3848 2004-03-28 Jim Blandy <jimb@redhat.com>
3849
3850 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3851 registers to temp register r0 and byte stores as prologue
3852 instructions.
3853
3854 2004-03-28 Andrew Cagney <cagney@redhat.com>
3855
3856 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3857 arm*-*-*.
3858
3859 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3860
3861 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3862 and switch the layout to force a display of register window.
3863
3864 2004-02-26 J. Brobecker <brobecker@gnat.com>
3865
3866 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3867 of the INTEGER class.
3868
3869 2004-03-26 Jim Blandy <jimb@redhat.com>
3870
3871 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3872 bytes long on PPC GNU/Linux.
3873
3874 2004-03-26 David Carlton <carlton@kealia.com>
3875
3876 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3877
3878 2004-03-25 Andrew Cagney <cagney@redhat.com>
3879
3880 * PROBLEMS: Add general section titles, remove references to
3881 specific releases.
3882
3883 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
3884
3885 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3886 INT_REGISTER_SIZE.
3887 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3888 FP_REGISTER_VIRTUAL_SIZE.
3889 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3890 of DEPRECATED_REGISTER_RAW_SIZE.
3891 (arm_register_type): Add gdbarch argument.
3892 (arm_register_raw_size, arm_register_virtual_size): Delete.
3893 (arm_register_byte, arm_extract_return_value)
3894 (arm_store_return_value, arm_get_longjmp_target): Update references
3895 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3896 (arm_gdbarch_init): Likewise. Don't set
3897 deprecated_register_raw_size, deprecated_register_virtual_size,
3898 deprecated_max_register_raw_size,
3899 deprecated_max_register_virtual_size, or
3900 deprecated_max_register_virtual_type. Do set register_type.
3901 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3902 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3903 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3904 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3905 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3906 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3907 INT_REGISTER_SIZE.
3908 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3909 (remote_rdp_store_register): Likewise.
3910
3911 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3914 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3915 to after osabi initialization.
3916 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3917 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3918 functions.
3919 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3920 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3921 variables.
3922 (mips_linux_init_abi): Append signal trampoline unwinders.
3923
3924 2004-03-24 Andrew Cagney <cagney@redhat.com>
3925
3926 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3927 * tramp-frame.c: Include "gdb_assert.h".
3928 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3929 correct sizeof.
3930 (tramp_frame_append): Validate the tramp frame's instructions.
3931 * Makefile.in (tramp-frame.o): Update dependencies.
3932
3933 2004-03-23 Andrew Cagney <cagney@redhat.com>
3934
3935 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3936
3937 2004-03-23 Andrew Cagney <cagney@redhat.com>
3938
3939 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3940 Nasser as past testsuite/lib/ (and other) maintainers.
3941
3942 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3943
3944 * infcmd.c (attach_command): Reread symbols if we already have
3945 an exec file.
3946
3947 2004-03-23 Andrew Cagney <cagney@redhat.com>
3948
3949 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3950
3951 2004-03-23 Andrew Cagney <cagney@redhat.com>
3952
3953 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3954 * gdbarch.h, gdbarch.c: Re-generate.
3955 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3956 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3957 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3958 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
3959 (DEPRECATED_SIGTRAMP_START): Update.
3960 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
3961 (DEPRECATED_SIGTRAMP_START): Update.
3962 * blockframe.c (find_pc_sect_partial_function): Update.
3963 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3964
3965 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3966
3967 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3968 if necessary.
3969
3970 2004-03-23 Andrew Cagney <cagney@redhat.com>
3971
3972 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3973 predicate, deprecate.
3974 * gdbarch.h, gdbarch.c: Re-generate.
3975 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3976 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3977 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3978 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3979 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3980 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3981 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3982 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3983 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3984 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3985 * blockframe.c (find_pc_partial_function): Update.
3986 * breakpoint.c (bpstat_what): Update.
3987 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3988 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3989 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3990 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3991 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3992 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3993 * i386-nto-tdep.c (i386nto_init_abi): Update.
3994 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3995 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3996 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3997 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3998 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3999 * i386obsd-tdep.c (i386obsd_init_abi): Update.
4000 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
4001 * infrun.c (pc_in_sigtramp): Update.
4002 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
4003 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
4004 * mips-tdep.c (mips_gdbarch_init): Update.
4005 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
4006 * ppc-linux-tdep.c: Update comment.
4007 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
4008 * shnbsd-tdep.c (shnbsd_init_abi): Update.
4009 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
4010 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
4011 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
4012 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
4013 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
4014 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
4015 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
4016 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
4017
4018 2004-03-23 Andrew Cagney <cagney@redhat.com>
4019
4020 * tramp-frame.h, tramp-frame.h: New files.
4021 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
4022 Update rules to include "tramp-frame.h" and "tramp-frame.c".
4023
4024 * Makefile.in: Update all dependencies.
4025
4026 2004-03-23 Andrew Cagney <cagney@redhat.com>
4027
4028 * Makefile.in (trad_frame_h): Add $(frame_h).
4029 * trad-frame.h: Update copyright. Include "frame.h".
4030 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
4031 (trad_frame_set_id, trad_frame_get_id): Declare.
4032 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
4033 * trad-frame.c: Update copyright.
4034 (struct trad_frame_cache): Define.
4035 (trad_frame_cache_zalloc): New function.
4036 (trad_frame_set_id, trad_frame_get_id): New functions.
4037 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
4038
4039 2004-03-22 Andrew Cagney <cagney@redhat.com>
4040
4041 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
4042 s390_pltstub_unwind_cache.
4043 (s390_stub_frame_unwind_cache): Rename
4044 s390_pltstub_frame_unwind_cache.
4045 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
4046 (s390_stub_frame_prev_register): Rename
4047 s390_pltstub_frame_prev_register.
4048 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
4049 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
4050
4051 From Ulrich Weigand:
4052 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
4053 pointer calls like PLT calls.
4054
4055 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
4056
4057 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
4058 PC rather than the partial function start address. Use the start
4059 address to sanity check the found PDR.
4060
4061 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
4062
4063 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
4064 linux_handle_extended_wait.
4065
4066 2004-03-22 Andrew Cagney <cagney@redhat.com>
4067
4068 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
4069 function.
4070
4071 * frame.h (generic_pop_current_frame): Delete declaration.
4072 (deprecate_pop_dummy_frame): Deprecate
4073 generic_pop_dummy_frame.
4074 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
4075 (generic_pop_current_frame): Delete function.
4076 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
4077 generic_pop_current_frame.
4078 * v850-tdep.c (v850_pop_frame): Update.
4079 * mcore-tdep.c (mcore_pop_frame): Update.
4080 * sh64-tdep.c (sh64_pop_frame): Update.
4081 * h8300-tdep.c (h8300_pop_frame): Update.
4082
4083 2004-03-22 Andrew Cagney <cagney@redhat.com>
4084
4085 * frame.h (deprecated_pc_in_call_dummy): Rename
4086 generic_pc_in_call_dummy.
4087 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
4088 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
4089 generic_pc_in_call_dummy.
4090 (pc_in_dummy_frame): Make static.
4091 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
4092 * gdbarch.h, gdbarch.c: Re-generate.
4093 * dummy-frame.c (dummy_frame_sniffer): Simplify.
4094 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
4095 (legacy_get_prev_frame): Ditto.
4096 * inferior.h: Delete reference to generic_pc_in_call_dummy in
4097 comment.
4098
4099 2004-03-21 Andrew Cagney <cagney@redhat.com>
4100
4101 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
4102 declaration and out-of-date comment.
4103 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
4104 Delete function.
4105 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
4106 deprecated_pc_in_call_dummy.
4107
4108 * infrun.c (handle_inferior_event): For non legacy frames, use the
4109 frame ID and frame type to identify a signal trampoline. Update
4110 comments.
4111
4112 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
4113
4114 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
4115 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
4116
4117 2004-03-21 Andrew Cagney <cagney@redhat.com>
4118
4119 * frame-unwind.h: Update copyright.
4120 (struct frame_data): Add opaque declaration.
4121 (frame_sniffer_ftype): Declare.
4122 (struct frame_unwind): Add "unwind_data" and "sniffer".
4123 (frame_unwind_register_unwinder): Declare.
4124 (frame_unwind_find_by_frame): Add parameter "this_cache".
4125 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
4126 (legacy_get_prev_frame, legacy_get_prev_frame)
4127 (get_frame_type): Pass the prologue_cache to
4128 frame_unwind_find_by_frame.
4129 * frame-unwind.c (struct frame_unwind_table_entry): Add field
4130 "unwinder".
4131 (frame_unwind_register_unwinder): New function.
4132 (frame_unwind_find_by_frame): Handle an unwind sniffer.
4133
4134 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
4135
4136 * bcache.c (print_percentage): Use floating point to avoid
4137 incorrect results when portion*100 overflows.
4138
4139 2004-03-19 Kevin Buettner <kevinb@redhat.com>
4140
4141 * ppc_tdep.h (ppc_linux_frame_saved_pc)
4142 (ppc_linux_init_extra_frame_info)
4143 (ppc_linux_frameless_function_invocation)
4144 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
4145 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
4146 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
4147 (rs6000_frame_chain): Delete declarations.
4148 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
4149 (ppc_linux_init_extra_frame_info)
4150 (ppc_linux_frameless_function_invocation)
4151 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
4152 (ppc_linux_init_abi): Remove registration of above deleted functions.
4153 * rs6000-tdep.c (rs6000_init_extra_frame_info)
4154 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
4155 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
4156 (rs6000_pop_frame, rs6000_frameless_function_invocation)
4157 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
4158 (rs6000_gdbarch_init): Remove registration of above deleted functions.
4159 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
4160 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
4161 frame management for all OSABIs.
4162
4163 2004-03-19 Andrew Cagney <cagney@redhat.com>
4164
4165 Committed by Kevin Buettner <kevinb@redhat.com>.
4166
4167 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
4168 Update copyright.
4169 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
4170 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
4171 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
4172 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
4173 unwinders. #ifdef legacy frame code.
4174 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4175 "frame-base.h".
4176 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
4177 (struct rs6000_frame_cache, rs6000_frame_cache)
4178 (rs6000_frame_this_id, rs6000_frame_prev_register)
4179 (rs6000_frame_sniffer, rs6000_frame_unwind)
4180 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
4181 (rs6000_frame_base): Implement a traditional frame unwinder.
4182 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
4183 frame unwinder.
4184
4185 2004-03-19 Kevin Buettner <kevinb@redhat.com>
4186
4187 * breakpoint.c (adjust_breakpoint_address): Don't adjust
4188 breakpoint address for watchpoints or the catch eventpoints.
4189 Add new paramter ``bptype''. Adjust all callers.
4190
4191 2004-03-19 Andrew Cagney <cagney@redhat.com>
4192
4193 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
4194
4195 * PROBLEMS: Delete note that ARM does not use frame code, problem
4196 fixed.
4197
4198 2004-03-18 Andrew Cagney <cagney@redhat.com>
4199
4200 * stack.c (return_command): Delete code wrapped in #ifdef
4201 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
4202
4203 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
4204
4205 2004-03-18 Andrew Cagney <cagney@redhat.com>
4206
4207 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
4208 DEPRECATED_IN_SIGTRAMP.
4209 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4210 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
4211 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4212 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4213 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4214 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4215 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4216 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4217 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
4218 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
4219
4220 2004-03-18 Andrew Cagney <cagney@redhat.com>
4221
4222 * frame-base.c: Update copyright. Include "gdb_obstack.h".
4223 (struct frame_base_table_entry): Define.
4224 (struct frame_base_table): Re-implement as a linked list.
4225 (frame_base_init): Re-implement.
4226 (frame_base_table): Delete function.
4227 (append_predicate): Delete function.
4228 (frame_base_append_sniffer): Update.
4229 (frame_base_set_default): Update.
4230 (frame_base_find_by_frame): Update.
4231 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
4232 * Makefile.in (frame-base.o): Update dependencies.
4233
4234 2004-03-17 Andrew Cagney <cagney@redhat.com>
4235
4236 * frame.c (legacy_get_prev_frame): Pass correct frame to
4237 frame_unwind_find_by_frame.
4238
4239 2004-03-17 David Carlton <carlton@kealia.com>
4240
4241 * NEWS: Mention C++ nested types and namespaces
4242
4243 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
4244
4245 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
4246 and "Regressions since gdb 5.3.". Add known regressions since
4247 gdb 6.0.
4248
4249 2004-03-16 David Carlton <carlton@kealia.com>
4250
4251 * dwarf2read.c (process_structure_scope): Process children even
4252 when we're a declaration.
4253
4254 2004-03-16 Andrew Cagney <cagney@redhat.com>
4255
4256 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4257 * blockframe.c (find_pc_partial_function)
4258 (find_pc_sect_partial_function): Merge into a single
4259 find_pc_partial_function.
4260
4261 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4262
4263 * i386bsd-nat.c: s/regno/regnum/g.
4264 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4265 FP0_REGNUM.
4266 (store_inferior_registers): Likewise.
4267
4268 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4269
4270 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4271 of i387_fill_fsave.
4272 (store_inferior_registers): Call i387_collect_fsave and
4273 i387_collect_fxsave instead of i387_fill_fsave and
4274 i387_fill_fxsave.
4275
4276 2004-03-15 Andrew Cagney <cagney@redhat.com>
4277
4278 * Makefile.in (frame-unwind.o): Update dependencies.
4279 * frame-unwind.c: Include "gdb_obstack.h".
4280 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4281 parameter.
4282 (append_predicate): Delete function.
4283 (struct frame_unwind_table_entry): New structure.
4284 (struct frame_unwind_table): Replace "sniffer" with "head" and
4285 "tail".
4286 (frame_unwind_append_sniffer): Update.
4287 (frame_unwind_find_by_frame): Update.
4288 (_initialize_frame_unwind): Registe frame_unwind_init using
4289 gdbarch_data_register_pre_init.
4290
4291 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4292
4293 * i386bsd-nat.c: Update copyright year.
4294 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4295 define unconditionally.
4296
4297 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4298
4299 * i387-tdep.h (i387_collect_fsave): New prototype.
4300 * i387-tdep.c (i387_collect_fsave): New function containing most
4301 of the code from i387_fill_fsave.
4302 (i387_fill_fsave): Call i387_collect_fsave.
4303
4304 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4305
4306 * i386-linux-tdep.c: Update copyright year.
4307 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4308 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4309 svr4_ilp32_link_map_offsets instead of
4310 i386_linux_svr4_fetch_link_map_offsets.
4311
4312 2004-03-15 David Carlton <carlton@kealia.com>
4313
4314 Fix for PR c++/1553:
4315 * dwarf2read.c (read_structure_type): Determine type name by
4316 calling determine_class_name.
4317 (determine_class_name): New.
4318 (determine_prefix): Look at TYPE_TAG_NAME and call
4319 determine_class_name when appropriate.
4320 (determine_prefix_aux, class_name): Delete.
4321 (read_namespace): Set die->type.
4322
4323 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4324
4325 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4326 unused macro definition. The definition in target.h (or perhaps
4327 elsewhere) takes precedence.
4328
4329 2004-03-15 Andrew Cagney <cagney@redhat.com>
4330
4331 * ppc-tdep.h: Update copyright.
4332 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4333 function signatures to match "regsets.h".
4334 * ppc-linux-tdep.c: Include "regset.h".
4335 (ELF_GREGSET_SIZE): Delete.
4336 (right_supply_register): New function.
4337 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4338 using right_supply_register.
4339 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4340 functions.
4341 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4342 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4343 (_initialize_ppc_linux_tdep): Do not register
4344 ppc_linux_regset_core_fns.
4345 (ppc_linux_regset_from_core_section): Replace
4346 fetch_core_registers.
4347 (ppc_linux_regset_core_fns): Delete.
4348 * ppc-linux-nat.c: (right_fill_reg): New function.
4349 (supply_gregset): Update call to ppc_linux_supply_gregset.
4350 (fill_gregset): Clear the register set, use right_fill_reg.
4351 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4352 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4353
4354 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4355 unsigned.
4356
4357 2004-03-15 Andrew Cagney <cagney@redhat.com>
4358
4359 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4360 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4361 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4362 and register_gdbarch_data.
4363 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4364 (struct gdbarch_data): Replace "init" by "pre_init" and
4365 "post_init".
4366 * gdbarch.h, gdbarch.c: Re-generate.
4367 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4368 with"obstack", use OBSTACK_ZALLOC.
4369 (dwarf2_frame_ops): Delete.
4370 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4371 (dwarf2_frame_init_reg): Use gdbarch_data.
4372 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
4373 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
4374 (_initialize_svr4_solib): Update.
4375 * user-regs.c (_initialize_user_regs): Update.
4376 * reggroups.c (_initialize_reggroup): Update.
4377 * regcache.c (_initialize_regcache): Update.
4378 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4379 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4380 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4381 * frame-unwind.c (_initialize_frame_unwind): Update.
4382 * frame-base.c (_initialize_frame_base): Update.
4383 * user-regs.c (user_reg_add): Update.
4384 * reggroups.c (reggroup_add): Update.
4385 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4386 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4387 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4388 * frame-base.c (frame_base_table): Update.
4389 * remote.c (_initialize_remote): Update.
4390 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
4391
4392 2004-03-15 Andrew Cagney <cagney@redhat.com>
4393
4394 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4395
4396 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4397
4398 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4399 * frv-linux-tdep.c: New file.
4400 * frv-tdep.c (struct gdbarch_tdep): Add new field
4401 ``sigcontext_reg_addr''.
4402 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4403 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4404 (frv_sigramp_frame_sniffer): New functions.
4405 (frv_sigtramp_frame_unwind): New static global.
4406 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4407 sniffers.
4408 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4409 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4410
4411 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4412
4413 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4414 but not via a call to error(), when unable to read memory.
4415
4416 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4417
4418 * frv-tdep.c (frv_call_dummy_words): Delete.
4419 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4420
4421 2004-03-15 Andrew Cagney <cagney@redhat.com>
4422
4423 * infrun.c (handle_step_into_function, step_over_function): Only
4424 update and use STEP_FRAME_ID when the system is using legacy
4425 frames. Update comments.
4426
4427 2004-03-14 Mark Kettenis <kettenis@gnu.org>
4428
4429 * amd64-linux-tdep.h: Remove file.
4430 * amd64-linux-tdep.c: Don't include "inferior.h" and
4431 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4432 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4433 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4434 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4435 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4436 macros.
4437 (user_to_gdb_regmap): Remove variable.
4438 (amd64_linux_gregset_reg_offset): New variable.
4439 (amd64_core_fns): Remove variable.
4440 (fetch_core_registers): Remove function.
4441 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4442 functions.
4443 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4444 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4445 * Makefile.in (amd64_linux_tdep_h): Remove.
4446 (amd64-linux-nat.o): Update dependencies.
4447 (amd64-linux-tdep.o): Update dependencies.
4448
4449 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4450 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4451 functions.
4452 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4453
4454 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4455 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4456
4457 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
4458
4459 * dwarf2read.c (read_structure_type): Rename from
4460 read_structure_scope. Don't create a symbol or call process_die.
4461 Return immediately if die->type is set. Call read_type_die before
4462 dwarf2_add_member_fn.
4463 (process_structure_scope): New function.
4464 (read_enumeration_type, process_enumeration_scope): New functions,
4465 broken out from read_enumeration. Don't create the enumeration
4466 type if it has already been created.
4467 (read_enumeration): Removed.
4468 (process_die): Call read_structure_type, process_structure_scope,
4469 read_enumeration_type, and process_enumeration_scope. Just call
4470 new_symbol for base and subrange types. Add a comment about other
4471 type dies.
4472 (read_type_die): Call read_enumeration_type.
4473 (add_partial_structure, new_symbol): Update comments.
4474
4475 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4476
4477 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4478
4479 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4480
4481 * tui/tui-win.h (tui_get_cmd_list): Declare.
4482 * tui/tui-win.c (tui_command): New function.
4483 (tui_get_cmd_list): New function.
4484 (_initialize_tui_win): Moved initialization of tui command in
4485 tui_get_cmd_list.
4486
4487 * tui/tui-data.c (init_content_element): Setup new data members.
4488 (init_win_info): Likewise.
4489 (free_content_elements): Free it.
4490 * tui/tui-data.h (struct tui_data_element): Store the register
4491 content to print.
4492 (struct tui_data_info): Keep the current register group.
4493
4494 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4495
4496 * tui/tui-regs.h (tui_show_registers): Update prototype.
4497 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4498 (tui_resize_all): No need to calculate anything for register window.
4499 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4500 (tui_set_register_element, tui_set_general_regs_content): Remove.
4501 (tui_set_special_regs_content): Remove.
4502 (tui_set_general_and_special_regs_content): Remove.
4503 (tui_set_float_regs_content): Remove.
4504 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4505 (tui_set_regs_content): Remove.
4506 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4507 (tui_v_show_registers_command_support): Remove.
4508 (tui_show_registers): Use a reggroup to specify the registers to show.
4509 (tui_show_register_group): New function.
4510 (tui_display_registers_from): Compute the layout of register window
4511 and refresh with new API; be sure to delete old register windows.
4512 (tui_check_register_values): Update to use tui_get_register and
4513 tui_display_data.
4514 (tui_display_register): Just refresh the register window part.
4515 (tui_register_format): Format registers and save in tui_data_element.
4516 (tui_get_register): New to combine tui_reg_value_has_changed and
4517 tui_get_register_raw_value; fix to use the new gdb API.
4518 (tui_show_float_command): Renamed tui_reg_float_command.
4519 (tui_show_general_command): Renamed tui_reg_general_command.
4520 (tui_show_special_command): Renamed tui_reg_system_command.
4521 (_initialize_tui_regs): Remove unused commands.
4522
4523 2004-03-13 Mark Kettenis <kettenis@gnu.org>
4524
4525 * NEWS (New native configurations): Mention OpenBSD/amd64.
4526
4527 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4528 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4529 Remove defines.
4530 * config/i386/nm-fbsd64.h: Likewise.
4531 * config/i386/nm-obsd.h: Likewise.
4532 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4533 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4534
4535 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4536
4537 * frv-tdep.c (set_variant_scratch_registers): New function.
4538 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4539 New constants.
4540
4541 From Richard Sandiford <rsandifo@redhat.com>:
4542 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4543
4544 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4545
4546 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4547 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4548 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4549 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4550 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4551 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4552 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4553 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4554 definitions from frv-tdep.c to frv-tdep.h.
4555
4556 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4557
4558 Add shared library support for FR-V FDPIC ABI:
4559 * Makefile.in (solib-frv.o): Add dependencies.
4560 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4561 New functions.
4562 (frv_push_dummy_call): Add support for FDPIC ABI.
4563 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4564 for FDPIC ABI.
4565 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4566 (frv_fdpic_find_canonical_descriptor): Declare.
4567 * solib-frv.c: New file.
4568 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4569 * config/frv/tm-frv.h (solib.h): Include.
4570
4571 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4572
4573 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4574 (frv-tdep.o): Update dependencies.
4575 * frv-tdep.h: New file.
4576 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4577 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4578 constants.
4579 (struct gdbarch_tdep): Add new member ``frv_abi''.
4580 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4581 functions.
4582 (new_variant): Set ``frv_abi'' field.
4583 (gdb_arch_init): Detect FDPIC executables.
4584
4585 2004-03-12 Mark Kettenis <kettenis@gnu.org>
4586
4587 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4588 wrapper.
4589
4590 2004-03-11 Andrew Cagney <cagney@redhat.com>
4591
4592 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4593
4594 2004-03-11 Kevin Buettner <kevinb@redhat.com>
4595
4596 * solist.h (master_so_list): New function.
4597 * solib.c (master_so_list): Likewise.
4598 * solib-svr4.c (enable_break): Iterate over so_list entries
4599 obtained from master list instead of entries obtained directly
4600 via svr4_current_sos().
4601
4602 2004-03-10 Ben Elliston <bje@gnu.org>
4603
4604 * MAINTAINERS: Update my mail address.
4605
4606 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4607
4608 * remote-m32r-sdi.c: Support hardware watchpoint.
4609
4610 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4611
4612 * user-regs.c: Update copyright years.
4613 (struct user_regs): Rename to gdb_user_regs.
4614 (append_user_reg, builtin_user_regs, user_regs_init)
4615 (user_reg_add, user_reg_map_name_to_regnum)
4616 (usernum_to_user_reg): Update.
4617
4618 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4619
4620 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4621 (skip_children): New functions.
4622 (locate_pdi_sibling): Call skip_children.
4623
4624 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4625
4626 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4627 * gdbtypes.c (check_typedef): Update comments.
4628
4629 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4630
4631 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4632 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4633 pointer. Update comment about comp_unit_head.
4634 (struct abbrev_info): Shorten two int flags.
4635 (dwarf_alloc_abbrev): Take a CU argument.
4636 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4637 each time through the loop. Update cleanup argument.
4638 (psymtab_to_symtab_1): Update cleanup call.
4639 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4640 abbrev_obstack.
4641 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4642 Just call obstack_free and clear the pointer.
4643
4644 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4645
4646 * infrun.c (handle_inferior_event): Remove short-circuit code for
4647 events in a different thread.
4648
4649 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4650
4651 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4652 print the whole transfer.
4653 (initialize_targets): Update description of "set debug target".
4654
4655 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4656
4657 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4658
4659 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4660
4661 * MAINTAINERS (write after approval): Add myself.
4662
4663 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4664
4665 * sh-tdep.c (sh_print_registers_info): Use for loop.
4666 Don't skip multiple registers when a float register is encountered.
4667
4668 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4669
4670 Fix PR tdep/1291.
4671 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4672 to official SH documentation.
4673
4674 2004-03-07 Andrew Cagney <cagney@redhat.com>
4675
4676 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4677 unused function.
4678
4679 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
4680
4681 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4682 (arm_get_next_pc): Handle BX and BLX.
4683
4684 2004-03-07 Andrew Cagney <cagney@redhat.com>
4685
4686 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4687 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4688 HPPA_SP_REGNUM.
4689 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4690 (hppa_target_read_fp): Delete.
4691 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4692 register_virtual_size, max_register_raw_size,
4693 max_register_virtual_size, register_byte, register_size,
4694 target_read_fp, fp_regnum, and register_bytes. Set register_type
4695 instead of register_virtual_type.
4696 (hppa32_register_type, hppa64_register_type): Replace
4697 hppa32_register_virtual_type and hppa64_register_virtual_type.
4698 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4699 (HPPA_FP_REGNUM): Define.
4700
4701 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4702
4703 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4704 (pa_do_registers_info): Delete.
4705 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4706 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4707 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4708
4709 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4710 GDB_TARGET_IS_HPPA code.
4711 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4712 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4713 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4714 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4715 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4716 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4717 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4718 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
4719 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4720 (hppa_frameless_function_invocation, hppa64_store_return_value)
4721 (hppa_store_struct_return, hppa64_extract_return_value)
4722 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
4723 (hppa32_call_dummy_length, hppa64_call_dummy_length)
4724 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
4725 (find_proc_framesize, deposit_21, restore_pc_queue)
4726 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
4727 (rp_saved, pc_in_linker_stub): Delete.
4728
4729 Unconditionally enable 64-bit frame and ABI code.
4730 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4731 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4732 push_dummy_frame, fix_call_dummy, push_arguments,
4733 call_dummy_location, extract_return_value, use_struct_convention,
4734 store_return_value, store_struct_return, saved_pc_after_call,
4735 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4736 frame_chain, frame_chain_valid, frameless_function_invocation,
4737 frame_saved_pc, and pop_frame.
4738
4739 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4740 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4741 (hppa_gdbarch_init): Do not set PC_REGNUM.
4742
4743 2004-03-06 Mark Kettenis <kettenis@gnu.org>
4744
4745 * config/alpha/tm-fbsd.h: Remove file.
4746 * config/alpha/fbsd.mt: Tweak comment.
4747 (TM_FILE): Set to tm-alpha.h.
4748
4749 2004-03-05 Andrew Cagney <cagney@redhat.com>
4750
4751 * infrun.c (step_over_function): When non-legacy code, and no
4752 step_frame_id, use the unwinder to get the caller's frame ID.
4753
4754 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4755
4756 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4757 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4758 bfd_arch_unknown. Adjust comment.
4759
4760 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4761 * i386obsd-tdep.c: Correct spelling in comment.
4762 * i386nbsd-tdep.c: Correct spelling in comment.
4763 * sparc-tdep.c: Correct spelling in comments.
4764
4765 2004-03-05 David Carlton <carlton@kealia.com>
4766
4767 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4768 bug.
4769
4770 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4771
4772 * sparc-tdep.c: Fix typo in comment.
4773
4774 2004-03-04 J. Brobecker <brobecker@gnat.com>
4775
4776 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4777
4778 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
4779
4780 * dwarf2read.c: Add comment describing memory lifetimes.
4781 (struct dwarf2_pinfo): Update comment.
4782 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4783 (read_enumeration, new_symbol): Don't use obsavestring.
4784
4785 2004-03-04 Mark Kettenis <kettenis@gnu.org>
4786
4787 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4788 instead of amd64_fill_fxsave.
4789 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4790 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4791
4792 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4793 Reorganize code a bit.
4794
4795 2004-03-04 Orjan Friberg <orjanf@axis.com>
4796
4797 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
4798 when the frame pointer is pushed. Don't set the frame pointer's
4799 address on the stack unless it's actually located there.
4800 Set the SRP's address on the stack correctly when the PC is still in
4801 the prologue.
4802 (cris_return_value): New function.
4803 (cris_gdbarch_init): Clear deprecated store_return_value,
4804 extract_return_value.
4805
4806 2004-03-02 Jim Blandy <jimb@redhat.com>
4807
4808 * stabsread.c (reg_value_complaint): The maximum register number
4809 is one less than the number of registers.
4810
4811 2004-03-02 Andrew Cagney <cagney@redhat.com>
4812
4813 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4814 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4815 trailing comma and redundant assignment of I386_ST0_REGNUM.
4816 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4817 32-bit segment registers.
4818
4819 2004-03-01 Andrew Cagney <cagney@redhat.com>
4820
4821 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4822 use frame_relative_level and get_next_frame.
4823
4824 2004-02-29 Andrew Cagney <cagney@redhat.com>
4825
4826 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4827 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4828 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4829 Delete macro.
4830
4831 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
4832
4833 * inflow.c (terminal_inferior): Don't give up the terminal if we
4834 previously couldn't get the inferior's terminal state.
4835
4836 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
4837
4838 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4839 PC_REGNUM.
4840
4841 2004-02-28 Andrew Cagney <cagney@redhat.com>
4842
4843 * NEWS: Refer to GDB 6.1.
4844 * README: Refer to GDB 6.1.
4845 * PROBLEMS: Refer to GDB 6.1.
4846
4847 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
4848
4849 * thread-db.c (disable_thread_signals): Remove unused function.
4850
4851 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4852
4853 * amd64-nat.c: Include "gdb_string.h".
4854 (amd64_collect_native_gregset): Zero-extend the 32-bit
4855 general-purpose registers and %eip.
4856
4857 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4858 * amd64-tdep.c (amd64_collect_fxsave): New function.
4859 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4860
4861 * i387-tdep.h: Update copyright year.
4862 (i387_collect_fxsave): New prototype.
4863 * i387-tdep.c: Update copyright year.
4864 (i387_collect_fxsave): New function containing most of the code
4865 from i387_fill_fxsave.
4866 (i387_fill_fxsave): Call i387_collect_fxsave.
4867
4868 2004-02-28 Andrew Cagney <cagney@redhat.com>
4869
4870 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4871 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4872
4873 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4874
4875 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4876
4877 2004-02-28 Andrew Cagney <cagney@redhat.com>
4878
4879 * utils.c: Use "", instead of <>, to include readline.
4880 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4881 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4882 * source.c, solib.c, exec.c, event-top.c: Ditto.
4883 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4884 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4885 * Makefile.in: Update all dependencies.
4886 (readline_tilde_h, readline_history_h): Define.
4887 (readline_headers): Delete.
4888
4889 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4890
4891 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4892 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4893 "config/i386/tm-lx64.h".
4894
4895 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4896 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4897 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4898
4899 2004-02-28 Andrew Cagney <cagney@redhat.com>
4900
4901 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4902
4903 * breakpoint.c (_initialize_breakpoint): Use
4904 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4905 Add help to show command.
4906
4907 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4908
4909 * i386-nat.c: Reformat to be closer to coding standards.
4910 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4911 `retval'. Make variables `align' and `size' local to while-loop.
4912 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4913 (_initialize_i386_nat): New prototype.
4914
4915 * tui/tui.c: Include <readline/readline.h> instead of
4916 "readline/readline.h". Include it after <term.h> and
4917 "gdb_curses.h".
4918
4919 2004-02-27 Andrew Cagney <cagney@redhat.com>
4920
4921 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4922 the new frame unwind code.
4923 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4924 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4925 PCOQ_HEAD_REGNUM.
4926
4927 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4928 "return_value" and "push_dummy_call".
4929 (hppa32_use_struct_convention): Delete unused function.
4930 (hppa32_store_return_value): Delete unused function.
4931 (hppa32_extract_return_value): Delete unused function.
4932 (hppa32_stack_align): Delete function.
4933
4934 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
4935
4936 * coffread.c (enter_linenos): Don't let rawptr reference memory
4937 outside linetab[]'s limits.
4938
4939 2004-02-27 Andrew Cagney <cagney@redhat.com>
4940
4941 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4942 inferior stack space - the stack needs to grow upwards.
4943 (hppa32_frame_align): New function.
4944 (hppa64_frame_align): Replace hppa_frame_align.
4945 (hppa_gdbarch_init): Update.
4946
4947 2004-02-26 Orjan Friberg <orjanf@axis.com>
4948
4949 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4950 (dwarf2-frame.h): Include.
4951 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4952 Remove static variables related to ABI setting.
4953 (struct gdbarch_tdep): Remove cris_abi member.
4954 (struct frame_extra_info): Remove.
4955 (cris_unwind_cache, stack_item): New structs.
4956 (cris_frame_unwind, cris_frame_base): New variables.
4957 (push_stack_item, pop_stack_item)
4958 (cris_frame_unwind_cache, cris_frame_this_id)
4959 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4960 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4961 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4962 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4963 (cris_reg_struct_has_addr): New functions.
4964 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
4965 (cris_frame_saved_pc, cris_saved_pc_after_call,
4966 (cris_store_struct_return, cris_frameless_function_invocation)
4967 (cris_pop_frame, cris_skip_prologue_main)
4968 (cris_abi_original_store_return_value)
4969 (cris_abi_v2_store_return_value)
4970 (cris_abi_original_extract_return_value)
4971 (cris_abi_v2_extract_return_value)
4972 (cris_abi_original_reg_struct_has_addr)
4973 (cris_abi_v2_reg_struct_has_addr)
4974 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4975 (cris_push_return_address, cris_abi_update): Remove.
4976 (_initialize_cris_tdep): Remove ABI command.
4977 (cris_dump_tdep): Ditto.
4978 (cris_gdbarch_init): Remove ABI command.
4979 Set store_return_value, extract_return_value, push_dummy_code,
4980 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4981 frame_unwind_append_sniffer, frame_base_set_default.
4982 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4983 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4984 sizeof_call_dummy_words, get_saved_register, push_return_address,
4985 pop_frame, store_struct_return, frame_init_saved_regs,
4986 init_extra_frame_info, frameless_function_invocation, frame_chain,
4987 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4988 dummy_write_sp.
4989
4990 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4991
4992 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4993 * valprint.c (print_hex_chars): Change from static to external.
4994 (print_char_chars): New function.
4995 * printcmd.c (print_scalar_formatted): For integer and enum types
4996 that are longer than LONGEST, perform processing via appropriate
4997 print_*_chars routines.
4998
4999 2004-02-26 Andrew Cagney <cagney@redhat.com>
5000
5001 * Makefile.in: Update dependencies.
5002 Changes from Ulrich Weigand,
5003 * s390-tdep.c: Include "dwarf2-frame.h".
5004 (s390_dwarf2_frame_init_reg): New function.
5005 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
5006 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
5007
5008 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
5009
5010 * breakpoint.c (pending_break_support): New setting variable.
5011 (break_command_1): Account for pending_break_support setting
5012 when creating pending breakpoints.
5013 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
5014 (_initialize_breakpoint): Add "set breakpoint pending" and
5015 "show breakpoint pending" commands.
5016
5017 2004-02-26 Andrew Cagney <cagney@redhat.com>
5018
5019 Fix PR i18n/1570.
5020 * charset.c (backslashable, backslashed, represented): Remove 'e'
5021 from list of escaped characters, not part of ISO-C.
5022
5023 2004-02-25 J. Brobecker <brobecker@gnat.com>
5024
5025 From Peter Schauer <schauer@pdf.de>:
5026 * tui/tui.c: Move system header includes after local includes.
5027 Fixes a build failure on solaris systems.
5028
5029 2004-02-25 J. Brobecker <brobecker@gnat.com>
5030
5031 * configure.in: Refine the previous change.
5032 * configure: Regenerate.
5033
5034 2004-02-25 Mark Kettenis <kettenis@gnu.org>
5035
5036 * amd64-tdep.h: Renamed from x86-64-tdep.h.
5037 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
5038 "amd64-tdep.h" instead of "x86-64-tdep.h".
5039 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
5040 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
5041 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
5042 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
5043 and "x86-64-tdep.c".
5044 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
5045 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
5046 and "x86-64-tdep.c".
5047 * amd64bsd-nat.c: Update copyright year.
5048 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
5049 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
5050 "x86-64-tdep.h".
5051 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
5052 "x86-64-tdep.h".
5053 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
5054 "x86-64-tdep.h".
5055 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
5056 "x86-64-tdep.h".
5057 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
5058 "x86-64-tdep.h".
5059 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
5060 "x86-64-tdep.h".
5061 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
5062 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
5063 * Makefile.in (amd64_linux_tdep_h): Renamed from
5064 x86_64_linux_tdep_h.
5065 (amd64_tdep_h): Renamed from x86_64_tdep_h.
5066 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
5067 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
5068 (amd64obsd-tdep.o): Update dependencies.
5069 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
5070 dependencies.
5071 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
5072 dependencies.
5073 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
5074 amd64-linux-nat.c amd64-linux-tdep.c.
5075 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
5076 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
5077 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
5078 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
5079 amd64-tdep.o and amd64-linux-tdep.o.
5080 (TM_FILE): Set to tm-linux64.h.
5081 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
5082 (NAT_FILE): Set to nm-linux64.h.
5083 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
5084 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5085 amd64-tdep.o.
5086 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5087 amd64-tdep.o.
5088 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5089 amd64-tdep.o.
5090
5091 2004-02-25 Roland McGrath <roland@redhat.com>
5092
5093 * remote.c (remote_protocol_qPart_auxv): New variable.
5094 (init_all_packet_configs): Initialize it.
5095 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
5096 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
5097 (show_remote_cmd): Call it.
5098 (_initialize_remote): Initialize commands.
5099 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
5100 service TARGET_OBJECT_AUXV requests.
5101
5102 2004-02-25 J. Brobecker <brobecker@gnat.com>
5103
5104 * configure.in: Make sure that the wborder function is available.
5105 Otherwise, search for it in the cur_colr library.
5106 * configure: Regenerate.
5107
5108 2004-02-25 Andrew Cagney <cagney@redhat.com>
5109
5110 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
5111
5112 2004-02-25 Mark Kettenis <kettenis@gnu.org>
5113
5114 * config/i386/tm-x86-64linux.h: Tweak comments.
5115
5116 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
5117
5118 * MAINTAINERS: Add self to write-after-approval list.
5119
5120 2004-02-25 Andrew Cagney <cagney@redhat.com>
5121
5122 PR cli/1566. Problem found, and fix suggested by David Allan.
5123 * cli/cli-script.c (execute_control_command): Unconditionally
5124 install a cleanup. Default "ret" to "invalid_control". Use
5125 "break" instead of "return" to escape from the switch.
5126
5127 2004-02-24 J. Brobecker <brobecker@gnat.com>
5128
5129 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
5130 with the lines macro defined in term.h on AiX.
5131 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
5132 a collision with the label_width macro defined in term.h on AiX.
5133
5134 2004-02-23 David Mosberger <davidm@hpl.hp.com>
5135
5136 Committed by Kevin Buettner <kevinb@redhat.com>.
5137
5138 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
5139 * ia64-tdep.c (ia64_write_pc): Make it a global function.
5140 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
5141 instead of ia64_write_pc().
5142 * ia64-linux-tdep.c (regcache.h): Include.
5143 (ia64_linux_write_pc): New function.
5144
5145 2004-02-23 Roland McGrath <roland@redhat.com>
5146
5147 * auxv.c (info_auxv_command): Fix typos in error messages.
5148
5149 2004-02-23 Mark Kettenis <kettenis@gnu.org>
5150
5151 * x86-64-tdep.h: Tweak comment.
5152 (enum amd64_regnum): New.
5153 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
5154 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
5155 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
5156 (X86_64_XMM1_REGNUM): Removed.
5157 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
5158 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
5159 prototypes for renamed functions.
5160 * x86-64-tdep.c: Fix typo.
5161 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
5162 register numbers.
5163 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
5164 Use constants from `enum amd64_regnum' for register numbers.
5165 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
5166 (amd64_analyze_prologue, amd64_frame_cache,
5167 amd64_sigtramp_frame_cache): Use constants from `enum
5168 amd64_regnum' for register numbers.
5169 (amd64_supply_fpregset): Adjust for renamed functions.
5170 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
5171 `enum amd64_regnum' for register numbers.
5172 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
5173 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
5174 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
5175 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
5176 (amd64_linux_fill_gregset): Adjust for renamed macros.
5177 (fetch_core_registers): Adjust for renamed functions.
5178 (amd64_linux_init_abi): Adjust for renamed functions.
5179 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
5180 renamed functions.
5181 * amd64-nat.c: Adjust for renamed macros.
5182 * amd64bsd-nat.c (fetch_inferior_registers)
5183 (store_inferior_registers): Use constants from `enum amd64_regnum'
5184 for register numbers. Adjust for renamed variables.
5185 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
5186 renamed variables.
5187 (_initialize_amd64fbsd_nat): Use constants from `enum
5188 amd64_regnum' for register numbers.
5189 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
5190 `enum amd64_regnum' for register numbers.
5191 (amd64fbsd_init_abi): Adjust for renamed functions.
5192 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
5193 `enum amd64_regnum' for register numbers.
5194 (amd64nbsd_init_abi): Adjust for renamed functions.
5195 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
5196 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
5197 `enum amd64_regnum' for register numbers.
5198 (amd64obsd_init_abi): Adjust for renamed functions.
5199 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
5200
5201 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5202
5203 * breakpoint.c (print_one_breakpoint): Do not output spaces
5204 after printing <PENDING> for a pending breakpoint.
5205
5206 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5207
5208 * printcmd.c (print_scalar_formatted): Initialize val_long
5209 to remove compiler warning message.
5210
5211 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5212
5213 * defs.h (nquery, yquery): New prototypes.
5214 * breakpoint.c (break_command_1): Use new nquery interface.
5215 * utils.c (defaulted_query, nquery, yquery): New functions.
5216
5217 2004-02-23 Andrew Cagney <cagney@redhat.com>
5218
5219 * hppa-tdep.c (hppa_frame_align): New function.
5220 (hppa32_push_dummy_call): New function.
5221 (hppa64_push_dummy_call): New function.
5222 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
5223 disabled.
5224
5225 * infcall.c (legacy_push_dummy_code): Don't call deprecated
5226 FIX_CALL_DUMMY when push_dummy_call is available.
5227 (call_function_by_hand, push_dummy_code): Ditto.
5228
5229 2004-02-22 Andrew Cagney <cagney@redhat.com>
5230
5231 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
5232 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
5233 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
5234 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
5235 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
5236 call_dummy_location to ON_STACK.
5237
5238 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5239
5240 * x86-64-linux-tdep.c: Tweak comment.
5241 (amd64_linux_supply_gregset): Renamed from
5242 x86_64_linux_supply_gresget.
5243 (amd64_linux_fill_gregset): Renamed from
5244 x86_64_linux_fill_gregset.
5245 (fetch_core_registers): Adjust for renamed functions.
5246 (amd64_core_fns): Renamed from x86_64_core_fns.
5247 (amd64_linux_sigtramp_start): Renamed from
5248 x86_64_linux_sigtramp_start.
5249 (amd64_linux_pc_in_sigtramp): Renamed from
5250 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
5251 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
5252 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
5253 (amd64_linux_sigcontext_addr): Renamed from
5254 x86_64_linux_sigcontext_addr.
5255 (amd64_linux_sc_reg_offset): Renamed from
5256 x86_64_linux_sc_reg_offset.
5257 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5258 Adjust for renamed functions and variables.
5259 (_initialize_amd64_linux_tdep): Renamed from
5260 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5261 variables.
5262 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5263 Adjust for renamed functions.
5264
5265 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5266 from x86_64_linux_gregset64_reg_offset.
5267 (amd64_linux_gregset32_reg_offset): Rename from
5268 x86_64_linux_gregset64_reg_offset.
5269 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5270 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5271 (amd64_linux_dr_set_control): Renamed from
5272 x86_64_linux_dr_set_control. Adjust for renamed functions.
5273 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5274 Adjust for renamed functions.
5275 (amd64_linux_dr_reset_addr): Renamed from
5276 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5277 (amd64_linux_dr_get_status): Renamed from
5278 x86_64_linux_dr_get_status. Adjust for renamed functions.
5279 (_initialize_amd64_linux_nat): Renamed from
5280 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5281 functions.
5282 * config/i386/nm-x86-64linux.h: Update copyright year.
5283 Adjust for renamed functions.
5284
5285 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5286 amd64fbsd_sigtramp_start.
5287 (amd64fbsd_sigtramp_end_addr): Renamed from
5288 amd64fbsd_sigtramp_end.
5289 (amd64fbsd_init_abi): Adjust for renamed variables.
5290 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5291 variables.
5292 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5293 amd64fbsd_sigtramp_start.
5294 (amd64fbsd_sigtramp_end_addr): Renamed from
5295 amd64fbsd_sigtramp_end.
5296
5297 2004-02-22 Andrew Cagney <cagney@redhat.com>
5298
5299 * hppa-tdep.c (hppa32_return_value): New function.
5300 (hppa64_return_value): New function.
5301 (hppa_gdbarch_init): Set return_value; keep disabled.
5302
5303 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5304 struct-return and inferior function call methods.
5305
5306 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5307 "frame-base.h".
5308 (struct hppa_frame_cache): Define.
5309 (hppa_frame_cache, hppa_frame_this_id): New functions.
5310 (hppa_frame_prev_register): New function.
5311 (hppa_frame_unwind, hppa_frame_base): New variables.
5312 (hppa_frame_unwind_sniffer): New function.
5313 (hppa_frame_base_address, hppa_unwind_pc): New function.
5314 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5315 sniffer, and frame base sniffer; keep disabled.
5316 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5317 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5318
5319 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5320 to predicates for "seriously old code".
5321
5322 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5323 runtime if(0).
5324
5325 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5326 unsigned.
5327 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
5328
5329 * config/pa/tm-hppa.h: Update copyright.
5330 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5331 (deprecated_init_frame_pc_default): Delete declaration.
5332 (hppa_frame_init_saved_regs): Delete declaration.
5333 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5334 * hppa-tdep.c: Include "arch-utils.h".
5335 (hppa_gdbarch_init): Set deprecated init_frame_pc
5336 and deprecated frame_init_saved_regs.
5337 (hppa_frame_init_saved_regs): Make static.
5338
5339 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5340
5341 Remove old 386BSD support.
5342 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
5343 * configure.host: Remove i[34567]86-*-bsd*.
5344 * configure.tgt: Remove i[34567]86-*-bsd*.
5345 * i386b-nat.c: Removed.
5346 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
5347 (i386b-nat.o): Remove dependencies.
5348
5349 * config/i386/i386bsd.mh: Removed.
5350 * config/i386/i386bsd.mt: Removed.
5351 * config/i386/nm-i386bsd.h: Removed.
5352 * config/i386/tm-i386bsd.h: Removed.
5353 * config/i386/xm-i386bsd.h: Removed.
5354
5355 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5356
5357 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5358 (amd64fbsd_init_abi): Set link map offsets.
5359 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5360 (amd64nbsd_init_abi): Set link map offsets.
5361 * amd64obsd-tdep.c: Include "solib-svr4.h".
5362 (amd64obsd_init_abi): Set link map offsets.
5363 * i386fbsd-tdep.c: Include "solib-svr4.h".
5364 (i386fbsd_init_abi): Set link map offsets.
5365 * i386nbsd-tdep.c: Include "solib-svr4.h".
5366 (i386nbsdelf_init_abi): Set link map offsets.
5367 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5368 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5369 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5370 solib-legacy.o and core-aout.o. Reformat.
5371 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5372 solib-svr4.o, solib-legacy.o. Reformat.
5373 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5374 * config/i386/nbsdelf.mh: Reformat.
5375 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5376 solib-svr4.o, solib-legacy.o and corelow.o.
5377 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5378 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5379 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5380 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5381 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5382 (TM_FILE): Set to tm-fbsd.h.
5383 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5384 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5385 solib-svr4.o.
5386 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5387 solib-svr4.o.
5388 (TM_FILE): Set to nm-nbsd.h.
5389 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5390 Simplify shared library support. Don't include "elf/common.h".
5391 (SVR4_SHARED_LIBS): Don't define.
5392 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5393 "solib.h".
5394 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5395 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5396 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5397 Don't include "i386/tm-i386.h". Include "solib.h".
5398 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5399 Don't include "i386/tm-i386.h".
5400 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5401 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5402 Include "i386/xm-i386.h".
5403 (HOST_LONG_DOUBLE_FORMAT): Remove.
5404
5405 Fix OpenBSD/i386 sigtramp recognition.
5406 * i386-tdep.h: Update copyright year.
5407 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5408 (i386bsd_sigtramp_end): New prototypes.
5409 (i386fbsd_sigtramp_start_addr): Renamed from
5410 i386fbsd_sigtramp_start.
5411 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5412 (i386obsd_sigtramp_start_addr): Renamed from
5413 i386obsd_sigtramp_start.
5414 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5415 * i386bsd-tdep.c: Update copyright year.
5416 (i386bsd_pc_in_sigtramp): Make public.
5417 * i386fbsd-nat.c: Update copyright year.
5418 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5419 * i386fbsd-tdep.c: Update copyright year.
5420 (i386fbsd_sigtramp_start_addr): Renamed from
5421 i386fbsd_sigtramp_start.
5422 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5423 (i386fbsdaout_init_abi): Adjust for renamed variables.
5424 * i386obsd-nat.c: Update copyright year.
5425 (_initialize_i386obsd_nat): Adjust for renamed variables.
5426 * i386obsd-tdep.c: Include "target.h".
5427 (i386obsd_page_size): New variable.
5428 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5429 (i386obsd_sigtramp_end): New functions.
5430 (i386obsd_sigtramp_start_addr): Renamed from
5431 i386obsd_sigtramp_start.
5432 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5433 (i386obsd_init_abi): Adjust for renamed variables. Set
5434 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5435 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5436
5437 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5438 trampoline change in OpenBSD kernel.
5439
5440 * amd64-nat.c: Update copyright year.
5441 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5442 architecture from REGCACHE.
5443
5444 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5445 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5446
5447 2004-02-21 Mark Kettenis <kettenis@gnu.org>
5448
5449 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5450 i[34567]86-*-openbsd3.[0-3].
5451 * config/i386/obsdaout.mh: New file.
5452
5453 * config/i386/obsd.mh (MH_FLAGS): Remove.
5454
5455 Fix PR build/1549.
5456 * i386obsd-tdep.c: Update copyright years. Include
5457 "solib-svr4.h".
5458 (i386obsd_init_abi): Don't set regset_from_core_section here.
5459 (i386obsd_aout_init_abi): New function. Set
5460 regset_from_core_section here.
5461 (i386obsd_elf_init_abi): New function.
5462 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5463 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5464 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5465 (TM_FILE): Set to tm-nbsd.h.
5466
5467 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5468 solib-sunos.o.
5469
5470 * solib-svr4.h: Update copyright year.
5471 (svr4_ilp32_fetch_link_map_offsets)
5472 (svr4_lp64_fetch_link_map_offsets): New prototype.
5473 * solib-svr4.c: Update copyright year.
5474 (svr4_ilp32_fetch_link_map_offsets)
5475 (svr4_lp64_fetch_link_map_offsets): New function.
5476
5477 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
5478
5479 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5480 to the partial symbol table.
5481
5482 2004-02-20 J. brobecker <brobecker@gnat.com>
5483
5484 * PROBLEMS: Add description of problem documented under gdb/1560.
5485
5486 2004-02-20 Mark Kettenis <kettenis@gnu.org>
5487
5488 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5489 comments.
5490 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5491 functions.
5492 (amd64obsd_init_abi): Reorder initializations. Use
5493 amd64obsd_r_reg_offset to initialize the general-purpose register
5494 set details. Set regset_from_core_section.
5495 (_initialize_amd64obsd_tdep): Rename from
5496 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5497 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5498 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5499
5500 * NEWS (New native configurations): Mention OpenBSD/alpha.
5501 * configure.tgt: Add alpha*-*-openbsd*.
5502 * configure.host: Add alpha*-*-openbsd*.
5503 * alphanbsd-tdep.c: Update copyright year.
5504 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5505
5506 2004-02-20 Andrew Cagney <cagney@redhat.com>
5507
5508 Fix PR tdep/1372.
5509 * configure.tgt: Delete target "none-*-*".
5510 * configure.host: Delete host "none-*-*".
5511 * config/none/none.mh: Delete file.
5512 * config/none/none.mt: Delete file.
5513 * config/none/xm-none.h: Delete file.
5514 * config/none/tm-none.h: Delete file.
5515 * config/none/nm-none.h: Delete file.
5516
5517 2004-02-19 Fred Fish <fnf@redhat.com>
5518
5519 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5520 cache->uses_fp prior to setting it.
5521
5522 2004-02-19 Fred Fish <fnf@redhat.com>
5523
5524 Fix for PR breakpoint/1558.
5525 * sh-tdep.c (IS_JSR): New macro.
5526 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5527
5528 2004-02-19 Jim Blandy <jimb@redhat.com>
5529
5530 * findvar.c (value_from_register): Doc fix.
5531
5532 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5533
5534 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5535 type being greater than sizeof of host's LONGEST. Always use
5536 unpack_long() unless format 'f' chosen.
5537
5538 2004-02-19 Joel Brobecker <brobecker@gnat.com>
5539
5540 Committed by Elena Zannoni <ezannoni@redhat.com>
5541
5542 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5543 contains a symbol wich is the best, non-exact match for the given
5544 pc. Update comments.
5545
5546 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
5547
5548 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5549 macro, which was part of the now removed Mach 3 port.
5550 * utils.c (request_quit): Ditto.
5551
5552 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5553
5554 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5555 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5556
5557 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5558
5559 Committed by Mark Kettenis <kettenis@gnu.org>.
5560
5561 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5562 Define.
5563
5564 2004-02-18 Andrew Cagney <cagney@redhat.com>
5565
5566 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5567 CONFIG_INSTALL and CONFIG_UNINSTALL.
5568 * configure: Re-generate.
5569 * interps.h (INTERP_TUI): Define.
5570 * Makefile.in: Update dependencies.
5571 (TUI): New macro.
5572 (tui-main.o): Specify dependencies.
5573 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5574 * tui/tui-main.c: New file.
5575
5576 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5577
5578 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5579 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5580 dependencies.
5581 * configure.host: Add x86_64-*-openbsd*.
5582 * configure.tgt: Add x86_64-*-openbsd*.
5583 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5584
5585 * tui/tui.c: Don't include <malloc.h>.
5586
5587 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5588 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5589 amd64nbsd-tdep.c.
5590
5591 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
5592 static. Remove extraneous whitespace.
5593 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5594 static.
5595
5596 2004-02-17 Jim Blandy <jimb@redhat.com>
5597
5598 * findvar.c (value_from_register): Doc fix.
5599
5600 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5601
5602 Committed by Jim Blandy <jimb@redhat.com>.
5603
5604 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
5605 CORE_ADDR as type for selectors. Correct types for GNU run time
5606 message lookup function to use double indirection.
5607 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5608 * objc-lang.h (lookup_child_selector): Adapt prototype.
5609
5610 * s390-nat.c (SUBOFF): New macro.
5611 (supply_gregset, fill_gregset): Use it to handle debugging
5612 of 32-bit exectuables running under a 64-bit kernel.
5613 * s390-tdep.c: Include "solib-svr4.h".
5614 (s390_svr4_fetch_link_map_offset): New function.
5615 (s390x_svr_fetch_link_map_offset): Likewise.
5616 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5617 * Makefile.in (s390-tdep.o): Update dependencies.
5618
5619 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5620 "frame-unwind.h".
5621 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5622 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5623 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5624 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5625 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5626 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
5627 S390_SIGNAL_FRAMESIZE,
5628 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5629 (struct frame_extra_info): Remove.
5630 (s390_memset_extra_info): Remove.
5631 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5632 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5633 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
5634 (is_rse): Renamed to ...
5635 (is_rsy): ... this. Support long displacements.
5636 (is_rxe): Renamed to ...
5637 (is_rxy): ... this. Support long displacements.
5638 (compute_x_addr): Support long displacements.
5639 (struct s390_prologue_data): New data type.
5640 (s390_on_stack): Change API to use struct s390_prologue_data.
5641 (s390_store): Reimplement.
5642 (s390_load): New function.
5643 (s390_get_signal_frame_info): Remove.
5644 (s390_get_frame_info): Remove, replace by ...
5645 (s390_analyze_prolog): ... this new function.
5646 (s390_check_function_end): Remove.
5647 (s390_function_start): Remove.
5648 (s390_frameless_function_invokation): Remove.
5649 (s390_is_sigreturn): Remove.
5650 (s390_init_frame_pc_first): Remove.
5651 (s390_init_frame_extra_info): Remove.
5652 (s390_frame_init_saved_regs): Remove.
5653 (s390_frame_saved_pc_nofix): Remove.
5654 (s390_frame_saved_pc): Remove.
5655 (s390_frame_chain): Remove.
5656 (s390_fp_regnum, s390_read_fp): Remove.
5657 (s390_pop_frame_regular, s390_pop_frame): Remove.
5658 (s390_saved_pc_after_call): Remove.
5659 (s390_skip_prologue): Reimplement.
5660 (s390_in_function_epilogue_p): Support long displacements.
5661 (struct s390_unwind_cache): New data structure.
5662 (s390_frame_unwind_cache): New function.
5663 (s390_prologue_frame_unwind_cache): Likewise.
5664 (s390_backchain_frame_unwind_cache): Likewise.
5665 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5666 (s390_frame_unwind): Define.
5667 (s390_frame_sniffer): New function.
5668 (struct s390_pltstub_unwind_cache): New data structure.
5669 (s390_pltstub_frame_unwind_cache): New function.
5670 (s390_pltstub_frame_this_id): Likewise.
5671 (s390_pltstub_frame_prev_register): Likewise.
5672 (s390_pltstub_frame_unwind): Define.
5673 (s390_pltstub_frame_sniffer): New function.
5674 (struct s390_sigtramp_unwind_cache): New data structure.
5675 (s390_sigtramp_frame_unwind_cache): New function.
5676 (s390_sigtramp_frame_this_id): Likewise.
5677 (s390_sigtramp_frame_prev_register): Likewise.
5678 (s390_sigtramp_frame_unwind): Define.
5679 (s390_sigtramp_frame_sniffer): New function.
5680 (s390_frame_base_address, s390_local_base_address): New functions.
5681 (s390_frame_base): Define.
5682 (s390_unwind_pc, s390_unwind_sp): New function.
5683 (s390_push_dummy_call): Use new frame base location.
5684 (s390_unwind_dummy_id): Likewise.
5685 (s390_gdbarch_init): Remove calls to:
5686 set_gdbarch_frameless_function_invocation,
5687 set_gdbarch_deprecated_init_frame_pc,
5688 set_gdbarch_deprecated_frame_chain,
5689 set_gdbarch_deprecated_frame_init_saved_regs,
5690 set_gdbarch_deprecated_pop_frame,
5691 set_gdbarch_deprecated_init_extra_frame_info,
5692 set_gdbarch_deprecated_init_frame_pc_first,
5693 set_gdbarch_deprecated_target_read_fp,
5694 set_gdbarch_deprecated_frame_saved_pc,
5695 set_gdbarch_deprecated_saved_pc_after_call,
5696 set_gdbarch_deprecated_fp_regnum.
5697 Add calls to:
5698 set_gdbarch_in_solib_call_trampoline,
5699 frame_unwind_append_sniffer,
5700 frame_base_set_default,
5701 set_gdbarch_unwind_pc,
5702 set_gdbarch_unwind_sp.
5703 * Makefile.in (s390-tdep.o): Update dependencies.
5704
5705 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5706 (S390_STACK_FRAME_OVERHEAD): Remove.
5707 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5708 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5709 (s390_promote_integer_argument): Remove.
5710 (s390_cannot_extract_struct_value_address): Remove.
5711 (s390_use_struct_convention, s390_store_struct_return): Remove.
5712 (s390_extract_return_value, s390_store_return_value): Remove.
5713 (s390_return_value_convention, s390_return_value): New functions.
5714 (is_float_singleton): Handle typedefs.
5715 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5716 Remove, replace by ...
5717 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5718 s390_function_arg_integer): ... these new functions.
5719 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5720 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5721 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5722 Fill in tdep->abi.
5723 Remove calls to:
5724 set_gdbarch_deprecated_store_struct_return,
5725 set_gdbarch_deprecated_extract_return_value,
5726 set_gdbarch_deprecated_store_return_value,
5727 set_gdbarch_use_struct_convention,
5728 set_gdbarch_extract_struct_value_address,
5729 set_gdbarch_deprecated_pc_in_call_dummy,
5730 set_gdbarch_deprecated_push_arguments,
5731 set_gdbarch_deprecated_save_dummy_frame_tos,
5732 set_gdbarch_deprecated_push_return_address,
5733 set_gdbarch_deprecated_sizeof_call_dummy_words,
5734 set_gdbarch_deprecated_call_dummy_words,
5735 set_gdbarch_deprecated_dummy_write_sp.
5736 Add calls to:
5737 set_gdbarch_push_dummy_call,
5738 set_gdbarch_unwind_dummy_id,
5739 set_gdbarch_return_value.
5740
5741 * config/s390/nm-linux.h: Update comments.
5742 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5743 (STOPPED_BY_WATCHPOINT): Redefine.
5744 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5745 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5746 (s390_stopped_by_watchpoint): Likewise.
5747 (watch_area_cnt): Remove.
5748 * s390-nat.c: Update comments.
5749 (watch_area): Remove typedef.
5750 Global replace watch_area by struct watch_area.
5751 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
5752 (s390_stopped_by_watchpoint): Remove pid argument,
5753 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5754 (s390_fix_watch_points): Remove pid argument,
5755 use s390_inferior_tid. Recompute area spanned by watchpoints.
5756 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5757 argument. Reimplement.
5758
5759 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5760 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5761 (FETCH_INFERIOR_REGISTERS): Define.
5762 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
5763 core-regset.o.
5764 * config/s390/s390x.mt: Remove.
5765 * config/s390/tm-s390.h: Remove.
5766 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5767 (TARGET_ELF64): Remove.
5768 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5769 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5770 s390*-*-* case; always set gdb_target to s390.
5771 * regformats/reg-s390.dat: Remove control registers.
5772 * regformats/reg-s390x.dat: Likewise.
5773 * s390-tdep.h: New file.
5774 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
5775 Include "inferior.h" and "s390-tdep.h".
5776 Remove private definition of offsetof.
5777 (s390_register_u_addr): Remove.
5778 (regmap_gregset, regmap_fpregset): Define.
5779 (supply_gregset, fill_gregset): Reimplement.
5780 (supply_fpregset, fill_fpregset): Likewise.
5781 (s390_inferior_tid): New function.
5782 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5783 (fetch_inferior_registers, store_inferior_registers): Likewise.
5784 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5785 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5786 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5787 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5788 (struct gdbarch_tdep): Define.
5789 (struct s390_register_info): Define.
5790 (s390_register_info): New variable.
5791 (s390_register_name): Reimplement.
5792 (s390_register_type): New function.
5793 (s390_register_raw_size, s390x_register_raw_size): Remove.
5794 (s390_cannot_fetch_register): Remove.
5795 (s390_register_byte): Remove.
5796 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5797 (s390_dwarf_regmap): New variable.
5798 (s390_dwarf_reg_to_regnum): New function.
5799 (s390_stab_reg_to_regnum): Remove.
5800 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5801 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5802 (s390_convert_register_p): Likewise.
5803 (s390_register_to_value, s390_value_to_register): Likewise.
5804 (s390_register_reggroup_p): Likewise.
5805 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5806 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5807 (s390_supply_regset, s390_regset_from_core_section): New functions.
5808 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5809 (S390_FPR_SIZE): Likewise.
5810 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5811 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5812 (S390_NUM_GPRS): Move here from tm-s390.h.
5813 (S390_NUM_FPRS): Likewise.
5814 (s390_in_function_epilogue_p): New function.
5815 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5816 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5817 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5818 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5819 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5820 Remove calls to:
5821 set_gdbarch_deprecated_max_register_raw_size,
5822 set_gdbarch_deprecated_max_register_virtual_size,
5823 set_gdbarch_deprecated_register_byte,
5824 set_gdbarch_cannot_fetch_register,
5825 set_gdbarch_cannot_store_register,
5826 set_gdbarch_deprecated_register_size,
5827 set_gdbarch_deprecated_register_raw_size,
5828 set_gdbarch_deprecated_register_virtual_size,
5829 set_gdbarch_deprecated_register_virtual_type,
5830 set_gdbarch_deprecated_register_bytes.
5831 Add calls to:
5832 set_gdbarch_num_pseudo_regs,
5833 set_gdbarch_register_type,
5834 set_gdbarch_convert_register_p,
5835 set_gdbarch_register_to_value,
5836 set_gdbarch_value_to_register,
5837 set_gdbarch_register_reggroup_p,
5838 set_gdbarch_regset_from_core_section,
5839 set_gdbarch_pseudo_register_read,
5840 set_gdbarch_pseudo_register_write,
5841 set_gdbarch_in_function_epilogue_p.
5842 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5843 (s390_tdep_h): New variable.
5844
5845 2004-02-17 Jim Blandy <jimb@redhat.com>
5846
5847 * findvar.c (value_from_register): If the type has no length, just
5848 return an acceptable value --- don't report an internal error.
5849
5850 * stabsread.c (read_type): If we find any type numbers that are
5851 forward references, complain if the references aren't resolved by
5852 the time we're finished reading.
5853 (cleanup_undefined_types): Make error message more appropriate for
5854 a complaint.
5855
5856 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
5857
5858 * Makefile.in (defs_h): Remove dependency on progress_h.
5859 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5860 progress.h.
5861 * main.c (captured_main): Delete use of START_PROGRESS and
5862 END_PROGRESS.
5863
5864 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
5865
5866 * objfiles.c (terminate_minimal_symbol_table): Add back
5867 initialization of MSYMBOL_TYPE.
5868
5869 2004-02-17 David Mosberger <davidm@hpl.hp.com>
5870
5871 Committed by Andrew Cagney.
5872 * Makefile.in (ia64_tdep_h): New macro.
5873 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5874 (ia64-tdep.o): Likewise.
5875 * ia64-tdep.h: New file.
5876 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5877 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5878 (ia64_aix_sigcontext_register_address): Likewise.
5879 (ia64_linux_getunwind_table): Delete declaration.
5880 * ia64-linux-tdep.c: Likewise.
5881
5882 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
5883
5884 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5885 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5886 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5887
5888 2004-02-17 Andrew Cagney <cagney@redhat.com>
5889
5890 * symtab.c (skip_prologue_using_sal): New function.
5891 * symtab.h (skip_prologue_using_sal): Declare.
5892 * frv-tdep.c: Include "symtab.h".
5893 (skip_prologue_using_sal): Delete function.
5894 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5895 * rs6000-tdep.c (refine_prologue_limit): Mention
5896 skip_prologue_using_sal.
5897 * ia64-tdep.c (refine_prologue_limit): Ditto.
5898 * Makefile.in: Update dependencies.
5899
5900 2004-02-16 Andrew Cagney <cagney@redhat.com>
5901
5902 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5903 START_INFERIOR_TRAPS_EXPECTED.
5904 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5905 START_INFERIOR_TRAPS_EXPECTED.
5906 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5907 Delete macro.
5908 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5909 macro, moved to "nm-osf.h". Update copyright.
5910 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5911 update copyright.
5912
5913 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5914 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5915 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5916 frameless_look_for_prologue.
5917 * frame.h (legacy_frameless_look_for_prologue): Rename
5918 frameless_look_for_prologue.
5919 * gdbarch.h, gdbarch.c: Re-generate.
5920 * sh64-tdep.c (sh64_gdbarch_init): Update.
5921 * sh-tdep.c (sh_gdbarch_init): Update.
5922 * s390-tdep.c (s390_gdbarch_init): Update.
5923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5924 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5925 * m68k-tdep.c (m68k_gdbarch_init): Update.
5926 (delta68_frame_args_address): Update.
5927 * m32r-tdep.c (m32r_gdbarch_init): Update.
5928 * hppa-tdep.c (hppa_gdbarch_init): Update.
5929 * h8300-tdep.c (h8300_gdbarch_init): Update.
5930 * frv-tdep.c (frv_gdbarch_init): Update.
5931 (frv_frameless_function_invocation): Update.
5932 * cris-tdep.c (cris_gdbarch_init): Update.
5933 (cris_frameless_function_invocation): Update.
5934 * avr-tdep.c (avr_gdbarch_init): Update.
5935 * arm-tdep.c (arm_gdbarch_init): Update.
5936 * stack.c (frame_info): Update, call predicate.
5937 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5938 * frame.c (legacy_get_prev_frame): Update, call predicate..
5939 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5940 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5941 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5942 invocation.
5943 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5944 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5945 * vax-tdep.c (vax_gdbarch_init): Ditto.
5946
5947 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5948 function.
5949
5950 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
5951
5952 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5953 initializations.
5954
5955 2004-02-16 Andrew Cagney <cagney@redhat.com>
5956
5957 * tui/tui-windata.c: Include "gdb_string.h".
5958 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5959 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5960 * Makefile.in: Update dependencies.
5961
5962 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
5963
5964 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5965 * infrun.c: Include "gdb_assert.h".
5966 (singlestep_ptid, saved_singlestep_ptid)
5967 (stepping_past_singlestep_breakpoint): New variables.
5968 (resume): Set singlestep_ptid. Check for singlestep thread
5969 hop.
5970 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5971 (handle_inferior_event): Handle singlestep thread hop.
5972
5973 2004-02-16 Andrew Cagney <cagney@redhat.com>
5974
5975 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5976 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5977 (dwarf2_frame_init_reg): Ditto.
5978
5979 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5980 suggested by Joshua Neuheisel
5981
5982 * configure.in: Always check for curses, including pdcurses.
5983 Warn, instead of error, when no curses are found. Enable TUI when
5984 curses is available.
5985 * configure: Re-generate.
5986
5987 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
5988
5989 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5990 sh_sh4_register_convert_to_virtual.
5991 (sh_register_convert_to_raw): Rename from
5992 sh_sh4_register_convert_to_raw.
5993 (sh_pseudo_register_read): Accomodate above name change.
5994 (sh_pseudo_register_write): Ditto.
5995
5996 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
5997
5998 * sh-tdep.c (sh_generic_register_name): Remove.
5999 (sh_gdbarch_init): Use sh_sh_register_name in default case.
6000
6001 2004-02-15 Andrew Cagney <cagney@redhat.com>
6002
6003 * configure.in (build_warnings): Add -Wunused-function.
6004 * configure: Re-generate.
6005
6006 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
6007 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
6008
6009 * procfs.c (procfs_init_inferior): Assume that
6010 START_INFERIOR_TRAPS_EXPECTED is defined.
6011 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
6012 * config/ns32k/tm-nbsd.h: Delete file,
6013 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
6014
6015 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
6016 * config/vax/tm-vax.h: Delete file.
6017
6018 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6019 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6020 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6021 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6022 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
6023 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6024 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
6025
6026 2004-02-15 Mark Kettenis <kettenis@gnu.org>
6027
6028 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
6029 * dwarf2-frame.c (dwarf2_frame_data): New variable.
6030 (struct dwarf2_frame_ops): New.
6031 (dwarf2_frame_default_init_reg): New function, based on
6032 dwarf2_frame_init_reg.
6033 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
6034 (dwarf2_frame_init_reg): Call architecture-specific function.
6035 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
6036 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
6037 instead of dwarf2_frame_data.
6038 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
6039 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
6040
6041 2004-02-15 Andrew Cagney <cagney@redhat.com>
6042
6043 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
6044 register_gdbarch_swap.
6045 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
6046 * f-lang.c (_initialize_f_language): Update, use
6047 DEPRECATED_REGISTER_GDBARCH_SWAP.
6048 * remote.c (_initialize_remote): Ditto.
6049 * regcache.c (_initialize_regcache): Ditto.
6050 * parse.c (_initialize_parse): Ditto.
6051 * infrun.c (_initialize_infrun): Ditto.
6052 * mi/mi-main.c (_initialize_mi_main): Ditto.
6053 * gdbtypes.c (_initialize_gdbtypes): Ditto.
6054
6055 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
6056 poking .cacheable directly.
6057 * symfile.c (symfile_bfd_open): Ditto.
6058
6059 * Makefile.in: Update all dependencies.
6060
6061 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
6062 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
6063 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
6064 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
6065 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
6066
6067 2004-02-14 Andrew Cagney <cagney@redhat.com>
6068
6069 * arch-utils.c (legacy_convert_register_p): Check
6070 DEPRECATED_REGISTER_CONVERTIBLE_P.
6071 * findvar.c (value_of_register): Ditto.
6072
6073 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
6074 * gdbarch.h, gdbarch.c: Re-generate.
6075 * arch-utils.c (deprecated_register_convertible_not): Delete.
6076 * arch-utils.h (deprecated_register_convertible_not): Delete.
6077 * mi/mi-main.c (get_register): Update. Update copyright.
6078 * infcmd.c (default_print_registers_info): Update.
6079
6080 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6081 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
6082 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
6083 * gdbarch.h, gdbarch.c: Re-generate.
6084 * frame.c (deprecated_get_next_frame_hack): Delete function.
6085 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
6086 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6087 Update.
6088 * infcall.c (call_function_by_hand): Update.
6089
6090 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
6091
6092 * symfile.c (init_entry_point_info, entry_point_address): Move
6093 from here...
6094 * objfiles.c (init_entry_point_info, entry_point_address):..to
6095 here.
6096 * symfile.h (init_entry_point_info, entry_point_address): Remove
6097 prototypes.
6098 * objfiles.h (init_entry_point_info, entry_point_address):Add
6099 prototypes.
6100 * cris-tdep.c: Remove include of symfile.h. Add include of
6101 objfiles.h.
6102 * infcall.c: Ditto.
6103 * mcore-tdep.c: Ditto.
6104 * mn10300-tdep.c: Ditto.
6105 * sh64-tdep.c: Ditto.
6106 * v850-tdep.c: Ditto.
6107 * arm-tdep.c: Remove include of symfile.h.
6108 * blockframe.c: Ditto.
6109 * coffread.c: Ditto.
6110 * dbxread.c: Ditto.
6111 * dwarf2read.c: Ditto.
6112 * dwarfread.c: Ditto.
6113 * frv-tdep.c: Ditto.
6114 * ia64-tdep.c: Ditto.
6115 * mdebugread.c: Ditto.
6116 * mipsread.c: Ditto.
6117 * rs6000-tdep.c: Ditto.
6118 * s390-tdep.c: Ditto.
6119 * sh-tdep.c: Ditto.
6120 * xstormy16-tdep.c: Ditto.
6121 * gdbarch.sh: Remove include of symfile.h.
6122 * gdbarch.c: Regenerate.
6123 * solib-irix.c (enable_break): Use entry_point_address().
6124 Add comment about include file.
6125 * xcoffread.c: Add comment about include file.
6126 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
6127 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
6128 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
6129 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
6130 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
6131
6132 2004-02-13 Andrew Cagney <cagney@redhat.com>
6133
6134 * corelow.c (core_xfer_partial): Use "struct bfd_section".
6135 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
6136 copyright.
6137 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
6138
6139 2004-02-12 Fred Fish <fnf@redhat.com>
6140
6141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
6142 set_gdbarch_store_return_value.
6143
6144 2004-02-12 Andrew Cagney <cagney@redhat.com>
6145
6146 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
6147 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
6148 (interrupt_query): Ditto.
6149 (ofunc): Delete unused variable.
6150 * cris-tdep.c (cris_abi): Delete unused function.
6151 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
6152 (cris_get_wide_opcode, cris_get_short_size): Ditto.
6153 (cris_get_asr_quick_shift_steps): Ditto.
6154 (cris_skip_prologue_frameless_p): Ditto.
6155 * arm-tdep.c (arm_push_return_address): Delete unused function.
6156 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
6157 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
6158 * s390-tdep.c (s390_function_start): Delete unused function.
6159
6160 2004-02-12 Andrew Cagney <cagney@redhat.com>
6161
6162 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
6163 gdbarch.h, gdbarch.c: Re-generate.
6164 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
6165 to generic_prologue_frameless_p.
6166 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
6167 * arch-utils.c (generic_prologue_frameless_p): Delete function.
6168
6169 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
6170
6171 * mips-linux-tdep.c: Include "frame.h".
6172 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
6173 (mips_linux_skip_resolver): New functions.
6174 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
6175 and set_gdbarch_in_solib_call_trampoline.
6176 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
6177 to after set_gdbarch_in_solib_return_trampoline. Only set the
6178 solib hooks to mips16 functions if the OS ABI is unknown.
6179 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
6180 including "config/tm-linux.h".
6181 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
6182 * Makefile.in (mips-linux-tdep.o): Update.
6183
6184 2004-02-11 David Carlton <carlton@kealia.com>
6185
6186 * linespec.c (decode_compound): Only look for a class symbol when
6187 considering all but the rightmost component.
6188
6189 2004-02-11 Andrew Cagney <cagney@redhat.com>
6190
6191 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
6192 abi code are are separatly grouped.
6193
6194 2004-02-11 Andrew Cagney <cagney@redhat.com>
6195
6196 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
6197 * gdbarch.h, gdbarch.c: Re-generate.
6198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6199 * v850-tdep.c (v850_gdbarch_init): Update.
6200 * sh64-tdep.c (sh64_gdbarch_init): Update.
6201 * sh-tdep.c (sh_gdbarch_init): Update.
6202 * s390-tdep.c (s390_gdbarch_init): Update.
6203 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6204 * mips-tdep.c (mips_gdbarch_init): Update.
6205 * mcore-tdep.c (mcore_gdbarch_init): Update.
6206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6207 * m32r-tdep.c (m32r_gdbarch_init): Update.
6208 * ia64-tdep.c (ia64_gdbarch_init): Update.
6209 * hppa-tdep.c (hppa_gdbarch_init): Update.
6210 * h8300-tdep.c (h8300_gdbarch_init): Update.
6211 * frv-tdep.c (frv_gdbarch_init): Update.
6212 * d10v-tdep.c (d10v_gdbarch_init): Update.
6213 * cris-tdep.c (cris_gdbarch_init): Update.
6214 * avr-tdep.c (avr_gdbarch_init): Update.
6215 * arm-tdep.c (arm_gdbarch_init): Update.
6216 * alpha-tdep.c (alpha_gdbarch_init): Update.
6217
6218 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
6219
6220 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
6221 comma.
6222 (sh_sh4al_dsp_register_name): Ditto.
6223
6224 2004-02-10 Andrew Cagney <cagney@redhat.com>
6225
6226 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
6227 (mips_init_frame_pc_first): Delete function.
6228 (mips_frame_saved_pc): Delete function.
6229 (mips_frame_chain): Delete function.
6230 (mips_init_extra_frame_info): Delete function.
6231 (mips_xfer_register): Delete unused variable "reg".
6232 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
6233 (mips_n32n64_return_value): Delete unused variable "reg".
6234 (mips_n32n64_return_value): Delete unused variable "pos".
6235 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
6236 (mips_o32_return_value): Delete unused variable "pos".
6237 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
6238 (mips_print_fp_register): Delete unused variable "namelen"
6239 (mips_print_fp_register): Delete unused variable "flt2"
6240 (get_frame_pointer): Delete function.
6241 (cached_proc_desc): Delete static variable.
6242 (mips_pop_frame): Delete function.
6243 (mips_find_saved_regs): Delete function.
6244 (mips_get_saved_register): Delete function.
6245 (mips_saved_pc_after_call): Delete function.
6246 (SIGFRAME_BASE): Delete macro.
6247 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
6248 (SIGFRAME_PC_OFF): Delete macro.
6249 (SIGFRAME_REGSAVE_OFF): Delete macro.
6250 (mips_dump_tdep): Do not print deleted macro definitions.
6251
6252 2004-02-10 Andrew Cagney <cagney@redhat.com>
6253
6254 * Makefile.in (SFILES): Remove explictly listed tui files.
6255 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6256
6257 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
6258
6259 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6260 to use paddr functions to format ia64 addresses and long values.
6261 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6262 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6263 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6264 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6265 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6266
6267 2004-02-10 Andrew Cagney <cagney@redhat.com>
6268
6269 * defs.h: Do not include "tui.h".
6270 * gdb_curses.h: New file.
6271 * tui/tui-hooks.h: New file.
6272 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6273 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6274 (tui_initialize_io): Delete declaration.
6275 (tui_initialize_readline: Delete redundant declaration.
6276 (struct tui_point): Delete definition.
6277 * tui/tui-data.h (struct tui_point): Define.
6278 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6279 * utils.c: Include "tui/tui.h".
6280 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6281 * printcmd.c [TUI]: Include "tui/tui.h".
6282 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6283 * tui/tui-command.c: Include "gdb_curses.h".
6284 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6285 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6286 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6287 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6288 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6289 * Makefile.in: Update all dependencies.
6290 (tui_hooks_h, gdb_curses_h): Define.
6291 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6292
6293 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
6294
6295 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6296 auxf2. Add comments about some other rarely used fields.
6297
6298 2004-02-10 Andrew Cagney <cagney@redhat.com>
6299
6300 * Makefile.in (init.c): Fix script removing duplicates. Problem
6301 reported by Peter Schauer.
6302
6303 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6304
6305 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6306 obstack_specify_allocation.
6307 * objfiles.c (allocate_objfile): Ditto.
6308 * solib-sunos.c (solib_add_common_symbols)
6309 (allocate_rt_common_objfile): Ditto.
6310 * symfile.c (reread_symbols): Ditto.
6311 * gdb_obstack.h: Add comment.
6312
6313 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6314
6315 * linespec.c (decode_line_1, locate_first_half)
6316 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6317 commented out code.
6318
6319 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
6320
6321 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6322 obstack_free.
6323
6324 2004-02-09 Andrew Cagney <cagney@redhat.com>
6325
6326 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6327 fails, try find_pc_section. Fix PR c++/1267.
6328 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6329 instead of find_pc_mapped_section.
6330 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6331 not default to the section containing PC. Fix PR symtab/1519.
6332
6333 2004-02-09 Andrew Cagney <cagney@redhat.com>
6334
6335 * Makefile.in (mips-tdep.o): Update dependencies.
6336 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6337 "trad-frame.h".
6338 (mips_unwind_pc): Return the pseudo PC register.
6339 (mips_unwind_dummy_id): New function.
6340 (mips16_fetch_instruction): New function.
6341 (mips32_fetch_instruction): New function.
6342 (struct mips_frame_cache): Define.
6343 (mips_mdebug_frame_cache): New function.
6344 (mips_mdebug_frame_this_id): New function.
6345 (mips_mdebug_frame_prev_register): New function.
6346 (mips_mdebug_frame_unwind): Define.
6347 (mips_mdebug_frame_sniffer): New function.
6348 (mips_mdebug_frame_base_address): New function.
6349 (mips_mdebug_frame_base): Define.
6350 (mips_mdebug_frame_base_sniffer): New function.
6351 (mips_gdbarch_init): Append unwind and base sniffers. Set
6352 unwind_dummy_id.
6353
6354 2004-02-08 Andrew Cagney <cagney@redhat.com>
6355
6356 * frame.c: Print both the register number and name.
6357
6358 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6359 and a sed into a single sed. Make .c and .o patterns more robust.
6360 (OBS): Delete.
6361 (INIT_FILES): Replace OBS with COMMON_OBS.
6362 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6363
6364 2004-02-08 Mark Kettenis <kettenis@gnu.org>
6365
6366 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6367 the PT_WCOOKIE request.
6368
6369 2004-02-08 Andrew Cagney <cagney@redhat.com>
6370
6371 * mips-tdep.c (mips_unwind_pc): New function.
6372 (mips_gdbarch_init): Set mips_unwind_pc.
6373
6374 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6375 (get_frame_id): Allow the UNKNOWN_FRAME.
6376 (frame_register_unwind, get_frame_type): Ditto.
6377
6378 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6379 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6380 unwind_dummy_id indicates a legacy frame.
6381
6382 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6383 * configure: Re-generate.
6384
6385 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6386 methods.
6387
6388 2004-02-08 Andrew Cagney <cagney@redhat.com>
6389
6390 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6391 makefile macro.
6392 * configure: Re-generate.
6393 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6394 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6395 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6396 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6397 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6398 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6399 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6400 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6401 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6402 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6403
6404 2004-02-07 Andrew Cagney <cagney@redhat.com>
6405
6406 * Makefile.in: Update all dependencies.
6407
6408 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6409 * configure: Re-generate.
6410 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6411 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6412 (COMMON_OBS): Add "main.o" and "annotate.o".
6413 (ANNOTATE_OBS): Delete.
6414 (OBS): Remove ANNOTATE_OBS.
6415 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6416 CONFIG_INITS.
6417 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6418 against CONFIG_OBS and "main.o".
6419 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6420 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6421
6422 * tui/tui-command.c: Include "gdb_string.h", delete register
6423 attribute, use ISO-C function signatures.
6424 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6425 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6426 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6427 * tui/tui.c: Ditto.
6428
6429 * tui/tui-command.c: Change variable and function names to lower
6430 case.
6431 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6432 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6433 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6434 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6435 * tui/tui-winsource.c, tui/tui.c: Ditto.
6436
6437 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6438
6439 * buildsym.c (free_pending_blocks, finish_block)
6440 (record_pending_block, make_blockvector, end_symtab): Replace
6441 symbol_obstack with objfile_obstack.
6442 * coffread.c (process_coff_symbol, coff_read_struct_type)
6443 (coff_read_enum_type): Ditto.
6444 * cp-namespace.c (initialize_namespace_symtab)
6445 (check_one_possible_namespace_symbol): Ditto.
6446 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
6447 (dwarf2_symbol_mark_computed): Ditto.
6448 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6449 * elfread.c (elf_symtab_read): Ditto.
6450 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6451 (hpread_read_enum_type, hpread_read_function_type)
6452 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6453 Ditto.
6454 * jv-lang.c (get_java_class_symtab, add_class_symbol)
6455 (java_link_class_type): Ditto.
6456 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
6457 (new_symbol): Ditto.
6458 * minsyms.c (install_minimal_symbols): Ditto.
6459 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6460 (terminate_minimal_symbol_table): Replace symbol_obstack with
6461 objfile_obstack.
6462 (free_objfile): Remove freeing of symbol_obstack.
6463 * objfiles.h: Remove symbol_obstack field.
6464 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6465 objfile_obstack.
6466 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6467 symbol_obstack.
6468 (solib_add_common_symbols): Replace symbol_obstack with
6469 objfile_obstack.
6470 * somsolib.c (som_solib_add): Ditto.
6471 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6472 (common_block_start, common_block_end): Ditto.
6473 * symfile.c (reread_symbols): Remove freeing and init of
6474 symbol_obstack.
6475 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6476 * symfile.h: Update comment.
6477 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6478 stats printing.
6479 * symtab.c (symbol_set_names): Replace symbol_obstack with
6480 objfile_obstack.
6481 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6482 Update comments.
6483 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6484 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6485 objfile_obstack.
6486
6487 2004-02-07 Andrew Cagney <cagney@redhat.com>
6488
6489 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6490 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6491 fields and variables.
6492 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6493 (m_beInvisible): Delete macro.
6494 * tui/tui-data.h: Fix case case fields and variables.
6495 (m_genWinPtrIsNull): Delete macro.
6496 (tui_win_list): Rename winList.
6497 (TUI_SRC_WIN): Rename srcWin.
6498 (TUI_DISASM_WIN): Rename disassemWin.
6499 (TUI_DATA_WIN): Rename dataWin.
6500 (TUI_CMD_WIN): Rename cmdWin.
6501 (m_genWinPtrNotNull): Delete macro.
6502 (m_winPtrIsNull): Delete macro.
6503 (m_winPtrNotNull): Delete macro.
6504 (tui_win_is_source_type): Replace m_winIsSourceType
6505 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6506 (tui_win_has_locator): Replace m_hasLocator.
6507 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6508 m_setWinHighlightOff.
6509 * tui/tui-data.c: Update references.
6510 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6511 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6512 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6513 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6514 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6515 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6516 * tui/tui-winsource.c, tui/tui.c: Ditto.
6517
6518 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6519
6520 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6521 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6522 StackGhost.
6523
6524 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6525 variable `i6' to `i7'.
6526 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6527
6528 2004-02-07 Andrew Cagney <cagney@redhat.com>
6529
6530 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6531 (TuiPoint, TuiPointPtr): Ditto.
6532 (TuiStatus, TuiStatusPtr): Ditto.
6533 (TuiWinType, TuiWinTypePtr): Ditto.
6534 (struct tui_point): Rename _TuiPoint.
6535 (tui_get_low_disassembly_address): Rename
6536 tuiGetLowDisassemblyAddress.
6537 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6538 (tuiFree): Delete declaration.
6539 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6540 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6541 * tui/tui.c (tuiFree): Delete function.
6542 * cli/cli-cmds.c (disassemble_command): Update references.
6543 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6544 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6545 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6546 * tui/tui-winsource.c: Ditto.
6547
6548 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6549
6550 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6551 coffstab_build_psymtabs, elfstab_build_psymtabs)
6552 (stabsect_build_psymtabs): Replace psymbol_obstack with
6553 objfile_obstack.
6554 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6555 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6556 Ditto.
6557 * dwarfread.c (scan_compilation_units): Ditto.
6558 * elfread.c (elfstab_offset_sections): Ditto.
6559 * hppa-tdep.c (read_unwind_info): Ditto.
6560 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6561 (hpread_end_psymtab): Ditto.
6562 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6563 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6564 Ditto.
6565 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6566 * objfiles.c (add_to_objfile_sections)
6567 (build_objfile_section_table): Ditto.
6568 (allocate_objfile): Remove init of psymbol_obstack.
6569 (free_objfile): Remove freeing of psymbol_obstack.
6570 * objfiles.h (struct objfile): Remove field
6571 psymbol_obstack. Update comments.
6572 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6573 psymbol_obstack with objfile_obstack.
6574 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6575 psymbol_obstack.
6576 * somread.c (som_symfile_offsets, init_import_symbols)
6577 (init_export_symbols): Replace psymbol_obstack with
6578 objfile_obstack.
6579 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6580 * symfile.c (default_symfile_offsets, syms_from_objfile)
6581 (reread_symbols): Remove freeing and init of psymbol_obstack.
6582 (cashier_psymtab): Update comment.
6583 * symmisc.c (print_objfile_statistics): Don't report stats for
6584 psymbol obstack.
6585 * symtab.h (struct general_symbol_info, struct partial_symtab):
6586 Update comments.
6587 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6588 (xcoff_symfile_offsets): Replace psymbol_obstack with
6589 objfile_obstack.
6590
6591 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6592
6593 * objfiles.h (struct objfile): Add objfile_obstack field.
6594 Remove type_obstack field.
6595
6596 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6597 read_structure_scope read_enumeration, new_symbol): Replace
6598 type_obstack with objfile_obstack.
6599 * dwarfread.c (struct_type, enum_type): Ditto.
6600 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
6601 (lookup_fundamental_type): Ditto.
6602 * gdbtypes.h (TYPE_ALLOC): Ditto.
6603 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6604 (hpread_read_doc_function_type, hpread_read_struct_type)
6605 (fix_static_member_physnames, hpread_read_array_type)
6606 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
6607 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
6608 (java_link_class_type): Ditto.
6609 * mdebugread.c (parse_type): Ditto.
6610 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6611 * solib-sunos.c (solib_add_common_symbols): Ditto.
6612 * stabsread.c (define_symbol, read_type, read_member_functions,
6613 read_cpp_abbrev, read_one_struct_field): Ditto.
6614 * symfile.c (reread_symbols): Ditto.
6615 * symmisc.c (print_objfile_statistics): Ditto.
6616
6617 2004-02-07 Andrew Cagney <cagney@redhat.com>
6618
6619 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6620 (tui_exec_info_content): Rename TuiExecInfoContent.
6621 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6622 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6623 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6624 (TuiList, TuiListPtr): Ditto.
6625 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6626 (TuiDataType, TuiDataTypePtr): Ditto.
6627 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6628 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6629 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6630 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6631 (TuiDataElement, TuiDataElementPtr): Ditto.
6632 (TuiWinElement, TuiWinElementPtr): Ditto.
6633 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6634 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6635 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6636 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6637 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6638 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6639 * tui/tui-command.c, tui/tui-data.c: Update references.
6640 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6641 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6642 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6643 * tui/tui-winsource.c, tui/tui.c: Ditto.
6644
6645 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6646
6647 * dwarf2-frame.h: Update copyright.
6648 (enum dwarf2_frame_reg_rule): New.
6649 (struct dwarf2_frame_state_reg): New.
6650 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6651 * dwarf2-frame.c: Update copyright.
6652 (enum dwarf2_reg_rule): Remove.
6653 (struct dwarf2_frame_state): Remove defenition of `struct
6654 dwarf2_frame_state_reg'.
6655 (read_reg): Call get_frame_arch to get the architecture instead of
6656 using CURRENT_GDBARCH.
6657 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6658 DWARF2_FRAME_.
6659 (dwarf2_frame_init_reg): New function.
6660 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6661 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6662 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6663 tags with DWARF2_FRAME_.
6664 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6665 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6666 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6667
6668 2004-02-06 Andrew Cagney <cagney@redhat.com>
6669
6670 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6671 (enum tui_data_type): Rename _TuiDataType.
6672 (struct tui_layout_def): Rename _TuiLayoutDef.
6673 (struct tui_source_element): Rename _TuiSourceElement.
6674 (struct tui_data_element): Rename _TuiDataElement.
6675 (struct tui_command_element): Rename _TuiCommandElement.
6676 (struct tui_locator_element): Rename _TuiLocatorElement.
6677 (union tui_which_element): Define.
6678 (struct tui_win_element): Rename _TuiWinElement.
6679 (struct tui_data_info): Rename _TuiDataInfo.
6680 (struct tui_source_info): Rename _TuiSourceInfo.
6681 (struct tui_command_info): Rename _TuiCommandInfo.
6682 (tui_initialize_static_data): Rename initializeStaticData.
6683 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6684 (tui_alloc_win_info): Rename allocWinInfo.
6685 (tui_init_generic_part): Rename initGenericPart.
6686 (tui_init_win_info): Rename initWinInfo.
6687 (tui_alloc_content): Rename allocContent.
6688 (tui_add_content_elements): Rename addContentElements.
6689 (tui_init_content_element): Rename initContentElement.
6690 (tui_free_window): Rename freeWindow.
6691 (tui_free_win_content): Rename freeWinContent.
6692 (tui_free_data_content): Rename freeDataContent.
6693 (tui_free_all_source_wins_content): Rename
6694 freeAllSourceWinsContent.
6695 (tui_del_window): Rename tuiDelWindow.
6696 (tui_del_data_windows): Rename tuiDelDataWindows.
6697 (tui_partial_win_by_name): Rename partialWinByName.
6698 (tui_win_name): Rename winName.
6699 (tui_current_layout): Rename currentLayout.
6700 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6701 (tui_term_height): Rename termHeight.
6702 (tui_set_term_height_to): Rename setTermHeightTo.
6703 (tui_term_width): Rename termWidth.
6704 (tui_set_term_width_to): Rename setTermWidthTo.
6705 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6706 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6707 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6708 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6709 (tui_source_windows): Rename sourceWindows.
6710 (tui_clear_source_windows): Rename clearSourceWindows.
6711 (tui_clear_source_windows_detail): Rename
6712 clearSourceWindowsDetail.
6713 (tui_clear_win_detail): Rename clearWinDetail.
6714 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6715 (tui_default_tab_len): Rename tuiDefaultTabLen.
6716 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6717 (tui_win_with_focus): Rename tuiWinWithFocus.
6718 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6719 (tui_layout_def): Rename tuiLayoutDef.
6720 (tui_win_resized): Rename tuiWinResized.
6721 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6722 (tui_next_win): Rename tuiNextWin.
6723 (tui_prev_win): Rename tuiPrevWin.
6724 (tui_add_to_source_windows): Rename addToSourceWindows.
6725 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6726 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6727 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6728 * tui/tui.c, tui/tui-data.c: Ditto.
6729 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6730 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6731
6732 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6733 (struct symtab): Declare.
6734 (tui_set_source_content): Rename tuiSetSourceContent.
6735 (tui_show_symtab_source): Rename tuiShowSource.
6736 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6737 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6738 * tui/tui-source.c: Update copyright. Update references.
6739 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6740 * tui/tui-stack.c: Update references.
6741
6742 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6743 (struct tui_win_info): Declare.
6744 (tui_scroll_forward): Rename tuiScrollForward.
6745 (tui_scroll_backward): Rename tuiScrollBackward.
6746 (tui_scroll_left): Rename tuiScrollLeft.
6747 (tui_scroll_right): Rename tuiScrollRight.
6748 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6749 (tui_resize_all): Rename tuiResizeAll.
6750 (tui_refresh_all_win): Rename tuiRefreshAll.
6751 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6752 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6753 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6754 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6755
6756 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6757 (tui_erase_data_content): Rename tuiEraseDataContent.
6758 (tui_display_all_data): Rename tuiDisplayAllData.
6759 (tui_check_data_values): Rename tuiCheckDataValues.
6760 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6761 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6762 (tui_first_data_element_no_in_line): Rename
6763 tuiFirstDataElementNoInLine.
6764 (tui_delete_data_content_windows): Rename
6765 tuiDeleteDataContentWindows.
6766 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6767 (tui_display_data_from): Rename tuiDisplayDataFrom.
6768 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6769 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6770 * tui/tui-win.c, tui/tui-regs.c: Update references.
6771 * tui/tui-layout.c, tui/tui.c: Update references.
6772
6773 * tui/tui-wingeneral.h: Update copyright.
6774 (m_allBeVisible): Delete macro.
6775 (m_allBeInvisible): Delete macro.
6776 (struct tui_gen_win_info): Declare.
6777 (struct tui_win_info): Declare.
6778 (tui_unhighlight_win): Rename unhighlightWin.
6779 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6780 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6781 (tui_make_window): Rename makeWindow.
6782 (tui_copy_win): Rename copyWin.
6783 (tui_box_win): Rename boxWin.
6784 (tui_highlight_win): Rename highlightWin.
6785 (tui_check_and_display_highlight_if_needed): Rename
6786 checkAndDisplayHighlightIfNeeded.
6787 (tui_refresh_all): Rename refreshAll.
6788 (tui_delete_win): Rename tuiDelwin.
6789 (tui_refresh_win): Rename tuiRefreshWin.
6790 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6791 (tui_make_visible, tui_make_invisible): New functions.
6792 (tui_make_all_visible, tui_make_all_invisible): New functions.
6793 (make_all_visible): Rename makeAllVisible.
6794 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6795 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6796 * tui/tui-windata.c, tui/tui-win.c: Update references.
6797 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6798 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6799
6800 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6801
6802 * proc-api.c (write_with_trace): Initialize local variable to
6803 silence compiler warning.
6804
6805 2004-02-06 Andrew Cagney <cagney@redhat.com>
6806
6807 * tui/tui-source.h: Do not include "defs.h".
6808 (struct tui_win_info): Declare.
6809 (tui_set_source_content_nil): Declare.
6810 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6811 (union tui_line_or_address): Rename _TuiLineOrAddress.
6812 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6813 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6814 (tui_update_source_window_as_is): Rename
6815 tuiUpdateSourceWindowAsIs.
6816 (tui_update_source_windows_with_addr): Rename
6817 tuiUpdateSourceWindowsWithAddr.
6818 (tui_update_source_windows_with_line): Rename
6819 tuiUpdateSourceWindowsWithLine.
6820 (tui_clear_source_content): Rename tuiClearSourceContent.
6821 (tui_erase_source_content): Rename tuiEraseSourceContent.
6822 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6823 (tui_show_source_content): Rename tuiShowSourceContent.
6824 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6825 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6826 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6827 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6828 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6829 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6830 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6831 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6832 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6833 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6834 (struct tui_win_info): Declare.
6835 * tui/tui-stack.c: Update references.
6836 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6837 * tui/tui-win.c, tui/tui-source.c: Ditto.
6838 * tui/tui.c, tui/tui-disasm.c: Ditto.
6839
6840 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6841
6842 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6843 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6844
6845 2004-02-05 Mark Kettenis <kettenis@gnu.org>
6846
6847 * infrun.c (handle_inferior_event): Allow for breakpoint
6848 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6849 and SIGEMT. Update comments.
6850 * NEWS (Revised SPARC target): Mention support for non-executable
6851 stack.
6852
6853 2004-02-04 Mark Kettenis <kettenis@gnu.org>
6854
6855 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6856 * inftarg.c: Update copyright year.
6857 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6858 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6859 (sparc_xfer_wcookie): New function.
6860 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6861 * Makefile.in (sparc-nat.o): Update dependencies.
6862 * config/sparc/nm-nbsd.h: Include "target.h".
6863 (NATIVE_XFER_WCOOKIE): New define.
6864 (sparc_xfer_wcookie): New prototype.
6865
6866 2004-02-04 Andrew Cagney <cagney@redhat.com>
6867
6868 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6869 SYSCALL_TRAP function.
6870 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6871
6872 2004-02-04 Andrew Cagney <cagney@redhat.com>
6873 Daniel Jacobowitz <drow@mvista.com>
6874
6875 * objfiles.h: Delete comments refering to inside_entry_func and
6876 DEPRECATED_FRAME_CHAIN_VALID.
6877 * defs.h (inside_entry_func): Update prototype..
6878 * blockframe.c (inside_entry_func): Rename to
6879 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6880 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6881
6882 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6883
6884 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6885 outside of #ifdef SOLIB_ADD region.
6886 (do_restore_lang_radix_cleanup): Ditto.
6887 (resolve_pending_breakpoint): Ditto.
6888
6889 2004-02-03 Andrew Cagney <cagney@redhat.com>
6890
6891 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6892 (process_note_abi_tag_sections): Delete unused function.
6893 (ia64_read_fp): Delete unused function.
6894 (gdbarch_extract_struct_value_address): Delete declaration.
6895
6896 2004-02-02 Andrew Cagney <cagney@redhat.com>
6897
6898 * vax-tdep.c (vax_frame_chain): Delete call to
6899 deprecated_inside_entry_file.
6900 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6901
6902 2004-02-02 Mark Kettenis <kettenis@gnu.org>
6903
6904 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6905 column that's "empty" or "same value" when eliminating REG_RA
6906 rules.
6907
6908 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6909
6910 * NEWS: Add information about new pending breakpoint support.
6911
6912 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6913
6914 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6915 and pending fields for pending breakpoint support.
6916 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6917 (condition_command): Only parse condition if not a pending
6918 breakpoint.
6919 (print_one_breakpoint): Add support for pending breakpoints.
6920 (describe_other_breakpoints): Add checks to verify we are not
6921 dealing with pending breakpoints.
6922 (check_duplicates): Don't check pending breakpoints.
6923 (set_raw_breakpoint): Initialize pending flag.
6924 (do_restore_lang_radix_cleanup): New cleanup routine.
6925 (resolve_pending_breakpoint): New function.
6926 (re_enable_breakpoints_in_shlibs): Try and resolve any
6927 pending breakpoints via resolve_pending_breakpoint.
6928 (mention): Add pending breakpoint support.
6929 (parse_breakpoint_sals): Add new parameter to pass to
6930 decode_line_1 to indicate silent errors when files or functions
6931 are not found. Change all callers.
6932 (do_captured_parse_breakpoint): New function.
6933 (break_command_1): Change prototype to return an rc value and to
6934 take an optional pending breakpoint pointer. Support creating
6935 a pending breakpoint if a "not found" form of error occurs when
6936 parsing the breakpoint. Also support resolving an existing pending
6937 breakpoint and be silent if the resolution fails.
6938 (create_breakpoints): Change prototype to take pending breakpoint
6939 pointer. When resolving a pending breakpoint, use the new pointer
6940 to provide a conditional or commands added by the end-user.
6941 (delete_breakpoint): Add appropriate check for pending.
6942 (breakpoint_re_set_one): Ditto.
6943 (do_enable_breakpoint): Ditto.
6944
6945 2004-02-02 David Carlton <carlton@kealia.com>
6946
6947 * valops.c (enum oload_classification): New.
6948 (find_overload_match): Break implementation into separate
6949 functions; delete #if 0'd code; look for symbols within
6950 namespaces.
6951 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6952 (find_oload_champ,oload_method_static,classify_oload_match): New.
6953 * cp-support.h: Add declaration for cp_func_name; update
6954 declaration for make_symbol_overload_list.
6955 * cp-support.c (cp_func_name): New.
6956 (overload_list_add_symbol): Fix comment, use
6957 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6958 (make_symbol_overload_list): Take a function name and a namespace
6959 instead of a symbol; change implementation.
6960 (make_symbol_overload_list_using): New.
6961 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6962
6963 2004-02-02 Fred Fish <fnf@redhat.com>
6964
6965 * main.c (gdb_stdtarg): Move definition to group with other
6966 gdb_stdtarg definitions and update copyright years.
6967 * remote-sim.c (gdb_os_write_stderr): Write output to
6968 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6969 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
6970 gdb_stderr stream and update copyright years.
6971
6972 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6973
6974 * Makefile.in (mips-linux-nat.o): Update dependencies.
6975 * mips-linux-nat.c: Include mips-tdep.h.
6976
6977 2004-02-01 Roland McGrath <roland@redhat.com>
6978
6979 * sol-thread.c (sol_thread_xfer_partial): New function.
6980 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6981 (init_sol_core_ops): Likewise.
6982
6983 * procfs.c (procfs_xfer_partial): New function.
6984 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6985 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6986
6987 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6988 procfs_xfer_auxv function.
6989
6990 * procfs.c (procfs_make_note_section): If we can read
6991 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6992 * linux-proc.c (linux_make_note_section): Likewise.
6993
6994 * auxv.h: New file.
6995 * auxv.c: New file.
6996 * Makefile.in (auxv_h): New variable.
6997 (COMMON_OBS): Add auxv.o here.
6998 (auxv.o): New target.
6999
7000 * corelow.c (core_xfer_partial): New function.
7001 (init_core_ops): Use it for core_ops.to_xfer_partial.
7002
7003 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
7004 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
7005 macro if that is defined.
7006
7007 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7008
7009 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
7010 and check the specified thread for each breakpoint.
7011 * breakpoint.h (bpstat_stop_status): Update prototype.
7012 * infrun.c (handle_inferior_event): Update calls to
7013 bpstat_stop_status.
7014
7015 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7016
7017 * Makefile.in (cli-cmds.o): Add $(readline_h).
7018
7019 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7020
7021 * cli/cli-cmds.c: Include readline.h.
7022 (complete_command): Pass the start of the last word to
7023 complete_line.
7024
7025 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7026
7027 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
7028 argument, and change first argument to a CORE_ADDR.
7029 * breakpoint.h (bpstat_stop_status): Update prototype.
7030 * infrun.c (adjust_pc_after_break): Add a new comment.
7031 (handle_inferior_event): Update calls to bpstat_stop_status.
7032
7033 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7034
7035 * breakpoint.h: Update copyright years.
7036
7037 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7038
7039 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
7040 (bpstat_stop_status): Don't decrement PC.
7041 * breakpoint.h (software_breakpoint_inserted_here_p): Add
7042 prototype.
7043 * infrun.c (adjust_pc_after_break): New function.
7044 (handle_inferior_event): Call it, early. Remove later references
7045 to DECR_PC_AFTER_BREAK.
7046 (normal_stop): Add commentary.
7047
7048 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7049
7050 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
7051 2004-01-27 double-free fix.
7052
7053 2004-01-31 Mark Kettenis <kettenis@gnu.org>
7054
7055 * sparc-tdep.c (sparc_fetch_wcookie): New function.
7056 (sparc32_frame_prev_register): Handle StackGhost.
7057 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
7058
7059 2004-01-29 Roland McGrath <roland@redhat.com>
7060
7061 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
7062 * configure: Regenerated.
7063
7064 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
7065 * Makefile.in (procfs.o): Add dep.
7066
7067 2004-01-28 Andrew Cagney <cagney@redhat.com>
7068
7069 * tui/tui-stack.h: Update copyright.
7070 (struct frame_info): Add opaque declaration.
7071 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
7072 (tui_show_locator_content): Rename tuiShowLocatorContent.
7073 (tui_show_frame_info): Rename tuiShowFrameInfo.
7074 * tui/tui-stack.c: Update copyright. Update references.
7075 * tui/tui-winsource.c: Update references.
7076 * tui/tui-win.c: Update references.
7077 * tui/tui-layout.c: Update references.
7078 * tui/tui-hooks.c: Update copyright, update references.
7079 * tui/tui.c: Update copyright, update references.
7080 * tui/tui-disasm.c: Update references.
7081
7082 2004-01-28 David Carlton <carlton@kealia.com>
7083
7084 * dwarf2read.c (add_partial_structure): Use demangled name if
7085 namespace equals "".
7086
7087 2004-01-27 Jim Blandy <jimb@redhat.com>
7088
7089 Clean up misapplied patch:
7090 * dwarf2read.c (determine_prefix): Change one of the two forward
7091 declarations for 'determine_prefix_aux' to a declaration for this.
7092 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
7093 argument to 'die_specification'.
7094
7095 * dwarf2read.c (read_func_scope): Re-indent comment.
7096
7097 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
7098
7099 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
7100 b->exp to NULL after freeing so that error during re-parsing or
7101 evaluation of expressions associated with breakpoint don't
7102 eventually lead to re-freeing of storage.
7103 Committed by Andrew Cagney.
7104
7105 2004-01-27 Andrew Cagney <cagney@redhat.com>
7106
7107 * source.c (ambiguous_line_spec): Delete undefined declaration.
7108 * m32r-rom.c (m32r_set_board_address): Delete unused function.
7109 (m32r_set_server_address, m32r_set_download_path): Ditto.
7110 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
7111
7112 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
7113
7114 * dwarf2read.c: Update calls to changed and renamed functions, and
7115 references to moved variables.
7116
7117 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
7118 language, language_defn, list_in_scope, and ftypes members.
7119 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
7120 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
7121 (baseaddr): Remove globals.
7122
7123 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
7124 (set_cu_language, die_is_declaration, die_specification)
7125 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
7126 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
7127 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
7128 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
7129
7130 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
7131 cu.list_in_scope. Don't initialize cu_header_offset.
7132 (add_partial_symbol): Add local baseaddr.
7133 (psymtab_to_symtab_1): Add local baseaddr. Use
7134 objfile->section_offsets for consistency. Don't initialize
7135 cu_header_offset; do initialize cu.header.offset and
7136 cu.list_in_scope.
7137 (read_file_scope, read_func_scope, read_lexical_block_scope)
7138 (dwarf_decode_lines, new_symbol): Add local baseaddr.
7139
7140 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
7141
7142 * PROBLEMS: Add gdb/1516.
7143
7144 2003-12-29 Robert Millan <robertmh@gnu.org>
7145
7146 Patch committed by Andrw Cagney.
7147 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
7148 * configure.tgt: Match knetbsd*-gnu.
7149
7150 2004-01-26 Andrew Cagney <cagney@redhat.com>
7151
7152 * breakpoint.c (catch_command_1): Delete #ifdef code.
7153 (catch_fork_command_1): Delete #ifdef wrapper.
7154 (catch_exec_command_1): Ditto.
7155 (catch_load_command_1): Ditto.
7156 (catch_unload_command_1): Ditto.
7157
7158 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
7159 (catch_breakpoint): Delete #if0ed function.
7160 (disable_catch_breakpoint): Ditto.
7161 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
7162 (disable_catch, enable_catch, delete_catch): Ditto.
7163
7164 2004-01-26 Andrew Cagney <cagney@redhat.com>
7165
7166 * remote.c (echo_check, quit_flag): Delete variables.
7167 (cisco_kernel_mode): Delete variable.
7168 (minitelnet_return, tty_input, escape_count): Delete variables.
7169 (remote_cisco_mode): Delete variable.
7170 (remote_cisco_open, remote_cisco_close): Delete function.
7171 (remote_cisco_mourn, remote_cisco_wait): Delete function.
7172 (init_remote_cisco_ops): Delete function.
7173 (_initialize_remote): Do not install "remote cisco" code.
7174 (read_frame): Delete cisco specific code.
7175 (remote_info_process): Delete function.
7176 (remote_wait): Delete cisco specific code.
7177 (remote_cisco_section_offsets): Delete function.
7178 (remote_cisco_objfile_relocate): Delete function.
7179 (remote_async_wait): Delete cisco specific code.
7180 (minitelnet, readtty, readsocket): Delete function.
7181
7182 2004-01-26 Andrew Cagney <cagney@redhat.com>
7183
7184 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
7185 comments mentioning extract_returned_value_address.
7186 * infcmd.c (print_return_value): Update. Add comments on
7187 extract_returned_value_address.
7188 * stack.c (return_command): Add comments on
7189 extract_returned_value_address.
7190 * values.c: Update comment.
7191 * m32r-tdep.c: Update comment.
7192 * sparc-tdep.c: Update comment.
7193 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
7194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7195 * sh64-tdep.c (sh64_gdbarch_init): Update.
7196 * sh-tdep.c (sh_gdbarch_init): Update.
7197 * s390-tdep.c (s390_gdbarch_init): Update.
7198 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7199 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7200 * m68k-tdep.c (m68k_gdbarch_init): Update.
7201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7202 * m32r-tdep.c (m32r_gdbarch_init): Update.
7203 * ia64-tdep.c (ia64_gdbarch_init): Update.
7204 * h8300-tdep.c (h8300_gdbarch_init): Update.
7205 * frv-tdep.c (frv_gdbarch_init): Update.
7206 * arm-tdep.c (arm_gdbarch_init): Update.
7207 * alpha-tdep.c (alpha_gdbarch_init): Update.
7208
7209 2004-01-26 Andrew Cagney <cagney@redhat.com>
7210
7211 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
7212 SYMBOL_LOCATION_FUNCS
7213 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
7214 "struct symbol_ops".
7215 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
7216 type to "struct symbol_ops".
7217 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
7218 (struct symbol): Replace ".aux_value.loc.funcs" and
7219 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
7220 (SYMBOL_OBJFILE): Delete macro.
7221 (SYMBOL_LOCATION_FUNCS): Delete macro.
7222 (SYMBOL_LOCATION_BATON): Update.
7223 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
7224 intead of SYMBOL_LOCATION_FUNCS.
7225 * ax-gdb.c (gen_var_ref): Ditto.
7226 * printcmd.c (address_info): Ditto.
7227 * findvar.c (read_var_value): Ditto.
7228 (symbol_read_needs_frame): Ditto.
7229
7230 2004-01-26 Andrew Cagney <cagney@redhat.com>
7231
7232 * dwarf2read.c (read_func_scope): Document frame-base hack.
7233
7234 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7235
7236 * infcmd.c (print_return_value): Plug memory leak; delete
7237 ui_stream object. Rename argument `structure_return' to
7238 `struct_return'.
7239
7240 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7241
7242 * infcmd.c (print_return_value): Wrap long lines.
7243 (finish_command_continuation, finish_command): Remove unused
7244 variable `funcaddr'. Fix some coding-standards problems.
7245
7246 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
7247 SECT_SIZE is large enough, not whether it's exactly the right size.
7248 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
7249 TDEP->fpregset to zero.
7250
7251 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
7252 floating-point registers for traditional NetBSD core files.
7253 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7254 TDEP->sizeof_fpregset here.
7255
7256 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7257
7258 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7259 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7260 function with code split out from
7261 sparc32nbsd_sigcontext_frame_cache.
7262 (sparc32nbsd_sigcontext_frame_cache): Use
7263 sparc32nbsd_sigcontext_saved_regs.
7264 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7265 OpenBSD.
7266 * sparcobsd-tdep.c: New file.
7267 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7268 (sparcobsd-tdep.o): New dependency.
7269 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7270 * config/sparc/obsd.mt: New file.
7271
7272 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7273 TDEP->fpregset to be initialized to enable core file register
7274 sets.
7275
7276 2004-01-24 Mark Kettenis <kettenis@gnu.org>
7277
7278 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
7279 Add opaque declarations.
7280 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7281 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7282 function with code split out from
7283 sparc64nbsd_sigcontext_frame_cache.
7284 (sparc64nbsd_sigcontext_frame_cache): Use
7285 sparc64nbsd_sigcontext_saved_regs.
7286 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7287 OpenBSD.
7288 * sparc64obsd-tdep.c: New file.
7289 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7290 (sparc64obsd-tdep.o): New dependency.
7291 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7292 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7293 * config/sparc/obsd64.mt: New file.
7294
7295 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7296 read the instruction at PC.
7297
7298 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7299 value of GDB_OSABI_DEFAULT.
7300 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7301 instead of GDB_OSABI_NETBSD_AOUT.
7302
7303 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
7304
7305 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7306 copyright.
7307
7308 2004-01-23 Andrew Cagney <cagney@redhat.com>
7309
7310 * printcmd.c (display_command): Replace tui_set_display call with
7311 tui_set_layout_for_display_command.
7312 * tui/tui.h (enum tui_win_type): Define.
7313 (tui_set_layout): Delete declaration.
7314 (tui_set_layout_for_display_command): Rename set_tui_layout.
7315 * tui/tui-data.h (enum tui_layout_type): Define.
7316 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7317 "tui.h".
7318 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7319 (tui_default_win_height): Rename tuiDefaultWinHeight.
7320 (tui_default_win_viewport_height): Rename
7321 tuiDefaultWinViewportHeight.
7322 (tui_set_layout): RenametuiSetLayout.
7323 * tui/tui-layout.c: Update references.
7324 * tui/tui.c: Update references.
7325 * tui/tui-disasm.c: Update references.
7326
7327 2004-01-23 David Carlton <carlton@kealia.com>
7328
7329 Partial workaround for PR c++/1511:
7330 * cp-namespace.c: Include frame.h.
7331 (cp_lookup_transparent_type): New
7332 (cp_lookup_transparent_type_loop): New.
7333 * cp-support.h: Declare cp_lookup_transparent_type.
7334 * symtab.c (basic_lookup_transparent_type): Renamed from
7335 lookup_transparent_type.
7336 (lookup_transparent_type): Replace old body by a call to
7337 current_language->la_lookup_transparent_type.
7338 * symtab.h: Update copyright. Declare
7339 basic_lookup_transparent_type.
7340 * language.h: Update copyright.
7341 (struct language_defn): Add la_lookup_transparent_type.
7342 * language.c: Update copyright.
7343 (unknown_language_defn): Add basic_lookup_transparent_type.
7344 (auto_language_defn): Add basic_lookup_transparent_type.
7345 (local_language_defn): Add basic_lookup_transparent_type.
7346 * ada-lang.c: Update copyright.
7347 (ada_language_defn): Add basic_lookup_transparent_type.
7348 * c-lang.c: Update copyright.
7349 (c_language_defn): Add basic_lookup_transparent_type.
7350 (cplus_language_defn): Add basic_lookup_transparent_type.
7351 (asm_language_defn): Add basic_lookup_transparent_type.
7352 (minimal_language_defn): Add basic_lookup_transparent_type.
7353 * f-lang.c: Update copyright.
7354 (f_language_defn): Add basic_lookup_transparent_type.
7355 * jv-lang.c: Update copyright.
7356 (java_language_defn): Add basic_lookup_transparent_type.
7357 * m2-lang.c: Update copyright.
7358 (m2_language_defn): Add basic_lookup_transparent_type.
7359 * objc-lang.c: Update copyright.
7360 (objc_language_defn): Add basic_lookup_transparent_type.
7361 * p-lang.c: Update copyright.
7362 (p_language_defn): Add basic_lookup_transparent_type.
7363 * scm-lang.c: Update copyright.
7364 (scm_language_defn): Add basic_lookup_transparent_type.
7365 * Makefile.in (cp-namespace.o): Depend on frame.h.
7366
7367 2004-01-23 David Carlton <carlton@kealia.com>
7368
7369 Patch for PR c++/1520:
7370 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7371 properly if we have a specification die.
7372 (determine_prefix_aux): Rename from determine_prefix.
7373 (determine_prefix): Like the old determine_prefix, but never
7374 returns NULL.
7375
7376 2004-01-23 Theodore A. Roth <troth@openavr.org>
7377
7378 * avr-tdep.c: Update copyright.
7379 (avr_iaddr_p): Delete unused function.
7380 (avr_saddr_p): Delete unused function.
7381
7382 2004-01-23 David Carlton <carlton@kealia.com>
7383
7384 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7385 Fix for PR symtab/1534.
7386
7387 2004-01-23 Mark Kettenis <kettenis@gnu.org>
7388
7389 * NEWS (New native configurations): Mention OpenBSD/sparc and
7390 OpenBSD/sparc64.
7391 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7392 * configure.host: Likewise.
7393 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7394 handler for OpenBSD.
7395 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7396
7397 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7398
7399 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7400 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7401
7402 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7403 * cli/cli-cmds.c (shell_escape): Likewise.
7404
7405 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7406 OpenBSD .note.openbsd.ident sections.
7407
7408 2004-01-22 David Carlton <carlton@kealia.com>
7409
7410 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7411 get_scope_pc_bounds.
7412 (read_file_scope): Ditto.
7413 (get_scope_pc_bounds): New function, produced by extracting code
7414 from the above two functions, consolidating it, and adding support
7415 for DW_TAG_namespace.
7416
7417 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7418
7419 * osabi.c (MAX_NOTESZ): New define.
7420 (check_note): New function.
7421 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7422 check_note.
7423
7424 2004-01-21 Roland McGrath <roland@redhat.com>
7425
7426 * MAINTAINERS (write after approval): Add myself.
7427
7428 2004-01-21 Eli Zaretskii <eliz@gnu.org>
7429
7430 * utils.c (init_page_info): Move declarations of `rows' and
7431 `cols' before the __GO32__-specific code. Move the closing brace
7432 outside the #ifdef __GO32__..#endif block.
7433 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7434
7435 2004-01-21 Paul Brook <paul@codesourcery.com>
7436
7437 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7438 BPSTAT_WHAT_CHECK_SHLIBS.
7439
7440 2004-01-21 Paul Brook <paul@codesourcery.com>
7441
7442 * MAINTAINERS: Add myself to write-after-approval.
7443
7444 2004-01-20 Andrew Cagney <cagney@redhat.com>
7445
7446 * ax-gdb.c (print_axs_value): Delete unused function.
7447 * jv-lang.c (java_lookup_type): Delete unused function.
7448 * cli/cli-dump.c (dump_filetype): Delete unused function.
7449 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7450 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7451 (mips_getstring): Delete unused function.
7452 (pmon_insert_breakpoint): Delete #if0ed function.
7453 (PMON_MAX_BP): Delete #if0ed MACRO.
7454 (mips_pmon_bp_info): Delete #if0ed variable.
7455 (pmon_remove_breakpoint): Delete #if0ed function.
7456 * monitor.c (monitor_write_even_block): Delete unused function.
7457 (monitor_write_memory_block): Delete #if0ed code.
7458 * dink32-rom.c (dink32_load): Delete unused function.
7459 (_initialize_dink32_rom): Delete #if0ed code.
7460 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7461
7462 * tui/tui-command.c: Update references.
7463 * tui/tui-io.c: Update references.
7464 * tui/tui-command.h: Update copyright.
7465 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7466
7467 * source.c (ambiguous_line_spec): Delete never-defined function.
7468 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7469 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7470 * cli/cli-cmds.c (validate_comname): Ditto.
7471
7472 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7473 "tui-data.h".
7474 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7475 (tui_show_disassem): Rename tuiShowDisassem.
7476 (tui_show_disassem_and_update_source): Rename
7477 tuiVerticalDisassemScroll.
7478 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7479 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7480 * tui/tui.h: Update copyright.
7481 (enum tui_status): Define.
7482 * tui/tui-data.h (enum tui_scroll_direction): Define.
7483 * tui/tui-disasm.c: Update copyright. Update references.
7484 * tui/tui-winsource.c: Update copyright. Update references.
7485 * tui/tui-win.c: Update references.
7486 * tui/tui-layout.c: Update references.
7487
7488 2004-01-20 Andrew Cagney <cagney@redhat.com>
7489
7490 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7491 sym2 to start of block.
7492
7493 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7494
7495 * MAINTAINERS: Delete mmalloc.
7496 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7497 * NEWS: Mention removal of --with-malloc.
7498 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7499 * config.in: Regenerate.
7500 * configure: Regenerate.
7501 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7502 USE_MMALLOC, MMCHECK_FORCE.
7503 * gdbinit.in: Remove mmalloc.
7504 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7505 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7506 * config/i386/go32.mh: Likewise.
7507 * config/i386/interix.mh: Likewise.
7508 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7509
7510 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7511
7512 * linespec.c (decode_variable, symtab_from_filename): Call
7513 error_silent with error message instead of throwing an exception
7514 directly.
7515 * defs.h (error_silent, error_output_message): Add prototypes.
7516 (catch_exceptions_with_msg): Ditto.
7517 * utils.c (error_silent, error_output_message): New functions.
7518 * top.c (catch_exceptions_with_msg): New function.
7519
7520 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
7521
7522 * mi/mi-cmds.h (enum print_values): Add definition.
7523
7524 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7525 type and value for simple data types and just the name and type
7526 for complex ones, if required.
7527
7528 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7529 children, if required.
7530
7531 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7532
7533 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7534 unused declarations.
7535
7536 2004-01-19 Andrew Cagney <cagney@redhat.com>
7537
7538 * top.h (mapped_symbol_files): Delete declaration.
7539 * main.c (captured_main): Delete option "m" and "mapped".
7540 * objfiles.c (mapped_symbol_files): Delete variable.
7541 * symfile.c (symbol_file_command): Delete mmap code.
7542 (symbol_file_add_with_addrs_or_offsets): Ditto.
7543 (add_symbol_file_command, reread_separate_symbols): Ditto.
7544 * objfiles.h (OBJF_MAPPED): Delete.
7545 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7546 (free_objfile) [USE_MMALLOC]: Ditto.
7547 (open_existing_mapped_file): Delete function.
7548 (open_mapped_file): Delete function.
7549 (map_to_file): Delete function.
7550
7551 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7552
7553 * infrun.c (step_into_function): Account for possible breakpoint
7554 adjustment when computing ``stop_func_start''.
7555
7556 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7557
7558 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7559 the region size against the size of a pointer, not the size of
7560 a register as given by DEPRECATED_REGISTER_SIZE.
7561
7562 2004-01-19 Andrew Cagney <cagney@redhat.com>
7563
7564 * tui/tui-regs.h: Include "tui-data.h".
7565 (tuiFirstRegElementNoInLine): Delete declaration.
7566 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7567 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7568 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7569 (tui_calculate_regs_column_count): Rename
7570 tuiCalculateRegsColumnCount.
7571 (tui_check_register_values): Rename tuiCheckRegisterValues.
7572 (tui_show_registers): Rename tuiShowRegisters.
7573 (tui_display_registers_from_line): Rename
7574 tuiDisplayRegistersFromLine.
7575 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7576 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7577 (tui_first_reg_element_no_inline): Rename
7578 tuiFirstRegElementNoInLine.
7579 * tui/tui-data.h: Update copyright.
7580 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7581 * tui/tui-windata.c: Update copyright, update references.
7582 * tui/tui-regs.c: Update copyright, update references.
7583 * tui/tui-win.c: Update copyright, update references.
7584 * tui/tui-layout.c: Update copyright, update references.
7585
7586 2004-01-18 Andrew Cagney <cagney@redhat.com>
7587
7588 * tui/tui-io.c: Update copyright.
7589 (key_is_end_sequence, key_is_backspace): New functions.
7590 (key_is_command_char, key_is_start_sequence): New function.
7591 (tui_getc): Update references.
7592 * tui/tui-io.h: Update copyright.
7593 (m_tuiStartNewLine): Delete macro.
7594 (m_isBackspace, m_isDeleteChar): Delete macros.
7595 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7596 (m_isNextPage, m_isPrevPage): Delete macros.
7597 (m_isLeftArrow, m_isRightArrow): Delete macros.
7598 (m_isXdbStyleCommandChar): Delete macro.
7599 (key_is_start_sequence): Declare, replace m_isStartSequence.
7600 (key_is_end_sequence): Declare, replace m_isEndSequence.
7601 (key_is_backspace): Declare ,replace m_isBackspace.
7602 (key_is_command_char): Declare, replace m_isCommandChar.
7603 * tui/tui-command.c: Update copyright.
7604 (tuiDispatchCtrlChar): Update references.
7605
7606 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7607 tuiSourceWin.h.
7608
7609 * tui/tui-command.c: Rename tui/tuiCommand.c.
7610 * tui/tui-command.h: Rename tui/tuiCommand.h.
7611 * tui/tui-data.c: Rename tui/tuiData.c.
7612 * tui/tui-data.h: Rename tui/tuiData.h.
7613 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7614 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7615 * tui/tui-io.c: Rename tui/tuiIO.c.
7616 * tui/tui-io.h: Rename tui/tuiIO.h.
7617 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7618 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7619 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7620 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7621 * tui/tui-source.c: Rename tui/tuiSource.c.
7622 * tui/tui-source.h: Rename tui/tuiSource.h.
7623 * tui/tui-stack.c: Rename tui/tuiStack.c.
7624 * tui/tui-stack.h: Rename tui/tuiStack.h.
7625 * tui/tui-win.c: Rename tui/tuiWin.c.
7626 * tui/tui-win.h: Rename tui/tuiWin.h.
7627 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7628 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7629 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7630 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7631 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7632 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7633 * tui/tui-file.c: Update includes.
7634 * tui/tui-hooks.c: Update includes.
7635 * tui/tui-interp.c: Update includes.
7636 * tui/tui.c: Update includes.
7637 * Makefile.in: Update all tui/ dependencies.
7638 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7639
7640 * Makefile.in: Update copyright. Update dependencies.
7641
7642 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7643 problem.
7644
7645 2004-01-18 Andrew Cagney <cagney@redhat.com>
7646
7647 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7648 instead of register_gdbarch_init.
7649
7650 * remote-sds.c (tohex): Delete unused function. Update copyright.
7651 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7652 * v850-tdep.c (v850_register_virtual_size): Ditto.
7653 * target.c (normal_target_post_startup_inferior): Ditto.
7654 * source.c (ambiguous_line_spec): Ditto.
7655 * remote.c (adapt_remote_get_threadinfo): Ditto.
7656 * mi/mi-out.c (out_field_fmt): Ditto.
7657 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7658 (output_control_change_notification): Ditto.
7659 * m68k-tdep.c (m68k_register_byte): Ditto.
7660 (m68k_remote_breakpoint_from_pc): Ditto.
7661 * ui-out.c (init_ui_out_state): Delete unused declaration.
7662 * stabsread.c (search_value): Ditto.
7663 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7664 * maint.c (print_section_table): Ditto.
7665 * infrun.c (set_follow_fork_mode_command): Ditto.
7666
7667 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7668
7669 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7670 DW_CFA_def_cfa_exporession. Add support for
7671 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7672 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7673
7674 2004-01-18 Andrew Cagney <cagney@redhat.com>
7675
7676 * ocd.c: Update copyright.
7677 (bdm_read_register_command): Delete unused function.
7678 (_initialize_remote_ocd): Delete commented out reference.
7679 (get_quoted_char, reset_packet): Delete #if0ed function.
7680 (output_packet, put_quoted_char): Delete #if0ed function.
7681 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7682 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7683 (BDM_BREAKPOINT): Delete #if0ed macro.
7684 (remote_timeout): Delete #if0ed variable.
7685
7686 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7687
7688 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7689 (core-sol2.o): Remove dependency.
7690 * core-sol2.c: Remove file.
7691
7692 2004-01-17 Andrew Cagney <cagney@redhat.com>
7693
7694 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7695 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7696 enums.
7697
7698 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7699
7700 * remote.c: Update copyright years.
7701
7702 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7703
7704 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7705
7706 2004-01-17 Andrew Cagney <cagney@redhat.com>
7707
7708 * mdebugread.c: Update copyright.
7709 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7710 (parse_type, parse_procedure): Ditto.
7711 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7712
7713 * cris-tdep.c (cris_store_struct_return): Put back accidently
7714 deleted function.
7715
7716 * gdbarch.sh: Update copyright year.
7717 * gdbarch.h, gdbarch.c: Re-generate.
7718
7719 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7720
7721 Suggested by George Anzinger.
7722 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7723 correct stack offset. Include unknown opcode numbers in the error
7724 message.
7725
7726 2004-01-17 Andrew Cagney <cagney@redhat.com>
7727
7728 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7729 extract_struct_value_address, i386 does not set it.
7730 * sparc64-tdep.c (sparc64_init_abi): Do not set
7731 extract_struct_value_address, never called.
7732 (sparc64_extract_struct_value_address): Delete function.
7733 * m68hc11-tdep.c: Update copyright.
7734 (m68hc11_gdbarch_init): Delete redundant assignment of
7735 extract_struct_value_address.
7736 * i386-tdep.c: Update copyright.
7737 (i386_gdbarch_init): Do not set extract_struct_value_address,
7738 never called.
7739 (i386_extract_struct_value_address): Delete function.
7740 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7741 extract_struct_value_address, never called.
7742 (sparc32_extract_struct_value_address): #if 0 function. Add
7743 comments explaining its future.
7744
7745 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7746
7747 * arm-tdep.c (arm_write_pc): New function.
7748 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7749
7750 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7751
7752 * breakpoint.c (must_shift_inst_regs): Delete.
7753 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7754 and SHIFT_INST_REGS.
7755 * infcmd.c (step_1, step_1_continuation): Delete references to
7756 SHIFT_INST_REGS.
7757 * infrun.c (keep_going): Likewise.
7758 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7759 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7760
7761 2004-01-17 Andrew Cagney <cagney@redhat.com>
7762
7763 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7764 * gdbarch.h, gdbarch.c: Re-generate.
7765 * infcmd.c (print_return_value): Delete reference to
7766 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7767
7768 * cris-tdep.c (cris_gdbarch_init): Do not set
7769 deprecated_extract_struct_value_address.
7770
7771 * xstormy16-tdep.c: Update copyright.
7772 (xstormy16_extract_struct_value_address): Update to current
7773 extract struct value address interface.
7774 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7775 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7776 current extract struct value address interface.
7777 (sh64_gdbarch_init): Set extract_struct_value_address.
7778
7779 * cris-tdep.c: Update copyright.
7780 (cris_extract_struct_value_address): Delete function.
7781 (struct_return_address): Delete variable.
7782 (cris_store_struct_return): Do not set struct_return_address.
7783
7784 * mcore-tdep.c: Update copyright.
7785 (mcore_extract_struct_value_address): Delete function. Update
7786 comments.
7787 (mcore_gdbarch_init): Update.
7788 * mn10300-tdep.c: Update copyright.
7789 (mn10300_extract_struct_value_address): Delete function.
7790 (mn10300_gdbarch_init): Update.
7791 * v850-tdep.c: Update copyright.
7792 (v850_extract_struct_value_address): Delete.
7793 (v850_gdbarch_init): Update.
7794 * ns32k-tdep.c: Update copyright.
7795 (ns32k_extract_struct_value_address): Delete.
7796 (ns32k_gdbarch_init): Update.
7797 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7798 (hppa_gdbarch_init): Update.
7799 * vax-tdep.c: Update copyright.
7800 (vax_extract_struct_value_address): Delete.
7801 (vax_gdbarch_init): Update.
7802
7803 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7804 * gdbarch.h, gdbarch.c: Re-generate.
7805 * procfs.c (procfs_fetch_registers): Delete reference to
7806 DEPRECATED_NPC_REGNUM.
7807 (procfs_store_registers): Ditto.
7808 * regcache.c (generic_target_write_pc): Simplify.
7809 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7810
7811 * core-sol2.c (fetch_core_registers): Replace
7812 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7813
7814 * hppa-tdep.c: Update copyright year.
7815 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7816 NPC_REGNUM.
7817 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7818
7819 * mips-tdep.c (mips_write_pc): New function.
7820 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7821 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7822 (mips_find_saved_regs, mips_software_single_step: Ditto.
7823 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7824 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7825
7826 2004-01-17 Andrew Cagney <cagney@redhat.com>
7827
7828 * mips-tdep.c: Re-indent. Group functions by ABI.
7829
7830 2004-01-17 Andrew Cagney <cagney@redhat.com>
7831
7832 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7833 * gdbarch.c: Re-generate.
7834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7835 DECR_PC_AFTER_BREAK to zero.
7836 * vax-tdep.c (vax_gdbarch_init): Ditto.
7837 * v850-tdep.c (v850_gdbarch_init): Ditto.
7838 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7839 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7840 * sh-tdep.c (sh_gdbarch_init): Ditto.
7841 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7842 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7843 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7844 * mips-tdep.c (mips_gdbarch_init): Ditto.
7845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7847 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7848 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7849 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7850 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7851 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7852 * frv-tdep.c (frv_gdbarch_init): Ditto.
7853 * cris-tdep.c (cris_gdbarch_init): Ditto.
7854 * avr-tdep.c (avr_gdbarch_init): Ditto.
7855 * arm-tdep.c (arm_gdbarch_init): Ditto.
7856 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7857
7858 2004-01-17 J. Brobecker <brobecker@gnat.com>
7859
7860 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7861 Delete, no longer used.
7862 (read_subrange_type): New function, mostly extracted from
7863 read_array_type().
7864 (read_array_type): Replace extracted code by call to
7865 read_subrange_type().
7866 (dwarf2_get_attr_constant_value): New function.
7867 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7868 (add_partial_symbol): Likewise.
7869 (process_die): Likewise.
7870 (new_symbol): Likewise.
7871 (read_type_die): Likewise.
7872
7873 2004-01-16 Andrew Cagney <cagney@redhat.com>
7874
7875 * symfile.c: Update copyright year.
7876 (compare_symbols): Delete unused function.
7877 * stabsread.c: Update copyright year.
7878 (lrs_general_complaint): Delete unused function.
7879 (ref_search_value): Ditto.
7880 (get_substring): Delete declaration.
7881 * sh64-tdep.c: Update copyright year.
7882 (sh64_get_gdb_regnum): Delete unused function.
7883 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7884 Delete unused function.
7885
7886 2004-01-17 Mark Kettenis <kettenis@gnu.org>
7887
7888 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7889 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7890
7891 2004-01-16 Andrew Cagney <cagney@redhat.com>
7892
7893 Changes from Peter Schauer.
7894 * rs6000-tdep.c: Update copyright year.
7895 (rs6000_push_dummy_call): Update the stack pointer before
7896 accessing the corresponding stack region.
7897 * rs6000-nat.c: Update copyright year.
7898 (set_host_arch): Set "info.abfd" to "exec_bfd".
7899
7900 2004-01-15 Mark Kettenis <kettenis@gnu.org>
7901
7902 * blockframe.c: Update copyright year.
7903 (inside_entry_func): Don't treat a zero PC specially.
7904
7905 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
7906
7907 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7908 variable.
7909 (gcore_create_callback): Ditto. Skip any memory segment that has
7910 no permissions set.
7911
7912 2004-01-14 David Carlton <carlton@kealia.com>
7913
7914 Change symbols for C++ nested types to contain the fully qualified
7915 name, if possible. (At least in the DWARF-2 case.) Partial fix
7916 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7917 c++/895.
7918 * c-exp.y (qualified_type): Handle types nested within classes.
7919 * cp-namespace.c: Update comments.
7920 (cp_set_block_scope): Delete #if 0.
7921 (cp_lookup_nested_type): Handle types nested within classes.
7922 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7923 when appropriate.
7924 (add_partial_symbol): Add the name of the enclosing namespace to
7925 types.
7926 (pdi_needs_namespace): New.
7927 (add_partial_namespace): Tweak comment.
7928 (add_partial_structure): New.
7929 (psymtab_to_symtab_1): Initialize processing_current_prefix
7930 here...
7931 (process_die): instead of here.
7932 (read_structure_scope): Try to figure out the name of the class or
7933 namespace that the structure might be defined within.
7934 (read_enumeration): Generate fully-qualified names, if possible.
7935 (read_namespace): Don't set name to NULL.
7936 (die_specification): New.
7937 (new_symbol): Generate fully-qualified names for types.
7938 (read_type_die): Determine appropriate prefix.
7939 (determine_prefix): New.
7940 (typename_concat): New.
7941 (class_name): New.
7942 * valops.c (value_aggregate_elt): Pass NOSIDE to
7943 value_struct_elt_for_reference.
7944 (value_struct_elt_for_reference): Make static, add NOSIDE
7945 parameter, call value_maybe_namespace_elt as a last resort.
7946 (value_namespace_elt): Break out code into
7947 value_maybe_namespace_elt.
7948 (value_maybe_namespace_elt): New.
7949
7950 2004-01-12 Andrew Cagney <cagney@redhat.com>
7951
7952 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7953 cooked floating-point registers.
7954 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7955 and value_to_register.
7956
7957 2004-01-13 Andrew Cagney <cagney@redhat.com>
7958
7959 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7960 * gdbarch.c: Re-generate.
7961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7962 FUNCTION_START_OFFSET.
7963 * v850-tdep.c (v850_gdbarch_init): Ditto.
7964 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7965 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7966 * sh-tdep.c (sh_gdbarch_init): Ditto.
7967 * s390-tdep.c (s390_gdbarch_init): Ditto.
7968 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7969 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7970 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7971 * mips-tdep.c (mips_gdbarch_init): Ditto.
7972 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7973 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7975 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7976 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7977 * i386-tdep.c (i386_gdbarch_init): Ditto.
7978 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7979 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7980 * frv-tdep.c (frv_gdbarch_init): Ditto.
7981 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7982 * cris-tdep.c (cris_gdbarch_init): Ditto.
7983 * avr-tdep.c (avr_gdbarch_init): Ditto.
7984 * arm-tdep.c (arm_gdbarch_init): Ditto.
7985 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7986
7987 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
7988
7989 * infrun.c (follow_fork_mode_ask): Remove.
7990 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7991 (follow_fork): Simplify and remove internal error for
7992 follow_fork_mode_ask.
7993 (_initialize_infrun): Update "set follow-fork-mode" help text.
7994
7995 2004-01-13 Andrew Cagney <cagney@redhat.com>
7996
7997 * configure.in: Update copyright year.
7998 (build_warnings): Add -Wunused-label.
7999 * configure: Re-generate.
8000
8001 2004-01-12 Andrew Cagney <cagney@redhat.com>
8002
8003 * exec.h (exec_ops): Make "extern".
8004
8005 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
8006 the function is void.
8007 (mips_pseudo_register_write): Ditto.
8008
8009 2004-01-12 Andrew Cagney <cagney@redhat.com>
8010
8011 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
8012 call. Never defined.
8013 * sparc-tdep.h (struct frame_info): Add opaque declaration.
8014 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
8015 (struct sparc_gregset, struct regcache): Ditto.
8016 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
8017
8018 2004-01-12 Andrew Cagney <cagney@redhat.com>
8019
8020 * mi/ChangeLog: Delete file. Renamed to ...
8021 * mi/ChangeLog-1999-2003: New file.
8022 * tui/ChangeLog: Delete file. Renamed to ...
8023 * tui/ChangeLog-1998-2003: New file.
8024
8025 2004-01-11 Mark Kettenis <kettenis@gnu.org>
8026
8027 * sparc64nbsd-tdep.c: Include "regset.h".
8028 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
8029 Remove variables.
8030 (fetch_core_registers): Remove function.
8031 (sparc64nbsd_core_fns): Remove variable.
8032 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
8033 functions.
8034 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
8035 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
8036 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
8037
8038 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
8039 sparc_extract_struct_value_address.
8040 (sparc32_gdbarch_init): Set extract_struct_value_address.
8041 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
8042 function.
8043 (sparc64_init_abi): Set extract_struct_value_address. Don't set
8044 return_value_on_stack.
8045
8046 * NEWS: Mention that %cs and %ss have been added to the AMD64
8047 configurations
8048
8049 * frame.c: Update copyright year.
8050 (get_prev_frame): Improve comment.
8051
8052 * sparc64fbsd-tdep.c: Include "regset.h".
8053 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8054 Remove variables.
8055 (fetch_core_registers): Remove function.
8056 (sparc64fbsd_core_fns): Remove variable.
8057 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
8058 functions.
8059 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
8060 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
8061 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
8062
8063 * sparcnbsd-tdep.c: Include "regset.h".
8064 (fetch_core_registers): Remove function.
8065 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
8066 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
8067 functions.
8068 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
8069 TDEP->fpregset.
8070 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
8071
8072 * sparc-tdep.h (struct regset): Provide opaque declaration.
8073 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
8074 fpregset and sizeof_fpregset members.
8075 * sparc-tdep.c (struct regset): Provide opaque declaration.
8076 (sparc_regset_from_core_section): New function.
8077 (sparc32_gdbarch_init): Initialize TDEP->gregset,
8078 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
8079 Set regset_from_core_section when appropriate.
8080
8081 2004-01-10 Mark Kettenis <kettenis@gnu.org>
8082
8083 * x86-64-tdep.c (amd64_non_pod_p): New function.
8084 (amd64_classify_aggregate): Return class memory for non-POD
8085 C++ structure types.
8086
8087 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
8088 argument. Use it to reserve a register if necessary.
8089 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
8090 amd64_push_arguments.
8091
8092 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
8093
8094 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
8095 register numbers in comments.
8096 * x86-64-tdep.h: Update copyright year.
8097 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
8098 Adjust for addition of %cs and %ss.
8099 * amd64fbsd-nat.c: Update copyright year.
8100 (reg_offset): Add register offsets for %cs and %ss.
8101 * amd64fbsd-tdep.c: Update copyright year.
8102 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
8103 (amd64fbsd_sc_reg_offset): Likewise.
8104 * x86-64-linux-nat.c: Update copyright year.
8105 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
8106 and %ss.
8107 * amd64nbsd-nat.c: Update copyright year.
8108 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
8109 * amd64nbsd-tdep.c: Update copyright year.
8110 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
8111 * x86-64-linux-tdep.c: Update copyright year.
8112 (user_to_gdb_regmap): Add mapping for %cs and %ss.
8113 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
8114 * regformats/reg-x86-64.dat: Add %cs and %ss.
8115
8116 * blockframe.c (inside_entry_func): Reformat. Introduce new local
8117 variables to prevent long lines. Update comments to reflect
8118 reality.
8119
8120 2004-01-09 David Carlton <carlton@kealia.com>
8121
8122 Checked in by Elena Zannoni <ezannoni@redhat.com>.
8123 * dwarf2read.c (read_namespace): Pull out name-generating code
8124 into namespace_name. Rename previous_namespace to previous_prefix
8125 and processing_current_namespace to processing_current_prefix..
8126 (namespace_name): New function.
8127 (add_partial_symbol): Substitute uses of pdi->name with
8128 actual_name.
8129 * cp-support.h: Rename processing_current_namespace to
8130 processing_current_prefix.
8131 Update copyright year.
8132 * cp-namespace.c: Rename processing_current_namespace to
8133 processing_current_prefix.
8134 Update copyright year.
8135
8136 2004-01-09 Andrew Cagney <cagney@redhat.com>
8137
8138 * jv-valprint.c, ser-unix.c: Add missing copyright years.
8139
8140 2004-01-09 Mark Kettenis <kettenis@gnu.org>
8141
8142 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
8143 complaining.
8144 (process_one_symbol): Deal with N_PATCH stabs.
8145
8146 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
8147
8148 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
8149 ifdeffed code.
8150 Update copyright year.
8151
8152 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8153
8154 * config/pa/tm-hppa.h: Update extern declarations for
8155 hppa32_hpux_frame_saved_pc_in_sigtramp,
8156 hppa32_hpux_frame_base_before_sigtramp, and
8157 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
8158
8159 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8160
8161 * config/pa/tm-hppah.h: Update copyright years.
8162
8163 2004-01-08 Andrew Cagney <cagney@redhat.com>
8164
8165 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
8166 (mips_o32_reg_struct_has_addr): Delete function.
8167 (mips_gdbarch_init): Update.
8168 (mips_extract_struct_value_address): Delete function.
8169
8170 2004-01-08 David Mosberger <davidm@hpl.hp.com>
8171
8172 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
8173 reality.
8174
8175 2004-01-07 Andrew Cagney <cagney@redhat.com>
8176
8177 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
8178 architecture's elf flags (when available).
8179
8180 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
8181 FPU to the start, check the MIPS FPU when looking for an old
8182 architecture.
8183 (set_mipsfpu_single_command): Update the architecture.
8184 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
8185
8186 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
8187 (mips_mask_address_p): Add "tdep" parameter.
8188 (show_mask_address, mips_addr_bits_remove): Update.
8189 (mips_dump_tdep): Update.
8190 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
8191 (MIPS_STACK_ARGSIZE): Delete macro.
8192 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
8193 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
8194 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
8195 (mips_dump_tdep): Update.
8196 (MIPS_SAVED_REGSIZE): Delete macro.
8197 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
8198 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
8199 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
8200 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
8201 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
8202 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
8203 (mips_pop_frame, return_value_location): Update.
8204 (mips_n32n64_return_value, mips_dump_tdep): Update.
8205
8206 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
8207 MIPS ABI.
8208
8209 * mips-tdep.c: Update copyright.
8210 (mips_gdbarch_init): Merge two code blocks handling the register
8211 name and number layout.
8212
8213 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
8214
8215 * tracepoint.c (validate_actionline): Fix segv at EOF
8216
8217 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
8218
8219 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
8220 properly for static fields.
8221
8222 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
8223 Jason Molenda <jmolenda@apple.com>
8224
8225 * disasm.c: Update copyright to include 2004.
8226 (do_mixed_source_and_assembly): For uiout asm list
8227 and tuple cleanups, initialize to null_cleanup instead of
8228 NULL and do so prior to loop. Only reset when we close off
8229 the tuple/list. Move check for whether to close off the
8230 asm tuple/list to after dump_insns call where it will be run
8231 on each loop iteration.
8232
8233 2004-01-05 Andrew Cagney <cagney@redhat.com>
8234
8235 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
8236 should be a switch case and not a label.
8237 * mips-tdep.c (mips32_next_pc): Delete unused labels
8238 "greater_equal_branch" and "less_zero_branch".
8239 * jv-valprint.c (java_print_value_fields): Delete unused label
8240 "flush_it".
8241
8242 * target.c (unpush_target): Only close a target that is in the
8243 target stack.
8244
8245 2004-01-05 Mark Kettenis <kettenis@gnu.org>
8246
8247 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
8248 address from [sp + 64] instead of %o2.
8249
8250 * frame.c (get_prev_frame): Don't try to unwind the PC. This
8251 fixes PR backtrace/1476.
8252
8253 2004-01-05 Andrew Cagney <cagney@redhat.com>
8254
8255 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8256 move to start of file.
8257 * i386-tdep.h (struct regcache): Add opaque declaration.
8258 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8259 declaration.
8260 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8261 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8262 * win32-nat.c (fake_create_process): Use ISO C style definition.
8263 * stabsread.c (define_symbol): Delete #ifndef
8264 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8265 stabs_argument_has_addr call, macro never defined.
8266
8267 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8268
8269 * op50-rom.c: Delete.
8270 * w89k-rom.c: Delete.
8271 * Makefile.in: Remove references.
8272
8273 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8274
8275 * x86-64-tdep.c: Update copyright year.
8276 (struct amd64_register_info): Rename from x86_64_register_info.
8277 (amd64_register_info): Rename from x86_64_register_info.
8278 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8279 (amd64_register_name): Rename from x86_64_register_name.
8280 (amd64_register_type): Rename from x86_64_register_type.
8281 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8282 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8283 (amd64_dwarf_reg_to_regnum): Rename from
8284 x86_64_dwarf_reg_to_regnum.
8285 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8286 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8287 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8288 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8289 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8290 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8291 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8292 (amd64_frame_cache): Rename from x86_64_frame_cache.
8293 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8294 (amd64_frame_prev_register): Rename from
8295 x86_64_frame_prev_register.
8296 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8297 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8298 (amd64_sigtramp_frame_cache): Rename from
8299 x86_64_sigtramp_frame_cache.
8300 (amd64_sigtramp_frame_prev_register): Rename from
8301 x86_64_sigtramp_frame_prev_register.
8302 (amd64_sigtramp_frame_unwind): Rename from
8303 x86_64_sigtramp_frame_unwind.
8304 (amd64_sigtramp_frame_sniffer): Rename from
8305 x86_64_sigtramp_frame_sniffer.
8306 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8307 (amd64_frame_base): Rename from x86_64_frame_base.
8308 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8309 (amd64_frame_align): Rename from x86_64_frame_align.
8310 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8311 (amd64_regset_from_core_section): Rename from
8312 x86_64_regset_from_core_section.
8313 (x86_64_init_abi): Update comments.
8314
8315 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
8316
8317 * MAINTAINERS (write after approval): Add myself.
8318
8319 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8320
8321 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8322 `float' arguments.
8323
8324 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8325
8326 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8327 such that it mentions a specific version of GCC that exhibits this
8328 bug.
8329
8330 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8331
8332 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8333 structure that has a single `float' member, store it in %f1 in
8334 addition to %f0.
8335
8336 * sparc-sol2-nat.c: Add missing '\'.
8337
8338 * sparc-tdep.c (sparc32_return_value): New function.
8339 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8340 Remove functions.
8341 (sparc32_gdbarch_init): Set return_value, don't set
8342 extract_return_value, store_return_value, use_struct_convention
8343 and return_value_on_stack.
8344
8345 * sparc-sol2-nat.c: Add missing ')'.
8346
8347 2004-01-03 J. Brobecker <brobecker@gnat.com>
8348
8349 * infrun.c (handle_step_into_function): New function.
8350 (handle_inferior_event): Extract out some code into the new
8351 function above.
8352
8353 2004-01-03 J. Brobecker <brobecker@gnat.com>
8354
8355 * infrun.c (handle_inferior_event): Move the declaration of
8356 real_stop_pc inside the if blocks where it is used.
8357
8358 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8359
8360 * sparc64-tdep.c (sparc64_16_byte_align_p)
8361 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8362 Use check_typedef to get subtypes of structures and unions.
8363 (sparc64_store_return_value): Fix calculation of the appropriate
8364 offset into VALBUF when storing a structure or union.
8365 (sparc64_return_value): New function.
8366 (sparc64_use_struct_convention): Remove function.
8367 (sparc64_init_abi): Set return_value, don't set
8368 extract_return_value, store_return_value and
8369 use_struct_convention.
8370
8371 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
8372
8373 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8374 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8375 gdb/config/alpha/xm-alphaosf.h,
8376 gdb/config/powerpc/tm-ppcle-eabi.h,
8377 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8378 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8379 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8380 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8381 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8382 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8383 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8384 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8385 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8386 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8387 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8388 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8389 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8390 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8391 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8392 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8393 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8394 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8395 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8396 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8397 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8398 Remove lines for .cvsignore files.
8399
8400 2004-01-03 J. Brobecker <brobecker@gnat.com>
8401
8402 * infrun.c: Back out the previous change.
8403
8404 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8405
8406 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8407 sparc-*-sunos4* to the list of REMOVED configurations.
8408
8409 * configure.tgt: Add back sparc-*-vxworks*.
8410 * remote-vxsparc.c: Remove all includes except for "defs.h",
8411 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8412 Include "sparc-tdep.h".
8413 (SPARC_R_G1): New define.
8414 (vxsparc_gregset): New variable.
8415 (ext_format_sparc): Remove extern declaration.
8416 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8417 sparc32_supply_fpregset.
8418 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8419 sparc_collect_rwindow and sparc32_collect_fpregset.
8420 * config/sparc/tm-vxworks.h: New file, based on recently removed
8421 tm-vxsparc.h.
8422 * config/sparc/vxworks.mt: New file, based on recently removed
8423 vxworks.mt.
8424
8425 2004-01-03 J. Brobecker <brobecker@gnat.com>
8426
8427 * infrun.c (handle_step_into_function): New function.
8428 (handle_inferior_event): Extract out some code into the new
8429 function above.
8430
8431 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8432
8433 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8434 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8435 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8436 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8437 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8438 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8439 (sparc_nat_h): New variable.
8440 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8441 (tm-sun4os4.h): Remove dependency.
8442 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8443 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8444 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8445 sparc-tdep.o): Update dependencies.
8446 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8447 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8448 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8449 dependencies.
8450 * configure.host: Remove existing sparc-*-lynxos*,
8451 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8452 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8453 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8454 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8455 triplets.
8456 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8457 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8458 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8459 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8460 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8461 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8462 sparc64-*-solaris2* and sparc64-*-* triplets.
8463 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8464 "symtab.h" and "objfiles.h".
8465 (BIAS): Remove define.
8466 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8467 (X_DISP19): Remove macros.
8468 (sparc_fetch_instruction): Remove function.
8469 (struct gdbarch_tdep): Remove definition.
8470 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8471 (sparc_breakpoint_from_pc): Remove function.
8472 (struct sparc64_frame_cache): Remove definition.
8473 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8474 sparc64_unwind_pc): Remove functions.
8475 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8476 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8477 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8478 (sparc64_frame_cache): Change return type to `struct
8479 sparc_frame_cache *'. Simply call sparc_frame_cache.
8480 (sparc64_frame_this_id, sparc64_frame_prev_register,
8481 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8482 instead of `struct sparc64_frame_cache.
8483 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8484 sparc_analyze_control_transfer, sparc_software_single_step,
8485 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8486 _initialize_sparc64_tdep): Remove functions.
8487 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8488 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8489 macros.
8490 (sparc64_supply_gregset, sparc64_collect_gregset,
8491 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8492 (sparc64_init_abi): New function.
8493 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8494 inclusion guard. Include "sparc-tdep.h".
8495 (BIAS): Define.
8496 (r_tstate_offset, r_fprs_offset): New defines.
8497 (enum sparc_regnum): Remove defenition.
8498 (enum sparc64_regnum): Reformat.
8499 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8500 (sparc64_init_abi, sparc64_supply_gregset,
8501 sparc64_collect_gregset, sparc64_supply_fpregset,
8502 sparc64_collect_fpregset): New prototypes.
8503 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8504 Add extern declarations.
8505 (sparc64_sol2_init_abi): New prototype.
8506 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8507 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8508 prototypes.
8509 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8510 "sparnbsd-nat.h".
8511 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8512 functions.
8513 (_initialize_sparc64fbsd_nat): Remove initialization of
8514 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8515 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
8516 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
8517 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8518 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8519 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8520 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8521 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8522 (sparc64fbsd_r_y_offset): Remove variables.
8523 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8524 Make static and const.
8525 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8526 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8527 functions.
8528 (sparc64fbsd_gregset): New variable.
8529 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8530 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8531 and sparc64_supply_fpregset.
8532 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8533 (sparc64fbsd_sigtramp_frame_this_id)
8534 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8535 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8536 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8537 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8538 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8539 * sparcnbsd-tdep.c: Update copyright year. Include
8540 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8541 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8542 "value.h" and "sparcnbsd-tdep.h".
8543 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8544 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8545 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8546 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8547 defines.
8548 (sparcnbsd_gregset): New variable.
8549 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8550 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8551 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8552 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8553 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8554 variables.
8555 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8556 (sparc32nbsd_sigcontext_frame_this_id)
8557 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8558 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8559 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8560 (sparcnbsd_get_longjmp_target_32,
8561 sparcnbsd_get_longjmp_target_64): Remove functions.
8562 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8563 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8564 sparcnbsd_init_elf): Remove.
8565 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8566 (sparcnbsd_elf_init_abi): New functions.
8567 (_initialize_sparcnbsd_tdep): New prototype.
8568 (_initialize_sparnbsd_tdep): Update.
8569 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8570 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8571 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8572 * config/sparc/linux.mh: Update comment.
8573 (XM_FILE, HOST_IPC): Remove variables.
8574 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8575 sparc-linux-nat.o.
8576 * config/sparc/linux.mt: Update comment.
8577 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8578 * config/sparc/nbsd.mt: Reformat.
8579 * config/sparc/nbsd64.mh: Update comment.
8580 (NATDEPFILES): Add sparc-nat.o.
8581 * config/sparc/nbsd64.mt: Update comment.
8582 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8583 (TM_FILE): Set to tm-nbsd.h.
8584 * config/sparc/nbsdelf.mh: Update comment.
8585 (NATDEPFILES): Add sparc-nat.o.
8586 (XM_FILE): Delete.
8587 * config/sparc/nbsdaout.mh: Update comment.
8588 (NATDEPFILES): Add sparc-nat.o
8589 (XM_FILE): Delete.
8590 * config/sparc/nm-linux.h: Update copyright year. Don't include
8591 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8592 inclusion.
8593 (KERNEL_U_SIZE): Remove define.
8594 (kernel_u_size): Remove prototype.
8595 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8596 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8597 "regcache.h".
8598 (CHILD_PREPARE_TO_STORE): Remove define.
8599 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8600 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8601 sparcnbsd-nat.c: Rewrite files.
8602 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8603 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8604 sparcnbsd-tdep.h: Remove files.
8605 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8606 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8607 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8608 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8609 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8610 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8611 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8612 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8613 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8614 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8615 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8616 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8617 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8618 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8619 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8620 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8621 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8622 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8623 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8624
8625 2004-01-02 Andrew Cagney <cagney@redhat.com>
8626
8627 From 2003-12-18 Kazuhiro Inaoka:
8628 * configure.host: Add m32r-linux target.
8629
8630 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8631
8632 * top.c (print_gdb_version): Update year to 2004.
8633
8634 2004-01-02 Mark Mitchell <mark@codesourcery.com>
8635
8636 * MAINTAINERS: Add myself to the write-after-approval category.
8637
8638 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
8639
8640 From Bernardo Innocenti <bernie@develer.com>:
8641 * configure.tgt: Add uClinux target.
8642
8643 2004-01-02 Andrew Cagney <cagney@redhat.com>
8644
8645 * utils.c (do_my_cleanups): Make static, add forward declaration.
8646 * defs.h (do_my_cleanups): Delete declaration.
8647
8648 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
8649
8650 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8651 bfd/ChangeLog-0203.
8652
8653 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8654
8655 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8656 in <machine/reg.h>.
8657 * configure, config.in: Regenerate.
8658
8659 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8660 tui/ChangeLog-1998-2003.
8661 \f
8662 Local Variables:
8663 mode: change-log
8664 left-margin: 8
8665 fill-column: 74
8666 version-control: never
8667 End:
This page took 0.198026 seconds and 3 git commands to generate.