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