1 2004-10-30 Andrew Cagney <cagney@gnu.org>
3 * objfiles.c: Include "mdebugread.h".
4 * mdebugread.c: Include "mdebugread.h".
5 (ecoff_relocate_cfi): Delete.
6 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
7 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
8 * mdebugread.h (ecoff_relocate_efi): New file.
9 * Makefile.in: Update dependencies.
11 * mips-tdep.c (struct frame_extra_info): Delete.
12 (temp_proc_desc): Delete.
14 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
16 (mips_extra_func_info_t, mips_extra_func_info): Delete.
17 (struct mdebug_extra_func_info): Replace struct
18 alpha_extra_func_info and alpha_extra_func_info_t.
19 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
21 (struct mdebug_extra_func_info): Replace struct
22 alpha_extra_func_info and alpha_extra_func_info_t.
23 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
24 * mdebugread.c, alpha-mdebug-tdep.c:
26 Suggested by Mark Kettenis.
27 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
28 fields frame_adjust and high_addr.
29 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
30 (non_heuristic_proc_desc): Delete references.
32 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
33 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
34 * mips-tdep.c: Update.
36 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
37 (MIPS_LAST_EMBED_REGNUM): Add.
38 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
39 (LAST_EMBED_REGNUM): Delete.
40 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
42 * config/mips/tm-mips.h (PS_REGNUM): Delete.
43 * mips-tdep.h (MIPS_PS_REGNUM): Add.
44 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
45 * mips-linux-nat.c: Update.
47 * mips-tdep.h: Add comments on registers.
48 (MIPS_UNUSED_REGNUM): Define.
49 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
50 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
51 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
52 * mips-linux-nat.c, remote-mips.c: Update.
54 * config/mips/tm-mips.h (t_insn): Delete.
55 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
56 Replace t_insn with ULONGEST.
58 2004-10-30 Mark Kettenis <kettenis@gnu.org>
60 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
61 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
62 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
63 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
64 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
65 (mipsnbsd_core_osabi_sniffer): New function.
66 (mipsnbsd_init_abi): Set regset_from_core_section.
67 (_initialize_mipsnbsd_tdep): Remove calls to
68 deprecated_add_core_fns.
69 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
70 (mipsnbsd_regset_from_core_section): New functions.
71 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
72 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
74 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
75 Remove optimization for DEPRECATED_FP_REGNUM.
77 2004-10-30 Andrew Cagney <cagney@gnu.org>
79 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
80 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
81 (alpha_setup_arbitrary_frame): Delete.
82 * mips-tdep.c (setup_arbitrary_frame): Delete.
83 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
84 (setup_arbitrary_frame): Delete.
85 * stack.c (parse_frame_specification_1): When specified, call
86 create_new_frame with two parameters. Delete #ifdef
87 SETUP_ARBITRARY_FRAME.
89 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
90 (MIPS_INSTLEN): Delete.
91 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
92 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
93 * remote-mips.c, mips-tdep.c: Update.
95 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
96 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
97 * mips-tdep.c (mips_mdebug_frame_cache)
98 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
99 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
100 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
101 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
102 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
103 (mips_gdbarch_init): Do not append mdebug sniffers.
104 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
105 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
106 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
107 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
108 * Makefile.in: Update dependencies.
110 * mips-tdep.h (mips_abi_regsize): Declare.
111 * mips-tdep.c (mips_abi_regsize): Make non-static.
113 * mips-tdep.c (gdb_print_insn_mips): Simplify.
114 (make_mips16_addr): Delete.
116 2004-10-30 Mark Kettenis <kettenis@gnu.org>
118 * i386-sol2-nat.c: New file.
119 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
121 (i386-sol2-nat.o): Update dependencies.
122 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
125 2004-10-30 Andrew Cagney <cagney@gnu.org>
127 Total breakage identified by Joel Brobecker.
128 * mips-tdep.c (after_prologue): Delete.
129 (mips_skip_prologue): Use skip_prologue_using_sal.
130 (heuristic_proc_desc): Delete, unused.
132 2004-10-30 Mark Kettenis <kettenis@gnu.org>
134 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
135 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
136 Cleanup coding style.
138 2004-10-30 Andrew Cagney <cagney@gnu.org>
140 * mips-tdep.h (mips_pc_is_mips16): Declare.
141 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
142 non-static. Update calls.
144 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
145 * command.h (add_setshow_enum_cmd): Declare.
146 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
148 * mips-tdep.c (_initialize_mips_tdep): Use
149 add_setshow_zinteger_cmd.
151 * mips-tdep.c (mips_eabi_extract_return_value)
152 (mips_o64_extract_return_value, mips_o64_store_return_value)
153 (return_value_location, mips_eabi_reg_struct_has_addr)
154 (mips_eabi_use_struct_convention)
155 (mips_eabi_store_return_value): Delete.
156 (mips_eabi_store_return_value): New function.
157 (mips_eabi_return_value): New function.
158 (mips_gdbarch_init): For O64 and EABI, delete
159 extract_return_value, store_return_value, use_struct_convention
160 and reg_struct_has_addr, add return_value.
162 * mips-tdep.c (read_signed_register): Use
163 regcache_cooked_read_signed.
165 2004-10-30 Mark Kettenis <kettenis@gnu.org>
167 * mipsread.c: Cleanup coding style.
168 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
169 (mipscoff_symfile_finish): Remove prototypes.
171 2004-10-29 Mark Kettenis <kettenis@gnu.org>
173 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
174 (mips_mdebug_frame_cache, mips16_scan_prologue)
175 (mips32_scan_prologue, mips_stub_frame_cache)
176 (heuristic_proc_start, heuristic_proc_desc)
177 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
178 (mips_n32n64_return_value, mips_o32_push_dummy_call)
179 (mips_o32_return_value, mips_o64_push_dummy_call)
180 (mips_step_skips_delay, mips_skip_trampoline_code)
181 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
182 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
183 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
184 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
185 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
186 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
187 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
188 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
189 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
190 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
192 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
193 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
195 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
197 * mipsnbsd-nat.c: Include "mips-tdep.h".
198 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
199 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
201 2004-10-29 Andrew Cagney <cagney@gnu.org>
203 * stack.c (parse_frame_specification_1): New function based on
204 parse_frame_specification. Add message and selected_frame_p
205 paramters. Truely always return non-NULL.
206 (parse_frame_specification): Call parse_frame_specification_1.
207 (frame_info): Update. Eliminate target_has_stack check.
208 (select_frame_command): Update.
210 2004-10-29 Andrew Cagney <cagney@gnu.org>
212 * frame.h (get_selected_frame): Add message parameter.
213 * frame.c (get_selected_frame): Add and use message parameter.
214 * stack.c (current_frame_command, return_command, locals_info)
215 (catch_info, args_info, up_silently_base, down_silently_base): Use
216 get_selected_frame with an explicit message.
217 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
218 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
219 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
220 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
221 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
222 * breakpoint.c: Update.
224 2004-10-29 Andrew Cagney <cagney@gnu.org>
226 * trad-frame.c (trad_frame_get_prev_register): Use
227 frame_unwind_register instead of frame_register_unwind, do not
228 recurse the register's location.
229 * xstormy16-tdep.c (xstormy16_frame_prev_register):
230 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
231 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
232 * sh-tdep.c (sh_frame_prev_register): Ditto.
233 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
234 * i386-tdep.c (i386_frame_prev_register): Ditto.
235 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
236 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
238 2004-10-28 Mark Kettenis <kettenis@jive.nl>
240 * proc-events.c: Fix several coding-style issues. Consistently
241 use #ifdef instead of #if defined().
242 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
244 (_initialize_proc_events): New prototype.
246 * proc-why.c: Fix several coding-style issues.
247 (proc_prettyfprint_why): Use ARRAY_SIZE.
249 2004-10-27 Jim Blandy <jimb@redhat.com>
251 * remote.c (fetch_register_using_p): Construct 'p' packet in a
252 manner independent of the host byte order.
254 2004-10-27 Mark Kettenis <kettenis@gnu.org>
256 * mips-tdep.c (id_delayed): Remove prototype.
258 2004-10-26 Mark Kettenis <kettenis@gnu.org>
260 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
261 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
262 to enum with register numbers.
263 (enum mips_insn_size): New enum.
265 2004-10-26 Andrew Cagney <cagney@gnu.org>
267 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
268 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
269 (mips_gdbarch_init): Update.
270 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
272 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
273 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
274 IN_SOLIB_RETURN_TRAMPOLINE.
275 * mips-tdep.c (mips_dump_tdep): Do not print
276 IN_SOLIB_RETURN_TRAMPOLINE.
277 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
278 (mips_gdbarch_init): Update.
280 * mips-tdep.h (mips_software_single_step): Move to here ...
281 * config/mips/tm-mips.h: ... from here.
282 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
283 (SOFTWARE_SINGLE_STEP): Delete.
284 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
286 2004-10-25 Andrew Cagney <cagney@gnu.org>
288 * NEWS: Add Changes since GDB 6.3 section.
290 2004-10-23 Andreas Schwab <schwab@suse.de>
292 * ada-lang.c (grow_vect): Return the new array instead of
293 expecting pointer to pointer to avoid violation of aliasing rules.
294 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
296 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
298 * s390-tdep.c (enum pv_boolean): Remove.
299 (pv_is_array_ref): Remove.
300 (s390_on_stack): Remove.
301 (S390_NUM_SPILL_SLOTS): Remove.
302 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
303 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
304 (s390_store): Track all stores of orginal incoming registers to the
305 stack constant offsets relative to the CFA, instead of only tracking
306 stores into specific spill slots.
307 (s390_load): Likewise.
308 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
309 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
310 defined as call-saved by the ABI.
311 (s390_push_dummy_call): Use bottom of dummy call argument save area
312 as return value, not the top. Do not store to the called function's
314 (s390_unwind_dummy_id): Adapt accordingly.
316 2004-10-23 Andrew Cagney <cagney@gnu.org>
318 * objfiles.h (struct objfile): Rename obj_private to
319 deprecated_obj_private, sym_private to deprecated_sym_private, and
320 sym_stab_info to deprecated_sym_stab_info.
321 * gdb-stabs.h: Update.
324 * coffread.c: Update.
325 * xcoffread.c: Update.
329 * mdebugread.c: Update.
331 * coffread.c: Update.
333 2004-10-23 Mark Kettenis <kettenis@gnu.org>
335 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
336 * configure.host: Add mips64*-*-openbsd*.
337 * configure.tgt: Add mips64*-*-openbsd*.
338 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
340 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
341 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
343 2004-10-21 Joel Brobecker <brobecker@gnat.com>
345 * symtab.c (symbol_search_name): Minor reformatting.
347 2004-10-20 Joel Brobecker <brobecker@gnat.com>
349 * symtab.h: Fix typo in comment.
351 2004-10-19 Mark Kettenis <kettenis@gnu.org>
353 * dwarf2read.c (struct comp_unit_head): Fix coding style.
354 (dwarf_decode_line_header): Likewise.
356 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
358 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
360 2004-10-19 Andrew Cagney <cagney@gnu.org>
362 GDB 6.3 branch created.
363 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
365 2004-10-15 Joel Brobecker <brobecker@gnat.com>
367 * dwarf2read.c (set_cu_language): Set language to Ada for
368 DW_LANG_Ada83 and DW_LANG_Ada95.
370 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
372 From Andreas Schwab <schwab@suse.de>:
373 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
374 for xmalloc and xrealloc.
376 2004-10-15 Andrew Cagney <cagney@gnu.org>
378 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
379 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
380 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
383 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
385 * ada-lang.c (ada_lookup_symbol): Correct comment.
386 (ada_evaluate_subexp): Change error message for
387 OP_FUNCALL case so as not to indicate an internal error.
389 2004-10-15 Joel Brobecker <brobecker@gnat.com>
391 Committed by Paul Hilfinger.
392 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
393 type sizes in XVE/XVU types, and emit a warning when that happens,
394 instead of rounding up the size of the resulting type.
395 Some minor reformatting.
396 (ada_is_aligner_type): Do not consider a type as an aligner type
397 if there is a corresponding XVS type as well.
398 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
399 have several levels of pointer indirection to the array.
401 2004-10-15 Jerome Guitton <guitton@gnat.com>
403 Committed by Paul Hilfinger.
404 * ada-lang.c (check_size): New function.
405 (coerce_unspec_val_to_type): call check_size to make sure
406 that the object size is reasonable.
407 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
408 Implements the case when we get a reference when we evaluate
409 the expression of one of the bounds of the slice.
410 (ada_value_struct_elt): when a packed array field is
411 a reference, use ada_coerce_ref to dereference it; use
412 ada_value_ind only if it is a pointer.
414 2004-10-15 Joel Brobecker <brobecker@gnat.com>
416 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
417 a bit to avoid the necessity of an advance declaration. Remove
419 (set_reg_offset): Move implemenation up.
420 (mips16_get_imm): Likewise.
421 (mips16_scan_prologue): Likewise.
422 (reset_saved_regs): Likewise.
423 (mips32_scan_prologue): Likewise.
425 2004-10-14 Joel Brobecker <brobecker@gnat.com>
427 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
428 Remove sp as a parameter, compute it internally instead. Move
429 prologue scanning limit from heuristic_proc_desc to here.
430 (mips16_scan_prologue): Likewise.
431 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
432 by call to mips16_scan_prologue.
433 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
434 by call to mips32_scan_prologue.
435 (heuristic_proc_desc): Remove code that's no longer necessary.
436 Update calls to mips16_scan_prologue and mips32_scan_prologue.
437 (mips_skip_prologue): Update calls to mips16_scan_prologue
438 and mips32_scan_prologue.
440 2004-10-14 Joel Brobecker <brobecker@gnat.com>
442 * mips-tdep.c (mips16_scan_prologue): Merge code from
443 mips16_skip_prologue. Now return the address of the first
444 instruction past the function prologue.
445 (mips16_skip_prologue): Remove, no longer necessary.
446 (mips_skip_prologue): Replace call to mips16_skip_prologue
447 by call to mips16_scan_prologue.
449 2004-10-14 Joel Brobecker <brobecker@gnat.com>
451 * mips-tdep.c (mips32_scan_prologue): Merge code from
452 mips32_skip_prologue. Now return the address of the first
453 instruction past the function prologue.
454 (mips32_skip_prologue): Remove. No longer necessary.
455 (mips16_skip_prologue): Add parameter end_pc instead of
457 (mips_skip_prologue): Compute the upper limit for the
458 prologue scanning. Update call to mips16_skip_prologue.
459 Replace call to mips32_skip_prologue by call to
460 mips32_scan_prologue.
462 2004-10-14 Mark Kettenis <kettenis@gnu.org>
464 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
465 NetBSD system call stubs that store %rp in the ERP slot of the
468 * source.c: Always define O_BINARY to 0 if not defined already.
469 (openp): Unconditionally use O_BINARY.
471 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
472 * event-top.c (gdb_readline2): Likewise.
474 2004-10-14 Orjan Friberg <orjanf@axis.com>
476 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
477 deprecated_add_core_fns which was removed by mistake.
479 2004-10-13 Kevin Buettner <kevinb@redhat.com>
481 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
482 references to deprecated_registers[] with equivalent code.
484 2004-10-13 Kevin Buettner <kevinb@redhat.com>
486 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
487 ``deprecated_registers'' with equivalent code. Use gdb_assert()
488 instead of explicit test and print statement.
490 2004-10-12 Mark Kettenis <kettenis@gnu.org>
492 * sparc-nat.c: Include "inf-ptrace.h".
493 (sparc_target): New function.
494 * sparc-nat.h: Update copyright year.
495 (sparc_target): New prototype.
496 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
497 (_initialize_sparcnbsd_nat): Construct and add target vector.
498 * sparc64nbsd-nat.c: Include "target.h".
499 (_initialize_sparc64nbsd_nat): Construct and add target vector.
500 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
502 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
503 inftarg.o, add inf-ptrace.o.
504 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
505 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
506 (NAT_FILE): Set to nm-bsd.h.
507 (LOADLIBES): New variable.
508 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
509 infarg.o, add inf-ptrace.o.
510 * config/sparc/nm-nbsdaout.h: Remove file.
511 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
512 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
513 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
515 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
516 "fopen-same.h". Update comment.
518 2004-10-11 Mark Kettenis <kettenis@gnu.org>
520 * i386gnu-nat.c: Include "gdb_string.h".
521 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
522 registers when the floating-point state isn't initialized.
523 * Makefile.in (i386gnu-nat.o): Update dependencies.
525 2004-10-11 David Anderson <davea@sgi.com>
527 * regcache.c (regcache_raw_read): Comment was missing "to".
528 Extraneous ' removed.
529 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
530 comment now describes use.
532 2004-10-11 Orjan Friberg <orjanf@axis.com>
534 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
535 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
536 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
537 (cris_sigtramp_frame_sniffer): New functions.
538 (cris_gdbarch_init): Hook in signal trampoline unwinder.
539 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
540 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
541 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
542 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
544 (cris_version_update): Remove, replace with ...
545 (set_cris_version): New function.
546 (struct gdbarch_tdep, cris_mode, cris_mode_update)
547 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
548 (_initialize_cris_tdep): Remove CRIS mode command.
549 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
550 cris-fpless-backtrace command.
551 (cris_scan_prologue): Fix prologue scanning limit.
552 (cris_register_type): Update to reflect actual registers.
553 (cris_register_bytes_ok) Remove.
554 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
555 Remove set_gdbarch_deprecated_register_size,
556 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
558 2004-10-10 Andrew Cagney <cagney@gnu.org>
560 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
563 2004-10-10 Joel Brobecker <brobecker@gnat.com>
565 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
567 2004-10-10 Joel Brobecker <brobecker@gnat.com>
569 * mips-tdep.c (mips16_scan_prologue): Renames
570 mips16_heuristic_proc_desc. Update comment.
571 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
572 (heuristic_proc_desc): Update calls to the 2 functions above.
574 2004-10-10 Joel Brobecker <brobecker@gnat.com>
576 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
577 Update comments. Also immediately return empty cache when the start
578 address of our function could not be found.
579 (mips_insn32_frame_cache): Likewise.
581 2004-10-10 Joel Brobecker <brobecker@gnat.com>
583 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
584 (mips_insn16_frame_cache): Pass frame cache in call to
585 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
586 Remove code that became redundant as a consequence.
587 (mips32_heuristic_proc_desc): No longer compute a fake
588 procedure descriptor. Compute the full frame cache instead.
589 Some minor comment reformatting.
591 2004-10-10 Jim Blandy <jimb@redhat.com>
593 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
594 reader, tracing bytecode stuff): Remove self.
596 2004-10-10 Mark Kettenis <kettenis@gnu.org>
598 * sparc64-linux-tdep.c: Update copyright year. Don't include
600 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
601 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
602 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
604 * sparc-linux-tdep.c: Update copyright year.
605 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
606 to struct frame_info *. Use safe_frame_unwind_memory instead of
607 deprecated_read_memory_nobpt.
608 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
609 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
610 changed signature of sparc_linux_sigtramp_start.
611 (sparc32_linux_pc_in_sigtramp): Remove function.
612 (sparc32_linux_sigtramp_p): New function.
613 (sparc32_linux_sigtramp_frame_sniffer): Use
614 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
616 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
618 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
620 * ada-lang.c (lim_warning): Re-implement as a varargs function.
621 (decode_packed_array_type, value_subscript_packed)
622 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
623 argument in call to lim_warning.
625 * configure.in: Really disable the TUI if an enhanced curses
627 * configure: Regenerate.
629 2004-10-09 Mark Kettenis <kettenis@gnu.org>
631 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
632 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
633 * config/i386/nm-nbsdaout.h: Remove file.
634 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
635 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
636 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
637 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
638 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
639 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
640 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
641 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
642 (ldd, ld_un, ld_2): Remove defines.
643 * config/i386/nm-obsd.h: Likewise.
645 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
647 * ada-lex.l: Remove useless rule whose right-context clause
648 causes unreferenced static function warning for yyrealloc.
649 (ada_flex_use): Remove the artificial reference to yyrealloc.
651 2004-10-08 Andrew Cagney <cagney@gnu.org>
653 * target.h (struct target_ops): Rename to_xfer_memory to
654 deprecated_xfer_memory.
656 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
658 * win32-nat.c: Update.
660 * uw-thread.c: Update.
661 * thread-db.c: Update.
662 * sol-thread.c: Update.
664 * remote-vx.c: Update.
665 * remote-st.c: Update.
666 * remote-sim.c: Update.
667 * remote-sds.c: Update.
668 * remote-rdp.c: Update.
669 * remote-rdi.c: Update.
670 * remote-mips.c: Update.
671 * remote-m32r-sdi.c: Update.
672 * remote-e7000.c: Update.
675 * nto-procfs.c: Update.
677 * linux-nat.c: Update.
679 * hpux-thread.c: Update.
680 * go32-nat.c: Update.
685 * aix-thread.c: Update.
687 2004-10-08 Andrew Cagney <cagney@gnu.org>
689 * target.c (debug_target): Move to near start of file.
690 (target_stopped_data_address_p): Re-org logic, add casts.
692 2004-10-02 Mark Kettenis <kettenis@gnu.org>
694 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
695 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
696 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
697 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
700 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
702 * target.h (to_stopped_data_address): Change prototype to
703 take a CORE_ADDR pointer and return an int.
704 * target.c (update_current_target): Change to_stopped_data_address
705 to match new prototype.
706 (debug_to_stopped_data_address): Change appropriately.
707 * breakpoint.c (bpstat_stop_status): Change call to
708 target_stopped_data_address to use new prototype.
709 * frv-tdep.c (frv_have_stopped_data_address): New function.
710 (frv_stopped_data_address): Change to new prototype and
712 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
713 prototype and functionality.
714 (ia64_stopped_by_watchpoint): New function.
715 * i386-nat.c (i386_stopped_data_address): Change to new
716 prototype and functionality.
717 (i386_stopped_by_watchpoint): New function.
718 * remote.c (remote_stopped_data_address): Change to new prototype
720 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
721 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
722 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
723 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
724 new i386_stopped_by_watchpoint function.
725 (i386_stopped_by_watchpoint): New prototype.
726 (i386_stoppped_data_address): Change to new prototype.
727 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
728 new ia64_stopped_by_watchpoint function.
729 (ia64_stopped_by_watchpoint): New prototype.
730 (ia64_stopped_data_address): Ditto.
732 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
734 * ada-typeprint.c (ada_print_type): Use int_string for printing
735 modulus of modular type.
736 * ada-lang.h (ada_modulus): Change return type to unsigned.
737 * ada-lang.c (ada_language_arch_info): Correct type of
739 (ada_modulus): Return unsigned result.
740 (ada_lookup_symbol): Remove user disambiguation and modify comment
743 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
745 Committed by Paul Hilfinger.
746 * ada-lang.c (decode_packed_array): On big-endian targets,
747 left-justify the value if it comes with a modular type.
749 2004-10-08 Joel Brobecker <brobecker@gnat.com>
751 Committed by Paul Hilfinger.
752 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
753 (is_name_suffix): Add support for "___JM" suffixes.
754 (ada_check_typedef): Renames ada_completed_type.
755 Update all users of CHECK_TYPEDEF, check_typedef, and
756 ada_complete_type to call ada_check_typedef.
757 * ada-typeprint.c: Likewise.
758 * ada-valprint.c: Likewise.
760 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
762 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
764 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
766 * MAINTAINERS: Update e-mail address.
768 2004-10-07 Daniel Jacobowitz <dan@debian.org>
770 From Maciej W. Rozycki <macro@mips.com>:
771 * mips-tdep.c (mips32_next_pc): Check the register's contents,
772 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
774 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
776 * m32r-tdep.c (decode_prologue): Support functions written
777 in assembler language. Recognize trap instructions as the
779 (m32r_frame_unwind_cache): Ditto.
780 (m32r_skip_prologue): Extend search limit. Quit analyzing
781 prologue if pc's location is not readable.
783 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
785 * Makefile.in (.l.c): Do conversions of names of alloc and free
786 functions that are done for .y.c files, plus special one
787 for yy_flex_realloc. Also, correct missing-file tests here.
788 * ada-lex.l (malloc, free): Remove macros.
789 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
791 (ada_flex_use): Dummy definition to remove warnings about unused
793 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
796 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
798 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
800 (sh_return_value_fpu): Ditto for CPUs with FPU.
801 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
802 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
803 Install sh_return_value_nofpu resp. sh_return_value_fpu as
804 RETURN_VALUE functions.
806 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
808 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
809 (sh_pseudo_register_write): Ditto.
811 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
813 * sh-tdep.c (IS_MACL_STS): New define.
815 (IS_MACL_LDS): Ditto.
816 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
817 instructions in prologue.
818 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
819 instructions in epilogue.
821 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
823 * sh-tdep.c (SH_NUM_REGS): Define as 67.
824 (sh_sh_register_name): Add eight empty register names.
825 (sh_sh3_register_name): Ditto.
826 (sh_sh3e_register_name): Ditto.
827 (sh_sh2e_register_name): Ditto.
828 (sh_sh2a_register_name): New function, defining SH2A register set.
829 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
831 (sh_sh_dsp_register_name): Add eight empty register names.
832 (sh_sh3_dsp_register_name): Ditto.
833 (sh_sh4_register_name): Ditto.
834 (sh_sh4_nofpu_register_name): Ditto.
835 (sh_sh4al_dsp_register_name): Ditto.
836 (sh2a_show_regs): New function.
837 (sh2a_nofpu_show_regs): New function.
838 (sh_sh2a_register_type): New function.
839 (do_bank_register_info): New function.
840 (sh_print_pseudo_register): Call do_bank_register_info.
841 Call sh_print_pseudo_register for valid "bank" register.
842 (sh_sh2a_register_sim_regno): New function.
843 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
844 Increment pseudo register count by one for all sh variants with
845 pseudo registers to accomodate pseudo bank register.
846 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
847 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
848 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
849 Increment pseudo register numbers.
851 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
853 * dwarf2read.c (read_subroutine_type): Call make_function_type
854 instead of lookup_function_type.
856 2004-10-05 Jim Blandy <jimb@redhat.com>
858 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
859 (Previous change missed some uses.)
861 2004-10-05 Andrew Cagney <cagney@gnu.org>
863 * target.h (deprecated_child_ops): Rename child_ops.
864 * wince.c: Update copyright. Rename child_ops.
865 * win32-nat.c: Rename child_ops.
866 * target.c: Rename child_ops.
867 * rs6000-nat.c: Rename child_ops.
868 * linux-nat.c: Rename child_ops.
869 * infttrace.c: Rename child_ops.
870 * inftarg.c: Rename child_ops.
871 * infptrace.c: Rename child_ops.
872 * hppah-nat.c: Update copyright. Rename child_ops.
873 * hpux-thread.c: Update copyright. Rename child_ops.
875 2004-10-05 Daniel Jacobowitz <dan@debian.org>
877 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
879 2004-10-05 Andrew Cagney <cagney@gnu.org>
881 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
883 2004-10-05 Daniel Jacobowitz <dan@debian.org>
885 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
886 (die_ref_table): Remove.
887 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
888 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
889 the usage of this type.
890 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
891 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
892 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
893 (dwarf2_create_include_psymtab): Update comment.
894 (find_partial_die): Remove third argument. Remove unreachable call
896 (dwarf2_find_containing_comp_unit): Update comments. Change one
897 assertion to an error. Remove an unreachable error.
898 (dwarf2_find_comp_unit): Update comments.
899 (type_at_offset): Remove dead code.
900 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
901 (store_in_ref_table): Add CU argument.
902 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
903 inter-compilation-unit references.
904 (load_full_comp_unit, process_full_comp_unit): New functions, based
905 on psymtab_to_symtab_1.
906 (psymtab_to_symtab_1): Use them.
907 (dwarf2_add_dependence): New function.
908 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
909 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
910 (partial_die_parent_scope, guess_structure_name): Update for changes
912 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
913 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
914 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
915 (read_die_and_children): Update call to store_in_ref_table.
916 (do_free_die_list_cleanup): Remove.
917 (fixup_partial_die): Update for changes to find_partial_die.
918 (read_full_die): Handle queueing absolute references.
919 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
920 (dwarf2_attr, die_specification, die_type)
921 (die_containing_type, dwarf2_extension): Update calls to
923 (dump_die): Update DW_FORM_ref* handling.
924 (dwarf2_get_ref_die_offset): Likewise.
925 (free_one_comp_unit): Release the dies list.
926 (dwarf2_mark_helper): New function.
927 (dwarf2_mark): Use it.
929 2004-10-05 Mark Kettenis <kettenis@jive.nl>
931 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
932 when writing to memory.
934 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
936 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
937 (m32r_extract_struct_value_address): Delete function.
938 (m32r_return_value): New function.
939 (m32r_gdbarch_init): Instead of store_return_value,
940 extract_return_value, deprecated_extract_struct_value_address
941 and deprecated_use_struct_convention, set return_value.
943 2004-10-03 Daniel Jacobowitz <dan@debian.org>
945 * dwarf2read.c (read_subrange_type): Add comment for variable
948 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
950 * Makefile.in (.l.c): Modify rule for compatibility with recent
951 versions of flex, and remove most command-line options.
952 * ada-lex.l: Add %options line in place of -I -i and -s command-line
955 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
957 Turn on initial Ada support (mainly expression evaluation).
959 * Makefile.in (SFILES): Remove ada-tasks.c.
960 (HFILES_NO_SRCDIR): Add ada-lang.h.
961 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
962 (YYOBJ): Add ada-exp.o.
963 (rule .l.c): Generalize to not mention ada.
964 * symtab.c: Include ada-lang.h.
965 (symbol_natural_name, symbol_demangled_name)
966 (symbol_search_name): Add Ada case.
968 2004-10-01 Andrew Cagney <cagney@gnu.org>
970 * Makefile.in (COMMON_OBS): Add inf-child.o.
971 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
972 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
973 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
974 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
975 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
976 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
977 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
978 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
979 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
980 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
981 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
982 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
983 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
985 * target.c (xfer_using_stratum): Change return type to LONGEST.
986 On each iteration offset, readbuf and writebuf.
987 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
988 partial_length, and read/modify/write predicate, update comments.
989 Pass buffer.word to ptrace write.
991 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
993 * symfile.c (init_filename_language_table): Add extensions for
995 * defs.h (enum language): Add language_ada.
996 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
997 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
998 (add_symbols_from_enclosing_procs): Make a no-op for now.
999 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1000 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1001 (find_line_in_linetable, find_next_line_in_linetable)
1002 (read_all_symtabs, is_plausible_func_for_line)
1003 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1004 (is_runtime_sym_defined, check_size): Remove declaration.
1005 (function_name_from_pc, ada_translate_error_message)
1006 (ada_lookup_minimal_symbol): Remove definition.
1007 (ada_add_block_symbols): Remove useless label.
1008 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1009 useless declaration.
1010 (ada_is_exception_sym): Likewise.
1012 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1014 Add m32r-linux support.
1015 * configure.tgt: Add m32r*-*-linux*.
1016 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1017 and m32r-linux-tdep.c.
1018 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1019 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1020 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1022 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1023 config/m32r/linux.mh, config/m32r/linux.mt,
1024 config/m32r/nm-linux.h: New files.
1026 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1028 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1029 (mips32_fetch_instruction): Remove, unused.
1031 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1033 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1034 conditions that will always be true.
1036 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1038 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1039 (vaxbsd_fetch_inferior_registers): Rename from
1040 fetch_inferior_registers. Make static.
1041 (vaxbsd_store_inferior_registers): Rename from
1042 store_inferior_registers. Make static.
1043 (_initialize_vaxbsd_nat): Construct and add target vector.
1044 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1045 inftarg.o. Add inf-child.o and inf-ptrace.o.
1046 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1047 inftarg.o. Add inf-child.o and inf-ptrace.o.
1049 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1050 inftarg.o. Add inf-child.o and inf-ptrace.o.
1052 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1054 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1055 (m88kbsd_fetch_inferior_registers): Rename from
1056 fetch_inferior_registers. Make static.
1057 (m88kbsd_store_inferior_registers): Rename from
1058 store_inferior_registers. Make static.
1059 (_initialize_m88kbsd_nat): New prototype and function.
1060 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1061 inftarg.o. Add inf-child.o and inf-ptrace.o.
1063 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1065 2004-09-30 Andrew Cagney <cagney@gnu.org>
1067 * target.c (target_xfer_partial): New function.
1068 (target_read_memory_partial, target_write_memory_partial)
1069 (default_xfer_partial, target_read_partial, target_write_partial)
1070 (xfer_using_stratum): Use.
1071 (debug_to_xfer_partial): Delete function.
1072 (setup_target_debug): Do not override to_xfer_partial.
1074 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1076 * fork-child.c: Update copyright year. Fix coding style.
1078 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1080 * defs.h (msavestring, mstrsave): Remove prototypes.
1081 * utils.c (msavestring, mstrsave): Remove functions.
1082 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1083 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1085 * source.c (find_and_open_source): Use xstrdup instead of
1088 2004-09-30 Andrew Cagney <cagney@gnu.org>
1090 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1091 (inf_ptrace_xfer_memory): Delete.
1092 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1093 (target_read_memory, target_write_memory): Use xfer_using_stratum
1094 when target_xfer_partial_p.
1095 (debug_target): Move to start of file.
1096 (target_read_memory_partial, target_write_memory_partial): Use
1097 to_xfer_partial when target_xfer_partial_p.
1099 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1100 inf_ptrace_xfer_memory with equivalent code.
1101 * inftarg.c (child_xfer_partial): When performing a write, pass
1102 writebuf to child_xfer_memory.
1104 * target.c (target_read_string): Use target_read_memory instead of
1107 2004-09-29 Andrew Cagney <cagney@gnu.org>
1109 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1110 the address of status.
1112 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1113 (kill_inferior): Inline ptrace_wait call.
1114 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1115 * inftarg.c (child_wait): Inline ptrace_wait call.
1117 * target.h (struct target_ops): Delete field to_post_wait.
1118 (target_post_wait): Delete macro.
1119 (child_post_wait): Delete declaration.
1120 * target.c (update_current_target, update_current_target)
1121 (debug_to_post_wait, setup_target_debug): Delete functions and
1123 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1124 * inftarg.c (child_post_wait): Delete.
1125 (init_child_ops): Do not set to_post_wait.
1126 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1127 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1128 * inf-child.c (inf_child_post_wait): Delete.
1129 (inf_child_target): Do not set to_post_wait.
1130 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1131 (inf_ptrace_target): Do not set to_post_wait.
1133 * wince.c (child_ops): Delete.
1134 * win32-nat.c (child_ops): Delete.
1136 * inftarg.c (inftarg_set_find_memory_regions)
1137 (inftarg_set_make_corefile_notes): Delete functions.
1138 (_initialize_linux_nat): Inline calls.
1140 * target.h (child_ops): Declare.
1141 * inftarg.c (child_ops): Move from here ...
1142 * target.c (child_ops): ... to here.
1143 * wince.c (child_ops): Delete extern declaration.
1144 * win32-nat.c (child_ops): Delete extern declaration.
1145 * linux-nat.c (child_ops): Delete extern declaration.
1146 * hpux-thread.c (child_ops): Delete extern declaration.
1148 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1150 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1152 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1154 * configure.in: Only set host_makefile_frag when building a native
1156 * configure: Regenerate.
1158 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1161 2004-09-28 Andrew Cagney <cagney@gnu.org>
1163 Problem identified by Paul Hilfinger.
1164 * Makefile.in (ada_lex_c): Define.
1165 (ada-lex.o): Delete rule.
1167 * linux-proc.c: Delete file.
1168 * Makefile.in: Update.
1169 * config/sparc/linux64.mh (NATDEPFILES):
1170 * config/sparc/linux.mh (NATDEPFILES): Update.
1171 * config/s390/s390.mh (NATDEPFILES): Update.
1172 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1173 * config/powerpc/linux.mh (NATDEPFILES): Update.
1174 * config/pa/linux.mh (NATDEPFILES): Update.
1175 * config/mips/linux.mh (NATDEPFILES): Update.
1176 * config/m68k/linux.mh (NATDEPFILES): Update.
1177 * config/ia64/linux.mh (NATDEPFILES): Update.
1178 * config/i386/linux64.mh (NATDEPFILES): Update.
1179 * config/i386/linux.mh (NATDEPFILES): Update.
1180 * config/arm/linux.mh (NATDEPFILES): Update.
1181 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1182 * linux-nat.c: Update copyright. Include <sys/param.h>,
1183 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1184 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1185 (O_LARGEFILE): Possibly define.
1186 (_initialize_linux_nat, linux_proc_pending_signals)
1187 (add_line_to_sigset, linux_proc_xfer_memory)
1188 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1189 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1190 (struct linux_corefile_thread_data)
1191 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1192 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1194 2004-09-16 Andrew Cagney <cagney@gnu.org>
1196 * lin-lwp.c: Delete file.
1197 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1198 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1199 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1200 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1201 (linux_nat_attach, detach_callback, linux_nat_detach)
1202 (resume_callback, resume_clear_callback, linux_nat_resume)
1203 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1204 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1205 (status_callback, running_callback, count_events_callback)
1206 (select_singlestep_lwp_callback, select_event_lwp_callback)
1207 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1208 (child_wait, stop_and_resume_callback, linux_nat_wait)
1209 (kill_callback, kill_wait_callback, linux_nat_kill)
1210 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1211 (linux_nat_xfer_memory, linux_nat_thread_alive)
1212 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1213 (_initialize_linux_nat): New functions.
1214 * Makefile.in: Update all dependencies.
1215 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1216 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1217 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1218 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1219 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1220 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1221 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1222 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1223 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1224 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1225 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1226 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1227 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1229 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1231 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1232 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1234 * configure.in: Don't comment out NATDEPFILES in the generated
1235 Makefile if NAT_FILE is unset.
1236 * configure: Regenerate.
1238 2004-09-27 Andrew Cagney <cagney@gnu.org>
1240 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1241 (insert_step_resume_breakpoint): Delete.
1242 (insert_step_resume_breakpoint_at_frame): New function.
1243 (insert_step_resume_breakpoint_at_sal): New function.
1244 (handle_inferior_event, step_into_function)
1245 (insert_step_resume_breakpoint): Simplify by using same.
1247 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1249 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1251 * fbsd-proc.c: Remove file.
1252 * Makefile.in (fbsd-proc.o): Remove dependency.
1254 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1257 * config/i386/nm-fbsd64.h: Remove file.
1258 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1260 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1262 * amd64-nat.h: Update copyright year.
1263 (amd64bsd_target): New prototype.
1264 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1265 (amd64bsd_target): New function.
1266 (amd64bsd_fetch_inferior_registers): Rename from
1267 fetch_inferior_registers. Make static.
1268 (amd64bsd_store_inferior_registers): Rename from
1269 store_inferior_registers. Make static.
1270 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1271 (_initialize_amd64fbsd_nat): Construct and add target vector.
1272 * amd64nbsd-nat.o: Include "target.h".
1273 (_initialize_amd64nbsd_nat): Construct and add target vector.
1274 * amd64obsd-nat.c: Include "target.h".
1275 (_initialize_amd64obsd_nat): Construct and add target vector.
1276 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1277 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1278 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1280 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1281 Remove infptrace.o and inftarg.o. Add inf-child.o and
1283 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1284 (amd64obsd-nat.o): Update dependencies.
1286 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1288 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1289 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1290 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1291 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1292 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1294 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1296 (inf_ptrace_detach): Inline detach call.
1298 * configure.in: Check for waddstr instead of mvwaddstr when
1299 searching for curses library. Check for wborder.
1300 * configure, config.in: Regenerate.
1301 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1304 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1306 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1308 Committed by Andrew Cagney.
1309 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1310 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1312 (fetch_register_using_p): Implement 'p' packet. Based on code by
1314 (remote_fetch_registers): Call fetch_register_using_p.
1315 (init_all_packet_configs, show_remote_cmd)
1316 (_initialize_remote): Add p-packet.
1318 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1320 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1321 instead of call_ptrace. Call wait directly instead of
1323 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1324 (inf_ptrace_wait): Inline ptrace_wait call.
1326 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1328 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1329 rolled back instead.
1331 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1333 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1334 the new argument order.
1336 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1338 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1339 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1340 (struct gdbarch_tdep): Remove.
1341 (struct xstormy16_frame_cache): New frame cache structure.
1342 (xstormy16_register_byte, xstormy16_register_raw_size)
1343 (xstormy16_reg_virtual_type, xstormy16_register_type)
1344 (xstormy16_push_arguments, xstormy16_push_return_address)
1345 (xstormy16_pop_frame, xstormy16_store_struct_return)
1346 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1347 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1348 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1349 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1350 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1351 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1352 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1353 (xstormy16_extract_return_value, xstormy16_store_return_value):
1354 Regcachify. Drop useless struct convention handling.
1355 (xstormy16_register_type, xstormy16_return_value)
1356 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1357 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1358 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1359 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1360 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1361 (xstormy16_unwind_dummy_id) : New functions.
1362 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1363 of xstormy16_scan_prologue.
1364 (xstormy16_frame_unwind): New frame_unwind structure.
1365 (xstormy16_frame_base): New frame_base structure.
1366 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1367 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1369 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1371 * language.c (language_gdbarch_post_init): Fix off-by one error.
1373 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1375 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1376 (struct dwarf2_offset_and_type): New.
1377 (set_die_type, reset_die_and_siblings_types, get_die_type)
1378 (offset_and_type_hash, offset_and_type_eq): New functions.
1379 (read_structure_type, read_enumeration_type, read_array_type)
1380 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1381 (read_tag_reference_type, read_tag_const_type)
1382 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1383 (read_typedef, read_base_type, read_subrange_type): Use
1386 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1388 * Makefile.in (dwarf2read.o): Update dependencies.
1389 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1390 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1392 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1393 mark, and has_form_ref_addr.
1394 (struct dwarf2_per_cu_data): New.
1395 (dwarf2_max_cache_age): New.
1396 (dwarf2_build_psymtabs_hard): Free cached compilation units
1397 after loading. Create and manage the list of compilation units.
1398 Remove unnecessary NULL initialization. Fix indentation.
1399 (psymtab_to_symtab_1): Initialize all of CU.
1400 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1401 (find_partial_die): Use dwarf2_find_containing_comp_unit
1403 (free_stack_comp_unit): Update comments. Clear the per-cu
1404 pointer. Handle aging.
1405 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1406 (age_cached_comp_units, free_one_cached_comp_unit)
1407 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1408 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1409 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1410 (show_dwarf2_cmd): New.
1411 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1412 and "maint show dwarf2 max-cache-age".
1413 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1415 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1418 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1420 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1421 and dwarf2_cu struct pointer as arguments. Change function to use
1422 obstack if provided and use dwarf2_cu to determine language-specific
1424 (partial_die_parent_scope): Change comment to include java. Use
1425 new version of typename_concat instead of obconcat.
1426 (partial_die_full_name): Use typename_concat.
1427 (read_namespace): Ditto.
1428 (read_enumeration_type): Use typename_concat instead of obconcat.
1429 (new_symbol): Ditto.
1430 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1431 (guess_structure_name): Ditto.
1432 (read_subroutine_type): Ditto.
1433 (read_structure_type): Ditto.
1434 (is_vtable_name): Add Java support.
1435 (determine_class_name): Switch to new typename_concat call.
1436 (determine_prefix): Switch to new typename_concat call.
1437 * jv-exp.y (FuncStart): New pattern.
1438 (MethodInvocation): Add support for simple function calls. Change
1439 warning message for other forms of inferior call currently not
1441 * valarith.c (value_subscript): Treat an array with upper-bound
1442 of -1 as unknown size.
1444 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1446 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1447 (lookup_partial_symtab): Use symtab_to_fullname.
1449 2004-09-19 Jim Blandy <jimb@redhat.com>
1451 * minsyms.c (lookup_minimal_symbol): Doc fix.
1453 2004-09-20 Andrew Cagney <cagney@gnu.org>
1455 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1457 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1458 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1460 * infptrace.c: Update.
1462 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1464 * symtab.c (output_source_filename): Mark first argument as const.
1465 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1466 for "info sources" output.
1468 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1470 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1471 <machine/vmparam.h>.
1472 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1473 (register_u_addr): Remove prototype.
1475 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1477 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1478 (i386bsd_fetch_inferior_registers): Rename from
1479 fetch_inferior_registers. Make static.
1480 (i386bsd_store_inferior_registers): Rename from
1481 store_inferior_registers. Make static.
1482 (i386bsd_target): New function.
1483 * i386bsd-nat.h: New file.
1484 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1486 (i386fbsd_resume): Rename from child_resume. Make static.
1487 (_initialize_i386fbsd_nat): Construct and add target vector.
1488 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1489 (_initialize_i386nbsd_nat): Construct and add target vector.
1490 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1492 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1493 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1494 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1495 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1496 (LOADLIBES): New variable.
1497 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1498 inf-ptrace.o. Remove inftarg.o.
1499 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1500 inf-ptrace.o. Remove inftarg.o.
1501 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1502 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1503 (LOADLIBES): New variable.
1504 * Makefile.in (i386bsd_nat_h): New variable.
1505 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1508 * sparc64nbsd-tdep.c: Include "objfiles.h".
1509 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1510 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1511 svr4_lp64_fetch_link_map_offsets.
1512 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1514 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1515 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1516 svr4_lp64_fetch_link_map_offsets.
1517 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1520 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1521 * fbsd-nat.h: New file.
1522 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1523 (fbsd_nat_h): New variable.
1524 (fbsd-nat.o): New dependency.
1526 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1527 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1529 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1532 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1534 * ada-exp.y (type_int): New function to add layer of abstraction
1535 around references to expression types.
1537 (type_long_long): Ditto.
1538 (type_float): Ditto.
1539 (type_double): Ditto.
1540 (type_long_double): Ditto.
1542 (type_system_address): Ditto.
1543 (simple_exp): Use type_* functions in place of builtin_*
1546 (write_var_from_name): Ditto.
1547 (write_object_renaming): Ditto.
1548 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1550 (build_ada_types): Remove, replacing with...
1551 (ada_language_arch_info): New function to initialize primitive
1552 type vector in language_arch_info.
1553 (ada_array_length): Remove use of builtin_type_ada_int.
1554 (value_pos_atr): Ditto.
1555 (ada_evaluate_subexp): Ditto.
1556 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1557 builtin_type_ada_long_long, builtin_type_ada_char,
1558 builtin_type_ada_float, builtin_type_ada_double,
1559 builtin_type_ada_long_double, builtin_type_ada_natural,
1560 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1561 (ada_builtin_types): Remove.
1562 (ada_language_defn): Remove entries for la_builtin_type_vector and
1563 string_char_type and use ada_language_arch_info.
1564 (_initialize_ada_language): Do type-vector initialization along
1565 the lines of c-lang.c.
1566 (ada_create_fundamental_type): Break up line.
1567 (ada_dump_symtab): Remove unused function.
1568 (enum ada_primitive_types): Define.
1569 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1570 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1571 builtin_type_ada_float, builtin_type_ada_double,
1572 builtin_type_ada_long_double, builtin_type_ada_natural,
1573 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1574 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1575 (processInt): Ditto.
1576 (processReal): Ditto.
1577 (name_lookup): Ditto.
1578 * ada-typeprint.c (print_range): Use builtin_type_int, not
1579 builtin_type_ada_int.
1581 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1583 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1585 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1586 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1587 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1588 * configure.in: Improve checks for curses library by checking for
1589 mvwaddstr instead of initscr. Drop HP curses in favour of
1590 standard curses on HP-UX.
1591 * configure: Regenerated.
1593 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1595 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1596 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1597 Minor formatting changes.
1598 (empty_array): Slight rewrite for formatting.
1599 (emit_char,parse,ada_language_defn,build_ada_types,
1600 ada_is_exception_sym, _initialize_ada_language): Move
1602 (ada_dump_symtab): Remove unused definition.
1603 (ada_maybe_exception_partial_symbol): Remove unused definition.
1605 2004-09-16 Andrew Cagney <cagney@gnu.org>
1607 * inf-child.c: Include "gdb_string.h".
1608 (inf_child_core_file_to_sym_file): Delete.
1609 (inf_child_target): Set to_fetch_registers and to_store_registers.
1610 * inf-ptrace.c: Include "gdb_string.h".
1611 * Makefile.in: Update all dependencies.
1613 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1616 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1618 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1619 call to heuristic_proc_desc. Remove code that became redundant
1621 (read_next_frame_reg): Remove special case for SP_REGNUM.
1622 (set_reg_offset): Fix small typo.
1623 (reset_saved_regs): New procedure.
1624 (mips32_heuristic_proc_desc): No longer compute a fake
1625 procedure descriptor. Compute the full frame cache instead.
1626 Some minor comment reformatting.
1628 2004-09-14 Andrew Cagney <cagney@gnu.org>
1630 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1633 * thread-db.c (thread_db_new_objfile): Assume that there is a
1636 2004-09-13 Jim Blandy <jimb@redhat.com>
1638 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1639 so that its storage isn't referenced after its lifetime ends.
1641 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1642 and never assigned to. Delete it, and the 'if (use_buffer)'
1643 clauses. Delete 'raw_buffer', since it is now unused.
1645 2004-09-13 Andrew Cagney <cagney@gnu.org>
1647 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1648 * configure: Re-generate.
1649 * nlm/Makefile.in (TAGS): Update.
1650 * Makefile.in (TAGS): Update.
1651 * config/vax/nbsd.mt (TM_FILE): Update.
1652 * config/sparc/vxworks.mt (TM_FILE): Update.
1653 * config/sparc/sol2.mt (TM_FILE): Update.
1654 * config/sparc/sol2-64.mt (TM_FILE): Update.
1655 * config/sparc/obsd64.mt (TM_FILE): Update.
1656 * config/sparc/obsd.mt (TM_FILE): Update.
1657 * config/sparc/nbsd64.mt (TM_FILE): Update.
1658 * config/sparc/nbsd.mt (TM_FILE): Update.
1659 * config/sparc/linux64.mt (TM_FILE): Update.
1660 * config/sparc/linux.mt (TM_FILE): Update.
1661 * config/sparc/fbsd.mt (TM_FILE): Update.
1662 * config/sh/wince.mt (TM_FILE): Update.
1663 * config/sh/nbsd.mt (TM_FILE): Update.
1664 * config/sh/linux.mt (TM_FILE): Update.
1665 * config/sh/embed.mt (TM_FILE): Update.
1666 * config/s390/s390.mt (TM_FILE): Update.
1667 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1668 * config/rs6000/rs6000.mt (TM_FILE): Update.
1669 * config/rs6000/aix4.mt (TM_FILE): Update.
1670 * config/powerpc/vxworks.mt (TM_FILE): Update.
1671 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1672 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1673 * config/powerpc/obsd.mt (TM_FILE): Update.
1674 * config/powerpc/nbsd.mt (TM_FILE): Update.
1675 * config/powerpc/linux.mt (TM_FILE): Update.
1676 * config/powerpc/aix.mt (TM_FILE): Update.
1677 * config/pa/obsd.mt (TM_FILE): Update.
1678 * config/pa/linux.mt (TM_FILE): Update.
1679 * config/pa/hppahpux.mt (TM_FILE): Update.
1680 * config/pa/hppa64.mt (TM_FILE): Update.
1681 * config/pa/hppa.mt (TM_FILE): Update.
1682 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1683 * config/mips/wince.mt (TM_FILE): Update.
1684 * config/mips/vxmips.mt (TM_FILE): Update.
1685 * config/mips/nbsd.mt (TM_FILE): Update.
1686 * config/mips/linux.mt (TM_FILE): Update.
1687 * config/mips/irix6.mt (TM_FILE): Update.
1688 * config/mips/irix5.mt (TM_FILE): Update.
1689 * config/mips/embed.mt (TM_FILE): Update.
1690 * config/m68k/vxworks68.mt (TM_FILE): Update.
1691 * config/m68k/st2000.mt (TM_FILE): Update.
1692 * config/m68k/os68k.mt (TM_FILE): Update.
1693 * config/m68k/obsd.mt (TM_FILE): Update.
1694 * config/m68k/nbsd.mt (TM_FILE): Update.
1695 * config/m68k/monitor.mt (TM_FILE): Update.
1696 * config/m68k/linux.mt (TM_FILE): Update.
1697 * config/m68k/cisco.mt (TM_FILE): Update.
1698 * config/ia64/linux.mt (TM_FILE): Update.
1699 * config/ia64/aix.mt (TM_FILE): Update.
1700 * config/ia64/ia64.mt (TM_FILE): Update.
1701 * config/i386/vxworks.mt (TM_FILE): Update.
1702 * config/i386/obsd64.mt (TM_FILE): Update.
1703 * config/i386/obsd.mt (TM_FILE): Update.
1704 * config/i386/nto.mt (TM_FILE): Update.
1705 * config/i386/nbsd64.mt (TM_FILE): Update.
1706 * config/i386/nbsd.mt (TM_FILE): Update.
1707 * config/i386/linux64.mt (TM_FILE): Update.
1708 * config/i386/linux.mt (TM_FILE): Update.
1709 * config/i386/i386sol2.mt (TM_FILE): Update.
1710 * config/i386/i386lynx.mt (TM_FILE): Update.
1711 * config/i386/fbsd64.mt (TM_FILE): Update.
1712 * config/i386/fbsd.mt (TM_FILE): Update.
1713 * config/i386/cygwin.mt (TM_FILE): Update.
1714 * config/h8300/h8300.mt (TM_FILE): Update.
1715 * config/frv/frv.mt (TM_FILE): Update.
1716 * config/cris/cris.mt (TM_FILE): Update.
1717 * config/arm/wince.mt (TM_FILE): Update.
1718 * config/arm/nbsd.mt (TM_FILE): Update.
1719 * config/arm/linux.mt (TM_FILE): Update.
1720 * config/arm/embed.mt (TM_FILE): Update.
1721 * config/alpha/nbsd.mt (TM_FILE): Update.
1722 * config/alpha/fbsd.mt (TM_FILE): Update.
1723 * config/alpha/alpha.mt (TM_FILE): Update.
1724 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1725 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1727 Eliminate event_loop_p, always has the value 1.
1728 * defs.h (event_loop_p): Delete macro.
1729 * breakpoint.c (until_break_command): Simplify.
1730 * utils.c (prompt_for_continue): Simplify.
1731 * tracepoint.c (read_actions): Simplify.
1732 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1733 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1734 (set_prompt, init_main): Simplify.
1735 (init_signals, disconnect): Delete, unused.
1736 * remote.c (remote_async_resume)
1737 (extended_remote_async_create_inferior): Simplify.
1738 * mi/mi-interp.c (mi_input): Delete, unused.
1739 (mi_interpreter_resume, mi_command_loop): Simplify.
1740 * interps.c (current_interp_command_loop): Simplify.
1741 * infrun.c (proceed): Simplify.
1742 * infcmd.c (run_command, continue_command, step_1, jump_command)
1743 (until_command, advance_command, finish_command)
1744 (interrupt_target_command): Simplify.
1745 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1747 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1748 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1749 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1750 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1751 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1752 * mips-tdep.c (mips_dump_tdep): Do not print same.
1754 2004-09-12 Andrew Cagney <cagney@gnu.org>
1756 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1758 * Makefile.in (valprint.o): Delete explict rule.
1760 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1761 reported by Dave Anderson.
1763 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1765 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1767 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1768 Andrew Cagney <cagney@gnu.org>
1770 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1771 (mi_cmd_data_list_register_values)
1772 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1773 the register number computation.
1775 2004-09-12 Andrew Cagney <cagney@gnu.org>
1777 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1778 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1779 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1780 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1782 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1783 inf-ptrace.o and inf-child.o.
1784 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1785 * Makefile.in: Update dependencies.
1787 2004-09-11 Andrew Cagney <cagney@gnu.org>
1789 * language.c (hex_string, hex_string_custom): Move from here ...
1790 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1791 (CELLSIZE): Increase to 50.
1792 * language.h (hex_string, hex_string_custom): Move from here ...
1793 * defs.h: ... to here.
1794 * Makefile.in: Update all dependencies.
1796 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1798 * language.c (local_hex_format_custom): Remove.
1799 (local_hex_string): Rename to hex_string, use C format, and move to
1801 (local_hex_string_custom): Rename to hex_string_custom and change
1802 interface. Now uses C format. Move to utils.c
1803 (local_octal_format_custom): Remove.
1804 (local_decimal_format_custom): Remove.
1805 (unknown_language_defn): Remove language-specific number
1807 (auto_language_defn): Ditto.
1808 (local_language_defn): Ditto.
1809 * language.h (struct language_format_info): Delete declaration.
1810 (struct language_defn): Remove language_format_info fields
1811 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1812 (local_binary_format): Remove macro.
1813 (local_binary_format_prefix): Remove macro.
1814 (local_binary_format_specifier): Remove macro.
1815 (local_binary_format_suffix): Remove macro.
1816 (local_octal_format): Remove macro.
1817 (local_octal_format_prefix): Remove macro.
1818 (local_octal_format_specifier): Remove macro.
1819 (local_octal_format_suffix): Remove macro.
1820 (local_decimal_format): Remove macro.
1821 (local_decimal_format_prefix): Remove macro.
1822 (local_decimal_format_specifier): Remove macro.
1823 (local_decimal_format_suffix): Remove macro.
1824 (local_hex_format): Remove macro.
1825 (local_hex_format_prefix): Remove macro.
1826 (local_hex_format_specifier): Remove macro.
1827 (local_hex_format_suffix): Remove macro.
1828 (local_decimal_format_custom): Remove.
1829 (local_octal_format_custom): Remove.
1830 (local_hex_format_custom): Remove.
1831 (local_hex_string): Rename to hex_string and move to defs.h.
1832 (local_hex_string_custom): Rename to hex_string_custom, change
1833 interface, and move to defs.h.
1834 * utils.c: (int_string): New function.
1835 (hex_string): New function (from language.c).
1836 (hex_string_custom): New function (from language.c).
1837 (octal2str): New function.
1838 (decimal2str): Add width parameter.
1839 (paddr_u): Use new decimal2str interface.
1841 * defs.h (hex_string): Declare.
1842 (hex_string_custom): Declare.
1843 (int_string): Declare.
1844 * printcmd.c (print_scalar_formatted): Remove localized binary
1846 * valprint.c (print_longest): Use int_string.
1847 (print_floating): Use C hex format.
1848 (print_hex_chars): Ditto.
1849 (print_binary_chars): Remove language-specific formatting.
1850 (print_octal_chars): Use C octal format.
1851 (print_decimal_chars): Delocalize format.
1852 (print_decimal): Remove.
1853 * ada-lang.c (ada_language_defn): Remove language-specific number
1855 * p-lang.c (pascal_language_defn): Ditto.
1856 * c-lang.c (c_language_defn): Ditto.
1857 (cplus_language_defn): Ditto.
1858 (asm_language_defn): Ditto.
1859 (minimal_language_defn): Ditto.
1860 * f-lang.c (f_language_defn): Ditto.
1861 * jv-lang.c (java_language_defn): Ditto.
1862 * m2-lang.c (m2_language_defn): Ditto.
1863 * scm-lang.c (scm_language_defn): Ditto.
1864 * objc-lang.c (objc_language_defn): Ditto.
1865 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1867 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1868 * ui-out.c (ui_out_field_core_addr): Ditto.
1869 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1870 * exec.c (print_section_info): Ditto.
1871 * i387-tdep.c (print_i387_status_word): Ditto.
1872 (print_i387_control_word): Ditto.
1873 (i387_print_float_info): Ditto.
1874 * maint.c (maint_print_section_info): Ditto.
1875 * solib.c (info_sharedlibrary_command): Ditto.
1876 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1877 * symtab.c (print_msymbol_info): Ditto.
1878 * tracepoint.c (tracepoints_info): Ditto.
1879 * solib-frv.c (lm_base): Ditto.
1880 (frv_current_sos): Ditto.
1881 (enable_break2): Ditto.
1882 (enable_break): Ditto.
1883 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1884 (process_one_symbol): Ditto.
1885 * infcmd.c (program_info): Ditto.
1886 * mdebugread.c (parse_partial_symbols): Ditto.
1887 * symfile.c (add_symbol_file_command): Ditto.
1888 * cli/cli-cmds.c (edit_command): Ditto.
1889 (list_command): Ditto.
1890 * infcall.c (call_function_by_hand): Ditto.
1891 * remote-vx.c (vx_run_files_info): Ditto.
1896 * aix-thread.c (pdc_symbol_addrs): Ditto.
1897 (pdc_read_regs): Ditto.
1898 (pdc_write_regs): Ditto.
1899 (pdc_read_data): Ditto.
1900 (pdc_write_data): Ditto.
1901 * d10v-tdep.c (display_trace): Ditto.
1902 * rs6000-nat.c (find_toc_address): Ditto.
1903 * aix-thread.c: Don't include language.h.
1904 * buildsym.c: Ditto.
1906 * mdebugread.c: Ditto.
1907 * rs6000-nat.c: Ditto.
1908 * buildsym.c (make_blockvector): Use renamed hex_string.
1910 2004-09-10 Jason Molenda (jmolenda@apple.com)
1912 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1913 chars after 'if' or 'while' commands in user-defined commands.
1915 2004-09-08 Jim Blandy <jimb@redhat.com>
1917 Fix bug reported and analyzed by Olivier Crete:
1918 * symfile.c (copy_section_addr_info): New function.
1919 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1920 original set of address arguments, instead of handwritten code
1921 that uses one length to allocate and a different length to
1922 initialize. Use make_cleanup_free_section_addr_info.
1923 * symfile.h (copy_section_addr_info): New declaration.
1924 * utils.c: #include "symfile.h".
1925 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1927 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1928 * Makefile.in (utils.o): Update dependencies.
1930 2004-09-08 Andrew Cagney <cagney@gnu.org>
1932 * thread-db.c (keep_thread_db): Delete.
1933 (thread_db_new_objfile, thread_db_create_inferior)
1934 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1936 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1938 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1939 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1940 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1941 (i386_frameless_signal_p): Remove prototype.
1942 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1943 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1945 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1946 instead of FP0_REGNUM.
1947 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1948 of FP0_REGNUM and FPC_REGNUM.
1950 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1951 (sunos_solib_create_inferior_hook): Don't call
1952 sunos_relocate_main_executable.
1954 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1955 solib_svr4_fetch_link_map_offsets to
1956 svr4_ilp32_fetch_link_map_offsets.
1957 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1958 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1959 svr4_ilp32_fetch_link_map_offsets.
1960 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1962 2004-09-07 Jim Blandy <jimb@redhat.com>
1964 * frame.h (frame_register): Doc fix.
1966 2004-09-07 Andrew Cagney <cagney@gnu.org>
1968 * vx-share/wait.h: Delete #ifdef USG.
1969 * utils.c (request_quit): Ditto.
1970 * tui/tui.c (tui_reset): Ditto.
1972 * remote-sds.c: Ditto.
1973 * remote-rdi.c: Ditto.
1974 * mdebugread.c: Ditto.
1975 * m68klinux-nat.c: Ditto.
1976 * infttrace.c: Ditto.
1977 * infptrace.c: Ditto.
1978 * i386v-nat.c: Ditto.
1981 * core-aout.c: Ditto.
1983 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1985 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1986 heuristic_proc_desc.
1987 (mips_insn32_frame_cache): Likewise.
1989 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1991 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1992 left behind by error.
1994 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1996 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1997 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1999 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2001 * config/rs6000/xm-aix4.h: Remove this file.
2002 * config/rs6000/aix4.mh (XM_FILE): Delete.
2004 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2006 * config/rs6000/xm-rs6000.h: Remove this file.
2007 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2009 2004-09-03 Andrew Cagney <cagney@gnu.org>
2011 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2012 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2015 * mips-tdep.c (temp_saved_regs): Delete.
2016 (set_reg_offset): Replace saved_regs parameter with this_cache.
2017 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2018 (mips32_heuristic_proc_desc): Add this_cache parameter.
2019 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2020 (after_prologue): Pass a NULL this_cache.
2022 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2023 non-kernel trap prologues.
2025 * mips-tdep.c (find_proc_desc): Delete function.
2026 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2028 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2029 mips_insn32_frame_cache.
2031 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2032 Simplify as NEXT_FRAME is NULL.
2033 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2035 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2037 (mips_skip_prologue): Update.
2039 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2040 "cur_frame" parameter.
2041 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2042 (mips_insn32_frame_cache, find_proc_desc): Update
2044 * config/vax/nm-obsd.h: Delete file.
2045 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2046 * config/vax/nm-nbsd.h: Delete file.
2047 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2048 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2049 * config/sh/nm-nbsd.h: Delete file.
2050 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2051 * config/rs6000/nm-rs6000ly.h: Delete file.
2052 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2053 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2054 * config/powerpc/nm-obsd.h: Delete file.
2055 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2056 * config/powerpc/nm-nbsd.h: Delete file.
2057 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2058 * config/pa/nm-obsd.h: Delete file.
2059 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2060 * config/mips/nm-nbsd.h: Delete file.
2061 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2062 * config/m88k/nm-obsd.h: Delete file.
2063 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2064 * config/m68k/nm-nbsd.h: Delete file.
2065 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2066 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2067 * config/i386/nm-nbsd.h: Delete file.
2068 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2069 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2070 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2071 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2072 * config/i386/nm-i386lynx.h: Delete file.
2073 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2074 * config/arm/nm-nbsd.h: Delete file.
2075 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2076 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2078 * config/i386/tm-fbsd.h: Delete file.
2079 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2080 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2082 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2083 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2084 * config/rs6000/aix4.mt (TM_FILE): Set to
2085 config/rs6000/tm-rs6000.h.
2086 * config/powerpc/tm-ppc-aix.h: Delete file.
2087 * config/powerpc/aix.mt (TM_FILE): Set to
2088 config/rs6000/tm-rs6000.h.
2089 * config/m68k/tm-linux.h: Delete file.
2090 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2091 * config/i386/tm-linux64.h: Delete file.
2092 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2093 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2095 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2096 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2097 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2098 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2099 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2100 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2101 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2102 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2103 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2105 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2108 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2110 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2111 Minor reformatting. Some code factoring.
2113 2004-09-02 Andrew Cagney <cagney@gnu.org>
2115 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2116 * config/vax/tm-nbsd.h: Delete file.
2117 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2118 * config/sparc/tm-vxworks.h: Delete file.
2119 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2120 * config/sparc/tm-nbsd.h: Delete file.
2121 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2122 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2123 * config/sparc/tm-linux.h: Delete file.
2124 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2125 * config/s390/tm-linux.h: Delete file.
2126 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2127 * config/pa/tm-bsd.h: Delete file.
2128 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2129 * config/m68k/tm-obsd.h: Delete file.
2130 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2131 * config/m68k/tm-nbsd.h: Delete file.
2132 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2133 * config/i386/tm-vxworks.h: Delete file.
2134 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2135 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2136 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2137 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2138 * config/i386/tm-nbsd.h: Delete file.
2139 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2140 * config/i386/tm-i386lynx.h: Delete file.
2141 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2142 * config/cris/tm-cris.h: Delete file.
2144 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2145 * configure: Re-generate.
2146 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2147 * config/arm/tm-nbsd.h: Delete file.
2149 * config/powerpc/tm-ppcle-sim.h: Delete.
2150 * config/powerpc/tm-ppcle-eabi.h: Delete.
2151 * config/powerpc/tm-nbsd.h: Delete.
2152 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2153 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2156 * config/i386/nto.mh (NAT_FILE): Delete.
2157 * config/i386/nm-nto.h: Delete.
2159 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2160 * config/m68k/tm-os68k.h: Ditto.
2161 * config/m68k/tm-monitor.h: Ditto.
2162 * config/m68k/tm-cisco.h: Ditto.
2163 * config/m68k/st2000.mt (TM_FILE): Delete.
2164 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2165 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2166 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2167 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2169 * config/m68k/tm-st2000.h: Delete.
2170 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2171 * config/sparc/fbsd.mt (TM_FILE): Delete.
2172 * config/sparc/tm-fbsd.h: Delete.
2174 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2175 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2176 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2178 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2179 GDB_TM_FILE and GDB_XM_FILE.
2180 * gdbarch.c: Re-generate.
2181 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2182 quotes in macro definition.
2183 * configure.in: Re-generate.
2185 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2186 validating architecture methods.
2187 * gdbarch.c: Re-generate.
2189 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2190 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2191 GDB_MULTI_ARCH_PARTIAL.
2192 * gdbarch.h: Re-generate.
2194 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2195 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2196 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2197 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2198 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2199 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2200 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2201 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2202 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2203 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2204 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2205 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2207 2004-09-01 Andrew Cagney <cagney@gnu.org>
2209 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2210 and main_func_highpc.
2211 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2212 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2213 * nlmread.c (nlm_symfile_read): Update.
2215 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2217 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2218 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2219 (find_proc_desc): Remove dead code.
2221 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2223 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2225 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2227 * observer.sh: Add struct so_list declaration.
2228 * Makefile.in: Add dependencies on observer.h for solib.c and
2230 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2232 (_initialize_breakpoint): Register
2233 disable_breakpoints_in_unloaded_shlib as an observer of the
2234 "solib unloaded" observation event.
2235 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2236 call decode_line_1 so unfound breakpoint errors are silent.
2237 * solib.c (update_solib_list): When a solib is discovered to have
2238 been unloaded by the program, notify all observers of the
2239 "solib unloaded" observation event.
2241 2004-09-01 Andrew Cagney <cagney@gnu.org>
2243 * frame.c: Include "objfiles.h".
2244 (inside_main_func): New function.
2245 (get_prev_frame): Use new inside_main_func.
2246 * Makefile.in (frame.o): Update dependencies.
2247 * defs.h (inside_main_func): Delete declaration.
2248 * blockframe.c (inside_main_func): Delete function.
2250 2004-08-31 Jim Blandy <jimb@redhat.com>
2252 * dwarf2read.c (is_vtable_name): New function, based on logic from
2253 read_structure_type, but passing the correct length to strncmp,
2254 and using 'sizeof' instead of 'strlen'.
2255 (read_structure_type): Call it.
2257 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2259 * config/powerpc/aix.mh: Add comment.
2261 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2263 * MAINTAINERS: Add self to Write-After-Approval.
2265 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2267 * MAINTAINERS: Add self to Write-After-Approval.
2269 2004-08-30 Andrew Cagney <cagney@gnu.org>
2271 Fix PR breakpoints/1757.
2272 * infrun.c (struct execution_control_state): Replace
2273 remove_breakpoints_on_following_step with
2274 step_after_step_resume_breakpoint.
2275 (init_execution_control_state): Update.
2276 (handle_inferior_event): For signals, when stepping off a
2277 breakpoint, set step_after_step_resume_breakpoint. When
2278 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2279 (keep_going): Delete code handling
2280 remove_breakpoints_on_following_step.
2282 2004-08-29 David Lecomber <david@streamline-computing.com>
2285 * language.h (enum array_ordering): New enum.
2286 * language.h (struct language_defn): New la_array_ordering
2288 * language.c (unknown_language_defn, auto_language_defn)
2289 (local_language_defn): Ditto.
2290 * ada-lang.c (ada_language_defn): Ditto.
2291 * c-lang.c (c_language_defn, cplus_language_defn)
2292 (asm_language_defn, minimal_language_defn): Ditto.
2293 * f-lang.c (f_language_defn): Ditto.
2294 * jv-lang.c (java_language_defn): Ditto.
2295 * m2-lang.c (f_language_defn): Ditto.
2296 * objc-lang.c (objc_language_defn): Ditto.
2297 * p-lang.c (pascal_language_defn): Ditto.
2298 * scm-lang.c (scm_language_defn): Ditto.
2299 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2300 oriented large to small in type structure.
2301 * dwarf2read.c (read_array_order): New function.
2302 (read_array_type): Use read_array_order to check row/column
2305 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2307 * target.c (target_resize_to_sections): Check
2308 current_target.to_sections for an old value when updating.
2310 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2312 * procfs.c (dbx_link_bpt_addr): New static global variable.
2313 (dbx_link_shadow_contents): New static global variable.
2314 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2315 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2317 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2318 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2320 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2321 after the inferior has been forked.
2322 (remove_dbx_link_breakpoint): New function.
2323 (dbx_link_addr): New function.
2324 (insert_dbx_link_bpt_in_file): New function.
2325 (insert_dbx_link_bpt_in_region): New function.
2326 (insert_dbx_link_breakpoint): New function.
2327 (proc_trace_syscalls_1): New function, extracted from
2328 proc_trace_syscalls.
2329 (proc_trace_syscalls): Replace extract code by call to
2330 proc_trace_syscalls_1.
2331 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2334 2004-08-25 Jim Blandy <jimb@redhat.com>
2336 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2338 2004-08-25 Andrew Cagney <cagney@gnu.org>
2340 * infrun.c (struct execution_control_state): Delete field
2341 "stepping_through_sigtramp".
2342 (init_execution_control_state): Do not set same.
2343 (context_switch): Do not pass same to save_infrun_state and
2345 * gdbthread.h (struct thread_info): Delete field
2346 stepping_through_sigtramp.
2347 (save_infrun_state, load_infrun_state): Delete parameter
2348 stepping_through_sigtramp.
2349 * thread.c (load_infrun_state, save_infrun_state): Update.
2351 * infrun.c: Re-indent. Move expression operators to the beginning
2352 of the line. Remove long disabled #if 0 code.
2354 2004-08-24 Andrew Cagney <cagney@gnu.org>
2356 * doublest.h (floatformat_ieee_quad): Rename
2357 floatformat_ia64_quad.
2358 * doublest.c (floatformat_ieee_quad): Rename
2359 floatformat_ia64_quad.
2360 (_initialize_doublest): Update.
2362 2004-08-24 Jim Blandy <jimb@redhat.com>
2364 * dwarf2expr.h (struct dwarf_expr_context): New members
2365 'num_pieces' and 'pieces', for returning the result of an
2366 expression that uses DW_OP_piece.
2367 (struct dwarf_expr_piece): New struct type.
2368 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2370 (free_dwarf_expr_context): Free pieces, if any.
2371 (add_piece): New function.
2372 (execute_stack_op): Implement DW_OP_piece.
2373 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2374 expression is a list of pieces, print an error message.
2375 (dwarf2_loc_desc_needs_frame): If the expression yields
2376 pieces, and any piece is in a register, then we need a frame.
2378 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2379 the stack until we've decided what sort of result the evaluation
2380 has produced. Use separate variables, with more specific names.
2382 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2384 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2385 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2386 (arm_netbsd_init_abi_common): Register them.
2388 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2390 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2392 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2393 safe_frame_unwind_memory instead of target_read_memory.
2395 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2397 (fetch_register, store_register): Remove prototypes.
2398 (child_resume): Reorganize code and comments such that it is
2399 grouped a bit more logically.
2400 (attach): Explicitly compare errno against 0.
2401 (detach): Likewise. Use perror_with_name instead of
2403 * Makefile.in (infptrace.o): Update dependencies.
2405 * ia64-linux-nat.c: Update copyright year.
2406 (fetch_debug_register, store_debug_register)
2407 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2409 * config/ia64/nm-linux.h: Update copyright year.
2410 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2412 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2413 from CORE_ADDR to struct frame_info *. Use
2414 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2415 (amd64_linux_sigtramp_p): Adjust for changed signature of
2416 and64_linux_sigtramp_start
2418 * gdb_ptrace.h: GNU/Linux.
2420 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2423 * infptrace.c: Include "gdb_assert.h".
2424 (PTRACE_XFER_TYPE): Remove define.
2425 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2426 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2428 (fetch_inferior_registers, store_inferior_registers): Remove
2429 redundant culry braces. Tweak comment. s/regno/regnum.
2430 * Makefile.in (infptrace.o): Update dependencies.
2432 * configure.in: Change test for return type of ptrace to default
2433 to `long' instead of `int'.
2434 * configure: Regenerate.
2436 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2438 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2440 * configure.in: Check for ttrace function.
2441 * configure, config.in: Regenerate.
2443 * gdb_ptrace.h: New file.
2444 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2446 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2447 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2448 (attach): Don't define PT_ATTACH.
2449 (detach): Don't define PT_DETACH.
2450 * Makefile.in (gdb_ptrace_h): New variable.
2451 (infptrace.o): Update dependencies.
2453 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2455 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2456 instead of `int' if not already defined.
2457 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2459 * infptrace.c (call_ptrace): Revert change that replaced
2460 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2462 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2464 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2467 * linux-nat.c (kill_inferior): Add missing third and fourth
2468 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2470 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2473 * proc-why.c (proc_prettyfprint_why): Fix format string.
2475 * solib-osf.c (osf_current_sos): Remove unsused label.
2477 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2479 * configure, config.in: Regenerate.
2480 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2481 <ncurses/ncurses.h>.
2483 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2484 * config/nm-nbsd.h: Update copyright year.
2485 (PTRACE_ARG3_TYPE): Remove define.
2487 * sparc-nat.c (fetch_inferior_registers)
2488 (store_inferior_registers, sparc_xfer_wcookie):
2489 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2491 * alphabsd-nat.c (fetch_inferior_registers):
2492 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2494 * amd64bsd-nat.c (fetch_inferior_registers)
2495 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2497 * armnbsd-nat.c: Update copyright year.
2498 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2499 (store_register, store_regs, store_fp_register, store_fp_regs):
2500 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2501 * hppabsd-nat.c (fetch_inferior_registers)
2502 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2504 * i386bsd-nat.c (fetch_inferior_registers)
2505 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2506 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2507 * m68kbsd-nat.c (fetch_inferior_registers)
2508 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2510 * m88kbsd-nat.c (fetch_inferior_registers)
2511 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2513 * mipsnbsd-nat.c: Update copyright year.
2514 (fetch_inferior_registers, store_inferior_registers):
2515 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2516 * ns32knbsd-nat.c: Update copyright year.
2517 (fetch_inferior_registers, store_inferior_registers):
2518 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2519 * ppcnbsd-nat.c (fetch_inferior_registers):
2520 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2522 * ppcobsd-nat.c (fetch_inferior_registers):
2523 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2525 * shnbsd-nat.c: Update copyright year.
2526 (fetch_inferior_registers, store_inferior_registers):
2527 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2528 * vaxbsd-nat.c (fetch_inferior_registers)
2529 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2532 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2534 * infptrace.c (call_ptrace, child_resume, attach, detach)
2535 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2536 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2537 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2540 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2542 * defs.h: Remove out-of-date comment.
2543 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2544 [!GETENV_PROVIDED] (getenv): Remove prototype.
2546 * standalone.c: Remove file.
2547 * Makefile.in (standalone.o): Remove dependency.
2549 * i386-linux-nat.c (dummy_sse_values): Remove function and
2551 (i386_linux_dr_get): Fix typo in comment.
2552 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2554 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2556 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2558 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2561 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2563 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2564 parenthesis in definition.
2565 * configure: Regenerated.
2567 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2569 * PROBLEMS: Mention build/1411.
2571 2004-08-09 Robert Millan <robertmh@gnu.org>
2573 Committed by Nathanael Nerode.
2574 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2575 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2577 2004-08-12 Andrew Cagney <cagney@gnu.org>
2579 * NEWS: Mention fixes in GDB 6.2.1.
2580 * PROBLEMS: Remove mention of mips-irix.
2582 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2584 * config/powerpc/xm-aix.h: Delete.
2585 * config/powerpc/aix.mh (MH_FILE): Remove.
2586 * config/powerpc/aix432.mh (MH_FILE): Remove.
2588 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2590 * config/powerpc/aix.mh: Remove obsolete comment.
2591 * config/powerpc/aix432.mh: Likewise.
2593 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2595 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2597 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2599 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2600 this file is now empty.
2601 * config/xm-aix4.h: Remove, this file is no longer included
2604 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2606 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2607 that file is now empty.
2608 (termdef): Remove prototype, function no longer used.
2610 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2612 * doc/gdbint.texinfo (Host Definition): Remove documentation
2613 for USE_O_NOCTTY, no longer used.
2614 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2615 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2617 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2619 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2620 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2621 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2623 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2625 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2626 instead of FIVE_ARG_PTRACE.
2628 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2629 (new_tty): Use O_NOCTTY unconditionally.
2631 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2633 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2634 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2637 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2639 * xcoff_symfile_finish: Replace last call to xmfree by call
2642 2004-08-10 Andrew Cagney <cagney@gnu.org>
2644 * main.c (captured_main): Delete call to init_malloc.
2645 * defs.h (init_malloc): Delete declaration.
2646 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2647 (init_malloc): Delete functions.
2649 * defs.h (xmfree): Delete.
2650 * utils.c (xmfree): Delete function.
2651 (xfree): Inline calls to xmfree and mfree.
2652 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2653 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2654 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2655 * somread.c (som_symfile_finish): Ditto.
2656 * objfiles.c (allocate_objfile, free_objfile):
2657 * nlmread.c (nlm_symfile_finish): Ditto.
2658 * hpread.c (hpread_symfile_finish): Ditto.
2659 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2660 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2661 * coffread.c (coff_symfile_finish): Ditto.
2663 * defs.h (xmcalloc): Delete declaration.
2664 * utils.c (xmcalloc): Delete.
2665 (xcalloc): Inline calls to xmcalloc and mcalloc.
2666 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2668 * symtab.c (create_demangled_names_hash): Ditto.
2670 * defs.h (xmrealloc): Delete.
2671 * utils.c (xmrealloc): Delete.
2672 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2673 * symmisc.c (extend_psymbol_list): Use xrealloc.
2674 * source.c (find_source_lines): Ditto.
2675 * hpread.c (hpread_lookup_type): Ditto.
2676 * dbxread.c (add_bincl_to_list): Ditto.
2678 * utils.c (xmmalloc): Delete.
2679 (xmalloc): Inline xmmalloc and mmalloc calls.
2680 (msavestring): Use xmalloc.
2681 * defs.h (xmmalloc): Delete declaration.
2682 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2684 * symmisc.c (extend_psymbol_list): Ditto.
2685 * symfile.c (init_psymbol_list): Ditto.
2686 * source.c (find_source_lines): Ditto.
2687 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2688 * elfread.c (elf_symtab_read): Ditto.
2689 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2690 * coffread.c (coff_symfile_init): Ditto.
2692 2004-08-10 David Carlton <carlton@bactrian.org>
2694 * MAINTAINERS: Remove David Carlton from c++ testsuite
2697 2004-08-10 Jerome Guitton <guitton@gnat.com>
2699 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2700 print a line feed before the prompt.
2702 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2704 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2706 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2708 General cleanup of the AIX xm include file:
2709 * config/xm-aix4.h (fd_set): Remove undefine.
2710 Remove include of <sys/select.h>.
2711 (HAVE_TERMIO): Remove define.
2713 (NULL): Remove redefine.
2714 (alloca): Remove #pragma.
2715 (vfork): Remove define.
2717 (SIGWINCH_HANDLER): Remove.
2718 (SIGWINCH_HANDLER_BODY): Remove.
2720 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2722 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2723 GDB_OSABI_OPENBSD_ELF.
2725 2004-08-07 Robert Millan <robertmh@gnu.org>
2727 * bsd-kvm.c: Check for nlist.h before including it.
2729 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2731 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2732 sigcontext' offset consistency checks for ancient BSD.
2734 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2736 * configure.in: Check for <sys/types.h>. Check return and
2737 argument types of ptrace.
2738 * configure, config.in: Regenerate.
2740 2004-08-09 Jim Blandy <jimb@redhat.com>
2742 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2743 rs6000_register_sim_regno): Doc fixes.
2745 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2747 * mips-tdep.c: Include "floatformat.h".
2748 (n32n64_floatformat_always_valid): New function.
2749 (floatformat_n32n64_long_double_big): New constant.
2750 (mips_gdbarch_init): Set size and format of long double
2751 for N32 and N64 ABIs.
2752 * Makefile.in (mips-tdep.o): Update dependencies.
2754 2004-08-08 Andrew Cagney <cagney@gnu.org>
2756 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2757 print. Improve script's error messages.
2758 * gdbarch.h: Re-generate.
2760 * gdbarch.sh (pformat): New function.
2761 (float_format, double_format, long_double_format): List with bit
2762 members. Use pformat when printing.
2763 * gdbarch.c, gdbarch.h: Re-generate.
2765 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2767 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2768 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2769 (ppcnbsd_supply_pcb): New function.
2770 (_initialize_ppcnbsd_nat): New prototype and function.
2771 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2772 (LOADLIBES): New variable.
2773 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2775 2004-08-08 Andrew Cagney <cagney@gnu.org>
2777 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2778 (builtin_type_ieee_double, builtin_type_ia64_quad)
2779 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2780 BE/LE floating-point types.
2781 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2782 (builtin_type_ieee_double, builtin_type_ia64_quad)
2783 (builtin_type_ia64_spill): Declare.
2784 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2785 (floatformat_ieee_double, floatformat_arm_ext)
2786 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2787 of LE/BE floatformats.
2788 * doublest.h: (struct floatformat, floatformat_ieee_single)
2789 (floatformat_ieee_double, floatformat_arm_ext)
2790 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2792 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2794 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2796 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2797 instead of regcache_raw_supply when storing the registers.
2799 * i386gnu-nat.c: Update copyright year.
2800 (gnu_store_registers): Don't use deprecated_registers and
2801 deprecated_registers_valid. Use regcache_valid_p and
2802 regcache_raw_supply instead.
2804 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2807 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2808 variables. Incapitalized "process".
2810 * configure.in: Add cursesX to the list of possible curses libs.
2811 Add cursesX.h to the list of possible curses headers.
2812 * configure, config.in: Regenerate.
2814 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2816 * configure.in: Test for struct lwp in <sys/lwp.h>.
2817 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2818 the offset of l_addr in struct lwp.
2820 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2822 * bsd-kvm.c: Include "gdbcore.h"
2823 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2825 2004-08-07 Andrew Cagney <cagney@gnu.org>
2827 * gdbtypes.c (build_flt, build_complex): New functions.
2828 (gdbtypes_post_init): Use.
2830 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2832 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2833 through to builtin_type_uint128.
2835 * c-exp.y: Use builtin_type function to obtain builtin types.
2837 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2839 * gdbtypes.c (gdbtypes_post_init): Update.
2840 (build_gdbtypes): Move initialization of builtin_type_int0
2841 through to builtin_type_uint128 from here ...
2842 (_initialize_gdbtypes): ... to here.
2843 * d10v-tdep.c (d10v_register_type): Update.
2845 * doublest.c: Update copyright.
2846 (floatformat_from_length): Call error when floatformat is NULL.
2847 (extract_floating_by_length): Remove NULL fmt check.
2848 (store_floating_by_length): Ditto.
2850 2004-08-07 Andrew Cagney <cagney@gnu.org>
2852 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2853 that the register is valid.
2855 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2857 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2858 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2859 struct frame_info *. Use safe_frame_unwind_memory instead of
2860 deprecated_read_memory_nobpt.
2861 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2862 changed signature of i386_linux_sigtramp_start and
2863 i386_linux_rt_sigtramp_start.
2865 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2866 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2867 instead of deprecated_read_memory_nobpt.
2868 (i386nbsd_sigtramp_p): Adjust for changed signature of
2869 i386nbsd_sigtramp_offset.
2871 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2872 safe_frame_unwind_memory instead of target_read_memory.
2874 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2876 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2877 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2878 (_initialize_kernel_u_addr): Remove prototype and function.
2879 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2881 * xcoffread.c: Likewise.
2883 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2885 * vax-nat.c: New file.
2886 * vaxbsd-nat.c: Tweak comment.
2887 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2889 (vax-nat.o): New dependency.
2890 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2891 (vax-*-ultrix2*): Remove.
2892 * config/vax/vax.mh: New file.
2893 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2894 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2895 (vax_register_u_addr): New prototype.
2896 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2897 * config/vax/vaxult2.mh: Remove file.
2898 * config/vax/vaxult.mh: Remove file.
2899 * config/vax/vaxbsd.mh: Remove file.
2900 * config/vax/vax.mt (TM_FILE): Remove.
2901 * config/vax/tm-vaxbsd.h: Remove file.
2903 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2905 * aix-thread.c (get_signaled_thread): New function.
2906 (iter_trap): Delete, no longer used.
2907 (iter_tid): New function.
2908 (pd_update): Find the thread that received the SIGTRAP signal
2909 by first locating the kernel thread, and then finding its
2912 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2914 * lin-lwp.c (child_wait): Continue inferior after processing
2915 PTRACE_EVENT_CLONE event.
2917 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2919 * MAINTAINERS: Add self to Write-After-Approval.
2921 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2923 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2924 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2926 2004-08-05 Andrew Cagney <cagney@gnu.org>
2928 * config/xm-sysv4.h: Delete file.
2929 * config/mips/xm-irix5.h: Delete file.
2930 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2931 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2932 * config/ia64/xm-aix.h: Delete file.
2933 * config/ia64/aix.mh (XM_FILE): Delete.
2934 * config/pa/xm-hppah.h: Delete file.
2935 * config/pa/hpux11w.mh (XM_FILE): Delete.
2936 * config/pa/hpux11.mh (XM_FILE): Delete.
2937 * config/pa/hpux1020.mh (XM_FILE): Delete.
2938 * config/pa/hppahpux.mh (XM_FILE): Delete.
2940 * config/alpha/xm-alphalinux.h: Delete file.
2941 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2942 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2943 * config/alpha/xm-alphaosf.h: Delete file.
2944 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2945 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2946 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2947 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2949 * config/i386/xm-i386v.h: Delete file.
2950 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2951 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2952 * config/i386/xm-i386sco.h: Delete file.
2953 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2954 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2955 * config/i386/xm-i386v4.h: Delete file.
2956 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2957 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2958 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2959 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2961 * config/vax/xm-vax.h: Delete file.
2962 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2963 * config/vax/xm-vaxult2.h: Delete file.
2964 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2965 * config/vax/vaxult2.mh (XM_FILE): Delete.
2966 * config/vax/xm-vaxult.h: Delete file.
2967 * config/vax/vaxult.mh (XM_FILE): Delete.
2968 * config/vax/xm-vaxbsd.h: Delete file.
2969 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2971 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2972 * gdbarch.h, gdbarch.c: Re-generate.
2973 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2974 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2975 * frame.h: Delete deprecated_read_fp from comments.
2976 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2977 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2979 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2981 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2982 trampoline in OpenBSD 3.5-current.
2984 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2987 * Makefile.in: Remove embedded page breaks.
2989 2004-08-04 Jim Blandy <jimb@redhat.com>
2991 * regcache.c (regcache_raw_read): Assert that, after calling
2992 target_fetch_registers, the register we're reading is cached.
2994 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2995 a call to 'internal_error', with a more helpful error message.
2996 * rs6000-tdep.c (e500_pseudo_register_read,
2997 e500_pseudo_register_write, rs6000_store_return_value): Same.
2999 2004-08-04 Andrew Cagney <cagney@gnu.org>
3001 * Makefile.in: Update dependencies.
3003 2004-08-04 Jim Blandy <jimb@redhat.com>
3005 Change the layout of the PowerPC E500 raw register cache to allow
3006 the lower 32-bit halves of the GPRS to be their own raw registers,
3007 not pseudoregisters.
3008 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3009 add ppc_ev0_upper_regnum flag.
3010 * rs6000-tdep.c: #include "reggroups.h".
3011 (spe_register_p): Recognize the ev upper half registers as SPE
3013 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3015 (e500_move_ev_register): New function.
3016 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3017 vector registers are the pseudo-registers now, formed by splicing
3018 together the gprs and the upper-half registers.
3019 (e500_register_reggroup_p): New function.
3021 (P8, A4): New macro.
3022 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3023 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3025 (registers_e500): Rearrange register set so that the raw register
3026 set contains 32-bit GPRs and upper-half registers, and the SPE
3027 vector registers become pseudo-registers.
3028 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3029 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3030 register numbers are now the same for the E500 as they are for
3031 other PowerPC variants. Register e500_register_reggroup_p as the
3032 register group function for the E500.
3033 * Makefile.in (rs6000-tdep.o): Update dependencies.
3035 Adapt PPC E500 native support to the new raw regcache layout.
3036 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3037 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3038 (fetch_spe_register, store_spe_register): Handle fetching/storing
3039 all the SPE registers at once, if regno == -1. These now take
3040 over the job of fetch_spe_registers and store_spe_registers.
3041 (fetch_spe_registers, store_spe_registers): Deleted.
3042 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3043 unconditionally; they're always raw. Fetch/store SPE upper half
3044 registers, if present, instead of ev registers.
3045 (fetch_register, store_register): Remove sanity checks: gprs are
3046 never pseudo-registers now, so we never need to even mention any
3047 registers that are ever pseudoregisters.
3049 Use a fixed register numbering when communicating with the PowerPC
3051 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3052 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3053 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3055 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3056 init_sim_regno_table.
3057 * Makefile.in (gdb_sim_ppc_h): New variable.
3058 (rs6000-tdep.o): Update dependencies.
3060 2004-08-02 Andrew Cagney <cagney@gnu.org>
3062 * cris-tdep.c (cris_register_size): Restore function, still used
3065 * gdbarch.sh (deprecated_target_read_fp)
3066 (deprecated_frame_locals_address, deprecated_frame_args_address)
3067 (deprecated_frame_chain_valid, deprecated_frame_chain)
3068 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3069 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3070 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3071 * gdbarch.h, gdbarch.c: Re-generate.
3072 * regcache.c (deprecated_read_fp): Do not call
3073 DEPRECATED_TARGET_READ_FP_P.
3074 * infcmd.c (default_print_registers_info): Do not call
3075 DEPRECATED_DO_REGISTERS_INFO.
3076 * frame-base.c (default_frame_locals_address): Do not call
3077 DEPRECATED_FRAME_LOCALS_ADDRESS.
3078 (default_frame_args_address): Do not call
3079 DEPRECATED_FRAME_ARGS_ADDRESS.
3081 * gdbarch.sh (deprecated_register_raw_size)
3082 (deprecated_register_virtual_size:int): Delete.
3083 * gdbarch.h, gdbarch.c: Re-generate.
3084 * cris-tdep.c (cris_register_size): Delete.
3085 (cris_gdbarch_init): Update.
3086 * alpha-tdep.c (alpha_register_raw_size)
3087 (alpha_register_virtual_size): Delete.
3088 (alpha_gdbarch_init): Update.
3090 * gdbarch.sh (deprecated_register_virtual_type)
3091 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3092 (deprecated_dummy_write_sp): Delete.
3093 * gdbarch.h, gdbarch.c: Re-generate.
3095 * gdbarch.sh (deprecated_register_bytes): Delete.
3096 * gdbarch.h, gdbarch.c: Re-generate.
3097 * regcache.c (deprecated_register_bytes): New function.
3098 * regcache.h (deprecated_register_bytes): Declare.
3099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3100 * v850-tdep.c (v850_gdbarch_init): Update.
3101 * sh64-tdep.c (sh64_gdbarch_init): Update.
3102 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3103 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3104 * mcore-tdep.c (mcore_gdbarch_init): Update.
3105 * cris-tdep.c (cris_gdbarch_init): Update.
3106 * arm-tdep.c (arm_gdbarch_init): Update.
3107 * remote.c (init_remote_state): Update.
3108 * remote-vx.c (vx_prepare_to_store): Update.
3109 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3110 * irix5-nat.c (fetch_core_registers): Update.
3111 * cris-tdep.c (cris_register_bytes_ok): Update.
3112 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3114 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3115 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3116 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3117 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3118 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3119 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3120 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3121 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3122 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3123 with mips_insn16 and mips_insn32.
3125 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3126 * rs6000-tdep.c (rs6000_push_dummy_call)
3127 (rs6000_extract_return_value): Use register_size.
3128 * xstormy16-tdep.c (xstormy16_get_saved_register)
3129 (xstormy16_extract_return_value): Ditto.
3130 * valops.c (value_assign): Ditto.
3131 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3132 * v850-tdep.c (v850_extract_return_value): Ditto.
3133 * tracepoint.c (collect_symbol): Ditto.
3134 * target.c (debug_print_register): Ditto.
3135 * stack.c (frame_info): Ditto.
3136 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3137 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3138 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3139 (store_register_using_P): Ditto.
3140 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3141 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3142 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3143 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3144 * regcache.c (deprecated_read_register_bytes)
3145 (deprecated_write_register_bytes, read_register)
3146 (write_register): Ditto.
3147 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3148 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3149 * monitor.c (monitor_supply_register, monitor_fetch_register)
3150 (monitor_store_register): Ditto.
3151 * mn10300-tdep.c (mn10300_pop_frame_regular)
3152 (mn10300_print_register): Ditto.
3153 * mipsv4-nat.c (fill_fpregset): Ditto.
3154 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3155 (mips64_fill_fpregset): Ditto.
3156 * mi/mi-main.c (register_changed_p, get_register)
3157 (mi_cmd_data_write_register_values): Ditto.
3158 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3159 * irix5-nat.c (fill_gregset, fetch_core_registers):
3160 * infrun.c (write_inferior_status_register): Ditto.
3161 * infptrace.c (fetch_register, store_register): Ditto.
3162 * infcmd.c (default_print_registers_info): Ditto.
3163 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3164 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3165 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3166 * hpux-thread.c (hpux_thread_fetch_registers)
3167 (hpux_thread_store_registers): Ditto.
3168 * hppah-nat.c (store_inferior_registers, fetch_register):
3169 * findvar.c (value_from_register): Ditto.
3170 * dve3900-rom.c (fetch_bitmapped_register):
3171 * cris-tdep.c (cris_gdbarch_init): Ditto.
3172 * alpha-tdep.h: Ditto.
3173 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3175 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3176 DEPRECATED_REGISTER_RAW_SIZE from comments.
3177 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3178 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3179 DEPRECATED_REGISTER_RAW_SIZE.
3180 * findvar.c (value_of_register): Simplify by assuming that the
3181 registers raw and virtual sizes are identical.
3182 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3184 * arch-utils.c (generic_register_size): Simplify by assuming
3187 * regcache.c (legacy_read_register_gen, real_register)
3188 (legacy_write_register_gen): Delete, not used.
3190 * regcache.c (struct regcache_descr): Delete legacy_p.
3191 (init_legacy_regcache_descr): Delete function.
3192 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3193 Do not use deprecated register functions.
3194 (regcache_raw_read, deprecated_write_register_gen):
3195 (deprecated_read_register_gen, regcache_raw_write): Delete code
3196 predicated on legacy_p.
3197 (register_size): Delete check against register raw size.
3199 * cris-tdep.c (cris_register_type): Replace
3200 cris_register_virtual_type.
3201 (cris_gdbarch_init): Update, set register_type.
3203 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3204 * gdbarch.h, gdbarch.c: Re-generate.
3205 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3206 (arm_gdbarch_init) Do not set frameless function invocation.
3207 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3208 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3209 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3210 (frv_gdbarch_init): Do not set frameless function invocation.
3211 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3212 * sh-tdep.c (sh_gdbarch_init): Ditto.
3213 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3214 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3215 * avr-tdep.c (avr_gdbarch_init): Ditto.
3217 * blockframe.c (legacy_frame_chain_valid): Delete function.
3219 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3220 and pc. Update comments.
3221 (pc_in_dummy_frame): Delete function.
3222 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3224 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3225 call_hi, top and pc, use the id.
3226 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3228 * dummy-frame.c: Include "gdb_string.h".
3229 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3230 (generic_save_dummy_frame_tos): Delete.
3231 (dummy_frame_push): New function, replaces above.
3232 * dummy-frame.h: Update copyright.
3233 (dummy_frame_push): Declare.
3234 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3235 (generic_save_call_dummy_addr): Delete declarations.
3236 * infcall.c: Include "dummy-frame.h".
3237 (call_function_by_hand): Add locals caller_regcache,
3238 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3239 with call to frame_save_as_regcache plus cleanup. Delete calls to
3240 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3241 Move clear_proceed_status to just before the resume, add call to
3242 dummy_frame_push (discard cleanup).
3243 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3244 (dummy-frame.o): Add $(gdb_string_h).
3246 2004-08-01 Andrew Cagney <cagney@gnu.org>
3248 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3249 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3250 * dummy-frame.c (find_dummy_frame): Delete.
3251 (struct dummy_frame_cache, dummy_frame_sniffer)
3252 (dummy_frame_prev_register, dummy_frame_this_id)
3253 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3254 frame unwinder using a dummy_frame_cache.
3256 2004-08-01 Andrew Cagney <cagney@gnu.org>
3258 * frame.h (frame_save_as_regcache): Declare.
3259 * frame.c (frame_save_as_regcache): New function.
3260 (do_frame_read_register): Replace do_frame_unwind_register.
3261 (frame_pop): Use frame_save_as_regcache.
3262 * dummy-frame.c (generic_push_dummy_frame): Use
3263 frame_save_as_regcache.
3265 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3267 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3268 file as included until we record the first line in the linetable.
3270 2004-08-01 Andrew Cagney <cagney@gnu.org>
3272 * frame.h (deprecated_pop_dummy_frame)
3273 (deprecated_read_register_dummy)
3274 (deprecated_generic_find_dummy_frame): Delete.
3275 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3276 (deprecated_read_register_dummy)
3277 (deprecated_find_dummy_frame_regcache)
3278 (discard_innermost_dummy)
3279 (deprecated_pop_dummy_frame): Delete.
3280 (dummy_frame_this_id): Simplify.
3281 (struct dummy_frame): Delete "fp" and "sp".
3282 (find_dummy_frame): Simplify.
3283 (generic_push_dummy_frame): Do not set "fp" or "sp".
3284 (fprint_dummy_frames): Do not print "fp" and "sp"
3286 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3288 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3289 (struct i386_insn): New structure.
3290 (i386_match_insn): New function.
3291 (i386_frame_setup_skip_insns): New variable.
3292 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3293 array i386_frame_setup_insns of instructions that should be
3294 skipped inside the frame setup sequence.
3296 2004-08-01 Andrew Cagney <cagney@gnu.org>
3298 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3299 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3300 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3301 * stack.c (frame_info): Delete references to
3302 DEPRECATED_FRAME_INIT_SAVED_REGS and
3303 deprecated_get_frame_saved_regs.
3304 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3305 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3306 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3307 (frame_unwind_register_signed)
3308 (frame_unwind_register_unsigned)
3309 (frame_unwind_unsigned_register): Use register_size.
3310 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3311 (deprecated_frame_xmalloc_with_cleanup)
3312 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3313 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3315 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3316 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3317 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3318 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3320 * infcall.c (call_function_by_hand): Do not use
3321 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3322 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3323 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3324 DEPRECATED_STACK_ALIGN.
3326 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3328 Committed by Andrew Cagney.
3329 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3331 2004-08-01 Andrew Cagney <cagney@gnu.org>
3333 * mips-tdep.c (mips16_frame_cache)
3334 (mips16_frame_this_id, mips16_frame_prev_register)
3335 (mips16_frame_unwind, mips16_frame_sniffer)
3336 (mips16_frame_base_address, mips16_frame_base)
3337 (mips16_frame_base_sniffer, mips32_frame_cache)
3338 (mips32_frame_this_id, mips32_frame_prev_register)
3339 (mips32_frame_unwind, mips32_frame_sniffer)
3340 (mips32_frame_base_address, mips32_frame_base)
3341 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3342 separate heuristic mips16 and mips32 unwinders.
3343 (mips_stub_frame_cache, mips_stub_frame_this_id)
3344 (mips_stub_frame_prev_register)
3345 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3346 (mips_stub_frame_base_address, mips_stub_frame_base)
3347 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3348 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3349 match true mdebug frames.
3350 (non_heuristic_proc_desc): Add forward declaration.
3352 2004-08-01 Andrew Cagney <cagney@gnu.org>
3354 * config/mips/tm-irix6.h: Delete file.
3355 * config/mips/tm-irix5.h: Delete file.
3356 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3357 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3359 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3360 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3361 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3362 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3363 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3364 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3365 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3366 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3367 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3368 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3369 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3370 (TARGET_SIGNAL_RAW_VALUES): Delete.
3371 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3373 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3374 (TARGET_HW_WATCH_LIMIT): Delete.
3375 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3376 * minimon.h: Delete file.
3378 * trad-frame.c (trad_frame_get_this_base)
3379 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3381 * trad-frame.h (trad_frame_set_this_base)
3382 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3384 2004-07-31 Andrew Cagney <cagney@gnu.org>
3386 * trad-frame.c (trad_frame_get_prev_register): Rename
3387 trad_frame_get_prev_register.
3388 * vax-tdep.c (vax_frame_prev_register): Update.
3389 * trad-frame.h: Update.
3390 * trad-frame.c (trad_frame_get_register): Update.
3391 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3392 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3394 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3395 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3397 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3399 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3401 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3403 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3405 * s390-tdep.c (s390_frame_prev_register)
3406 (s390_stub_frame_prev_register)
3407 (s390_sigtramp_frame_prev_register): Update.
3408 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3409 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3410 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3411 * m88k-tdep.c (m88k_frame_prev_register)
3412 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3413 * m32r-tdep.c (m32r_frame_prev_register): Update.
3414 * hppa-tdep.c (hppa_frame_prev_register_helper)
3415 * frv-tdep.c (frv_frame_prev_register): Update.
3416 * d10v-tdep.c (d10v_frame_prev_register): Update.
3417 * cris-tdep.c (cris_frame_prev_register): Update.
3418 * avr-tdep.c (avr_frame_prev_register): Update.
3419 * arm-tdep.c (arm_prologue_prev_register)
3420 (arm_sigtramp_prev_register): Update.
3422 2004-07-31 Andrew Cagney <cagney@gnu.org>
3424 * frame.h (legacy_saved_regs_unwind)
3425 (legacy_frame_chain_valid, legacy_frame_p)
3426 (enum frame_type): Delete UNKNOWN_FRAME.
3427 * dummy-frame.c (dummy_frame_this_id): Simplify.
3428 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3429 * frame.c (struct frame_info): Delete the field "type".
3430 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3431 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3432 (legacy_saved_regs_unwind, legacy_frame_p)
3433 (frame_type_from_pc): Delete.
3434 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3435 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3437 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3439 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3442 * mips-nat.c: Remove file.
3443 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3444 (mips-nat.o): Remove dependency.
3446 * infptrace.c: Update copyright year.
3447 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3448 explicitly setting the buffer to all zeroes.
3450 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3451 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3453 2004-07-30 Andrew Cagney <cagney@gnu.org>
3455 * GDB 6.2 released from gdb_6_2-branch.
3457 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3459 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3461 * exec.c (exec_file_attach):
3462 * nto-tdep.c (nto_find_and_open_solib):
3463 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3464 * solib.c (solib_open):
3465 * somsolib.c (som_solib_sizeof_symbol_table):
3466 * source.c (is_regular_file, openp, open_source_file):
3467 * symfile.c (symfile_bfd_open):
3468 * wince.c (upload_to_device): Differentiate between the search for
3469 binary and source files.
3471 2004-07-30 Andrew Cagney <cagney@gnu.org>
3473 * complaints.c (_initialize_complaints): Pass NULL to
3474 add_setshow_zinteger_cmd for help_doc.
3475 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3477 2004-07-30 Andrew Cagney <cagney@gnu.org>
3480 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3481 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3482 $(PACKAGE).pot and update-po.
3483 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3484 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3485 (update-po): New rules.
3486 (localedir): Define using autoconf.
3487 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3488 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3489 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3490 * configure.in: Generate CATALOGS and LINGUAS from contents of
3491 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3492 * configure: Re-generate.
3493 * po/gdbtext: New file
3495 2004-07-30 Jerome Guitton <guitton@gnat.com>
3497 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3500 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3502 * dwarf2read.c (read_file_scope): Set producer if attribute
3504 (struct dwarf2_cu): Added new member producer.
3506 2004-07-30 Jerome Guitton <guitton@gnat.com>
3508 * inflow.c (kill_command): release file handles in BFD.
3509 * exec.c (exec_file_attach): Ditto.
3510 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3512 2004-07-29 Andrew Cagney <cagney@gnu.org>
3514 * PROBLEMS (mips-irix): Note that it is broken.
3516 2004-07-29 Andrew Cagney <cagney@gnu.org>
3518 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3519 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3521 * config/xm-nbsd.h: Delete file.
3522 * config/arm/xm-nbsd.h: Delete file.
3523 * config/i386/xm-nbsd.h: Delete file.
3524 * config/ns32k/xm-nbsd.h: Delete file.
3525 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3526 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3527 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3528 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3529 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3531 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3532 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3533 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3534 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3535 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3536 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3538 * config/powerpc/xm-linux.h: Delete empty file.
3539 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3540 * config/powerpc/linux.mh (XM_FILE): Delete.
3541 * config/m68k/xm-linux.h: Delete empty file.
3542 * config/m68k/linux.mh (XM_FILE): Delete.
3543 * config/ia64/xm-linux.h: Delete empty file.
3544 * config/ia64/linux.mh (XM_FILE): Delete.
3545 * config/arm/xm-linux.h: Delete empty file.
3546 * config/arm/linux.mh (XM_FILE): Delete.
3548 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3549 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3550 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3551 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3552 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3553 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3554 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3555 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3557 * config/m68k/xm-m68k.h: Delete file.
3558 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3560 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3561 * config/pa/xm-linux.h: Delete empty file.
3562 * config/pa/linux.mh (XM_FILE): Delete.
3563 * config/i386/xm-i386.h: Delete empty file.
3564 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3566 * config/i386/obsdaout.mh (XM_FILE): Delete.
3567 * config/i386/obsd64.mh (XM_FILE): Delete.
3568 * config/i386/fbsd64.mh (XM_FILE): Delete.
3569 * config/i386/nto.mh (XM_FILE): Delete.
3570 * config/i386/obsd.mh (XM_FILE): Delete.
3571 * config/i386/linux64.mh (XM_FILE): Delete.
3572 * config/i386/linux.mh (XM_FILE): Delete.
3573 * config/i386/i386sol2.mh (XM_FILE): Delete.
3574 * config/i386/i386gnu.mh (XM_FILE): Delete.
3575 * config/i386/fbsd.mh (XM_FILE): Delete.
3576 * config/i386/nbsd64.mh (XM_FILE): Delete.
3578 2004-07-29 Andrew Cagney <cagney@gnu.org>
3580 * config/pa/xm-linux.h: Do not include "floatformat.h".
3581 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3582 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3583 * config/i386/xm-i386.h: Do not include "floatformat.h".
3584 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3585 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3586 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3587 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3588 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3589 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3590 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3591 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3592 * configure, config.in: Regenerate.
3593 * configure.host (gdb_host_float_format, gdb_host_double_format)
3594 (gdb_host_long_double_format): Set according to the host.
3596 2004-07-29 Andrew Cagney <cagney@gnu.org>
3598 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3600 2004-07-28 Andrew Cagney <cagney@gnu.org>
3602 * PROBLEMS: Mention threads/1650.
3603 * NEWS: Mention the NPTL fix.
3605 2004-07-28 Andrew Cagney <cagney@gnu.org>
3607 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3608 (add_setshow_cmd_full): Make static.
3609 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3610 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3611 * cli/cli-decode.c (add_setshow_filename_cmd)
3612 (add_setshow_string_cmd): New functions.
3613 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3614 * mips-tdep.c (_initialize_mips_tdep): Update.
3615 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3616 * cli/cli-logging.c (_initialize_cli_logging): Update.
3617 * complaints.c (_initialize_complaints): Update.
3618 * remote.c (_initialize_remote): Update.
3620 2004-07-28 Andrew Cagney <cagney@gnu.org>
3622 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3623 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3624 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3625 print parameters. Make string parameters constant.
3626 * command.h: Update. Update copyright.
3627 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3628 * observer.c (_initialize_observer): Ditto.
3629 * frame.c (_initialize_frame): Ditto.
3630 * complaints.c (_initialize_complaints): Ditto.
3631 * maint.c (_initialize_maint_cmds): Ditto.
3632 * target.c (initialize_targets): Ditto.
3633 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3634 * infcall.c (_initialize_infcall): Ditto.
3635 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3636 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3637 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3638 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3639 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3641 2004-07-28 Andrew Cagney <cagney@gnu.org>
3643 * gdbtypes.c (lookup_primitive_typename): Delete function.
3644 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3645 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3646 * gdbtypes.c (lookup_typename): Ditto.
3647 * f-exp.y (yylex): Ditto.
3648 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3650 * scm-lang.c (c_builtin_types): Delete extern declaration.
3651 (scm_language_defn): Replace
3652 string_char_type and primitive_type_vector with
3653 la_language_arch_info.
3654 * jv-lang.c (java_language_defn): Replace
3655 string_char_type and primitive_type_vector with
3656 la_language_arch_info.
3657 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3658 c_builtin_types in comment.
3659 * c-lang.h (struct language_arch_info): Declare opaque.
3660 (c_language_arch_info): Declare.
3661 (c_builtin_types): Delete declaration.
3662 * c-lang.c (c_language_arch_info): Set string_char_type to
3663 builtin_char, not builtin_true_char. Make global.
3664 (c_builtin_types): Delete array.
3665 (asm_language_defn, minimal_language_defn): Replace
3666 string_char_type and primitive_type_vector with
3667 la_language_arch_info.
3669 2004-07-28 Andrew Cagney <cagney@gnu.org>
3671 * gdbtypes.h (struct builtin_type): Rename true_char to
3673 * gdbtypes.c (gdbtypes_post_init): Update.
3674 * c-lang.c (arch_info): New function.
3675 (enum c_primitive_types): New enum.
3676 (c_language_defn): Instead of string_char_type and
3677 primitive_type_vector set la_language_arch_info.
3679 2004-07-28 Andrew Cagney <cagney@gnu.org>
3681 * language.h (struct language_arch_info): Fix typo
3682 s/primative/primitive/.
3683 * gdbtypes.c (lookup_primitive_typename): Ditto.
3684 * language.c (language_lookup_primitive_type_by_name)
3685 (unknown_language_arch_info): Ditto.
3687 2004-07-27 Andrew Cagney <cagney@gnu.org>
3689 * defs.h (enum language): Add nr_languages.
3690 * language.h (struct language_arch_info): Define.
3691 (struct language_defn): Add la_language_arch_info.
3692 (language_lookup_primative_type_by_name): Declare.
3693 (language_string_char_type): Declare.
3694 * language.c (_initialize_language, language_gdbarch_post_init)
3695 (struct language_gdbarch, language_gdbarch_data): Implement
3696 per-architecture language information.
3697 (unknown_language_arch_info, language_string_char_type)
3698 (language_lookup_primative_type_by_name): New functions.
3699 (unknown_language_defn, auto_language_defn)
3700 (local_language_defn): Set la_language_arch_info to
3701 unknown_language_arch_info.
3702 (unknown_builtin_types): Delete.
3703 * gdbtypes.c (lookup_primitive_typename): Use
3704 language_lookup_primative_type_by_name.
3705 (create_string_type): Use language_string_char_type.
3706 * values.c (value_from_string): Use language_string_char_type.
3707 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3708 * p-lang.c (pascal_language_defn): Ditto.
3709 * m2-lang.c (m2_language_defn): Ditto.
3710 * jv-lang.c (java_language_defn): Ditto.
3711 * objc-lang.c (objc_language_defn): Ditto.
3712 * f-lang.c (f_language_defn): Ditto.
3713 * c-lang.c (c_language_defn, cplus_language_defn)
3714 (asm_language_defn, minimal_language_defn): Ditto.
3716 2004-07-27 Andrew Cagney <cagney@gnu.org>
3718 * gdbtypes.h (struct builtin_type): Declare.
3719 (builtin_type): Declare.
3720 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3721 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3722 (gdbtypes_post_init): New function.
3723 (builtin_type): New function.
3725 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3727 * remote-m32r-sdi.c: Fix breakpoint bug.
3728 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3729 recv_char_data, recv_long_data): New functions to replace communication
3732 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3734 Document PR threads/1650.
3735 * PROBLEMS (Threads): Document problem with many threads
3737 2004-07-26 Andrew Cagney <cagney@gnu.org>
3739 * gdb-mi.el: Move from here ...
3740 * mi/gdb-mi.el: ... to here.
3742 2004-07-26 Andrew Cagney <cagney@gnu.org>
3744 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3745 * main.c (captured_main): When in batch mode always detach.
3747 2004-07-26 Andrew Cagney <cagney@gnu.org>
3749 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3750 and h8300 as broken.
3751 * NEWS: END-OF-LIFE frame compatibility module.
3752 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3755 2004-07-26 Andrew Cagney <cagney@gnu.org>
3757 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3758 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3759 * wince.c (_initialize_wince): Update.
3760 * win32-nat.c (_initialize_win32_nat): Update.
3761 * varobj.c (_initialize_varobj): Update.
3762 * valops.c (_initialize_valops): Update.
3763 * utils.c (initialize_utils, initialize_utils): Update.
3764 * tui/tui-win.c (_initialize_tui_win): Update.
3765 * top.c (init_main): Update.
3766 * symfile.c (_initialize_symfile): Update.
3767 * source.c (_initialize_source): Update.
3768 * somsolib.c (_initialize_som_solib): Update.
3769 * solib.c (_initialize_solib): Update.
3770 * solib-frv.c (_initialize_frv_solib): Update.
3771 * serial.c (_initialize_serial): Update.
3772 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3773 * remote.c (_initialize_remote, _initialize_remote): Update.
3774 * remote-vx.c (_initialize_vx): Update.
3775 * remote-utils.c (_initialize_sr_support): Update.
3776 * remote-sds.c (_initialize_remote_sds): Update.
3777 * remote-mips.c (_initialize_remote_mips): Update.
3778 * remote-e7000.c (_initialize_remote_e7000): Update.
3779 * proc-api.c (_initialize_proc_api): Update.
3780 * printcmd.c: Update.
3781 * parse.c (_initialize_parse): Update.
3782 * pa64solib.c (_initialize_pa64_solib): Update.
3783 * p-valprint.c (_initialize_pascal_valprint): Update.
3784 * monitor.c (_initialize_remote_monitors): Update.
3785 * mips-tdep.c (_initialize_mips_tdep): Update.
3786 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3787 * maint.c (_initialize_maint_cmds): Update.
3788 * lin-lwp.c (_initialize_lin_lwp): Update.
3789 * language.c (_initialize_language): Update.
3790 * kod.c (_initialize_kod): Update.
3791 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3792 * i386-tdep.c (_initialize_i386_tdep): Update.
3793 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3794 * gdbarch.sh: Update.
3795 * gdbarch.c: Re-generate.
3796 * gdb-events.sh: Update.
3797 * gdb-events.c: Re-generate.
3798 * frame.c (_initialize_frame): Update.
3800 * demangle.c (_initialize_demangler): Update.
3801 * dcache.c (_initialize_dcache): Update.
3802 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3803 * cp-valprint.c (_initialize_cp_valprint): Update.
3804 * corefile.c (_initialize_core): Update.
3805 * command.h: Update.
3806 * cli/cli-decode.h: Update.
3807 * cli/cli-cmds.c (init_cli_cmds): Update.
3808 * charset.c (_initialize_charset): Update.
3809 * breakpoint.c (_initialize_breakpoint): Update.
3810 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3811 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3812 * aix-thread.c (_initialize_aix_thread): Update.
3814 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3816 Partial fix for PR backtrace/1718.
3817 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3818 that GCC migrates into the prolugue. Don't handle any
3819 instructions that clobber %ebx.
3821 2004-07-23 Andrew Cagney <cagney@gnu.org>
3823 Use regcache_raw_collect instead of regcache_collect.
3824 * regcache.h (regcache_collect): Delete declaration.
3825 * regcache.c (regcache_colect): Delete function.
3826 * win32-nat.c (do_child_store_inferior_registers): Update.
3827 * sol-thread.c (sol_thread_store_registers): Update.
3828 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3829 * rs6000-nat.c (store_register): Update.
3830 * remote.c (store_register_using_P, remote_store_registers): Update.
3831 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3832 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3833 (fill_vrregset, store_spe_registers, fill_gregset)
3834 (fill_gregset): Update.
3835 * nto-procfs.c (procfs_store_registers): Update.
3836 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3837 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3838 * m68klinux-nat.c (store_register, fill_gregset): Update.
3839 * m68k-tdep.c (fill_gregset): Update.
3840 * infptrace.c (store_register): Update.
3841 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3842 * i386-linux-nat.c (store_register, fill_gregset): Update.
3843 * hppa-linux-nat.c (fill_gregset): Update.
3844 * go32-nat.c (store_register): Update.
3845 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3846 (store_fp_regs): Update.
3847 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3848 (store_nwfpe_extended, store_fpregister, store_fpregs)
3849 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3850 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3851 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3852 (store_regs_user_thread, store_regs_kernel_thread): Update.
3854 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3856 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3857 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3859 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3860 member of `struct comp_unit'.
3862 2004-07-23 Andrew Cagney <cagney@gnu.org>
3864 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3865 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3867 2004-07-23 Martin Hunt <hunt@redhat.com>
3868 Kevin Buettner <kevinb@redhat.com>
3870 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3871 alignment was being added to the offset instead of multiplied.
3873 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3875 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3876 changed signal trampoline in OpenBSD 3.5-current.
3878 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3879 <machine/pcb.h> and "bsd-kvm.h".
3880 (sparc64nbsd_supply_pcb): New function.
3881 (_initialize_sparc64nbsd_nat): Renamed from
3882 _initialize_sparcnbsd_nat. Enable libkvm interface.
3883 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3884 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3885 (LOADLIBES): New variable.
3887 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3889 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3891 2004-07-21 Andrew Cagney <cagney@gnu.org>
3893 Use regcache_raw_supply instead of supply_register.
3894 * regcache.h (supply_register): Delete declaration.
3895 * regcache.c (supply_register): Delete function.
3896 * wince.c (do_child_fetch_inferior_registers): Update.
3897 * win32-nat.c (do_child_fetch_inferior_registers)
3898 (fetch_elf_core_registers): Update.
3899 * v850ice.c (v850ice_fetch_registers): Update.
3900 * thread-db.c (thread_db_store_registers): Update.
3901 * sol-thread.c (sol_thread_store_registers): Update.
3902 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3903 * rs6000-nat.c (fetch_register): Update.
3904 * rom68k-rom.c (rom68k_supply_one_register): Update.
3905 * remote.c (remote_wait, remote_async_wait): Update.
3906 * remote-st.c (get_hex_regs): Update.
3907 * remote-sim.c (gdbsim_fetch_register): Update.
3908 * remote-sds.c (sds_fetch_registers): Update.
3909 * remote-rdp.c (remote_rdp_fetch_register): Update.
3910 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3911 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3912 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3913 * remote-hms.c (init_hms_cmds): Update.
3914 * remote-est.c (init_est_cmds): Update.
3915 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3916 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3917 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3918 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3919 (fetch_register, supply_vrregset, supply_vrregset)
3920 (fetch_spe_registers): Update.
3921 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3922 * monitor.c (monitor_supply_register): Update.
3923 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3924 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3925 (mipsnbsd_supply_fpreg): Update.
3926 * mips-nat.c (fetch_inferior_registers)
3927 (fetch_core_registers): Update.
3928 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3929 (supply_fpregset, mips64_supply_gregset)
3930 (mips64_supply_fpregset): Update.
3931 * m68klinux-nat.c (fetch_register, supply_gregset)
3932 (supply_fpregset): Update.
3933 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3934 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3935 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3936 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3937 * infptrace.c (fetch_register): Update.
3938 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3939 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3940 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3941 (gnu_fetch_registers, gnu_store_registers): Update.
3942 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3943 * i386-linux-nat.c (fetch_register, supply_gregset)
3944 (dummy_sse_values): Update.
3945 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3946 * hppah-nat.c (fetch_register): Update.
3947 * hppa-linux-nat.c (fetch_register, supply_gregset)
3948 (supply_fpregset): Update.
3949 * go32-nat.c (fetch_register): Update.
3950 * dve3900-rom.c (fetch_bitmapped_register)
3951 (_initialize_r3900_rom): Update.
3952 * cris-tdep.c (supply_gregset): Update.
3953 * abug-rom.c (init_abug_cmds): Update.
3954 * core-aout.c (fetch_core_registers): Update.
3955 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3956 (fetch_register, fetch_fp_register): Update.
3957 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3958 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3959 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3960 * alphanbsd-tdep.c (fetch_core_registers): Update.
3961 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3962 * alpha-nat.c (fetch_osf_core_registers)
3963 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3964 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3965 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3967 2004-07-21 Andrew Cagney <cagney@gnu.org>
3969 * PROBLEMS: Mention breakpoints/1702.
3970 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3971 that is known to work.
3973 2004-07-21 Andrew Cagney <cagney@gnu.org>
3975 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3976 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3977 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3978 (handle_inferior_event): Wrap call to deprecated
3979 IGNORE_HELPER_CALL in #ifdef.
3980 * config/mips/tm-nbsd.h: Update.
3982 2004-07-20 Jim Blandy <jimb@redhat.com>
3984 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3985 bfd_mach_ppc has no segment registers.
3987 Include PowerPC SPR numbers for special-purpose registers.
3988 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3989 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3990 new member in initializer.
3991 (S, S4, SN4, S64): New macros for defining special-purpose
3993 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3994 registers_403, registers_403GC, registers_505, registers_860,
3995 registers_601, registers_602, registers_603, registers_604,
3996 registers_750, registers_e500): Use them.
3998 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3999 replace references with expression used to initialize variable.
4001 2004-07-20 Andrew Cagney <cagney@gnu.org>
4003 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4005 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4006 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4007 (s390_sigtramp_frame_sniffer): Update.
4008 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4009 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4010 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4011 (mips32_fetch_instruction): Update.
4012 * mcore-tdep.c (get_insn): Update.
4013 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4014 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4015 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4016 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4017 (i386_linux_rt_sigtramp_start): Update.
4018 * i386-linux-nat.c (child_resume): Update.
4019 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4020 * hppa-linux-tdep.c (insns_match_pattern): Update.
4021 * gdbcore.h: Update.
4022 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4023 * frame.c (safe_frame_unwind_memory): Update.
4024 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4025 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4026 * alpha-tdep.c (alpha_read_insn): Update.
4028 2004-07-20 Andrew Cagney <cagney@gnu.org>
4030 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4031 containing both bytes and mask. Add "frame_type".
4032 * tramp-frame.c (tramp_frame_start): Update.
4033 (tramp_frame_prepend_unwinder): Update.
4034 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4035 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4036 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4037 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4039 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4041 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4042 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4043 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4044 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4046 2004-07-17 Andrew Cagney <cagney@gnu.org>
4048 * NEWS, PROBLEMS: Update for 6.2.
4050 * README: Update to 6.2.
4052 * utils.c (xvasprintf): Call xstrvprintf.
4054 * parse.c: Update copyright.
4055 (null_post_parser): Eliminate ARGSUSED.
4057 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4058 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4059 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4061 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4062 * ppc-linux-nat.c: Use "Linux kernel".
4063 * hppa-linux-tdep.c: Use GNU/Linux.
4064 * hppa-linux-nat.c: Use GNU/Linux.
4065 * dwarfread.c: Add [sic] to use of Linux.
4067 * hppa-linux-nat.c: Do not include <string.h>.
4068 (supply_fpregset): Remove "register" attribute.
4070 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4072 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4074 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4075 * configure, config.in: Regenerated.
4077 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4079 (vaxbsd_supply_pcb): New function.
4080 (_initialize_vaxbsd_nat): New prototype and function.
4081 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4083 (LOADLIBES): New variable.
4084 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4085 (LOADLIBES): New variable.
4086 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4087 (LOADLIBES): New variable.
4088 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4090 2004-07-16 Andrew Cagney <cagney@gnu.org>
4092 * defs.h (event_loop_p): Replace variable declaration with macro,
4094 * main.c (captured_main): Delete options "-async" and "-noasync".
4095 (event_loop_p): Delete variable.
4096 * NEWS: Mention that "-async" and "-noasync" were removed.
4098 2004-07-16 Andrew Cagney <cagney@gnu.org>
4100 * remote-m32r-sdi.c: Re-indent.
4102 2004-07-16 Jim Blandy <jimb@redhat.com>
4104 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4105 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4106 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4107 missing MPC823 SPRs.
4108 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4109 incorrect. (This was corrected in GDB's register name tables on
4112 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4113 should be "esasrr" ("ESA Save and Restore Register").
4115 2004-07-16 Andrew Cagney <cagney@gnu.org>
4117 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4118 calls, no longer applicable. Update comments and rename parameter
4119 "step_frame" to "return_frame".
4121 2004-07-16 Andrew Cagney <cagney@gnu.org>
4123 * frame.c (fprint_field): New function.
4124 (fprint_frame_id): Use fprint_field.
4126 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4128 * ada-lang.c (ada_language_defn): Remove commented out code.
4130 2004-07-15 Jim Blandy <jimb@redhat.com>
4132 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4133 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4135 2004-07-14 Jim Blandy <jimb@redhat.com>
4137 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4139 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4141 * ppc-tdep.h (ppc_num_srs): New enum constant.
4143 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4144 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4145 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4146 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4147 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4148 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4149 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4150 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4151 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4152 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4153 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4154 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4155 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4156 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4157 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4158 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4159 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4160 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4161 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4162 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4163 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4164 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4165 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4166 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4167 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4168 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4169 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4170 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4171 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4172 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4173 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4174 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4175 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4176 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4177 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4178 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4179 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4180 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4181 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4182 special-purpose register numbers.
4184 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4185 manual mentions 'md_twb', but many mention 'm_twb', and at that
4186 point in the register list.)
4188 2004-07-14 Andrew Cagney <cagney@gnu.org>
4190 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4191 instead of "internal-error".
4193 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4195 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4196 that was inserted inside a comment.
4198 2004-07-10 Randolph Chung <tausq@debian.org>
4200 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4202 (hppa_hpux_push_dummy_code): New function.
4203 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4204 Set find_global_pointer method.
4206 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4208 * NEWS: Mention BSD libkvm interface.
4210 2004-07-10 Michael Snyder <msnyder@redhat.com>
4212 * symfile.c (generic_load): Comment typo.
4213 * stack.c (get_selected_block): Ditto.
4214 * regcache.c (regcache_cooked_read): Ditto.
4215 * monitor.c (monitor_debug): Ditto.
4216 * mips-tdep.c (mips_read_pc): Ditto.
4217 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4218 * gdb_mbuild.sh: Ditto.
4219 * gdbarch.sh: Ditto.
4222 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4224 * ada-tasks.c: Remove file.
4226 Remove ARI problems:
4228 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4231 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4233 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4234 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4235 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4236 (UMIN_OF_SIZE): Remove.
4237 (max_of_type): New function to replace orphan macro in gdbtypes.h
4238 (min_of_type): Ditto.
4239 (discrete_type_high_bound): Use max_of_type.
4240 (discrete_type_low_bound): Use min_of_type.
4241 (possible_user_operator_p): Move operator to beginning of line.
4242 (ada_is_variant_part): Ditto.
4243 (ensure_lval): Rewrite to avoid deprecated operations.
4244 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4245 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4246 (ada_enum_name): Remove assignments in 'if' statements.
4247 (build_ada_types): Add gdbarch parameter.
4248 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4249 with gdbarch_data_register_post_init.
4250 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4253 * ada-valprint.c (inspect_it): Remove declaration.
4254 (repeat_count_threshold): Remove declaration.
4255 (ada_print_floating): Remove assignments in 'if' statements.
4256 (print_str): Move operator to beginning of line.
4258 2004-07-08 Jim Blandy <jimb@redhat.com>
4260 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4262 2004-07-08 Bob Rossi <bob@brasko.net>
4264 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4266 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4268 * language.h (struct_language_defn): Add new function pointer:
4269 la_class_name_from_physname. Also add new prototype for
4270 language_class_name_from_physname.
4271 * language.c (language_class_name_from_physname): New function.
4272 (unk_lang_class_name): Ditto.
4273 (unknown_language_defn, auto_language_defn): Change
4274 to add unk_lang_class_name function pointer for
4275 la_class_name_from_physname.
4276 (local_language_defn): Ditto.
4277 * dwarf2read.c (guess_structure_name): Change to call
4278 language_class_name_from_physname.
4279 (determine_class_name): Ditto.
4280 * cp-support.c (class_name_from_physname): Renamed.
4281 (cp_class_name_from_physname): New name of function.
4282 * cp-support.h: Ditto.
4283 * c-lang.c (c_language_defn): Change to add NULL
4284 for class_name_from_physname function pointer.
4285 (cplus_language_defn): Change to add cp_class_name_from_physname.
4286 * jv-lang.c (java_class_name_physname): New function.
4287 (java_find_last_component): New static routine.
4288 (java_language_defn): Add java_class_name_from_physname pointer.
4289 * ada-lang.c (ada_language_defn): Change to add NULL
4290 for class_name_from_physname function pointer.
4291 * f-lang.c (f_language_defn): Ditto.
4292 * m2-lang.c (m2_language_defn): Ditto.
4293 * objc-lang.c (objc_language_defn): Ditto.
4294 * p-lang.c (pascal_language_defn): Ditto.
4295 * scm-lang.c (scm_language_defn): Ditto.
4297 2004-07-06 Andrew Cagney <cagney@gnu.org>
4299 Patch from Bart Robinson.
4300 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4301 (O_LARGEFILE): Define to 0, if not defined.
4303 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4305 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4306 <machine/pcb.h> and "bsd-kvm.h".
4307 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4308 (m68kbsd_supply_pcb): New function.
4309 (_initialize_m68kbsd_nat): New prototype and function.
4310 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4311 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4312 (LOADLIBES): New variable.
4313 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4314 (LOADLIBES): New variable.
4316 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4318 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4320 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4322 (bsd_kvm_cmdlist): New variable.
4323 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4324 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4325 command and "kvm proc" command.
4326 * Makefile.in (bsd-kvm.o): Update dependencies.
4328 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4330 * osabi.c: Update copyright year.
4331 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4332 notes if EI_OSABI is set to ELFOSABI_HPUX.
4334 2004-07-01 Michael Snyder <msnyder@redhat.com>
4336 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4337 that seems to have gotten whacked out of line.
4339 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4341 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4344 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4346 * ada-lang.c (decode_packed_array): Minor change to comment.
4347 (ada_value_slice_ptr): New function.
4348 (ada_value_slice): New function.
4349 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4350 test. Don't know why it is there.
4351 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4352 to avoid dereferencing huge arrays from which one is slicing.
4353 (empty_array): Correct to return an array rather than
4355 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4356 on empty arrays (let'em use 'FIRST instead).
4358 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4360 Address complaints from gdb_ari.sh:
4362 * ada-exp.y: Include gdb_string.h rather than string.h.
4363 (convert_char_literal): Reformat declaration.
4364 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4365 * ada-lex.l: Change use of free to xfree (the macro would do so
4366 anyway, but this is harmless).
4367 Include gdb_string.h rather than string.h.
4368 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4370 * ada-lang.c (parse): Remove K&Rism in parameter list.
4371 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4373 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4375 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4378 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4380 * alphabsd-nat.c: Update copyright year.
4381 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4383 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4385 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4386 (i386_cygwin_in_solib_call_trampoline): New function.
4387 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4388 and skip_trampoline_code gdbarch methods.
4390 2004-06-29 Jim Blandy <jimb@redhat.com>
4392 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4393 name actually used in the dependency lists.
4395 2004-06-29 Randolph Chung <tausq@debian.org>
4397 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4399 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4401 * win32-nat.c (child_pid_to_exec_file): New function.
4402 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4405 2004-06-28 Andrew Cagney <cagney@gnu.org>
4407 * defs.h (xstrvprintf): Declare.
4408 * utils.c (xstrvprintf): New function.
4409 (internal_vproblem, xstrprintf, xasprintf)
4410 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4411 * serial.c (serial_printf): Ditto.
4412 * complaints.c (vcomplaint): Ditto.
4414 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4416 * infcmd.c (attach_command): Move call to target_terminal_inferior
4417 behind loading symbol table.
4419 2004-06-28 Andrew Cagney <cagney@gnu.org>
4421 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4422 change - add back extern deprecated_ui_loop_hook declaration.
4424 2004-06-28 Andrew Cagney <cagney@gnu.org>
4426 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4428 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4429 (c_value_of_variable): Ditto.
4430 * utils.c (internal_vproblem): Ditto.
4431 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4432 * remote.c (add_packet_config_cmd): Ditto.
4433 * remote-rdp.c (rdp_set_command_line): Ditto.
4434 * regcache.c (regcache_dump): Ditto.
4435 * frv-tdep.c (new_variant, new_variant): Ditto.
4436 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4437 (fbsd_find_memory_regions): Ditto.
4438 * breakpoint.c (create_thread_event_breakpoint)
4439 (create_breakpoints): Ditto.
4440 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4441 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4443 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4445 * ada-lang.c: Re-indent file, with some massaging to help indent
4446 a bit when the result is otherwise really too ugly.
4448 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4450 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4451 code_addr_p and special_addr_p to 'unsigned int'.
4453 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4455 * i386v4-nat.c: Update copyright year and tweak comment.
4456 (regmap): Remove trailing comma.
4457 (supply_gregset): Rename local variable i to regnum. Call
4458 regcache_raw_supply instead of supply_register.
4459 (fill_gregset): Rename argument regno to regnum. Call
4460 regcache_raw_collect instead of regcache_collect.
4462 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4464 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4466 (frame_id_build, frame_id_build_special): Update comments.
4467 (frame_id_build_wild): New prototype.
4468 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4469 struct frame_id fields.
4470 (frame_id_build_wild): New function.
4471 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4473 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4475 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4478 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4480 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4482 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4484 * ada-lang.c: Re-indent file.
4486 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4488 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4489 (no_symtab_msg): Likewise.
4491 2004-06-27 Andreas Schwab <schwab@suse.de>
4493 * source.c: Fix whitespace.
4495 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4497 * configure.in: Include <sys/param.h> for td_pcb test.
4498 * configure: Regenerated.
4500 * i386nbsd-nat.c: New file.
4501 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4502 i386obsd-nat.c and i386obsd-tdep.c.
4503 (i386nbsd-nat.o): New dependency.
4504 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4506 (LOADLIBES): New variable.
4507 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4509 (LOADLIBES): New variable.
4511 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4512 (LOADLIBES): New variable.
4514 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4515 fetching from BSD_KVM_PADDR. Correctly lookup address for
4518 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4520 (amd64fbsd_supply_pcb): New funcion.
4521 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4523 2004-06-27 <david@streamline-computing.com>
4525 Partial fix for PR cli/1056.
4526 * valarith.c: Check for zero in division and remainder
4529 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4531 * i387-tdep.c: Remove excessive whitespace.
4533 2004-06-26 Andrew Cagney <cagney@gnu.org>
4535 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4536 * gdb-events.h, gdb-events.c: Re-generate.
4537 * tui/tui-hooks.c (tui_install_hooks): Update.
4538 (tui_remove_hooks): Update.
4539 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4541 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4543 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4544 (gregset_t, fpregset_t): Remove typedefs.
4545 (REG_OFFSET): Rename argument.
4546 (amd64bsd_r_reg_offset): Rename from reg_offset.
4547 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4549 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4551 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4553 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4555 * vax-tdep.c: Tweak comment.
4557 Add OpenBSD/hppa support.
4558 * NEWS (New native configurations): Mention OpenBSD/hppa.
4559 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4560 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4562 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4563 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4564 * configure.host: Add hppa*-*-openbsd*.
4565 * configure.tgt: Add hppa*-*-openbsd*.
4567 2004-06-25 Andrew Cagney <cagney@gnu.org>
4569 * defs.h (deprecated_ui_loop_hook): Deprecated.
4570 * wince.c (child_wait): Update.
4571 * win32-nat.c (child_wait): Update.
4572 * v850ice.c (v850ice_wait): Update.
4573 * top.c (deprecated_ui_loop_hook): Update.
4575 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4576 (do_unix_readchar): Update.
4577 * ser-tcp.c (net_open): Update.
4578 * remote-sim.c (gdb_os_poll_quit): Update.
4579 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4581 2004-06-24 Andrew Cagney <cagney@gnu.org>
4583 * defs.h (deprecated_pre_add_symbol_hook)
4584 (deprecated_post_add_symbol_hook): Deprecated.
4585 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4586 (symbol_file_add_with_addrs_or_offsets): Update references.
4588 2004-06-24 Andrew Cagney <cagney@gnu.org>
4590 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4591 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4592 * wince.c (ui_loop_hook): Delete extern declaration.
4593 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4594 * v850ice.c (ui_loop_hook): Delete extern declaration..
4595 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4596 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4597 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4598 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4599 ui_loop_hook declaration.
4601 2004-06-24 Andrew Cagney <cagney@gnu.org>
4603 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4604 entry_func_highpc fields.
4605 * objfiles.c (init_entry_point_info): Do not clear
4606 entry_func_lowpc and entry_func_highpc.
4607 (objfile_relocate): Do not relocate entry_func_lowpc and
4609 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4611 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4613 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4614 entry_func_lowpc and entry_func_highpc with call to
4617 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4619 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4620 quad-precision floating point arguments in registers.
4622 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4624 From Michael Mueller <m.mueller99@kay-mueller.de>:
4625 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4628 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4630 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4632 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4633 untriggered watchpoints to a separate if clause. Update function
4634 comment regarding STOPPED_BY_WATCHPOINT argument.
4636 2004-06-22 Jim Blandy <jimb@redhat.com>
4638 * gdbarch.sh: Doc fix.
4640 2004-06-21 Martin Hunt <hunt@redhat.com>
4641 Kevin Buettner <kevinb@redhat.com>
4643 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4644 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4645 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4646 to set_gdbarch_sp_regnum(). Use cooked register number.
4647 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4649 2004-06-21 Andrew Cagney <cagney@gnu.org>
4651 * gdbarch.sh: When the macro field is empty, do not generate a
4652 macro definition. When the macro field is "=", generate the macro
4653 name from the upper-case function name.
4654 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4655 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4656 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4657 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4658 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4659 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4660 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4661 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4662 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4663 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4664 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4665 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4666 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4667 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4668 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4669 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4670 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4671 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4672 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4673 (DEPRECATED_USE_STRUCT_CONVENTION)
4674 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4675 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4676 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4677 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4678 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4679 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4680 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4681 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4682 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4683 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4684 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4685 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4686 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4687 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4688 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4689 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4690 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4691 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4693 2004-06-21 Andrew Cagney <cagney@gnu.org>
4695 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4696 macro name, and the function rather than macro value. Only wrap
4697 macro print statements in #ifdef. Move format logic to where it
4699 * gdbarch.c: Re-generate.
4701 * gdbarch.sh (read): Delete "print_p" and "description", add
4702 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4703 Delete references to print_p.
4704 (TARGET_ARCHITECTURE): Delete print predicate.
4705 * gdbarch.c: Re-generate.
4707 * gdbarch.sh: Check that multi-arch methods do not provide a
4709 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4710 (print_registers_info, print_float_info, print_vector_info)
4711 (adjust_breakpoint_address, remote_translate_xfer_address)
4712 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4713 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4714 name from the multi-arch definition.
4716 2004-06-20 Andrew Cagney <cagney@gnu.org>
4718 * gdbarch.sh: Sort by the function, instead of macro name.
4719 * gdbarch.c: Re-generate.
4721 2004-06-20 Andrew Cagney <cagney@gnu.org>
4723 * gdbarch.sh: Use the function, instead of macro name in
4724 errors and the log file.
4725 (return_value): Remove stray ":" in spec.
4727 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4728 * gdbarch.h, gdbarch.c: Re-generate.
4729 * Makefile.in (arch-utils.o): Update dependencies.
4730 * values.c (using_struct_return): Move code calling
4731 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4732 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4733 to legacy_return_value, simplify.
4734 * infcmd.c (print_return_value): Move code calling
4735 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4736 to legacy_return_value, simplify.
4737 * infcall.c (call_function_by_hand): Move code calling
4738 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4739 * arch-utils.c: Update copyright. Include "gdbcore.h".
4740 (legacy_return_value): New function.
4741 * arch-utils.h: Update copyright.
4742 (legacy_return_value): Declare.
4744 2004-06-20 Andrew Cagney <cagney@gnu.org>
4746 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4747 * gdbarch.h, gdbarch.c: Re-generate.
4748 * values.c (using_struct_return): Update call.
4749 * mcore-tdep.c: Update comment.
4750 * infcall.c (call_function_by_hand): Update comment.
4751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4752 * arch-utils.h (always_use_struct_convention): Update.
4753 * v850-tdep.c (v850_gdbarch_init): Update.
4754 * sh64-tdep.c (sh64_gdbarch_init): Update.
4755 * sh-tdep.c (sh_gdbarch_init): Update.
4756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4757 * mips-tdep.c (mips_gdbarch_init): Update.
4758 * mcore-tdep.c (mcore_gdbarch_init): Update.
4759 * m32r-tdep.c (m32r_gdbarch_init): Update.
4760 * ia64-tdep.c (ia64_gdbarch_init): Update.
4761 * h8300-tdep.c (h8300_gdbarch_init): Update.
4762 * frv-tdep.c (frv_gdbarch_init): Update.
4763 * cris-tdep.c (cris_gdbarch_init): Update.
4764 * arm-tdep.c (arm_gdbarch_init): Update.
4765 * alpha-tdep.c (alpha_gdbarch_init): Update.
4767 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4769 * PROBLEMS: Add more specific information, and a work-around,
4772 2004-06-18 Andrew Cagney <cagney@gnu.org>
4774 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4775 * gdbarch.h, gdbarch.c: Re-generate.
4776 * ada-lang.c (ada_finish_decode_line_1): Update.
4777 * infrun.c (handle_inferior_event): Update.
4778 * infcall.c (find_function_addr): Update.
4779 * linespec.c (minsym_found): Update.
4780 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4782 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4783 * cli/cli-cmds.c (disassemble_command): Update.
4784 * vax-tdep.c (vax_gdbarch_init): Update.
4786 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4788 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4790 2004-06-17 Andrew Cagney <cagney@gnu.org>
4792 GDB 6.1.1 released from the GDB 6.1 branch.
4793 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4796 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4799 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4800 operation as a uleb128. Found by Michael Coulter.
4802 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4804 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4806 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4807 to ada-lang.h; this is needed to be able to implement the kill command
4810 (task_entry): Ditto.
4812 (ada_build_task_list): Ditto.
4814 * ada-lang.c: Conditionalize routines and data structures related
4815 to breakpoints, exceptions, completion, and symbol caching on
4816 GNAT_GDB, since these are not yet used in the submitted public sources.
4817 (ada_main_name): Editorial: Move definition out of exception-related
4820 2004-06-15 Andrew Cagney <cagney@gnu.org>
4822 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4823 deprecated_pc_in_call_dummy.
4825 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4827 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4828 bfd_get_section_size_before_reloc or _raw_size.
4829 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4830 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4831 (dwarf2_read_section): Likewise.
4832 * elfread.c (elf_locate_sections): Likewise.
4833 * gcore.c (derive_heap_segment): Likewise.
4834 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4835 * remote-e7000.c (e7000_load): Likewise.
4836 * remote-m32r-sdi.c (m32r_load): Likewise.
4837 * remote-mips.c (mips_load_srec): Likewise.
4838 (pmon_load_fast): Likewise.
4839 * remote.c (compare_sections_command): Likewise.
4840 * symfile.c (add_section_size_callback): Likewise.
4841 (load_section_callback): Likewise.
4842 (pc_in_unmapped_range): Likewise.
4843 (pc_in_mapped_range): Likewise.
4844 (sections_overlap): Likewise.
4845 (list_overlays_command): Likewise.
4846 (simple_overlay_update_1): Likewise.
4847 (simple_overlay_update): Likewise.
4848 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4849 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4851 2004-06-14 Randolph Chung <tausq@debian.org>
4853 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4854 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4856 (hppa_hpux_inferior_created): New function.
4857 (hppa_hpux_init_abi): Register observer.
4858 * symfile.c (hp_cxx_exception_support_initialized)
4859 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4860 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4862 2004-06-14 Randolph Chung <tausq@debian.org>
4864 * MAINTAINERS (Write After Approval): Alphabetize my entry
4867 2004-06-14 Andrew Cagney <cagney@gnu.org>
4869 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4870 testsuite maintainer.
4872 2004-06-13 Andrew Cagney <cagney@gnu.org>
4874 * infcmd.c (print_return_value): Fix logic, allow
4875 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4877 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4878 defining any macros.
4879 * gdbarch.h: Re-generate.
4881 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4882 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4883 * gdbarch.h: Re-generate.
4885 * values.c (generic_use_struct_convention): Don't check gcc_p.
4887 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4888 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4889 * gdbarch.h, gdbarch.c: Regenerate.
4890 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4891 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4893 deprecated_max_register_raw_size and
4894 deprecated_max_register_virtual_size.
4895 * v850-tdep.c (v850_gdbarch_init): Ditto.
4896 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4897 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4899 * cris-tdep.c (cris_gdbarch_init): Ditto.
4901 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4902 * gdbarch.h, gdbarch.c: Re-generate.
4903 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4904 (m68hc11_use_struct_convention): Delete function.
4905 (m68hc11_extract_struct_value_address): Delete function.
4906 (m68hc11_return_value): New function.
4907 (m68hc11_gdbarch_init): Instead of store_return_value,
4908 extract_return_value, return_value_on_stack,
4909 deprecated_extract_struct_value_address and use_struct_convention,
4911 * values.c (using_struct_return): Do not call
4912 RETURN_VALUE_ON_STACK.
4913 * arch-utils.h (generic_return_value_on_stack_not): Delete
4915 * arch-utils.c (generic_return_value_on_stack_not): Delete
4918 2004-06-12 Andrew Cagney <cagney@gnu.org>
4920 * values.c (register_value_being_returned): Delete function.
4921 * infcmd.c (legacy_return_value): Delete function.
4922 * infcall.c (call_function_by_hand): Inline
4923 "register_value_being_returned", simplify.
4924 * values.c (using_struct_return): Update comment, refer to
4925 print_return_value instead of register_value_being_returned.
4926 * infcmd.c (print_return_value): Inline calls to
4927 register_value_being_returned and legacy_return_value. Simplify.
4929 2004-06-11 Randolph Chung <tausq@debian.org>
4931 * somread.c (som_symtab_read): Exclude gcc local symbols.
4933 2004-06-11 Randolph Chung <tausq@debian.org>
4935 * infrun.c (handle_inferior_event): Handle the case when a
4936 trampoline ends up in the runtime resolver, and if the trampoline
4937 has no name. Rearrange the code so that all the trampoline
4938 processing happens before other step-out-of-range handling.
4940 2004-06-11 Martin Hunt <hunt@redhat.com>
4942 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4945 2004-06-10 Andrew Cagney <cagney@gnu.org>
4947 * blockframe.c (legacy_inside_entry_func): Delete.
4948 (legacy_frame_chain_valid): Inline call to
4949 legacy_inside_entry_func, simplify.
4951 2004-06-10 Bob Rossi <bob@brasko.net>
4953 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4954 * dwarf2read.c (partial_die_info): Add dirname field.
4955 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4956 (read_partial_die): Save away DW_AT_comp_dir.
4957 * defs.h (symtab_to_filename): Removed.
4958 * source.c (find_and_open_source): Added.
4959 (open_source_file): Just calls find_and_open_source.
4960 (symtab_to_filename): Removed.
4961 (symtab_to_fullname, psymtab_to_fullname): Added.
4962 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4963 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4965 * symtab.h (partial_symtab): Add dirname field.
4966 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4967 (mi_cmd_file_list_exec_source_file): Call new function
4968 symtab_to_fullname to find fullname.
4969 (mi_cmd_file_list_exec_source_files): Added.
4970 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4971 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4973 2004-06-10 Andrew Cagney <cagney@gnu.org>
4975 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4976 to generic_use_struct_convention, the default value.
4978 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4981 * ns32k-tdep.c (ns32k_push_arguments): New function.
4982 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4983 * infcall.c (call_function_by_hand): Call error instead of
4984 legacy_push_arguments.
4985 * value.h (legacy_push_arguments): Delete declaration.
4986 * valops.c (legacy_push_arguments): Delete function.
4987 (value_push): Delete function.
4989 2004-06-10 Brian Ford <ford@vss.fsi.com>
4991 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4992 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4994 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4996 2004-06-10 Andrew Cagney <cagney@gnu.org>
4998 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4999 * gdbarch.h, gdbarch.c: Re-generate.
5000 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5002 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5003 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5004 deprecated_pc_in_call_dummy instead of
5005 DEPRECATED_PC_IN_CALL_DUMMY.
5006 (arm_skip_prologue): Ditto.
5007 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5008 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5009 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5010 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5012 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5013 (sh64_init_extra_frame_info, sh64_get_saved_register)
5014 (sh64_pop_frame): Ditto.
5015 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5016 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5017 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5018 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5019 (h8300_pop_frame): Ditto.
5020 * blockframe.c (legacy_inside_entry_func)
5021 (legacy_frame_chain_valid): Ditto.
5022 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5023 to deprecated_pc_in_call_dummy.
5025 2004-06-09 Andrew Cagney <cagney@gnu.org>
5027 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5028 provide a default value.
5029 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5030 * gdbarch.h, gdbarch.c: Re-generate.
5031 * arch-utils.c (generic_convert_register_p): Rename
5032 legacy_convert_register_p
5033 (legacy_register_to_value, legacy_value_to_register): Delete
5035 * arch-utils.h (generic_convert_register_p): Rename
5036 legacy_convert_register_p.
5037 (legacy_register_to_value, legacy_value_to_register): Delete
5040 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5041 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5042 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5043 * gdbarch.h, gdbarch.c: Re-generate.
5044 * infcmd.c (default_print_registers_info): Simplify.
5045 * findvar.c (value_of_register): Simplify.
5046 * mi/mi-main.c (get_register): Simplify.
5047 * arch-utils.c (legacy_convert_register_p): Always return 0.
5048 (legacy_register_to_value, legacy_value_to_register): Always call
5051 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5052 #ifdef CLEAR_INSN_CACHE code.
5053 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5054 Delete #ifdef CLEAR_DEFERRED_STORES code.
5056 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5058 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5060 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5062 * config/mips/mipsv4.mh: Delete file.
5064 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5066 (hpread_adjust_stack_address): Delete declaration.
5068 2004-06-08 Andrew Cagney <cagney@gnu.org>
5070 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5071 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5072 PTRACE_ATTACH / PTRACE_DETACH available call error.
5073 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5074 * infttrace.c (update_thread_state_after_attach, attach, detach):
5075 Remove #ifdef wrappers.
5076 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5077 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5078 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5079 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5080 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5081 * config/nm-linux.h (ATTACH_DETACH): Delete.
5082 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5083 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5084 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5085 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5086 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5088 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5090 * configure.in: Set $configdir to the right OS specific value.
5091 Use value when setting $tcldir and $tkdir.
5092 * configure: Regenerate.
5094 2004-06-06 Paul Brook <paul@codesourcery.com>
5096 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5099 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5101 * ada-lang.c (lookup_symbol_in_language): New function to allow
5102 re-use of another language's symbol lookup code. (Placed here
5103 temporarily while Ada support is being integrated into the public
5105 (restore_language): New auxiliary function for
5106 lookup_symbol_in_language.
5107 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5108 temporarily while Ada support is being integrated into the public
5111 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5113 * Makefile.in (check//%): New.
5115 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5116 (mn10300_store_return_value): Rewrite.
5117 (mn10300_type_align): New.
5118 (mn10300_use_struct_convention): Rewrite.
5119 (mn10300_return_value): New, using all of the above.
5120 (mn10300_pop_frame_regular): Add saved_regs_size.
5121 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5123 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5124 regs if PC is on movm.
5126 2004-06-07 Jim Blandy <jimb@redhat.com>
5128 Add native Linux support for the PowerPC E500.
5129 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5130 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5131 all architectures except the E500.
5132 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5134 (struct gdb_evrregset_t): New type.
5135 (have_ptrace_getsetevrregs): New variable.
5136 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5137 fetch_spe_registers): New functions.
5138 (fetch_register): Call fetch_spe_register as appropriate.
5139 Assert that we're only passed raw register numbers.
5140 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5141 Don't fetch gprs if they're pseudoregisters.
5142 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5143 store_spe_registers): New functions.
5144 (store_register): Call store_spe_register as appropriate.
5145 Assert that we're only passed raw register numbers.
5146 (store_ppc_registers): Call store_spe_registers as appropriate.
5147 Don't store gprs if they're pseudoregisters.
5149 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5151 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5152 struct if one exists, even if we are dealing with a zombie thread.
5154 2004-06-07 Andrew Cagney <cagney@gnu.org>
5156 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5157 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5158 Rename PC_REQUIRES_RUN_BEFORE_USE.
5159 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5162 2004-06-07 Randolph Chung <tausq@debian.org>
5164 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5165 unwinding after sp has been saved to the stack but before the end
5166 of the prologue, and after the fp has been modified but before it has
5167 been saved to the stack.
5168 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5169 Remove superfluous definitions.
5170 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5172 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5174 Committed by Randolph Chung.
5175 * hppa-linux-nat.c: Include the correct version of the header file
5176 depending on the kernel version.
5178 2004-06-06 Randolph Chung <tausq@debian.org>
5180 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5181 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5183 2004-06-06 Randolph Chung <tausq@debian.org>
5185 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5186 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5187 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5188 * hppa-tdep.c (hppa_symbol_address): New function definition.
5189 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5191 2004-06-06 Randolph Chung <tausq@debian.org>
5193 * hppa-tdep.h (struct value): Forward declaration.
5194 (gdbarch_tdep): Define tdep find_global_pointer method.
5195 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5196 associated with the function we are trying to call, and write it
5198 (hppa32_convert_from_funct_ptr_addr): New function.
5199 (hppa_find_global_pointer): New function.
5200 (hppa_gdbarch_init): Set default find_global_pointer method; set
5201 convert_from_func_ptr_addr method.
5202 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5203 (hppa_linux_init_abi): Set find_global_pointer method.
5204 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5206 2004-06-06 Randolph Chung <tausq@debian.org>
5208 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5209 to struct value *function.
5210 * gdbarch.c: Regenerate.
5211 * gdbarch.h: Likewise.
5212 * infcall.c (call_function_by_hand): Pass entire function value
5215 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5216 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5217 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5218 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5219 * arm-tdep.c (arm_push_dummy_call): Likewise.
5220 * avr-tdep.c (avr_push_dummy_call): Likewise.
5221 * cris-tdep.c (cris_push_dummy_call): Likewise.
5222 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5223 * frv-tdep.c (frv_push_dummy_call): Likewise.
5224 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5225 * hppa-tdep.c (hppa32_push_dummy_call)
5226 (hppa64_push_dummy_call): Likewise.
5227 * i386-tdep.c (i386_push_dummy_call): Likewise.
5228 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5229 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5230 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5231 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5232 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5233 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5234 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5235 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5236 (ppc64_sysv_abi_push_dummy_call): Likewise.
5237 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5238 (ppc64_sysv_abi_push_dummy_call): Likewise.
5239 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5240 * s390-tdep.c (s390_push_dummy_call): Likewise.
5241 * sh-tdep.c (sh_push_dummy_call_fpu)
5242 (sh_push_dummy_call_nofpu): Likewise.
5243 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5244 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5245 * vax-tdep.c (vax_push_dummy_call): Likewise.
5247 2004-06-04 Jim Blandy <jimb@redhat.com>
5249 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5250 gdbarch argument to register_size.
5252 * rs6000-tdep.c (rs6000_store_return_value): Use
5253 regcache_cooked_write_part instead of
5254 deprecated_write_register_bytes.
5255 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5256 not gdbarch_deprecated_store_return_value.
5258 * ppc-linux-nat.c (store_register, fetch_register): Remove
5259 incorrect assertions. Simplify and generalize handling of
5260 transfers whose sizes are not multiples of, or less than, sizeof
5263 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5265 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5266 as a new thread event.
5267 * thread-db.c (thread_get_info_callback): If the thread is a
5268 zombie, return TD_THR_ZOMBIE.
5269 (thread_from_lwp): If thread_get_info_callback returns
5270 TD_THR_ZOMBIE, check if the thread is still on the thread list
5271 and return a -1 ptid if not found.
5272 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5273 change the status to TARGET_WAITKIND_SPURIOUS.
5275 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5277 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5278 double values in little endian mode.
5280 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5282 Committed by Andrew Cagney.
5283 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5284 after last enum constant to avoid error from IBM C
5287 2004-06-02 Jim Blandy <jimb@redhat.com>
5289 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5290 to 'message', and make it local to the lone block that uses it.
5292 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5294 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5296 * ada-exp.y: Update copyright notice.
5299 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5300 SPECIAL_VARIABLE and unify the treatment of these cases.
5302 (write_attribute_call0): Remove.
5303 (write_attribute_call1): Remove.
5304 (write_attribute_calln): Remove.
5305 (save_qualifier): Add missing semicolon.
5307 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5308 temporarily disabled to allow compilation with FSF head version.
5310 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5311 use individual operators (OP_*) for all attributes.
5312 (exp syntax): Use write_int.
5313 Handle STRING literals with OP_STRING.
5314 (variable syntax): Add limit parameter to calls to
5315 write_object_renaming.
5317 (temp_parse_space): New definition to hold entities that need
5318 only live until the next call to ada_parse.
5319 (string_to_operator): Rename fields of ada_opname_table entries.
5321 (write_var_from_sym): Record block.
5322 (write_var_from_name): Minor reformatting.
5323 Make sure saved name is properly encoded in the case of multiple
5324 matches, and set its language to Ada.
5326 Modify to indicate unresolved name as symbol in the UNRESOLVED
5327 namespace, allocated in temp_parse_space.
5328 (write_int): New function.
5330 (write_object_renaming): Add max_depth parameter to limit
5331 chains of object renamings.
5332 Handle case where root of renaming expression is itself a renaming.
5333 Use temp_parse_space for temporary name buffer.
5334 Handle renamings to dereferenced pointers (___XEXA suffices).
5336 (ada_parse, yyerror, string_to_operator,
5337 write_var_from_sym, write_var_from_name, write_attribute_call0,
5338 write_attribute_call1, write_attribute_calln,
5339 write_object_renaming): Protoize.
5341 (_initialize_ada_exp): New function.
5343 * ada-lang.c: Update copyright notice.
5344 General terminology change to conform to GNAT compiler usage:
5345 mangle => encode, demangle => decode
5346 Include gdb_obstack.h.
5355 (ADA_RETAIN_DOTS): Make sure this is defined.
5356 (TRUNCATION_TOWARDS_ZERO): Define.
5357 (struct string_vector): Define.
5358 (unresolved_names): Remove definition.
5359 (xnew_string_vector): New function.
5360 (string_vector_append): New function.
5361 (extract_string): Make static.
5362 (ada_unqualified_name): New function.
5363 (add_angle_brackets): New function.
5364 (function_name_from_pc): New function.
5365 (place_on_stack): Rename to ensure_lval.
5367 (ensure_lval): Renamed from place_on_stack.
5368 Make identity on lvals.
5370 (is_nonfunction): New interface.
5371 Only symbols in LOC_CONST class can be enumerals.
5372 (fill_in_ada_prototype): Remove; now independent of language.
5373 (add_defn_to_vec): Add obstack and symtab arguments.
5374 Use obstack to hold collected definitions.
5375 (num_defns_collected): New function.
5376 (defns_collected): New function.
5377 (ada_resolve_subexp): Rename to resolve_subexp.
5378 (resolve_subexp): Renamed from ada_resolve_subexp.
5379 (ada_op_name): Return non-const result.
5380 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5383 (to_fixed_array_type): Add declaration.
5384 (coerce_unspec_val_to_type): Remove offset parameter.
5385 (find_sal_from_funcs_and_line): New interface.
5386 (find_line_in_linetable): Ditto.
5388 (all_sals_for_line): Rename to ada_sals_for_line and make
5390 Add new parameter. When set, do not ask the user to choose the
5391 instance, but use the first one found instead.
5392 Use given line number in returned sals.
5394 Skip the prologue if funfirstline is set.
5395 Correct for memory leak when 0 lines found.
5397 (value_pos_atr): Use pos_atr.
5398 (pos_atr): New function.
5399 (standard_lookup): Add block parameter.
5401 (makeTimeStart): Remove declaration and uses.
5402 (makeTimeStop): Remove declaration and uses.
5404 (ada_completer_word_break_characters): Allow for VMS.
5405 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5406 (raise_sym_name): New constant.
5407 (raise_unhandled_sym_name): New constant.
5408 (raise_assert_sym_name): New constant.
5409 (process_raise_exception_name): New constant.
5410 (longest_exception_template): New constant.
5411 (warning_limit): New variable to limit warnings during expression
5413 (warnings_issued): New variable to keep track of warnings issued.
5414 (known_runtime_file_name_patterns): New constant.
5415 (known_auxiliary_function_name_patterns): New constant.
5416 (symbol_list_obstack): New variable.
5418 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5419 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5420 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5421 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5422 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5423 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5424 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5425 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5428 (ada_get_field_index): New function.
5429 (lim_warning): New function.
5430 (ada_translate_error_message): New function.
5431 (MAX_OF_SIZE): New function.
5432 (MIN_OF_SIZE): New function.
5433 (UMAX_OF_SIZE): New function.
5434 (UMIN_OF_SIZE): New function.
5435 (discrete_type_high_bound): New function.
5436 (discrete_type_low_bound): New function.
5437 (base_type): New function.
5438 (do_command): Remove.
5440 (ada_update_initial_language): Use language_ada, not language_unknown.
5441 (ada_encode): Renamed from ada_mangle.
5442 Obey ADA_RETAIN_DOTS.
5443 (ada_decode): Renamed from ada_demangle.
5444 Update coding conventions.
5445 (decoded_names_store): New hash table.
5446 (ada_decode_symbol): New function.
5447 (ada_la_decode): New function.
5449 (modify_general_field): Correct computations of offset and bit
5451 (desc_base_type): Handle ref types, too.
5452 (ada_is_direct_array_type): New function.
5454 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5455 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5456 (ada_is_bogus_array_descriptor,ada_type_of_array,
5457 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5458 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5459 ada_is_array_descriptor_type.
5461 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5462 (ada_is_packed_array_type): Handle pointers or
5463 references to packed arrays as well.
5464 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5465 (decode_packed_array_type): Search for the packed array type
5466 symbol in the currently selected block and associated
5468 Use lookup_symbol again.
5470 (decode_packed_array): Handle pointers and references.
5471 Update call to coerce_unspec_val_to_type.
5472 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5473 (ada_value_primitive_packed_val): Improve comment.
5475 (ada_index_type): Substitute int type for "undefined".
5476 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5477 ada_array_langth, ada_is_string_type): Use renamed
5478 ada_is_simple_array_type.
5479 (empty_array): New function.
5481 (ada_resolve): Rename to resolve.
5482 (resolve): Make static.
5483 Call renamed resolve_subexp.
5485 (ada_resolve_subexp): Rename to resolve_subexp.
5486 (resolve_subexp): Update comment.
5487 Decomment disabled code.
5488 Add LOC_COMPUTED* cases.
5489 Modify to use temporary struct symbols (marked as being in
5490 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5491 OP_UNRESOLVED_VALUE.
5492 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5495 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5496 Use new ada_lookup_symbol_list interface.
5497 Use new ada_resolve_function interface.
5498 Remove OP_TYPE case.
5500 (ada_args_match): Idiot proof against null actuals.
5501 Use intermediate variables to clarify.
5502 (ada_resolve_function): Update comment and interface.
5503 (mangled_ordered_before): Rename to encoded_ordered_before and
5505 (sort_choices): Update comment and interface.
5506 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5507 (user_select_syms): New interface.
5508 Use new sort_choices interface.
5509 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5510 (possible_user_operator_p): Idiot-proof against null values.
5511 (ada_simple_renamed_entity): Don't make cleanup; rely on
5512 caller to free result string.
5513 Remove const from return type.
5514 (make_array_descriptor): Rename uses of place_on_stack to
5516 Make sure that arrays are on stack.
5518 (HASH_SIZE): Define.
5519 (struct cache_entry): Define.
5520 (cache_space): Define.
5522 (clear_ada_sym_cache): New function.
5523 (find_entry): New function.
5524 (lookup_cached_symbol): New function.
5525 (defn_vector_size): Define.
5526 (cache_symbol): New function.
5527 (defn_symbols): Remove.
5529 (standard_lookup): Use lookup_symbol_in_language to get effect of
5533 (symbol_completion_match): New function.
5534 (symbol_completion_add): New function.
5535 (ada_make_symbol_completion_list): New function.
5537 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5538 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5539 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5540 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5542 (ada_lookup_simple_minsym): New function.
5543 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5545 (add_symbols_from_enclosing_procs): New interface.
5546 Conditionalize more helpfully.
5547 Don't bother if program isn't running.
5548 Use new interface to get_frame_block.
5549 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5551 (remove_extra_symbols): New interface.
5552 (xget_renaming_scope): New function.
5553 (is_package_name): New function.
5554 (renaming_is_visible): New function.
5555 (remove_out_of_scope_renamings): New function.
5557 (ada_lookup_symbol_list): New interface.
5558 Properly reinitialize the symbol list obstack.
5559 Don't call add_symbols_from_enclosing_procs if we start from a
5560 static or global block.
5561 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5562 add_symbols_from_enclosing_procs.
5563 Add symtab data to cached entries.
5564 Handle symbols prefixed with
5565 "standard__" specially; strip prefix and don't look in local symbols.
5566 Do not include out of scope renaming symbols in list of
5568 Add const to block parameter.
5569 Move check for non-local, non-global symbols earlier.
5570 Remove timing stuff.
5571 (ada_lookup_symbol): New interface.
5572 Find symtab as well.
5573 (ada_lookup_symbol_nonlocal): New function.
5575 (is_name_suffix): Enhance suffix detection to recognize
5576 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5577 (is_dot_digits_suffix): New function.
5578 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5580 (ada_add_block_symbols): New interface. Use obstack to return results
5581 in a vector of struct ada_symbol_infos. Add symtab argument.
5582 Use new interface to add_defn_to_vec.
5583 Remove calls to fill_in_ada_prototype.
5584 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5586 (ada_finish_decode_line_1): Add const qualification to local to fix
5588 Start looking in static block for functions to avoid attempts
5589 to search frame chain for up-level variables.
5590 Adapt to new ada_sals_for_line interface.
5591 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5592 Handle quoting of the function name inside the spec string.
5593 Skip prologue when funfirstline is set and update the
5594 function documentation to that effect.
5596 (debug_print_lines, debug_print_block, debug_print_blocks,
5597 debug_print_symtab): Remove.
5599 (ada_main_name): New function.
5600 (ada_exception_breakpoint_type): New function.
5601 (is_known_support_routine): New function.
5602 (ada_find_printable_frame): Renamed from find_printable_frame and made
5604 Remove level parameter.
5605 Use new interface to select_frame.
5607 (begin_command): Remove.
5608 (ada_adjust_exception_stop): New function.
5609 (ada_print_exception_stop): New function.
5610 (exception_name_from_cond): New function.
5611 (ada_report_exception_break): Replace disabled code with
5612 conditionalization on GNAT_GDB.
5613 Get the exception name from the condition string.
5614 Remove and move functionality into new functions
5615 ada_print_exception_breakpoint_task and
5616 ada_print_exception_breakpoint_nontask.
5617 (error_breakpoint_runtime_sym_not_found): New function.
5618 (is_runtime_sym_defined): New function.
5619 (ada_breakpoint_rewrite): Uncomment suppressed code.
5620 Use symbolic error-message and runtime-symbol names.
5621 Surround runtime symbol names in quotes.
5622 Allow non-specific breakpoints on exceptions and assertions before
5625 (ada_is_tagged_type): Add parameter.
5626 (ada_is_tag_type): New function.
5627 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5628 (ada_variant_discrim_type): Ditto.
5629 (value_tag_from_contents_and_address): New function.
5630 (type_from_tag): New function.
5631 (struct tag_args): New structure used to communicate with
5633 (ada_tag_name_1): New function.
5634 (ada_tag_name): New function.
5636 (ada_scan_number): Update comment.
5637 (find_struct_field): New function.
5638 (ada_search_struct_field): Make static.
5639 (ada_value_struct_elt): New version that returns references when
5640 given pointers or references to structs.
5641 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5642 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5644 (ada_value_ind): Use new ada_to_fixed_value interface.
5645 (ada_coerce_ref): Ditto.
5646 (field_offset): Remove.
5648 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5649 (ada_find_renaming_symbol): New function.
5650 (ada_prefer_type): Prefer named types over unnamed ones.
5651 (variant_field_index): New function.
5652 (contains_variant_part): Removed: subsumed by variant_field_index.
5653 (ada_template_to_fixed_record_type): New function, mostly from
5654 template_to_fixed_record_type.
5655 (template_to_fixed_record_type):
5656 Do not scan the type fields beyond the last one; prevents a
5658 Handle case where variant field is listed BEFORE discriminant it
5660 Fix calculation of record length when bit length is
5661 not evenly divisible by char length.
5662 Move code to ada_template_to_fixed_record_type and call it.
5664 (template_to_static_fixed_type): Revise comment.
5665 Modify to work on ordinary record types as well as templates,
5666 so as to handle fields that use ___XVE or ___XVU encodings.
5667 (to_record_with_fixed_variant_part): Fill out comment.
5668 Initialize C++ stuff in right type.
5669 Allow case where DVAL is null.
5670 Handle case where variant field is not last.
5671 Fix typo concerning record length.
5672 (to_fixed_record_type): Decomment disabled code.
5673 (to_fixed_record_type): Use variant_field_index instead of
5674 contains_variant_part.
5675 (to_fixed_variant_branch_type): Ditto.
5676 (to_fixed_array_type): Decomment disabled code.
5677 (ada_to_fixed_type): Convert tagged types to the specific type.
5678 Deactivate the size-check for array types in order to avoid
5679 some false size alarms.
5680 (to_static_fixed_type): Decomment disabled code.
5681 Modify to call template_to_static_fixed_type
5682 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5683 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5684 Remove valaddr argument, as it is never really used.
5685 (ada_to_fixed_value): Change interface to act on single struct value*
5687 (adjust_pc_past_prologue): New function.
5688 (ada_attribute_name): Modify to take enum exp_opcode argument.
5690 (ada_enum_name): Recognize new homonym-distinguishing convention.
5691 Adjust local variable's type to remove compiler warning.
5692 Fix a small problem in the part that unqualifies the enumeration name.
5693 (ada_value_binop): New function.
5694 (ada_value_equal): New function.
5696 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5697 Don't give error message when not doing normal evaluation
5698 and a tagged type doesn't seem to contain a structure member.
5699 Give error message for packed arrays.
5700 For indexing arrays, handle pointers to packed arrays correctly.
5701 Handle case of 'first and 'last attributes of bare integral type
5702 without encoded subtype info.
5703 Remove some unnecessary casts.
5704 Fix uninitialized value of type in computing 'first, 'last, or 'length
5706 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5707 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5709 Attributes are now exp_opcode values.
5710 Correct treatment of 'modulus.
5711 Better error message for taking 'length of wrong kind of type;
5713 Change EVAL_NORMAL to noside for consistency.
5714 Use ada_value_binop for DIV, MOD, REM.
5715 Make special case out of array of length 0, since an argument
5716 of 0 upsets some platforms' malloc.
5717 Use OP_STRING instead of OP_ARRAY.
5718 For slice, add check that we have an array type before extracting
5719 a slice out of it. Avoids a SEGV.
5720 When evaluating an array slice, if the array type is a reference to
5721 an aligner type, then replace the aligner type by the actual type.
5722 Decomment disabled code.
5723 Remove some dead code.
5724 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5725 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5726 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5727 and UNOP_MBR to UNOP_IN_RANGE.
5728 If an array type has a parallel ___XVE type, then use it.
5729 Turn arrays into pointers for lvalue arrays.
5730 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5731 bounds error and handle 0-length slices.
5733 When selecting fields, apply ada_to_fixed_value (because the fields
5734 might have ___XVU or ___XVE encodings even if not dynamic.)
5735 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5736 (ada_is_system_address_type): New function.
5738 (get_var_value): Use new interface to ada_lookup_symbol_list.
5739 (get_int_var_value): New interface.
5740 (to_fixed_range_type): Allow unknown bound, with warning.
5741 (ada_is_modular_type): Decomment disabled code.
5742 (ADA_OPERATORS): New definition.
5743 (ada_operator_length): New function.
5744 (ada_expr_op_name): New function.
5745 (ada_forward_operator_length): New function.
5746 (ada_dump_subexp_body): New function.
5747 (ada_print_subexp): New function.
5748 (ada_exp_descriptor): New constant.
5749 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5750 (ada_language_defn): Add ada_exp_descriptor entry.
5751 Change ada_parse => parse.
5752 Add post-parser entry.
5753 Use ada-specific non-local symbol lookup.
5754 Don't use C-style arrays.
5755 String lower-bound is 1.
5756 Decomment disabled code.
5757 (parse): New function.
5758 New fields ada_translate_error_message, ada_lookup_symbol,
5759 ada_lookup_minimal_symbol.
5761 * ada-lang.h: Update copyright dates.
5762 Replace the mangle/demangle terminology throughout by the
5763 more appropriate encode/decode one.
5764 Include breakpoint.h.
5765 Forward declare struct partial_symbol, struct block.
5766 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5767 (EXTRACT_ADDRESS): Remove.
5768 (EXTRACT_INT): Remove.
5769 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5770 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5771 (MAX_RENAMING_CHAIN_LENGTH): Define.
5772 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5774 (enum task_states): Remove.
5775 ada_task_states: Remove.
5776 (fat_string): Remove.
5777 (struct entry_call): Remove.
5778 (struct task_fields): Remove.
5779 (struct task_entry): Remove.
5781 (struct ada_symbol_info): Define.
5782 (enum ada_attribute): Remove.
5783 (enum ada_operator): Define.
5785 (ada_get_field_index): Declare.
5786 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5787 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5788 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5789 (ada_lookup_symbol_list): New interface.
5790 (ada_decode_symbol): Declare.
5791 (ada_decode): Declare.
5792 (ada_lookup_symbol): New interface.
5793 (ada_update_initial_language): Declare.
5794 (ada_lookup_simple_minsym): Declare.
5795 (user_select_syms): New interface.
5796 (ada_sals_for_line): Declare.
5797 (ada_is_tagged_type): New interface.
5798 (ada_tag_name): Declare.
5799 (ada_lookup_struct_elt_type): Remove declaration.
5800 (ada_search_struct_field): Remove declaration.
5801 (ada_attribute_name): New interface.
5802 (ada_is_system_address_type): Declare.
5803 (ada_to_fixed_value): Remove declaration.
5804 (ada_template_to_fixed_record_type_1): Declare.
5805 (get_int_var_value): New interface.
5806 (ada_find_any_symbol): Declare.
5807 (ada_find_renaming_symbol): Declare.
5808 (ada_mangle): Rename to ada_encode.
5809 (ada_simple_renamed_entity): Remove const.
5810 (ada_main_name): Declare.
5811 (get_current_task): Rename to ada_get_current_task.
5812 (get_entry_number): Remove declaration.
5813 (ada_report_exception_break): Remove declaration.
5814 (ada_print_exception_breakpoint_nontask): Declare.
5815 (ada_print_exception_breakpoint_task): Declare.
5816 (ada_find_printable_frame): Declare.
5818 * ada-lex.l: Update copyright notices.
5819 Use xmalloc and xfree instead of malloc and free.
5820 Use new interface to name_lookup.
5821 Use new interface to
5822 ada_mangle=>ada_encode.
5823 Redo handling of '$...' variable to parallel current treatment
5825 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5826 digit_to_int, strtoulst, processInt, processReal, processId,
5827 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5830 (processInt): Use cast to remove harmless warning.
5831 (processReal): Modify to get rid of compiler warning on scan formats.
5833 (processId): Replace xmalloc with obstack_alloc for name and remove
5834 call to ada_name_string_cleanup.
5835 Remove obsolete disabled code.
5836 (name_lookup): Ditto.
5838 Use obsavestring on temp_parse_space instead of savestring
5839 on name, and remove call to ada_name_string_cleanup.
5840 Free string returned from ada_simple_renamed_entity.
5841 Use new interface to ada_lookup_symbol_list.
5842 Decomment disabled code.
5843 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5845 When a type name lookup succeeds as a result of
5846 lookup_primitive_typename, check for regular type entry that has not
5848 Limit length of chain of renamed symbols we are willing to follow.
5849 Do not break names beginning with "standard__" into segments.
5850 (block_lookup): Use new interface to ada_lookup_symbol_list.
5852 * ada-typeprint.c: Update copyright notice.
5853 (demangled_type_name): Rename to decoded_type_name.
5854 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5855 (print_range_bound): Correct handling of negative
5856 bounds that make the index type looked unsigned under STABS.
5857 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5858 (print_range_type_named): Use the builtin int type if no type
5859 corresponding to the given type name could be found.
5860 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5861 Add some bullet-proofing.
5862 (print_variant_clauses): Allow for variant branches with ___XVU
5863 encodings that are not dynamic fields.
5864 Use new interface to ada_is_tagged_type.
5865 (print_record_type): Allow for fields with ___XVE encodings that
5866 are not dynamic fields.
5867 Use new interface to ada_is_tagged_type.
5868 (ada_print_type): ada_is_array_descriptor =>
5869 ada_is_array_descriptor_type.
5871 * ada-valprint.c: Update copyright notice.
5872 Include gdb_string.h
5874 (ui_memcpy): New function.
5875 (ada_print_floating): New function.
5876 (ada_print_str): Order arguments correctly.
5877 Correct handling of empty arrays and arrays of 0-length items.
5878 ada_is_array_descriptor => ada_is_array_descriptor_type
5879 Print values of type System.Address in hexadecimal format.
5880 Use ada_print_floating to print floating-point numbers in Ada format.
5881 Print class tag values with type names.
5882 No longer print the address of reference values. Avoids
5883 a potential confusion.
5884 (ada_value_print): Stop printing the object type for reference
5885 values, but preserve that behavior for access types. Avoids
5886 a potential confusion.
5887 Simplify one conditional expression, as the first part is now
5889 ada_is_array_descriptor => ada_is_array_descriptor_type
5890 Add check for arrays for null records, and print them by hand.
5892 2004-06-01 Jim Blandy <jimb@redhat.com>
5894 * ppc-tdep.h: Delete unused 'regoff' member.
5895 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5897 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5900 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5901 (hpread_read_struct_type): Likewise.
5903 2004-06-01 Andrew Cagney <cagney@gnu.org>
5905 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5906 instead of xasprintf.
5907 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5908 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5909 (mi_cmd_data_list_register_names)
5910 (mi_cmd_data_list_changed_registers)
5911 (mi_cmd_data_list_register_values)
5912 (get_register, mi_cmd_data_write_register_values)
5913 (mi_cmd_data_write_register_values)
5914 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5915 (mi_cmd_target_download, mi_cmd_target_select)
5916 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5917 (mi_execute_cli_command, mi_execute_async_cli_command)
5918 (mi_execute_async_cli_command): Ditto.
5919 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5920 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5922 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5923 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5924 error_last_message instead of mi_error_last_message.
5925 * mi/mi-main.c (mi_error_last_message): Delete function.
5927 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5928 "invalid number of columns" error. Delete redundant "out of
5931 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5933 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5934 (gregset_t, fpregset_t): Remove typedefs.
5935 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5936 (REG_OFFSET): Rename argument.
5937 (i386bsd_r_reg_offset): Rename from reg_offset.
5938 (REG_ADDR): Remove macro.
5939 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5941 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5942 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5943 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5944 instead of supply_gregset.
5945 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5946 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5947 instead of fill_gregset.
5948 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5950 * i386bsd-nat.c: Don't include "gregset.h".
5951 (supply_gregset, fill_gregset): Make static.
5952 (supply_fpregset, fill_fpregset): Remove.
5953 * Makefile.in (i386bsd-nat.o): Update dependencies.
5955 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5957 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5958 "gdb_assert.h". Con't include "gregset.h".
5959 (fbsd_make_corefile_notes): Use regset-based core file support
5960 instead off fill_gregset and fill_fpregset.
5961 * Makefile.in (fbsd-proc.o): Update dependencies.
5963 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5965 (m88k_frame_prev_register): Simplify code a bit.
5967 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5968 (amd64_collect_fpregset): New function.
5969 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5971 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5973 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5974 (i386_collect_gregset): New function.
5975 (i386_supply_fpregset): Adjust comment.
5976 (i386_collect_fpregset): New function.
5977 (i386_regset_from_core_section): Use i386_collect_gregset and
5978 i386_collect_fpregset.
5980 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5981 handle VALUEP being null.
5983 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5985 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5987 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5989 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5990 assembler in OpenBSD 3.5-current.
5991 (amd64obsd_sigcontext_addr): Likewise.
5993 2004-05-28 Jim Blandy <jimb@redhat.com>
5995 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5996 register set, so our regcache isn't declared "legacy" and our E500
5997 pseudoregister read and write functions aren't ignored.
5998 (rs6000_register_byte, rs6000_register_raw_size,
5999 rs6000_register_virtual_type, rs6000_register_convertible,
6000 rs6000_register_convert_to_virtual,
6001 rs6000_register_convert_to_raw): Deleted.
6002 (rs6000_register_type, rs6000_convert_register_p,
6003 rs6000_register_to_value, rs6000_value_to_register): New
6005 (rs6000_gdbarch_init): Don't register
6006 gdbarch_deprecated_register_size,
6007 gdbarch_deprecated_register_bytes,
6008 gdbarch_deprecated_register_byte,
6009 gdbarch_deprecated_register_raw_size,
6010 gdbarch_deprecated_register_virtual_type,
6011 gdbarch_deprecated_register_convertible,
6012 gdbarch_deprecated_register_convert_to_virtual, or
6013 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6014 register gdbarch_register_type, gdbarch_convert_register_p,
6015 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6017 2004-05-26 Jim Blandy <jimb@redhat.com>
6019 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6020 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6021 functions, updated to match the register numberings used in GCC.
6022 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6023 rs6000_dwarf2_reg_to_regnum as register number conversions
6024 functions for STABS and Dwarf2.
6026 2004-05-26 Randolph Chung <tausq@debian.org>
6028 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6031 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6033 * NEWS: Document new "start" command.
6035 2004-05-25 Randolph Chung <tausq@debian.org>
6037 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6040 2004-05-25 Randolph Chung <tausq@debian.org>
6042 * hppa-hpux-tdep.c (offsetof): Define.
6043 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6044 (hppa32_hpux_frame_base_before_sigtramp)
6045 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6046 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6047 (hppa64_hpux_frame_base_before_sigtramp)
6048 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6050 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6051 (hppa_hpux_sigtramp_frame_unwind_cache)
6052 (hppa_hpux_sigtramp_frame_this_id)
6053 (hppa_hpux_sigtramp_frame_prev_register)
6054 (hppa_hpux_sigtramp_frame_unwind)
6055 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6056 (hppa_hpux_init_abi): Register sigtramp unwinder.
6057 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6059 2004-05-25 Randolph Chung <tausq@debian.org>
6061 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6062 and multiple stack unwinds.
6063 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6065 2004-05-25 Andrew Cagney <cagney@gnu.org>
6067 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6068 * symfile-mem.h: Delete file.
6069 * symfile-mem.c: Do not include "symfile-mem.h".
6070 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6071 "struct bfd_section". When an error do not bother returning NULL.
6072 (add_symbol_file_from_memory_command): Use "struct bfd" and
6073 "struct bfd_section".
6074 * Makefile.in (symfile_mem_h): Delete.
6075 (symfile-mem.o): Update dependencies.
6077 2004-05-25 Nick Roberts <nickrob@gnu.org>
6079 * gdb-mi.el: New file.
6081 2004-05-25 Andrew Cagney <cagney@gnu.org>
6083 * inftarg.c: Include "observer.h".
6084 (child_attach, child_create_inferior): Notify inferior_created.
6085 * corelow.c: Include "observer.h".
6086 (core_open): Notify inferior_created.
6087 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6089 2004-05-25 Andrew Cagney <cagney@gnu.org>
6091 * target.h (struct target_ops): Add from_tty to
6093 (target_create_inferior, find_default_create_inferior): Update.
6094 * infcmd.c (run_command): Update.
6095 * wince.c (child_create_inferior): Update.
6096 * win32-nat.c (child_create_inferior): Update.
6097 * uw-thread.c (uw_thread_create_inferior): Update.
6098 * thread-db.c (thread_db_create_inferior): Update.
6099 * target.c (debug_to_create_inferior)
6100 (find_default_create_inferior): Update.
6101 (maybe_kill_then_create_inferior): Update.
6102 * sol-thread.c (sol_thread_create_inferior): Update.
6103 * remote.c (extended_remote_async_create_inferior)
6104 (extended_remote_create_inferior): Update.
6105 * remote-vx.c (vx_create_inferior): Update.
6106 * remote-st.c (st2000_create_inferior): Update.
6107 * remote-sim.c (gdbsim_create_inferior): Update.
6108 * remote-sds.c (sds_create_inferior): Update.
6109 * remote-rdp.c (remote_rdp_create_inferior): Update.
6110 * remote-rdi.c (arm_rdi_create_inferior): Update.
6111 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6112 * remote-e7000.c (e7000_create_inferior): Update.
6113 * procfs.c (procfs_create_inferior): Update.
6114 * ocd.c (ocd_create_inferior): Update.
6115 * ocd.h (ocd_create_inferior): Update.
6116 * nto-procfs.c (procfs_create_inferior): Update.
6117 * monitor.c (monitor_create_inferior): Update.
6118 * lin-lwp.c (lin_lwp_create_inferior): Update.
6119 * inftarg.c (child_create_inferior): Update.
6120 * hpux-thread.c (hpux_thread_create_inferior): Update.
6121 * gnu-nat.c (gnu_create_inferior): Update.
6123 2004-05-25 Andrew Cagney <cagney@gnu.com>
6125 * MAINTAINERS: Update e-mail address.
6127 2004-05-24 Randolph Chung <tausq@debian.org>
6129 * thread.c (info_threads_command, thread_apply_all_command)
6130 (thread_apply_command, thread_command, do_captured_thread_select):
6131 Remove HPUXHPPA-specific code.
6133 2004-05-24 Randolph Chung <tausq@debian.org>
6135 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6137 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6140 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6142 * infcmd.c (kill_if_already_running): New function, extracted
6144 (run_command): Replace extracted code by call to
6145 kill_if_already_running().
6146 (start_command): New function.
6147 (_initialize_infcmd): Add "start" command.
6149 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6151 Add OpenBSD/m88k support.
6152 * NEWS (New native configurations): Mention OpenBSD/m88k.
6153 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6154 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6155 * Makefile.in (m88k_tdep_h): New variable.
6156 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6157 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6158 * configure.host: Add m88*-*-openbsd*.
6159 * configure.tgt: Add m88*-*-openbsd*.
6161 2004-05-24 Jim Blandy <jimb@redhat.com>
6163 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6166 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6168 * symtab.c (fixup_section): Search section table when lookup by
6171 2004-05-24 Randolph Chung <tausq@debian.org>
6173 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6176 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6178 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6179 register number in regcache_raw_collect call.
6180 (m68kbsd_collect_fpregset): Likewise.
6181 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6183 * regset.h (struct regset): Add back `regset' member.
6185 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6187 * configure.in: Check for td_pcb in `struct thread'.
6188 * configure, config.in: Regenerated.
6190 * dpx2-nat.c: Remove file.
6191 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6192 (dpx2-nat.o): Remove dependencies.
6194 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6195 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6196 (amd64obsd_supply_pcb): New function.
6197 (_initialize_amd64obsd_nat): Enable libkvm interface.
6198 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6199 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6200 (LOADLIBES): New variable.
6202 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6203 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6204 (sparc32nbsd_supply_pcb): New function.
6205 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6206 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6207 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6208 (LOADLIBES): New variable.
6210 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6212 * bsd-kvm.c, bsd-kvm.h: New files.
6213 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6215 (i386fbsd_supply_pcb): New function.
6216 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6217 (i386fbsd-nat.o): Update dependencies.
6218 (bsd_kvm_h): New variable.
6219 (bsd-kvm.o): New dependency.
6220 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6221 (LOADLIBES): New variable.
6223 * regset.c: Tweak comment.
6224 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6226 * regset.h: Update copyright year.
6227 (struct regset): Remove `descr' member, add `gdbarch' member.
6228 (regset_alloc): Adjust prototype and comment.
6229 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6230 (i386_supply_fpregset): Likewise.
6231 (i386_regset_from_core_section): Update call to regset_alloc.
6232 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6234 (i386obsd_aout_regset_from_core_section): Update call to
6236 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6238 (i386nbsd_aout_regset_from_core_section): Update call to
6240 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6242 (amd64_regset_from_core_section): Update call to regset_alloc.
6243 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6245 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6246 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6247 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6248 (sparc32nbsd_init_abi): Update call to regset_alloc.
6249 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6250 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6251 (sparc64obsd_init_abi): Update call to regset_alloc.
6252 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6253 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6254 (sparc64nbsd_init_abi): Update call to regset_alloc.
6255 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6256 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6257 (sparc64fbsd_init_abi): Update call to regset_alloc.
6259 2004-05-22 Jim Blandy <jimb@redhat.com>
6261 * ppc-tdep.h (spe_register_p): New declaration.
6262 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6264 * rs6000-tdep.c (spe_register_p): New function.
6265 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6267 (rs6000_gdbarch_init): Initialize the new members of the tdep
6270 2004-05-21 Jim Blandy <jimb@redhat.com>
6272 * ppc-linux-nat.c (fetch_register): Move code back to be next
6273 to the comment that describes it. (Moved code, instead of
6274 comment, for symmetry with store_register.)
6276 Allocate regset structures in the gdbarch's obstack, not using
6278 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6279 Add 'arch' argument. Allocate the regset on arch's obstack, not
6281 * regset.h (regset_alloc): Update declaration.
6282 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6284 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6285 * i386-tdep.c (i386_regset_from_core_section): Same.
6286 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6287 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6288 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6289 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6290 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6291 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6293 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6295 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6297 2004-05-21 Jim Blandy <jimb@redhat.com>
6299 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6300 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6302 2004-05-20 Jim Blandy <jimb@redhat.com>
6304 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6306 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6308 * regset.h: Make prototype const-correct.
6309 * regset.c (regset_xmalloc): Make const-correct.
6311 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6313 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6314 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6315 (symbol_search_name): Declare.
6317 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6318 (iter_name_next_hashed): Ditto.
6319 (iter_name_next_linear): Ditto.
6320 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6322 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6323 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6324 (symbol_search_name): New function.
6326 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6328 * minsyms.c (build_minimal_symbol_hash_tables): Change
6329 test for adding to demangled hash table to check for difference
6330 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6332 2004-05-19 Jim Blandy <jimb@redhat.com>
6334 Use a constructor function to create regset structures.
6335 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6336 (struct regset): Use supply_regset_ftype. Add new
6337 'collect_regset' member.
6338 (regset_xmalloc): New declaration.
6339 * regset.c: New file.
6340 * am64-tdep.c (amd64_regset_from_core_section): Use
6341 regset_xmalloc to construct regset structures.
6342 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6343 * i386-tdep.c (i386_regset_from_core_section): Same.
6344 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6345 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6346 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6347 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6348 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6349 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6350 * Makefile.in (COMMON_OBS): Add regset.o.
6351 (regset.o): New rule.
6353 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6355 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6356 and pthread_cond_wait.c.
6358 2004-05-18 Jim Blandy <jimb@redhat.com>
6360 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6361 before the mach-specific switch, and then let the individual cases
6362 override the defaults, rather than leaving them uninitialized
6363 until the switch and then setting them in each case.
6365 2004-05-18 Randolph Chung <tausq@debian.org>
6367 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6368 millicode functions.
6370 2004-05-18 Randolph Chung <tausq@debian.org>
6372 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6373 references to dld_flags_buffer consistent.
6375 2004-05-18 Randolph Chung <tausq@debian.org>
6377 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6378 it for unwinding the stack.
6380 2004-05-18 Randolph Chung <tausq@debian.org>
6382 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6383 Undefine these so we can overide them using gdbarch.
6385 2004-05-18 Randolph Chung <tausq@debian.org>
6387 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6388 handling for 64-bit HPUX (elf).
6390 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6392 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6394 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6395 * ia64-tdep.c (examine_prologue): Likewise.
6396 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6397 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6399 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6401 * vax-tdep.c (vax_return_value): Implement
6402 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6404 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6406 * vax-tdep.c (vax_return_value): Fix typo.
6408 2004-05-17 Andrew Cagney <cagney@redhat.com>
6410 * MAINTAINERS: Mark Salter was also responsible for
6413 * NEWS: Mention signal fixes.
6415 2004-05-17 Randolph Chung <tausq@debian.org>
6417 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6418 check to see if we are unwinding an export stub. Export stubs clobber
6419 the %rp in the call path and stores the original rp in a stack slot.
6421 2004-05-17 Jim Blandy <jimb@redhat.com>
6423 * MAINTAINERS: Update address for J.T. Conklin.
6425 2004-05-17 Randolph Chung <tausq@debian.org>
6427 * hppa-tdep.c: Remove superfluous #include's.
6428 * Makefile.in (hppa-tdep.o): Update dependencies.
6430 2004-05-17 Randolph Chung <tausq@debian.org>
6432 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6433 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6434 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6435 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6436 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6437 Remove static function declarations.
6439 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6441 * alphabsd-nat.c: Update copyright year.
6442 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6444 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6447 * m68k-tdep.c (m68k_svr4_return_value): Implement
6448 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6450 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6452 * sol-thread.c Update copyright year. Fix various coding
6453 standards violations. Tweak a few comments.
6454 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6457 2004-05-15 Randolph Chung <tausq@debian.org>
6459 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6460 as pointer instead of array reference since HPUX compiler does
6461 not accept unsized array arguments.
6462 * somsolib.c (dld_flags_buffer): Use constant array size.
6464 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6466 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6467 offset with decimal offset.
6468 (amd64obsd_sigcontext_addr): Return correct address for entire
6471 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6472 instead of get_frame_base.
6474 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6475 (fill_gregset): Use regcache_raw_collect.
6477 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6480 * config/sparc/tm-nbsd64.h: Remove file.
6481 * config/tm-sunos.h: Remove file.
6483 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6485 * rs6000-tdep.c (store_param_on_stack_p): New function,
6486 an improved version of some code extracted from skip_prologue().
6487 (skip_prologue): Use store_param_on_stack_p() to detect
6488 instructions saving a parameter on the stack. Detect when r0
6489 is used to save a parameter.
6490 Do not mark "li rx, SIMM" instructions as part of the prologue,
6491 unless the following instruction is also part of the prologue.
6493 2004-05-14 Andrew Cagney <cagney@redhat.com>
6495 * infrun.c (handle_inferior_event): Simplify
6496 STEP_OVER_UNDEBUGGABLE.
6498 * infrun.c (handle_step_into_function): Delete function.
6499 (handle_inferior_event): Inline calls to
6500 handle_step_into_function.
6502 2004-05-14 Jerome Guitton <guitton@gnat.com>
6504 * rs6000-nat.c: Fix a comment.
6506 2004-05-12 David Anderson <davea@sgi.com>
6508 Committed by Jim Blandy <jimb@redhat.com>:
6509 * regcache.c (struct regcache_descr): fix comment spelling.
6511 2004-05-13 J. Brobecker <brobecker@gnat.com>
6513 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6514 Fixes a link link failure.
6516 2004-05-13 J. Brobecker <brobecker@gnat.com>
6518 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6519 error that was causing the build to fail.
6521 2004-05-13 J. Brobecker <brobecker@gnat.com>
6523 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6524 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6526 2004-05-13 Andrew Cagney <cagney@redhat.com>
6528 * infrun.c (handle_inferior_event): Check for
6529 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6530 calls. Update comments.
6532 2004-05-13 Jim Blandy <jimb@redhat.com>
6534 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6535 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6536 (store_regs_user_thread, store_regs_kernel_thread): Use
6537 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6538 * ppc-linux-nat.c (fill_gregset): Same.
6539 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6540 (ppc_linux_sigtramp_cache): Same.
6541 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6542 (ppcnbsd_sigtramp_cache_init): Same.
6543 * rs6000-nat.c (fetch_core_registers): Same.
6544 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6545 (rs6000_frame_cache): Same.
6547 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6548 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6549 of assuming that the gprs are numbered starting with zero.
6550 * ppc-linux-nat.c (fill_gregset): Same.
6551 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6552 * ppcnbsd-nat.c (getregs_supplies): Same.
6553 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6554 * rs6000-nat.c (fetch_core_registers): Same.
6555 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6557 2004-05-07 Michael Snyder <msnyder@redhat.com>
6559 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6560 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6562 2004-05-13 Andrew Cagney <cagney@redhat.com>
6564 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6566 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6568 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6569 base_address for shared libraries.
6571 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6573 * MAINTAINERS (write after approval): Add myself.
6575 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6577 * breakpoint.c (bpstat_stop_status): Add new argument
6578 STOPPED_BY_WATCHPOINT. Use it instead of testing
6579 target_stopped_data_address agaist 0 to check whether
6580 or not we stopped due to a hardware watchpoint.
6581 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6582 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6585 2004-05-12 Jim Blandy <jimb@redhat.com>
6587 * configure.in: When checking whether we should use the -bbigtoc
6588 option, don't forget to restore the original value of LDFLAGS.
6589 * configure: Regenerated.
6591 2004-05-12 Andrew Cagney <cagney@redhat.com>
6593 * thread.c (load_infrun_state): Delete step_sp.
6594 * infrun.c (context_switch): Ditto.
6595 * inferior.h (step_sp): Ditto.
6596 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6597 * gdbthread.h (struct thread_info, save_infrun_state)
6598 (restore_infrun_state): Ditto.
6600 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6602 * MAINTAINERS (write after approval): Add myself.
6604 2004-05-12 Andrew Cagney <cagney@redhat.com>
6606 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6607 eliminate reference to step_sp.
6608 (struct execution_control_state, init_execution_control_state)
6609 (handle_inferior_event, keep_going): Delete update_step_sp and
6611 * infcmd.c (step_sp): Note that variable is unused.
6613 2004-05-11 Andrew Cagney <cagney@redhat.com>
6615 * infrun.c (step_over_function): Delete function.
6616 (handle_step_into_function): Use insert_step_resume_breakpoint.
6617 (insert_step_resume_breakpoint): Fix assertion.
6619 2004-05-11 Nick Roberts <nickrob@gnu.org>
6621 * utils.c (defaulted_query): Just use the normal query input type
6622 when printing the annotations.
6624 2004-05-11 Andrew Cagney <cagney@redhat.com>
6626 * infrun.c (handle_inferior_event): Simplify code handling
6627 step-into or return-from a signal trampoline.
6629 2004-05-11 Andrew Cagney <cagney@redhat.com>
6631 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6632 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6634 2004-05-10 Jim Blandy <jimb@redhat.com>
6636 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6637 with a call to internal_error.
6639 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6640 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6641 processor variant lacks those registers.
6642 (ppc_floating_point_unit_p): Change description to make it clear
6643 that this returns info about the ISA, not the ABI.
6644 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6645 return true or false by checking tdep->ppc_fp0_regnum and
6646 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6647 arch/mach switching done in rs6000_gdbarch_init; it's better to
6648 keep that logic there, and just check the results here.
6649 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6650 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6651 floating-point registers.
6652 (ppc_supply_fpregset, ppc_collect_fpregset)
6653 (rs6000_push_dummy_call, rs6000_extract_return_value)
6654 (rs6000_store_return_value): Assert that we have floating-point
6656 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6657 (rs6000_frame_cache): Don't note the locations at which
6658 floating-point registers were saved if we have no fprs.
6659 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6661 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6662 (store_regs_user_thread, store_regs_kernel_thread): Only call
6663 supply_fprs / fill_fprs if we actually have floating-point
6665 (special_register_p): Check ppc_fpscr_regnum before matching
6667 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6668 supply / collect fpscr if we don't have it.
6669 * ppc-bdm.c: #include "gdb_assert.h".
6670 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6671 have floating-point registers, since I can't test this code on
6672 FP-free systems to adapt it.
6673 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6674 fpscr and floating point register numbers if they don't exist.
6675 (fetch_register): Assert that we have floating-point registers
6676 before we reach the code that handles them.
6677 (store_register): Same. And use tdep instead of calling
6679 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6681 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6682 fprs and fpscr if we don't have them.
6683 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6685 * ppcnbsd-nat.c: #include "gdb_assert.h".
6686 (getfpregs_supplies): Assert that we have floating-point registers.
6687 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6688 * ppcobsd-tdep.c: #include "gdb_assert.h".
6689 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6690 have floating-point registers.
6691 * rs6000-nat.c (regmap): Don't match against the fpscr and
6692 floating point register numbers if they don't exist.
6693 (fetch_inferior_registers, store_inferior_registers,
6694 fetch_core_registers): Only fetch / store / supply the
6695 floating-point registers and the fpscr if we have them.
6696 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6697 (ppcobsd-tdep.o): Update dependencies.
6699 2004-05-10 Andrew Cagney <cagney@redhat.com>
6701 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6702 (context_switch): Do not switch through_sigtramp_breakpoint.
6703 * gdbthread.h (save_infrun_state, load_infrun_state)
6704 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6705 and structure member.
6706 * thread.c (load_infrun_state, save_infrun_state): Update.
6708 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6710 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6712 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6714 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6716 * aclocal.m4: Regenerate.
6718 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6720 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6722 2004-05-10 Andrew Cagney <cagney@redhat.com>
6724 * infrun.c (check_sigtramp2): Delete function.
6725 (handle_inferior_event): When single stepping, and taking a
6726 signal, set a breakpoint at the signal return address. Delete
6727 redundant calls to check_sigtramp2.
6728 (insert_step_resume_breakpoint): New function.
6729 (through_sigtramp_breakpoint, handle_inferior_event)
6730 (follow_exec, wait_for_inferior, fetch_inferior_event)
6731 (currently_stepping, keep_going): Delete most uses of
6732 through_sigtramp_breakpoint, not that it should be deleted.
6733 (delete_breakpoint_current_contents): Delete function.
6735 2004-05-10 Randolph Chung <tausq@debian.org>
6737 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6739 * config/pa/tm-linux.h: New file.
6741 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6743 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6744 of prefixes. Don't print the prefix twice in the CLI.
6746 2004-05-10 Jim Blandy <jimb@redhat.com>
6748 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6749 collect all the gprs.
6751 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6752 loop collecting gprs.
6754 2004-05-09 Andrew Cagney <cagney@redhat.com>
6756 * remote-vx.c (net_step): Delete step-range code.
6757 * remote.c (remote_resume, init_all_packet_configs)
6758 (set_remote_protocol_E_packet_cmd)
6759 (show_remote_protocol_E_packet_cmd)
6760 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6761 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6762 (show_remote_protocol_e_packet_cmd): Ditto.
6764 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6766 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6768 * hppa-tdep.h: Update copyright year.
6769 (struct trad_frame_saved_reg): Add opaque declaration.
6771 * amd64-tdep.c (amd64_return_value): Implement
6772 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6774 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6775 (m68k_value_to_register): New functions.
6776 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6779 * defs.h (enum return_value_convention): Add
6780 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6781 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6782 * infcmd.c (legacy_return_value): New function.
6783 (print_return_value): Rwerite to implement
6784 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6785 * values.c (using_struct_return): Check for inequality to
6786 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6787 RETURN_VALUE_STRUCT_CONVENTION.
6788 * i386-tdep.c (i386_return_value): Implement
6789 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6791 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6792 include "symtab.h", "opcode/vax.h" and "inferior.h".
6793 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6794 to read_memory_unsigned_integer.
6795 (vax_gdbarch_init): Reorder.
6796 (_initialize_vax_tdep): Spell out prototype.
6797 * Makefile.in (vax-tdep.o): Update dependencies.
6799 2004-05-08 Andrew Cagney <cagney@redhat.com>
6801 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6802 * target.c (target_detach, target_disconnect): Ditto.
6804 * infcall.c (call_function_by_hand): When no
6805 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6806 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6807 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6808 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6809 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6811 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6812 * gdbarch.h, gdbarch.c: Re-generate.
6813 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6814 deprecated_fix_call_dummy.
6815 * v850-tdep.c (v850_gdbarch_init): Ditto.
6816 * infcall.c (call_function_by_hand): Do not call
6817 DEPRECATED_FIX_CALL_DUMMY.
6819 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6820 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6821 * gdbarch.h, gdbarch.c: Re-generate.
6822 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6823 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6824 deprecated_sizeof_call_dummy_words.
6825 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6827 * v850-tdep.c (v850_gdbarch_init): Ditto.
6828 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6829 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6830 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6831 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6832 * arch-utils.h (legacy_call_dummy_words)
6833 (legacy_sizeof_call_dummy_words): Delete declarations.
6834 * arch-utils.c (legacy_call_dummy_words)
6835 (legacy_sizeof_call_dummy_words): Delete variables.
6837 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6838 * gdbarch.h, gdbarch.c: Re-generate.
6839 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6840 * infcall.c (call_function_by_hand): Eliminate call to
6841 DEPRECATED_PUSH_DUMMY_FRAME.
6842 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6844 (ns32k_push_dummy_frame): Delete function.
6846 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6847 deprecated_call_dummy_breakpoint_offset or
6848 deprecated_call_dummy_start_offset.
6849 * dummy-frame.c, arm-tdep.c: Update comments.
6850 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6851 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6852 * gdbarch.h, gdbarch.c: Re-generate.
6854 * infcall.c (legacy_push_dummy_code): Delete function.
6855 (push_dummy_code): Delete call.
6857 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6858 * gdbarch.h, gdbarch.c: Re-generate.
6859 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6860 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6861 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6862 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6864 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6865 (struct frame_info): Delete opaque declaration.
6866 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6867 * frame.c (get_frame_type): Delete call.
6869 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6871 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6872 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6874 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6876 * alphanbsd-tdep.c: Include "gdb_string.h".
6877 * armnbsd-tdep.c: Update copyright year.
6878 Include "gdb_string.h".
6879 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6882 * delta68-nat.c: Remove file.
6883 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6884 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6885 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6886 (delta68-nat.o): Remove dependency.
6888 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6890 (m68k_gdbarch_init): Don't set
6891 deprecated_frameless_function_invocation.
6893 2004-05-07 Randolph Chung <tausq@debian.org>
6895 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6896 read_memory_nobpt for code reading when doing frame unwinding.
6897 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6899 2004-05-07 Randolph Chung <tausq@debian.org>
6901 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6902 instead of sp, handle sigaltstack case.
6903 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6904 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6905 signal handler and not that of the caller.
6906 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6907 hppa_linux_sigtramp_find_sigcontext.
6909 2004-05-07 Randolph Chung <tausq@debian.org>
6911 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6913 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6914 * hppa-linux-nat.c (fetch_register, store_register): Define.
6915 (fetch_inferior_registers, store_inferior_registers): Define.
6916 (supply_gregset): Add comment and clean up some unneeded code.
6917 (fill_gregset): Add comment and fix so that it saves registers in
6918 the right place in the gregset.
6919 (fill_fpregset): Fix buffer overrun problem.
6920 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6922 2004-05-07 Randolph Chung <tausq@debian.org>
6924 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6925 do common handling of the pcoqt register.
6926 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6927 to use helper function.
6928 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6929 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6930 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6931 generic fallback unwinder when all else fails.
6932 (hppa_gdbarch_init): Add fallback sniffer.
6933 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6934 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6935 to use helper function.
6937 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6939 * config/djgpp/fnchange.lst: Add translation rules for
6940 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6942 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6944 * frame.c (get_prev_frame_1): Work around GCC bug.
6945 * frame.h: Add comment about GCC bug.
6947 2004-05-07 Andrew Cagney <cagney@redhat.com>
6949 * observer.c: Include "commands.h" and "gdbcmd.h".
6950 (observer_debug, _initialize_observer): Add the
6951 command "set/show debug observer".
6952 * observer.sh: When observer debugging, log notify calls.
6953 * Makefile.in (observer.o): Update dependencies.
6955 2004-05-07 Jason Molenda (jmolenda@apple.com)
6957 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6959 2004-05-07 Jim Blandy <jimb@redhat.com>
6961 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6962 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6963 to recognize gpr regnums, instead of assuming that
6964 tdep->ppc_fp0_regnum marks the end of the general-purpose
6967 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6968 the given architecture has floating-point registers.
6970 2004-05-07 Andrew Cagney <cagney@redhat.com>
6972 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6974 * gdbarch.h, gdbarch.c: Re-generate.
6975 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6976 deprecated_use_generic_dummy_frames.
6978 2004-05-07 Brian Ford <ford@vss.fsi.com>
6980 * NEWS: Mention Cygwin DWARF 2 support.
6982 2004-05-07 Andrew Cagney <cagney@redhat.com>
6984 * objfiles.h (struct entry_info): Delete unused fields
6985 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6986 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6987 * mipsread.c (mipscoff_symfile_read): Update.
6988 * mdebugread.c (parse_partial_symbols): Update.
6989 * dwarfread.c (read_file_scope): Update.
6990 * dwarf2read.c (read_file_scope): Update.
6991 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6992 * coffread.c (complete_symtab): Update.
6994 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6996 * infcall.c (_initialize_infcall): Fix typo.
6998 2004-05-07 Andrew Cagney <cagney@redhat.com>
7000 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7001 * command.h (add_setshow_zinteger_cmd): Declare.
7003 2004-05-06 Randolph Chung <tausq@debian.org>
7005 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7006 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7007 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7008 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7009 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7010 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7011 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7013 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7014 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7015 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7016 (hppa64_hpux_frame_find_saved_regs_in_sig)
7017 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7018 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7019 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7020 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7021 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7022 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7023 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7024 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7025 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7026 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7027 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7028 (hppa32_register_type, hppa_cannot_store_register)
7029 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7030 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7031 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7032 * pa64solib.c (pa64_solib_have_load_event)
7033 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7034 (pa64_solib_unloaded_library_pathname): Likewise.
7035 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7036 (som_solib_library_pathname): Likewise.
7038 2004-05-05 Jim Ingham <jingham@apple.com>
7040 * breakpoint.c (create_breakpoints): Copy the ignore count and
7041 thread id over from the pended breakpoint to the actual
7044 2004-05-05 Andrew Cagney <cagney@redhat.com>
7046 * gdbarch.sh (PARM_BOUNDARY): Delete.
7047 gdbarch.h, gdbarch.c: Re-generate.
7048 * valops.c (PARM_BOUNDARY): Delete macro.
7049 (value_push): Delete PARM_BOUNDARY code.
7050 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7052 2004-05-04 Jim Blandy <jimb@redhat.com>
7054 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7055 Don't assume that the gprs, fprs, and UISA sprs are
7056 contiguous, start at register number zero, and end with fpscr.
7057 Instead, use the numbers from the tdep structure.
7059 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7060 should no longer be used in code specific to the RS6000 and its
7062 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7063 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7064 tdep->ppc_fp0_regnum.
7065 (ppc_supply_fpregset, ppc_collect_fpregset)
7066 (rs6000_push_dummy_call, rs6000_extract_return_value)
7067 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7068 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7070 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7071 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7073 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7074 bdm_ppc_store_registers): Same.
7075 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7076 (store_register, fill_fpregset): Same.
7077 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7078 (ppc_linux_supply_fpregset): Same.
7079 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7080 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7082 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7083 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7084 ppc64_sysv_abi_return_value): Same.
7085 * rs6000-nat.c (regmap, fetch_inferior_registers)
7086 (store_inferior_registers, fetch_core_registers): Same.
7088 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7090 * m68knbsd-nat.c: Remove file.
7091 * m68knbsd-tdep.c: Remove file.
7092 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7094 * configure.host: Add m68k-*-netbsdelf*.
7095 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7096 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7097 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7099 * config/m68k/nbsdelf.mh: New file.
7100 * config/m68k/nbsd.mt: New file.
7101 * config/m68k/nbsdaout.mt: Remove file.
7102 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7103 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7104 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7105 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7106 (use_struct_convention): Remove prototype.
7107 (USE_STRUCT_CONVENTION): Remove define.
7108 * config/m68k/xm-nbsd.h: Remove file.
7110 2004-05-04 Michael Snyder <msnyder@redhat.com>
7112 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7113 reg_struct_return method (as gcc usually does for cross targets).
7115 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7117 Committed by Andrew Cagney.
7118 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7119 alignment padding when accessing ucontext struct members.
7121 2004-05-04 Jim Blandy <jimb@redhat.com>
7123 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7124 'ppc_gplast_regnum' member.
7125 (ppc_num_gprs): New enum constant.
7126 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7127 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7128 * rs6000-nat.c (regmap, fetch_inferior_registers,
7129 store_inferior_registers): Same.
7130 * rs6000-tdep.c (e500_pseudo_register_read)
7131 (e500_pseudo_register_write): Same.
7132 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7134 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7135 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7136 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7137 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7139 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7141 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7142 * rs6000-nat.c (regmap, fetch_inferior_registers)
7143 (store_inferior_registers): Same.
7145 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7148 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7150 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7151 failure detected by recent versions of GCC.
7152 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7153 to be consistent with the usage in dwarf2_create_include_psymtab.
7155 2004-05-03 Michael Snyder <msnyder@redhat.com>
7157 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7158 (heuristic_proc_start): Whitespace cleanup.
7160 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7162 * sun3-nat.c: Remove file.
7163 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7165 (ALLDEPFILES): Remove sun3-nat.c.
7166 (sun3-nat.o): Remove dependencies.
7168 * i386-interix-nat.c, i386-interix-tdep.c,
7169 config/i386/nm-interix.h, config/i386/interix.mh,
7170 config/i386/interix.mt: Remove files.
7171 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7174 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7176 * m68k-tdep.h (struct gdbarch_tdep): Add member
7177 struct_value_regnum.
7178 (m68k_svr4_init_abi): New prototype.
7179 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7180 different calling conventions.
7181 (m68k_extract_return_value): Remove code dealing with single-field
7183 (m68k_store_return_value): Remove code dealing with single-field
7184 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7185 (m68k_extract_struct_value_address): Remove function.
7186 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7187 (m68k_reg_struct_return_p, m68k_return_value)
7188 (m68k_svr4_return_value): New functions.
7189 (m68k_use_struct_convention): Remove function.
7190 (m68k_push_dummy_call): Use new struct_value_regnum member of
7191 `struct gdbarch_tdep' instead of hardcoded register number to
7193 (m68k_svr4_init_abi): New function.
7194 (m68k_gdbarch_init): Don't set extract_return_value,
7195 store_return_values, deprecated_extract_struct_value_address and
7196 use_struct_convention. Set return_value instead. Initialize new
7197 struct_value_regnum member of `struct gdbarch_tdep'.
7198 * m68klinux-tdep.c: Update copyright year.
7199 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7200 (m68k_linux_extract_struct_value_address): Remove function.
7201 (m68k_linux_init_abi): Don't set extract_return_value,
7202 store_return_values, deprecated_extract_struct_value_address and
7203 use_struct_convention. Call m68k_svr4_init_abi but override the
7204 new struct_value_regnum member of `struct gdbarch_tdep'.
7205 * Makefile.in (m68k-tdep.o): Update dependencies.
7207 2004-05-03 J. Brobecker <brobecker@gnat.com>
7209 * dwarf2read.c (line_header): Add new included_p field in
7211 (partial_die_info): New field has_stmt_list. New field line_offset.
7212 (dwarf2_create_include_psymtab): New function.
7213 (dwarf2_build_include_psymtabs): New function.
7214 (add_file_name): Add forward declaration. Initialize new field.
7215 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7216 to be able to determine the list of files included by the
7217 given unit, and build their associated psymtabs.
7218 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7220 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7221 (read_file_scope): Update call to dwarf_decode_lines.
7222 (read_partial_die): Handle DW_AT_stmt_list attributes.
7224 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7227 * configure.in: Revert special case for osf5.*.
7228 * configure: Regenerate.
7230 2004-05-02 Jim Blandy <jimb@redhat.com>
7232 Move the symbol-file-from-memory functions into their own file.
7233 * symfile-mem.c, symfile-mem.h: New files.
7234 * symfile.c (symbol_file_add_from_bfd): New function.
7235 (symbol_file_add): Call symbol_file_add_from_bfd.
7236 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7237 Moved to symfile-mem.c.
7238 (_initialize_symfile): Move definition of
7239 add-symbol-file-from-memory command to symfile-mem.c.
7240 * symfile.h (symbol_file_add_from_bfd): New declaration.
7241 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7242 * config/powerpc/linux.mt (TDEPFILES): Same.
7243 * Makefile.in (SFILES): Add symfile-mem.c.
7244 (symfile_mem_h): New variable.
7245 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7246 (symfile-mem.o): New rule.
7248 2004-05-01 Andrew Cagney <cagney@redhat.com>
7250 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7251 frame_find_by_id instead of frame_relative_level.
7252 (do_enable_breakpoint): Ditto.
7253 * thread.c: Update copyright.
7254 (info_threads_command): Ditto, simplify.
7256 * frame.c (deprecated_generic_get_saved_register): Delete
7257 function, moved to "xstormy16-tdep.c".
7258 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7259 deprecated_generic_get_saved_register from "frame.c".
7260 (xstormy16_frame_saved_register): Call
7261 xstormy16_get_saved_register.
7262 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7264 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7265 * frame.h (deprecated_generic_get_saved_register): Delete.
7267 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7269 * dwarfread.c: Update documentation on the state of dwarf-1.
7271 2004-05-01 Andrew Cagney <cagney@redhat.com>
7273 * stack.c (select_frame_command): Delete call to
7274 frame_relative_level.
7275 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7277 (frame_info): Do not print FRAMELESS.
7278 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7279 (catch_info): Delete #if0 code.
7281 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7282 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7283 of frame_relative_level.
7284 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7286 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7287 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7288 frame_relative_level.
7290 * frame.h (deprecated_set_frame_type): Delete declaration.
7291 * frame.c (deprecated_set_frame_type): Delete function, update
7294 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7295 * gdbarch.h, gdbarch.c: Re-generate.
7296 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7297 (shnbsd_pc_in_sigtramp): Delete.
7298 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7300 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7302 * frame.h: Update comments.
7303 * ppc-linux-tdep.c: Update comments.
7304 * breakpoint.c (bpstat_what): Update comments.
7306 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7307 m68klinux-tdep.o's dependencies, were previously added to
7310 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7311 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7312 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7313 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7314 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7316 * Makefile.in (m68klinux-nat.o): Update dependencies.
7317 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7318 (m68k_linux_sigtramp_frame_cache)
7319 (m68k_linux_sigtramp_frame_this_id)
7320 (m68k_linux_sigtramp_frame_prev_register)
7321 (m68k_linux_sigtramp_frame_unwind)
7322 (m68k_linux_sigtramp_frame_sniffer)
7323 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7324 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7325 names, use trad-frame.h.
7326 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7327 (struct m68k_sigtramp_info): Delete.
7328 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7329 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7330 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7331 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7334 * infrun.c (check_sigtramp2): Delete check for
7335 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7337 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7339 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7341 2004-05-01 Andrew Cagney <cagney@redhat.com>
7343 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7344 (frv_linux_sigtramp_frame_cache)
7345 (frv_linux_sigtramp_frame_this_id)
7346 (frv_linux_sigtramp_frame_prev_register)
7347 (frv_linux_sigtramp_frame_unwind)
7348 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7349 include "linux" in function and variable names, directly call
7350 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7351 the latest trad-frame code.
7352 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7353 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7354 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7355 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7356 * frv-tdep.c (frv_sigtramp_frame_cache)
7357 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7358 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7360 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7361 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7362 (frv_set_sigcontext_reg_addr): Delete function.
7364 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7365 (DEPRECATED_SIGTRAMP_END): Delete.
7366 * gdbarch.h, gdbarch.c: Re-generate.
7367 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7368 * config/vax/tm-vaxbsd.h: Update copyright.
7369 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7370 (DEPRECATED_IN_SIGTRAMP): Define.
7371 * config/m68k/tm-nbsd.h: Update copyright.
7372 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7373 (DEPRECATED_IN_SIGTRAMP): Define.
7375 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7377 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7378 encondings. Fixes PR gdb/1628.
7380 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7381 DW_CFA_restore state without a matching DW_CFA_remember_state
7382 instead of aborting. Fixes PR backtrace/1589.
7384 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7386 * MAINTAINERS: Add self as AIX maintainer.
7387 Update my e-mail address in write-after-approval section.
7389 2004-04-30 Andrew Cagney <cagney@redhat.com>
7391 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7392 (legacy_get_prev_frame): Ditto.
7394 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7395 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7396 * mipsread.c (sigtramp_address): Delete extern variable.
7397 (mipscoff_new_init): Delete reference.
7398 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7399 (fixup_sigtramp): Delete function.
7400 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7401 (fixup_sigtramp): Delete declarations.
7403 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7404 deprecated_pc_in_sigtramp.
7405 (ppcnbsd_pc_in_sigtramp): Delete function.
7407 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7409 * config/m68k/nm-nbsd.h: Tweak comments.
7410 * config/m68k/nm-nbsdaout.h: Likewise.
7412 2004-04-30 Andrew Cagney <cagney@redhat.com>
7414 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7415 legacy_pc_in_sigtramp.
7416 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7418 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7420 Add OpenBSD/m68k support.
7421 * NEWS (New native configurations): Mention OpenBSD/m68k.
7422 * m68kbsd-tdep.c: New file.
7423 * m68kbsd-nat.c: New file.
7424 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7425 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7426 * configure.host: Add m68k-*-openbsd.
7427 * configure.tgt: Add m68k-*-openbsd.
7428 * config/m68k/tm-obsd.h: New file.
7429 * config/m68k/obsd.mt: New file.
7430 * config/m68k/obsd.mh: New file.
7431 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7434 2004-04-30 Andrew Cagney <cagney@redhat.com>
7436 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7437 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7439 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7441 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7442 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7444 2004-04-30 Brian Ford <ford@vss.fsi.com>
7446 Revert 2004-04-16 change.
7447 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7448 (i386_coff_init_abi): Remove.
7449 * i386-tdep.h (i386_coff_init_abi): Remove.
7450 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7452 2004-04-30 Andrew Cagney <cagney@redhat.com>
7454 * blockframe.c (find_pc_partial_function): Delete use of
7455 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7456 DEPRECATED_SIGTRAMP_END.
7458 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7459 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7460 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7461 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7462 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7464 * defs.h (deprecated_inside_entry_file): Delete declaration.
7465 * blockframe.c (deprecated_inside_entry_file): Delete function.
7466 (legacy_frame_chain_valid): Delete call.
7467 * sh64-tdep.c (sh64_frame_chain): Delete call.
7468 * objfiles.h: Update comments.
7469 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7471 * frame.c (get_prev_frame): Delete call, update comments.
7473 2004-04-30 Brian Ford <ford@vss.fsi.com>
7475 * MAINTAINERS (Write After Approval): Add myself.
7477 2004-04-30 Andrew Cagney <cagney@redhat.com>
7479 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7480 * gdbarch.h, gdbarch.c: Re-generate.
7481 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7484 2004-04-30 Andrew Cagney <cagney@redhat.com>
7486 * gdb-events.sh (selected_thread_changed)
7487 (selected_frame_level_changed, target_changed): Delete.
7488 * gdb-events.h, gdb-events.c: Re-generate.
7489 * valops.c (value_assign): Update.
7490 * stack.c (select_frame_command, up_silently_base)
7491 (down_silently_base): Update.
7493 2004-04-29 Andrew Cagney <cagney@redhat.com>
7495 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7496 registers correctly.
7497 (print_gp_register_row, mips32_heuristic_proc_desc)
7498 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7499 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7500 references to mips_isa_regsize.
7502 2004-04-29 Andrew Cagney <cagney@redhat.com>
7504 * mips-tdep.c (struct gdbarch_tdep): Delete
7505 mips_fp_register_double.
7506 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7508 (mips_gdbarch_init): Do not set mips_fp_register_double.
7509 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7511 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7513 Committed by Andrew Cagney.
7514 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7517 2004-04-29 Andrew Cagney <cagney@redhat.com>
7519 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7520 gdbarch, use mips_abi, update callers.
7521 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7522 mips_abi_regsize, update callers.
7523 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7524 mips_default_abi_regsize.
7525 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7526 mips_default_abi_regsize.
7528 2004-04-29 Andrew Cagney <cagney@redhat.com>
7530 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7531 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7532 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7533 mips_default_abi_regsize.
7534 (mips_isa_regsize): Rename mips_regisze.
7535 * mipsnbsd-tdep.c: Update.
7536 * mips-linux-tdep.c: Update.
7537 * irix5-nat.c: Update.
7538 * mips-tdep.h (mips_isa_regsize): Update.
7540 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7541 Delete all disabled code.
7542 * gdb-events.h, gdb-events.c: Re-generate.
7544 2004-04-19 Jerome Guitton <guitton@gnat.com>
7545 Mark Kettenis <kettenis@gnu.org>
7547 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7548 the function begins with a branch instruction.
7550 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7552 * i386-tdep.c: Fix spelling mistakes.
7554 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7555 Andrew Cagney <cagney@redhat.com>
7557 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7559 * acconfig.h: Provide default _KMEMUSER value.
7560 * config.in, configure: Re-generate.
7561 * NEWS: Mention fix.
7563 2004-04-24 Randolph Chung <tausq@debian.org>
7565 * configure.host (hppa*-*-linux*): New target.
7566 * configure.tgt (hppa*-*-linux*): Likewise.
7567 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7568 gdbarch_init_osabi() call earlier so that osabi-specific frame
7569 unwinders can be registered first.
7570 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7572 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7573 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7574 * config/pa/linux.mh: New file.
7575 * config/pa/linux.mt: New file.
7576 * config/pa/nm-linux.h: New file.
7577 * config/pa/xm-linux.h: New file.
7578 * hppa-linux-nat.c: New file.
7579 * hppa-linux-tdep.c: New file.
7581 2004-04-28 Randolph Chung <tausq@debian.org>
7583 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7585 (hppa32_push_dummy_call): Fix small struct and floating point argument
7586 passing, and make sure the stack frame is properly aligned.
7588 2004-04-28 Andrew Cagney <cagney@redhat.com>
7590 * stack.c (print_stack_frame): Fix description.
7592 * NEWS: Mention gdb/gdbserver/configure execute permission
7593 changed. PR server/519.
7595 2004-04-28 Andrew Cagney <cagney@redhat.com>
7597 * stack.c (print_stack_frame_stub): Delete declaration.
7598 (struct print_stack_frame_args, print_stack_frame)
7599 (print_frame_info, print_frame): Replace "source" with print what.
7600 Replace "print" with "print_level". Replace "args" with
7602 * frame.h (show_and_print_stack_frame, print_stack_frame)
7603 (print_frame_info): Update declarations.
7604 * stack.c (select_and_print_frame, frame_command)
7605 (current_frame_command, up_command, down_command): Update calls -
7606 use get_selected_frame, pass "enum print_what" for source, do not
7607 call frame_relative_level.
7608 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7609 * remote-rdp.c (remote_rdp_open): Ditto.
7610 * remote-mips.c (common_open): Ditto.
7611 * remote-e7000.c (e7000_start_remote): Ditto.
7612 * ocd.c (ocd_start_remote): Ditto.
7613 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7614 * infrun.c (normal_stop): Ditto.
7615 * inflow.c (kill_command): Ditto.
7616 * infcmd.c (finish_command): Ditto.
7617 * corelow.c (core_open): Ditto.
7618 * tracepoint.c (finish_tfind_command): Ditto.
7619 * thread.c (info_threads_command, info_threads_command)
7620 (restore_current_thread, do_captured_thread_select): Ditto.
7621 * ada-tasks.c (task_command): Ditto.
7623 2004-04-26 Orjan Friberg <orjanf@axis.com>
7625 * frame.c: Include "observer.h".
7626 (frame_observer_target_changed): New function.
7627 (_initialize_frame): Attach target_changed observer.
7628 * regcache.c: Include "observer.h".
7629 (regcache_observer_target_changed): New function.
7630 (_initialize_regcache): Attach target_changed observer.
7631 * valops.c: Include "observer.h".
7632 (value_assign): Notify target_changed event when modifying register.
7633 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7635 2004-04-26 Orjan Friberg <orjanf@axis.com>
7637 From Paul Koning <pkoning@equallogic.com>:
7638 * breakpoint.c (free_valchain): New function.
7639 (insert_bp_location, delete_breakpoint): Use free_valchain.
7640 (remove_breakpoint): Do not remove the valchain.
7641 (bpstat_stop_status): If not stopped by watchpoint, skip
7642 watchpoints when generating stop status list.
7643 * infrun.c (handle_inferior_event): Make
7644 stepped_after_stopped_by_watchpoint a global variable.
7645 * remote.c (remote_stopped_data_address): Return watch data
7646 address rather than zero if stepped_after_stopped_by_watchpoint is
7649 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7652 * configure.in: Check for curses after termcap.
7653 On osf5.*, do not check for ncurses.
7654 * configure: Regenerate.
7656 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7658 * ppcobsd-nat.c: Include "ppc-tdep.h".
7659 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7661 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7662 Fixes PR tdep/1623 and PR tdep/1624.
7664 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7666 * xmodem.h, xmodem.c: Remove files.
7667 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7669 2004-04-23 Randolph Chung <tausq@debian.org>
7671 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7672 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7673 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7674 for handling stackless frames.
7675 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7677 2004-04-23 Randolph Chung <tausq@debian.org>
7679 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7680 starts at a pc before the frame is created.
7682 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7684 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7686 2004-04-23 Jerome Guitton <guitton@gnat.com>
7688 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7689 use convert_typed_floating to get the appropriate format.
7691 2004-04-22 Randolph Chung <tausq@debian.org>
7693 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7694 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7695 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7696 (hppa_sign_extend): Add prototype.
7697 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7698 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7699 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7700 hppa targets will also use these functions.
7701 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7702 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7703 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7704 (hppa_gdbarch_init): Remove gdbarch setting of
7705 skip_trampoline_code, in_solib_call_trampoline and
7706 in_solib_return_trampoline.
7707 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7708 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7709 hppa_in_solib_call_trampoline.
7710 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7711 Moved from hppa-tdep.c.
7712 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7713 in_solib_call_trampoline and in_solib_return_trampoline.
7715 2004-04-22 Randolph Chung <tausq@debian.org>
7717 * hppa-tdep.c (hppa_debug): New variable.
7718 (find_unwind_entry, hppa_frame_cache): Add debug output.
7719 (_initialize_hppa_tdep): Add command to set debug flag.
7721 2004-04-22 Andrew Cagney <cagney@redhat.com>
7723 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7725 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7726 signal trampoline unwinder.
7727 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7729 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7731 Add OpenBSD/powerpc support.
7732 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7733 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7734 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7735 (ppc_collect_fpregset): New prototypes.
7736 * ppcobsd-nat.c: New file.
7737 * ppcobsd-tdep.c: New file.
7738 * ppcobsd-tdep.h: New file.
7739 * rs6000-tdep.c: Include "regset.h".
7740 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7741 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7743 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7744 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7745 (rs6000-tdep.o): Update dependencies.
7746 * configure.host: Add powerpc-*-openbsd.
7747 * configure.tgt: Add powerpc-*-openbsd.
7748 * config/powerpc/obsd.mh: New file.
7749 * config/powerpc/nm-obsd.h: New file.
7750 * config/powerpc/obsd.mt: New file.
7752 2004-04-22 Andrew Cagney <cagney@redhat.com>
7754 * frame.h (show_frame_info): Delete declaration.
7756 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7757 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7758 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7759 * frv-tdep.c (frv_frame_this_id): Ditto.
7760 * avr-tdep.c (avr_frame_this_id): Ditto.
7762 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7764 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7766 2004-04-22 Jim Blandy <jimb@redhat.com>
7768 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7769 register number zero.
7771 2004-04-21 Michael Snyder <msnyder@redhat.com>
7773 * mips-tdep.c (heuristic_proc_start):
7774 Warning() already prefixes "Warning: ".
7776 2004-04-21 Andrew Cagney <cagney@redhat.com>
7778 * annotate.h (deprecated_annotate_starting_hook)
7779 (deprecated_annotate_stopped_hook)
7780 (deprecated_annotate_exited_hook)
7781 (deprecated_annotate_signal_hook)
7782 (deprecated_annotate_signalled_hook): Deprecate.
7783 * tracepoint.h (deprecated_create_tracepoint_hook)
7784 (deprecated_delete_tracepoint_hook)
7785 (deprecated_modify_tracepoint_hook)
7786 (deprecated_trace_find_hook)
7787 (deprecated_trace_start_stop_hook): Deprecate.
7788 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7789 * remote.h (deprecated_target_resume_hook)
7790 (deprecated_target_wait_loop_hook): Deprecate.
7791 * gdbcore.h (deprecated_exec_file_display_hook)
7792 (deprecated_file_changed_hook): Deprecate.
7793 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7794 * defs.h (deprecated_modify_breakpoint_hook)
7795 (deprecated_command_loop_hook, deprecated_show_load_progress)
7796 (deprecated_print_frame_info_listing_hook)
7797 (deprecated_query_hook, deprecated_warning_hook)
7798 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7799 (deprecated_delete_breakpoint_hook)
7800 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7801 (deprecated_readline_begin_hook, deprecated_readline_hook)
7802 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7803 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7804 (deprecated_context_hook, deprecated_target_wait_hook)
7805 (deprecated_attach_hook, deprecated_detach_hook)
7806 (deprecated_call_command_hook, deprecated_set_hook)
7807 (deprecated_error_hook, deprecated_error_begin_hook)
7808 (deprecated_ui_load_progress_hook): Deprecate.
7809 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7810 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7811 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7812 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7813 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7814 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7815 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7816 * annotate.c, aix-thread.c: Update.
7818 2004-04-21 Andrew Cagney <cagney@redhat.com>
7820 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7821 * vaxnbsd-tdep.c: Include "gdb_string.h".
7823 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7824 (add_symbol_file_from_memory_command): #if 0 function body, call
7827 2004-04-21 Andrew Cagney <cagney@redhat.com>
7829 * gdbcore.h: Update copyright.
7830 (deprecated_add_core_fns): Rename add_core_fns.
7831 * win32-nat.c (_initialize_core_win32): Update.
7832 * sun3-nat.c (_initialize_core_sun3): Update.
7833 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7834 * rs6000-nat.c (_initialize_core_rs6000): Update.
7835 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7836 * nto-tdep.c (_initialize_nto_tdep): Update.
7837 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7838 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7839 * mips-nat.c (_initialize_core_mips): Update.
7840 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7841 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7842 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7843 * lynx-nat.c (_initialize_core_lynx): Update.
7844 * irix5-nat.c (_initialize_core_irix5): Update.
7845 * i386-interix-nat.c (_initialize_core_interix): Update.
7846 * cris-tdep.c (_initialize_cris_tdep): Update.
7847 * corelow.c (deprecated_add_core_fns): Update.
7848 * core-regset.c (_initialize_core_regset): Update.
7849 * core-aout.c (_initialize_core_aout): Update.
7850 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7851 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7852 * alpha-nat.c (_initialize_core_alpha): Update.
7854 2004-04-21 Jim Blandy <jimb@redhat.com>
7856 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7858 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7860 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7862 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7863 (read_attribute_value): Update calls to dwarf_alloc_block.
7864 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7866 (psymtab_to_symtab_1): Likewise. Clean up using
7867 free_stack_comp_unit.
7868 (add_to_cu_func_list): Use the comp_unit_obstack.
7870 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7872 * dwarf2read.c (dwarf2_flag_true_p): New function.
7873 (die_is_declaration): Use the function above. Add some comments.
7875 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7877 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7878 architecture when registering sparcnbsd_core_osabi_sniffer.
7881 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7883 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7886 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7887 * i386-tdep.c: Correct register numbering scheme comments
7889 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7890 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7891 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7892 (i386_gdb_arch_init): Likewise.
7894 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7895 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7898 * m68k-tdep.h: Tweak comments.
7899 * m68k-tdep.c: Tweak comment.
7901 2004-04-17 Randolph Chung <tausq@debian.org>
7903 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7904 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7905 (hppa_hpux_som_init_abi): Set is_elf to 0.
7906 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7907 * hppa-tdep.c (low_text_segment_address): Remove global.
7908 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7909 section offset to calculate segment address.
7910 (internalize_unwinds): Define low_text_segment_address as local and
7911 pass to record_text_segment_lowaddr for ELF targets.
7912 (hppa_gdbarch_init): Zero fill tdep structure.
7913 (hppa_dump_tdep): Print tdep structure.
7914 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7916 2004-04-17 Randolph Chung <tausq@debian.org>
7918 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7919 (hppa_gdbarch_init): Set pseudo_register_read.
7920 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7921 * regcache.c (supply_register): Remove check for
7922 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7924 2004-04-17 Randolph Chung <tausq@debian.org>
7926 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7927 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7928 (hpread_adjust_stack_address): Move to hpread.c.
7929 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7930 obj_private_struct): Move from tm-hppa.h.
7931 * hpread.c (hppa-tdep.h): Include.
7932 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7933 (hpread_read_function_type, hpread_read_doc_function_type)
7934 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7936 * pa64solib.c (hppa-tdep.h): Include.
7937 * somsolib.c (hppa-tdep.h): Include.
7938 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7939 inferior_status): Remove unused forward declarations.
7940 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7941 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7942 obj_private_struct): Move to hppa-tdep.h.
7943 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7945 2004-04-17 Randolph Chung <tausq@debian.org>
7947 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7948 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7949 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7950 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7951 Remove forward declaration and make static.
7952 (hppa_reg_struct_has_addr): Remove.
7954 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7956 * observer.sh: Move comments in sed command to first column.
7958 2004-04-16 Jason Molenda (jmolenda@apple.com)
7960 * frame.c: Minor typeo corrections in comments.
7962 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7964 * observer.c (observer_test_first_notification_function): Update
7966 (observer_test_second_notification_function): Likewise.
7967 (observer_test_third_notification_function): Likewise.
7969 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7971 From Brian Ford <ford@vss.fsi.com>:
7972 * i386-tdep.c (i386_coff_init_abi): New function.
7973 * i386-tdep.h (i386_coff_init_abi): New prototype.
7974 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7975 register number translation functions for DWARF and DWARF 2.
7977 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7979 * dwarf2read.c: Back out my previous change, it was incorrect.
7981 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7983 * dwarf2read.c: Include "hashtab.h".
7984 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7986 (struct partial_die_info): Add comments. Use bitfields to reduce
7987 memory footprint. Add scope, scope_set, has_specification,
7988 spec_offset, die_parent, die_child, and die_sibling.
7989 (peek_die_abbrev): Add prototype.
7990 (partial_read_comp_unit_head): New function, broken out from
7991 dwarf2_build_psymtabs_hard.
7992 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7993 Use partial_read_comp_unit_head. Initialize the CU and
7994 comp_unit_obstack. Update calls to read_partial_die and
7995 scan_partial_symbols. Use free_stack_comp_unit and
7997 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7998 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7999 Update calls to helper functions. Remove NAMESPACE argument.
8001 (partial_die_parent_scope, partial_die_full_name): New functions.
8002 (add_partial_symbol): Remove namespace argument. Update call to
8003 pdi_needs_namespace. Use partial_die_full_name. Handle
8004 DW_TAG_namespace. Check has_namespace_info flag.
8005 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8006 tag. Handle namespaces.
8007 (add_partial_namespace, add_partial_enumeration): Simplify.
8008 (guess_structure_name): New function, derived from
8009 add_partial_structure.
8010 (add_partial_structure): Remove.
8011 (determine_class_name): Update comment.
8012 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8013 (is_type_tag_for_partial, load_partial_dies): New functions.
8014 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8015 Record specifications instead of following them immediately.
8016 (find_partial_die_in_comp_unit, find_partial_die)
8017 (fixup_partial_die, free_stack_comp_unit)
8018 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8019 (partial_die_hash, partial_die_eq): New functions.
8020 * Makefile.in (hashtab_h): Define.
8021 (dwarf2read.o): Update dependencies.
8022 (observer_inc, observer_h): Move to the correct section.
8024 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8026 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8027 (die_is_declaration): Use the function above. Add comment.
8029 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8031 * dwarf2read.c (read_structure_scope): Identify stub types
8032 using die_is_declaration() only.
8034 2004-04-15 Roland McGrath <roland@redhat.com>
8036 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8037 argument instead of NAME.
8038 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8039 in call to symbol_file_add_with_addrs_or_offsets.
8040 (build_addr_info): New function, helper for ...
8041 (symbol_file_add_from_memory): New function.
8042 (add_symbol_file_from_memory_command): New function using that.
8043 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8044 (pre_add_symbol_hook): Add const to argument type.
8045 * symfile.h (symbol_file_add_from_memory): Declare it.
8047 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8049 * NEWS (New native configurations): Mention OpenBSD/vax.
8050 * configure.host: Add vax-*-openbsd*.
8051 * config/vax/obsd.mh: New file.
8052 * config/vax/nm-obsd.h: New file.
8054 * vax-tdep.c: Include "regset.h".
8055 (vax_supply_gregset): New function.
8056 (vax_gregset): New variable.
8057 (vax_regset_from_core_section): New function.
8058 (vax_gdbarch_init): Set regset_from_core_section.
8059 * Makefile.in (vax-tdep.o): Update dependencies.
8061 2004-04-15 Andrew Cagney <cagney@redhat.com>
8063 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8064 (observer_normal_stop_notification_stub)
8065 (observer_attach_normal_stop, observer_detach_normal_stop):
8066 Delete, replaced by #include "observer.inc".
8067 * infrun.c (normal_stop): Pass "stop_bpstat" to
8068 observer_notify_normal_stop.
8069 * Makefile.in (observer_inc): Define.
8070 (observer.o): Update dependencies.
8071 (observer.h, observer.inc): New rules.
8072 * observer.h: Delete file.
8073 * observer.sh: New file.
8075 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8077 * vax-tdep.c (vax_frame_cache): Fix typo.
8079 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8081 * NEWS (New native configurations): Mention NetBSD/vax.
8082 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8083 * config/vax/nbsdelf.mh: New file.
8084 * config/vax/nbsdaout.mh: New file.
8085 * config/vax/nm-nbsd.h: New file.
8086 * config/vax/nm-nbsdaout.h: New file.
8088 * vaxnbsd-tdep.c: New file.
8089 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8090 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8091 * config/vax/nbsd.mt: New file.
8092 * config/vax/tm-nbsd.h: New file.
8094 * Makefile.in (vaxbsd-nat.o): New dependency.
8096 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8097 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8098 struct_addr arguments. Don't push return value address.
8099 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8100 arguments to vax_store_arguments. Store return value address in
8102 (vax_store_struct_return, vax_extract_return_value)
8103 (vax_store_return_value): Remove functions.
8104 (vax_return_value): New function.
8105 (vax_gdbarch_init): Set return value. Don't set
8106 deprecated_store_struct_return, deprecated_extract_struct_return
8107 and deprecated_store_return_value.
8109 2004-04-14 Andreas Schwab <schwab@suse.de>
8111 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8113 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8115 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8117 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8118 (vax_unwind_dummy_id): New functions.
8119 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8120 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8122 (vax_fix_call_dummy): Remove function.
8123 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8124 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8125 call_dummy_location, deprecated_call_dummy_words,
8126 deprecated_sizeof_call_dummy_words,
8127 deprecated_call_dummy_breakpoint_offset,
8128 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8129 and deprecated_dummy_write_sp.
8131 2004-04-13 David Carlton <carlton@kealia.com>
8133 * MAINTAINERS: Move myself to "paper trail" section.
8135 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8137 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8139 (vax_frame_init_saved_regs): Remove function.
8140 (vax_sigtramp_saved_pc): Remove function.
8141 (vax_frame_saved_pc): Remove function.
8142 (vax_frame_args_address): Remove function.
8143 (vax_frame_num_args): Rewrite.
8144 (vax_frame_chain): Remove function.
8145 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8147 (vax_pop_frame): Likewise.
8148 (vax_saved_pc_after_call): Remove function.
8149 (struct vax_frame_cache): New structure.
8150 (vax_frame_cache): New function.
8151 (vax_frame_this_id): New function.
8152 (vax_frame_prev_register): New function.
8153 (vax_frame_unwind): New variable.
8154 (vax_frame_sniffer): New function.
8155 (vax_frame_base_address): New function.
8156 (vax_frame_args_address): New function.
8157 (vax_frame_base): New variable.
8158 (vax_unwind_pc): New function.
8159 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8160 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8161 deprecated_frame_chain, deprecated_frame_saved_pc,
8162 deprecated_frame_args_address and
8163 deprecated_frame_init_saved_regs.
8164 * Makefile.in (vax-tdep.o): Update dependencies.
8166 * vaxbsd-nat.c: New file.
8168 * vax-tdep.h: Update copyright year. Adjust comments.
8169 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8170 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8171 (vax_regnum): New enum. Replacing...
8172 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8173 (VAX_PS_REGNUM): ... these removed macros.
8174 * vax-tdep.c (vax_register_name): Remove prototype.
8175 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8176 (vax_register_byte, vax_register_raw_size,
8177 vax_register_virtual_size, vax_register_virtual_type): Remove
8179 (vax_register_type): New function.
8180 (vax_breakpoint_from_pc): Reorganize.
8181 (vax_gdbarch_init): Set register_type. Don't set
8182 deprecated_register_size, deprecated_register_bytes,
8183 deprecated_register_byte, deprecated_register_raw_size,
8184 deprecated_max_register_raw_size,
8185 deprecated_register_virtual_size,
8186 deprecated_max_register_virtual_size and
8187 deprecated_register_virtual_type. Add comment on stack direction.
8189 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8191 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8192 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8193 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8195 2004-04-10 Randolph Chung <tausq@debian.org>
8197 * MAINTAINERS (write after approval): Add myself.
8199 2004-04-07 Randolph Chung <tausq@debian.org>
8201 * hppa-tdep.c (hppa_inner_than): Remove.
8202 (is_pa_2): Remove unused static variable.
8203 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8205 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8207 * language.h (language_defn): Add new la_post_parser field.
8208 * parser-defs.h (null_post_parser): New declaration (default for
8211 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8212 insert call to that function.
8213 (parse_exp_in_context): New function, including code formerly in
8214 parse_exp_1. Calls language-dependent post-parser after
8216 (parse_expression_in_context): New exported function.
8217 (null_post_parser): New definition.
8218 * expression.h (parse_expression_in_context): Add declaration.
8220 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8221 * c-lang.c (c_language_defn): Ditto.
8222 (cplus_language_defn): Ditto.
8223 (asm_language_defn): Ditto.
8224 (minimal_language_defn): Ditto.
8225 * f-lang.c (f_language_defn): Ditto.
8226 * jv-lang.c (java_language_defn): Ditto.
8227 * language.c (unknown_language_defn): Ditto.
8228 (auto_language_defn): Ditto.
8229 (local_language_defn): Ditto.
8230 * m2-lang.c (m2_language_defn): Ditto.
8231 * scm-lang.c (scm_language_defn): Ditto.
8232 * obj-lang.c (objc_language_defn): Ditto.
8234 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8236 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8237 (amd64nbsd_mcontext_addr): New function.
8238 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8239 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8240 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8242 * corelow.c (core_xfer_partial): Fix coding standards violation.
8243 Add support for TARGET_OBJECT_WCOOKIE.
8245 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8246 deprecated_pc_in_sigtramp.
8247 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8248 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8249 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8250 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8251 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8252 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8253 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8255 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8256 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8259 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8260 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8261 (amd64_collect_fxsave): Likewise.
8263 * i386-sol2-tdep.c: Include "gdb_string.h".
8264 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8266 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8268 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8270 * i386-sol2-tdep.c: Include "solib-svr4.h".
8271 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8272 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8273 * config/i386/tm-i386sol2.h: Include :solib.h".
8274 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8275 solib-svr4.o and solib-legacy.o.
8276 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8279 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8281 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8282 whether a register is supplied by PTRACE_GETFPREGS.
8283 (store_inferior_registers): Likewise.
8284 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8285 whether a register is supplied by PT_GETFPREGS.
8286 (store_inferior_registers): Likewise.
8288 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8289 * config/i386/linux64.mt (TDEPFILES): Likewise.
8291 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8293 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8294 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8295 the program counter is in the range specified by `struct
8297 * amd64-linux-tdep.c: Include "symtab.h".
8298 (amd64_linux_pc_in_sigtramp): Remove function.
8299 (amd64_linux_sigtramp_p): New function.
8300 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8301 deprecated_pc_in_sigtramp.
8302 * amd64nbsd-tdep.c: Include "symtab.h".
8303 (amd64nbsd_sigtramp_p): New function.
8304 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8305 deprecated_pc_in_sigtramp.
8306 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8308 (amd64obsd_pc_in_sigtramp): Remove function.
8309 (amd64obsd_sigtramp_p): New function.
8310 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8311 deprecated_pc_in_sigtramp.
8312 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8313 (i386bsd_pc_ins_sigtramp): Remove prototype.
8314 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8315 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8316 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8317 the program counter is in the range specified by `struct
8319 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8320 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8321 (i386_go32_pc_in_sigtramp): Remove function.
8322 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8323 Initialize TDEP->sigtramp_p.
8324 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8325 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8326 deprecated_pc_in_sigtramp.
8327 * i386-linux-tdep.c: Adjust comments.
8328 (i386_linux_pc_in_sigtramp): Remove function.
8329 (i386_linux_sigtramp_p): New function.
8330 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8331 deprecated_pc_in_sigtramp.
8332 * i386-nto-tdep.c: Update copyright year.
8333 (i386nto_pc_in_sigtramp): Remove function.
8334 (i386nto_sigtramp_p): New function.
8335 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8337 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8338 deprecated_pc_in_sigtramp.
8339 * i386-sol2-tdep.c: Update copyright year.
8340 (i386_sol2_pc_in_sigtramp): Remove function.
8341 (i386_sol2_sigtramp_p): New function.
8342 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8343 deprecated_pc_in_sigtramp.
8344 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8345 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8346 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8347 deprecated_sigtramp_start and deprecated_sigtramp_end.
8348 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8349 (i386nbsd_pc_in_sigtramp): Remove function.
8350 (i386nbsd_sigtramp_p): New function.
8351 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8352 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8353 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8354 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8355 (i386obsd_pc_in_sigtramp): Remove function.
8356 (i386obsd_sigtramp_p): New function.
8357 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8359 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8360 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8362 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8363 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8366 * config/i386/i386aout.mt: Remove file.
8368 * configure.tgt: Remove i[34567]86-*-go32*,
8369 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8370 and i[34567]86-*-isc*. Set gdb_target to i386 for
8371 i[34567]86-*-netware* and i[34567]86-*-*.
8372 * config/i386/i386.mt: New file.
8373 * config/i386/embed.mt: Remove file.
8374 * config/i386/go32.mt: Remove file.
8375 * config/i386/i386nw.mt: Remove file.
8376 * config/i386/i386v.mt: Remove file.
8377 * config/i386/tm-go32.h: Remove file.
8379 * tui/tui-hooks.c: Include "readline/readline.h" after
8380 "gdb_curses.h" instead of before.
8381 * tui/tui-io.c: Likewise.
8383 * tui/tui.c: Fix typo in comment.
8385 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8387 2004-04-08 Andrew Cagney <cagney@redhat.com>
8389 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8390 (deprecated_exception_support_initialized): Declare.
8391 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8392 (initialize_hp_cxx_exception_support)
8393 (child_enable_exception_callback): Update.
8394 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8395 (deprecated_exception_support_initialized): Rename
8396 deprecated_exception_catchpoints_are_fragile and
8397 deprecated_exception_support_initialized.
8398 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8400 * symtab.c (deprecated_hp_som_som_object_present): Rename
8401 hp_som_som_object_present.
8402 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8403 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8404 Update. Delete extern declaration.
8405 * valops.c (hp_som_som_object_present): Ditto.
8406 * parse.c (deprecated_hp_som_som_object_present)
8407 (parse_nested_classes_for_hpacc): Ditto.
8408 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8409 * hppa-hpux-tdep.c (hp_som_som_object_present)
8410 (initialize_hp_cxx_exception_support): Ditto.
8411 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8412 * cp-valprint.c (hp_som_som_object_present)
8413 (cp_print_class_method): Ditto.
8414 * c-typeprint.c (hp_som_som_object_present):
8415 (c_type_print_base): Ditto.
8416 * c-exp.y (hp_som_som_object_present): Ditto.
8418 2004-04-08 Andrew Cagney <cagney@redhat.com>
8420 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8421 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8422 (frame_unwind_find_by_frame): Re-implement the unwind code so
8423 that it can both prepend and append sniffers. Replace
8424 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8425 * tramp-frame.c (tramp_frame_append): Use
8426 frame_unwind_prepend_unwinder.
8427 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8428 frame_unwind_register_unwinder.
8429 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8431 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8432 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8433 (mips_linux_init_abi): Update.
8435 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8437 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8438 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8441 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8443 * ia64-tdep.c (elf.h): Don't include.
8444 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8446 2004-04-07 Jason Molenda (jmolenda@apple.com)
8448 * frame.h: Typeo corrections in comments.
8450 2004-04-07 Jim Blandy <jimb@redhat.com>
8452 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8455 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8457 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8458 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8459 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8460 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8462 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8464 * config/sparc/tm-sol2.h: Update copyright year. Include
8467 * sparc-sol2-tdep.c: Update copyright year. Include
8469 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8470 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8471 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8472 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8475 2004-04-06 Andrew Cagney <cagney@redhat.com>
8477 * infttrace.c: Include "infttrace.h".
8478 * infttrace.h: Include "target.h".
8479 * Makefile.in (infttrace_h): Update.
8480 (infttrace.o): Update.
8482 2004-04-06 Andrew Cagney <cagney@redhat.com>
8484 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8485 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8486 move extern declarations from here ...
8487 * infttrace.h: ... to here.
8488 * Makefile.in (hppah-nat.o): Update dependencies.
8490 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8491 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8492 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8493 (hppa_breakpoint_from_pc): Delete.
8495 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8497 2004-04-05 Andrew Cagney <cagney@redhat.com>
8499 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8500 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8503 2004-04-06 Randolph Chung <tausq@debian.org>
8505 Committed by Andrew Cagney (mechanical change).
8506 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8507 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8508 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8509 child_enable_exception_callback, current_ex_event,
8510 null_symtab_and_line, child_get_current_exception_event,
8511 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8512 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8513 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8514 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8515 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8516 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8517 Move hpux-specific definitions ...
8518 * hppa-hpux-tdep.c: ... to here.
8520 2004-04-05 Andrew Cagney <cagney@redhat.com>
8522 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8523 skip_prologue_using_sal.
8525 2004-04-05 Andrew Cagney <cagney@redhat.com>
8527 * config/i386/tm-i386.h: Delete file.
8528 * config/i386/tm-vxworks.h: Update copyright, do not include
8530 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8531 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8532 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8533 * config/i386/ncr3000.mt (TM_FILE): Delete.
8534 * config/i386/interix.mt (TM_FILE): Delete.
8535 * config/i386/i386v.mt (TM_FILE): Delete.
8536 * config/i386/i386nw.mt (TM_FILE): Delete.
8537 * config/i386/i386gnu.mt (TM_FILE): Delete.
8538 * config/i386/i386aout.mt (TM_FILE): Delete.
8539 * config/i386/embed.mt (TM_FILE): Delete.
8541 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8543 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8544 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8545 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8546 (accg7_regnum): New constants.
8547 (last_spr_regnum, last_pseudo_regnum): Update.
8548 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8549 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8550 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8552 (frv_register_sim_regno): Update spr_map[].
8554 2004-04-04 Andrew Cagney <cagney@redhat.com>
8556 * config/mips/xm-riscos.h: Delete.
8557 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8558 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8559 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8560 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8561 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8562 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8563 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8564 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8565 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8566 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8567 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8568 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8569 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8570 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8571 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8572 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8573 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8574 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8575 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8576 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8577 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8578 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8579 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8580 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8581 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8582 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8584 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8585 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8586 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8587 * configure.host: Remove m680[01]0-sun-sunos3*,
8588 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8589 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8590 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8591 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8593 * NEWS: Mention removed systems.
8595 2004-04-04 Andrew Cagney <cagney@redhat.com>
8597 GDB 6.1 release created from 6.1 branch.
8599 2004-04-04 Andrew Cagney <cagney@redhat.com>
8601 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8602 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8603 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8605 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8606 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8607 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8609 2004-04-03 Jim Blandy <jimb@redhat.com>
8611 * MAINTAINERS: Chris Faylor has changed employers; add him to
8612 "paper trail" section, and update his E-mail address.
8614 2004-04-03 Andrew Cagney <cagney@redhat.com>
8616 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8617 generic dummy frames.
8618 * dummy-frame.c: Update copyright.
8619 (dummy_frame_sniffer): Delete check for generic dummy frames.
8621 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8622 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8623 (REG_PARM_STACK_SPACE): Delete.
8624 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8625 Inline reference to REG_PARM_STACK_SPACE.
8627 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8628 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8629 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8630 (FRAME_BASE_BEFORE_SIGTRAMP)
8631 (hppa32_hpux_frame_base_before_sigtramp)
8632 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8633 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8634 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8635 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8636 (FRAME_BASE_BEFORE_SIGTRAMP)
8637 (hppa64_hpux_frame_base_before_sigtramp)
8638 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8640 2004-04-03 Andrew Cagney <cagney@redhat.com>
8642 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8644 2004-04-02 Andrew Cagney <cagney@redhat.com>
8646 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8647 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8648 * dummy-frame.h: Delete out-of-date comments.
8649 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8650 * gdbarch.h, gdbarch.c: Re-generate.
8652 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8654 Committed by Andrew Cagney <cagney@redhat.com>.
8655 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8656 into account an instruction saving a register if we have already
8657 seen an earlier instruction saving that same register.
8659 2004-04-02 Andrew Cagney <cagney@redhat.com>
8661 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8662 * gdbarch.h, gdbarch.c: Re-generate.
8663 * frame.c (legacy_get_prev_frame): Delete references to
8664 DEPRECATED_INIT_FRAME_PC_FIRST.
8666 * infrun.c (pc_in_sigtramp): Delete function.
8667 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8670 2004-04-02 Andrew Cagney <cagney@redhat.com>
8672 * infrun.c (handle_step_into_function): Delete code conditional on
8674 (handle_inferior_event, step_over_function): Ditto.
8676 2004-04-02 Andrew Cagney <cagney@redhat.com>
8678 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8679 "previous frame inner to this frame" test.
8681 2004-04-02 Andrew Cagney <cagney@redhat.com>
8683 * frame.c (safe_frame_unwind_memory): New function.
8684 * frame.h (safe_frame_unwind_memory): Declare. Update description
8686 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8687 "next_frame". Use safe_frame_unwind_memory.
8688 (tramp_frame_sniffer): Update call to tramp_frame_start.
8690 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8692 * dwarf2read.c (dwarf2_objfile_data_key): New.
8693 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8694 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8695 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8696 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8697 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8698 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8699 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8701 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8702 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8703 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8704 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8705 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8706 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8708 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8710 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8711 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8712 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8713 (read_partial_die, read_full_die, read_indirect_string)
8714 (dwarf_decode_line_header, dwarf_decode_macros)
8715 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8716 Update uses of removed variables.
8717 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8719 (_initialize_dwarf2_read): New function.
8720 * symfile.h (dwarf2_has_info): Update prototype.
8721 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8722 * elfread.c (elf_symfile_read): Likewise.
8724 2004-04-01 Jim Blandy <jimb@redhat.com>
8726 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8727 function for register numbers on all the rs6000-derived targets.
8728 (rs6000_gdbarch_init): Don't register a separate
8729 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8730 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8733 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8736 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8738 * valarith.c: Update copyright notice.
8739 (value_add): Handle range types.
8741 (value_equal): Ditto.
8742 (value_less): Ditto.
8744 (value_complement): Ditto.
8745 (value_binop): Simplify slightly by using is_integral_type and
8746 eliminiating unnecessary COERCE_ENUMs.
8748 2004-03-31 Andrew Cagney <cagney@redhat.com>
8750 * frame.h (frame_unwind_id): Declare.
8751 * frame.c (frame_unwind_id): New function.
8752 (get_prev_frame_1): New function.
8753 (frame_debug_got_null_frame): New function.
8754 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8755 code proper to prev_frame, update description.
8756 * infrun.c (step_over_function): Use frame_unwind_id.
8758 2004-04-31 J. Brobecker <brobecker@gnat.com>
8760 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8761 (hppa64_push_dummy_call): Likewise.
8763 2004-03-30 Jim Blandy <jimb@redhat.com>
8765 From Ulrich Weigand:
8766 * utils.c (query): Do not use a va_list variable multiple times.
8768 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8770 * Makefile.in (linux_nat_h): Update dependencies.
8771 * configure.in: Check for <gnu/libc-version.h>.
8772 * configure: Regenerate.
8773 * config.in: Regenerate.
8774 * linux-nat.h: Include "target.h". Add waitstatus field to
8776 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8777 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8779 (lin_lwp_handle_extended): New function. Handle clone events.
8780 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8782 (child_wait): Handle clone events.
8783 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8784 * linux-nat.c (linux_enable_event_reporting): Turn on
8785 PTRACE_O_TRACECLONE.
8786 (linux_handle_extended_wait): Handle clone events.
8787 * thread-db.c: Include <gnu/libc-version.h>.
8788 (struct private_thread_info): Add dying flag.
8789 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8791 (attach_thread): Update comments. Handle dying threads.
8792 (detach_thread): Set the dying flag.
8793 (check_event): Always call attach_thread.
8795 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8797 * mips-tdep.c (mips_pdr_data): New.
8798 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8799 (_initialize_mips_tdep): Initialize mips_pdr_data.
8801 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8803 * minsyms.c (install_minimal_symbols): Move dropping leading
8804 char from linkage name from here...
8805 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8806 test for "__gnu_compiled*" symbols.
8808 2004-03-28 Jim Blandy <jimb@redhat.com>
8810 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8811 registers to temp register r0 and byte stores as prologue
8814 2004-03-28 Andrew Cagney <cagney@redhat.com>
8816 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8819 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8821 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8822 and switch the layout to force a display of register window.
8824 2004-02-26 J. Brobecker <brobecker@gnat.com>
8826 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8827 of the INTEGER class.
8829 2004-03-26 Jim Blandy <jimb@redhat.com>
8831 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8832 bytes long on PPC GNU/Linux.
8834 2004-03-26 David Carlton <carlton@kealia.com>
8836 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8838 2004-03-25 Andrew Cagney <cagney@redhat.com>
8840 * PROBLEMS: Add general section titles, remove references to
8843 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8845 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8847 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8848 FP_REGISTER_VIRTUAL_SIZE.
8849 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8850 of DEPRECATED_REGISTER_RAW_SIZE.
8851 (arm_register_type): Add gdbarch argument.
8852 (arm_register_raw_size, arm_register_virtual_size): Delete.
8853 (arm_register_byte, arm_extract_return_value)
8854 (arm_store_return_value, arm_get_longjmp_target): Update references
8855 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8856 (arm_gdbarch_init): Likewise. Don't set
8857 deprecated_register_raw_size, deprecated_register_virtual_size,
8858 deprecated_max_register_raw_size,
8859 deprecated_max_register_virtual_size, or
8860 deprecated_max_register_virtual_type. Do set register_type.
8861 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8862 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8863 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8864 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8865 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8866 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8868 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8869 (remote_rdp_store_register): Likewise.
8871 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8873 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8874 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8875 to after osabi initialization.
8876 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8877 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8879 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8880 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8882 (mips_linux_init_abi): Append signal trampoline unwinders.
8884 2004-03-24 Andrew Cagney <cagney@redhat.com>
8886 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8887 * tramp-frame.c: Include "gdb_assert.h".
8888 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8890 (tramp_frame_append): Validate the tramp frame's instructions.
8891 * Makefile.in (tramp-frame.o): Update dependencies.
8893 2004-03-23 Andrew Cagney <cagney@redhat.com>
8895 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8897 2004-03-23 Andrew Cagney <cagney@redhat.com>
8899 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8900 Nasser as past testsuite/lib/ (and other) maintainers.
8902 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8904 * infcmd.c (attach_command): Reread symbols if we already have
8907 2004-03-23 Andrew Cagney <cagney@redhat.com>
8909 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8911 2004-03-23 Andrew Cagney <cagney@redhat.com>
8913 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8914 * gdbarch.h, gdbarch.c: Re-generate.
8915 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8916 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8917 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8918 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8919 (DEPRECATED_SIGTRAMP_START): Update.
8920 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8921 (DEPRECATED_SIGTRAMP_START): Update.
8922 * blockframe.c (find_pc_sect_partial_function): Update.
8923 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8925 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8927 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8930 2004-03-23 Andrew Cagney <cagney@redhat.com>
8932 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8933 predicate, deprecate.
8934 * gdbarch.h, gdbarch.c: Re-generate.
8935 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8936 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8937 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8938 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8939 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8940 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8941 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8942 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8943 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8944 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8945 * blockframe.c (find_pc_partial_function): Update.
8946 * breakpoint.c (bpstat_what): Update.
8947 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8948 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8949 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8950 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8951 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8952 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8953 * i386-nto-tdep.c (i386nto_init_abi): Update.
8954 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8955 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8956 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8957 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8958 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8959 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8960 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8961 * infrun.c (pc_in_sigtramp): Update.
8962 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8963 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8964 * mips-tdep.c (mips_gdbarch_init): Update.
8965 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8966 * ppc-linux-tdep.c: Update comment.
8967 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8968 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8969 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8970 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8971 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8972 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8973 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8974 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8975 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8976 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8978 2004-03-23 Andrew Cagney <cagney@redhat.com>
8980 * tramp-frame.h, tramp-frame.h: New files.
8981 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8982 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8984 * Makefile.in: Update all dependencies.
8986 2004-03-23 Andrew Cagney <cagney@redhat.com>
8988 * Makefile.in (trad_frame_h): Add $(frame_h).
8989 * trad-frame.h: Update copyright. Include "frame.h".
8990 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8991 (trad_frame_set_id, trad_frame_get_id): Declare.
8992 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8993 * trad-frame.c: Update copyright.
8994 (struct trad_frame_cache): Define.
8995 (trad_frame_cache_zalloc): New function.
8996 (trad_frame_set_id, trad_frame_get_id): New functions.
8997 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8999 2004-03-22 Andrew Cagney <cagney@redhat.com>
9001 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9002 s390_pltstub_unwind_cache.
9003 (s390_stub_frame_unwind_cache): Rename
9004 s390_pltstub_frame_unwind_cache.
9005 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9006 (s390_stub_frame_prev_register): Rename
9007 s390_pltstub_frame_prev_register.
9008 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9009 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9011 From Ulrich Weigand:
9012 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9013 pointer calls like PLT calls.
9015 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9017 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9018 PC rather than the partial function start address. Use the start
9019 address to sanity check the found PDR.
9021 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9023 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9024 linux_handle_extended_wait.
9026 2004-03-22 Andrew Cagney <cagney@redhat.com>
9028 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9031 * frame.h (generic_pop_current_frame): Delete declaration.
9032 (deprecate_pop_dummy_frame): Deprecate
9033 generic_pop_dummy_frame.
9034 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9035 (generic_pop_current_frame): Delete function.
9036 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9037 generic_pop_current_frame.
9038 * v850-tdep.c (v850_pop_frame): Update.
9039 * mcore-tdep.c (mcore_pop_frame): Update.
9040 * sh64-tdep.c (sh64_pop_frame): Update.
9041 * h8300-tdep.c (h8300_pop_frame): Update.
9043 2004-03-22 Andrew Cagney <cagney@redhat.com>
9045 * frame.h (deprecated_pc_in_call_dummy): Rename
9046 generic_pc_in_call_dummy.
9047 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9048 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9049 generic_pc_in_call_dummy.
9050 (pc_in_dummy_frame): Make static.
9051 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9052 * gdbarch.h, gdbarch.c: Re-generate.
9053 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9054 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9055 (legacy_get_prev_frame): Ditto.
9056 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9059 2004-03-21 Andrew Cagney <cagney@redhat.com>
9061 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9062 declaration and out-of-date comment.
9063 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9065 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9066 deprecated_pc_in_call_dummy.
9068 * infrun.c (handle_inferior_event): For non legacy frames, use the
9069 frame ID and frame type to identify a signal trampoline. Update
9072 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9074 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9075 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9077 2004-03-21 Andrew Cagney <cagney@redhat.com>
9079 * frame-unwind.h: Update copyright.
9080 (struct frame_data): Add opaque declaration.
9081 (frame_sniffer_ftype): Declare.
9082 (struct frame_unwind): Add "unwind_data" and "sniffer".
9083 (frame_unwind_register_unwinder): Declare.
9084 (frame_unwind_find_by_frame): Add parameter "this_cache".
9085 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9086 (legacy_get_prev_frame, legacy_get_prev_frame)
9087 (get_frame_type): Pass the prologue_cache to
9088 frame_unwind_find_by_frame.
9089 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9091 (frame_unwind_register_unwinder): New function.
9092 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9094 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9096 * bcache.c (print_percentage): Use floating point to avoid
9097 incorrect results when portion*100 overflows.
9099 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9101 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9102 (ppc_linux_init_extra_frame_info)
9103 (ppc_linux_frameless_function_invocation)
9104 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9105 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9106 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9107 (rs6000_frame_chain): Delete declarations.
9108 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9109 (ppc_linux_init_extra_frame_info)
9110 (ppc_linux_frameless_function_invocation)
9111 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9112 (ppc_linux_init_abi): Remove registration of above deleted functions.
9113 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9114 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9115 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9116 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9117 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9118 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9119 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9120 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9121 frame management for all OSABIs.
9123 2004-03-19 Andrew Cagney <cagney@redhat.com>
9125 Committed by Kevin Buettner <kevinb@redhat.com>.
9127 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9129 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9130 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9131 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9132 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9133 unwinders. #ifdef legacy frame code.
9134 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9136 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9137 (struct rs6000_frame_cache, rs6000_frame_cache)
9138 (rs6000_frame_this_id, rs6000_frame_prev_register)
9139 (rs6000_frame_sniffer, rs6000_frame_unwind)
9140 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9141 (rs6000_frame_base): Implement a traditional frame unwinder.
9142 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9145 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9147 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9148 breakpoint address for watchpoints or the catch eventpoints.
9149 Add new paramter ``bptype''. Adjust all callers.
9151 2004-03-19 Andrew Cagney <cagney@redhat.com>
9153 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9155 * PROBLEMS: Delete note that ARM does not use frame code, problem
9158 2004-03-18 Andrew Cagney <cagney@redhat.com>
9160 * stack.c (return_command): Delete code wrapped in #ifdef
9161 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9163 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9165 2004-03-18 Andrew Cagney <cagney@redhat.com>
9167 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9168 DEPRECATED_IN_SIGTRAMP.
9169 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9170 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9171 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9172 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9173 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9174 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9175 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9176 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9177 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9178 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9180 2004-03-18 Andrew Cagney <cagney@redhat.com>
9182 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9183 (struct frame_base_table_entry): Define.
9184 (struct frame_base_table): Re-implement as a linked list.
9185 (frame_base_init): Re-implement.
9186 (frame_base_table): Delete function.
9187 (append_predicate): Delete function.
9188 (frame_base_append_sniffer): Update.
9189 (frame_base_set_default): Update.
9190 (frame_base_find_by_frame): Update.
9191 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9192 * Makefile.in (frame-base.o): Update dependencies.
9194 2004-03-17 Andrew Cagney <cagney@redhat.com>
9196 * frame.c (legacy_get_prev_frame): Pass correct frame to
9197 frame_unwind_find_by_frame.
9199 2004-03-17 David Carlton <carlton@kealia.com>
9201 * NEWS: Mention C++ nested types and namespaces
9203 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9205 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9206 and "Regressions since gdb 5.3.". Add known regressions since
9209 2004-03-16 David Carlton <carlton@kealia.com>
9211 * dwarf2read.c (process_structure_scope): Process children even
9212 when we're a declaration.
9214 2004-03-16 Andrew Cagney <cagney@redhat.com>
9216 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9217 * blockframe.c (find_pc_partial_function)
9218 (find_pc_sect_partial_function): Merge into a single
9219 find_pc_partial_function.
9221 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9223 * i386bsd-nat.c: s/regno/regnum/g.
9224 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9226 (store_inferior_registers): Likewise.
9228 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9230 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9232 (store_inferior_registers): Call i387_collect_fsave and
9233 i387_collect_fxsave instead of i387_fill_fsave and
9236 2004-03-15 Andrew Cagney <cagney@redhat.com>
9238 * Makefile.in (frame-unwind.o): Update dependencies.
9239 * frame-unwind.c: Include "gdb_obstack.h".
9240 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9242 (append_predicate): Delete function.
9243 (struct frame_unwind_table_entry): New structure.
9244 (struct frame_unwind_table): Replace "sniffer" with "head" and
9246 (frame_unwind_append_sniffer): Update.
9247 (frame_unwind_find_by_frame): Update.
9248 (_initialize_frame_unwind): Registe frame_unwind_init using
9249 gdbarch_data_register_pre_init.
9251 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9253 * i386bsd-nat.c: Update copyright year.
9254 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9255 define unconditionally.
9257 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9259 * i387-tdep.h (i387_collect_fsave): New prototype.
9260 * i387-tdep.c (i387_collect_fsave): New function containing most
9261 of the code from i387_fill_fsave.
9262 (i387_fill_fsave): Call i387_collect_fsave.
9264 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9266 * i386-linux-tdep.c: Update copyright year.
9267 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9268 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9269 svr4_ilp32_link_map_offsets instead of
9270 i386_linux_svr4_fetch_link_map_offsets.
9272 2004-03-15 David Carlton <carlton@kealia.com>
9274 Fix for PR c++/1553:
9275 * dwarf2read.c (read_structure_type): Determine type name by
9276 calling determine_class_name.
9277 (determine_class_name): New.
9278 (determine_prefix): Look at TYPE_TAG_NAME and call
9279 determine_class_name when appropriate.
9280 (determine_prefix_aux, class_name): Delete.
9281 (read_namespace): Set die->type.
9283 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9285 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9286 unused macro definition. The definition in target.h (or perhaps
9287 elsewhere) takes precedence.
9289 2004-03-15 Andrew Cagney <cagney@redhat.com>
9291 * ppc-tdep.h: Update copyright.
9292 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9293 function signatures to match "regsets.h".
9294 * ppc-linux-tdep.c: Include "regset.h".
9295 (ELF_GREGSET_SIZE): Delete.
9296 (right_supply_register): New function.
9297 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9298 using right_supply_register.
9299 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9301 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9302 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9303 (_initialize_ppc_linux_tdep): Do not register
9304 ppc_linux_regset_core_fns.
9305 (ppc_linux_regset_from_core_section): Replace
9306 fetch_core_registers.
9307 (ppc_linux_regset_core_fns): Delete.
9308 * ppc-linux-nat.c: (right_fill_reg): New function.
9309 (supply_gregset): Update call to ppc_linux_supply_gregset.
9310 (fill_gregset): Clear the register set, use right_fill_reg.
9311 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9312 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9314 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9317 2004-03-15 Andrew Cagney <cagney@redhat.com>
9319 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9320 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9321 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9322 and register_gdbarch_data.
9323 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9324 (struct gdbarch_data): Replace "init" by "pre_init" and
9326 * gdbarch.h, gdbarch.c: Re-generate.
9327 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9328 with"obstack", use OBSTACK_ZALLOC.
9329 (dwarf2_frame_ops): Delete.
9330 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9331 (dwarf2_frame_init_reg): Use gdbarch_data.
9332 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9333 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9334 (_initialize_svr4_solib): Update.
9335 * user-regs.c (_initialize_user_regs): Update.
9336 * reggroups.c (_initialize_reggroup): Update.
9337 * regcache.c (_initialize_regcache): Update.
9338 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9339 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9340 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9341 * frame-unwind.c (_initialize_frame_unwind): Update.
9342 * frame-base.c (_initialize_frame_base): Update.
9343 * user-regs.c (user_reg_add): Update.
9344 * reggroups.c (reggroup_add): Update.
9345 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9346 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9347 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9348 * frame-base.c (frame_base_table): Update.
9349 * remote.c (_initialize_remote): Update.
9350 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9352 2004-03-15 Andrew Cagney <cagney@redhat.com>
9354 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9356 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9358 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9359 * frv-linux-tdep.c: New file.
9360 * frv-tdep.c (struct gdbarch_tdep): Add new field
9361 ``sigcontext_reg_addr''.
9362 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9363 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9364 (frv_sigramp_frame_sniffer): New functions.
9365 (frv_sigtramp_frame_unwind): New static global.
9366 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9368 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9369 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9371 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9373 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9374 but not via a call to error(), when unable to read memory.
9376 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9378 * frv-tdep.c (frv_call_dummy_words): Delete.
9379 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9381 2004-03-15 Andrew Cagney <cagney@redhat.com>
9383 * infrun.c (handle_step_into_function, step_over_function): Only
9384 update and use STEP_FRAME_ID when the system is using legacy
9385 frames. Update comments.
9387 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9389 * amd64-linux-tdep.h: Remove file.
9390 * amd64-linux-tdep.c: Don't include "inferior.h" and
9391 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9392 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9393 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9394 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9395 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9397 (user_to_gdb_regmap): Remove variable.
9398 (amd64_linux_gregset_reg_offset): New variable.
9399 (amd64_core_fns): Remove variable.
9400 (fetch_core_registers): Remove function.
9401 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9403 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9404 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9405 * Makefile.in (amd64_linux_tdep_h): Remove.
9406 (amd64-linux-nat.o): Update dependencies.
9407 (amd64-linux-tdep.o): Update dependencies.
9409 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9410 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9412 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9414 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9415 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9417 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9419 * dwarf2read.c (read_structure_type): Rename from
9420 read_structure_scope. Don't create a symbol or call process_die.
9421 Return immediately if die->type is set. Call read_type_die before
9422 dwarf2_add_member_fn.
9423 (process_structure_scope): New function.
9424 (read_enumeration_type, process_enumeration_scope): New functions,
9425 broken out from read_enumeration. Don't create the enumeration
9426 type if it has already been created.
9427 (read_enumeration): Removed.
9428 (process_die): Call read_structure_type, process_structure_scope,
9429 read_enumeration_type, and process_enumeration_scope. Just call
9430 new_symbol for base and subrange types. Add a comment about other
9432 (read_type_die): Call read_enumeration_type.
9433 (add_partial_structure, new_symbol): Update comments.
9435 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9437 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9439 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9441 * tui/tui-win.h (tui_get_cmd_list): Declare.
9442 * tui/tui-win.c (tui_command): New function.
9443 (tui_get_cmd_list): New function.
9444 (_initialize_tui_win): Moved initialization of tui command in
9447 * tui/tui-data.c (init_content_element): Setup new data members.
9448 (init_win_info): Likewise.
9449 (free_content_elements): Free it.
9450 * tui/tui-data.h (struct tui_data_element): Store the register
9452 (struct tui_data_info): Keep the current register group.
9454 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9456 * tui/tui-regs.h (tui_show_registers): Update prototype.
9457 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9458 (tui_resize_all): No need to calculate anything for register window.
9459 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9460 (tui_set_register_element, tui_set_general_regs_content): Remove.
9461 (tui_set_special_regs_content): Remove.
9462 (tui_set_general_and_special_regs_content): Remove.
9463 (tui_set_float_regs_content): Remove.
9464 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9465 (tui_set_regs_content): Remove.
9466 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9467 (tui_v_show_registers_command_support): Remove.
9468 (tui_show_registers): Use a reggroup to specify the registers to show.
9469 (tui_show_register_group): New function.
9470 (tui_display_registers_from): Compute the layout of register window
9471 and refresh with new API; be sure to delete old register windows.
9472 (tui_check_register_values): Update to use tui_get_register and
9474 (tui_display_register): Just refresh the register window part.
9475 (tui_register_format): Format registers and save in tui_data_element.
9476 (tui_get_register): New to combine tui_reg_value_has_changed and
9477 tui_get_register_raw_value; fix to use the new gdb API.
9478 (tui_show_float_command): Renamed tui_reg_float_command.
9479 (tui_show_general_command): Renamed tui_reg_general_command.
9480 (tui_show_special_command): Renamed tui_reg_system_command.
9481 (_initialize_tui_regs): Remove unused commands.
9483 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9485 * NEWS (New native configurations): Mention OpenBSD/amd64.
9487 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9488 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9490 * config/i386/nm-fbsd64.h: Likewise.
9491 * config/i386/nm-obsd.h: Likewise.
9492 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9493 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9495 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9497 * frv-tdep.c (set_variant_scratch_registers): New function.
9498 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9501 From Richard Sandiford <rsandifo@redhat.com>:
9502 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9504 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9506 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9507 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9508 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9509 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9510 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9511 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9512 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9513 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9514 definitions from frv-tdep.c to frv-tdep.h.
9516 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9518 Add shared library support for FR-V FDPIC ABI:
9519 * Makefile.in (solib-frv.o): Add dependencies.
9520 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9522 (frv_push_dummy_call): Add support for FDPIC ABI.
9523 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9525 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9526 (frv_fdpic_find_canonical_descriptor): Declare.
9527 * solib-frv.c: New file.
9528 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9529 * config/frv/tm-frv.h (solib.h): Include.
9531 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9533 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9534 (frv-tdep.o): Update dependencies.
9535 * frv-tdep.h: New file.
9536 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9537 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9539 (struct gdbarch_tdep): Add new member ``frv_abi''.
9540 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9542 (new_variant): Set ``frv_abi'' field.
9543 (gdb_arch_init): Detect FDPIC executables.
9545 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9547 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9550 2004-03-11 Andrew Cagney <cagney@redhat.com>
9552 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9554 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9556 * solist.h (master_so_list): New function.
9557 * solib.c (master_so_list): Likewise.
9558 * solib-svr4.c (enable_break): Iterate over so_list entries
9559 obtained from master list instead of entries obtained directly
9560 via svr4_current_sos().
9562 2004-03-10 Ben Elliston <bje@gnu.org>
9564 * MAINTAINERS: Update my mail address.
9566 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9568 * remote-m32r-sdi.c: Support hardware watchpoint.
9570 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9572 * user-regs.c: Update copyright years.
9573 (struct user_regs): Rename to gdb_user_regs.
9574 (append_user_reg, builtin_user_regs, user_regs_init)
9575 (user_reg_add, user_reg_map_name_to_regnum)
9576 (usernum_to_user_reg): Update.
9578 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9580 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9581 (skip_children): New functions.
9582 (locate_pdi_sibling): Call skip_children.
9584 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9586 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9587 * gdbtypes.c (check_typedef): Update comments.
9589 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9591 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9592 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9593 pointer. Update comment about comp_unit_head.
9594 (struct abbrev_info): Shorten two int flags.
9595 (dwarf_alloc_abbrev): Take a CU argument.
9596 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9597 each time through the loop. Update cleanup argument.
9598 (psymtab_to_symtab_1): Update cleanup call.
9599 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9601 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9602 Just call obstack_free and clear the pointer.
9604 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9606 * infrun.c (handle_inferior_event): Remove short-circuit code for
9607 events in a different thread.
9609 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9611 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9612 print the whole transfer.
9613 (initialize_targets): Update description of "set debug target".
9615 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9617 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9619 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9621 * MAINTAINERS (write after approval): Add myself.
9623 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9625 * sh-tdep.c (sh_print_registers_info): Use for loop.
9626 Don't skip multiple registers when a float register is encountered.
9628 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9631 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9632 to official SH documentation.
9634 2004-03-07 Andrew Cagney <cagney@redhat.com>
9636 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9639 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9641 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9642 (arm_get_next_pc): Handle BX and BLX.
9644 2004-03-07 Andrew Cagney <cagney@redhat.com>
9646 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9647 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9649 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9650 (hppa_target_read_fp): Delete.
9651 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9652 register_virtual_size, max_register_raw_size,
9653 max_register_virtual_size, register_byte, register_size,
9654 target_read_fp, fp_regnum, and register_bytes. Set register_type
9655 instead of register_virtual_type.
9656 (hppa32_register_type, hppa64_register_type): Replace
9657 hppa32_register_virtual_type and hppa64_register_virtual_type.
9658 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9659 (HPPA_FP_REGNUM): Define.
9661 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9663 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9664 (pa_do_registers_info): Delete.
9665 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9666 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9667 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9669 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9670 GDB_TARGET_IS_HPPA code.
9671 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9672 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9673 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9674 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9675 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9676 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9677 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9678 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9679 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9680 (hppa_frameless_function_invocation, hppa64_store_return_value)
9681 (hppa_store_struct_return, hppa64_extract_return_value)
9682 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9683 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9684 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9685 (find_proc_framesize, deposit_21, restore_pc_queue)
9686 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9687 (rp_saved, pc_in_linker_stub): Delete.
9689 Unconditionally enable 64-bit frame and ABI code.
9690 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9691 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9692 push_dummy_frame, fix_call_dummy, push_arguments,
9693 call_dummy_location, extract_return_value, use_struct_convention,
9694 store_return_value, store_struct_return, saved_pc_after_call,
9695 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9696 frame_chain, frame_chain_valid, frameless_function_invocation,
9697 frame_saved_pc, and pop_frame.
9699 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9700 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9701 (hppa_gdbarch_init): Do not set PC_REGNUM.
9703 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9705 * config/alpha/tm-fbsd.h: Remove file.
9706 * config/alpha/fbsd.mt: Tweak comment.
9707 (TM_FILE): Set to tm-alpha.h.
9709 2004-03-05 Andrew Cagney <cagney@redhat.com>
9711 * infrun.c (step_over_function): When non-legacy code, and no
9712 step_frame_id, use the unwinder to get the caller's frame ID.
9714 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9716 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9717 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9718 bfd_arch_unknown. Adjust comment.
9720 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9721 * i386obsd-tdep.c: Correct spelling in comment.
9722 * i386nbsd-tdep.c: Correct spelling in comment.
9723 * sparc-tdep.c: Correct spelling in comments.
9725 2004-03-05 David Carlton <carlton@kealia.com>
9727 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9730 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9732 * sparc-tdep.c: Fix typo in comment.
9734 2004-03-04 J. Brobecker <brobecker@gnat.com>
9736 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9738 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9740 * dwarf2read.c: Add comment describing memory lifetimes.
9741 (struct dwarf2_pinfo): Update comment.
9742 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9743 (read_enumeration, new_symbol): Don't use obsavestring.
9745 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9747 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9748 instead of amd64_fill_fxsave.
9749 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9750 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9752 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9753 Reorganize code a bit.
9755 2004-03-04 Orjan Friberg <orjanf@axis.com>
9757 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9758 when the frame pointer is pushed. Don't set the frame pointer's
9759 address on the stack unless it's actually located there.
9760 Set the SRP's address on the stack correctly when the PC is still in
9762 (cris_return_value): New function.
9763 (cris_gdbarch_init): Clear deprecated store_return_value,
9764 extract_return_value.
9766 2004-03-02 Jim Blandy <jimb@redhat.com>
9768 * stabsread.c (reg_value_complaint): The maximum register number
9769 is one less than the number of registers.
9771 2004-03-02 Andrew Cagney <cagney@redhat.com>
9773 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9774 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9775 trailing comma and redundant assignment of I386_ST0_REGNUM.
9776 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9777 32-bit segment registers.
9779 2004-03-01 Andrew Cagney <cagney@redhat.com>
9781 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9782 use frame_relative_level and get_next_frame.
9784 2004-02-29 Andrew Cagney <cagney@redhat.com>
9786 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9787 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9788 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9791 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9793 * inflow.c (terminal_inferior): Don't give up the terminal if we
9794 previously couldn't get the inferior's terminal state.
9796 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9798 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9801 2004-02-28 Andrew Cagney <cagney@redhat.com>
9803 * NEWS: Refer to GDB 6.1.
9804 * README: Refer to GDB 6.1.
9805 * PROBLEMS: Refer to GDB 6.1.
9807 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9809 * thread-db.c (disable_thread_signals): Remove unused function.
9811 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9813 * amd64-nat.c: Include "gdb_string.h".
9814 (amd64_collect_native_gregset): Zero-extend the 32-bit
9815 general-purpose registers and %eip.
9817 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9818 * amd64-tdep.c (amd64_collect_fxsave): New function.
9819 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9821 * i387-tdep.h: Update copyright year.
9822 (i387_collect_fxsave): New prototype.
9823 * i387-tdep.c: Update copyright year.
9824 (i387_collect_fxsave): New function containing most of the code
9825 from i387_fill_fxsave.
9826 (i387_fill_fxsave): Call i387_collect_fxsave.
9828 2004-02-28 Andrew Cagney <cagney@redhat.com>
9830 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9831 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9833 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9835 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9837 2004-02-28 Andrew Cagney <cagney@redhat.com>
9839 * utils.c: Use "", instead of <>, to include readline.
9840 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9841 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9842 * source.c, solib.c, exec.c, event-top.c: Ditto.
9843 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9844 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9845 * Makefile.in: Update all dependencies.
9846 (readline_tilde_h, readline_history_h): Define.
9847 (readline_headers): Delete.
9849 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9851 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9852 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9853 "config/i386/tm-lx64.h".
9855 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9856 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9857 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9859 2004-02-28 Andrew Cagney <cagney@redhat.com>
9861 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9863 * breakpoint.c (_initialize_breakpoint): Use
9864 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9865 Add help to show command.
9867 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9869 * i386-nat.c: Reformat to be closer to coding standards.
9870 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9871 `retval'. Make variables `align' and `size' local to while-loop.
9872 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9873 (_initialize_i386_nat): New prototype.
9875 * tui/tui.c: Include <readline/readline.h> instead of
9876 "readline/readline.h". Include it after <term.h> and
9879 2004-02-27 Andrew Cagney <cagney@redhat.com>
9881 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9882 the new frame unwind code.
9883 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9884 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9887 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9888 "return_value" and "push_dummy_call".
9889 (hppa32_use_struct_convention): Delete unused function.
9890 (hppa32_store_return_value): Delete unused function.
9891 (hppa32_extract_return_value): Delete unused function.
9892 (hppa32_stack_align): Delete function.
9894 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9896 * coffread.c (enter_linenos): Don't let rawptr reference memory
9897 outside linetab[]'s limits.
9899 2004-02-27 Andrew Cagney <cagney@redhat.com>
9901 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9902 inferior stack space - the stack needs to grow upwards.
9903 (hppa32_frame_align): New function.
9904 (hppa64_frame_align): Replace hppa_frame_align.
9905 (hppa_gdbarch_init): Update.
9907 2004-02-26 Orjan Friberg <orjanf@axis.com>
9909 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9910 (dwarf2-frame.h): Include.
9911 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9912 Remove static variables related to ABI setting.
9913 (struct gdbarch_tdep): Remove cris_abi member.
9914 (struct frame_extra_info): Remove.
9915 (cris_unwind_cache, stack_item): New structs.
9916 (cris_frame_unwind, cris_frame_base): New variables.
9917 (push_stack_item, pop_stack_item)
9918 (cris_frame_unwind_cache, cris_frame_this_id)
9919 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9920 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9921 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9922 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9923 (cris_reg_struct_has_addr): New functions.
9924 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9925 (cris_frame_saved_pc, cris_saved_pc_after_call,
9926 (cris_store_struct_return, cris_frameless_function_invocation)
9927 (cris_pop_frame, cris_skip_prologue_main)
9928 (cris_abi_original_store_return_value)
9929 (cris_abi_v2_store_return_value)
9930 (cris_abi_original_extract_return_value)
9931 (cris_abi_v2_extract_return_value)
9932 (cris_abi_original_reg_struct_has_addr)
9933 (cris_abi_v2_reg_struct_has_addr)
9934 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9935 (cris_push_return_address, cris_abi_update): Remove.
9936 (_initialize_cris_tdep): Remove ABI command.
9937 (cris_dump_tdep): Ditto.
9938 (cris_gdbarch_init): Remove ABI command.
9939 Set store_return_value, extract_return_value, push_dummy_code,
9940 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9941 frame_unwind_append_sniffer, frame_base_set_default.
9942 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9943 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9944 sizeof_call_dummy_words, get_saved_register, push_return_address,
9945 pop_frame, store_struct_return, frame_init_saved_regs,
9946 init_extra_frame_info, frameless_function_invocation, frame_chain,
9947 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9950 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9952 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9953 * valprint.c (print_hex_chars): Change from static to external.
9954 (print_char_chars): New function.
9955 * printcmd.c (print_scalar_formatted): For integer and enum types
9956 that are longer than LONGEST, perform processing via appropriate
9957 print_*_chars routines.
9959 2004-02-26 Andrew Cagney <cagney@redhat.com>
9961 * Makefile.in: Update dependencies.
9962 Changes from Ulrich Weigand,
9963 * s390-tdep.c: Include "dwarf2-frame.h".
9964 (s390_dwarf2_frame_init_reg): New function.
9965 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9966 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9968 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9970 * breakpoint.c (pending_break_support): New setting variable.
9971 (break_command_1): Account for pending_break_support setting
9972 when creating pending breakpoints.
9973 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9974 (_initialize_breakpoint): Add "set breakpoint pending" and
9975 "show breakpoint pending" commands.
9977 2004-02-26 Andrew Cagney <cagney@redhat.com>
9980 * charset.c (backslashable, backslashed, represented): Remove 'e'
9981 from list of escaped characters, not part of ISO-C.
9983 2004-02-25 J. Brobecker <brobecker@gnat.com>
9985 From Peter Schauer <schauer@pdf.de>:
9986 * tui/tui.c: Move system header includes after local includes.
9987 Fixes a build failure on solaris systems.
9989 2004-02-25 J. Brobecker <brobecker@gnat.com>
9991 * configure.in: Refine the previous change.
9992 * configure: Regenerate.
9994 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9996 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9997 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9998 "amd64-tdep.h" instead of "x86-64-tdep.h".
9999 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10000 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10001 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10002 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10003 and "x86-64-tdep.c".
10004 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10005 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10006 and "x86-64-tdep.c".
10007 * amd64bsd-nat.c: Update copyright year.
10008 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10009 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10011 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10013 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10015 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10017 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10019 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10021 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10022 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10023 * Makefile.in (amd64_linux_tdep_h): Renamed from
10024 x86_64_linux_tdep_h.
10025 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10026 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10027 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10028 (amd64obsd-tdep.o): Update dependencies.
10029 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10031 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10033 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10034 amd64-linux-nat.c amd64-linux-tdep.c.
10035 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10036 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10037 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10038 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10039 amd64-tdep.o and amd64-linux-tdep.o.
10040 (TM_FILE): Set to tm-linux64.h.
10041 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10042 (NAT_FILE): Set to nm-linux64.h.
10043 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10044 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10046 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10048 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10051 2004-02-25 Roland McGrath <roland@redhat.com>
10053 * remote.c (remote_protocol_qPart_auxv): New variable.
10054 (init_all_packet_configs): Initialize it.
10055 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10056 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10057 (show_remote_cmd): Call it.
10058 (_initialize_remote): Initialize commands.
10059 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10060 service TARGET_OBJECT_AUXV requests.
10062 2004-02-25 J. Brobecker <brobecker@gnat.com>
10064 * configure.in: Make sure that the wborder function is available.
10065 Otherwise, search for it in the cur_colr library.
10066 * configure: Regenerate.
10068 2004-02-25 Andrew Cagney <cagney@redhat.com>
10070 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10072 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10074 * config/i386/tm-x86-64linux.h: Tweak comments.
10076 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10078 * MAINTAINERS: Add self to write-after-approval list.
10080 2004-02-25 Andrew Cagney <cagney@redhat.com>
10082 PR cli/1566. Problem found, and fix suggested by David Allan.
10083 * cli/cli-script.c (execute_control_command): Unconditionally
10084 install a cleanup. Default "ret" to "invalid_control". Use
10085 "break" instead of "return" to escape from the switch.
10087 2004-02-24 J. Brobecker <brobecker@gnat.com>
10089 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10090 with the lines macro defined in term.h on AiX.
10091 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10092 a collision with the label_width macro defined in term.h on AiX.
10094 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10096 Committed by Kevin Buettner <kevinb@redhat.com>.
10098 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10099 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10100 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10101 instead of ia64_write_pc().
10102 * ia64-linux-tdep.c (regcache.h): Include.
10103 (ia64_linux_write_pc): New function.
10105 2004-02-23 Roland McGrath <roland@redhat.com>
10107 * auxv.c (info_auxv_command): Fix typos in error messages.
10109 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10111 * x86-64-tdep.h: Tweak comment.
10112 (enum amd64_regnum): New.
10113 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10114 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10115 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10116 (X86_64_XMM1_REGNUM): Removed.
10117 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10118 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10119 prototypes for renamed functions.
10120 * x86-64-tdep.c: Fix typo.
10121 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10123 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10124 Use constants from `enum amd64_regnum' for register numbers.
10125 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10126 (amd64_analyze_prologue, amd64_frame_cache,
10127 amd64_sigtramp_frame_cache): Use constants from `enum
10128 amd64_regnum' for register numbers.
10129 (amd64_supply_fpregset): Adjust for renamed functions.
10130 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10131 `enum amd64_regnum' for register numbers.
10132 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10133 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10134 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10135 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10136 (amd64_linux_fill_gregset): Adjust for renamed macros.
10137 (fetch_core_registers): Adjust for renamed functions.
10138 (amd64_linux_init_abi): Adjust for renamed functions.
10139 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10141 * amd64-nat.c: Adjust for renamed macros.
10142 * amd64bsd-nat.c (fetch_inferior_registers)
10143 (store_inferior_registers): Use constants from `enum amd64_regnum'
10144 for register numbers. Adjust for renamed variables.
10145 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10147 (_initialize_amd64fbsd_nat): Use constants from `enum
10148 amd64_regnum' for register numbers.
10149 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10150 `enum amd64_regnum' for register numbers.
10151 (amd64fbsd_init_abi): Adjust for renamed functions.
10152 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10153 `enum amd64_regnum' for register numbers.
10154 (amd64nbsd_init_abi): Adjust for renamed functions.
10155 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10156 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10157 `enum amd64_regnum' for register numbers.
10158 (amd64obsd_init_abi): Adjust for renamed functions.
10159 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10161 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10163 * breakpoint.c (print_one_breakpoint): Do not output spaces
10164 after printing <PENDING> for a pending breakpoint.
10166 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10168 * printcmd.c (print_scalar_formatted): Initialize val_long
10169 to remove compiler warning message.
10171 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10173 * defs.h (nquery, yquery): New prototypes.
10174 * breakpoint.c (break_command_1): Use new nquery interface.
10175 * utils.c (defaulted_query, nquery, yquery): New functions.
10177 2004-02-23 Andrew Cagney <cagney@redhat.com>
10179 * hppa-tdep.c (hppa_frame_align): New function.
10180 (hppa32_push_dummy_call): New function.
10181 (hppa64_push_dummy_call): New function.
10182 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10185 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10186 FIX_CALL_DUMMY when push_dummy_call is available.
10187 (call_function_by_hand, push_dummy_code): Ditto.
10189 2004-02-22 Andrew Cagney <cagney@redhat.com>
10191 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10192 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10193 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10194 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10195 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10196 call_dummy_location to ON_STACK.
10198 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10200 * x86-64-linux-tdep.c: Tweak comment.
10201 (amd64_linux_supply_gregset): Renamed from
10202 x86_64_linux_supply_gresget.
10203 (amd64_linux_fill_gregset): Renamed from
10204 x86_64_linux_fill_gregset.
10205 (fetch_core_registers): Adjust for renamed functions.
10206 (amd64_core_fns): Renamed from x86_64_core_fns.
10207 (amd64_linux_sigtramp_start): Renamed from
10208 x86_64_linux_sigtramp_start.
10209 (amd64_linux_pc_in_sigtramp): Renamed from
10210 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10211 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10212 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10213 (amd64_linux_sigcontext_addr): Renamed from
10214 x86_64_linux_sigcontext_addr.
10215 (amd64_linux_sc_reg_offset): Renamed from
10216 x86_64_linux_sc_reg_offset.
10217 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10218 Adjust for renamed functions and variables.
10219 (_initialize_amd64_linux_tdep): Renamed from
10220 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10222 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10223 Adjust for renamed functions.
10225 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10226 from x86_64_linux_gregset64_reg_offset.
10227 (amd64_linux_gregset32_reg_offset): Rename from
10228 x86_64_linux_gregset64_reg_offset.
10229 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10230 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10231 (amd64_linux_dr_set_control): Renamed from
10232 x86_64_linux_dr_set_control. Adjust for renamed functions.
10233 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10234 Adjust for renamed functions.
10235 (amd64_linux_dr_reset_addr): Renamed from
10236 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10237 (amd64_linux_dr_get_status): Renamed from
10238 x86_64_linux_dr_get_status. Adjust for renamed functions.
10239 (_initialize_amd64_linux_nat): Renamed from
10240 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10242 * config/i386/nm-x86-64linux.h: Update copyright year.
10243 Adjust for renamed functions.
10245 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10246 amd64fbsd_sigtramp_start.
10247 (amd64fbsd_sigtramp_end_addr): Renamed from
10248 amd64fbsd_sigtramp_end.
10249 (amd64fbsd_init_abi): Adjust for renamed variables.
10250 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10252 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10253 amd64fbsd_sigtramp_start.
10254 (amd64fbsd_sigtramp_end_addr): Renamed from
10255 amd64fbsd_sigtramp_end.
10257 2004-02-22 Andrew Cagney <cagney@redhat.com>
10259 * hppa-tdep.c (hppa32_return_value): New function.
10260 (hppa64_return_value): New function.
10261 (hppa_gdbarch_init): Set return_value; keep disabled.
10263 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10264 struct-return and inferior function call methods.
10266 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10268 (struct hppa_frame_cache): Define.
10269 (hppa_frame_cache, hppa_frame_this_id): New functions.
10270 (hppa_frame_prev_register): New function.
10271 (hppa_frame_unwind, hppa_frame_base): New variables.
10272 (hppa_frame_unwind_sniffer): New function.
10273 (hppa_frame_base_address, hppa_unwind_pc): New function.
10274 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10275 sniffer, and frame base sniffer; keep disabled.
10276 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10277 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10279 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10280 to predicates for "seriously old code".
10282 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10285 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10287 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10289 * config/pa/tm-hppa.h: Update copyright.
10290 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10291 (deprecated_init_frame_pc_default): Delete declaration.
10292 (hppa_frame_init_saved_regs): Delete declaration.
10293 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10294 * hppa-tdep.c: Include "arch-utils.h".
10295 (hppa_gdbarch_init): Set deprecated init_frame_pc
10296 and deprecated frame_init_saved_regs.
10297 (hppa_frame_init_saved_regs): Make static.
10299 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10301 Remove old 386BSD support.
10302 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10303 * configure.host: Remove i[34567]86-*-bsd*.
10304 * configure.tgt: Remove i[34567]86-*-bsd*.
10305 * i386b-nat.c: Removed.
10306 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10307 (i386b-nat.o): Remove dependencies.
10309 * config/i386/i386bsd.mh: Removed.
10310 * config/i386/i386bsd.mt: Removed.
10311 * config/i386/nm-i386bsd.h: Removed.
10312 * config/i386/tm-i386bsd.h: Removed.
10313 * config/i386/xm-i386bsd.h: Removed.
10315 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10317 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10318 (amd64fbsd_init_abi): Set link map offsets.
10319 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10320 (amd64nbsd_init_abi): Set link map offsets.
10321 * amd64obsd-tdep.c: Include "solib-svr4.h".
10322 (amd64obsd_init_abi): Set link map offsets.
10323 * i386fbsd-tdep.c: Include "solib-svr4.h".
10324 (i386fbsd_init_abi): Set link map offsets.
10325 * i386nbsd-tdep.c: Include "solib-svr4.h".
10326 (i386nbsdelf_init_abi): Set link map offsets.
10327 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10328 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10329 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10330 solib-legacy.o and core-aout.o. Reformat.
10331 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10332 solib-svr4.o, solib-legacy.o. Reformat.
10333 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10334 * config/i386/nbsdelf.mh: Reformat.
10335 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10336 solib-svr4.o, solib-legacy.o and corelow.o.
10337 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10338 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10339 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10340 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10341 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10342 (TM_FILE): Set to tm-fbsd.h.
10343 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10344 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10346 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10348 (TM_FILE): Set to nm-nbsd.h.
10349 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10350 Simplify shared library support. Don't include "elf/common.h".
10351 (SVR4_SHARED_LIBS): Don't define.
10352 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10354 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10355 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10356 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10357 Don't include "i386/tm-i386.h". Include "solib.h".
10358 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10359 Don't include "i386/tm-i386.h".
10360 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10361 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10362 Include "i386/xm-i386.h".
10363 (HOST_LONG_DOUBLE_FORMAT): Remove.
10365 Fix OpenBSD/i386 sigtramp recognition.
10366 * i386-tdep.h: Update copyright year.
10367 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10368 (i386bsd_sigtramp_end): New prototypes.
10369 (i386fbsd_sigtramp_start_addr): Renamed from
10370 i386fbsd_sigtramp_start.
10371 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10372 (i386obsd_sigtramp_start_addr): Renamed from
10373 i386obsd_sigtramp_start.
10374 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10375 * i386bsd-tdep.c: Update copyright year.
10376 (i386bsd_pc_in_sigtramp): Make public.
10377 * i386fbsd-nat.c: Update copyright year.
10378 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10379 * i386fbsd-tdep.c: Update copyright year.
10380 (i386fbsd_sigtramp_start_addr): Renamed from
10381 i386fbsd_sigtramp_start.
10382 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10383 (i386fbsdaout_init_abi): Adjust for renamed variables.
10384 * i386obsd-nat.c: Update copyright year.
10385 (_initialize_i386obsd_nat): Adjust for renamed variables.
10386 * i386obsd-tdep.c: Include "target.h".
10387 (i386obsd_page_size): New variable.
10388 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10389 (i386obsd_sigtramp_end): New functions.
10390 (i386obsd_sigtramp_start_addr): Renamed from
10391 i386obsd_sigtramp_start.
10392 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10393 (i386obsd_init_abi): Adjust for renamed variables. Set
10394 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10395 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10397 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10398 trampoline change in OpenBSD kernel.
10400 * amd64-nat.c: Update copyright year.
10401 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10402 architecture from REGCACHE.
10404 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10405 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10407 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10409 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10410 i[34567]86-*-openbsd3.[0-3].
10411 * config/i386/obsdaout.mh: New file.
10413 * config/i386/obsd.mh (MH_FLAGS): Remove.
10416 * i386obsd-tdep.c: Update copyright years. Include
10418 (i386obsd_init_abi): Don't set regset_from_core_section here.
10419 (i386obsd_aout_init_abi): New function. Set
10420 regset_from_core_section here.
10421 (i386obsd_elf_init_abi): New function.
10422 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10423 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10424 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10425 (TM_FILE): Set to tm-nbsd.h.
10427 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10430 * solib-svr4.h: Update copyright year.
10431 (svr4_ilp32_fetch_link_map_offsets)
10432 (svr4_lp64_fetch_link_map_offsets): New prototype.
10433 * solib-svr4.c: Update copyright year.
10434 (svr4_ilp32_fetch_link_map_offsets)
10435 (svr4_lp64_fetch_link_map_offsets): New function.
10437 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10439 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10440 to the partial symbol table.
10442 2004-02-20 J. brobecker <brobecker@gnat.com>
10444 * PROBLEMS: Add description of problem documented under gdb/1560.
10446 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10448 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10450 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10452 (amd64obsd_init_abi): Reorder initializations. Use
10453 amd64obsd_r_reg_offset to initialize the general-purpose register
10454 set details. Set regset_from_core_section.
10455 (_initialize_amd64obsd_tdep): Rename from
10456 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10457 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10458 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10460 * NEWS (New native configurations): Mention OpenBSD/alpha.
10461 * configure.tgt: Add alpha*-*-openbsd*.
10462 * configure.host: Add alpha*-*-openbsd*.
10463 * alphanbsd-tdep.c: Update copyright year.
10464 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10466 2004-02-20 Andrew Cagney <cagney@redhat.com>
10469 * configure.tgt: Delete target "none-*-*".
10470 * configure.host: Delete host "none-*-*".
10471 * config/none/none.mh: Delete file.
10472 * config/none/none.mt: Delete file.
10473 * config/none/xm-none.h: Delete file.
10474 * config/none/tm-none.h: Delete file.
10475 * config/none/nm-none.h: Delete file.
10477 2004-02-19 Fred Fish <fnf@redhat.com>
10479 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10480 cache->uses_fp prior to setting it.
10482 2004-02-19 Fred Fish <fnf@redhat.com>
10484 Fix for PR breakpoint/1558.
10485 * sh-tdep.c (IS_JSR): New macro.
10486 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10488 2004-02-19 Jim Blandy <jimb@redhat.com>
10490 * findvar.c (value_from_register): Doc fix.
10492 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10494 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10495 type being greater than sizeof of host's LONGEST. Always use
10496 unpack_long() unless format 'f' chosen.
10498 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10500 Committed by Elena Zannoni <ezannoni@redhat.com>
10502 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10503 contains a symbol wich is the best, non-exact match for the given
10504 pc. Update comments.
10506 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10508 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10509 macro, which was part of the now removed Mach 3 port.
10510 * utils.c (request_quit): Ditto.
10512 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10514 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10515 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10517 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10519 Committed by Mark Kettenis <kettenis@gnu.org>.
10521 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10524 2004-02-18 Andrew Cagney <cagney@redhat.com>
10526 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10527 CONFIG_INSTALL and CONFIG_UNINSTALL.
10528 * configure: Re-generate.
10529 * interps.h (INTERP_TUI): Define.
10530 * Makefile.in: Update dependencies.
10532 (tui-main.o): Specify dependencies.
10533 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10534 * tui/tui-main.c: New file.
10536 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10538 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10539 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10541 * configure.host: Add x86_64-*-openbsd*.
10542 * configure.tgt: Add x86_64-*-openbsd*.
10543 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10545 * tui/tui.c: Don't include <malloc.h>.
10547 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10548 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10551 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10552 static. Remove extraneous whitespace.
10553 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10556 2004-02-17 Jim Blandy <jimb@redhat.com>
10558 * findvar.c (value_from_register): Doc fix.
10560 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10562 Committed by Jim Blandy <jimb@redhat.com>.
10564 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10565 CORE_ADDR as type for selectors. Correct types for GNU run time
10566 message lookup function to use double indirection.
10567 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10568 * objc-lang.h (lookup_child_selector): Adapt prototype.
10570 * s390-nat.c (SUBOFF): New macro.
10571 (supply_gregset, fill_gregset): Use it to handle debugging
10572 of 32-bit exectuables running under a 64-bit kernel.
10573 * s390-tdep.c: Include "solib-svr4.h".
10574 (s390_svr4_fetch_link_map_offset): New function.
10575 (s390x_svr_fetch_link_map_offset): Likewise.
10576 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10577 * Makefile.in (s390-tdep.o): Update dependencies.
10579 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10581 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10582 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10583 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10584 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10585 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10586 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10587 S390_SIGNAL_FRAMESIZE,
10588 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10589 (struct frame_extra_info): Remove.
10590 (s390_memset_extra_info): Remove.
10591 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10592 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10593 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10594 (is_rse): Renamed to ...
10595 (is_rsy): ... this. Support long displacements.
10596 (is_rxe): Renamed to ...
10597 (is_rxy): ... this. Support long displacements.
10598 (compute_x_addr): Support long displacements.
10599 (struct s390_prologue_data): New data type.
10600 (s390_on_stack): Change API to use struct s390_prologue_data.
10601 (s390_store): Reimplement.
10602 (s390_load): New function.
10603 (s390_get_signal_frame_info): Remove.
10604 (s390_get_frame_info): Remove, replace by ...
10605 (s390_analyze_prolog): ... this new function.
10606 (s390_check_function_end): Remove.
10607 (s390_function_start): Remove.
10608 (s390_frameless_function_invokation): Remove.
10609 (s390_is_sigreturn): Remove.
10610 (s390_init_frame_pc_first): Remove.
10611 (s390_init_frame_extra_info): Remove.
10612 (s390_frame_init_saved_regs): Remove.
10613 (s390_frame_saved_pc_nofix): Remove.
10614 (s390_frame_saved_pc): Remove.
10615 (s390_frame_chain): Remove.
10616 (s390_fp_regnum, s390_read_fp): Remove.
10617 (s390_pop_frame_regular, s390_pop_frame): Remove.
10618 (s390_saved_pc_after_call): Remove.
10619 (s390_skip_prologue): Reimplement.
10620 (s390_in_function_epilogue_p): Support long displacements.
10621 (struct s390_unwind_cache): New data structure.
10622 (s390_frame_unwind_cache): New function.
10623 (s390_prologue_frame_unwind_cache): Likewise.
10624 (s390_backchain_frame_unwind_cache): Likewise.
10625 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10626 (s390_frame_unwind): Define.
10627 (s390_frame_sniffer): New function.
10628 (struct s390_pltstub_unwind_cache): New data structure.
10629 (s390_pltstub_frame_unwind_cache): New function.
10630 (s390_pltstub_frame_this_id): Likewise.
10631 (s390_pltstub_frame_prev_register): Likewise.
10632 (s390_pltstub_frame_unwind): Define.
10633 (s390_pltstub_frame_sniffer): New function.
10634 (struct s390_sigtramp_unwind_cache): New data structure.
10635 (s390_sigtramp_frame_unwind_cache): New function.
10636 (s390_sigtramp_frame_this_id): Likewise.
10637 (s390_sigtramp_frame_prev_register): Likewise.
10638 (s390_sigtramp_frame_unwind): Define.
10639 (s390_sigtramp_frame_sniffer): New function.
10640 (s390_frame_base_address, s390_local_base_address): New functions.
10641 (s390_frame_base): Define.
10642 (s390_unwind_pc, s390_unwind_sp): New function.
10643 (s390_push_dummy_call): Use new frame base location.
10644 (s390_unwind_dummy_id): Likewise.
10645 (s390_gdbarch_init): Remove calls to:
10646 set_gdbarch_frameless_function_invocation,
10647 set_gdbarch_deprecated_init_frame_pc,
10648 set_gdbarch_deprecated_frame_chain,
10649 set_gdbarch_deprecated_frame_init_saved_regs,
10650 set_gdbarch_deprecated_pop_frame,
10651 set_gdbarch_deprecated_init_extra_frame_info,
10652 set_gdbarch_deprecated_init_frame_pc_first,
10653 set_gdbarch_deprecated_target_read_fp,
10654 set_gdbarch_deprecated_frame_saved_pc,
10655 set_gdbarch_deprecated_saved_pc_after_call,
10656 set_gdbarch_deprecated_fp_regnum.
10658 set_gdbarch_in_solib_call_trampoline,
10659 frame_unwind_append_sniffer,
10660 frame_base_set_default,
10661 set_gdbarch_unwind_pc,
10662 set_gdbarch_unwind_sp.
10663 * Makefile.in (s390-tdep.o): Update dependencies.
10665 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10666 (S390_STACK_FRAME_OVERHEAD): Remove.
10667 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10668 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10669 (s390_promote_integer_argument): Remove.
10670 (s390_cannot_extract_struct_value_address): Remove.
10671 (s390_use_struct_convention, s390_store_struct_return): Remove.
10672 (s390_extract_return_value, s390_store_return_value): Remove.
10673 (s390_return_value_convention, s390_return_value): New functions.
10674 (is_float_singleton): Handle typedefs.
10675 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10676 Remove, replace by ...
10677 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10678 s390_function_arg_integer): ... these new functions.
10679 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10680 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10681 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10684 set_gdbarch_deprecated_store_struct_return,
10685 set_gdbarch_deprecated_extract_return_value,
10686 set_gdbarch_deprecated_store_return_value,
10687 set_gdbarch_use_struct_convention,
10688 set_gdbarch_extract_struct_value_address,
10689 set_gdbarch_deprecated_pc_in_call_dummy,
10690 set_gdbarch_deprecated_push_arguments,
10691 set_gdbarch_deprecated_save_dummy_frame_tos,
10692 set_gdbarch_deprecated_push_return_address,
10693 set_gdbarch_deprecated_sizeof_call_dummy_words,
10694 set_gdbarch_deprecated_call_dummy_words,
10695 set_gdbarch_deprecated_dummy_write_sp.
10697 set_gdbarch_push_dummy_call,
10698 set_gdbarch_unwind_dummy_id,
10699 set_gdbarch_return_value.
10701 * config/s390/nm-linux.h: Update comments.
10702 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10703 (STOPPED_BY_WATCHPOINT): Redefine.
10704 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10705 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10706 (s390_stopped_by_watchpoint): Likewise.
10707 (watch_area_cnt): Remove.
10708 * s390-nat.c: Update comments.
10709 (watch_area): Remove typedef.
10710 Global replace watch_area by struct watch_area.
10711 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10712 (s390_stopped_by_watchpoint): Remove pid argument,
10713 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10714 (s390_fix_watch_points): Remove pid argument,
10715 use s390_inferior_tid. Recompute area spanned by watchpoints.
10716 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10717 argument. Reimplement.
10719 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10720 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10721 (FETCH_INFERIOR_REGISTERS): Define.
10722 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10724 * config/s390/s390x.mt: Remove.
10725 * config/s390/tm-s390.h: Remove.
10726 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10727 (TARGET_ELF64): Remove.
10728 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10729 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10730 s390*-*-* case; always set gdb_target to s390.
10731 * regformats/reg-s390.dat: Remove control registers.
10732 * regformats/reg-s390x.dat: Likewise.
10733 * s390-tdep.h: New file.
10734 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10735 Include "inferior.h" and "s390-tdep.h".
10736 Remove private definition of offsetof.
10737 (s390_register_u_addr): Remove.
10738 (regmap_gregset, regmap_fpregset): Define.
10739 (supply_gregset, fill_gregset): Reimplement.
10740 (supply_fpregset, fill_fpregset): Likewise.
10741 (s390_inferior_tid): New function.
10742 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10743 (fetch_inferior_registers, store_inferior_registers): Likewise.
10744 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10745 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10746 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10747 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10748 (struct gdbarch_tdep): Define.
10749 (struct s390_register_info): Define.
10750 (s390_register_info): New variable.
10751 (s390_register_name): Reimplement.
10752 (s390_register_type): New function.
10753 (s390_register_raw_size, s390x_register_raw_size): Remove.
10754 (s390_cannot_fetch_register): Remove.
10755 (s390_register_byte): Remove.
10756 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10757 (s390_dwarf_regmap): New variable.
10758 (s390_dwarf_reg_to_regnum): New function.
10759 (s390_stab_reg_to_regnum): Remove.
10760 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10761 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10762 (s390_convert_register_p): Likewise.
10763 (s390_register_to_value, s390_value_to_register): Likewise.
10764 (s390_register_reggroup_p): Likewise.
10765 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10766 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10767 (s390_supply_regset, s390_regset_from_core_section): New functions.
10768 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10769 (S390_FPR_SIZE): Likewise.
10770 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10771 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10772 (S390_NUM_GPRS): Move here from tm-s390.h.
10773 (S390_NUM_FPRS): Likewise.
10774 (s390_in_function_epilogue_p): New function.
10775 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10776 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10777 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10778 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10779 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10781 set_gdbarch_deprecated_max_register_raw_size,
10782 set_gdbarch_deprecated_max_register_virtual_size,
10783 set_gdbarch_deprecated_register_byte,
10784 set_gdbarch_cannot_fetch_register,
10785 set_gdbarch_cannot_store_register,
10786 set_gdbarch_deprecated_register_size,
10787 set_gdbarch_deprecated_register_raw_size,
10788 set_gdbarch_deprecated_register_virtual_size,
10789 set_gdbarch_deprecated_register_virtual_type,
10790 set_gdbarch_deprecated_register_bytes.
10792 set_gdbarch_num_pseudo_regs,
10793 set_gdbarch_register_type,
10794 set_gdbarch_convert_register_p,
10795 set_gdbarch_register_to_value,
10796 set_gdbarch_value_to_register,
10797 set_gdbarch_register_reggroup_p,
10798 set_gdbarch_regset_from_core_section,
10799 set_gdbarch_pseudo_register_read,
10800 set_gdbarch_pseudo_register_write,
10801 set_gdbarch_in_function_epilogue_p.
10802 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10803 (s390_tdep_h): New variable.
10805 2004-02-17 Jim Blandy <jimb@redhat.com>
10807 * findvar.c (value_from_register): If the type has no length, just
10808 return an acceptable value --- don't report an internal error.
10810 * stabsread.c (read_type): If we find any type numbers that are
10811 forward references, complain if the references aren't resolved by
10812 the time we're finished reading.
10813 (cleanup_undefined_types): Make error message more appropriate for
10816 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10818 * Makefile.in (defs_h): Remove dependency on progress_h.
10819 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10821 * main.c (captured_main): Delete use of START_PROGRESS and
10824 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10826 * objfiles.c (terminate_minimal_symbol_table): Add back
10827 initialization of MSYMBOL_TYPE.
10829 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10831 Committed by Andrew Cagney.
10832 * Makefile.in (ia64_tdep_h): New macro.
10833 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10834 (ia64-tdep.o): Likewise.
10835 * ia64-tdep.h: New file.
10836 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10837 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10838 (ia64_aix_sigcontext_register_address): Likewise.
10839 (ia64_linux_getunwind_table): Delete declaration.
10840 * ia64-linux-tdep.c: Likewise.
10842 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10844 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10845 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10846 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10848 2004-02-17 Andrew Cagney <cagney@redhat.com>
10850 * symtab.c (skip_prologue_using_sal): New function.
10851 * symtab.h (skip_prologue_using_sal): Declare.
10852 * frv-tdep.c: Include "symtab.h".
10853 (skip_prologue_using_sal): Delete function.
10854 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10855 * rs6000-tdep.c (refine_prologue_limit): Mention
10856 skip_prologue_using_sal.
10857 * ia64-tdep.c (refine_prologue_limit): Ditto.
10858 * Makefile.in: Update dependencies.
10860 2004-02-16 Andrew Cagney <cagney@redhat.com>
10862 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10863 START_INFERIOR_TRAPS_EXPECTED.
10864 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10865 START_INFERIOR_TRAPS_EXPECTED.
10866 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10868 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10869 macro, moved to "nm-osf.h". Update copyright.
10870 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10873 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10874 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10875 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10876 frameless_look_for_prologue.
10877 * frame.h (legacy_frameless_look_for_prologue): Rename
10878 frameless_look_for_prologue.
10879 * gdbarch.h, gdbarch.c: Re-generate.
10880 * sh64-tdep.c (sh64_gdbarch_init): Update.
10881 * sh-tdep.c (sh_gdbarch_init): Update.
10882 * s390-tdep.c (s390_gdbarch_init): Update.
10883 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10884 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10885 * m68k-tdep.c (m68k_gdbarch_init): Update.
10886 (delta68_frame_args_address): Update.
10887 * m32r-tdep.c (m32r_gdbarch_init): Update.
10888 * hppa-tdep.c (hppa_gdbarch_init): Update.
10889 * h8300-tdep.c (h8300_gdbarch_init): Update.
10890 * frv-tdep.c (frv_gdbarch_init): Update.
10891 (frv_frameless_function_invocation): Update.
10892 * cris-tdep.c (cris_gdbarch_init): Update.
10893 (cris_frameless_function_invocation): Update.
10894 * avr-tdep.c (avr_gdbarch_init): Update.
10895 * arm-tdep.c (arm_gdbarch_init): Update.
10896 * stack.c (frame_info): Update, call predicate.
10897 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10898 * frame.c (legacy_get_prev_frame): Update, call predicate..
10899 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10900 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10901 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10903 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10904 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10905 * vax-tdep.c (vax_gdbarch_init): Ditto.
10907 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10910 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10912 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10915 2004-02-16 Andrew Cagney <cagney@redhat.com>
10917 * tui/tui-windata.c: Include "gdb_string.h".
10918 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10919 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10920 * Makefile.in: Update dependencies.
10922 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10924 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10925 * infrun.c: Include "gdb_assert.h".
10926 (singlestep_ptid, saved_singlestep_ptid)
10927 (stepping_past_singlestep_breakpoint): New variables.
10928 (resume): Set singlestep_ptid. Check for singlestep thread
10930 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10931 (handle_inferior_event): Handle singlestep thread hop.
10933 2004-02-16 Andrew Cagney <cagney@redhat.com>
10935 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10936 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10937 (dwarf2_frame_init_reg): Ditto.
10939 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10940 suggested by Joshua Neuheisel
10942 * configure.in: Always check for curses, including pdcurses.
10943 Warn, instead of error, when no curses are found. Enable TUI when
10944 curses is available.
10945 * configure: Re-generate.
10947 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10949 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10950 sh_sh4_register_convert_to_virtual.
10951 (sh_register_convert_to_raw): Rename from
10952 sh_sh4_register_convert_to_raw.
10953 (sh_pseudo_register_read): Accomodate above name change.
10954 (sh_pseudo_register_write): Ditto.
10956 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10958 * sh-tdep.c (sh_generic_register_name): Remove.
10959 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10961 2004-02-15 Andrew Cagney <cagney@redhat.com>
10963 * configure.in (build_warnings): Add -Wunused-function.
10964 * configure: Re-generate.
10966 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10967 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10969 * procfs.c (procfs_init_inferior): Assume that
10970 START_INFERIOR_TRAPS_EXPECTED is defined.
10971 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10972 * config/ns32k/tm-nbsd.h: Delete file,
10973 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10975 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10976 * config/vax/tm-vax.h: Delete file.
10978 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10979 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10980 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10981 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10982 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10983 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10984 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10986 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10988 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10989 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10990 (struct dwarf2_frame_ops): New.
10991 (dwarf2_frame_default_init_reg): New function, based on
10992 dwarf2_frame_init_reg.
10993 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10994 (dwarf2_frame_init_reg): Call architecture-specific function.
10995 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10996 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10997 instead of dwarf2_frame_data.
10998 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10999 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11001 2004-02-15 Andrew Cagney <cagney@redhat.com>
11003 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11004 register_gdbarch_swap.
11005 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11006 * f-lang.c (_initialize_f_language): Update, use
11007 DEPRECATED_REGISTER_GDBARCH_SWAP.
11008 * remote.c (_initialize_remote): Ditto.
11009 * regcache.c (_initialize_regcache): Ditto.
11010 * parse.c (_initialize_parse): Ditto.
11011 * infrun.c (_initialize_infrun): Ditto.
11012 * mi/mi-main.c (_initialize_mi_main): Ditto.
11013 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11015 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11016 poking .cacheable directly.
11017 * symfile.c (symfile_bfd_open): Ditto.
11019 * Makefile.in: Update all dependencies.
11021 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11022 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11023 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11024 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11025 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11027 2004-02-14 Andrew Cagney <cagney@redhat.com>
11029 * arch-utils.c (legacy_convert_register_p): Check
11030 DEPRECATED_REGISTER_CONVERTIBLE_P.
11031 * findvar.c (value_of_register): Ditto.
11033 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11034 * gdbarch.h, gdbarch.c: Re-generate.
11035 * arch-utils.c (deprecated_register_convertible_not): Delete.
11036 * arch-utils.h (deprecated_register_convertible_not): Delete.
11037 * mi/mi-main.c (get_register): Update. Update copyright.
11038 * infcmd.c (default_print_registers_info): Update.
11040 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11041 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11042 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11043 * gdbarch.h, gdbarch.c: Re-generate.
11044 * frame.c (deprecated_get_next_frame_hack): Delete function.
11045 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11046 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11048 * infcall.c (call_function_by_hand): Update.
11050 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11052 * symfile.c (init_entry_point_info, entry_point_address): Move
11054 * objfiles.c (init_entry_point_info, entry_point_address):..to
11056 * symfile.h (init_entry_point_info, entry_point_address): Remove
11058 * objfiles.h (init_entry_point_info, entry_point_address):Add
11060 * cris-tdep.c: Remove include of symfile.h. Add include of
11062 * infcall.c: Ditto.
11063 * mcore-tdep.c: Ditto.
11064 * mn10300-tdep.c: Ditto.
11065 * sh64-tdep.c: Ditto.
11066 * v850-tdep.c: Ditto.
11067 * arm-tdep.c: Remove include of symfile.h.
11068 * blockframe.c: Ditto.
11069 * coffread.c: Ditto.
11070 * dbxread.c: Ditto.
11071 * dwarf2read.c: Ditto.
11072 * dwarfread.c: Ditto.
11073 * frv-tdep.c: Ditto.
11074 * ia64-tdep.c: Ditto.
11075 * mdebugread.c: Ditto.
11076 * mipsread.c: Ditto.
11077 * rs6000-tdep.c: Ditto.
11078 * s390-tdep.c: Ditto.
11079 * sh-tdep.c: Ditto.
11080 * xstormy16-tdep.c: Ditto.
11081 * gdbarch.sh: Remove include of symfile.h.
11082 * gdbarch.c: Regenerate.
11083 * solib-irix.c (enable_break): Use entry_point_address().
11084 Add comment about include file.
11085 * xcoffread.c: Add comment about include file.
11086 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11087 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11088 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11089 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11090 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11092 2004-02-13 Andrew Cagney <cagney@redhat.com>
11094 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11095 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11097 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11099 2004-02-12 Fred Fish <fnf@redhat.com>
11101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11102 set_gdbarch_store_return_value.
11104 2004-02-12 Andrew Cagney <cagney@redhat.com>
11106 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11107 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11108 (interrupt_query): Ditto.
11109 (ofunc): Delete unused variable.
11110 * cris-tdep.c (cris_abi): Delete unused function.
11111 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11112 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11113 (cris_get_asr_quick_shift_steps): Ditto.
11114 (cris_skip_prologue_frameless_p): Ditto.
11115 * arm-tdep.c (arm_push_return_address): Delete unused function.
11116 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11117 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11118 * s390-tdep.c (s390_function_start): Delete unused function.
11120 2004-02-12 Andrew Cagney <cagney@redhat.com>
11122 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11123 gdbarch.h, gdbarch.c: Re-generate.
11124 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11125 to generic_prologue_frameless_p.
11126 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11127 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11129 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11131 * mips-linux-tdep.c: Include "frame.h".
11132 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11133 (mips_linux_skip_resolver): New functions.
11134 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11135 and set_gdbarch_in_solib_call_trampoline.
11136 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11137 to after set_gdbarch_in_solib_return_trampoline. Only set the
11138 solib hooks to mips16 functions if the OS ABI is unknown.
11139 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11140 including "config/tm-linux.h".
11141 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11142 * Makefile.in (mips-linux-tdep.o): Update.
11144 2004-02-11 David Carlton <carlton@kealia.com>
11146 * linespec.c (decode_compound): Only look for a class symbol when
11147 considering all but the rightmost component.
11149 2004-02-11 Andrew Cagney <cagney@redhat.com>
11151 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11152 abi code are are separatly grouped.
11154 2004-02-11 Andrew Cagney <cagney@redhat.com>
11156 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11157 * gdbarch.h, gdbarch.c: Re-generate.
11158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11159 * v850-tdep.c (v850_gdbarch_init): Update.
11160 * sh64-tdep.c (sh64_gdbarch_init): Update.
11161 * sh-tdep.c (sh_gdbarch_init): Update.
11162 * s390-tdep.c (s390_gdbarch_init): Update.
11163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11164 * mips-tdep.c (mips_gdbarch_init): Update.
11165 * mcore-tdep.c (mcore_gdbarch_init): Update.
11166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11167 * m32r-tdep.c (m32r_gdbarch_init): Update.
11168 * ia64-tdep.c (ia64_gdbarch_init): Update.
11169 * hppa-tdep.c (hppa_gdbarch_init): Update.
11170 * h8300-tdep.c (h8300_gdbarch_init): Update.
11171 * frv-tdep.c (frv_gdbarch_init): Update.
11172 * d10v-tdep.c (d10v_gdbarch_init): Update.
11173 * cris-tdep.c (cris_gdbarch_init): Update.
11174 * avr-tdep.c (avr_gdbarch_init): Update.
11175 * arm-tdep.c (arm_gdbarch_init): Update.
11176 * alpha-tdep.c (alpha_gdbarch_init): Update.
11178 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11180 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11182 (sh_sh4al_dsp_register_name): Ditto.
11184 2004-02-10 Andrew Cagney <cagney@redhat.com>
11186 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11187 (mips_init_frame_pc_first): Delete function.
11188 (mips_frame_saved_pc): Delete function.
11189 (mips_frame_chain): Delete function.
11190 (mips_init_extra_frame_info): Delete function.
11191 (mips_xfer_register): Delete unused variable "reg".
11192 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11193 (mips_n32n64_return_value): Delete unused variable "reg".
11194 (mips_n32n64_return_value): Delete unused variable "pos".
11195 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11196 (mips_o32_return_value): Delete unused variable "pos".
11197 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11198 (mips_print_fp_register): Delete unused variable "namelen"
11199 (mips_print_fp_register): Delete unused variable "flt2"
11200 (get_frame_pointer): Delete function.
11201 (cached_proc_desc): Delete static variable.
11202 (mips_pop_frame): Delete function.
11203 (mips_find_saved_regs): Delete function.
11204 (mips_get_saved_register): Delete function.
11205 (mips_saved_pc_after_call): Delete function.
11206 (SIGFRAME_BASE): Delete macro.
11207 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11208 (SIGFRAME_PC_OFF): Delete macro.
11209 (SIGFRAME_REGSAVE_OFF): Delete macro.
11210 (mips_dump_tdep): Do not print deleted macro definitions.
11212 2004-02-10 Andrew Cagney <cagney@redhat.com>
11214 * Makefile.in (SFILES): Remove explictly listed tui files.
11215 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11217 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11219 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11220 to use paddr functions to format ia64 addresses and long values.
11221 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11222 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11223 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11224 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11225 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11227 2004-02-10 Andrew Cagney <cagney@redhat.com>
11229 * defs.h: Do not include "tui.h".
11230 * gdb_curses.h: New file.
11231 * tui/tui-hooks.h: New file.
11232 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11233 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11234 (tui_initialize_io): Delete declaration.
11235 (tui_initialize_readline: Delete redundant declaration.
11236 (struct tui_point): Delete definition.
11237 * tui/tui-data.h (struct tui_point): Define.
11238 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11239 * utils.c: Include "tui/tui.h".
11240 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11241 * printcmd.c [TUI]: Include "tui/tui.h".
11242 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11243 * tui/tui-command.c: Include "gdb_curses.h".
11244 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11245 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11246 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11247 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11248 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11249 * Makefile.in: Update all dependencies.
11250 (tui_hooks_h, gdb_curses_h): Define.
11251 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11253 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11255 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11256 auxf2. Add comments about some other rarely used fields.
11258 2004-02-10 Andrew Cagney <cagney@redhat.com>
11260 * Makefile.in (init.c): Fix script removing duplicates. Problem
11261 reported by Peter Schauer.
11263 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11265 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11266 obstack_specify_allocation.
11267 * objfiles.c (allocate_objfile): Ditto.
11268 * solib-sunos.c (solib_add_common_symbols)
11269 (allocate_rt_common_objfile): Ditto.
11270 * symfile.c (reread_symbols): Ditto.
11271 * gdb_obstack.h: Add comment.
11273 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11275 * linespec.c (decode_line_1, locate_first_half)
11276 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11277 commented out code.
11279 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11281 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11284 2004-02-09 Andrew Cagney <cagney@redhat.com>
11286 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11287 fails, try find_pc_section. Fix PR c++/1267.
11288 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11289 instead of find_pc_mapped_section.
11290 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11291 not default to the section containing PC. Fix PR symtab/1519.
11293 2004-02-09 Andrew Cagney <cagney@redhat.com>
11295 * Makefile.in (mips-tdep.o): Update dependencies.
11296 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11298 (mips_unwind_pc): Return the pseudo PC register.
11299 (mips_unwind_dummy_id): New function.
11300 (mips16_fetch_instruction): New function.
11301 (mips32_fetch_instruction): New function.
11302 (struct mips_frame_cache): Define.
11303 (mips_mdebug_frame_cache): New function.
11304 (mips_mdebug_frame_this_id): New function.
11305 (mips_mdebug_frame_prev_register): New function.
11306 (mips_mdebug_frame_unwind): Define.
11307 (mips_mdebug_frame_sniffer): New function.
11308 (mips_mdebug_frame_base_address): New function.
11309 (mips_mdebug_frame_base): Define.
11310 (mips_mdebug_frame_base_sniffer): New function.
11311 (mips_gdbarch_init): Append unwind and base sniffers. Set
11314 2004-02-08 Andrew Cagney <cagney@redhat.com>
11316 * frame.c: Print both the register number and name.
11318 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11319 and a sed into a single sed. Make .c and .o patterns more robust.
11321 (INIT_FILES): Replace OBS with COMMON_OBS.
11322 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11324 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11326 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11327 the PT_WCOOKIE request.
11329 2004-02-08 Andrew Cagney <cagney@redhat.com>
11331 * mips-tdep.c (mips_unwind_pc): New function.
11332 (mips_gdbarch_init): Set mips_unwind_pc.
11334 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11335 (get_frame_id): Allow the UNKNOWN_FRAME.
11336 (frame_register_unwind, get_frame_type): Ditto.
11338 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11339 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11340 unwind_dummy_id indicates a legacy frame.
11342 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11343 * configure: Re-generate.
11345 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11348 2004-02-08 Andrew Cagney <cagney@redhat.com>
11350 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11352 * configure: Re-generate.
11353 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11354 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11355 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11356 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11357 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11358 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11359 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11360 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11361 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11362 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11364 2004-02-07 Andrew Cagney <cagney@redhat.com>
11366 * Makefile.in: Update all dependencies.
11368 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11369 * configure: Re-generate.
11370 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11371 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11372 (COMMON_OBS): Add "main.o" and "annotate.o".
11373 (ANNOTATE_OBS): Delete.
11374 (OBS): Remove ANNOTATE_OBS.
11375 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11377 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11378 against CONFIG_OBS and "main.o".
11379 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11380 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11382 * tui/tui-command.c: Include "gdb_string.h", delete register
11383 attribute, use ISO-C function signatures.
11384 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11385 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11386 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11387 * tui/tui.c: Ditto.
11389 * tui/tui-command.c: Change variable and function names to lower
11391 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11392 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11393 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11394 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11395 * tui/tui-winsource.c, tui/tui.c: Ditto.
11397 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11399 * buildsym.c (free_pending_blocks, finish_block)
11400 (record_pending_block, make_blockvector, end_symtab): Replace
11401 symbol_obstack with objfile_obstack.
11402 * coffread.c (process_coff_symbol, coff_read_struct_type)
11403 (coff_read_enum_type): Ditto.
11404 * cp-namespace.c (initialize_namespace_symtab)
11405 (check_one_possible_namespace_symbol): Ditto.
11406 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11407 (dwarf2_symbol_mark_computed): Ditto.
11408 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11409 * elfread.c (elf_symtab_read): Ditto.
11410 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11411 (hpread_read_enum_type, hpread_read_function_type)
11412 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11414 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11415 (java_link_class_type): Ditto.
11416 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11417 (new_symbol): Ditto.
11418 * minsyms.c (install_minimal_symbols): Ditto.
11419 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11420 (terminate_minimal_symbol_table): Replace symbol_obstack with
11422 (free_objfile): Remove freeing of symbol_obstack.
11423 * objfiles.h: Remove symbol_obstack field.
11424 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11426 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11428 (solib_add_common_symbols): Replace symbol_obstack with
11430 * somsolib.c (som_solib_add): Ditto.
11431 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11432 (common_block_start, common_block_end): Ditto.
11433 * symfile.c (reread_symbols): Remove freeing and init of
11435 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11436 * symfile.h: Update comment.
11437 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11439 * symtab.c (symbol_set_names): Replace symbol_obstack with
11441 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11443 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11444 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11447 2004-02-07 Andrew Cagney <cagney@redhat.com>
11449 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11450 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11451 fields and variables.
11452 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11453 (m_beInvisible): Delete macro.
11454 * tui/tui-data.h: Fix case case fields and variables.
11455 (m_genWinPtrIsNull): Delete macro.
11456 (tui_win_list): Rename winList.
11457 (TUI_SRC_WIN): Rename srcWin.
11458 (TUI_DISASM_WIN): Rename disassemWin.
11459 (TUI_DATA_WIN): Rename dataWin.
11460 (TUI_CMD_WIN): Rename cmdWin.
11461 (m_genWinPtrNotNull): Delete macro.
11462 (m_winPtrIsNull): Delete macro.
11463 (m_winPtrNotNull): Delete macro.
11464 (tui_win_is_source_type): Replace m_winIsSourceType
11465 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11466 (tui_win_has_locator): Replace m_hasLocator.
11467 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11468 m_setWinHighlightOff.
11469 * tui/tui-data.c: Update references.
11470 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11471 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11472 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11473 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11474 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11475 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11476 * tui/tui-winsource.c, tui/tui.c: Ditto.
11478 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11480 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11481 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11484 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11485 variable `i6' to `i7'.
11486 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11488 2004-02-07 Andrew Cagney <cagney@redhat.com>
11490 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11491 (TuiPoint, TuiPointPtr): Ditto.
11492 (TuiStatus, TuiStatusPtr): Ditto.
11493 (TuiWinType, TuiWinTypePtr): Ditto.
11494 (struct tui_point): Rename _TuiPoint.
11495 (tui_get_low_disassembly_address): Rename
11496 tuiGetLowDisassemblyAddress.
11497 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11498 (tuiFree): Delete declaration.
11499 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11500 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11501 * tui/tui.c (tuiFree): Delete function.
11502 * cli/cli-cmds.c (disassemble_command): Update references.
11503 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11504 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11505 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11506 * tui/tui-winsource.c: Ditto.
11508 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11510 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11511 coffstab_build_psymtabs, elfstab_build_psymtabs)
11512 (stabsect_build_psymtabs): Replace psymbol_obstack with
11514 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11515 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11517 * dwarfread.c (scan_compilation_units): Ditto.
11518 * elfread.c (elfstab_offset_sections): Ditto.
11519 * hppa-tdep.c (read_unwind_info): Ditto.
11520 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11521 (hpread_end_psymtab): Ditto.
11522 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11523 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11525 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11526 * objfiles.c (add_to_objfile_sections)
11527 (build_objfile_section_table): Ditto.
11528 (allocate_objfile): Remove init of psymbol_obstack.
11529 (free_objfile): Remove freeing of psymbol_obstack.
11530 * objfiles.h (struct objfile): Remove field
11531 psymbol_obstack. Update comments.
11532 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11533 psymbol_obstack with objfile_obstack.
11534 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11536 * somread.c (som_symfile_offsets, init_import_symbols)
11537 (init_export_symbols): Replace psymbol_obstack with
11539 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11540 * symfile.c (default_symfile_offsets, syms_from_objfile)
11541 (reread_symbols): Remove freeing and init of psymbol_obstack.
11542 (cashier_psymtab): Update comment.
11543 * symmisc.c (print_objfile_statistics): Don't report stats for
11545 * symtab.h (struct general_symbol_info, struct partial_symtab):
11547 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11548 (xcoff_symfile_offsets): Replace psymbol_obstack with
11551 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11553 * objfiles.h (struct objfile): Add objfile_obstack field.
11554 Remove type_obstack field.
11556 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11557 read_structure_scope read_enumeration, new_symbol): Replace
11558 type_obstack with objfile_obstack.
11559 * dwarfread.c (struct_type, enum_type): Ditto.
11560 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11561 (lookup_fundamental_type): Ditto.
11562 * gdbtypes.h (TYPE_ALLOC): Ditto.
11563 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11564 (hpread_read_doc_function_type, hpread_read_struct_type)
11565 (fix_static_member_physnames, hpread_read_array_type)
11566 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11567 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11568 (java_link_class_type): Ditto.
11569 * mdebugread.c (parse_type): Ditto.
11570 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11571 * solib-sunos.c (solib_add_common_symbols): Ditto.
11572 * stabsread.c (define_symbol, read_type, read_member_functions,
11573 read_cpp_abbrev, read_one_struct_field): Ditto.
11574 * symfile.c (reread_symbols): Ditto.
11575 * symmisc.c (print_objfile_statistics): Ditto.
11577 2004-02-07 Andrew Cagney <cagney@redhat.com>
11579 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11580 (tui_exec_info_content): Rename TuiExecInfoContent.
11581 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11582 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11583 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11584 (TuiList, TuiListPtr): Ditto.
11585 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11586 (TuiDataType, TuiDataTypePtr): Ditto.
11587 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11588 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11589 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11590 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11591 (TuiDataElement, TuiDataElementPtr): Ditto.
11592 (TuiWinElement, TuiWinElementPtr): Ditto.
11593 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11594 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11595 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11596 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11597 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11598 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11599 * tui/tui-command.c, tui/tui-data.c: Update references.
11600 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11601 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11602 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11603 * tui/tui-winsource.c, tui/tui.c: Ditto.
11605 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11607 * dwarf2-frame.h: Update copyright.
11608 (enum dwarf2_frame_reg_rule): New.
11609 (struct dwarf2_frame_state_reg): New.
11610 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11611 * dwarf2-frame.c: Update copyright.
11612 (enum dwarf2_reg_rule): Remove.
11613 (struct dwarf2_frame_state): Remove defenition of `struct
11614 dwarf2_frame_state_reg'.
11615 (read_reg): Call get_frame_arch to get the architecture instead of
11616 using CURRENT_GDBARCH.
11617 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11619 (dwarf2_frame_init_reg): New function.
11620 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11621 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11622 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11623 tags with DWARF2_FRAME_.
11624 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11625 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11626 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11628 2004-02-06 Andrew Cagney <cagney@redhat.com>
11630 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11631 (enum tui_data_type): Rename _TuiDataType.
11632 (struct tui_layout_def): Rename _TuiLayoutDef.
11633 (struct tui_source_element): Rename _TuiSourceElement.
11634 (struct tui_data_element): Rename _TuiDataElement.
11635 (struct tui_command_element): Rename _TuiCommandElement.
11636 (struct tui_locator_element): Rename _TuiLocatorElement.
11637 (union tui_which_element): Define.
11638 (struct tui_win_element): Rename _TuiWinElement.
11639 (struct tui_data_info): Rename _TuiDataInfo.
11640 (struct tui_source_info): Rename _TuiSourceInfo.
11641 (struct tui_command_info): Rename _TuiCommandInfo.
11642 (tui_initialize_static_data): Rename initializeStaticData.
11643 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11644 (tui_alloc_win_info): Rename allocWinInfo.
11645 (tui_init_generic_part): Rename initGenericPart.
11646 (tui_init_win_info): Rename initWinInfo.
11647 (tui_alloc_content): Rename allocContent.
11648 (tui_add_content_elements): Rename addContentElements.
11649 (tui_init_content_element): Rename initContentElement.
11650 (tui_free_window): Rename freeWindow.
11651 (tui_free_win_content): Rename freeWinContent.
11652 (tui_free_data_content): Rename freeDataContent.
11653 (tui_free_all_source_wins_content): Rename
11654 freeAllSourceWinsContent.
11655 (tui_del_window): Rename tuiDelWindow.
11656 (tui_del_data_windows): Rename tuiDelDataWindows.
11657 (tui_partial_win_by_name): Rename partialWinByName.
11658 (tui_win_name): Rename winName.
11659 (tui_current_layout): Rename currentLayout.
11660 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11661 (tui_term_height): Rename termHeight.
11662 (tui_set_term_height_to): Rename setTermHeightTo.
11663 (tui_term_width): Rename termWidth.
11664 (tui_set_term_width_to): Rename setTermWidthTo.
11665 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11666 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11667 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11668 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11669 (tui_source_windows): Rename sourceWindows.
11670 (tui_clear_source_windows): Rename clearSourceWindows.
11671 (tui_clear_source_windows_detail): Rename
11672 clearSourceWindowsDetail.
11673 (tui_clear_win_detail): Rename clearWinDetail.
11674 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11675 (tui_default_tab_len): Rename tuiDefaultTabLen.
11676 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11677 (tui_win_with_focus): Rename tuiWinWithFocus.
11678 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11679 (tui_layout_def): Rename tuiLayoutDef.
11680 (tui_win_resized): Rename tuiWinResized.
11681 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11682 (tui_next_win): Rename tuiNextWin.
11683 (tui_prev_win): Rename tuiPrevWin.
11684 (tui_add_to_source_windows): Rename addToSourceWindows.
11685 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11686 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11687 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11688 * tui/tui.c, tui/tui-data.c: Ditto.
11689 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11690 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11692 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11693 (struct symtab): Declare.
11694 (tui_set_source_content): Rename tuiSetSourceContent.
11695 (tui_show_symtab_source): Rename tuiShowSource.
11696 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11697 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11698 * tui/tui-source.c: Update copyright. Update references.
11699 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11700 * tui/tui-stack.c: Update references.
11702 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11703 (struct tui_win_info): Declare.
11704 (tui_scroll_forward): Rename tuiScrollForward.
11705 (tui_scroll_backward): Rename tuiScrollBackward.
11706 (tui_scroll_left): Rename tuiScrollLeft.
11707 (tui_scroll_right): Rename tuiScrollRight.
11708 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11709 (tui_resize_all): Rename tuiResizeAll.
11710 (tui_refresh_all_win): Rename tuiRefreshAll.
11711 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11712 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11713 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11714 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11716 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11717 (tui_erase_data_content): Rename tuiEraseDataContent.
11718 (tui_display_all_data): Rename tuiDisplayAllData.
11719 (tui_check_data_values): Rename tuiCheckDataValues.
11720 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11721 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11722 (tui_first_data_element_no_in_line): Rename
11723 tuiFirstDataElementNoInLine.
11724 (tui_delete_data_content_windows): Rename
11725 tuiDeleteDataContentWindows.
11726 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11727 (tui_display_data_from): Rename tuiDisplayDataFrom.
11728 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11729 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11730 * tui/tui-win.c, tui/tui-regs.c: Update references.
11731 * tui/tui-layout.c, tui/tui.c: Update references.
11733 * tui/tui-wingeneral.h: Update copyright.
11734 (m_allBeVisible): Delete macro.
11735 (m_allBeInvisible): Delete macro.
11736 (struct tui_gen_win_info): Declare.
11737 (struct tui_win_info): Declare.
11738 (tui_unhighlight_win): Rename unhighlightWin.
11739 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11740 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11741 (tui_make_window): Rename makeWindow.
11742 (tui_copy_win): Rename copyWin.
11743 (tui_box_win): Rename boxWin.
11744 (tui_highlight_win): Rename highlightWin.
11745 (tui_check_and_display_highlight_if_needed): Rename
11746 checkAndDisplayHighlightIfNeeded.
11747 (tui_refresh_all): Rename refreshAll.
11748 (tui_delete_win): Rename tuiDelwin.
11749 (tui_refresh_win): Rename tuiRefreshWin.
11750 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11751 (tui_make_visible, tui_make_invisible): New functions.
11752 (tui_make_all_visible, tui_make_all_invisible): New functions.
11753 (make_all_visible): Rename makeAllVisible.
11754 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11755 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11756 * tui/tui-windata.c, tui/tui-win.c: Update references.
11757 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11758 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11760 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11762 * proc-api.c (write_with_trace): Initialize local variable to
11763 silence compiler warning.
11765 2004-02-06 Andrew Cagney <cagney@redhat.com>
11767 * tui/tui-source.h: Do not include "defs.h".
11768 (struct tui_win_info): Declare.
11769 (tui_set_source_content_nil): Declare.
11770 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11771 (union tui_line_or_address): Rename _TuiLineOrAddress.
11772 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11773 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11774 (tui_update_source_window_as_is): Rename
11775 tuiUpdateSourceWindowAsIs.
11776 (tui_update_source_windows_with_addr): Rename
11777 tuiUpdateSourceWindowsWithAddr.
11778 (tui_update_source_windows_with_line): Rename
11779 tuiUpdateSourceWindowsWithLine.
11780 (tui_clear_source_content): Rename tuiClearSourceContent.
11781 (tui_erase_source_content): Rename tuiEraseSourceContent.
11782 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11783 (tui_show_source_content): Rename tuiShowSourceContent.
11784 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11785 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11786 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11787 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11788 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11789 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11790 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11791 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11792 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11793 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11794 (struct tui_win_info): Declare.
11795 * tui/tui-stack.c: Update references.
11796 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11797 * tui/tui-win.c, tui/tui-source.c: Ditto.
11798 * tui/tui.c, tui/tui-disasm.c: Ditto.
11800 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11802 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11803 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11805 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11807 * infrun.c (handle_inferior_event): Allow for breakpoint
11808 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11809 and SIGEMT. Update comments.
11810 * NEWS (Revised SPARC target): Mention support for non-executable
11813 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11815 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11816 * inftarg.c: Update copyright year.
11817 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11818 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11819 (sparc_xfer_wcookie): New function.
11820 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11821 * Makefile.in (sparc-nat.o): Update dependencies.
11822 * config/sparc/nm-nbsd.h: Include "target.h".
11823 (NATIVE_XFER_WCOOKIE): New define.
11824 (sparc_xfer_wcookie): New prototype.
11826 2004-02-04 Andrew Cagney <cagney@redhat.com>
11828 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11829 SYSCALL_TRAP function.
11830 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11832 2004-02-04 Andrew Cagney <cagney@redhat.com>
11833 Daniel Jacobowitz <drow@mvista.com>
11835 * objfiles.h: Delete comments refering to inside_entry_func and
11836 DEPRECATED_FRAME_CHAIN_VALID.
11837 * defs.h (inside_entry_func): Update prototype..
11838 * blockframe.c (inside_entry_func): Rename to
11839 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11840 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11842 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11844 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11845 outside of #ifdef SOLIB_ADD region.
11846 (do_restore_lang_radix_cleanup): Ditto.
11847 (resolve_pending_breakpoint): Ditto.
11849 2004-02-03 Andrew Cagney <cagney@redhat.com>
11851 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11852 (process_note_abi_tag_sections): Delete unused function.
11853 (ia64_read_fp): Delete unused function.
11854 (gdbarch_extract_struct_value_address): Delete declaration.
11856 2004-02-02 Andrew Cagney <cagney@redhat.com>
11858 * vax-tdep.c (vax_frame_chain): Delete call to
11859 deprecated_inside_entry_file.
11860 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11862 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11864 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11865 column that's "empty" or "same value" when eliminating REG_RA
11868 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11870 * NEWS: Add information about new pending breakpoint support.
11872 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11874 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11875 and pending fields for pending breakpoint support.
11876 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11877 (condition_command): Only parse condition if not a pending
11879 (print_one_breakpoint): Add support for pending breakpoints.
11880 (describe_other_breakpoints): Add checks to verify we are not
11881 dealing with pending breakpoints.
11882 (check_duplicates): Don't check pending breakpoints.
11883 (set_raw_breakpoint): Initialize pending flag.
11884 (do_restore_lang_radix_cleanup): New cleanup routine.
11885 (resolve_pending_breakpoint): New function.
11886 (re_enable_breakpoints_in_shlibs): Try and resolve any
11887 pending breakpoints via resolve_pending_breakpoint.
11888 (mention): Add pending breakpoint support.
11889 (parse_breakpoint_sals): Add new parameter to pass to
11890 decode_line_1 to indicate silent errors when files or functions
11891 are not found. Change all callers.
11892 (do_captured_parse_breakpoint): New function.
11893 (break_command_1): Change prototype to return an rc value and to
11894 take an optional pending breakpoint pointer. Support creating
11895 a pending breakpoint if a "not found" form of error occurs when
11896 parsing the breakpoint. Also support resolving an existing pending
11897 breakpoint and be silent if the resolution fails.
11898 (create_breakpoints): Change prototype to take pending breakpoint
11899 pointer. When resolving a pending breakpoint, use the new pointer
11900 to provide a conditional or commands added by the end-user.
11901 (delete_breakpoint): Add appropriate check for pending.
11902 (breakpoint_re_set_one): Ditto.
11903 (do_enable_breakpoint): Ditto.
11905 2004-02-02 David Carlton <carlton@kealia.com>
11907 * valops.c (enum oload_classification): New.
11908 (find_overload_match): Break implementation into separate
11909 functions; delete #if 0'd code; look for symbols within
11911 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11912 (find_oload_champ,oload_method_static,classify_oload_match): New.
11913 * cp-support.h: Add declaration for cp_func_name; update
11914 declaration for make_symbol_overload_list.
11915 * cp-support.c (cp_func_name): New.
11916 (overload_list_add_symbol): Fix comment, use
11917 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11918 (make_symbol_overload_list): Take a function name and a namespace
11919 instead of a symbol; change implementation.
11920 (make_symbol_overload_list_using): New.
11921 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11923 2004-02-02 Fred Fish <fnf@redhat.com>
11925 * main.c (gdb_stdtarg): Move definition to group with other
11926 gdb_stdtarg definitions and update copyright years.
11927 * remote-sim.c (gdb_os_write_stderr): Write output to
11928 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11929 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11930 gdb_stderr stream and update copyright years.
11932 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11934 * Makefile.in (mips-linux-nat.o): Update dependencies.
11935 * mips-linux-nat.c: Include mips-tdep.h.
11937 2004-02-01 Roland McGrath <roland@redhat.com>
11939 * sol-thread.c (sol_thread_xfer_partial): New function.
11940 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11941 (init_sol_core_ops): Likewise.
11943 * procfs.c (procfs_xfer_partial): New function.
11944 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11945 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11947 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11948 procfs_xfer_auxv function.
11950 * procfs.c (procfs_make_note_section): If we can read
11951 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11952 * linux-proc.c (linux_make_note_section): Likewise.
11954 * auxv.h: New file.
11955 * auxv.c: New file.
11956 * Makefile.in (auxv_h): New variable.
11957 (COMMON_OBS): Add auxv.o here.
11958 (auxv.o): New target.
11960 * corelow.c (core_xfer_partial): New function.
11961 (init_core_ops): Use it for core_ops.to_xfer_partial.
11963 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11964 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11965 macro if that is defined.
11967 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11969 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11970 and check the specified thread for each breakpoint.
11971 * breakpoint.h (bpstat_stop_status): Update prototype.
11972 * infrun.c (handle_inferior_event): Update calls to
11973 bpstat_stop_status.
11975 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11977 * Makefile.in (cli-cmds.o): Add $(readline_h).
11979 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11981 * cli/cli-cmds.c: Include readline.h.
11982 (complete_command): Pass the start of the last word to
11985 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11987 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11988 argument, and change first argument to a CORE_ADDR.
11989 * breakpoint.h (bpstat_stop_status): Update prototype.
11990 * infrun.c (adjust_pc_after_break): Add a new comment.
11991 (handle_inferior_event): Update calls to bpstat_stop_status.
11993 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11995 * breakpoint.h: Update copyright years.
11997 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11999 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12000 (bpstat_stop_status): Don't decrement PC.
12001 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12003 * infrun.c (adjust_pc_after_break): New function.
12004 (handle_inferior_event): Call it, early. Remove later references
12005 to DECR_PC_AFTER_BREAK.
12006 (normal_stop): Add commentary.
12008 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12010 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12011 2004-01-27 double-free fix.
12013 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12015 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12016 (sparc32_frame_prev_register): Handle StackGhost.
12017 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12019 2004-01-29 Roland McGrath <roland@redhat.com>
12021 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12022 * configure: Regenerated.
12024 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12025 * Makefile.in (procfs.o): Add dep.
12027 2004-01-28 Andrew Cagney <cagney@redhat.com>
12029 * tui/tui-stack.h: Update copyright.
12030 (struct frame_info): Add opaque declaration.
12031 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12032 (tui_show_locator_content): Rename tuiShowLocatorContent.
12033 (tui_show_frame_info): Rename tuiShowFrameInfo.
12034 * tui/tui-stack.c: Update copyright. Update references.
12035 * tui/tui-winsource.c: Update references.
12036 * tui/tui-win.c: Update references.
12037 * tui/tui-layout.c: Update references.
12038 * tui/tui-hooks.c: Update copyright, update references.
12039 * tui/tui.c: Update copyright, update references.
12040 * tui/tui-disasm.c: Update references.
12042 2004-01-28 David Carlton <carlton@kealia.com>
12044 * dwarf2read.c (add_partial_structure): Use demangled name if
12045 namespace equals "".
12047 2004-01-27 Jim Blandy <jimb@redhat.com>
12049 Clean up misapplied patch:
12050 * dwarf2read.c (determine_prefix): Change one of the two forward
12051 declarations for 'determine_prefix_aux' to a declaration for this.
12052 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12053 argument to 'die_specification'.
12055 * dwarf2read.c (read_func_scope): Re-indent comment.
12057 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12059 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12060 b->exp to NULL after freeing so that error during re-parsing or
12061 evaluation of expressions associated with breakpoint don't
12062 eventually lead to re-freeing of storage.
12063 Committed by Andrew Cagney.
12065 2004-01-27 Andrew Cagney <cagney@redhat.com>
12067 * source.c (ambiguous_line_spec): Delete undefined declaration.
12068 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12069 (m32r_set_server_address, m32r_set_download_path): Ditto.
12070 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12072 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12074 * dwarf2read.c: Update calls to changed and renamed functions, and
12075 references to moved variables.
12077 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12078 language, language_defn, list_in_scope, and ftypes members.
12079 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12080 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12081 (baseaddr): Remove globals.
12083 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12084 (set_cu_language, die_is_declaration, die_specification)
12085 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12086 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12087 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12088 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12090 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12091 cu.list_in_scope. Don't initialize cu_header_offset.
12092 (add_partial_symbol): Add local baseaddr.
12093 (psymtab_to_symtab_1): Add local baseaddr. Use
12094 objfile->section_offsets for consistency. Don't initialize
12095 cu_header_offset; do initialize cu.header.offset and
12097 (read_file_scope, read_func_scope, read_lexical_block_scope)
12098 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12100 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12102 * PROBLEMS: Add gdb/1516.
12104 2003-12-29 Robert Millan <robertmh@gnu.org>
12106 Patch committed by Andrw Cagney.
12107 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12108 * configure.tgt: Match knetbsd*-gnu.
12110 2004-01-26 Andrew Cagney <cagney@redhat.com>
12112 * breakpoint.c (catch_command_1): Delete #ifdef code.
12113 (catch_fork_command_1): Delete #ifdef wrapper.
12114 (catch_exec_command_1): Ditto.
12115 (catch_load_command_1): Ditto.
12116 (catch_unload_command_1): Ditto.
12118 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12119 (catch_breakpoint): Delete #if0ed function.
12120 (disable_catch_breakpoint): Ditto.
12121 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12122 (disable_catch, enable_catch, delete_catch): Ditto.
12124 2004-01-26 Andrew Cagney <cagney@redhat.com>
12126 * remote.c (echo_check, quit_flag): Delete variables.
12127 (cisco_kernel_mode): Delete variable.
12128 (minitelnet_return, tty_input, escape_count): Delete variables.
12129 (remote_cisco_mode): Delete variable.
12130 (remote_cisco_open, remote_cisco_close): Delete function.
12131 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12132 (init_remote_cisco_ops): Delete function.
12133 (_initialize_remote): Do not install "remote cisco" code.
12134 (read_frame): Delete cisco specific code.
12135 (remote_info_process): Delete function.
12136 (remote_wait): Delete cisco specific code.
12137 (remote_cisco_section_offsets): Delete function.
12138 (remote_cisco_objfile_relocate): Delete function.
12139 (remote_async_wait): Delete cisco specific code.
12140 (minitelnet, readtty, readsocket): Delete function.
12142 2004-01-26 Andrew Cagney <cagney@redhat.com>
12144 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12145 comments mentioning extract_returned_value_address.
12146 * infcmd.c (print_return_value): Update. Add comments on
12147 extract_returned_value_address.
12148 * stack.c (return_command): Add comments on
12149 extract_returned_value_address.
12150 * values.c: Update comment.
12151 * m32r-tdep.c: Update comment.
12152 * sparc-tdep.c: Update comment.
12153 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12155 * sh64-tdep.c (sh64_gdbarch_init): Update.
12156 * sh-tdep.c (sh_gdbarch_init): Update.
12157 * s390-tdep.c (s390_gdbarch_init): Update.
12158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12159 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12160 * m68k-tdep.c (m68k_gdbarch_init): Update.
12161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12162 * m32r-tdep.c (m32r_gdbarch_init): Update.
12163 * ia64-tdep.c (ia64_gdbarch_init): Update.
12164 * h8300-tdep.c (h8300_gdbarch_init): Update.
12165 * frv-tdep.c (frv_gdbarch_init): Update.
12166 * arm-tdep.c (arm_gdbarch_init): Update.
12167 * alpha-tdep.c (alpha_gdbarch_init): Update.
12169 2004-01-26 Andrew Cagney <cagney@redhat.com>
12171 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12172 SYMBOL_LOCATION_FUNCS
12173 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12174 "struct symbol_ops".
12175 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12176 type to "struct symbol_ops".
12177 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12178 (struct symbol): Replace ".aux_value.loc.funcs" and
12179 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12180 (SYMBOL_OBJFILE): Delete macro.
12181 (SYMBOL_LOCATION_FUNCS): Delete macro.
12182 (SYMBOL_LOCATION_BATON): Update.
12183 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12184 intead of SYMBOL_LOCATION_FUNCS.
12185 * ax-gdb.c (gen_var_ref): Ditto.
12186 * printcmd.c (address_info): Ditto.
12187 * findvar.c (read_var_value): Ditto.
12188 (symbol_read_needs_frame): Ditto.
12190 2004-01-26 Andrew Cagney <cagney@redhat.com>
12192 * dwarf2read.c (read_func_scope): Document frame-base hack.
12194 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12196 * infcmd.c (print_return_value): Plug memory leak; delete
12197 ui_stream object. Rename argument `structure_return' to
12200 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12202 * infcmd.c (print_return_value): Wrap long lines.
12203 (finish_command_continuation, finish_command): Remove unused
12204 variable `funcaddr'. Fix some coding-standards problems.
12206 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12207 SECT_SIZE is large enough, not whether it's exactly the right size.
12208 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12209 TDEP->fpregset to zero.
12211 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12212 floating-point registers for traditional NetBSD core files.
12213 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12214 TDEP->sizeof_fpregset here.
12216 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12218 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12219 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12220 function with code split out from
12221 sparc32nbsd_sigcontext_frame_cache.
12222 (sparc32nbsd_sigcontext_frame_cache): Use
12223 sparc32nbsd_sigcontext_saved_regs.
12224 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12226 * sparcobsd-tdep.c: New file.
12227 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12228 (sparcobsd-tdep.o): New dependency.
12229 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12230 * config/sparc/obsd.mt: New file.
12232 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12233 TDEP->fpregset to be initialized to enable core file register
12236 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12238 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12239 Add opaque declarations.
12240 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12241 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12242 function with code split out from
12243 sparc64nbsd_sigcontext_frame_cache.
12244 (sparc64nbsd_sigcontext_frame_cache): Use
12245 sparc64nbsd_sigcontext_saved_regs.
12246 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12248 * sparc64obsd-tdep.c: New file.
12249 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12250 (sparc64obsd-tdep.o): New dependency.
12251 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12252 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12253 * config/sparc/obsd64.mt: New file.
12255 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12256 read the instruction at PC.
12258 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12259 value of GDB_OSABI_DEFAULT.
12260 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12261 instead of GDB_OSABI_NETBSD_AOUT.
12263 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12265 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12268 2004-01-23 Andrew Cagney <cagney@redhat.com>
12270 * printcmd.c (display_command): Replace tui_set_display call with
12271 tui_set_layout_for_display_command.
12272 * tui/tui.h (enum tui_win_type): Define.
12273 (tui_set_layout): Delete declaration.
12274 (tui_set_layout_for_display_command): Rename set_tui_layout.
12275 * tui/tui-data.h (enum tui_layout_type): Define.
12276 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12278 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12279 (tui_default_win_height): Rename tuiDefaultWinHeight.
12280 (tui_default_win_viewport_height): Rename
12281 tuiDefaultWinViewportHeight.
12282 (tui_set_layout): RenametuiSetLayout.
12283 * tui/tui-layout.c: Update references.
12284 * tui/tui.c: Update references.
12285 * tui/tui-disasm.c: Update references.
12287 2004-01-23 David Carlton <carlton@kealia.com>
12289 Partial workaround for PR c++/1511:
12290 * cp-namespace.c: Include frame.h.
12291 (cp_lookup_transparent_type): New
12292 (cp_lookup_transparent_type_loop): New.
12293 * cp-support.h: Declare cp_lookup_transparent_type.
12294 * symtab.c (basic_lookup_transparent_type): Renamed from
12295 lookup_transparent_type.
12296 (lookup_transparent_type): Replace old body by a call to
12297 current_language->la_lookup_transparent_type.
12298 * symtab.h: Update copyright. Declare
12299 basic_lookup_transparent_type.
12300 * language.h: Update copyright.
12301 (struct language_defn): Add la_lookup_transparent_type.
12302 * language.c: Update copyright.
12303 (unknown_language_defn): Add basic_lookup_transparent_type.
12304 (auto_language_defn): Add basic_lookup_transparent_type.
12305 (local_language_defn): Add basic_lookup_transparent_type.
12306 * ada-lang.c: Update copyright.
12307 (ada_language_defn): Add basic_lookup_transparent_type.
12308 * c-lang.c: Update copyright.
12309 (c_language_defn): Add basic_lookup_transparent_type.
12310 (cplus_language_defn): Add basic_lookup_transparent_type.
12311 (asm_language_defn): Add basic_lookup_transparent_type.
12312 (minimal_language_defn): Add basic_lookup_transparent_type.
12313 * f-lang.c: Update copyright.
12314 (f_language_defn): Add basic_lookup_transparent_type.
12315 * jv-lang.c: Update copyright.
12316 (java_language_defn): Add basic_lookup_transparent_type.
12317 * m2-lang.c: Update copyright.
12318 (m2_language_defn): Add basic_lookup_transparent_type.
12319 * objc-lang.c: Update copyright.
12320 (objc_language_defn): Add basic_lookup_transparent_type.
12321 * p-lang.c: Update copyright.
12322 (p_language_defn): Add basic_lookup_transparent_type.
12323 * scm-lang.c: Update copyright.
12324 (scm_language_defn): Add basic_lookup_transparent_type.
12325 * Makefile.in (cp-namespace.o): Depend on frame.h.
12327 2004-01-23 David Carlton <carlton@kealia.com>
12329 Patch for PR c++/1520:
12330 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12331 properly if we have a specification die.
12332 (determine_prefix_aux): Rename from determine_prefix.
12333 (determine_prefix): Like the old determine_prefix, but never
12336 2004-01-23 Theodore A. Roth <troth@openavr.org>
12338 * avr-tdep.c: Update copyright.
12339 (avr_iaddr_p): Delete unused function.
12340 (avr_saddr_p): Delete unused function.
12342 2004-01-23 David Carlton <carlton@kealia.com>
12344 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12345 Fix for PR symtab/1534.
12347 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12349 * NEWS (New native configurations): Mention OpenBSD/sparc and
12351 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12352 * configure.host: Likewise.
12353 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12354 handler for OpenBSD.
12355 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12357 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12359 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12360 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12362 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12363 * cli/cli-cmds.c (shell_escape): Likewise.
12365 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12366 OpenBSD .note.openbsd.ident sections.
12368 2004-01-22 David Carlton <carlton@kealia.com>
12370 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12371 get_scope_pc_bounds.
12372 (read_file_scope): Ditto.
12373 (get_scope_pc_bounds): New function, produced by extracting code
12374 from the above two functions, consolidating it, and adding support
12375 for DW_TAG_namespace.
12377 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12379 * osabi.c (MAX_NOTESZ): New define.
12380 (check_note): New function.
12381 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12384 2004-01-21 Roland McGrath <roland@redhat.com>
12386 * MAINTAINERS (write after approval): Add myself.
12388 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12390 * utils.c (init_page_info): Move declarations of `rows' and
12391 `cols' before the __GO32__-specific code. Move the closing brace
12392 outside the #ifdef __GO32__..#endif block.
12393 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12395 2004-01-21 Paul Brook <paul@codesourcery.com>
12397 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12398 BPSTAT_WHAT_CHECK_SHLIBS.
12400 2004-01-21 Paul Brook <paul@codesourcery.com>
12402 * MAINTAINERS: Add myself to write-after-approval.
12404 2004-01-20 Andrew Cagney <cagney@redhat.com>
12406 * ax-gdb.c (print_axs_value): Delete unused function.
12407 * jv-lang.c (java_lookup_type): Delete unused function.
12408 * cli/cli-dump.c (dump_filetype): Delete unused function.
12409 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12410 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12411 (mips_getstring): Delete unused function.
12412 (pmon_insert_breakpoint): Delete #if0ed function.
12413 (PMON_MAX_BP): Delete #if0ed MACRO.
12414 (mips_pmon_bp_info): Delete #if0ed variable.
12415 (pmon_remove_breakpoint): Delete #if0ed function.
12416 * monitor.c (monitor_write_even_block): Delete unused function.
12417 (monitor_write_memory_block): Delete #if0ed code.
12418 * dink32-rom.c (dink32_load): Delete unused function.
12419 (_initialize_dink32_rom): Delete #if0ed code.
12420 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12422 * tui/tui-command.c: Update references.
12423 * tui/tui-io.c: Update references.
12424 * tui/tui-command.h: Update copyright.
12425 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12427 * source.c (ambiguous_line_spec): Delete never-defined function.
12428 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12429 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12430 * cli/cli-cmds.c (validate_comname): Ditto.
12432 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12434 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12435 (tui_show_disassem): Rename tuiShowDisassem.
12436 (tui_show_disassem_and_update_source): Rename
12437 tuiVerticalDisassemScroll.
12438 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12439 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12440 * tui/tui.h: Update copyright.
12441 (enum tui_status): Define.
12442 * tui/tui-data.h (enum tui_scroll_direction): Define.
12443 * tui/tui-disasm.c: Update copyright. Update references.
12444 * tui/tui-winsource.c: Update copyright. Update references.
12445 * tui/tui-win.c: Update references.
12446 * tui/tui-layout.c: Update references.
12448 2004-01-20 Andrew Cagney <cagney@redhat.com>
12450 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12451 sym2 to start of block.
12453 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12455 * MAINTAINERS: Delete mmalloc.
12456 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12457 * NEWS: Mention removal of --with-malloc.
12458 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12459 * config.in: Regenerate.
12460 * configure: Regenerate.
12461 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12462 USE_MMALLOC, MMCHECK_FORCE.
12463 * gdbinit.in: Remove mmalloc.
12464 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12465 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12466 * config/i386/go32.mh: Likewise.
12467 * config/i386/interix.mh: Likewise.
12468 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12470 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12472 * linespec.c (decode_variable, symtab_from_filename): Call
12473 error_silent with error message instead of throwing an exception
12475 * defs.h (error_silent, error_output_message): Add prototypes.
12476 (catch_exceptions_with_msg): Ditto.
12477 * utils.c (error_silent, error_output_message): New functions.
12478 * top.c (catch_exceptions_with_msg): New function.
12480 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12482 * mi/mi-cmds.h (enum print_values): Add definition.
12484 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12485 type and value for simple data types and just the name and type
12486 for complex ones, if required.
12488 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12489 children, if required.
12491 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12493 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12494 unused declarations.
12496 2004-01-19 Andrew Cagney <cagney@redhat.com>
12498 * top.h (mapped_symbol_files): Delete declaration.
12499 * main.c (captured_main): Delete option "m" and "mapped".
12500 * objfiles.c (mapped_symbol_files): Delete variable.
12501 * symfile.c (symbol_file_command): Delete mmap code.
12502 (symbol_file_add_with_addrs_or_offsets): Ditto.
12503 (add_symbol_file_command, reread_separate_symbols): Ditto.
12504 * objfiles.h (OBJF_MAPPED): Delete.
12505 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12506 (free_objfile) [USE_MMALLOC]: Ditto.
12507 (open_existing_mapped_file): Delete function.
12508 (open_mapped_file): Delete function.
12509 (map_to_file): Delete function.
12511 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12513 * infrun.c (step_into_function): Account for possible breakpoint
12514 adjustment when computing ``stop_func_start''.
12516 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12518 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12519 the region size against the size of a pointer, not the size of
12520 a register as given by DEPRECATED_REGISTER_SIZE.
12522 2004-01-19 Andrew Cagney <cagney@redhat.com>
12524 * tui/tui-regs.h: Include "tui-data.h".
12525 (tuiFirstRegElementNoInLine): Delete declaration.
12526 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12527 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12528 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12529 (tui_calculate_regs_column_count): Rename
12530 tuiCalculateRegsColumnCount.
12531 (tui_check_register_values): Rename tuiCheckRegisterValues.
12532 (tui_show_registers): Rename tuiShowRegisters.
12533 (tui_display_registers_from_line): Rename
12534 tuiDisplayRegistersFromLine.
12535 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12536 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12537 (tui_first_reg_element_no_inline): Rename
12538 tuiFirstRegElementNoInLine.
12539 * tui/tui-data.h: Update copyright.
12540 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12541 * tui/tui-windata.c: Update copyright, update references.
12542 * tui/tui-regs.c: Update copyright, update references.
12543 * tui/tui-win.c: Update copyright, update references.
12544 * tui/tui-layout.c: Update copyright, update references.
12546 2004-01-18 Andrew Cagney <cagney@redhat.com>
12548 * tui/tui-io.c: Update copyright.
12549 (key_is_end_sequence, key_is_backspace): New functions.
12550 (key_is_command_char, key_is_start_sequence): New function.
12551 (tui_getc): Update references.
12552 * tui/tui-io.h: Update copyright.
12553 (m_tuiStartNewLine): Delete macro.
12554 (m_isBackspace, m_isDeleteChar): Delete macros.
12555 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12556 (m_isNextPage, m_isPrevPage): Delete macros.
12557 (m_isLeftArrow, m_isRightArrow): Delete macros.
12558 (m_isXdbStyleCommandChar): Delete macro.
12559 (key_is_start_sequence): Declare, replace m_isStartSequence.
12560 (key_is_end_sequence): Declare, replace m_isEndSequence.
12561 (key_is_backspace): Declare ,replace m_isBackspace.
12562 (key_is_command_char): Declare, replace m_isCommandChar.
12563 * tui/tui-command.c: Update copyright.
12564 (tuiDispatchCtrlChar): Update references.
12566 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12569 * tui/tui-command.c: Rename tui/tuiCommand.c.
12570 * tui/tui-command.h: Rename tui/tuiCommand.h.
12571 * tui/tui-data.c: Rename tui/tuiData.c.
12572 * tui/tui-data.h: Rename tui/tuiData.h.
12573 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12574 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12575 * tui/tui-io.c: Rename tui/tuiIO.c.
12576 * tui/tui-io.h: Rename tui/tuiIO.h.
12577 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12578 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12579 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12580 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12581 * tui/tui-source.c: Rename tui/tuiSource.c.
12582 * tui/tui-source.h: Rename tui/tuiSource.h.
12583 * tui/tui-stack.c: Rename tui/tuiStack.c.
12584 * tui/tui-stack.h: Rename tui/tuiStack.h.
12585 * tui/tui-win.c: Rename tui/tuiWin.c.
12586 * tui/tui-win.h: Rename tui/tuiWin.h.
12587 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12588 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12589 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12590 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12591 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12592 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12593 * tui/tui-file.c: Update includes.
12594 * tui/tui-hooks.c: Update includes.
12595 * tui/tui-interp.c: Update includes.
12596 * tui/tui.c: Update includes.
12597 * Makefile.in: Update all tui/ dependencies.
12598 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12600 * Makefile.in: Update copyright. Update dependencies.
12602 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12605 2004-01-18 Andrew Cagney <cagney@redhat.com>
12607 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12608 instead of register_gdbarch_init.
12610 * remote-sds.c (tohex): Delete unused function. Update copyright.
12611 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12612 * v850-tdep.c (v850_register_virtual_size): Ditto.
12613 * target.c (normal_target_post_startup_inferior): Ditto.
12614 * source.c (ambiguous_line_spec): Ditto.
12615 * remote.c (adapt_remote_get_threadinfo): Ditto.
12616 * mi/mi-out.c (out_field_fmt): Ditto.
12617 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12618 (output_control_change_notification): Ditto.
12619 * m68k-tdep.c (m68k_register_byte): Ditto.
12620 (m68k_remote_breakpoint_from_pc): Ditto.
12621 * ui-out.c (init_ui_out_state): Delete unused declaration.
12622 * stabsread.c (search_value): Ditto.
12623 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12624 * maint.c (print_section_table): Ditto.
12625 * infrun.c (set_follow_fork_mode_command): Ditto.
12627 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12629 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12630 DW_CFA_def_cfa_exporession. Add support for
12631 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12632 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12634 2004-01-18 Andrew Cagney <cagney@redhat.com>
12636 * ocd.c: Update copyright.
12637 (bdm_read_register_command): Delete unused function.
12638 (_initialize_remote_ocd): Delete commented out reference.
12639 (get_quoted_char, reset_packet): Delete #if0ed function.
12640 (output_packet, put_quoted_char): Delete #if0ed function.
12641 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12642 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12643 (BDM_BREAKPOINT): Delete #if0ed macro.
12644 (remote_timeout): Delete #if0ed variable.
12646 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12648 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12649 (core-sol2.o): Remove dependency.
12650 * core-sol2.c: Remove file.
12652 2004-01-17 Andrew Cagney <cagney@redhat.com>
12654 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12655 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12658 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12660 * remote.c: Update copyright years.
12662 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12664 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12666 2004-01-17 Andrew Cagney <cagney@redhat.com>
12668 * mdebugread.c: Update copyright.
12669 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12670 (parse_type, parse_procedure): Ditto.
12671 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12673 * cris-tdep.c (cris_store_struct_return): Put back accidently
12676 * gdbarch.sh: Update copyright year.
12677 * gdbarch.h, gdbarch.c: Re-generate.
12679 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12681 Suggested by George Anzinger.
12682 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12683 correct stack offset. Include unknown opcode numbers in the error
12686 2004-01-17 Andrew Cagney <cagney@redhat.com>
12688 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12689 extract_struct_value_address, i386 does not set it.
12690 * sparc64-tdep.c (sparc64_init_abi): Do not set
12691 extract_struct_value_address, never called.
12692 (sparc64_extract_struct_value_address): Delete function.
12693 * m68hc11-tdep.c: Update copyright.
12694 (m68hc11_gdbarch_init): Delete redundant assignment of
12695 extract_struct_value_address.
12696 * i386-tdep.c: Update copyright.
12697 (i386_gdbarch_init): Do not set extract_struct_value_address,
12699 (i386_extract_struct_value_address): Delete function.
12700 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12701 extract_struct_value_address, never called.
12702 (sparc32_extract_struct_value_address): #if 0 function. Add
12703 comments explaining its future.
12705 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12707 * arm-tdep.c (arm_write_pc): New function.
12708 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12710 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12712 * breakpoint.c (must_shift_inst_regs): Delete.
12713 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12714 and SHIFT_INST_REGS.
12715 * infcmd.c (step_1, step_1_continuation): Delete references to
12717 * infrun.c (keep_going): Likewise.
12718 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12719 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12721 2004-01-17 Andrew Cagney <cagney@redhat.com>
12723 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12724 * gdbarch.h, gdbarch.c: Re-generate.
12725 * infcmd.c (print_return_value): Delete reference to
12726 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12728 * cris-tdep.c (cris_gdbarch_init): Do not set
12729 deprecated_extract_struct_value_address.
12731 * xstormy16-tdep.c: Update copyright.
12732 (xstormy16_extract_struct_value_address): Update to current
12733 extract struct value address interface.
12734 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12735 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12736 current extract struct value address interface.
12737 (sh64_gdbarch_init): Set extract_struct_value_address.
12739 * cris-tdep.c: Update copyright.
12740 (cris_extract_struct_value_address): Delete function.
12741 (struct_return_address): Delete variable.
12742 (cris_store_struct_return): Do not set struct_return_address.
12744 * mcore-tdep.c: Update copyright.
12745 (mcore_extract_struct_value_address): Delete function. Update
12747 (mcore_gdbarch_init): Update.
12748 * mn10300-tdep.c: Update copyright.
12749 (mn10300_extract_struct_value_address): Delete function.
12750 (mn10300_gdbarch_init): Update.
12751 * v850-tdep.c: Update copyright.
12752 (v850_extract_struct_value_address): Delete.
12753 (v850_gdbarch_init): Update.
12754 * ns32k-tdep.c: Update copyright.
12755 (ns32k_extract_struct_value_address): Delete.
12756 (ns32k_gdbarch_init): Update.
12757 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12758 (hppa_gdbarch_init): Update.
12759 * vax-tdep.c: Update copyright.
12760 (vax_extract_struct_value_address): Delete.
12761 (vax_gdbarch_init): Update.
12763 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12764 * gdbarch.h, gdbarch.c: Re-generate.
12765 * procfs.c (procfs_fetch_registers): Delete reference to
12766 DEPRECATED_NPC_REGNUM.
12767 (procfs_store_registers): Ditto.
12768 * regcache.c (generic_target_write_pc): Simplify.
12769 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12771 * core-sol2.c (fetch_core_registers): Replace
12772 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12774 * hppa-tdep.c: Update copyright year.
12775 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12777 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12779 * mips-tdep.c (mips_write_pc): New function.
12780 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12781 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12782 (mips_find_saved_regs, mips_software_single_step: Ditto.
12783 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12784 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12786 2004-01-17 Andrew Cagney <cagney@redhat.com>
12788 * mips-tdep.c: Re-indent. Group functions by ABI.
12790 2004-01-17 Andrew Cagney <cagney@redhat.com>
12792 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12793 * gdbarch.c: Re-generate.
12794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12795 DECR_PC_AFTER_BREAK to zero.
12796 * vax-tdep.c (vax_gdbarch_init): Ditto.
12797 * v850-tdep.c (v850_gdbarch_init): Ditto.
12798 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12799 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12800 * sh-tdep.c (sh_gdbarch_init): Ditto.
12801 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12802 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12803 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12804 * mips-tdep.c (mips_gdbarch_init): Ditto.
12805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12807 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12809 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12810 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12812 * frv-tdep.c (frv_gdbarch_init): Ditto.
12813 * cris-tdep.c (cris_gdbarch_init): Ditto.
12814 * avr-tdep.c (avr_gdbarch_init): Ditto.
12815 * arm-tdep.c (arm_gdbarch_init): Ditto.
12816 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12818 2004-01-17 J. Brobecker <brobecker@gnat.com>
12820 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12821 Delete, no longer used.
12822 (read_subrange_type): New function, mostly extracted from
12824 (read_array_type): Replace extracted code by call to
12825 read_subrange_type().
12826 (dwarf2_get_attr_constant_value): New function.
12827 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12828 (add_partial_symbol): Likewise.
12829 (process_die): Likewise.
12830 (new_symbol): Likewise.
12831 (read_type_die): Likewise.
12833 2004-01-16 Andrew Cagney <cagney@redhat.com>
12835 * symfile.c: Update copyright year.
12836 (compare_symbols): Delete unused function.
12837 * stabsread.c: Update copyright year.
12838 (lrs_general_complaint): Delete unused function.
12839 (ref_search_value): Ditto.
12840 (get_substring): Delete declaration.
12841 * sh64-tdep.c: Update copyright year.
12842 (sh64_get_gdb_regnum): Delete unused function.
12843 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12844 Delete unused function.
12846 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12848 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12849 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12851 2004-01-16 Andrew Cagney <cagney@redhat.com>
12853 Changes from Peter Schauer.
12854 * rs6000-tdep.c: Update copyright year.
12855 (rs6000_push_dummy_call): Update the stack pointer before
12856 accessing the corresponding stack region.
12857 * rs6000-nat.c: Update copyright year.
12858 (set_host_arch): Set "info.abfd" to "exec_bfd".
12860 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12862 * blockframe.c: Update copyright year.
12863 (inside_entry_func): Don't treat a zero PC specially.
12865 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12867 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12869 (gcore_create_callback): Ditto. Skip any memory segment that has
12870 no permissions set.
12872 2004-01-14 David Carlton <carlton@kealia.com>
12874 Change symbols for C++ nested types to contain the fully qualified
12875 name, if possible. (At least in the DWARF-2 case.) Partial fix
12876 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12878 * c-exp.y (qualified_type): Handle types nested within classes.
12879 * cp-namespace.c: Update comments.
12880 (cp_set_block_scope): Delete #if 0.
12881 (cp_lookup_nested_type): Handle types nested within classes.
12882 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12884 (add_partial_symbol): Add the name of the enclosing namespace to
12886 (pdi_needs_namespace): New.
12887 (add_partial_namespace): Tweak comment.
12888 (add_partial_structure): New.
12889 (psymtab_to_symtab_1): Initialize processing_current_prefix
12891 (process_die): instead of here.
12892 (read_structure_scope): Try to figure out the name of the class or
12893 namespace that the structure might be defined within.
12894 (read_enumeration): Generate fully-qualified names, if possible.
12895 (read_namespace): Don't set name to NULL.
12896 (die_specification): New.
12897 (new_symbol): Generate fully-qualified names for types.
12898 (read_type_die): Determine appropriate prefix.
12899 (determine_prefix): New.
12900 (typename_concat): New.
12902 * valops.c (value_aggregate_elt): Pass NOSIDE to
12903 value_struct_elt_for_reference.
12904 (value_struct_elt_for_reference): Make static, add NOSIDE
12905 parameter, call value_maybe_namespace_elt as a last resort.
12906 (value_namespace_elt): Break out code into
12907 value_maybe_namespace_elt.
12908 (value_maybe_namespace_elt): New.
12910 2004-01-12 Andrew Cagney <cagney@redhat.com>
12912 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12913 cooked floating-point registers.
12914 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12915 and value_to_register.
12917 2004-01-13 Andrew Cagney <cagney@redhat.com>
12919 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12920 * gdbarch.c: Re-generate.
12921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12922 FUNCTION_START_OFFSET.
12923 * v850-tdep.c (v850_gdbarch_init): Ditto.
12924 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12925 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12926 * sh-tdep.c (sh_gdbarch_init): Ditto.
12927 * s390-tdep.c (s390_gdbarch_init): Ditto.
12928 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12929 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12930 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12931 * mips-tdep.c (mips_gdbarch_init): Ditto.
12932 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12933 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12935 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12936 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12937 * i386-tdep.c (i386_gdbarch_init): Ditto.
12938 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12939 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12940 * frv-tdep.c (frv_gdbarch_init): Ditto.
12941 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12942 * cris-tdep.c (cris_gdbarch_init): Ditto.
12943 * avr-tdep.c (avr_gdbarch_init): Ditto.
12944 * arm-tdep.c (arm_gdbarch_init): Ditto.
12945 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12947 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12949 * infrun.c (follow_fork_mode_ask): Remove.
12950 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12951 (follow_fork): Simplify and remove internal error for
12952 follow_fork_mode_ask.
12953 (_initialize_infrun): Update "set follow-fork-mode" help text.
12955 2004-01-13 Andrew Cagney <cagney@redhat.com>
12957 * configure.in: Update copyright year.
12958 (build_warnings): Add -Wunused-label.
12959 * configure: Re-generate.
12961 2004-01-12 Andrew Cagney <cagney@redhat.com>
12963 * exec.h (exec_ops): Make "extern".
12965 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12966 the function is void.
12967 (mips_pseudo_register_write): Ditto.
12969 2004-01-12 Andrew Cagney <cagney@redhat.com>
12971 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12972 call. Never defined.
12973 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12974 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12975 (struct sparc_gregset, struct regcache): Ditto.
12976 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12978 2004-01-12 Andrew Cagney <cagney@redhat.com>
12980 * mi/ChangeLog: Delete file. Renamed to ...
12981 * mi/ChangeLog-1999-2003: New file.
12982 * tui/ChangeLog: Delete file. Renamed to ...
12983 * tui/ChangeLog-1998-2003: New file.
12985 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12987 * sparc64nbsd-tdep.c: Include "regset.h".
12988 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12990 (fetch_core_registers): Remove function.
12991 (sparc64nbsd_core_fns): Remove variable.
12992 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12994 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12995 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12996 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12998 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12999 sparc_extract_struct_value_address.
13000 (sparc32_gdbarch_init): Set extract_struct_value_address.
13001 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13003 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13004 return_value_on_stack.
13006 * NEWS: Mention that %cs and %ss have been added to the AMD64
13009 * frame.c: Update copyright year.
13010 (get_prev_frame): Improve comment.
13012 * sparc64fbsd-tdep.c: Include "regset.h".
13013 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13015 (fetch_core_registers): Remove function.
13016 (sparc64fbsd_core_fns): Remove variable.
13017 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13019 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13020 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13021 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13023 * sparcnbsd-tdep.c: Include "regset.h".
13024 (fetch_core_registers): Remove function.
13025 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13026 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13028 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13030 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13032 * sparc-tdep.h (struct regset): Provide opaque declaration.
13033 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13034 fpregset and sizeof_fpregset members.
13035 * sparc-tdep.c (struct regset): Provide opaque declaration.
13036 (sparc_regset_from_core_section): New function.
13037 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13038 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13039 Set regset_from_core_section when appropriate.
13041 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13043 * x86-64-tdep.c (amd64_non_pod_p): New function.
13044 (amd64_classify_aggregate): Return class memory for non-POD
13045 C++ structure types.
13047 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13048 argument. Use it to reserve a register if necessary.
13049 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13050 amd64_push_arguments.
13052 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13054 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13055 register numbers in comments.
13056 * x86-64-tdep.h: Update copyright year.
13057 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13058 Adjust for addition of %cs and %ss.
13059 * amd64fbsd-nat.c: Update copyright year.
13060 (reg_offset): Add register offsets for %cs and %ss.
13061 * amd64fbsd-tdep.c: Update copyright year.
13062 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13063 (amd64fbsd_sc_reg_offset): Likewise.
13064 * x86-64-linux-nat.c: Update copyright year.
13065 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13067 * amd64nbsd-nat.c: Update copyright year.
13068 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13069 * amd64nbsd-tdep.c: Update copyright year.
13070 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13071 * x86-64-linux-tdep.c: Update copyright year.
13072 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13073 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13074 * regformats/reg-x86-64.dat: Add %cs and %ss.
13076 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13077 variables to prevent long lines. Update comments to reflect
13080 2004-01-09 David Carlton <carlton@kealia.com>
13082 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13083 * dwarf2read.c (read_namespace): Pull out name-generating code
13084 into namespace_name. Rename previous_namespace to previous_prefix
13085 and processing_current_namespace to processing_current_prefix..
13086 (namespace_name): New function.
13087 (add_partial_symbol): Substitute uses of pdi->name with
13089 * cp-support.h: Rename processing_current_namespace to
13090 processing_current_prefix.
13091 Update copyright year.
13092 * cp-namespace.c: Rename processing_current_namespace to
13093 processing_current_prefix.
13094 Update copyright year.
13096 2004-01-09 Andrew Cagney <cagney@redhat.com>
13098 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13100 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13102 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13104 (process_one_symbol): Deal with N_PATCH stabs.
13106 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13108 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13110 Update copyright year.
13112 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13114 * config/pa/tm-hppa.h: Update extern declarations for
13115 hppa32_hpux_frame_saved_pc_in_sigtramp,
13116 hppa32_hpux_frame_base_before_sigtramp, and
13117 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13119 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13121 * config/pa/tm-hppah.h: Update copyright years.
13123 2004-01-08 Andrew Cagney <cagney@redhat.com>
13125 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13126 (mips_o32_reg_struct_has_addr): Delete function.
13127 (mips_gdbarch_init): Update.
13128 (mips_extract_struct_value_address): Delete function.
13130 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13132 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13135 2004-01-07 Andrew Cagney <cagney@redhat.com>
13137 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13138 architecture's elf flags (when available).
13140 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13141 FPU to the start, check the MIPS FPU when looking for an old
13143 (set_mipsfpu_single_command): Update the architecture.
13144 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13146 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13147 (mips_mask_address_p): Add "tdep" parameter.
13148 (show_mask_address, mips_addr_bits_remove): Update.
13149 (mips_dump_tdep): Update.
13150 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13151 (MIPS_STACK_ARGSIZE): Delete macro.
13152 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13153 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13154 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13155 (mips_dump_tdep): Update.
13156 (MIPS_SAVED_REGSIZE): Delete macro.
13157 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13158 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13159 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13160 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13161 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13162 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13163 (mips_pop_frame, return_value_location): Update.
13164 (mips_n32n64_return_value, mips_dump_tdep): Update.
13166 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13169 * mips-tdep.c: Update copyright.
13170 (mips_gdbarch_init): Merge two code blocks handling the register
13171 name and number layout.
13173 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13175 * tracepoint.c (validate_actionline): Fix segv at EOF
13177 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13179 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13180 properly for static fields.
13182 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13183 Jason Molenda <jmolenda@apple.com>
13185 * disasm.c: Update copyright to include 2004.
13186 (do_mixed_source_and_assembly): For uiout asm list
13187 and tuple cleanups, initialize to null_cleanup instead of
13188 NULL and do so prior to loop. Only reset when we close off
13189 the tuple/list. Move check for whether to close off the
13190 asm tuple/list to after dump_insns call where it will be run
13191 on each loop iteration.
13193 2004-01-05 Andrew Cagney <cagney@redhat.com>
13195 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13196 should be a switch case and not a label.
13197 * mips-tdep.c (mips32_next_pc): Delete unused labels
13198 "greater_equal_branch" and "less_zero_branch".
13199 * jv-valprint.c (java_print_value_fields): Delete unused label
13202 * target.c (unpush_target): Only close a target that is in the
13205 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13207 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13208 address from [sp + 64] instead of %o2.
13210 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13211 fixes PR backtrace/1476.
13213 2004-01-05 Andrew Cagney <cagney@redhat.com>
13215 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13216 move to start of file.
13217 * i386-tdep.h (struct regcache): Add opaque declaration.
13218 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13220 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13221 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13222 * win32-nat.c (fake_create_process): Use ISO C style definition.
13223 * stabsread.c (define_symbol): Delete #ifndef
13224 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13225 stabs_argument_has_addr call, macro never defined.
13227 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13229 * op50-rom.c: Delete.
13230 * w89k-rom.c: Delete.
13231 * Makefile.in: Remove references.
13233 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13235 * x86-64-tdep.c: Update copyright year.
13236 (struct amd64_register_info): Rename from x86_64_register_info.
13237 (amd64_register_info): Rename from x86_64_register_info.
13238 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13239 (amd64_register_name): Rename from x86_64_register_name.
13240 (amd64_register_type): Rename from x86_64_register_type.
13241 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13242 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13243 (amd64_dwarf_reg_to_regnum): Rename from
13244 x86_64_dwarf_reg_to_regnum.
13245 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13246 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13247 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13248 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13249 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13250 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13251 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13252 (amd64_frame_cache): Rename from x86_64_frame_cache.
13253 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13254 (amd64_frame_prev_register): Rename from
13255 x86_64_frame_prev_register.
13256 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13257 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13258 (amd64_sigtramp_frame_cache): Rename from
13259 x86_64_sigtramp_frame_cache.
13260 (amd64_sigtramp_frame_prev_register): Rename from
13261 x86_64_sigtramp_frame_prev_register.
13262 (amd64_sigtramp_frame_unwind): Rename from
13263 x86_64_sigtramp_frame_unwind.
13264 (amd64_sigtramp_frame_sniffer): Rename from
13265 x86_64_sigtramp_frame_sniffer.
13266 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13267 (amd64_frame_base): Rename from x86_64_frame_base.
13268 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13269 (amd64_frame_align): Rename from x86_64_frame_align.
13270 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13271 (amd64_regset_from_core_section): Rename from
13272 x86_64_regset_from_core_section.
13273 (x86_64_init_abi): Update comments.
13275 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13277 * MAINTAINERS (write after approval): Add myself.
13279 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13281 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13284 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13286 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13287 such that it mentions a specific version of GCC that exhibits this
13290 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13292 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13293 structure that has a single `float' member, store it in %f1 in
13296 * sparc-sol2-nat.c: Add missing '\'.
13298 * sparc-tdep.c (sparc32_return_value): New function.
13299 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13301 (sparc32_gdbarch_init): Set return_value, don't set
13302 extract_return_value, store_return_value, use_struct_convention
13303 and return_value_on_stack.
13305 * sparc-sol2-nat.c: Add missing ')'.
13307 2004-01-03 J. Brobecker <brobecker@gnat.com>
13309 * infrun.c (handle_step_into_function): New function.
13310 (handle_inferior_event): Extract out some code into the new
13313 2004-01-03 J. Brobecker <brobecker@gnat.com>
13315 * infrun.c (handle_inferior_event): Move the declaration of
13316 real_stop_pc inside the if blocks where it is used.
13318 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13320 * sparc64-tdep.c (sparc64_16_byte_align_p)
13321 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13322 Use check_typedef to get subtypes of structures and unions.
13323 (sparc64_store_return_value): Fix calculation of the appropriate
13324 offset into VALBUF when storing a structure or union.
13325 (sparc64_return_value): New function.
13326 (sparc64_use_struct_convention): Remove function.
13327 (sparc64_init_abi): Set return_value, don't set
13328 extract_return_value, store_return_value and
13329 use_struct_convention.
13331 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13333 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13334 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13335 gdb/config/alpha/xm-alphaosf.h,
13336 gdb/config/powerpc/tm-ppcle-eabi.h,
13337 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13338 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13339 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13340 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13341 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13342 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13343 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13344 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13345 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13346 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13347 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13348 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13349 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13350 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13351 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13352 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13353 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13354 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13355 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13356 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13357 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13358 Remove lines for .cvsignore files.
13360 2004-01-03 J. Brobecker <brobecker@gnat.com>
13362 * infrun.c: Back out the previous change.
13364 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13366 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13367 sparc-*-sunos4* to the list of REMOVED configurations.
13369 * configure.tgt: Add back sparc-*-vxworks*.
13370 * remote-vxsparc.c: Remove all includes except for "defs.h",
13371 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13372 Include "sparc-tdep.h".
13373 (SPARC_R_G1): New define.
13374 (vxsparc_gregset): New variable.
13375 (ext_format_sparc): Remove extern declaration.
13376 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13377 sparc32_supply_fpregset.
13378 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13379 sparc_collect_rwindow and sparc32_collect_fpregset.
13380 * config/sparc/tm-vxworks.h: New file, based on recently removed
13382 * config/sparc/vxworks.mt: New file, based on recently removed
13385 2004-01-03 J. Brobecker <brobecker@gnat.com>
13387 * infrun.c (handle_step_into_function): New function.
13388 (handle_inferior_event): Extract out some code into the new
13391 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13393 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13394 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13395 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13396 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13397 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13398 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13399 (sparc_nat_h): New variable.
13400 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13401 (tm-sun4os4.h): Remove dependency.
13402 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13403 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13404 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13405 sparc-tdep.o): Update dependencies.
13406 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13407 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13408 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13410 * configure.host: Remove existing sparc-*-lynxos*,
13411 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13412 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13413 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13414 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13416 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13417 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13418 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13419 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13420 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13421 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13422 sparc64-*-solaris2* and sparc64-*-* triplets.
13423 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13424 "symtab.h" and "objfiles.h".
13425 (BIAS): Remove define.
13426 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13427 (X_DISP19): Remove macros.
13428 (sparc_fetch_instruction): Remove function.
13429 (struct gdbarch_tdep): Remove definition.
13430 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13431 (sparc_breakpoint_from_pc): Remove function.
13432 (struct sparc64_frame_cache): Remove definition.
13433 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13434 sparc64_unwind_pc): Remove functions.
13435 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13436 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13437 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13438 (sparc64_frame_cache): Change return type to `struct
13439 sparc_frame_cache *'. Simply call sparc_frame_cache.
13440 (sparc64_frame_this_id, sparc64_frame_prev_register,
13441 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13442 instead of `struct sparc64_frame_cache.
13443 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13444 sparc_analyze_control_transfer, sparc_software_single_step,
13445 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13446 _initialize_sparc64_tdep): Remove functions.
13447 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13448 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13450 (sparc64_supply_gregset, sparc64_collect_gregset,
13451 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13452 (sparc64_init_abi): New function.
13453 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13454 inclusion guard. Include "sparc-tdep.h".
13456 (r_tstate_offset, r_fprs_offset): New defines.
13457 (enum sparc_regnum): Remove defenition.
13458 (enum sparc64_regnum): Reformat.
13459 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13460 (sparc64_init_abi, sparc64_supply_gregset,
13461 sparc64_collect_gregset, sparc64_supply_fpregset,
13462 sparc64_collect_fpregset): New prototypes.
13463 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13464 Add extern declarations.
13465 (sparc64_sol2_init_abi): New prototype.
13466 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13467 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13469 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13471 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13473 (_initialize_sparc64fbsd_nat): Remove initialization of
13474 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13475 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13476 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13477 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13478 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13479 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13480 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13481 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13482 (sparc64fbsd_r_y_offset): Remove variables.
13483 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13484 Make static and const.
13485 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13486 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13488 (sparc64fbsd_gregset): New variable.
13489 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13490 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13491 and sparc64_supply_fpregset.
13492 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13493 (sparc64fbsd_sigtramp_frame_this_id)
13494 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13495 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13496 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13497 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13498 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13499 * sparcnbsd-tdep.c: Update copyright year. Include
13500 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13501 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13502 "value.h" and "sparcnbsd-tdep.h".
13503 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13504 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13505 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13506 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13508 (sparcnbsd_gregset): New variable.
13509 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13510 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13511 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13512 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13513 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13515 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13516 (sparc32nbsd_sigcontext_frame_this_id)
13517 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13518 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13519 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13520 (sparcnbsd_get_longjmp_target_32,
13521 sparcnbsd_get_longjmp_target_64): Remove functions.
13522 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13523 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13524 sparcnbsd_init_elf): Remove.
13525 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13526 (sparcnbsd_elf_init_abi): New functions.
13527 (_initialize_sparcnbsd_tdep): New prototype.
13528 (_initialize_sparnbsd_tdep): Update.
13529 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13530 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13531 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13532 * config/sparc/linux.mh: Update comment.
13533 (XM_FILE, HOST_IPC): Remove variables.
13534 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13536 * config/sparc/linux.mt: Update comment.
13537 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13538 * config/sparc/nbsd.mt: Reformat.
13539 * config/sparc/nbsd64.mh: Update comment.
13540 (NATDEPFILES): Add sparc-nat.o.
13541 * config/sparc/nbsd64.mt: Update comment.
13542 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13543 (TM_FILE): Set to tm-nbsd.h.
13544 * config/sparc/nbsdelf.mh: Update comment.
13545 (NATDEPFILES): Add sparc-nat.o.
13547 * config/sparc/nbsdaout.mh: Update comment.
13548 (NATDEPFILES): Add sparc-nat.o
13550 * config/sparc/nm-linux.h: Update copyright year. Don't include
13551 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13553 (KERNEL_U_SIZE): Remove define.
13554 (kernel_u_size): Remove prototype.
13555 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13556 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13558 (CHILD_PREPARE_TO_STORE): Remove define.
13559 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13560 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13561 sparcnbsd-nat.c: Rewrite files.
13562 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13563 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13564 sparcnbsd-tdep.h: Remove files.
13565 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13566 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13567 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13568 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13569 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13570 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13571 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13572 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13573 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13574 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13575 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13576 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13577 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13578 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13579 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13580 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13581 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13582 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13583 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13585 2004-01-02 Andrew Cagney <cagney@redhat.com>
13587 From 2003-12-18 Kazuhiro Inaoka:
13588 * configure.host: Add m32r-linux target.
13590 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13592 * top.c (print_gdb_version): Update year to 2004.
13594 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13596 * MAINTAINERS: Add myself to the write-after-approval category.
13598 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13600 From Bernardo Innocenti <bernie@develer.com>:
13601 * configure.tgt: Add uClinux target.
13603 2004-01-02 Andrew Cagney <cagney@redhat.com>
13605 * utils.c (do_my_cleanups): Make static, add forward declaration.
13606 * defs.h (do_my_cleanups): Delete declaration.
13608 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13610 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13611 bfd/ChangeLog-0203.
13613 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13615 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13616 in <machine/reg.h>.
13617 * configure, config.in: Regenerate.
13619 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13620 tui/ChangeLog-1998-2003.
13626 version-control: never