* dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-07 Daniel Jacobowitz <dan@debian.org>
2
3 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
4 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
5 (dwarf2_signal_frame_unwind): New.
6 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
7 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
8
9 2004-11-07 Mark Kettenis <kettenis@gnu.org>
10
11 * Makefile.in (mips64obsd-tdep.o): Fix typo.
12
13 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
14 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
15 to only include the structure members we actually need.
16 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
17 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
18 only include the structure members we actually need.
19 (mipsnbsd_init_abi): Update.
20
21 * mips64obsd-nat.c: Include "mips-tdep.h".
22 (MIPS64OBSD_NUM_REGS): Remove define.
23 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
24 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
25 floating-point registers correctly.
26 * Makefile.in (mips64obsd-nat.o): Update dependencies.
27
28 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
29 "gdb_assert.h".
30 (mips64obsd_sigframe_init): New function.
31 (mips64obsd_sigframe): New variable.
32 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
33 unwinder.
34 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
35
36 2004-11-06 Joel Brobecker <brobecker@gnat.com>
37
38 * alpha-mdebug-tdep.c: #include mdebugread.h.
39 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
40 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
41
42 2004-11-05 Andrew Cagney <cagney@gnu.org>
43
44 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
45 CFI and the init_reg method leave the register unspecified.
46 Include the register name in the "Incomplete CFI data" complaint.
47 Supress leading zeros in the address.
48
49 2004-11-05 Mark Kettenis <kettenis@gnu.org>
50
51 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
52 skipping a personality routine in a CIE augmentation.
53
54 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
55
56 * defs.h (fatal, vfatal): New function prototypes.
57 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
58 via catch_errors.
59 (backtrace_command): Change to call backtrace_command_stub via
60 catch_errors instead of calling backtrace_command_1 directly.
61 (backtrace_full_command): Ditto.
62 * utils.c (error_stream_1): New static function.
63 (verror): Change to call error_stream_1 instead of error_stream.
64 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
65 (vfatal, fatal): New functions.
66
67 2004-11-05 Andrew Cagney <cagney@gnu.org>
68
69 * stack.c (parse_frame_specification_1): Clear selected_frame_p
70 when not using selected frame.
71
72 2004-11-05 Mark Kettenis <kettenis@jive.nl>
73
74 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
75 personality routine in a CIE augmentation.
76
77 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
78
79 * stack.c (set_current_sal_from_frame): New function.
80 (print_args_stub): Use it.
81 (print_frame_info): Don't set sal here.
82
83 2004-11-04 Mark Kettenis <kettenis@gnu.org>
84
85 * dwarf2-frame.c (read_encoded_value): Change type of third
86 argument to `unsigned char *'. Add support for LEB128 encodings.
87
88 2004-11-04 Jim Blandy <jimb@redhat.com>
89
90 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
91 prevent cross-objfile references.
92 (make_cv_type): Doc fix. Don't create cross-objfile references,
93 even for stub types.
94 (replace_type): Add assertion to prevent cross-objfile references.
95 (check_typedef): Never resolve a stub type by copying over a type
96 from another file.
97
98 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
99
100 * Makefile.in (m32r-tdep.o): Update dependencies.
101 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
102 ABI-specific overrides.
103
104 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
105
106 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
107 unnecessary parallel execution bit.
108 (m32r_memory_remove_breakpoint): Ditto.
109 (m32r_breakpoint_from_pc): Update.
110
111 2004-11-03 Randolph Chung <tausq@debian.org>
112
113 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
114 frame_func_unwind to locate the unwind entry.
115 (hppa_frame_this_id): Likewise.
116
117 2004-11-03 Andrew Cagney <cagney@gnu.org>
118
119 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
120 packet, obsolete configurations, end-of-life deprecated_registers.
121
122 2004-11-02 Mark Kettenis <kettenis@gnu.org>
123
124 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
125 encodings as well as unsigned encodings.
126
127 2004-11-02 Andrew Cagney <cagney@gnu.org>
128
129 * value.h (COERCE_VARYING_ARRAY): Delete.
130 * valops.c (value_cast, value_slice): Delete use.
131 * valarith.c (value_subscript, value_concat): Delete use.
132
133 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
134
135 * NEWS: GDB understands GNAT Ada.
136
137 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
138
139 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
140 (amd64-sol2-tdep.o): Add dependencies.
141 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
142 config/i386/sol2-64.mt: New files.
143 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
144 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
145 (supply_gregset): Correct order of arguments to
146 amd64_supply_native_gregset.
147 (fill_gregset): Correct order of arguments to
148 amd64_collect_native_gregset.
149 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
150 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
151 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
152 for definition of NEW_PROC_API.
153 * configure: Regenerate.
154
155 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
156
157 * MAINTAINERS (Write After Approval): Add myself.
158
159 2004-11-01 Andrew Cagney <cagney@gnu.org>
160
161 * configure.tgt: Mark d10v-*-* as obsolete.
162 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
163
164 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
165
166 * values.c (modify_field): Correct handling of bit-fields that
167 don't fit in 32 bits. Use unsigned operations throughout and
168 simplify the code a bit. Document preconditions.
169
170 2004-10-31 Andrew Cagney <cagney@gnu.org>
171
172 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
173 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
174 (in_plt_section): Delete.
175
176 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
177 (mips_gdbarch_init): Do not set same.
178
179 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
180 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
181
182 * gdbarch.sh (in_solib_call_trampoline): Delete.
183 * gdbarch.h, gdbarch.c: Re-generate.
184
185 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
186 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
187 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
188 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
189 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
190
191 2004-10-31 Mark Kettenis <kettenis@gnu.org>
192
193 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
194 (mipsnbsd_fetch_inferior_registers): Rename from
195 fetch_inferior_registers. Make static.
196 (mipsnbsd_store_inferior_registers): Rename from
197 store_inferior_registers. Make static.
198 (_initialize_mipsnbsd_nat): New function and prototype.
199 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
200 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
201 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
202 inf-ptrace.o.
203
204 2004-10-31 Andrew Cagney <cagney@gnu.org>
205
206 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
207 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
208 delete corresponding unused function.
209 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
210 in_solib_call_trampoline.
211 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
212 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
213 * config/mips/tm-nbsd.h: Ditto.
214 * config/arm/tm-linux.h: Ditto.
215 * config/mips/tm-linux.h: Ditto.
216
217 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
218 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
219 in_solib_call_trampoline, delete corresponding unused function.
220 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
221 (vaxnbsd_aout_init_abi): Ditto.
222 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
223 (sparc32nbsd_aout_init_abi): Ditto.
224 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
225 (ppc_linux_init_abi): Ditto.
226 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
227 (ns32knbsd_init_abi_aout): Ditto.
228 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
229 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
230 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
231 (m68kbsd_aout_init_abi): Ditto.
232 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
233 (i386_cygwin_init_abi): Ditto.
234 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
235 (i386bsd_init_abi): Ditto.
236
237 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
238 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
239 isn't used by this architecture.
240 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
241 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
242 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
243 * s390-tdep.c (s390_gdbarch_init): Ditto.
244 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
245 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
246 * i386-tdep.c (i386_svr4_init_abi): Ditto.
247 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
248 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
249 * amd64-tdep.c (amd64_init_abi): Ditto.
250
251 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
252 in_solib_call_trampoline to its default value of
253 generic_in_solib_call_trampoline.
254 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
255 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
256 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
257 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
258 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
259 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
260
261 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
262
263 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
264
265 * config/mips/tm-mips.h: Delete file.
266 * remote-mips.c: Delete tm-mips.h from comment.
267 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
268 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
269 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
270 * config/mips/tm-linux.h: Don't include tm-mips.h.
271 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
272 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
273 * config/mips/tm-wince.h: Don't include.
274
275 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
276 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
277 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
278 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
279
280 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
281 * mdebugread.c (ecoff_relocate_efi): Delete function.
282 * objfiles.c (objfile_relocate): Delete #ifdef
283 MDEBUG_EFI_SYMBOL_NAME code.
284
285 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
286 Andrew Cagney <cagney@gnu.org>
287
288 * gdbarch.sh (single_step_through_delay): Add.
289 * gdbarch.h, gdbarch.c: Re-generate.
290 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
291 (mips_step_skips_delay): Delete.
292 * mips-tdep.c (mips_single_step_through_delay): Replace
293 mips_step_skips_delay.
294 (mips_gdbarch_init): Set single_step_through_delay.
295 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
296
297 2004-10-31 Mark Kettenis <kettenis@gnu.org>
298
299 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
300 from TRAMP_FRAME frame type.
301
302 2004-10-31 Andrew Cagney <cagney@gnu.org>
303
304 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
305
306 * mips-tdep.c (mips_ignore_helper): Delete.
307 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
308 * infrun.c (handle_inferior_event): Delete #ifdef
309 DEPRECATED_IGNORE_HELPER_CALL code.
310
311 * config/mips/tm-mips.h (RA_REGNUM): Delete.
312
313 2004-10-31 Mark Kettenis <kettenis@gnu.org>
314
315 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
316 (fill_fpregset): Do not compile for 64-bit systems.
317 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
318 * Makefile.in (i386-sol2-nat.o): Update dependencies.
319 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
320
321 2004-10-30 Andrew Cagney <cagney@gnu.org>
322
323 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
324 (struct mdebug_extra_func_info): Define.
325 * config/alpha/tm-alpha.h: Delete same.
326 * config/mips/tm-mips.h: Delete same.
327 * mdebugread.c: Delete same.
328 * Makefile.in: Update dependencies.
329 * mips-mdebug-tdep.c: Include "mdebugread.h".
330
331 * objfiles.c: Include "mdebugread.h".
332 * mdebugread.c: Include "mdebugread.h".
333 (ecoff_relocate_cfi): Delete.
334 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
335 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
336 * mdebugread.h (ecoff_relocate_efi): New file.
337 * Makefile.in: Update dependencies.
338
339 * mips-tdep.c (struct frame_extra_info): Delete.
340 (temp_proc_desc): Delete.
341
342 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
343 MIPS_EFI_SYMBOL_NAME.
344 (mips_extra_func_info_t, mips_extra_func_info): Delete.
345 (struct mdebug_extra_func_info): Replace struct
346 alpha_extra_func_info and alpha_extra_func_info_t.
347 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
348 MIPS_EFI_SYMBOL_NAME.
349 (struct mdebug_extra_func_info): Replace struct
350 alpha_extra_func_info and alpha_extra_func_info_t.
351 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
352 * mdebugread.c, alpha-mdebug-tdep.c:
353
354 Suggested by Mark Kettenis.
355 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
356 fields frame_adjust and high_addr.
357 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
358 (non_heuristic_proc_desc): Delete references.
359
360 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
361 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
362 * mips-tdep.c: Update.
363
364 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
365 (MIPS_LAST_EMBED_REGNUM): Add.
366 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
367 (LAST_EMBED_REGNUM): Delete.
368 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
369
370 * config/mips/tm-mips.h (PS_REGNUM): Delete.
371 * mips-tdep.h (MIPS_PS_REGNUM): Add.
372 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
373 * mips-linux-nat.c: Update.
374
375 * mips-tdep.h: Add comments on registers.
376 (MIPS_UNUSED_REGNUM): Define.
377 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
378 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
379 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
380 * mips-linux-nat.c, remote-mips.c: Update.
381
382 * config/mips/tm-mips.h (t_insn): Delete.
383 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
384 Replace t_insn with ULONGEST.
385
386 2004-10-30 Mark Kettenis <kettenis@gnu.org>
387
388 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
389 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
390 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
391 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
392 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
393 (mipsnbsd_core_osabi_sniffer): New function.
394 (mipsnbsd_init_abi): Set regset_from_core_section.
395 (_initialize_mipsnbsd_tdep): Remove calls to
396 deprecated_add_core_fns.
397 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
398 (mipsnbsd_regset_from_core_section): New functions.
399 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
400 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
401
402 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
403 Remove optimization for DEPRECATED_FP_REGNUM.
404
405 2004-10-30 Andrew Cagney <cagney@gnu.org>
406
407 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
408 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
409 (alpha_setup_arbitrary_frame): Delete.
410 * mips-tdep.c (setup_arbitrary_frame): Delete.
411 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
412 (setup_arbitrary_frame): Delete.
413 * stack.c (parse_frame_specification_1): When specified, call
414 create_new_frame with two parameters. Delete #ifdef
415 SETUP_ARBITRARY_FRAME.
416
417 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
418 (MIPS_INSTLEN): Delete.
419 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
420 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
421 * remote-mips.c, mips-tdep.c: Update.
422
423 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
424 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
425 * mips-tdep.c (mips_mdebug_frame_cache)
426 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
427 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
428 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
429 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
430 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
431 (mips_gdbarch_init): Do not append mdebug sniffers.
432 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
433 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
434 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
435 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
436 * Makefile.in: Update dependencies.
437
438 * mips-tdep.h (mips_abi_regsize): Declare.
439 * mips-tdep.c (mips_abi_regsize): Make non-static.
440
441 * mips-tdep.c (gdb_print_insn_mips): Simplify.
442 (make_mips16_addr): Delete.
443
444 2004-10-30 Mark Kettenis <kettenis@gnu.org>
445
446 * i386-sol2-nat.c: New file.
447 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
448 i386-sol2-tdep.c.
449 (i386-sol2-nat.o): Update dependencies.
450 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
451 i386-sol2-nat.o.
452
453 2004-10-30 Andrew Cagney <cagney@gnu.org>
454
455 Total breakage identified by Joel Brobecker.
456 * mips-tdep.c (after_prologue): Delete.
457 (mips_skip_prologue): Use skip_prologue_using_sal.
458 (heuristic_proc_desc): Delete, unused.
459
460 2004-10-30 Mark Kettenis <kettenis@gnu.org>
461
462 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
463 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
464 Cleanup coding style.
465
466 2004-10-30 Andrew Cagney <cagney@gnu.org>
467
468 * mips-tdep.h (mips_pc_is_mips16): Declare.
469 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
470 non-static. Update calls.
471
472 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
473 * command.h (add_setshow_enum_cmd): Declare.
474 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
475
476 * mips-tdep.c (_initialize_mips_tdep): Use
477 add_setshow_zinteger_cmd.
478
479 * mips-tdep.c (mips_eabi_extract_return_value)
480 (mips_o64_extract_return_value, mips_o64_store_return_value)
481 (return_value_location, mips_eabi_reg_struct_has_addr)
482 (mips_eabi_use_struct_convention)
483 (mips_eabi_store_return_value): Delete.
484 (mips_eabi_store_return_value): New function.
485 (mips_eabi_return_value): New function.
486 (mips_gdbarch_init): For O64 and EABI, delete
487 extract_return_value, store_return_value, use_struct_convention
488 and reg_struct_has_addr, add return_value.
489
490 * mips-tdep.c (read_signed_register): Use
491 regcache_cooked_read_signed.
492
493 2004-10-30 Mark Kettenis <kettenis@gnu.org>
494
495 * mipsread.c: Cleanup coding style.
496 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
497 (mipscoff_symfile_finish): Remove prototypes.
498
499 2004-10-29 Mark Kettenis <kettenis@gnu.org>
500
501 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
502 (mips_mdebug_frame_cache, mips16_scan_prologue)
503 (mips32_scan_prologue, mips_stub_frame_cache)
504 (heuristic_proc_start, heuristic_proc_desc)
505 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
506 (mips_n32n64_return_value, mips_o32_push_dummy_call)
507 (mips_o32_return_value, mips_o64_push_dummy_call)
508 (mips_step_skips_delay, mips_skip_trampoline_code)
509 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
510 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
511 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
512 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
513 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
514 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
515 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
516 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
517 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
518 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
519 ZERO_REGNUM.
520 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
521 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
522 ZERO_REGNUM.
523 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
524 A0_REGNUM.
525 * mipsnbsd-nat.c: Include "mips-tdep.h".
526 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
527 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
528
529 2004-10-29 Andrew Cagney <cagney@gnu.org>
530
531 * stack.c (parse_frame_specification_1): New function based on
532 parse_frame_specification. Add message and selected_frame_p
533 paramters. Truely always return non-NULL.
534 (parse_frame_specification): Call parse_frame_specification_1.
535 (frame_info): Update. Eliminate target_has_stack check.
536 (select_frame_command): Update.
537
538 2004-10-29 Andrew Cagney <cagney@gnu.org>
539
540 * frame.h (get_selected_frame): Add message parameter.
541 * frame.c (get_selected_frame): Add and use message parameter.
542 * stack.c (current_frame_command, return_command, locals_info)
543 (catch_info, args_info, up_silently_base, down_silently_base): Use
544 get_selected_frame with an explicit message.
545 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
546 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
547 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
548 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
549 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
550 * breakpoint.c: Update.
551
552 2004-10-29 Andrew Cagney <cagney@gnu.org>
553
554 * trad-frame.c (trad_frame_get_prev_register): Use
555 frame_unwind_register instead of frame_register_unwind, do not
556 recurse the register's location.
557 * xstormy16-tdep.c (xstormy16_frame_prev_register):
558 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
559 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
560 * sh-tdep.c (sh_frame_prev_register): Ditto.
561 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
562 * i386-tdep.c (i386_frame_prev_register): Ditto.
563 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
564 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
565
566 2004-10-28 Mark Kettenis <kettenis@jive.nl>
567
568 * proc-events.c: Fix several coding-style issues. Consistently
569 use #ifdef instead of #if defined().
570 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
571 ARRAY_SIZE.
572 (_initialize_proc_events): New prototype.
573
574 * proc-why.c: Fix several coding-style issues.
575 (proc_prettyfprint_why): Use ARRAY_SIZE.
576
577 2004-10-27 Jim Blandy <jimb@redhat.com>
578
579 * remote.c (fetch_register_using_p): Construct 'p' packet in a
580 manner independent of the host byte order.
581
582 2004-10-27 Mark Kettenis <kettenis@gnu.org>
583
584 * mips-tdep.c (id_delayed): Remove prototype.
585
586 2004-10-26 Mark Kettenis <kettenis@gnu.org>
587
588 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
589 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
590 to enum with register numbers.
591 (enum mips_insn_size): New enum.
592
593 2004-10-26 Andrew Cagney <cagney@gnu.org>
594
595 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
596 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
597 (mips_gdbarch_init): Update.
598 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
599
600 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
601 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
602 IN_SOLIB_RETURN_TRAMPOLINE.
603 * mips-tdep.c (mips_dump_tdep): Do not print
604 IN_SOLIB_RETURN_TRAMPOLINE.
605 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
606 (mips_gdbarch_init): Update.
607
608 * mips-tdep.h (mips_software_single_step): Move to here ...
609 * config/mips/tm-mips.h: ... from here.
610 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
611 (SOFTWARE_SINGLE_STEP): Delete.
612 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
613
614 2004-10-25 Andrew Cagney <cagney@gnu.org>
615
616 * NEWS: Add Changes since GDB 6.3 section.
617
618 2004-10-23 Andreas Schwab <schwab@suse.de>
619
620 * ada-lang.c (grow_vect): Return the new array instead of
621 expecting pointer to pointer to avoid violation of aliasing rules.
622 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
623
624 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
625
626 * s390-tdep.c (enum pv_boolean): Remove.
627 (pv_is_array_ref): Remove.
628 (s390_on_stack): Remove.
629 (S390_NUM_SPILL_SLOTS): Remove.
630 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
631 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
632 (s390_store): Track all stores of orginal incoming registers to the
633 stack constant offsets relative to the CFA, instead of only tracking
634 stores into specific spill slots.
635 (s390_load): Likewise.
636 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
637 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
638 defined as call-saved by the ABI.
639 (s390_push_dummy_call): Use bottom of dummy call argument save area
640 as return value, not the top. Do not store to the called function's
641 register save area.
642 (s390_unwind_dummy_id): Adapt accordingly.
643
644 2004-10-23 Andrew Cagney <cagney@gnu.org>
645
646 * objfiles.h (struct objfile): Rename obj_private to
647 deprecated_obj_private, sym_private to deprecated_sym_private, and
648 sym_stab_info to deprecated_sym_stab_info.
649 * gdb-stabs.h: Update.
650 * elfread.c: Update.
651 * dbxread.c: Update.
652 * coffread.c: Update.
653 * xcoffread.c: Update.
654 * symfile.c: Update.
655 * somread.c: Update.
656 * nlmread.c: Update.
657 * mdebugread.c: Update.
658 * hpread.c: Update.
659 * coffread.c: Update.
660
661 2004-10-23 Mark Kettenis <kettenis@gnu.org>
662
663 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
664 * configure.host: Add mips64*-*-openbsd*.
665 * configure.tgt: Add mips64*-*-openbsd*.
666 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
667 mips64obsd-tdep.c.
668 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
669 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
670
671 2004-10-21 Joel Brobecker <brobecker@gnat.com>
672
673 * symtab.c (symbol_search_name): Minor reformatting.
674
675 2004-10-20 Joel Brobecker <brobecker@gnat.com>
676
677 * symtab.h: Fix typo in comment.
678
679 2004-10-19 Mark Kettenis <kettenis@gnu.org>
680
681 * dwarf2read.c (struct comp_unit_head): Fix coding style.
682 (dwarf_decode_line_header): Likewise.
683
684 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
685
686 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
687
688 2004-10-19 Andrew Cagney <cagney@gnu.org>
689
690 GDB 6.3 branch created.
691 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
692
693 2004-10-15 Joel Brobecker <brobecker@gnat.com>
694
695 * dwarf2read.c (set_cu_language): Set language to Ada for
696 DW_LANG_Ada83 and DW_LANG_Ada95.
697
698 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
699
700 From Andreas Schwab <schwab@suse.de>:
701 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
702 for xmalloc and xrealloc.
703
704 2004-10-15 Andrew Cagney <cagney@gnu.org>
705
706 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
707 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
708 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
709 Update dependencies.
710
711 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
712
713 * ada-lang.c (ada_lookup_symbol): Correct comment.
714 (ada_evaluate_subexp): Change error message for
715 OP_FUNCALL case so as not to indicate an internal error.
716
717 2004-10-15 Joel Brobecker <brobecker@gnat.com>
718
719 Committed by Paul Hilfinger.
720 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
721 type sizes in XVE/XVU types, and emit a warning when that happens,
722 instead of rounding up the size of the resulting type.
723 Some minor reformatting.
724 (ada_is_aligner_type): Do not consider a type as an aligner type
725 if there is a corresponding XVS type as well.
726 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
727 have several levels of pointer indirection to the array.
728
729 2004-10-15 Jerome Guitton <guitton@gnat.com>
730
731 Committed by Paul Hilfinger.
732 * ada-lang.c (check_size): New function.
733 (coerce_unspec_val_to_type): call check_size to make sure
734 that the object size is reasonable.
735 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
736 Implements the case when we get a reference when we evaluate
737 the expression of one of the bounds of the slice.
738 (ada_value_struct_elt): when a packed array field is
739 a reference, use ada_coerce_ref to dereference it; use
740 ada_value_ind only if it is a pointer.
741
742 2004-10-15 Joel Brobecker <brobecker@gnat.com>
743
744 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
745 a bit to avoid the necessity of an advance declaration. Remove
746 declaration.
747 (set_reg_offset): Move implemenation up.
748 (mips16_get_imm): Likewise.
749 (mips16_scan_prologue): Likewise.
750 (reset_saved_regs): Likewise.
751 (mips32_scan_prologue): Likewise.
752
753 2004-10-14 Joel Brobecker <brobecker@gnat.com>
754
755 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
756 Remove sp as a parameter, compute it internally instead. Move
757 prologue scanning limit from heuristic_proc_desc to here.
758 (mips16_scan_prologue): Likewise.
759 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
760 by call to mips16_scan_prologue.
761 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
762 by call to mips32_scan_prologue.
763 (heuristic_proc_desc): Remove code that's no longer necessary.
764 Update calls to mips16_scan_prologue and mips32_scan_prologue.
765 (mips_skip_prologue): Update calls to mips16_scan_prologue
766 and mips32_scan_prologue.
767
768 2004-10-14 Joel Brobecker <brobecker@gnat.com>
769
770 * mips-tdep.c (mips16_scan_prologue): Merge code from
771 mips16_skip_prologue. Now return the address of the first
772 instruction past the function prologue.
773 (mips16_skip_prologue): Remove, no longer necessary.
774 (mips_skip_prologue): Replace call to mips16_skip_prologue
775 by call to mips16_scan_prologue.
776
777 2004-10-14 Joel Brobecker <brobecker@gnat.com>
778
779 * mips-tdep.c (mips32_scan_prologue): Merge code from
780 mips32_skip_prologue. Now return the address of the first
781 instruction past the function prologue.
782 (mips32_skip_prologue): Remove. No longer necessary.
783 (mips16_skip_prologue): Add parameter end_pc instead of
784 computing it.
785 (mips_skip_prologue): Compute the upper limit for the
786 prologue scanning. Update call to mips16_skip_prologue.
787 Replace call to mips32_skip_prologue by call to
788 mips32_scan_prologue.
789
790 2004-10-14 Mark Kettenis <kettenis@gnu.org>
791
792 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
793 NetBSD system call stubs that store %rp in the ERP slot of the
794 stack frame.
795
796 * source.c: Always define O_BINARY to 0 if not defined already.
797 (openp): Unconditionally use O_BINARY.
798
799 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
800 * event-top.c (gdb_readline2): Likewise.
801
802 2004-10-14 Orjan Friberg <orjanf@axis.com>
803
804 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
805 deprecated_add_core_fns which was removed by mistake.
806
807 2004-10-13 Kevin Buettner <kevinb@redhat.com>
808
809 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
810 references to deprecated_registers[] with equivalent code.
811
812 2004-10-13 Kevin Buettner <kevinb@redhat.com>
813
814 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
815 ``deprecated_registers'' with equivalent code. Use gdb_assert()
816 instead of explicit test and print statement.
817
818 2004-10-12 Mark Kettenis <kettenis@gnu.org>
819
820 * sparc-nat.c: Include "inf-ptrace.h".
821 (sparc_target): New function.
822 * sparc-nat.h: Update copyright year.
823 (sparc_target): New prototype.
824 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
825 (_initialize_sparcnbsd_nat): Construct and add target vector.
826 * sparc64nbsd-nat.c: Include "target.h".
827 (_initialize_sparc64nbsd_nat): Construct and add target vector.
828 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
829 Update dependencies.
830 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
831 inftarg.o, add inf-ptrace.o.
832 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
833 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
834 (NAT_FILE): Set to nm-bsd.h.
835 (LOADLIBES): New variable.
836 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
837 infarg.o, add inf-ptrace.o.
838 * config/sparc/nm-nbsdaout.h: Remove file.
839 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
840 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
841 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
842
843 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
844 "fopen-same.h". Update comment.
845
846 2004-10-11 Mark Kettenis <kettenis@gnu.org>
847
848 * i386gnu-nat.c: Include "gdb_string.h".
849 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
850 registers when the floating-point state isn't initialized.
851 * Makefile.in (i386gnu-nat.o): Update dependencies.
852
853 2004-10-11 David Anderson <davea@sgi.com>
854
855 * regcache.c (regcache_raw_read): Comment was missing "to".
856 Extraneous ' removed.
857 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
858 comment now describes use.
859
860 2004-10-11 Orjan Friberg <orjanf@axis.com>
861
862 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
863 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
864 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
865 (cris_sigtramp_frame_sniffer): New functions.
866 (cris_gdbarch_init): Hook in signal trampoline unwinder.
867 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
868 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
869 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
870 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
871 command.
872 (cris_version_update): Remove, replace with ...
873 (set_cris_version): New function.
874 (struct gdbarch_tdep, cris_mode, cris_mode_update)
875 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
876 (_initialize_cris_tdep): Remove CRIS mode command.
877 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
878 cris-fpless-backtrace command.
879 (cris_scan_prologue): Fix prologue scanning limit.
880 (cris_register_type): Update to reflect actual registers.
881 (cris_register_bytes_ok) Remove.
882 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
883 Remove set_gdbarch_deprecated_register_size,
884 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
885
886 2004-10-10 Andrew Cagney <cagney@gnu.org>
887
888 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
889 comment.
890
891 2004-10-10 Joel Brobecker <brobecker@gnat.com>
892
893 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
894
895 2004-10-10 Joel Brobecker <brobecker@gnat.com>
896
897 * mips-tdep.c (mips16_scan_prologue): Renames
898 mips16_heuristic_proc_desc. Update comment.
899 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
900 (heuristic_proc_desc): Update calls to the 2 functions above.
901
902 2004-10-10 Joel Brobecker <brobecker@gnat.com>
903
904 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
905 Update comments. Also immediately return empty cache when the start
906 address of our function could not be found.
907 (mips_insn32_frame_cache): Likewise.
908
909 2004-10-10 Joel Brobecker <brobecker@gnat.com>
910
911 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
912 (mips_insn16_frame_cache): Pass frame cache in call to
913 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
914 Remove code that became redundant as a consequence.
915 (mips32_heuristic_proc_desc): No longer compute a fake
916 procedure descriptor. Compute the full frame cache instead.
917 Some minor comment reformatting.
918
919 2004-10-10 Jim Blandy <jimb@redhat.com>
920
921 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
922 reader, tracing bytecode stuff): Remove self.
923
924 2004-10-10 Mark Kettenis <kettenis@gnu.org>
925
926 * sparc64-linux-tdep.c: Update copyright year. Don't include
927 "solib-svr4.h".
928 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
929 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
930 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
931
932 * sparc-linux-tdep.c: Update copyright year.
933 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
934 to struct frame_info *. Use safe_frame_unwind_memory instead of
935 deprecated_read_memory_nobpt.
936 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
937 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
938 changed signature of sparc_linux_sigtramp_start.
939 (sparc32_linux_pc_in_sigtramp): Remove function.
940 (sparc32_linux_sigtramp_p): New function.
941 (sparc32_linux_sigtramp_frame_sniffer): Use
942 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
943
944 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
945 Remove function.
946 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
947
948 * ada-lang.c (lim_warning): Re-implement as a varargs function.
949 (decode_packed_array_type, value_subscript_packed)
950 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
951 argument in call to lim_warning.
952
953 * configure.in: Really disable the TUI if an enhanced curses
954 library isn't found.
955 * configure: Regenerate.
956
957 2004-10-09 Mark Kettenis <kettenis@gnu.org>
958
959 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
960 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
961 * config/i386/nm-nbsdaout.h: Remove file.
962 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
963 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
964 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
965 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
966 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
967 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
968 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
969 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
970 (ldd, ld_un, ld_2): Remove defines.
971 * config/i386/nm-obsd.h: Likewise.
972
973 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
974
975 * ada-lex.l: Remove useless rule whose right-context clause
976 causes unreferenced static function warning for yyrealloc.
977 (ada_flex_use): Remove the artificial reference to yyrealloc.
978
979 2004-10-08 Andrew Cagney <cagney@gnu.org>
980
981 * target.h (struct target_ops): Rename to_xfer_memory to
982 deprecated_xfer_memory.
983 * target.c: Update.
984 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
985 * wince.c: Update.
986 * win32-nat.c: Update.
987 * v850ice.c: Update.
988 * uw-thread.c: Update.
989 * thread-db.c: Update.
990 * sol-thread.c: Update.
991 * remote.c: Update.
992 * remote-vx.c: Update.
993 * remote-st.c: Update.
994 * remote-sim.c: Update.
995 * remote-sds.c: Update.
996 * remote-rdp.c: Update.
997 * remote-rdi.c: Update.
998 * remote-mips.c: Update.
999 * remote-m32r-sdi.c: Update.
1000 * remote-e7000.c: Update.
1001 * procfs.c: Update.
1002 * ppc-bdm.c: Update.
1003 * nto-procfs.c: Update.
1004 * monitor.c: Update.
1005 * linux-nat.c: Update.
1006 * inftarg.c: Update.
1007 * hpux-thread.c: Update.
1008 * go32-nat.c: Update.
1009 * gnu-nat.c: Update.
1010 * exec.c: Update.
1011 * corelow.c: Update.
1012 * bsd-kvm.c: Update.
1013 * aix-thread.c: Update.
1014
1015 2004-10-08 Andrew Cagney <cagney@gnu.org>
1016
1017 * target.c (debug_target): Move to near start of file.
1018 (target_stopped_data_address_p): Re-org logic, add casts.
1019
1020 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1021
1022 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1023 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1024 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1025 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1026 New defines.
1027
1028 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1029
1030 * target.h (to_stopped_data_address): Change prototype to
1031 take a CORE_ADDR pointer and return an int.
1032 * target.c (update_current_target): Change to_stopped_data_address
1033 to match new prototype.
1034 (debug_to_stopped_data_address): Change appropriately.
1035 * breakpoint.c (bpstat_stop_status): Change call to
1036 target_stopped_data_address to use new prototype.
1037 * frv-tdep.c (frv_have_stopped_data_address): New function.
1038 (frv_stopped_data_address): Change to new prototype and
1039 functionality.
1040 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1041 prototype and functionality.
1042 (ia64_stopped_by_watchpoint): New function.
1043 * i386-nat.c (i386_stopped_data_address): Change to new
1044 prototype and functionality.
1045 (i386_stopped_by_watchpoint): New function.
1046 * remote.c (remote_stopped_data_address): Change to new prototype
1047 and functionality.
1048 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1049 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1050 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1051 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1052 new i386_stopped_by_watchpoint function.
1053 (i386_stopped_by_watchpoint): New prototype.
1054 (i386_stoppped_data_address): Change to new prototype.
1055 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1056 new ia64_stopped_by_watchpoint function.
1057 (ia64_stopped_by_watchpoint): New prototype.
1058 (ia64_stopped_data_address): Ditto.
1059
1060 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1061
1062 * ada-typeprint.c (ada_print_type): Use int_string for printing
1063 modulus of modular type.
1064 * ada-lang.h (ada_modulus): Change return type to unsigned.
1065 * ada-lang.c (ada_language_arch_info): Correct type of
1066 string_char_type.
1067 (ada_modulus): Return unsigned result.
1068 (ada_lookup_symbol): Remove user disambiguation and modify comment
1069 accordingly.
1070
1071 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1072
1073 Committed by Paul Hilfinger.
1074 * ada-lang.c (decode_packed_array): On big-endian targets,
1075 left-justify the value if it comes with a modular type.
1076
1077 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1078
1079 Committed by Paul Hilfinger.
1080 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1081 (is_name_suffix): Add support for "___JM" suffixes.
1082 (ada_check_typedef): Renames ada_completed_type.
1083 Update all users of CHECK_TYPEDEF, check_typedef, and
1084 ada_complete_type to call ada_check_typedef.
1085 * ada-typeprint.c: Likewise.
1086 * ada-valprint.c: Likewise.
1087
1088 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1089
1090 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1091
1092 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1093
1094 * MAINTAINERS: Update e-mail address.
1095
1096 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1097
1098 From Maciej W. Rozycki <macro@mips.com>:
1099 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1100 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1101
1102 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1103
1104 * m32r-tdep.c (decode_prologue): Support functions written
1105 in assembler language. Recognize trap instructions as the
1106 end of prologue.
1107 (m32r_frame_unwind_cache): Ditto.
1108 (m32r_skip_prologue): Extend search limit. Quit analyzing
1109 prologue if pc's location is not readable.
1110
1111 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1112
1113 * Makefile.in (.l.c): Do conversions of names of alloc and free
1114 functions that are done for .y.c files, plus special one
1115 for yy_flex_realloc. Also, correct missing-file tests here.
1116 * ada-lex.l (malloc, free): Remove macros.
1117 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1118 xrealloc.
1119 (ada_flex_use): Dummy definition to remove warnings about unused
1120 functions.
1121 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1122 to suppress warning.
1123
1124 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1125
1126 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1127 RETURN_VALUE.
1128 (sh_return_value_fpu): Ditto for CPUs with FPU.
1129 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1130 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1131 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1132 RETURN_VALUE functions.
1133
1134 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1135
1136 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1137 (sh_pseudo_register_write): Ditto.
1138
1139 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1140
1141 * sh-tdep.c (IS_MACL_STS): New define.
1142 (IS_MOVI20): Ditto.
1143 (IS_MACL_LDS): Ditto.
1144 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1145 instructions in prologue.
1146 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1147 instructions in epilogue.
1148
1149 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1150
1151 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1152 (sh_sh_register_name): Add eight empty register names.
1153 (sh_sh3_register_name): Ditto.
1154 (sh_sh3e_register_name): Ditto.
1155 (sh_sh2e_register_name): Ditto.
1156 (sh_sh2a_register_name): New function, defining SH2A register set.
1157 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1158 in nofpu case.
1159 (sh_sh_dsp_register_name): Add eight empty register names.
1160 (sh_sh3_dsp_register_name): Ditto.
1161 (sh_sh4_register_name): Ditto.
1162 (sh_sh4_nofpu_register_name): Ditto.
1163 (sh_sh4al_dsp_register_name): Ditto.
1164 (sh2a_show_regs): New function.
1165 (sh2a_nofpu_show_regs): New function.
1166 (sh_sh2a_register_type): New function.
1167 (do_bank_register_info): New function.
1168 (sh_print_pseudo_register): Call do_bank_register_info.
1169 Call sh_print_pseudo_register for valid "bank" register.
1170 (sh_sh2a_register_sim_regno): New function.
1171 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1172 Increment pseudo register count by one for all sh variants with
1173 pseudo registers to accomodate pseudo bank register.
1174 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1175 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1176 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1177 Increment pseudo register numbers.
1178
1179 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1180
1181 * dwarf2read.c (read_subroutine_type): Call make_function_type
1182 instead of lookup_function_type.
1183
1184 2004-10-05 Jim Blandy <jimb@redhat.com>
1185
1186 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1187 (Previous change missed some uses.)
1188
1189 2004-10-05 Andrew Cagney <cagney@gnu.org>
1190
1191 * target.h (deprecated_child_ops): Rename child_ops.
1192 * wince.c: Update copyright. Rename child_ops.
1193 * win32-nat.c: Rename child_ops.
1194 * target.c: Rename child_ops.
1195 * rs6000-nat.c: Rename child_ops.
1196 * linux-nat.c: Rename child_ops.
1197 * infttrace.c: Rename child_ops.
1198 * inftarg.c: Rename child_ops.
1199 * infptrace.c: Rename child_ops.
1200 * hppah-nat.c: Update copyright. Rename child_ops.
1201 * hpux-thread.c: Update copyright. Rename child_ops.
1202
1203 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1204
1205 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1206
1207 2004-10-05 Andrew Cagney <cagney@gnu.org>
1208
1209 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1210
1211 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1212
1213 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1214 (die_ref_table): Remove.
1215 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1216 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1217 the usage of this type.
1218 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1219 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1220 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1221 (dwarf2_create_include_psymtab): Update comment.
1222 (find_partial_die): Remove third argument. Remove unreachable call
1223 to error ().
1224 (dwarf2_find_containing_comp_unit): Update comments. Change one
1225 assertion to an error. Remove an unreachable error.
1226 (dwarf2_find_comp_unit): Update comments.
1227 (type_at_offset): Remove dead code.
1228 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1229 (store_in_ref_table): Add CU argument.
1230 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1231 inter-compilation-unit references.
1232 (load_full_comp_unit, process_full_comp_unit): New functions, based
1233 on psymtab_to_symtab_1.
1234 (psymtab_to_symtab_1): Use them.
1235 (dwarf2_add_dependence): New function.
1236 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1237 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1238 (partial_die_parent_scope, guess_structure_name): Update for changes
1239 to find_partial_die.
1240 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1241 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1242 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1243 (read_die_and_children): Update call to store_in_ref_table.
1244 (do_free_die_list_cleanup): Remove.
1245 (fixup_partial_die): Update for changes to find_partial_die.
1246 (read_full_die): Handle queueing absolute references.
1247 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1248 (dwarf2_attr, die_specification, die_type)
1249 (die_containing_type, dwarf2_extension): Update calls to
1250 follow_die_ref.
1251 (dump_die): Update DW_FORM_ref* handling.
1252 (dwarf2_get_ref_die_offset): Likewise.
1253 (free_one_comp_unit): Release the dies list.
1254 (dwarf2_mark_helper): New function.
1255 (dwarf2_mark): Use it.
1256
1257 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1258
1259 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1260 when writing to memory.
1261
1262 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1263
1264 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1265 (m32r_extract_struct_value_address): Delete function.
1266 (m32r_return_value): New function.
1267 (m32r_gdbarch_init): Instead of store_return_value,
1268 extract_return_value, deprecated_extract_struct_value_address
1269 and deprecated_use_struct_convention, set return_value.
1270
1271 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1272
1273 * dwarf2read.c (read_subrange_type): Add comment for variable
1274 sized arrays.
1275
1276 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1277
1278 * Makefile.in (.l.c): Modify rule for compatibility with recent
1279 versions of flex, and remove most command-line options.
1280 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1281 options.
1282
1283 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1284
1285 Turn on initial Ada support (mainly expression evaluation).
1286
1287 * Makefile.in (SFILES): Remove ada-tasks.c.
1288 (HFILES_NO_SRCDIR): Add ada-lang.h.
1289 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1290 (YYOBJ): Add ada-exp.o.
1291 (rule .l.c): Generalize to not mention ada.
1292 * symtab.c: Include ada-lang.h.
1293 (symbol_natural_name, symbol_demangled_name)
1294 (symbol_search_name): Add Ada case.
1295
1296 2004-10-01 Andrew Cagney <cagney@gnu.org>
1297
1298 * Makefile.in (COMMON_OBS): Add inf-child.o.
1299 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1300 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1301 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1302 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1303 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1304 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1305 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1306 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1307 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1308 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1309 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1310 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1311 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1312
1313 * target.c (xfer_using_stratum): Change return type to LONGEST.
1314 On each iteration offset, readbuf and writebuf.
1315 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1316 partial_length, and read/modify/write predicate, update comments.
1317 Pass buffer.word to ptrace write.
1318
1319 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1320
1321 * symfile.c (init_filename_language_table): Add extensions for
1322 Ada.
1323 * defs.h (enum language): Add language_ada.
1324 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1325 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1326 (add_symbols_from_enclosing_procs): Make a no-op for now.
1327 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1328 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1329 (find_line_in_linetable, find_next_line_in_linetable)
1330 (read_all_symtabs, is_plausible_func_for_line)
1331 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1332 (is_runtime_sym_defined, check_size): Remove declaration.
1333 (function_name_from_pc, ada_translate_error_message)
1334 (ada_lookup_minimal_symbol): Remove definition.
1335 (ada_add_block_symbols): Remove useless label.
1336 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1337 useless declaration.
1338 (ada_is_exception_sym): Likewise.
1339
1340 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1341
1342 Add m32r-linux support.
1343 * configure.tgt: Add m32r*-*-linux*.
1344 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1345 and m32r-linux-tdep.c.
1346 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1347 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1348 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1349 m32r-linux-tdep.c.
1350 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1351 config/m32r/linux.mh, config/m32r/linux.mt,
1352 config/m32r/nm-linux.h: New files.
1353
1354 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1355
1356 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1357 (mips32_fetch_instruction): Remove, unused.
1358
1359 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1360
1361 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1362 conditions that will always be true.
1363
1364 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1365
1366 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1367 (vaxbsd_fetch_inferior_registers): Rename from
1368 fetch_inferior_registers. Make static.
1369 (vaxbsd_store_inferior_registers): Rename from
1370 store_inferior_registers. Make static.
1371 (_initialize_vaxbsd_nat): Construct and add target vector.
1372 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1373 inftarg.o. Add inf-child.o and inf-ptrace.o.
1374 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1375 inftarg.o. Add inf-child.o and inf-ptrace.o.
1376 (NAT_FILE): Remove.
1377 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1378 inftarg.o. Add inf-child.o and inf-ptrace.o.
1379 (NAT_FILE): Remove.
1380 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1381
1382 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1383 (m88kbsd_fetch_inferior_registers): Rename from
1384 fetch_inferior_registers. Make static.
1385 (m88kbsd_store_inferior_registers): Rename from
1386 store_inferior_registers. Make static.
1387 (_initialize_m88kbsd_nat): New prototype and function.
1388 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1389 inftarg.o. Add inf-child.o and inf-ptrace.o.
1390 (NAT_FILE): Remove.
1391 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1392
1393 2004-09-30 Andrew Cagney <cagney@gnu.org>
1394
1395 * target.c (target_xfer_partial): New function.
1396 (target_read_memory_partial, target_write_memory_partial)
1397 (default_xfer_partial, target_read_partial, target_write_partial)
1398 (xfer_using_stratum): Use.
1399 (debug_to_xfer_partial): Delete function.
1400 (setup_target_debug): Do not override to_xfer_partial.
1401
1402 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1403
1404 * fork-child.c: Update copyright year. Fix coding style.
1405
1406 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1407
1408 * defs.h (msavestring, mstrsave): Remove prototypes.
1409 * utils.c (msavestring, mstrsave): Remove functions.
1410 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1411 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1412 of mstrsave.
1413 * source.c (find_and_open_source): Use xstrdup instead of
1414 mstrsave.
1415
1416 2004-09-30 Andrew Cagney <cagney@gnu.org>
1417
1418 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1419 (inf_ptrace_xfer_memory): Delete.
1420 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1421 (target_read_memory, target_write_memory): Use xfer_using_stratum
1422 when target_xfer_partial_p.
1423 (debug_target): Move to start of file.
1424 (target_read_memory_partial, target_write_memory_partial): Use
1425 to_xfer_partial when target_xfer_partial_p.
1426
1427 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1428 inf_ptrace_xfer_memory with equivalent code.
1429 * inftarg.c (child_xfer_partial): When performing a write, pass
1430 writebuf to child_xfer_memory.
1431
1432 * target.c (target_read_string): Use target_read_memory instead of
1433 target_xfer_memory.
1434
1435 2004-09-29 Andrew Cagney <cagney@gnu.org>
1436
1437 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1438 the address of status.
1439
1440 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1441 (kill_inferior): Inline ptrace_wait call.
1442 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1443 * inftarg.c (child_wait): Inline ptrace_wait call.
1444
1445 * target.h (struct target_ops): Delete field to_post_wait.
1446 (target_post_wait): Delete macro.
1447 (child_post_wait): Delete declaration.
1448 * target.c (update_current_target, update_current_target)
1449 (debug_to_post_wait, setup_target_debug): Delete functions and
1450 references.
1451 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1452 * inftarg.c (child_post_wait): Delete.
1453 (init_child_ops): Do not set to_post_wait.
1454 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1455 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1456 * inf-child.c (inf_child_post_wait): Delete.
1457 (inf_child_target): Do not set to_post_wait.
1458 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1459 (inf_ptrace_target): Do not set to_post_wait.
1460
1461 * wince.c (child_ops): Delete.
1462 * win32-nat.c (child_ops): Delete.
1463
1464 * inftarg.c (inftarg_set_find_memory_regions)
1465 (inftarg_set_make_corefile_notes): Delete functions.
1466 (_initialize_linux_nat): Inline calls.
1467
1468 * target.h (child_ops): Declare.
1469 * inftarg.c (child_ops): Move from here ...
1470 * target.c (child_ops): ... to here.
1471 * wince.c (child_ops): Delete extern declaration.
1472 * win32-nat.c (child_ops): Delete extern declaration.
1473 * linux-nat.c (child_ops): Delete extern declaration.
1474 * hpux-thread.c (child_ops): Delete extern declaration.
1475
1476 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1477
1478 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1479
1480 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1481
1482 * configure.in: Only set host_makefile_frag when building a native
1483 debugger.
1484 * configure: Regenerate.
1485
1486 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1487 for OpenBSD ELF.
1488
1489 2004-09-28 Andrew Cagney <cagney@gnu.org>
1490
1491 Problem identified by Paul Hilfinger.
1492 * Makefile.in (ada_lex_c): Define.
1493 (ada-lex.o): Delete rule.
1494
1495 * linux-proc.c: Delete file.
1496 * Makefile.in: Update.
1497 * config/sparc/linux64.mh (NATDEPFILES):
1498 * config/sparc/linux.mh (NATDEPFILES): Update.
1499 * config/s390/s390.mh (NATDEPFILES): Update.
1500 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1501 * config/powerpc/linux.mh (NATDEPFILES): Update.
1502 * config/pa/linux.mh (NATDEPFILES): Update.
1503 * config/mips/linux.mh (NATDEPFILES): Update.
1504 * config/m68k/linux.mh (NATDEPFILES): Update.
1505 * config/ia64/linux.mh (NATDEPFILES): Update.
1506 * config/i386/linux64.mh (NATDEPFILES): Update.
1507 * config/i386/linux.mh (NATDEPFILES): Update.
1508 * config/arm/linux.mh (NATDEPFILES): Update.
1509 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1510 * linux-nat.c: Update copyright. Include <sys/param.h>,
1511 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1512 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1513 (O_LARGEFILE): Possibly define.
1514 (_initialize_linux_nat, linux_proc_pending_signals)
1515 (add_line_to_sigset, linux_proc_xfer_memory)
1516 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1517 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1518 (struct linux_corefile_thread_data)
1519 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1520 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1521
1522 2004-09-16 Andrew Cagney <cagney@gnu.org>
1523
1524 * lin-lwp.c: Delete file.
1525 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1526 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1527 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1528 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1529 (linux_nat_attach, detach_callback, linux_nat_detach)
1530 (resume_callback, resume_clear_callback, linux_nat_resume)
1531 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1532 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1533 (status_callback, running_callback, count_events_callback)
1534 (select_singlestep_lwp_callback, select_event_lwp_callback)
1535 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1536 (child_wait, stop_and_resume_callback, linux_nat_wait)
1537 (kill_callback, kill_wait_callback, linux_nat_kill)
1538 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1539 (linux_nat_xfer_memory, linux_nat_thread_alive)
1540 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1541 (_initialize_linux_nat): New functions.
1542 * Makefile.in: Update all dependencies.
1543 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1544 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1545 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1546 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1547 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1548 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1549 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1550 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1551 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1552 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1553 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1554 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1555 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1556
1557 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1558
1559 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1560 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1561
1562 * configure.in: Don't comment out NATDEPFILES in the generated
1563 Makefile if NAT_FILE is unset.
1564 * configure: Regenerate.
1565
1566 2004-09-27 Andrew Cagney <cagney@gnu.org>
1567
1568 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1569 (insert_step_resume_breakpoint): Delete.
1570 (insert_step_resume_breakpoint_at_frame): New function.
1571 (insert_step_resume_breakpoint_at_sal): New function.
1572 (handle_inferior_event, step_into_function)
1573 (insert_step_resume_breakpoint): Simplify by using same.
1574
1575 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1576
1577 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1578
1579 * fbsd-proc.c: Remove file.
1580 * Makefile.in (fbsd-proc.o): Remove dependency.
1581
1582 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1583 code together.
1584
1585 * config/i386/nm-fbsd64.h: Remove file.
1586 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1587
1588 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1589
1590 * amd64-nat.h: Update copyright year.
1591 (amd64bsd_target): New prototype.
1592 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1593 (amd64bsd_target): New function.
1594 (amd64bsd_fetch_inferior_registers): Rename from
1595 fetch_inferior_registers. Make static.
1596 (amd64bsd_store_inferior_registers): Rename from
1597 store_inferior_registers. Make static.
1598 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1599 (_initialize_amd64fbsd_nat): Construct and add target vector.
1600 * amd64nbsd-nat.o: Include "target.h".
1601 (_initialize_amd64nbsd_nat): Construct and add target vector.
1602 * amd64obsd-nat.c: Include "target.h".
1603 (_initialize_amd64obsd_nat): Construct and add target vector.
1604 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1605 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1606 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1607 fbsd-nat.o.
1608 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1609 Remove infptrace.o and inftarg.o. Add inf-child.o and
1610 inf-ptrace.o.
1611 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1612 (amd64obsd-nat.o): Update dependencies.
1613
1614 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1615
1616 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1617 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1618 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1619 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1620 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1621
1622 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1623 Inline attach call.
1624 (inf_ptrace_detach): Inline detach call.
1625
1626 * configure.in: Check for waddstr instead of mvwaddstr when
1627 searching for curses library. Check for wborder.
1628 * configure, config.in: Regenerate.
1629 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1630 available.
1631
1632 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1633
1634 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1635
1636 Committed by Andrew Cagney.
1637 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1638 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1639 configuration.
1640 (fetch_register_using_p): Implement 'p' packet. Based on code by
1641 Fernando Nasser.
1642 (remote_fetch_registers): Call fetch_register_using_p.
1643 (init_all_packet_configs, show_remote_cmd)
1644 (_initialize_remote): Add p-packet.
1645
1646 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1647
1648 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1649 instead of call_ptrace. Call wait directly instead of
1650 ptrace_wait.
1651 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1652 (inf_ptrace_wait): Inline ptrace_wait call.
1653
1654 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1655
1656 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1657 rolled back instead.
1658
1659 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1660
1661 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1662 the new argument order.
1663
1664 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1665
1666 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1667 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1668 (struct gdbarch_tdep): Remove.
1669 (struct xstormy16_frame_cache): New frame cache structure.
1670 (xstormy16_register_byte, xstormy16_register_raw_size)
1671 (xstormy16_reg_virtual_type, xstormy16_register_type)
1672 (xstormy16_push_arguments, xstormy16_push_return_address)
1673 (xstormy16_pop_frame, xstormy16_store_struct_return)
1674 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1675 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1676 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1677 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1678 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1679 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1680 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1681 (xstormy16_extract_return_value, xstormy16_store_return_value):
1682 Regcachify. Drop useless struct convention handling.
1683 (xstormy16_register_type, xstormy16_return_value)
1684 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1685 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1686 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1687 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1688 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1689 (xstormy16_unwind_dummy_id) : New functions.
1690 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1691 of xstormy16_scan_prologue.
1692 (xstormy16_frame_unwind): New frame_unwind structure.
1693 (xstormy16_frame_base): New frame_base structure.
1694 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1695 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1696
1697 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1698
1699 * language.c (language_gdbarch_post_init): Fix off-by one error.
1700
1701 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1702
1703 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1704 (struct dwarf2_offset_and_type): New.
1705 (set_die_type, reset_die_and_siblings_types, get_die_type)
1706 (offset_and_type_hash, offset_and_type_eq): New functions.
1707 (read_structure_type, read_enumeration_type, read_array_type)
1708 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1709 (read_tag_reference_type, read_tag_const_type)
1710 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1711 (read_typedef, read_base_type, read_subrange_type): Use
1712 set_die_type.
1713
1714 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1715
1716 * Makefile.in (dwarf2read.o): Update dependencies.
1717 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1718 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1719 and read_in_chain.
1720 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1721 mark, and has_form_ref_addr.
1722 (struct dwarf2_per_cu_data): New.
1723 (dwarf2_max_cache_age): New.
1724 (dwarf2_build_psymtabs_hard): Free cached compilation units
1725 after loading. Create and manage the list of compilation units.
1726 Remove unnecessary NULL initialization. Fix indentation.
1727 (psymtab_to_symtab_1): Initialize all of CU.
1728 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1729 (find_partial_die): Use dwarf2_find_containing_comp_unit
1730 and load_comp_unit.
1731 (free_stack_comp_unit): Update comments. Clear the per-cu
1732 pointer. Handle aging.
1733 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1734 (age_cached_comp_units, free_one_cached_comp_unit)
1735 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1736 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1737 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1738 (show_dwarf2_cmd): New.
1739 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1740 and "maint show dwarf2 max-cache-age".
1741 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1742 externs.
1743 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1744 global.
1745
1746 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1747
1748 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1749 and dwarf2_cu struct pointer as arguments. Change function to use
1750 obstack if provided and use dwarf2_cu to determine language-specific
1751 separator.
1752 (partial_die_parent_scope): Change comment to include java. Use
1753 new version of typename_concat instead of obconcat.
1754 (partial_die_full_name): Use typename_concat.
1755 (read_namespace): Ditto.
1756 (read_enumeration_type): Use typename_concat instead of obconcat.
1757 (new_symbol): Ditto.
1758 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1759 (guess_structure_name): Ditto.
1760 (read_subroutine_type): Ditto.
1761 (read_structure_type): Ditto.
1762 (is_vtable_name): Add Java support.
1763 (determine_class_name): Switch to new typename_concat call.
1764 (determine_prefix): Switch to new typename_concat call.
1765 * jv-exp.y (FuncStart): New pattern.
1766 (MethodInvocation): Add support for simple function calls. Change
1767 warning message for other forms of inferior call currently not
1768 supported.
1769 * valarith.c (value_subscript): Treat an array with upper-bound
1770 of -1 as unknown size.
1771
1772 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1773
1774 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1775 (lookup_partial_symtab): Use symtab_to_fullname.
1776
1777 2004-09-19 Jim Blandy <jimb@redhat.com>
1778
1779 * minsyms.c (lookup_minimal_symbol): Doc fix.
1780
1781 2004-09-20 Andrew Cagney <cagney@gnu.org>
1782
1783 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1784 CHILD_RESUME.
1785 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1786 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1787 KILL_INFERIOR.
1788 * infptrace.c: Update.
1789
1790 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1791
1792 * symtab.c (output_source_filename): Mark first argument as const.
1793 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1794 for "info sources" output.
1795
1796 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1797
1798 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1799 <machine/vmparam.h>.
1800 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1801 (register_u_addr): Remove prototype.
1802
1803 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1804
1805 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1806 (i386bsd_fetch_inferior_registers): Rename from
1807 fetch_inferior_registers. Make static.
1808 (i386bsd_store_inferior_registers): Rename from
1809 store_inferior_registers. Make static.
1810 (i386bsd_target): New function.
1811 * i386bsd-nat.h: New file.
1812 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1813 "i386bsd-nat.h".
1814 (i386fbsd_resume): Rename from child_resume. Make static.
1815 (_initialize_i386fbsd_nat): Construct and add target vector.
1816 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1817 (_initialize_i386nbsd_nat): Construct and add target vector.
1818 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1819 Remove defines.
1820 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1821 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1822 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1823 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1824 (LOADLIBES): New variable.
1825 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1826 inf-ptrace.o. Remove inftarg.o.
1827 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1828 inf-ptrace.o. Remove inftarg.o.
1829 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1830 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1831 (LOADLIBES): New variable.
1832 * Makefile.in (i386bsd_nat_h): New variable.
1833 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1834 dependencies.
1835
1836 * sparc64nbsd-tdep.c: Include "objfiles.h".
1837 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1838 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1839 svr4_lp64_fetch_link_map_offsets.
1840 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1841 "nbsd-tdep.h".
1842 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1843 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1844 svr4_lp64_fetch_link_map_offsets.
1845 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1846 dependencies.
1847
1848 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1849 * fbsd-nat.h: New file.
1850 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1851 (fbsd_nat_h): New variable.
1852 (fbsd-nat.o): New dependency.
1853
1854 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1855 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1856
1857 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1858 comment.
1859
1860 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1861
1862 * ada-exp.y (type_int): New function to add layer of abstraction
1863 around references to expression types.
1864 (type_long): Ditto.
1865 (type_long_long): Ditto.
1866 (type_float): Ditto.
1867 (type_double): Ditto.
1868 (type_long_double): Ditto.
1869 (type_char): Ditto.
1870 (type_system_address): Ditto.
1871 (simple_exp): Use type_* functions in place of builtin_*
1872 variables.
1873 (exp): Ditto.
1874 (write_var_from_name): Ditto.
1875 (write_object_renaming): Ditto.
1876 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1877 declaration.
1878 (build_ada_types): Remove, replacing with...
1879 (ada_language_arch_info): New function to initialize primitive
1880 type vector in language_arch_info.
1881 (ada_array_length): Remove use of builtin_type_ada_int.
1882 (value_pos_atr): Ditto.
1883 (ada_evaluate_subexp): Ditto.
1884 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1885 builtin_type_ada_long_long, builtin_type_ada_char,
1886 builtin_type_ada_float, builtin_type_ada_double,
1887 builtin_type_ada_long_double, builtin_type_ada_natural,
1888 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1889 (ada_builtin_types): Remove.
1890 (ada_language_defn): Remove entries for la_builtin_type_vector and
1891 string_char_type and use ada_language_arch_info.
1892 (_initialize_ada_language): Do type-vector initialization along
1893 the lines of c-lang.c.
1894 (ada_create_fundamental_type): Break up line.
1895 (ada_dump_symtab): Remove unused function.
1896 (enum ada_primitive_types): Define.
1897 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1898 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1899 builtin_type_ada_float, builtin_type_ada_double,
1900 builtin_type_ada_long_double, builtin_type_ada_natural,
1901 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1902 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1903 (processInt): Ditto.
1904 (processReal): Ditto.
1905 (name_lookup): Ditto.
1906 * ada-typeprint.c (print_range): Use builtin_type_int, not
1907 builtin_type_ada_int.
1908
1909 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1910
1911 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1912
1913 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1914 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1915 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1916 * configure.in: Improve checks for curses library by checking for
1917 mvwaddstr instead of initscr. Drop HP curses in favour of
1918 standard curses on HP-UX.
1919 * configure: Regenerated.
1920
1921 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1922
1923 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1924 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1925 Minor formatting changes.
1926 (empty_array): Slight rewrite for formatting.
1927 (emit_char,parse,ada_language_defn,build_ada_types,
1928 ada_is_exception_sym, _initialize_ada_language): Move
1929 definitions around.
1930 (ada_dump_symtab): Remove unused definition.
1931 (ada_maybe_exception_partial_symbol): Remove unused definition.
1932
1933 2004-09-16 Andrew Cagney <cagney@gnu.org>
1934
1935 * inf-child.c: Include "gdb_string.h".
1936 (inf_child_core_file_to_sym_file): Delete.
1937 (inf_child_target): Set to_fetch_registers and to_store_registers.
1938 * inf-ptrace.c: Include "gdb_string.h".
1939 * Makefile.in: Update all dependencies.
1940
1941 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1942 problem.
1943
1944 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1945
1946 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1947 call to heuristic_proc_desc. Remove code that became redundant
1948 as a consequence.
1949 (read_next_frame_reg): Remove special case for SP_REGNUM.
1950 (set_reg_offset): Fix small typo.
1951 (reset_saved_regs): New procedure.
1952 (mips32_heuristic_proc_desc): No longer compute a fake
1953 procedure descriptor. Compute the full frame cache instead.
1954 Some minor comment reformatting.
1955
1956 2004-09-14 Andrew Cagney <cagney@gnu.org>
1957
1958 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1959 maintainer.
1960
1961 * thread-db.c (thread_db_new_objfile): Assume that there is a
1962 child process.
1963
1964 2004-09-13 Jim Blandy <jimb@redhat.com>
1965
1966 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1967 so that its storage isn't referenced after its lifetime ends.
1968
1969 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1970 and never assigned to. Delete it, and the 'if (use_buffer)'
1971 clauses. Delete 'raw_buffer', since it is now unused.
1972
1973 2004-09-13 Andrew Cagney <cagney@gnu.org>
1974
1975 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1976 * configure: Re-generate.
1977 * nlm/Makefile.in (TAGS): Update.
1978 * Makefile.in (TAGS): Update.
1979 * config/vax/nbsd.mt (TM_FILE): Update.
1980 * config/sparc/vxworks.mt (TM_FILE): Update.
1981 * config/sparc/sol2.mt (TM_FILE): Update.
1982 * config/sparc/sol2-64.mt (TM_FILE): Update.
1983 * config/sparc/obsd64.mt (TM_FILE): Update.
1984 * config/sparc/obsd.mt (TM_FILE): Update.
1985 * config/sparc/nbsd64.mt (TM_FILE): Update.
1986 * config/sparc/nbsd.mt (TM_FILE): Update.
1987 * config/sparc/linux64.mt (TM_FILE): Update.
1988 * config/sparc/linux.mt (TM_FILE): Update.
1989 * config/sparc/fbsd.mt (TM_FILE): Update.
1990 * config/sh/wince.mt (TM_FILE): Update.
1991 * config/sh/nbsd.mt (TM_FILE): Update.
1992 * config/sh/linux.mt (TM_FILE): Update.
1993 * config/sh/embed.mt (TM_FILE): Update.
1994 * config/s390/s390.mt (TM_FILE): Update.
1995 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1996 * config/rs6000/rs6000.mt (TM_FILE): Update.
1997 * config/rs6000/aix4.mt (TM_FILE): Update.
1998 * config/powerpc/vxworks.mt (TM_FILE): Update.
1999 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2000 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2001 * config/powerpc/obsd.mt (TM_FILE): Update.
2002 * config/powerpc/nbsd.mt (TM_FILE): Update.
2003 * config/powerpc/linux.mt (TM_FILE): Update.
2004 * config/powerpc/aix.mt (TM_FILE): Update.
2005 * config/pa/obsd.mt (TM_FILE): Update.
2006 * config/pa/linux.mt (TM_FILE): Update.
2007 * config/pa/hppahpux.mt (TM_FILE): Update.
2008 * config/pa/hppa64.mt (TM_FILE): Update.
2009 * config/pa/hppa.mt (TM_FILE): Update.
2010 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2011 * config/mips/wince.mt (TM_FILE): Update.
2012 * config/mips/vxmips.mt (TM_FILE): Update.
2013 * config/mips/nbsd.mt (TM_FILE): Update.
2014 * config/mips/linux.mt (TM_FILE): Update.
2015 * config/mips/irix6.mt (TM_FILE): Update.
2016 * config/mips/irix5.mt (TM_FILE): Update.
2017 * config/mips/embed.mt (TM_FILE): Update.
2018 * config/m68k/vxworks68.mt (TM_FILE): Update.
2019 * config/m68k/st2000.mt (TM_FILE): Update.
2020 * config/m68k/os68k.mt (TM_FILE): Update.
2021 * config/m68k/obsd.mt (TM_FILE): Update.
2022 * config/m68k/nbsd.mt (TM_FILE): Update.
2023 * config/m68k/monitor.mt (TM_FILE): Update.
2024 * config/m68k/linux.mt (TM_FILE): Update.
2025 * config/m68k/cisco.mt (TM_FILE): Update.
2026 * config/ia64/linux.mt (TM_FILE): Update.
2027 * config/ia64/aix.mt (TM_FILE): Update.
2028 * config/ia64/ia64.mt (TM_FILE): Update.
2029 * config/i386/vxworks.mt (TM_FILE): Update.
2030 * config/i386/obsd64.mt (TM_FILE): Update.
2031 * config/i386/obsd.mt (TM_FILE): Update.
2032 * config/i386/nto.mt (TM_FILE): Update.
2033 * config/i386/nbsd64.mt (TM_FILE): Update.
2034 * config/i386/nbsd.mt (TM_FILE): Update.
2035 * config/i386/linux64.mt (TM_FILE): Update.
2036 * config/i386/linux.mt (TM_FILE): Update.
2037 * config/i386/i386sol2.mt (TM_FILE): Update.
2038 * config/i386/i386lynx.mt (TM_FILE): Update.
2039 * config/i386/fbsd64.mt (TM_FILE): Update.
2040 * config/i386/fbsd.mt (TM_FILE): Update.
2041 * config/i386/cygwin.mt (TM_FILE): Update.
2042 * config/h8300/h8300.mt (TM_FILE): Update.
2043 * config/frv/frv.mt (TM_FILE): Update.
2044 * config/cris/cris.mt (TM_FILE): Update.
2045 * config/arm/wince.mt (TM_FILE): Update.
2046 * config/arm/nbsd.mt (TM_FILE): Update.
2047 * config/arm/linux.mt (TM_FILE): Update.
2048 * config/arm/embed.mt (TM_FILE): Update.
2049 * config/alpha/nbsd.mt (TM_FILE): Update.
2050 * config/alpha/fbsd.mt (TM_FILE): Update.
2051 * config/alpha/alpha.mt (TM_FILE): Update.
2052 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2053 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2054
2055 Eliminate event_loop_p, always has the value 1.
2056 * defs.h (event_loop_p): Delete macro.
2057 * breakpoint.c (until_break_command): Simplify.
2058 * utils.c (prompt_for_continue): Simplify.
2059 * tracepoint.c (read_actions): Simplify.
2060 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2061 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2062 (set_prompt, init_main): Simplify.
2063 (init_signals, disconnect): Delete, unused.
2064 * remote.c (remote_async_resume)
2065 (extended_remote_async_create_inferior): Simplify.
2066 * mi/mi-interp.c (mi_input): Delete, unused.
2067 (mi_interpreter_resume, mi_command_loop): Simplify.
2068 * interps.c (current_interp_command_loop): Simplify.
2069 * infrun.c (proceed): Simplify.
2070 * infcmd.c (run_command, continue_command, step_1, jump_command)
2071 (until_command, advance_command, finish_command)
2072 (interrupt_target_command): Simplify.
2073 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2074
2075 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2076 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2077 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2078 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2079 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2080 * mips-tdep.c (mips_dump_tdep): Do not print same.
2081
2082 2004-09-12 Andrew Cagney <cagney@gnu.org>
2083
2084 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2085 const.
2086 * Makefile.in (valprint.o): Delete explict rule.
2087
2088 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2089 reported by Dave Anderson.
2090
2091 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2092
2093 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2094
2095 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2096 Andrew Cagney <cagney@gnu.org>
2097
2098 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2099 (mi_cmd_data_list_register_values)
2100 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2101 the register number computation.
2102
2103 2004-09-12 Andrew Cagney <cagney@gnu.org>
2104
2105 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2106 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2107 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2108 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2109 target.
2110 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2111 inf-ptrace.o and inf-child.o.
2112 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2113 * Makefile.in: Update dependencies.
2114
2115 2004-09-11 Andrew Cagney <cagney@gnu.org>
2116
2117 * language.c (hex_string, hex_string_custom): Move from here ...
2118 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2119 (CELLSIZE): Increase to 50.
2120 * language.h (hex_string, hex_string_custom): Move from here ...
2121 * defs.h: ... to here.
2122 * Makefile.in: Update all dependencies.
2123
2124 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2125
2126 * language.c (local_hex_format_custom): Remove.
2127 (local_hex_string): Rename to hex_string, use C format, and move to
2128 utils.c
2129 (local_hex_string_custom): Rename to hex_string_custom and change
2130 interface. Now uses C format. Move to utils.c
2131 (local_octal_format_custom): Remove.
2132 (local_decimal_format_custom): Remove.
2133 (unknown_language_defn): Remove language-specific number
2134 formatting entries.
2135 (auto_language_defn): Ditto.
2136 (local_language_defn): Ditto.
2137 * language.h (struct language_format_info): Delete declaration.
2138 (struct language_defn): Remove language_format_info fields
2139 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2140 (local_binary_format): Remove macro.
2141 (local_binary_format_prefix): Remove macro.
2142 (local_binary_format_specifier): Remove macro.
2143 (local_binary_format_suffix): Remove macro.
2144 (local_octal_format): Remove macro.
2145 (local_octal_format_prefix): Remove macro.
2146 (local_octal_format_specifier): Remove macro.
2147 (local_octal_format_suffix): Remove macro.
2148 (local_decimal_format): Remove macro.
2149 (local_decimal_format_prefix): Remove macro.
2150 (local_decimal_format_specifier): Remove macro.
2151 (local_decimal_format_suffix): Remove macro.
2152 (local_hex_format): Remove macro.
2153 (local_hex_format_prefix): Remove macro.
2154 (local_hex_format_specifier): Remove macro.
2155 (local_hex_format_suffix): Remove macro.
2156 (local_decimal_format_custom): Remove.
2157 (local_octal_format_custom): Remove.
2158 (local_hex_format_custom): Remove.
2159 (local_hex_string): Rename to hex_string and move to defs.h.
2160 (local_hex_string_custom): Rename to hex_string_custom, change
2161 interface, and move to defs.h.
2162 * utils.c: (int_string): New function.
2163 (hex_string): New function (from language.c).
2164 (hex_string_custom): New function (from language.c).
2165 (octal2str): New function.
2166 (decimal2str): Add width parameter.
2167 (paddr_u): Use new decimal2str interface.
2168 (paddr_d): Ditto.
2169 * defs.h (hex_string): Declare.
2170 (hex_string_custom): Declare.
2171 (int_string): Declare.
2172 * printcmd.c (print_scalar_formatted): Remove localized binary
2173 formatting.
2174 * valprint.c (print_longest): Use int_string.
2175 (print_floating): Use C hex format.
2176 (print_hex_chars): Ditto.
2177 (print_binary_chars): Remove language-specific formatting.
2178 (print_octal_chars): Use C octal format.
2179 (print_decimal_chars): Delocalize format.
2180 (print_decimal): Remove.
2181 * ada-lang.c (ada_language_defn): Remove language-specific number
2182 formatting entries.
2183 * p-lang.c (pascal_language_defn): Ditto.
2184 * c-lang.c (c_language_defn): Ditto.
2185 (cplus_language_defn): Ditto.
2186 (asm_language_defn): Ditto.
2187 (minimal_language_defn): Ditto.
2188 * f-lang.c (f_language_defn): Ditto.
2189 * jv-lang.c (java_language_defn): Ditto.
2190 * m2-lang.c (m2_language_defn): Ditto.
2191 * scm-lang.c (scm_language_defn): Ditto.
2192 * objc-lang.c (objc_language_defn): Ditto.
2193 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2194 new interface.
2195 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2196 * ui-out.c (ui_out_field_core_addr): Ditto.
2197 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2198 * exec.c (print_section_info): Ditto.
2199 * i387-tdep.c (print_i387_status_word): Ditto.
2200 (print_i387_control_word): Ditto.
2201 (i387_print_float_info): Ditto.
2202 * maint.c (maint_print_section_info): Ditto.
2203 * solib.c (info_sharedlibrary_command): Ditto.
2204 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2205 * symtab.c (print_msymbol_info): Ditto.
2206 * tracepoint.c (tracepoints_info): Ditto.
2207 * solib-frv.c (lm_base): Ditto.
2208 (frv_current_sos): Ditto.
2209 (enable_break2): Ditto.
2210 (enable_break): Ditto.
2211 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2212 (process_one_symbol): Ditto.
2213 * infcmd.c (program_info): Ditto.
2214 * mdebugread.c (parse_partial_symbols): Ditto.
2215 * symfile.c (add_symbol_file_command): Ditto.
2216 * cli/cli-cmds.c (edit_command): Ditto.
2217 (list_command): Ditto.
2218 * infcall.c (call_function_by_hand): Ditto.
2219 * remote-vx.c (vx_run_files_info): Ditto.
2220 (vx_wait): Ditto.
2221 (vx_attach): Ditto.
2222 (vx_detach): Ditto.
2223 (vx_kill): Ditto.
2224 * aix-thread.c (pdc_symbol_addrs): Ditto.
2225 (pdc_read_regs): Ditto.
2226 (pdc_write_regs): Ditto.
2227 (pdc_read_data): Ditto.
2228 (pdc_write_data): Ditto.
2229 * d10v-tdep.c (display_trace): Ditto.
2230 * rs6000-nat.c (find_toc_address): Ditto.
2231 * aix-thread.c: Don't include language.h.
2232 * buildsym.c: Ditto.
2233 * dbxread.c: Ditto.
2234 * mdebugread.c: Ditto.
2235 * rs6000-nat.c: Ditto.
2236 * buildsym.c (make_blockvector): Use renamed hex_string.
2237
2238 2004-09-10 Jason Molenda (jmolenda@apple.com)
2239
2240 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2241 chars after 'if' or 'while' commands in user-defined commands.
2242
2243 2004-09-08 Jim Blandy <jimb@redhat.com>
2244
2245 Fix bug reported and analyzed by Olivier Crete:
2246 * symfile.c (copy_section_addr_info): New function.
2247 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2248 original set of address arguments, instead of handwritten code
2249 that uses one length to allocate and a different length to
2250 initialize. Use make_cleanup_free_section_addr_info.
2251 * symfile.h (copy_section_addr_info): New declaration.
2252 * utils.c: #include "symfile.h".
2253 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2254 New functions.
2255 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2256 * Makefile.in (utils.o): Update dependencies.
2257
2258 2004-09-08 Andrew Cagney <cagney@gnu.org>
2259
2260 * thread-db.c (keep_thread_db): Delete.
2261 (thread_db_new_objfile, thread_db_create_inferior)
2262 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2263
2264 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2265
2266 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2267 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2268 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2269 (i386_frameless_signal_p): Remove prototype.
2270 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2271 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2272 I386_SSE_NUM_REGS.
2273 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2274 instead of FP0_REGNUM.
2275 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2276 of FP0_REGNUM and FPC_REGNUM.
2277
2278 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2279 (sunos_solib_create_inferior_hook): Don't call
2280 sunos_relocate_main_executable.
2281
2282 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2283 solib_svr4_fetch_link_map_offsets to
2284 svr4_ilp32_fetch_link_map_offsets.
2285 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2286 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2287 svr4_ilp32_fetch_link_map_offsets.
2288 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2289
2290 2004-09-07 Jim Blandy <jimb@redhat.com>
2291
2292 * frame.h (frame_register): Doc fix.
2293
2294 2004-09-07 Andrew Cagney <cagney@gnu.org>
2295
2296 * vx-share/wait.h: Delete #ifdef USG.
2297 * utils.c (request_quit): Ditto.
2298 * tui/tui.c (tui_reset): Ditto.
2299 * remote.c: Ditto.
2300 * remote-sds.c: Ditto.
2301 * remote-rdi.c: Ditto.
2302 * mdebugread.c: Ditto.
2303 * m68klinux-nat.c: Ditto.
2304 * infttrace.c: Ditto.
2305 * infptrace.c: Ditto.
2306 * i386v-nat.c: Ditto.
2307 * exec.c: Ditto.
2308 * dbxread.c: Ditto.
2309 * core-aout.c: Ditto.
2310
2311 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2312
2313 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2314 heuristic_proc_desc.
2315 (mips_insn32_frame_cache): Likewise.
2316
2317 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2318
2319 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2320 left behind by error.
2321
2322 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2323
2324 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2325 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2326
2327 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2328
2329 * config/rs6000/xm-aix4.h: Remove this file.
2330 * config/rs6000/aix4.mh (XM_FILE): Delete.
2331
2332 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2333
2334 * config/rs6000/xm-rs6000.h: Remove this file.
2335 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2336
2337 2004-09-03 Andrew Cagney <cagney@gnu.org>
2338
2339 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2340 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2341 only use.
2342
2343 * mips-tdep.c (temp_saved_regs): Delete.
2344 (set_reg_offset): Replace saved_regs parameter with this_cache.
2345 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2346 (mips32_heuristic_proc_desc): Add this_cache parameter.
2347 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2348 (after_prologue): Pass a NULL this_cache.
2349
2350 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2351 non-kernel trap prologues.
2352
2353 * mips-tdep.c (find_proc_desc): Delete function.
2354 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2355 simplify.
2356 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2357 mips_insn32_frame_cache.
2358
2359 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2360 Simplify as NEXT_FRAME is NULL.
2361 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2362
2363 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2364 local variable.
2365 (mips_skip_prologue): Update.
2366
2367 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2368 "cur_frame" parameter.
2369 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2370 (mips_insn32_frame_cache, find_proc_desc): Update
2371
2372 * config/vax/nm-obsd.h: Delete file.
2373 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2374 * config/vax/nm-nbsd.h: Delete file.
2375 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2376 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2377 * config/sh/nm-nbsd.h: Delete file.
2378 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2379 * config/rs6000/nm-rs6000ly.h: Delete file.
2380 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2381 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2382 * config/powerpc/nm-obsd.h: Delete file.
2383 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2384 * config/powerpc/nm-nbsd.h: Delete file.
2385 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2386 * config/pa/nm-obsd.h: Delete file.
2387 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2388 * config/mips/nm-nbsd.h: Delete file.
2389 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2390 * config/m88k/nm-obsd.h: Delete file.
2391 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2392 * config/m68k/nm-nbsd.h: Delete file.
2393 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2394 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2395 * config/i386/nm-nbsd.h: Delete file.
2396 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2397 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2398 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2399 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2400 * config/i386/nm-i386lynx.h: Delete file.
2401 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2402 * config/arm/nm-nbsd.h: Delete file.
2403 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2404 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2405
2406 * config/i386/tm-fbsd.h: Delete file.
2407 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2408 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2409
2410 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2411 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2412 * config/rs6000/aix4.mt (TM_FILE): Set to
2413 config/rs6000/tm-rs6000.h.
2414 * config/powerpc/tm-ppc-aix.h: Delete file.
2415 * config/powerpc/aix.mt (TM_FILE): Set to
2416 config/rs6000/tm-rs6000.h.
2417 * config/m68k/tm-linux.h: Delete file.
2418 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2419 * config/i386/tm-linux64.h: Delete file.
2420 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2421 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2422
2423 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2424 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2425 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2426 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2427 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2428 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2429 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2430 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2431 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2432
2433 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2434 gdb_host_cpu.
2435
2436 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2437
2438 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2439 Minor reformatting. Some code factoring.
2440
2441 2004-09-02 Andrew Cagney <cagney@gnu.org>
2442
2443 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2444 * config/vax/tm-nbsd.h: Delete file.
2445 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2446 * config/sparc/tm-vxworks.h: Delete file.
2447 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2448 * config/sparc/tm-nbsd.h: Delete file.
2449 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2450 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2451 * config/sparc/tm-linux.h: Delete file.
2452 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2453 * config/s390/tm-linux.h: Delete file.
2454 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2455 * config/pa/tm-bsd.h: Delete file.
2456 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2457 * config/m68k/tm-obsd.h: Delete file.
2458 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2459 * config/m68k/tm-nbsd.h: Delete file.
2460 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2461 * config/i386/tm-vxworks.h: Delete file.
2462 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2463 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2464 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2465 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2466 * config/i386/tm-nbsd.h: Delete file.
2467 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2468 * config/i386/tm-i386lynx.h: Delete file.
2469 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2470 * config/cris/tm-cris.h: Delete file.
2471
2472 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2473 * configure: Re-generate.
2474 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2475 * config/arm/tm-nbsd.h: Delete file.
2476
2477 * config/powerpc/tm-ppcle-sim.h: Delete.
2478 * config/powerpc/tm-ppcle-eabi.h: Delete.
2479 * config/powerpc/tm-nbsd.h: Delete.
2480 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2481 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2482 tm-ppcle-eabi.h.
2483
2484 * config/i386/nto.mh (NAT_FILE): Delete.
2485 * config/i386/nm-nto.h: Delete.
2486
2487 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2488 * config/m68k/tm-os68k.h: Ditto.
2489 * config/m68k/tm-monitor.h: Ditto.
2490 * config/m68k/tm-cisco.h: Ditto.
2491 * config/m68k/st2000.mt (TM_FILE): Delete.
2492 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2493 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2494 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2495 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2496
2497 * config/m68k/tm-st2000.h: Delete.
2498 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2499 * config/sparc/fbsd.mt (TM_FILE): Delete.
2500 * config/sparc/tm-fbsd.h: Delete.
2501
2502 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2503 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2504 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2505
2506 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2507 GDB_TM_FILE and GDB_XM_FILE.
2508 * gdbarch.c: Re-generate.
2509 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2510 quotes in macro definition.
2511 * configure.in: Re-generate.
2512
2513 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2514 validating architecture methods.
2515 * gdbarch.c: Re-generate.
2516
2517 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2518 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2519 GDB_MULTI_ARCH_PARTIAL.
2520 * gdbarch.h: Re-generate.
2521
2522 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2523 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2524 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2525 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2526 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2527 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2528 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2529 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2530 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2531 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2532 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2533 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2534
2535 2004-09-01 Andrew Cagney <cagney@gnu.org>
2536
2537 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2538 and main_func_highpc.
2539 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2540 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2541 * nlmread.c (nlm_symfile_read): Update.
2542
2543 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2544
2545 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2546 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2547 (find_proc_desc): Remove dead code.
2548
2549 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2550
2551 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2552
2553 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2554
2555 * observer.sh: Add struct so_list declaration.
2556 * Makefile.in: Add dependencies on observer.h for solib.c and
2557 breakpoint.c.
2558 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2559 function.
2560 (_initialize_breakpoint): Register
2561 disable_breakpoints_in_unloaded_shlib as an observer of the
2562 "solib unloaded" observation event.
2563 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2564 call decode_line_1 so unfound breakpoint errors are silent.
2565 * solib.c (update_solib_list): When a solib is discovered to have
2566 been unloaded by the program, notify all observers of the
2567 "solib unloaded" observation event.
2568
2569 2004-09-01 Andrew Cagney <cagney@gnu.org>
2570
2571 * frame.c: Include "objfiles.h".
2572 (inside_main_func): New function.
2573 (get_prev_frame): Use new inside_main_func.
2574 * Makefile.in (frame.o): Update dependencies.
2575 * defs.h (inside_main_func): Delete declaration.
2576 * blockframe.c (inside_main_func): Delete function.
2577
2578 2004-08-31 Jim Blandy <jimb@redhat.com>
2579
2580 * dwarf2read.c (is_vtable_name): New function, based on logic from
2581 read_structure_type, but passing the correct length to strncmp,
2582 and using 'sizeof' instead of 'strlen'.
2583 (read_structure_type): Call it.
2584
2585 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2586
2587 * config/powerpc/aix.mh: Add comment.
2588
2589 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2590
2591 * MAINTAINERS: Add self to Write-After-Approval.
2592
2593 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2594
2595 * MAINTAINERS: Add self to Write-After-Approval.
2596
2597 2004-08-30 Andrew Cagney <cagney@gnu.org>
2598
2599 Fix PR breakpoints/1757.
2600 * infrun.c (struct execution_control_state): Replace
2601 remove_breakpoints_on_following_step with
2602 step_after_step_resume_breakpoint.
2603 (init_execution_control_state): Update.
2604 (handle_inferior_event): For signals, when stepping off a
2605 breakpoint, set step_after_step_resume_breakpoint. When
2606 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2607 (keep_going): Delete code handling
2608 remove_breakpoints_on_following_step.
2609
2610 2004-08-29 David Lecomber <david@streamline-computing.com>
2611
2612 Fix PR gdb/648
2613 * language.h (enum array_ordering): New enum.
2614 * language.h (struct language_defn): New la_array_ordering
2615 attribute.
2616 * language.c (unknown_language_defn, auto_language_defn)
2617 (local_language_defn): Ditto.
2618 * ada-lang.c (ada_language_defn): Ditto.
2619 * c-lang.c (c_language_defn, cplus_language_defn)
2620 (asm_language_defn, minimal_language_defn): Ditto.
2621 * f-lang.c (f_language_defn): Ditto.
2622 * jv-lang.c (java_language_defn): Ditto.
2623 * m2-lang.c (f_language_defn): Ditto.
2624 * objc-lang.c (objc_language_defn): Ditto.
2625 * p-lang.c (pascal_language_defn): Ditto.
2626 * scm-lang.c (scm_language_defn): Ditto.
2627 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2628 oriented large to small in type structure.
2629 * dwarf2read.c (read_array_order): New function.
2630 (read_array_type): Use read_array_order to check row/column
2631 major ordering.
2632
2633 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2634
2635 * target.c (target_resize_to_sections): Check
2636 current_target.to_sections for an old value when updating.
2637
2638 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2639
2640 * procfs.c (dbx_link_bpt_addr): New static global variable.
2641 (dbx_link_shadow_contents): New static global variable.
2642 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2643 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2644 if we just hit it.
2645 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2646 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2647 from run to run.
2648 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2649 after the inferior has been forked.
2650 (remove_dbx_link_breakpoint): New function.
2651 (dbx_link_addr): New function.
2652 (insert_dbx_link_bpt_in_file): New function.
2653 (insert_dbx_link_bpt_in_region): New function.
2654 (insert_dbx_link_breakpoint): New function.
2655 (proc_trace_syscalls_1): New function, extracted from
2656 proc_trace_syscalls.
2657 (proc_trace_syscalls): Replace extract code by call to
2658 proc_trace_syscalls_1.
2659 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2660 is no longer valid.
2661
2662 2004-08-25 Jim Blandy <jimb@redhat.com>
2663
2664 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2665
2666 2004-08-25 Andrew Cagney <cagney@gnu.org>
2667
2668 * infrun.c (struct execution_control_state): Delete field
2669 "stepping_through_sigtramp".
2670 (init_execution_control_state): Do not set same.
2671 (context_switch): Do not pass same to save_infrun_state and
2672 load_infrun_state.
2673 * gdbthread.h (struct thread_info): Delete field
2674 stepping_through_sigtramp.
2675 (save_infrun_state, load_infrun_state): Delete parameter
2676 stepping_through_sigtramp.
2677 * thread.c (load_infrun_state, save_infrun_state): Update.
2678
2679 * infrun.c: Re-indent. Move expression operators to the beginning
2680 of the line. Remove long disabled #if 0 code.
2681
2682 2004-08-24 Andrew Cagney <cagney@gnu.org>
2683
2684 * doublest.h (floatformat_ieee_quad): Rename
2685 floatformat_ia64_quad.
2686 * doublest.c (floatformat_ieee_quad): Rename
2687 floatformat_ia64_quad.
2688 (_initialize_doublest): Update.
2689
2690 2004-08-24 Jim Blandy <jimb@redhat.com>
2691
2692 * dwarf2expr.h (struct dwarf_expr_context): New members
2693 'num_pieces' and 'pieces', for returning the result of an
2694 expression that uses DW_OP_piece.
2695 (struct dwarf_expr_piece): New struct type.
2696 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2697 pieces.
2698 (free_dwarf_expr_context): Free pieces, if any.
2699 (add_piece): New function.
2700 (execute_stack_op): Implement DW_OP_piece.
2701 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2702 expression is a list of pieces, print an error message.
2703 (dwarf2_loc_desc_needs_frame): If the expression yields
2704 pieces, and any piece is in a register, then we need a frame.
2705
2706 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2707 the stack until we've decided what sort of result the evaluation
2708 has produced. Use separate variables, with more specific names.
2709
2710 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2711
2712 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2713 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2714 (arm_netbsd_init_abi_common): Register them.
2715
2716 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2717
2718 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2719
2720 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2721 safe_frame_unwind_memory instead of target_read_memory.
2722
2723 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2724 Reorder includes.
2725 (fetch_register, store_register): Remove prototypes.
2726 (child_resume): Reorganize code and comments such that it is
2727 grouped a bit more logically.
2728 (attach): Explicitly compare errno against 0.
2729 (detach): Likewise. Use perror_with_name instead of
2730 print_sys_errmsg.
2731 * Makefile.in (infptrace.o): Update dependencies.
2732
2733 * ia64-linux-nat.c: Update copyright year.
2734 (fetch_debug_register, store_debug_register)
2735 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2736 PTRACE_TYPE_ARG3.
2737 * config/ia64/nm-linux.h: Update copyright year.
2738 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2739
2740 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2741 from CORE_ADDR to struct frame_info *. Use
2742 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2743 (amd64_linux_sigtramp_p): Adjust for changed signature of
2744 and64_linux_sigtramp_start
2745
2746 * gdb_ptrace.h: GNU/Linux.
2747
2748 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2749 Remove defines.
2750
2751 * infptrace.c: Include "gdb_assert.h".
2752 (PTRACE_XFER_TYPE): Remove define.
2753 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2754 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2755 Tweak comment.
2756 (fetch_inferior_registers, store_inferior_registers): Remove
2757 redundant culry braces. Tweak comment. s/regno/regnum.
2758 * Makefile.in (infptrace.o): Update dependencies.
2759
2760 * configure.in: Change test for return type of ptrace to default
2761 to `long' instead of `int'.
2762 * configure: Regenerate.
2763
2764 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2765
2766 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2767
2768 * configure.in: Check for ttrace function.
2769 * configure, config.in: Regenerate.
2770
2771 * gdb_ptrace.h: New file.
2772 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2773 <sys/ptrace.h>.
2774 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2775 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2776 (attach): Don't define PT_ATTACH.
2777 (detach): Don't define PT_DETACH.
2778 * Makefile.in (gdb_ptrace_h): New variable.
2779 (infptrace.o): Update dependencies.
2780
2781 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2782
2783 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2784 instead of `int' if not already defined.
2785 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2786 PTRACE_TYPE_ARG3.
2787 * infptrace.c (call_ptrace): Revert change that replaced
2788 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2789
2790 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2791
2792 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2793 Remove defines.
2794
2795 * linux-nat.c (kill_inferior): Add missing third and fourth
2796 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2797
2798 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2799 PTRACE_TYPE_RET.
2800
2801 * proc-why.c (proc_prettyfprint_why): Fix format string.
2802
2803 * solib-osf.c (osf_current_sos): Remove unsused label.
2804
2805 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2806 curses headers.
2807 * configure, config.in: Regenerate.
2808 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2809 <ncurses/ncurses.h>.
2810
2811 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2812 * config/nm-nbsd.h: Update copyright year.
2813 (PTRACE_ARG3_TYPE): Remove define.
2814
2815 * sparc-nat.c (fetch_inferior_registers)
2816 (store_inferior_registers, sparc_xfer_wcookie):
2817 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2818
2819 * alphabsd-nat.c (fetch_inferior_registers):
2820 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2821 PTRACE_TYPE_ARG3.
2822 * amd64bsd-nat.c (fetch_inferior_registers)
2823 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2824 PTRACE_TYPE_ARG3.
2825 * armnbsd-nat.c: Update copyright year.
2826 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2827 (store_register, store_regs, store_fp_register, store_fp_regs):
2828 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2829 * hppabsd-nat.c (fetch_inferior_registers)
2830 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2831 PTRACE_TYPE_ARG3.
2832 * i386bsd-nat.c (fetch_inferior_registers)
2833 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2834 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2835 * m68kbsd-nat.c (fetch_inferior_registers)
2836 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2837 PTRACE_TYPE_ARG3.
2838 * m88kbsd-nat.c (fetch_inferior_registers)
2839 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2840 PTRACE_TYPE_ARG3.
2841 * mipsnbsd-nat.c: Update copyright year.
2842 (fetch_inferior_registers, store_inferior_registers):
2843 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2844 * ns32knbsd-nat.c: Update copyright year.
2845 (fetch_inferior_registers, store_inferior_registers):
2846 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2847 * ppcnbsd-nat.c (fetch_inferior_registers):
2848 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2849 PTRACE_TYPE_ARG3.
2850 * ppcobsd-nat.c (fetch_inferior_registers):
2851 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2852 PTRACE_TYPE_ARG3.
2853 * shnbsd-nat.c: Update copyright year.
2854 (fetch_inferior_registers, store_inferior_registers):
2855 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2856 * vaxbsd-nat.c (fetch_inferior_registers)
2857 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2858 PTRACE_TYPE_ARG3.
2859
2860 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2861 PTRACE_TYPE_ARG3.
2862 * infptrace.c (call_ptrace, child_resume, attach, detach)
2863 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2864 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2865 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2866 PTRACE_TYPE_ARG3.
2867
2868 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2869
2870 * defs.h: Remove out-of-date comment.
2871 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2872 [!GETENV_PROVIDED] (getenv): Remove prototype.
2873
2874 * standalone.c: Remove file.
2875 * Makefile.in (standalone.o): Remove dependency.
2876
2877 * i386-linux-nat.c (dummy_sse_values): Remove function and
2878 prototype.
2879 (i386_linux_dr_get): Fix typo in comment.
2880 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2881
2882 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2883
2884 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2885 from declaration.
2886 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2887 from definition.
2888
2889 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2890
2891 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2892 parenthesis in definition.
2893 * configure: Regenerated.
2894
2895 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2896
2897 * PROBLEMS: Mention build/1411.
2898
2899 2004-08-09 Robert Millan <robertmh@gnu.org>
2900
2901 Committed by Nathanael Nerode.
2902 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2903 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2904
2905 2004-08-12 Andrew Cagney <cagney@gnu.org>
2906
2907 * NEWS: Mention fixes in GDB 6.2.1.
2908 * PROBLEMS: Remove mention of mips-irix.
2909
2910 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2911
2912 * config/powerpc/xm-aix.h: Delete.
2913 * config/powerpc/aix.mh (MH_FILE): Remove.
2914 * config/powerpc/aix432.mh (MH_FILE): Remove.
2915
2916 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2917
2918 * config/powerpc/aix.mh: Remove obsolete comment.
2919 * config/powerpc/aix432.mh: Likewise.
2920
2921 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2922
2923 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2924
2925 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2926
2927 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2928 this file is now empty.
2929 * config/xm-aix4.h: Remove, this file is no longer included
2930 anywhere.
2931
2932 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2933
2934 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2935 that file is now empty.
2936 (termdef): Remove prototype, function no longer used.
2937
2938 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2939
2940 * doc/gdbint.texinfo (Host Definition): Remove documentation
2941 for USE_O_NOCTTY, no longer used.
2942 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2943 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2944
2945 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2946
2947 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2948 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2949 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2950
2951 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2952
2953 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2954 instead of FIVE_ARG_PTRACE.
2955
2956 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2957 (new_tty): Use O_NOCTTY unconditionally.
2958
2959 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2960
2961 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2962 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2963 fflush on stdout.
2964
2965 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2966
2967 * xcoff_symfile_finish: Replace last call to xmfree by call
2968 to xfree.
2969
2970 2004-08-10 Andrew Cagney <cagney@gnu.org>
2971
2972 * main.c (captured_main): Delete call to init_malloc.
2973 * defs.h (init_malloc): Delete declaration.
2974 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2975 (init_malloc): Delete functions.
2976
2977 * defs.h (xmfree): Delete.
2978 * utils.c (xmfree): Delete function.
2979 (xfree): Inline calls to xmfree and mfree.
2980 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2981 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2982 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2983 * somread.c (som_symfile_finish): Ditto.
2984 * objfiles.c (allocate_objfile, free_objfile):
2985 * nlmread.c (nlm_symfile_finish): Ditto.
2986 * hpread.c (hpread_symfile_finish): Ditto.
2987 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2988 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2989 * coffread.c (coff_symfile_finish): Ditto.
2990
2991 * defs.h (xmcalloc): Delete declaration.
2992 * utils.c (xmcalloc): Delete.
2993 (xcalloc): Inline calls to xmcalloc and mcalloc.
2994 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2995 xcalloc and xfree.
2996 * symtab.c (create_demangled_names_hash): Ditto.
2997
2998 * defs.h (xmrealloc): Delete.
2999 * utils.c (xmrealloc): Delete.
3000 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3001 * symmisc.c (extend_psymbol_list): Use xrealloc.
3002 * source.c (find_source_lines): Ditto.
3003 * hpread.c (hpread_lookup_type): Ditto.
3004 * dbxread.c (add_bincl_to_list): Ditto.
3005
3006 * utils.c (xmmalloc): Delete.
3007 (xmalloc): Inline xmmalloc and mmalloc calls.
3008 (msavestring): Use xmalloc.
3009 * defs.h (xmmalloc): Delete declaration.
3010 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3011 xmmalloc.
3012 * symmisc.c (extend_psymbol_list): Ditto.
3013 * symfile.c (init_psymbol_list): Ditto.
3014 * source.c (find_source_lines): Ditto.
3015 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3016 * elfread.c (elf_symtab_read): Ditto.
3017 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3018 * coffread.c (coff_symfile_init): Ditto.
3019
3020 2004-08-10 David Carlton <carlton@bactrian.org>
3021
3022 * MAINTAINERS: Remove David Carlton from c++ testsuite
3023 maintainers.
3024
3025 2004-08-10 Jerome Guitton <guitton@gnat.com>
3026
3027 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3028 print a line feed before the prompt.
3029
3030 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3031
3032 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3033
3034 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3035
3036 General cleanup of the AIX xm include file:
3037 * config/xm-aix4.h (fd_set): Remove undefine.
3038 Remove include of <sys/select.h>.
3039 (HAVE_TERMIO): Remove define.
3040 (USG): Likewise.
3041 (NULL): Remove redefine.
3042 (alloca): Remove #pragma.
3043 (vfork): Remove define.
3044 (termdef): Remove.
3045 (SIGWINCH_HANDLER): Remove.
3046 (SIGWINCH_HANDLER_BODY): Remove.
3047
3048 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3049
3050 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3051 GDB_OSABI_OPENBSD_ELF.
3052
3053 2004-08-07 Robert Millan <robertmh@gnu.org>
3054
3055 * bsd-kvm.c: Check for nlist.h before including it.
3056
3057 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3058
3059 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3060 sigcontext' offset consistency checks for ancient BSD.
3061
3062 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3063
3064 * configure.in: Check for <sys/types.h>. Check return and
3065 argument types of ptrace.
3066 * configure, config.in: Regenerate.
3067
3068 2004-08-09 Jim Blandy <jimb@redhat.com>
3069
3070 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3071 rs6000_register_sim_regno): Doc fixes.
3072
3073 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3074
3075 * mips-tdep.c: Include "floatformat.h".
3076 (n32n64_floatformat_always_valid): New function.
3077 (floatformat_n32n64_long_double_big): New constant.
3078 (mips_gdbarch_init): Set size and format of long double
3079 for N32 and N64 ABIs.
3080 * Makefile.in (mips-tdep.o): Update dependencies.
3081
3082 2004-08-08 Andrew Cagney <cagney@gnu.org>
3083
3084 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3085 print. Improve script's error messages.
3086 * gdbarch.h: Re-generate.
3087
3088 * gdbarch.sh (pformat): New function.
3089 (float_format, double_format, long_double_format): List with bit
3090 members. Use pformat when printing.
3091 * gdbarch.c, gdbarch.h: Re-generate.
3092
3093 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3094
3095 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3096 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3097 (ppcnbsd_supply_pcb): New function.
3098 (_initialize_ppcnbsd_nat): New prototype and function.
3099 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3100 (LOADLIBES): New variable.
3101 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3102
3103 2004-08-08 Andrew Cagney <cagney@gnu.org>
3104
3105 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3106 (builtin_type_ieee_double, builtin_type_ia64_quad)
3107 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3108 BE/LE floating-point types.
3109 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3110 (builtin_type_ieee_double, builtin_type_ia64_quad)
3111 (builtin_type_ia64_spill): Declare.
3112 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3113 (floatformat_ieee_double, floatformat_arm_ext)
3114 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3115 of LE/BE floatformats.
3116 * doublest.h: (struct floatformat, floatformat_ieee_single)
3117 (floatformat_ieee_double, floatformat_arm_ext)
3118 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3119
3120 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3121
3122 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3123
3124 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3125 instead of regcache_raw_supply when storing the registers.
3126
3127 * i386gnu-nat.c: Update copyright year.
3128 (gnu_store_registers): Don't use deprecated_registers and
3129 deprecated_registers_valid. Use regcache_valid_p and
3130 regcache_raw_supply instead.
3131
3132 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3133 frame_pc_unwind.
3134
3135 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3136 variables. Incapitalized "process".
3137
3138 * configure.in: Add cursesX to the list of possible curses libs.
3139 Add cursesX.h to the list of possible curses headers.
3140 * configure, config.in: Regenerate.
3141
3142 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3143
3144 * configure.in: Test for struct lwp in <sys/lwp.h>.
3145 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3146 the offset of l_addr in struct lwp.
3147
3148 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3149
3150 * bsd-kvm.c: Include "gdbcore.h"
3151 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3152
3153 2004-08-07 Andrew Cagney <cagney@gnu.org>
3154
3155 * gdbtypes.c (build_flt, build_complex): New functions.
3156 (gdbtypes_post_init): Use.
3157
3158 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3159
3160 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3161 through to builtin_type_uint128.
3162
3163 * c-exp.y: Use builtin_type function to obtain builtin types.
3164
3165 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3166 builtin_uint128.
3167 * gdbtypes.c (gdbtypes_post_init): Update.
3168 (build_gdbtypes): Move initialization of builtin_type_int0
3169 through to builtin_type_uint128 from here ...
3170 (_initialize_gdbtypes): ... to here.
3171 * d10v-tdep.c (d10v_register_type): Update.
3172
3173 * doublest.c: Update copyright.
3174 (floatformat_from_length): Call error when floatformat is NULL.
3175 (extract_floating_by_length): Remove NULL fmt check.
3176 (store_floating_by_length): Ditto.
3177
3178 2004-08-07 Andrew Cagney <cagney@gnu.org>
3179
3180 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3181 that the register is valid.
3182
3183 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3184
3185 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3186 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3187 struct frame_info *. Use safe_frame_unwind_memory instead of
3188 deprecated_read_memory_nobpt.
3189 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3190 changed signature of i386_linux_sigtramp_start and
3191 i386_linux_rt_sigtramp_start.
3192
3193 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3194 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3195 instead of deprecated_read_memory_nobpt.
3196 (i386nbsd_sigtramp_p): Adjust for changed signature of
3197 i386nbsd_sigtramp_offset.
3198
3199 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3200 safe_frame_unwind_memory instead of target_read_memory.
3201
3202 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3203 !NO_SYS_FILE.
3204 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3205 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3206 (_initialize_kernel_u_addr): Remove prototype and function.
3207 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3208 !NO_SYS_FILE.
3209 * xcoffread.c: Likewise.
3210
3211 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3212
3213 * vax-nat.c: New file.
3214 * vaxbsd-nat.c: Tweak comment.
3215 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3216 vaxnbsd-tdep.c.
3217 (vax-nat.o): New dependency.
3218 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3219 (vax-*-ultrix2*): Remove.
3220 * config/vax/vax.mh: New file.
3221 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3222 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3223 (vax_register_u_addr): New prototype.
3224 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3225 * config/vax/vaxult2.mh: Remove file.
3226 * config/vax/vaxult.mh: Remove file.
3227 * config/vax/vaxbsd.mh: Remove file.
3228 * config/vax/vax.mt (TM_FILE): Remove.
3229 * config/vax/tm-vaxbsd.h: Remove file.
3230
3231 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3232
3233 * aix-thread.c (get_signaled_thread): New function.
3234 (iter_trap): Delete, no longer used.
3235 (iter_tid): New function.
3236 (pd_update): Find the thread that received the SIGTRAP signal
3237 by first locating the kernel thread, and then finding its
3238 associated thread.
3239
3240 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3241
3242 * lin-lwp.c (child_wait): Continue inferior after processing
3243 PTRACE_EVENT_CLONE event.
3244
3245 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3246
3247 * MAINTAINERS: Add self to Write-After-Approval.
3248
3249 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3250
3251 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3252 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3253
3254 2004-08-05 Andrew Cagney <cagney@gnu.org>
3255
3256 * config/xm-sysv4.h: Delete file.
3257 * config/mips/xm-irix5.h: Delete file.
3258 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3259 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3260 * config/ia64/xm-aix.h: Delete file.
3261 * config/ia64/aix.mh (XM_FILE): Delete.
3262 * config/pa/xm-hppah.h: Delete file.
3263 * config/pa/hpux11w.mh (XM_FILE): Delete.
3264 * config/pa/hpux11.mh (XM_FILE): Delete.
3265 * config/pa/hpux1020.mh (XM_FILE): Delete.
3266 * config/pa/hppahpux.mh (XM_FILE): Delete.
3267
3268 * config/alpha/xm-alphalinux.h: Delete file.
3269 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3270 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3271 * config/alpha/xm-alphaosf.h: Delete file.
3272 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3273 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3274 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3275 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3276
3277 * config/i386/xm-i386v.h: Delete file.
3278 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3279 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3280 * config/i386/xm-i386sco.h: Delete file.
3281 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3282 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3283 * config/i386/xm-i386v4.h: Delete file.
3284 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3285 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3286 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3287 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3288
3289 * config/vax/xm-vax.h: Delete file.
3290 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3291 * config/vax/xm-vaxult2.h: Delete file.
3292 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3293 * config/vax/vaxult2.mh (XM_FILE): Delete.
3294 * config/vax/xm-vaxult.h: Delete file.
3295 * config/vax/vaxult.mh (XM_FILE): Delete.
3296 * config/vax/xm-vaxbsd.h: Delete file.
3297 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3298
3299 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3300 * gdbarch.h, gdbarch.c: Re-generate.
3301 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3302 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3303 * frame.h: Delete deprecated_read_fp from comments.
3304 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3305 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3306
3307 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3308
3309 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3310 trampoline in OpenBSD 3.5-current.
3311
3312 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3313 SSE registers.
3314
3315 * Makefile.in: Remove embedded page breaks.
3316
3317 2004-08-04 Jim Blandy <jimb@redhat.com>
3318
3319 * regcache.c (regcache_raw_read): Assert that, after calling
3320 target_fetch_registers, the register we're reading is cached.
3321
3322 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3323 a call to 'internal_error', with a more helpful error message.
3324 * rs6000-tdep.c (e500_pseudo_register_read,
3325 e500_pseudo_register_write, rs6000_store_return_value): Same.
3326
3327 2004-08-04 Andrew Cagney <cagney@gnu.org>
3328
3329 * Makefile.in: Update dependencies.
3330
3331 2004-08-04 Jim Blandy <jimb@redhat.com>
3332
3333 Change the layout of the PowerPC E500 raw register cache to allow
3334 the lower 32-bit halves of the GPRS to be their own raw registers,
3335 not pseudoregisters.
3336 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3337 add ppc_ev0_upper_regnum flag.
3338 * rs6000-tdep.c: #include "reggroups.h".
3339 (spe_register_p): Recognize the ev upper half registers as SPE
3340 registers.
3341 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3342 registers.
3343 (e500_move_ev_register): New function.
3344 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3345 vector registers are the pseudo-registers now, formed by splicing
3346 together the gprs and the upper-half registers.
3347 (e500_register_reggroup_p): New function.
3348 (P): Macro deleted.
3349 (P8, A4): New macro.
3350 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3351 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3352 macros.
3353 (registers_e500): Rearrange register set so that the raw register
3354 set contains 32-bit GPRs and upper-half registers, and the SPE
3355 vector registers become pseudo-registers.
3356 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3357 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3358 register numbers are now the same for the E500 as they are for
3359 other PowerPC variants. Register e500_register_reggroup_p as the
3360 register group function for the E500.
3361 * Makefile.in (rs6000-tdep.o): Update dependencies.
3362
3363 Adapt PPC E500 native support to the new raw regcache layout.
3364 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3365 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3366 (fetch_spe_register, store_spe_register): Handle fetching/storing
3367 all the SPE registers at once, if regno == -1. These now take
3368 over the job of fetch_spe_registers and store_spe_registers.
3369 (fetch_spe_registers, store_spe_registers): Deleted.
3370 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3371 unconditionally; they're always raw. Fetch/store SPE upper half
3372 registers, if present, instead of ev registers.
3373 (fetch_register, store_register): Remove sanity checks: gprs are
3374 never pseudo-registers now, so we never need to even mention any
3375 registers that are ever pseudoregisters.
3376
3377 Use a fixed register numbering when communicating with the PowerPC
3378 simulator.
3379 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3380 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3381 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3382 New functions.
3383 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3384 init_sim_regno_table.
3385 * Makefile.in (gdb_sim_ppc_h): New variable.
3386 (rs6000-tdep.o): Update dependencies.
3387
3388 2004-08-02 Andrew Cagney <cagney@gnu.org>
3389
3390 * cris-tdep.c (cris_register_size): Restore function, still used
3391 locally.
3392
3393 * gdbarch.sh (deprecated_target_read_fp)
3394 (deprecated_frame_locals_address, deprecated_frame_args_address)
3395 (deprecated_frame_chain_valid, deprecated_frame_chain)
3396 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3397 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3398 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3399 * gdbarch.h, gdbarch.c: Re-generate.
3400 * regcache.c (deprecated_read_fp): Do not call
3401 DEPRECATED_TARGET_READ_FP_P.
3402 * infcmd.c (default_print_registers_info): Do not call
3403 DEPRECATED_DO_REGISTERS_INFO.
3404 * frame-base.c (default_frame_locals_address): Do not call
3405 DEPRECATED_FRAME_LOCALS_ADDRESS.
3406 (default_frame_args_address): Do not call
3407 DEPRECATED_FRAME_ARGS_ADDRESS.
3408
3409 * gdbarch.sh (deprecated_register_raw_size)
3410 (deprecated_register_virtual_size:int): Delete.
3411 * gdbarch.h, gdbarch.c: Re-generate.
3412 * cris-tdep.c (cris_register_size): Delete.
3413 (cris_gdbarch_init): Update.
3414 * alpha-tdep.c (alpha_register_raw_size)
3415 (alpha_register_virtual_size): Delete.
3416 (alpha_gdbarch_init): Update.
3417
3418 * gdbarch.sh (deprecated_register_virtual_type)
3419 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3420 (deprecated_dummy_write_sp): Delete.
3421 * gdbarch.h, gdbarch.c: Re-generate.
3422
3423 * gdbarch.sh (deprecated_register_bytes): Delete.
3424 * gdbarch.h, gdbarch.c: Re-generate.
3425 * regcache.c (deprecated_register_bytes): New function.
3426 * regcache.h (deprecated_register_bytes): Declare.
3427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3428 * v850-tdep.c (v850_gdbarch_init): Update.
3429 * sh64-tdep.c (sh64_gdbarch_init): Update.
3430 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3432 * mcore-tdep.c (mcore_gdbarch_init): Update.
3433 * cris-tdep.c (cris_gdbarch_init): Update.
3434 * arm-tdep.c (arm_gdbarch_init): Update.
3435 * remote.c (init_remote_state): Update.
3436 * remote-vx.c (vx_prepare_to_store): Update.
3437 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3438 * irix5-nat.c (fetch_core_registers): Update.
3439 * cris-tdep.c (cris_register_bytes_ok): Update.
3440 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3441
3442 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3443 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3444 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3445 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3446 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3447 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3448 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3449 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3450 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3451 with mips_insn16 and mips_insn32.
3452
3453 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3454 * rs6000-tdep.c (rs6000_push_dummy_call)
3455 (rs6000_extract_return_value): Use register_size.
3456 * xstormy16-tdep.c (xstormy16_get_saved_register)
3457 (xstormy16_extract_return_value): Ditto.
3458 * valops.c (value_assign): Ditto.
3459 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3460 * v850-tdep.c (v850_extract_return_value): Ditto.
3461 * tracepoint.c (collect_symbol): Ditto.
3462 * target.c (debug_print_register): Ditto.
3463 * stack.c (frame_info): Ditto.
3464 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3465 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3466 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3467 (store_register_using_P): Ditto.
3468 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3469 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3470 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3471 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3472 * regcache.c (deprecated_read_register_bytes)
3473 (deprecated_write_register_bytes, read_register)
3474 (write_register): Ditto.
3475 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3476 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3477 * monitor.c (monitor_supply_register, monitor_fetch_register)
3478 (monitor_store_register): Ditto.
3479 * mn10300-tdep.c (mn10300_pop_frame_regular)
3480 (mn10300_print_register): Ditto.
3481 * mipsv4-nat.c (fill_fpregset): Ditto.
3482 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3483 (mips64_fill_fpregset): Ditto.
3484 * mi/mi-main.c (register_changed_p, get_register)
3485 (mi_cmd_data_write_register_values): Ditto.
3486 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3487 * irix5-nat.c (fill_gregset, fetch_core_registers):
3488 * infrun.c (write_inferior_status_register): Ditto.
3489 * infptrace.c (fetch_register, store_register): Ditto.
3490 * infcmd.c (default_print_registers_info): Ditto.
3491 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3492 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3493 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3494 * hpux-thread.c (hpux_thread_fetch_registers)
3495 (hpux_thread_store_registers): Ditto.
3496 * hppah-nat.c (store_inferior_registers, fetch_register):
3497 * findvar.c (value_from_register): Ditto.
3498 * dve3900-rom.c (fetch_bitmapped_register):
3499 * cris-tdep.c (cris_gdbarch_init): Ditto.
3500 * alpha-tdep.h: Ditto.
3501 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3502
3503 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3504 DEPRECATED_REGISTER_RAW_SIZE from comments.
3505 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3506 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3507 DEPRECATED_REGISTER_RAW_SIZE.
3508 * findvar.c (value_of_register): Simplify by assuming that the
3509 registers raw and virtual sizes are identical.
3510 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3511 comment.
3512 * arch-utils.c (generic_register_size): Simplify by assuming
3513 register_type.
3514
3515 * regcache.c (legacy_read_register_gen, real_register)
3516 (legacy_write_register_gen): Delete, not used.
3517
3518 * regcache.c (struct regcache_descr): Delete legacy_p.
3519 (init_legacy_regcache_descr): Delete function.
3520 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3521 Do not use deprecated register functions.
3522 (regcache_raw_read, deprecated_write_register_gen):
3523 (deprecated_read_register_gen, regcache_raw_write): Delete code
3524 predicated on legacy_p.
3525 (register_size): Delete check against register raw size.
3526
3527 * cris-tdep.c (cris_register_type): Replace
3528 cris_register_virtual_type.
3529 (cris_gdbarch_init): Update, set register_type.
3530
3531 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3532 * gdbarch.h, gdbarch.c: Re-generate.
3533 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3534 (arm_gdbarch_init) Do not set frameless function invocation.
3535 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3536 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3537 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3538 (frv_gdbarch_init): Do not set frameless function invocation.
3539 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3540 * sh-tdep.c (sh_gdbarch_init): Ditto.
3541 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3542 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3543 * avr-tdep.c (avr_gdbarch_init): Ditto.
3544
3545 * blockframe.c (legacy_frame_chain_valid): Delete function.
3546
3547 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3548 and pc. Update comments.
3549 (pc_in_dummy_frame): Delete function.
3550 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3551 use the "id".
3552 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3553 call_hi, top and pc, use the id.
3554 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3555
3556 * dummy-frame.c: Include "gdb_string.h".
3557 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3558 (generic_save_dummy_frame_tos): Delete.
3559 (dummy_frame_push): New function, replaces above.
3560 * dummy-frame.h: Update copyright.
3561 (dummy_frame_push): Declare.
3562 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3563 (generic_save_call_dummy_addr): Delete declarations.
3564 * infcall.c: Include "dummy-frame.h".
3565 (call_function_by_hand): Add locals caller_regcache,
3566 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3567 with call to frame_save_as_regcache plus cleanup. Delete calls to
3568 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3569 Move clear_proceed_status to just before the resume, add call to
3570 dummy_frame_push (discard cleanup).
3571 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3572 (dummy-frame.o): Add $(gdb_string_h).
3573
3574 2004-08-01 Andrew Cagney <cagney@gnu.org>
3575
3576 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3577 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3578 * dummy-frame.c (find_dummy_frame): Delete.
3579 (struct dummy_frame_cache, dummy_frame_sniffer)
3580 (dummy_frame_prev_register, dummy_frame_this_id)
3581 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3582 frame unwinder using a dummy_frame_cache.
3583
3584 2004-08-01 Andrew Cagney <cagney@gnu.org>
3585
3586 * frame.h (frame_save_as_regcache): Declare.
3587 * frame.c (frame_save_as_regcache): New function.
3588 (do_frame_read_register): Replace do_frame_unwind_register.
3589 (frame_pop): Use frame_save_as_regcache.
3590 * dummy-frame.c (generic_push_dummy_frame): Use
3591 frame_save_as_regcache.
3592
3593 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3594
3595 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3596 file as included until we record the first line in the linetable.
3597
3598 2004-08-01 Andrew Cagney <cagney@gnu.org>
3599
3600 * frame.h (deprecated_pop_dummy_frame)
3601 (deprecated_read_register_dummy)
3602 (deprecated_generic_find_dummy_frame): Delete.
3603 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3604 (deprecated_read_register_dummy)
3605 (deprecated_find_dummy_frame_regcache)
3606 (discard_innermost_dummy)
3607 (deprecated_pop_dummy_frame): Delete.
3608 (dummy_frame_this_id): Simplify.
3609 (struct dummy_frame): Delete "fp" and "sp".
3610 (find_dummy_frame): Simplify.
3611 (generic_push_dummy_frame): Do not set "fp" or "sp".
3612 (fprint_dummy_frames): Do not print "fp" and "sp"
3613
3614 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3615
3616 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3617 (struct i386_insn): New structure.
3618 (i386_match_insn): New function.
3619 (i386_frame_setup_skip_insns): New variable.
3620 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3621 array i386_frame_setup_insns of instructions that should be
3622 skipped inside the frame setup sequence.
3623
3624 2004-08-01 Andrew Cagney <cagney@gnu.org>
3625
3626 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3627 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3628 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3629 * stack.c (frame_info): Delete references to
3630 DEPRECATED_FRAME_INIT_SAVED_REGS and
3631 deprecated_get_frame_saved_regs.
3632 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3633 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3634 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3635 (frame_unwind_register_signed)
3636 (frame_unwind_register_unsigned)
3637 (frame_unwind_unsigned_register): Use register_size.
3638 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3639 (deprecated_frame_xmalloc_with_cleanup)
3640 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3641 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3642
3643 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3644 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3645 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3646 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3647
3648 * infcall.c (call_function_by_hand): Do not use
3649 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3650 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3651 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3652 DEPRECATED_STACK_ALIGN.
3653
3654 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3655
3656 Committed by Andrew Cagney.
3657 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3658
3659 2004-08-01 Andrew Cagney <cagney@gnu.org>
3660
3661 * mips-tdep.c (mips16_frame_cache)
3662 (mips16_frame_this_id, mips16_frame_prev_register)
3663 (mips16_frame_unwind, mips16_frame_sniffer)
3664 (mips16_frame_base_address, mips16_frame_base)
3665 (mips16_frame_base_sniffer, mips32_frame_cache)
3666 (mips32_frame_this_id, mips32_frame_prev_register)
3667 (mips32_frame_unwind, mips32_frame_sniffer)
3668 (mips32_frame_base_address, mips32_frame_base)
3669 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3670 separate heuristic mips16 and mips32 unwinders.
3671 (mips_stub_frame_cache, mips_stub_frame_this_id)
3672 (mips_stub_frame_prev_register)
3673 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3674 (mips_stub_frame_base_address, mips_stub_frame_base)
3675 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3676 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3677 match true mdebug frames.
3678 (non_heuristic_proc_desc): Add forward declaration.
3679
3680 2004-08-01 Andrew Cagney <cagney@gnu.org>
3681
3682 * config/mips/tm-irix6.h: Delete file.
3683 * config/mips/tm-irix5.h: Delete file.
3684 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3685 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3686
3687 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3688 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3689 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3690 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3691 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3692 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3693 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3694 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3695 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3696 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3697 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3698 (TARGET_SIGNAL_RAW_VALUES): Delete.
3699 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3700 Delete.
3701 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3702 (TARGET_HW_WATCH_LIMIT): Delete.
3703 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3704 * minimon.h: Delete file.
3705
3706 * trad-frame.c (trad_frame_get_this_base)
3707 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3708 functions.
3709 * trad-frame.h (trad_frame_set_this_base)
3710 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3711
3712 2004-07-31 Andrew Cagney <cagney@gnu.org>
3713
3714 * trad-frame.c (trad_frame_get_prev_register): Rename
3715 trad_frame_get_prev_register.
3716 * vax-tdep.c (vax_frame_prev_register): Update.
3717 * trad-frame.h: Update.
3718 * trad-frame.c (trad_frame_get_register): Update.
3719 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3720 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3721 Update.
3722 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3723 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3724 Update.
3725 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3726 Update.
3727 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3728 Update.
3729 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3730 Update.
3731 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3732 Update.
3733 * s390-tdep.c (s390_frame_prev_register)
3734 (s390_stub_frame_prev_register)
3735 (s390_sigtramp_frame_prev_register): Update.
3736 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3737 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3738 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3739 * m88k-tdep.c (m88k_frame_prev_register)
3740 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3741 * m32r-tdep.c (m32r_frame_prev_register): Update.
3742 * hppa-tdep.c (hppa_frame_prev_register_helper)
3743 * frv-tdep.c (frv_frame_prev_register): Update.
3744 * d10v-tdep.c (d10v_frame_prev_register): Update.
3745 * cris-tdep.c (cris_frame_prev_register): Update.
3746 * avr-tdep.c (avr_frame_prev_register): Update.
3747 * arm-tdep.c (arm_prologue_prev_register)
3748 (arm_sigtramp_prev_register): Update.
3749
3750 2004-07-31 Andrew Cagney <cagney@gnu.org>
3751
3752 * frame.h (legacy_saved_regs_unwind)
3753 (legacy_frame_chain_valid, legacy_frame_p)
3754 (enum frame_type): Delete UNKNOWN_FRAME.
3755 * dummy-frame.c (dummy_frame_this_id): Simplify.
3756 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3757 * frame.c (struct frame_info): Delete the field "type".
3758 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3759 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3760 (legacy_saved_regs_unwind, legacy_frame_p)
3761 (frame_type_from_pc): Delete.
3762 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3763 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3764
3765 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3766
3767 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3768 indentation.
3769
3770 * mips-nat.c: Remove file.
3771 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3772 (mips-nat.o): Remove dependency.
3773
3774 * infptrace.c: Update copyright year.
3775 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3776 explicitly setting the buffer to all zeroes.
3777
3778 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3779 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3780
3781 2004-07-30 Andrew Cagney <cagney@gnu.org>
3782
3783 * GDB 6.2 released from gdb_6_2-branch.
3784
3785 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3786
3787 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3788
3789 * exec.c (exec_file_attach):
3790 * nto-tdep.c (nto_find_and_open_solib):
3791 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3792 * solib.c (solib_open):
3793 * somsolib.c (som_solib_sizeof_symbol_table):
3794 * source.c (is_regular_file, openp, open_source_file):
3795 * symfile.c (symfile_bfd_open):
3796 * wince.c (upload_to_device): Differentiate between the search for
3797 binary and source files.
3798
3799 2004-07-30 Andrew Cagney <cagney@gnu.org>
3800
3801 * complaints.c (_initialize_complaints): Pass NULL to
3802 add_setshow_zinteger_cmd for help_doc.
3803 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3804
3805 2004-07-30 Andrew Cagney <cagney@gnu.org>
3806
3807 Fix PR i18n/761.
3808 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3809 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3810 $(PACKAGE).pot and update-po.
3811 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3812 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3813 (update-po): New rules.
3814 (localedir): Define using autoconf.
3815 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3816 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3817 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3818 * configure.in: Generate CATALOGS and LINGUAS from contents of
3819 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3820 * configure: Re-generate.
3821 * po/gdbtext: New file
3822
3823 2004-07-30 Jerome Guitton <guitton@gnat.com>
3824
3825 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3826 order.
3827
3828 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3829
3830 * dwarf2read.c (read_file_scope): Set producer if attribute
3831 present.
3832 (struct dwarf2_cu): Added new member producer.
3833
3834 2004-07-30 Jerome Guitton <guitton@gnat.com>
3835
3836 * inflow.c (kill_command): release file handles in BFD.
3837 * exec.c (exec_file_attach): Ditto.
3838 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3839
3840 2004-07-29 Andrew Cagney <cagney@gnu.org>
3841
3842 * PROBLEMS (mips-irix): Note that it is broken.
3843
3844 2004-07-29 Andrew Cagney <cagney@gnu.org>
3845
3846 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3847 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3848
3849 * config/xm-nbsd.h: Delete file.
3850 * config/arm/xm-nbsd.h: Delete file.
3851 * config/i386/xm-nbsd.h: Delete file.
3852 * config/ns32k/xm-nbsd.h: Delete file.
3853 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3854 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3855 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3856 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3857 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3858
3859 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3860 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3861 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3862 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3863 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3864 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3865
3866 * config/powerpc/xm-linux.h: Delete empty file.
3867 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3868 * config/powerpc/linux.mh (XM_FILE): Delete.
3869 * config/m68k/xm-linux.h: Delete empty file.
3870 * config/m68k/linux.mh (XM_FILE): Delete.
3871 * config/ia64/xm-linux.h: Delete empty file.
3872 * config/ia64/linux.mh (XM_FILE): Delete.
3873 * config/arm/xm-linux.h: Delete empty file.
3874 * config/arm/linux.mh (XM_FILE): Delete.
3875
3876 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3877 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3878 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3879 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3880 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3881 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3882 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3883 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3884
3885 * config/m68k/xm-m68k.h: Delete file.
3886 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3887 copyright.
3888 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3889 * config/pa/xm-linux.h: Delete empty file.
3890 * config/pa/linux.mh (XM_FILE): Delete.
3891 * config/i386/xm-i386.h: Delete empty file.
3892 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3893 "i386/xm-i386.h".
3894 * config/i386/obsdaout.mh (XM_FILE): Delete.
3895 * config/i386/obsd64.mh (XM_FILE): Delete.
3896 * config/i386/fbsd64.mh (XM_FILE): Delete.
3897 * config/i386/nto.mh (XM_FILE): Delete.
3898 * config/i386/obsd.mh (XM_FILE): Delete.
3899 * config/i386/linux64.mh (XM_FILE): Delete.
3900 * config/i386/linux.mh (XM_FILE): Delete.
3901 * config/i386/i386sol2.mh (XM_FILE): Delete.
3902 * config/i386/i386gnu.mh (XM_FILE): Delete.
3903 * config/i386/fbsd.mh (XM_FILE): Delete.
3904 * config/i386/nbsd64.mh (XM_FILE): Delete.
3905
3906 2004-07-29 Andrew Cagney <cagney@gnu.org>
3907
3908 * config/pa/xm-linux.h: Do not include "floatformat.h".
3909 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3910 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3911 * config/i386/xm-i386.h: Do not include "floatformat.h".
3912 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3913 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3914 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3915 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3916 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3917 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3918 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3919 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3920 * configure, config.in: Regenerate.
3921 * configure.host (gdb_host_float_format, gdb_host_double_format)
3922 (gdb_host_long_double_format): Set according to the host.
3923
3924 2004-07-29 Andrew Cagney <cagney@gnu.org>
3925
3926 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3927
3928 2004-07-28 Andrew Cagney <cagney@gnu.org>
3929
3930 * PROBLEMS: Mention threads/1650.
3931 * NEWS: Mention the NPTL fix.
3932
3933 2004-07-28 Andrew Cagney <cagney@gnu.org>
3934
3935 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3936 (add_setshow_cmd_full): Make static.
3937 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3938 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3939 * cli/cli-decode.c (add_setshow_filename_cmd)
3940 (add_setshow_string_cmd): New functions.
3941 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3942 * mips-tdep.c (_initialize_mips_tdep): Update.
3943 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3944 * cli/cli-logging.c (_initialize_cli_logging): Update.
3945 * complaints.c (_initialize_complaints): Update.
3946 * remote.c (_initialize_remote): Update.
3947
3948 2004-07-28 Andrew Cagney <cagney@gnu.org>
3949
3950 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3951 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3952 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3953 print parameters. Make string parameters constant.
3954 * command.h: Update. Update copyright.
3955 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3956 * observer.c (_initialize_observer): Ditto.
3957 * frame.c (_initialize_frame): Ditto.
3958 * complaints.c (_initialize_complaints): Ditto.
3959 * maint.c (_initialize_maint_cmds): Ditto.
3960 * target.c (initialize_targets): Ditto.
3961 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3962 * infcall.c (_initialize_infcall): Ditto.
3963 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3964 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3965 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3966 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3967 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3968
3969 2004-07-28 Andrew Cagney <cagney@gnu.org>
3970
3971 * gdbtypes.c (lookup_primitive_typename): Delete function.
3972 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3973 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3974 * gdbtypes.c (lookup_typename): Ditto.
3975 * f-exp.y (yylex): Ditto.
3976 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3977
3978 * scm-lang.c (c_builtin_types): Delete extern declaration.
3979 (scm_language_defn): Replace
3980 string_char_type and primitive_type_vector with
3981 la_language_arch_info.
3982 * jv-lang.c (java_language_defn): Replace
3983 string_char_type and primitive_type_vector with
3984 la_language_arch_info.
3985 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3986 c_builtin_types in comment.
3987 * c-lang.h (struct language_arch_info): Declare opaque.
3988 (c_language_arch_info): Declare.
3989 (c_builtin_types): Delete declaration.
3990 * c-lang.c (c_language_arch_info): Set string_char_type to
3991 builtin_char, not builtin_true_char. Make global.
3992 (c_builtin_types): Delete array.
3993 (asm_language_defn, minimal_language_defn): Replace
3994 string_char_type and primitive_type_vector with
3995 la_language_arch_info.
3996
3997 2004-07-28 Andrew Cagney <cagney@gnu.org>
3998
3999 * gdbtypes.h (struct builtin_type): Rename true_char to
4000 builtin_true_char.
4001 * gdbtypes.c (gdbtypes_post_init): Update.
4002 * c-lang.c (arch_info): New function.
4003 (enum c_primitive_types): New enum.
4004 (c_language_defn): Instead of string_char_type and
4005 primitive_type_vector set la_language_arch_info.
4006
4007 2004-07-28 Andrew Cagney <cagney@gnu.org>
4008
4009 * language.h (struct language_arch_info): Fix typo
4010 s/primative/primitive/.
4011 * gdbtypes.c (lookup_primitive_typename): Ditto.
4012 * language.c (language_lookup_primitive_type_by_name)
4013 (unknown_language_arch_info): Ditto.
4014
4015 2004-07-27 Andrew Cagney <cagney@gnu.org>
4016
4017 * defs.h (enum language): Add nr_languages.
4018 * language.h (struct language_arch_info): Define.
4019 (struct language_defn): Add la_language_arch_info.
4020 (language_lookup_primative_type_by_name): Declare.
4021 (language_string_char_type): Declare.
4022 * language.c (_initialize_language, language_gdbarch_post_init)
4023 (struct language_gdbarch, language_gdbarch_data): Implement
4024 per-architecture language information.
4025 (unknown_language_arch_info, language_string_char_type)
4026 (language_lookup_primative_type_by_name): New functions.
4027 (unknown_language_defn, auto_language_defn)
4028 (local_language_defn): Set la_language_arch_info to
4029 unknown_language_arch_info.
4030 (unknown_builtin_types): Delete.
4031 * gdbtypes.c (lookup_primitive_typename): Use
4032 language_lookup_primative_type_by_name.
4033 (create_string_type): Use language_string_char_type.
4034 * values.c (value_from_string): Use language_string_char_type.
4035 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4036 * p-lang.c (pascal_language_defn): Ditto.
4037 * m2-lang.c (m2_language_defn): Ditto.
4038 * jv-lang.c (java_language_defn): Ditto.
4039 * objc-lang.c (objc_language_defn): Ditto.
4040 * f-lang.c (f_language_defn): Ditto.
4041 * c-lang.c (c_language_defn, cplus_language_defn)
4042 (asm_language_defn, minimal_language_defn): Ditto.
4043
4044 2004-07-27 Andrew Cagney <cagney@gnu.org>
4045
4046 * gdbtypes.h (struct builtin_type): Declare.
4047 (builtin_type): Declare.
4048 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4049 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4050 (gdbtypes_post_init): New function.
4051 (builtin_type): New function.
4052
4053 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4054
4055 * remote-m32r-sdi.c: Fix breakpoint bug.
4056 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4057 recv_char_data, recv_long_data): New functions to replace communication
4058 sequences.
4059
4060 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4061
4062 Document PR threads/1650.
4063 * PROBLEMS (Threads): Document problem with many threads
4064
4065 2004-07-26 Andrew Cagney <cagney@gnu.org>
4066
4067 * gdb-mi.el: Move from here ...
4068 * mi/gdb-mi.el: ... to here.
4069
4070 2004-07-26 Andrew Cagney <cagney@gnu.org>
4071
4072 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4073 * main.c (captured_main): When in batch mode always detach.
4074
4075 2004-07-26 Andrew Cagney <cagney@gnu.org>
4076
4077 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4078 and h8300 as broken.
4079 * NEWS: END-OF-LIFE frame compatibility module.
4080 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4081 specific comments.
4082
4083 2004-07-26 Andrew Cagney <cagney@gnu.org>
4084
4085 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4086 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4087 * wince.c (_initialize_wince): Update.
4088 * win32-nat.c (_initialize_win32_nat): Update.
4089 * varobj.c (_initialize_varobj): Update.
4090 * valops.c (_initialize_valops): Update.
4091 * utils.c (initialize_utils, initialize_utils): Update.
4092 * tui/tui-win.c (_initialize_tui_win): Update.
4093 * top.c (init_main): Update.
4094 * symfile.c (_initialize_symfile): Update.
4095 * source.c (_initialize_source): Update.
4096 * somsolib.c (_initialize_som_solib): Update.
4097 * solib.c (_initialize_solib): Update.
4098 * solib-frv.c (_initialize_frv_solib): Update.
4099 * serial.c (_initialize_serial): Update.
4100 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4101 * remote.c (_initialize_remote, _initialize_remote): Update.
4102 * remote-vx.c (_initialize_vx): Update.
4103 * remote-utils.c (_initialize_sr_support): Update.
4104 * remote-sds.c (_initialize_remote_sds): Update.
4105 * remote-mips.c (_initialize_remote_mips): Update.
4106 * remote-e7000.c (_initialize_remote_e7000): Update.
4107 * proc-api.c (_initialize_proc_api): Update.
4108 * printcmd.c: Update.
4109 * parse.c (_initialize_parse): Update.
4110 * pa64solib.c (_initialize_pa64_solib): Update.
4111 * p-valprint.c (_initialize_pascal_valprint): Update.
4112 * monitor.c (_initialize_remote_monitors): Update.
4113 * mips-tdep.c (_initialize_mips_tdep): Update.
4114 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4115 * maint.c (_initialize_maint_cmds): Update.
4116 * lin-lwp.c (_initialize_lin_lwp): Update.
4117 * language.c (_initialize_language): Update.
4118 * kod.c (_initialize_kod): Update.
4119 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4120 * i386-tdep.c (_initialize_i386_tdep): Update.
4121 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4122 * gdbarch.sh: Update.
4123 * gdbarch.c: Re-generate.
4124 * gdb-events.sh: Update.
4125 * gdb-events.c: Re-generate.
4126 * frame.c (_initialize_frame): Update.
4127 * exec.c: Update.
4128 * demangle.c (_initialize_demangler): Update.
4129 * dcache.c (_initialize_dcache): Update.
4130 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4131 * cp-valprint.c (_initialize_cp_valprint): Update.
4132 * corefile.c (_initialize_core): Update.
4133 * command.h: Update.
4134 * cli/cli-decode.h: Update.
4135 * cli/cli-cmds.c (init_cli_cmds): Update.
4136 * charset.c (_initialize_charset): Update.
4137 * breakpoint.c (_initialize_breakpoint): Update.
4138 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4139 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4140 * aix-thread.c (_initialize_aix_thread): Update.
4141
4142 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4143
4144 Partial fix for PR backtrace/1718.
4145 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4146 that GCC migrates into the prolugue. Don't handle any
4147 instructions that clobber %ebx.
4148
4149 2004-07-23 Andrew Cagney <cagney@gnu.org>
4150
4151 Use regcache_raw_collect instead of regcache_collect.
4152 * regcache.h (regcache_collect): Delete declaration.
4153 * regcache.c (regcache_colect): Delete function.
4154 * win32-nat.c (do_child_store_inferior_registers): Update.
4155 * sol-thread.c (sol_thread_store_registers): Update.
4156 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4157 * rs6000-nat.c (store_register): Update.
4158 * remote.c (store_register_using_P, remote_store_registers): Update.
4159 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4160 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4161 (fill_vrregset, store_spe_registers, fill_gregset)
4162 (fill_gregset): Update.
4163 * nto-procfs.c (procfs_store_registers): Update.
4164 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4165 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4166 * m68klinux-nat.c (store_register, fill_gregset): Update.
4167 * m68k-tdep.c (fill_gregset): Update.
4168 * infptrace.c (store_register): Update.
4169 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4170 * i386-linux-nat.c (store_register, fill_gregset): Update.
4171 * hppa-linux-nat.c (fill_gregset): Update.
4172 * go32-nat.c (store_register): Update.
4173 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4174 (store_fp_regs): Update.
4175 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4176 (store_nwfpe_extended, store_fpregister, store_fpregs)
4177 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4178 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4179 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4180 (store_regs_user_thread, store_regs_kernel_thread): Update.
4181
4182 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4183
4184 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4185 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4186 encoding.
4187 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4188 member of `struct comp_unit'.
4189
4190 2004-07-23 Andrew Cagney <cagney@gnu.org>
4191
4192 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4193 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4194
4195 2004-07-23 Martin Hunt <hunt@redhat.com>
4196 Kevin Buettner <kevinb@redhat.com>
4197
4198 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4199 alignment was being added to the offset instead of multiplied.
4200
4201 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4202
4203 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4204 changed signal trampoline in OpenBSD 3.5-current.
4205
4206 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4207 <machine/pcb.h> and "bsd-kvm.h".
4208 (sparc64nbsd_supply_pcb): New function.
4209 (_initialize_sparc64nbsd_nat): Renamed from
4210 _initialize_sparcnbsd_nat. Enable libkvm interface.
4211 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4212 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4213 (LOADLIBES): New variable.
4214
4215 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4216
4217 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4218
4219 2004-07-21 Andrew Cagney <cagney@gnu.org>
4220
4221 Use regcache_raw_supply instead of supply_register.
4222 * regcache.h (supply_register): Delete declaration.
4223 * regcache.c (supply_register): Delete function.
4224 * wince.c (do_child_fetch_inferior_registers): Update.
4225 * win32-nat.c (do_child_fetch_inferior_registers)
4226 (fetch_elf_core_registers): Update.
4227 * v850ice.c (v850ice_fetch_registers): Update.
4228 * thread-db.c (thread_db_store_registers): Update.
4229 * sol-thread.c (sol_thread_store_registers): Update.
4230 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4231 * rs6000-nat.c (fetch_register): Update.
4232 * rom68k-rom.c (rom68k_supply_one_register): Update.
4233 * remote.c (remote_wait, remote_async_wait): Update.
4234 * remote-st.c (get_hex_regs): Update.
4235 * remote-sim.c (gdbsim_fetch_register): Update.
4236 * remote-sds.c (sds_fetch_registers): Update.
4237 * remote-rdp.c (remote_rdp_fetch_register): Update.
4238 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4239 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4240 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4241 * remote-hms.c (init_hms_cmds): Update.
4242 * remote-est.c (init_est_cmds): Update.
4243 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4244 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4245 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4246 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4247 (fetch_register, supply_vrregset, supply_vrregset)
4248 (fetch_spe_registers): Update.
4249 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4250 * monitor.c (monitor_supply_register): Update.
4251 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4252 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4253 (mipsnbsd_supply_fpreg): Update.
4254 * mips-nat.c (fetch_inferior_registers)
4255 (fetch_core_registers): Update.
4256 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4257 (supply_fpregset, mips64_supply_gregset)
4258 (mips64_supply_fpregset): Update.
4259 * m68klinux-nat.c (fetch_register, supply_gregset)
4260 (supply_fpregset): Update.
4261 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4262 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4263 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4264 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4265 * infptrace.c (fetch_register): Update.
4266 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4267 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4268 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4269 (gnu_fetch_registers, gnu_store_registers): Update.
4270 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4271 * i386-linux-nat.c (fetch_register, supply_gregset)
4272 (dummy_sse_values): Update.
4273 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4274 * hppah-nat.c (fetch_register): Update.
4275 * hppa-linux-nat.c (fetch_register, supply_gregset)
4276 (supply_fpregset): Update.
4277 * go32-nat.c (fetch_register): Update.
4278 * dve3900-rom.c (fetch_bitmapped_register)
4279 (_initialize_r3900_rom): Update.
4280 * cris-tdep.c (supply_gregset): Update.
4281 * abug-rom.c (init_abug_cmds): Update.
4282 * core-aout.c (fetch_core_registers): Update.
4283 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4284 (fetch_register, fetch_fp_register): Update.
4285 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4286 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4287 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4288 * alphanbsd-tdep.c (fetch_core_registers): Update.
4289 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4290 * alpha-nat.c (fetch_osf_core_registers)
4291 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4292 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4293 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4294
4295 2004-07-21 Andrew Cagney <cagney@gnu.org>
4296
4297 * PROBLEMS: Mention breakpoints/1702.
4298 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4299 that is known to work.
4300
4301 2004-07-21 Andrew Cagney <cagney@gnu.org>
4302
4303 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4304 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4305 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4306 (handle_inferior_event): Wrap call to deprecated
4307 IGNORE_HELPER_CALL in #ifdef.
4308 * config/mips/tm-nbsd.h: Update.
4309
4310 2004-07-20 Jim Blandy <jimb@redhat.com>
4311
4312 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4313 bfd_mach_ppc has no segment registers.
4314
4315 Include PowerPC SPR numbers for special-purpose registers.
4316 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4317 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4318 new member in initializer.
4319 (S, S4, SN4, S64): New macros for defining special-purpose
4320 registers.
4321 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4322 registers_403, registers_403GC, registers_505, registers_860,
4323 registers_601, registers_602, registers_603, registers_604,
4324 registers_750, registers_e500): Use them.
4325
4326 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4327 replace references with expression used to initialize variable.
4328
4329 2004-07-20 Andrew Cagney <cagney@gnu.org>
4330
4331 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4332 read_memory_nobpt.
4333 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4334 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4335 (s390_sigtramp_frame_sniffer): Update.
4336 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4337 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4338 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4339 (mips32_fetch_instruction): Update.
4340 * mcore-tdep.c (get_insn): Update.
4341 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4342 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4343 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4344 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4345 (i386_linux_rt_sigtramp_start): Update.
4346 * i386-linux-nat.c (child_resume): Update.
4347 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4348 * hppa-linux-tdep.c (insns_match_pattern): Update.
4349 * gdbcore.h: Update.
4350 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4351 * frame.c (safe_frame_unwind_memory): Update.
4352 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4353 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4354 * alpha-tdep.c (alpha_read_insn): Update.
4355
4356 2004-07-20 Andrew Cagney <cagney@gnu.org>
4357
4358 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4359 containing both bytes and mask. Add "frame_type".
4360 * tramp-frame.c (tramp_frame_start): Update.
4361 (tramp_frame_prepend_unwinder): Update.
4362 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4363 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4364 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4365 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4366
4367 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4368
4369 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4370 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4371 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4372 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4373
4374 2004-07-17 Andrew Cagney <cagney@gnu.org>
4375
4376 * NEWS, PROBLEMS: Update for 6.2.
4377
4378 * README: Update to 6.2.
4379
4380 * utils.c (xvasprintf): Call xstrvprintf.
4381
4382 * parse.c: Update copyright.
4383 (null_post_parser): Eliminate ARGSUSED.
4384
4385 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4386 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4387 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4388
4389 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4390 * ppc-linux-nat.c: Use "Linux kernel".
4391 * hppa-linux-tdep.c: Use GNU/Linux.
4392 * hppa-linux-nat.c: Use GNU/Linux.
4393 * dwarfread.c: Add [sic] to use of Linux.
4394
4395 * hppa-linux-nat.c: Do not include <string.h>.
4396 (supply_fpregset): Remove "register" attribute.
4397
4398 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4399
4400 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4401
4402 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4403 * configure, config.in: Regenerated.
4404
4405 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4406 "bsd-kvm.h".
4407 (vaxbsd_supply_pcb): New function.
4408 (_initialize_vaxbsd_nat): New prototype and function.
4409 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4410 solib-sunos.o.
4411 (LOADLIBES): New variable.
4412 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4413 (LOADLIBES): New variable.
4414 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4415 (LOADLIBES): New variable.
4416 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4417
4418 2004-07-16 Andrew Cagney <cagney@gnu.org>
4419
4420 * defs.h (event_loop_p): Replace variable declaration with macro,
4421 always 1.
4422 * main.c (captured_main): Delete options "-async" and "-noasync".
4423 (event_loop_p): Delete variable.
4424 * NEWS: Mention that "-async" and "-noasync" were removed.
4425
4426 2004-07-16 Andrew Cagney <cagney@gnu.org>
4427
4428 * remote-m32r-sdi.c: Re-indent.
4429
4430 2004-07-16 Jim Blandy <jimb@redhat.com>
4431
4432 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4433 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4434 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4435 missing MPC823 SPRs.
4436 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4437 incorrect. (This was corrected in GDB's register name tables on
4438 2004-07-14.)
4439
4440 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4441 should be "esasrr" ("ESA Save and Restore Register").
4442
4443 2004-07-16 Andrew Cagney <cagney@gnu.org>
4444
4445 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4446 calls, no longer applicable. Update comments and rename parameter
4447 "step_frame" to "return_frame".
4448
4449 2004-07-16 Andrew Cagney <cagney@gnu.org>
4450
4451 * frame.c (fprint_field): New function.
4452 (fprint_frame_id): Use fprint_field.
4453
4454 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4455
4456 * ada-lang.c (ada_language_defn): Remove commented out code.
4457
4458 2004-07-15 Jim Blandy <jimb@redhat.com>
4459
4460 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4461 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4462
4463 2004-07-14 Jim Blandy <jimb@redhat.com>
4464
4465 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4466
4467 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4468
4469 * ppc-tdep.h (ppc_num_srs): New enum constant.
4470
4471 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4472 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4473 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4474 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4475 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4476 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4477 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4478 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4479 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4480 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4481 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4482 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4483 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4484 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4485 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4486 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4487 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4488 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4489 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4490 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4491 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4492 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4493 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4494 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4495 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4496 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4497 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4498 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4499 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4500 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4501 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4502 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4503 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4504 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4505 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4506 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4507 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4508 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4509 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4510 special-purpose register numbers.
4511
4512 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4513 manual mentions 'md_twb', but many mention 'm_twb', and at that
4514 point in the register list.)
4515
4516 2004-07-14 Andrew Cagney <cagney@gnu.org>
4517
4518 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4519 instead of "internal-error".
4520
4521 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4522
4523 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4524 that was inserted inside a comment.
4525
4526 2004-07-10 Randolph Chung <tausq@debian.org>
4527
4528 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4529 function.
4530 (hppa_hpux_push_dummy_code): New function.
4531 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4532 Set find_global_pointer method.
4533
4534 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4535
4536 * NEWS: Mention BSD libkvm interface.
4537
4538 2004-07-10 Michael Snyder <msnyder@redhat.com>
4539
4540 * symfile.c (generic_load): Comment typo.
4541 * stack.c (get_selected_block): Ditto.
4542 * regcache.c (regcache_cooked_read): Ditto.
4543 * monitor.c (monitor_debug): Ditto.
4544 * mips-tdep.c (mips_read_pc): Ditto.
4545 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4546 * gdb_mbuild.sh: Ditto.
4547 * gdbarch.sh: Ditto.
4548 * gdbarch.h: Ditto.
4549
4550 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4551
4552 * ada-tasks.c: Remove file.
4553
4554 Remove ARI problems:
4555
4556 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4557 beginning of line.
4558
4559 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4560 Add comment.
4561 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4562 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4563 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4564 (UMIN_OF_SIZE): Remove.
4565 (max_of_type): New function to replace orphan macro in gdbtypes.h
4566 (min_of_type): Ditto.
4567 (discrete_type_high_bound): Use max_of_type.
4568 (discrete_type_low_bound): Use min_of_type.
4569 (possible_user_operator_p): Move operator to beginning of line.
4570 (ada_is_variant_part): Ditto.
4571 (ensure_lval): Rewrite to avoid deprecated operations.
4572 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4573 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4574 (ada_enum_name): Remove assignments in 'if' statements.
4575 (build_ada_types): Add gdbarch parameter.
4576 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4577 with gdbarch_data_register_post_init.
4578 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4579 add_show_from_set.
4580
4581 * ada-valprint.c (inspect_it): Remove declaration.
4582 (repeat_count_threshold): Remove declaration.
4583 (ada_print_floating): Remove assignments in 'if' statements.
4584 (print_str): Move operator to beginning of line.
4585
4586 2004-07-08 Jim Blandy <jimb@redhat.com>
4587
4588 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4589
4590 2004-07-08 Bob Rossi <bob@brasko.net>
4591
4592 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4593
4594 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4595
4596 * language.h (struct_language_defn): Add new function pointer:
4597 la_class_name_from_physname. Also add new prototype for
4598 language_class_name_from_physname.
4599 * language.c (language_class_name_from_physname): New function.
4600 (unk_lang_class_name): Ditto.
4601 (unknown_language_defn, auto_language_defn): Change
4602 to add unk_lang_class_name function pointer for
4603 la_class_name_from_physname.
4604 (local_language_defn): Ditto.
4605 * dwarf2read.c (guess_structure_name): Change to call
4606 language_class_name_from_physname.
4607 (determine_class_name): Ditto.
4608 * cp-support.c (class_name_from_physname): Renamed.
4609 (cp_class_name_from_physname): New name of function.
4610 * cp-support.h: Ditto.
4611 * c-lang.c (c_language_defn): Change to add NULL
4612 for class_name_from_physname function pointer.
4613 (cplus_language_defn): Change to add cp_class_name_from_physname.
4614 * jv-lang.c (java_class_name_physname): New function.
4615 (java_find_last_component): New static routine.
4616 (java_language_defn): Add java_class_name_from_physname pointer.
4617 * ada-lang.c (ada_language_defn): Change to add NULL
4618 for class_name_from_physname function pointer.
4619 * f-lang.c (f_language_defn): Ditto.
4620 * m2-lang.c (m2_language_defn): Ditto.
4621 * objc-lang.c (objc_language_defn): Ditto.
4622 * p-lang.c (pascal_language_defn): Ditto.
4623 * scm-lang.c (scm_language_defn): Ditto.
4624
4625 2004-07-06 Andrew Cagney <cagney@gnu.org>
4626
4627 Patch from Bart Robinson.
4628 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4629 (O_LARGEFILE): Define to 0, if not defined.
4630
4631 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4632
4633 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4634 <machine/pcb.h> and "bsd-kvm.h".
4635 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4636 (m68kbsd_supply_pcb): New function.
4637 (_initialize_m68kbsd_nat): New prototype and function.
4638 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4639 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4640 (LOADLIBES): New variable.
4641 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4642 (LOADLIBES): New variable.
4643
4644 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4645
4646 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4647
4648 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4649 <sys/proc.h>.
4650 (bsd_kvm_cmdlist): New variable.
4651 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4652 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4653 command and "kvm proc" command.
4654 * Makefile.in (bsd-kvm.o): Update dependencies.
4655
4656 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4657
4658 * osabi.c: Update copyright year.
4659 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4660 notes if EI_OSABI is set to ELFOSABI_HPUX.
4661
4662 2004-07-01 Michael Snyder <msnyder@redhat.com>
4663
4664 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4665 that seems to have gotten whacked out of line.
4666
4667 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4668
4669 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4670 code.
4671
4672 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4673
4674 * ada-lang.c (decode_packed_array): Minor change to comment.
4675 (ada_value_slice_ptr): New function.
4676 (ada_value_slice): New function.
4677 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4678 test. Don't know why it is there.
4679 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4680 to avoid dereferencing huge arrays from which one is slicing.
4681 (empty_array): Correct to return an array rather than
4682 a subrange value.
4683 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4684 on empty arrays (let'em use 'FIRST instead).
4685
4686 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4687
4688 Address complaints from gdb_ari.sh:
4689
4690 * ada-exp.y: Include gdb_string.h rather than string.h.
4691 (convert_char_literal): Reformat declaration.
4692 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4693 * ada-lex.l: Change use of free to xfree (the macro would do so
4694 anyway, but this is harmless).
4695 Include gdb_string.h rather than string.h.
4696 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4697
4698 * ada-lang.c (parse): Remove K&Rism in parameter list.
4699 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4700
4701 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4702
4703 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4704 dead code.
4705
4706 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4707
4708 * alphabsd-nat.c: Update copyright year.
4709 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4710
4711 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4712
4713 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4714 (i386_cygwin_in_solib_call_trampoline): New function.
4715 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4716 and skip_trampoline_code gdbarch methods.
4717
4718 2004-06-29 Jim Blandy <jimb@redhat.com>
4719
4720 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4721 name actually used in the dependency lists.
4722
4723 2004-06-29 Randolph Chung <tausq@debian.org>
4724
4725 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4726
4727 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4728
4729 * win32-nat.c (child_pid_to_exec_file): New function.
4730 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4731 functionality.
4732
4733 2004-06-28 Andrew Cagney <cagney@gnu.org>
4734
4735 * defs.h (xstrvprintf): Declare.
4736 * utils.c (xstrvprintf): New function.
4737 (internal_vproblem, xstrprintf, xasprintf)
4738 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4739 * serial.c (serial_printf): Ditto.
4740 * complaints.c (vcomplaint): Ditto.
4741
4742 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4743
4744 * infcmd.c (attach_command): Move call to target_terminal_inferior
4745 behind loading symbol table.
4746
4747 2004-06-28 Andrew Cagney <cagney@gnu.org>
4748
4749 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4750 change - add back extern deprecated_ui_loop_hook declaration.
4751
4752 2004-06-28 Andrew Cagney <cagney@gnu.org>
4753
4754 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4755 xstrprintf.
4756 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4757 (c_value_of_variable): Ditto.
4758 * utils.c (internal_vproblem): Ditto.
4759 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4760 * remote.c (add_packet_config_cmd): Ditto.
4761 * remote-rdp.c (rdp_set_command_line): Ditto.
4762 * regcache.c (regcache_dump): Ditto.
4763 * frv-tdep.c (new_variant, new_variant): Ditto.
4764 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4765 (fbsd_find_memory_regions): Ditto.
4766 * breakpoint.c (create_thread_event_breakpoint)
4767 (create_breakpoints): Ditto.
4768 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4769 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4770
4771 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4772
4773 * ada-lang.c: Re-indent file, with some massaging to help indent
4774 a bit when the result is otherwise really too ugly.
4775
4776 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4777
4778 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4779 code_addr_p and special_addr_p to 'unsigned int'.
4780
4781 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4782
4783 * i386v4-nat.c: Update copyright year and tweak comment.
4784 (regmap): Remove trailing comma.
4785 (supply_gregset): Rename local variable i to regnum. Call
4786 regcache_raw_supply instead of supply_register.
4787 (fill_gregset): Rename argument regno to regnum. Call
4788 regcache_raw_collect instead of regcache_collect.
4789
4790 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4791
4792 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4793 and special_addr_p.
4794 (frame_id_build, frame_id_build_special): Update comments.
4795 (frame_id_build_wild): New prototype.
4796 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4797 struct frame_id fields.
4798 (frame_id_build_wild): New function.
4799 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4800
4801 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4802
4803 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4804 hppabsd-tdep.c.
4805
4806 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4807
4808 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4809
4810 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4811
4812 * ada-lang.c: Re-indent file.
4813
4814 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4815
4816 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4817 (no_symtab_msg): Likewise.
4818
4819 2004-06-27 Andreas Schwab <schwab@suse.de>
4820
4821 * source.c: Fix whitespace.
4822
4823 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4824
4825 * configure.in: Include <sys/param.h> for td_pcb test.
4826 * configure: Regenerated.
4827
4828 * i386nbsd-nat.c: New file.
4829 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4830 i386obsd-nat.c and i386obsd-tdep.c.
4831 (i386nbsd-nat.o): New dependency.
4832 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4833 bsd-kvm.o.
4834 (LOADLIBES): New variable.
4835 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4836 bsd-kvm.o.
4837 (LOADLIBES): New variable.
4838
4839 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4840 (LOADLIBES): New variable.
4841
4842 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4843 fetching from BSD_KVM_PADDR. Correctly lookup address for
4844 "_thread0".
4845
4846 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4847 "bsd-kvm.h".
4848 (amd64fbsd_supply_pcb): New funcion.
4849 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4850
4851 2004-06-27 <david@streamline-computing.com>
4852
4853 Partial fix for PR cli/1056.
4854 * valarith.c: Check for zero in division and remainder
4855 evaluation.
4856
4857 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4858
4859 * i387-tdep.c: Remove excessive whitespace.
4860
4861 2004-06-26 Andrew Cagney <cagney@gnu.org>
4862
4863 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4864 * gdb-events.h, gdb-events.c: Re-generate.
4865 * tui/tui-hooks.c (tui_install_hooks): Update.
4866 (tui_remove_hooks): Update.
4867 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4868
4869 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4870
4871 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4872 (gregset_t, fpregset_t): Remove typedefs.
4873 (REG_OFFSET): Rename argument.
4874 (amd64bsd_r_reg_offset): Rename from reg_offset.
4875 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4876 Remove functions.
4877 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4878 of reg_offset.
4879 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4880
4881 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4882
4883 * vax-tdep.c: Tweak comment.
4884
4885 Add OpenBSD/hppa support.
4886 * NEWS (New native configurations): Mention OpenBSD/hppa.
4887 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4888 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4889 files.
4890 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4891 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4892 * configure.host: Add hppa*-*-openbsd*.
4893 * configure.tgt: Add hppa*-*-openbsd*.
4894
4895 2004-06-25 Andrew Cagney <cagney@gnu.org>
4896
4897 * defs.h (deprecated_ui_loop_hook): Deprecated.
4898 * wince.c (child_wait): Update.
4899 * win32-nat.c (child_wait): Update.
4900 * v850ice.c (v850ice_wait): Update.
4901 * top.c (deprecated_ui_loop_hook): Update.
4902 * serial.h: Update.
4903 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4904 (do_unix_readchar): Update.
4905 * ser-tcp.c (net_open): Update.
4906 * remote-sim.c (gdb_os_poll_quit): Update.
4907 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4908
4909 2004-06-24 Andrew Cagney <cagney@gnu.org>
4910
4911 * defs.h (deprecated_pre_add_symbol_hook)
4912 (deprecated_post_add_symbol_hook): Deprecated.
4913 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4914 (symbol_file_add_with_addrs_or_offsets): Update references.
4915
4916 2004-06-24 Andrew Cagney <cagney@gnu.org>
4917
4918 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4919 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4920 * wince.c (ui_loop_hook): Delete extern declaration.
4921 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4922 * v850ice.c (ui_loop_hook): Delete extern declaration..
4923 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4924 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4925 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4926 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4927 ui_loop_hook declaration.
4928
4929 2004-06-24 Andrew Cagney <cagney@gnu.org>
4930
4931 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4932 entry_func_highpc fields.
4933 * objfiles.c (init_entry_point_info): Do not clear
4934 entry_func_lowpc and entry_func_highpc.
4935 (objfile_relocate): Do not relocate entry_func_lowpc and
4936 entry_func_highpc.
4937 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4938 entry_func_highpc.
4939 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4940 entry_func_highpc.
4941 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4942 entry_func_lowpc and entry_func_highpc with call to
4943 inside_entry_func.
4944
4945 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4946
4947 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4948 quad-precision floating point arguments in registers.
4949
4950 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4951
4952 From Michael Mueller <m.mueller99@kay-mueller.de>:
4953 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4954 account.
4955
4956 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4957
4958 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4959 to -1.
4960 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4961 untriggered watchpoints to a separate if clause. Update function
4962 comment regarding STOPPED_BY_WATCHPOINT argument.
4963
4964 2004-06-22 Jim Blandy <jimb@redhat.com>
4965
4966 * gdbarch.sh: Doc fix.
4967
4968 2004-06-21 Martin Hunt <hunt@redhat.com>
4969 Kevin Buettner <kevinb@redhat.com>
4970
4971 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4972 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4973 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4974 to set_gdbarch_sp_regnum(). Use cooked register number.
4975 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4976
4977 2004-06-21 Andrew Cagney <cagney@gnu.org>
4978
4979 * gdbarch.sh: When the macro field is empty, do not generate a
4980 macro definition. When the macro field is "=", generate the macro
4981 name from the upper-case function name.
4982 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4983 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4984 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4985 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4986 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4987 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4988 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4989 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4990 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4991 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4992 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4993 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4994 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4995 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4996 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4997 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4998 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4999 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5000 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5001 (DEPRECATED_USE_STRUCT_CONVENTION)
5002 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5003 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5004 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5005 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5006 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5007 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5008 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5009 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5010 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5011 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5012 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5013 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5014 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5015 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5016 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5017 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5018 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5019 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5020
5021 2004-06-21 Andrew Cagney <cagney@gnu.org>
5022
5023 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5024 macro name, and the function rather than macro value. Only wrap
5025 macro print statements in #ifdef. Move format logic to where it
5026 is needed.
5027 * gdbarch.c: Re-generate.
5028
5029 * gdbarch.sh (read): Delete "print_p" and "description", add
5030 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5031 Delete references to print_p.
5032 (TARGET_ARCHITECTURE): Delete print predicate.
5033 * gdbarch.c: Re-generate.
5034
5035 * gdbarch.sh: Check that multi-arch methods do not provide a
5036 macro.
5037 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5038 (print_registers_info, print_float_info, print_vector_info)
5039 (adjust_breakpoint_address, remote_translate_xfer_address)
5040 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5041 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5042 name from the multi-arch definition.
5043
5044 2004-06-20 Andrew Cagney <cagney@gnu.org>
5045
5046 * gdbarch.sh: Sort by the function, instead of macro name.
5047 * gdbarch.c: Re-generate.
5048
5049 2004-06-20 Andrew Cagney <cagney@gnu.org>
5050
5051 * gdbarch.sh: Use the function, instead of macro name in
5052 errors and the log file.
5053 (return_value): Remove stray ":" in spec.
5054
5055 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5056 * gdbarch.h, gdbarch.c: Re-generate.
5057 * Makefile.in (arch-utils.o): Update dependencies.
5058 * values.c (using_struct_return): Move code calling
5059 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5060 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5061 to legacy_return_value, simplify.
5062 * infcmd.c (print_return_value): Move code calling
5063 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5064 to legacy_return_value, simplify.
5065 * infcall.c (call_function_by_hand): Move code calling
5066 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5067 * arch-utils.c: Update copyright. Include "gdbcore.h".
5068 (legacy_return_value): New function.
5069 * arch-utils.h: Update copyright.
5070 (legacy_return_value): Declare.
5071
5072 2004-06-20 Andrew Cagney <cagney@gnu.org>
5073
5074 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5075 * gdbarch.h, gdbarch.c: Re-generate.
5076 * values.c (using_struct_return): Update call.
5077 * mcore-tdep.c: Update comment.
5078 * infcall.c (call_function_by_hand): Update comment.
5079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5080 * arch-utils.h (always_use_struct_convention): Update.
5081 * v850-tdep.c (v850_gdbarch_init): Update.
5082 * sh64-tdep.c (sh64_gdbarch_init): Update.
5083 * sh-tdep.c (sh_gdbarch_init): Update.
5084 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5085 * mips-tdep.c (mips_gdbarch_init): Update.
5086 * mcore-tdep.c (mcore_gdbarch_init): Update.
5087 * m32r-tdep.c (m32r_gdbarch_init): Update.
5088 * ia64-tdep.c (ia64_gdbarch_init): Update.
5089 * h8300-tdep.c (h8300_gdbarch_init): Update.
5090 * frv-tdep.c (frv_gdbarch_init): Update.
5091 * cris-tdep.c (cris_gdbarch_init): Update.
5092 * arm-tdep.c (arm_gdbarch_init): Update.
5093 * alpha-tdep.c (alpha_gdbarch_init): Update.
5094
5095 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5096
5097 * PROBLEMS: Add more specific information, and a work-around,
5098 for PR gdb/1458.
5099
5100 2004-06-18 Andrew Cagney <cagney@gnu.org>
5101
5102 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5103 * gdbarch.h, gdbarch.c: Re-generate.
5104 * ada-lang.c (ada_finish_decode_line_1): Update.
5105 * infrun.c (handle_inferior_event): Update.
5106 * infcall.c (find_function_addr): Update.
5107 * linespec.c (minsym_found): Update.
5108 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5109 Update.
5110 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5111 * cli/cli-cmds.c (disassemble_command): Update.
5112 * vax-tdep.c (vax_gdbarch_init): Update.
5113
5114 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5115
5116 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5117
5118 2004-06-17 Andrew Cagney <cagney@gnu.org>
5119
5120 GDB 6.1.1 released from the GDB 6.1 branch.
5121 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5122 * PROBLEMS: Ditto.
5123
5124 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5125
5126 PR gdb/1658
5127 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5128 operation as a uleb128. Found by Michael Coulter.
5129
5130 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5131
5132 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5133 make it non-static.
5134 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5135 to ada-lang.h; this is needed to be able to implement the kill command
5136 in multi-task mode.
5137 (task_ptid): Ditto.
5138 (task_entry): Ditto.
5139 (task_list): Ditto.
5140 (ada_build_task_list): Ditto.
5141
5142 * ada-lang.c: Conditionalize routines and data structures related
5143 to breakpoints, exceptions, completion, and symbol caching on
5144 GNAT_GDB, since these are not yet used in the submitted public sources.
5145 (ada_main_name): Editorial: Move definition out of exception-related
5146 code.
5147
5148 2004-06-15 Andrew Cagney <cagney@gnu.org>
5149
5150 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5151 deprecated_pc_in_call_dummy.
5152
5153 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5154
5155 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5156 bfd_get_section_size_before_reloc or _raw_size.
5157 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5158 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5159 (dwarf2_read_section): Likewise.
5160 * elfread.c (elf_locate_sections): Likewise.
5161 * gcore.c (derive_heap_segment): Likewise.
5162 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5163 * remote-e7000.c (e7000_load): Likewise.
5164 * remote-m32r-sdi.c (m32r_load): Likewise.
5165 * remote-mips.c (mips_load_srec): Likewise.
5166 (pmon_load_fast): Likewise.
5167 * remote.c (compare_sections_command): Likewise.
5168 * symfile.c (add_section_size_callback): Likewise.
5169 (load_section_callback): Likewise.
5170 (pc_in_unmapped_range): Likewise.
5171 (pc_in_mapped_range): Likewise.
5172 (sections_overlap): Likewise.
5173 (list_overlays_command): Likewise.
5174 (simple_overlay_update_1): Likewise.
5175 (simple_overlay_update): Likewise.
5176 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5177 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5178
5179 2004-06-14 Randolph Chung <tausq@debian.org>
5180
5181 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5182 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5183 static.
5184 (hppa_hpux_inferior_created): New function.
5185 (hppa_hpux_init_abi): Register observer.
5186 * symfile.c (hp_cxx_exception_support_initialized)
5187 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5188 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5189
5190 2004-06-14 Randolph Chung <tausq@debian.org>
5191
5192 * MAINTAINERS (Write After Approval): Alphabetize my entry
5193 correctly.
5194
5195 2004-06-14 Andrew Cagney <cagney@gnu.org>
5196
5197 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5198 testsuite maintainer.
5199
5200 2004-06-13 Andrew Cagney <cagney@gnu.org>
5201
5202 * infcmd.c (print_return_value): Fix logic, allow
5203 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5204
5205 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5206 defining any macros.
5207 * gdbarch.h: Re-generate.
5208
5209 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5210 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5211 * gdbarch.h: Re-generate.
5212
5213 * values.c (generic_use_struct_convention): Don't check gcc_p.
5214
5215 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5216 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5217 * gdbarch.h, gdbarch.c: Regenerate.
5218 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5219 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5221 deprecated_max_register_raw_size and
5222 deprecated_max_register_virtual_size.
5223 * v850-tdep.c (v850_gdbarch_init): Ditto.
5224 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5225 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5226 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5227 * cris-tdep.c (cris_gdbarch_init): Ditto.
5228
5229 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5230 * gdbarch.h, gdbarch.c: Re-generate.
5231 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5232 (m68hc11_use_struct_convention): Delete function.
5233 (m68hc11_extract_struct_value_address): Delete function.
5234 (m68hc11_return_value): New function.
5235 (m68hc11_gdbarch_init): Instead of store_return_value,
5236 extract_return_value, return_value_on_stack,
5237 deprecated_extract_struct_value_address and use_struct_convention,
5238 set return_value.
5239 * values.c (using_struct_return): Do not call
5240 RETURN_VALUE_ON_STACK.
5241 * arch-utils.h (generic_return_value_on_stack_not): Delete
5242 declaration.
5243 * arch-utils.c (generic_return_value_on_stack_not): Delete
5244 function.
5245
5246 2004-06-12 Andrew Cagney <cagney@gnu.org>
5247
5248 * values.c (register_value_being_returned): Delete function.
5249 * infcmd.c (legacy_return_value): Delete function.
5250 * infcall.c (call_function_by_hand): Inline
5251 "register_value_being_returned", simplify.
5252 * values.c (using_struct_return): Update comment, refer to
5253 print_return_value instead of register_value_being_returned.
5254 * infcmd.c (print_return_value): Inline calls to
5255 register_value_being_returned and legacy_return_value. Simplify.
5256
5257 2004-06-11 Randolph Chung <tausq@debian.org>
5258
5259 * somread.c (som_symtab_read): Exclude gcc local symbols.
5260
5261 2004-06-11 Randolph Chung <tausq@debian.org>
5262
5263 * infrun.c (handle_inferior_event): Handle the case when a
5264 trampoline ends up in the runtime resolver, and if the trampoline
5265 has no name. Rearrange the code so that all the trampoline
5266 processing happens before other step-out-of-range handling.
5267
5268 2004-06-11 Martin Hunt <hunt@redhat.com>
5269
5270 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5271 has no fpu.
5272
5273 2004-06-10 Andrew Cagney <cagney@gnu.org>
5274
5275 * blockframe.c (legacy_inside_entry_func): Delete.
5276 (legacy_frame_chain_valid): Inline call to
5277 legacy_inside_entry_func, simplify.
5278
5279 2004-06-10 Bob Rossi <bob@brasko.net>
5280
5281 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5282 * dwarf2read.c (partial_die_info): Add dirname field.
5283 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5284 (read_partial_die): Save away DW_AT_comp_dir.
5285 * defs.h (symtab_to_filename): Removed.
5286 * source.c (find_and_open_source): Added.
5287 (open_source_file): Just calls find_and_open_source.
5288 (symtab_to_filename): Removed.
5289 (symtab_to_fullname, psymtab_to_fullname): Added.
5290 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5291 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5292 symtab_to_filename.
5293 * symtab.h (partial_symtab): Add dirname field.
5294 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5295 (mi_cmd_file_list_exec_source_file): Call new function
5296 symtab_to_fullname to find fullname.
5297 (mi_cmd_file_list_exec_source_files): Added.
5298 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5299 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5300
5301 2004-06-10 Andrew Cagney <cagney@gnu.org>
5302
5303 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5304 to generic_use_struct_convention, the default value.
5305
5306 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5307 of abort.
5308
5309 * ns32k-tdep.c (ns32k_push_arguments): New function.
5310 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5311 * infcall.c (call_function_by_hand): Call error instead of
5312 legacy_push_arguments.
5313 * value.h (legacy_push_arguments): Delete declaration.
5314 * valops.c (legacy_push_arguments): Delete function.
5315 (value_push): Delete function.
5316
5317 2004-06-10 Brian Ford <ford@vss.fsi.com>
5318
5319 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5320 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5321 info.
5322 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5323
5324 2004-06-10 Andrew Cagney <cagney@gnu.org>
5325
5326 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5327 * gdbarch.h, gdbarch.c: Re-generate.
5328 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5329 parameters.
5330 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5331 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5332 deprecated_pc_in_call_dummy instead of
5333 DEPRECATED_PC_IN_CALL_DUMMY.
5334 (arm_skip_prologue): Ditto.
5335 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5336 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5337 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5338 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5339 Ditto.
5340 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5341 (sh64_init_extra_frame_info, sh64_get_saved_register)
5342 (sh64_pop_frame): Ditto.
5343 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5344 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5345 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5346 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5347 (h8300_pop_frame): Ditto.
5348 * blockframe.c (legacy_inside_entry_func)
5349 (legacy_frame_chain_valid): Ditto.
5350 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5351 to deprecated_pc_in_call_dummy.
5352
5353 2004-06-09 Andrew Cagney <cagney@gnu.org>
5354
5355 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5356 provide a default value.
5357 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5358 * gdbarch.h, gdbarch.c: Re-generate.
5359 * arch-utils.c (generic_convert_register_p): Rename
5360 legacy_convert_register_p
5361 (legacy_register_to_value, legacy_value_to_register): Delete
5362 functions.
5363 * arch-utils.h (generic_convert_register_p): Rename
5364 legacy_convert_register_p.
5365 (legacy_register_to_value, legacy_value_to_register): Delete
5366 declarations.
5367
5368 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5369 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5370 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5371 * gdbarch.h, gdbarch.c: Re-generate.
5372 * infcmd.c (default_print_registers_info): Simplify.
5373 * findvar.c (value_of_register): Simplify.
5374 * mi/mi-main.c (get_register): Simplify.
5375 * arch-utils.c (legacy_convert_register_p): Always return 0.
5376 (legacy_register_to_value, legacy_value_to_register): Always call
5377 internal_error.
5378
5379 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5380 #ifdef CLEAR_INSN_CACHE code.
5381 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5382 Delete #ifdef CLEAR_DEFERRED_STORES code.
5383
5384 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5385
5386 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5387 copyright.
5388 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5389
5390 * config/mips/mipsv4.mh: Delete file.
5391
5392 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5393 unreferenced macro.
5394 (hpread_adjust_stack_address): Delete declaration.
5395
5396 2004-06-08 Andrew Cagney <cagney@gnu.org>
5397
5398 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5399 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5400 PTRACE_ATTACH / PTRACE_DETACH available call error.
5401 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5402 * infttrace.c (update_thread_state_after_attach, attach, detach):
5403 Remove #ifdef wrappers.
5404 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5405 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5406 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5407 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5408 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5409 * config/nm-linux.h (ATTACH_DETACH): Delete.
5410 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5411 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5412 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5413 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5414 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5415
5416 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5417
5418 * configure.in: Set $configdir to the right OS specific value.
5419 Use value when setting $tcldir and $tkdir.
5420 * configure: Regenerate.
5421
5422 2004-06-06 Paul Brook <paul@codesourcery.com>
5423
5424 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5425 records.
5426
5427 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5428
5429 * ada-lang.c (lookup_symbol_in_language): New function to allow
5430 re-use of another language's symbol lookup code. (Placed here
5431 temporarily while Ada support is being integrated into the public
5432 tree).
5433 (restore_language): New auxiliary function for
5434 lookup_symbol_in_language.
5435 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5436 temporarily while Ada support is being integrated into the public
5437 tree).
5438
5439 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5440
5441 * Makefile.in (check//%): New.
5442
5443 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5444 (mn10300_store_return_value): Rewrite.
5445 (mn10300_type_align): New.
5446 (mn10300_use_struct_convention): Rewrite.
5447 (mn10300_return_value): New, using all of the above.
5448 (mn10300_pop_frame_regular): Add saved_regs_size.
5449 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5450
5451 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5452 regs if PC is on movm.
5453
5454 2004-06-07 Jim Blandy <jimb@redhat.com>
5455
5456 Add native Linux support for the PowerPC E500.
5457 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5458 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5459 all architectures except the E500.
5460 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5461 #definitions.
5462 (struct gdb_evrregset_t): New type.
5463 (have_ptrace_getsetevrregs): New variable.
5464 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5465 fetch_spe_registers): New functions.
5466 (fetch_register): Call fetch_spe_register as appropriate.
5467 Assert that we're only passed raw register numbers.
5468 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5469 Don't fetch gprs if they're pseudoregisters.
5470 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5471 store_spe_registers): New functions.
5472 (store_register): Call store_spe_register as appropriate.
5473 Assert that we're only passed raw register numbers.
5474 (store_ppc_registers): Call store_spe_registers as appropriate.
5475 Don't store gprs if they're pseudoregisters.
5476
5477 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5478
5479 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5480 struct if one exists, even if we are dealing with a zombie thread.
5481
5482 2004-06-07 Andrew Cagney <cagney@gnu.org>
5483
5484 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5485 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5486 Rename PC_REQUIRES_RUN_BEFORE_USE.
5487 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5488 #ifdef.
5489
5490 2004-06-07 Randolph Chung <tausq@debian.org>
5491
5492 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5493 unwinding after sp has been saved to the stack but before the end
5494 of the prologue, and after the fp has been modified but before it has
5495 been saved to the stack.
5496 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5497 Remove superfluous definitions.
5498 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5499
5500 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5501
5502 Committed by Randolph Chung.
5503 * hppa-linux-nat.c: Include the correct version of the header file
5504 depending on the kernel version.
5505
5506 2004-06-06 Randolph Chung <tausq@debian.org>
5507
5508 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5509 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5510
5511 2004-06-06 Randolph Chung <tausq@debian.org>
5512
5513 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5514 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5515 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5516 * hppa-tdep.c (hppa_symbol_address): New function definition.
5517 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5518
5519 2004-06-06 Randolph Chung <tausq@debian.org>
5520
5521 * hppa-tdep.h (struct value): Forward declaration.
5522 (gdbarch_tdep): Define tdep find_global_pointer method.
5523 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5524 associated with the function we are trying to call, and write it
5525 to the gp register.
5526 (hppa32_convert_from_funct_ptr_addr): New function.
5527 (hppa_find_global_pointer): New function.
5528 (hppa_gdbarch_init): Set default find_global_pointer method; set
5529 convert_from_func_ptr_addr method.
5530 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5531 (hppa_linux_init_abi): Set find_global_pointer method.
5532 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5533
5534 2004-06-06 Randolph Chung <tausq@debian.org>
5535
5536 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5537 to struct value *function.
5538 * gdbarch.c: Regenerate.
5539 * gdbarch.h: Likewise.
5540 * infcall.c (call_function_by_hand): Pass entire function value
5541 to push_dummy_call.
5542
5543 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5544 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5545 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5546 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5547 * arm-tdep.c (arm_push_dummy_call): Likewise.
5548 * avr-tdep.c (avr_push_dummy_call): Likewise.
5549 * cris-tdep.c (cris_push_dummy_call): Likewise.
5550 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5551 * frv-tdep.c (frv_push_dummy_call): Likewise.
5552 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5553 * hppa-tdep.c (hppa32_push_dummy_call)
5554 (hppa64_push_dummy_call): Likewise.
5555 * i386-tdep.c (i386_push_dummy_call): Likewise.
5556 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5557 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5558 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5559 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5560 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5561 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5562 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5563 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5564 (ppc64_sysv_abi_push_dummy_call): Likewise.
5565 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5566 (ppc64_sysv_abi_push_dummy_call): Likewise.
5567 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5568 * s390-tdep.c (s390_push_dummy_call): Likewise.
5569 * sh-tdep.c (sh_push_dummy_call_fpu)
5570 (sh_push_dummy_call_nofpu): Likewise.
5571 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5572 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5573 * vax-tdep.c (vax_push_dummy_call): Likewise.
5574
5575 2004-06-04 Jim Blandy <jimb@redhat.com>
5576
5577 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5578 gdbarch argument to register_size.
5579
5580 * rs6000-tdep.c (rs6000_store_return_value): Use
5581 regcache_cooked_write_part instead of
5582 deprecated_write_register_bytes.
5583 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5584 not gdbarch_deprecated_store_return_value.
5585
5586 * ppc-linux-nat.c (store_register, fetch_register): Remove
5587 incorrect assertions. Simplify and generalize handling of
5588 transfers whose sizes are not multiples of, or less than, sizeof
5589 (PTRACE_XFER_TYPE).
5590
5591 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5592
5593 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5594 as a new thread event.
5595 * thread-db.c (thread_get_info_callback): If the thread is a
5596 zombie, return TD_THR_ZOMBIE.
5597 (thread_from_lwp): If thread_get_info_callback returns
5598 TD_THR_ZOMBIE, check if the thread is still on the thread list
5599 and return a -1 ptid if not found.
5600 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5601 change the status to TARGET_WAITKIND_SPURIOUS.
5602
5603 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5604
5605 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5606 double values in little endian mode.
5607
5608 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5609
5610 Committed by Andrew Cagney.
5611 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5612 after last enum constant to avoid error from IBM C
5613 compiler.
5614
5615 2004-06-02 Jim Blandy <jimb@redhat.com>
5616
5617 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5618 to 'message', and make it local to the lone block that uses it.
5619
5620 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5621
5622 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5623
5624 * ada-exp.y: Update copyright notice.
5625 Include block.h.
5626
5627 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5628 SPECIAL_VARIABLE and unify the treatment of these cases.
5629
5630 (write_attribute_call0): Remove.
5631 (write_attribute_call1): Remove.
5632 (write_attribute_calln): Remove.
5633 (save_qualifier): Add missing semicolon.
5634
5635 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5636 temporarily disabled to allow compilation with FSF head version.
5637
5638 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5639 use individual operators (OP_*) for all attributes.
5640 (exp syntax): Use write_int.
5641 Handle STRING literals with OP_STRING.
5642 (variable syntax): Add limit parameter to calls to
5643 write_object_renaming.
5644
5645 (temp_parse_space): New definition to hold entities that need
5646 only live until the next call to ada_parse.
5647 (string_to_operator): Rename fields of ada_opname_table entries.
5648
5649 (write_var_from_sym): Record block.
5650 (write_var_from_name): Minor reformatting.
5651 Make sure saved name is properly encoded in the case of multiple
5652 matches, and set its language to Ada.
5653 Update comment.
5654 Modify to indicate unresolved name as symbol in the UNRESOLVED
5655 namespace, allocated in temp_parse_space.
5656 (write_int): New function.
5657
5658 (write_object_renaming): Add max_depth parameter to limit
5659 chains of object renamings.
5660 Handle case where root of renaming expression is itself a renaming.
5661 Use temp_parse_space for temporary name buffer.
5662 Handle renamings to dereferenced pointers (___XEXA suffices).
5663
5664 (ada_parse, yyerror, string_to_operator,
5665 write_var_from_sym, write_var_from_name, write_attribute_call0,
5666 write_attribute_call1, write_attribute_calln,
5667 write_object_renaming): Protoize.
5668
5669 (_initialize_ada_exp): New function.
5670
5671 * ada-lang.c: Update copyright notice.
5672 General terminology change to conform to GNAT compiler usage:
5673 mangle => encode, demangle => decode
5674 Include gdb_obstack.h.
5675 Include gdb_regex.h
5676 Include frame.h
5677 Include hashtab.h
5678 Include completer.h
5679 Include gdb_stat.h
5680 Include block.h
5681 Include infcall.h
5682
5683 (ADA_RETAIN_DOTS): Make sure this is defined.
5684 (TRUNCATION_TOWARDS_ZERO): Define.
5685 (struct string_vector): Define.
5686 (unresolved_names): Remove definition.
5687 (xnew_string_vector): New function.
5688 (string_vector_append): New function.
5689 (extract_string): Make static.
5690 (ada_unqualified_name): New function.
5691 (add_angle_brackets): New function.
5692 (function_name_from_pc): New function.
5693 (place_on_stack): Rename to ensure_lval.
5694
5695 (ensure_lval): Renamed from place_on_stack.
5696 Make identity on lvals.
5697 Update comment.
5698 (is_nonfunction): New interface.
5699 Only symbols in LOC_CONST class can be enumerals.
5700 (fill_in_ada_prototype): Remove; now independent of language.
5701 (add_defn_to_vec): Add obstack and symtab arguments.
5702 Use obstack to hold collected definitions.
5703 (num_defns_collected): New function.
5704 (defns_collected): New function.
5705 (ada_resolve_subexp): Rename to resolve_subexp.
5706 (resolve_subexp): Renamed from ada_resolve_subexp.
5707 (ada_op_name): Return non-const result.
5708 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5709 other purposes.
5710
5711 (to_fixed_array_type): Add declaration.
5712 (coerce_unspec_val_to_type): Remove offset parameter.
5713 (find_sal_from_funcs_and_line): New interface.
5714 (find_line_in_linetable): Ditto.
5715
5716 (all_sals_for_line): Rename to ada_sals_for_line and make
5717 global.
5718 Add new parameter. When set, do not ask the user to choose the
5719 instance, but use the first one found instead.
5720 Use given line number in returned sals.
5721 Fix comment.
5722 Skip the prologue if funfirstline is set.
5723 Correct for memory leak when 0 lines found.
5724
5725 (value_pos_atr): Use pos_atr.
5726 (pos_atr): New function.
5727 (standard_lookup): Add block parameter.
5728
5729 (makeTimeStart): Remove declaration and uses.
5730 (makeTimeStop): Remove declaration and uses.
5731
5732 (ada_completer_word_break_characters): Allow for VMS.
5733 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5734 (raise_sym_name): New constant.
5735 (raise_unhandled_sym_name): New constant.
5736 (raise_assert_sym_name): New constant.
5737 (process_raise_exception_name): New constant.
5738 (longest_exception_template): New constant.
5739 (warning_limit): New variable to limit warnings during expression
5740 evaluation.
5741 (warnings_issued): New variable to keep track of warnings issued.
5742 (known_runtime_file_name_patterns): New constant.
5743 (known_auxiliary_function_name_patterns): New constant.
5744 (symbol_list_obstack): New variable.
5745
5746 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5747 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5748 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5749 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5750 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5751 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5752 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5753 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5754 and strcmp.
5755
5756 (ada_get_field_index): New function.
5757 (lim_warning): New function.
5758 (ada_translate_error_message): New function.
5759 (MAX_OF_SIZE): New function.
5760 (MIN_OF_SIZE): New function.
5761 (UMAX_OF_SIZE): New function.
5762 (UMIN_OF_SIZE): New function.
5763 (discrete_type_high_bound): New function.
5764 (discrete_type_low_bound): New function.
5765 (base_type): New function.
5766 (do_command): Remove.
5767
5768 (ada_update_initial_language): Use language_ada, not language_unknown.
5769 (ada_encode): Renamed from ada_mangle.
5770 Obey ADA_RETAIN_DOTS.
5771 (ada_decode): Renamed from ada_demangle.
5772 Update coding conventions.
5773 (decoded_names_store): New hash table.
5774 (ada_decode_symbol): New function.
5775 (ada_la_decode): New function.
5776
5777 (modify_general_field): Correct computations of offset and bit
5778 position.
5779 (desc_base_type): Handle ref types, too.
5780 (ada_is_direct_array_type): New function.
5781
5782 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5783 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5784 (ada_is_bogus_array_descriptor,ada_type_of_array,
5785 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5786 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5787 ada_is_array_descriptor_type.
5788
5789 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5790 (ada_is_packed_array_type): Handle pointers or
5791 references to packed arrays as well.
5792 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5793 (decode_packed_array_type): Search for the packed array type
5794 symbol in the currently selected block and associated
5795 superblocks too.
5796 Use lookup_symbol again.
5797
5798 (decode_packed_array): Handle pointers and references.
5799 Update call to coerce_unspec_val_to_type.
5800 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5801 (ada_value_primitive_packed_val): Improve comment.
5802
5803 (ada_index_type): Substitute int type for "undefined".
5804 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5805 ada_array_langth, ada_is_string_type): Use renamed
5806 ada_is_simple_array_type.
5807 (empty_array): New function.
5808
5809 (ada_resolve): Rename to resolve.
5810 (resolve): Make static.
5811 Call renamed resolve_subexp.
5812 Update comment.
5813 (ada_resolve_subexp): Rename to resolve_subexp.
5814 (resolve_subexp): Update comment.
5815 Decomment disabled code.
5816 Add LOC_COMPUTED* cases.
5817 Modify to use temporary struct symbols (marked as being in
5818 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5819 OP_UNRESOLVED_VALUE.
5820 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5821 Add OP_STRING case.
5822 Remove OP_ARRAY.
5823 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5824 Use new ada_lookup_symbol_list interface.
5825 Use new ada_resolve_function interface.
5826 Remove OP_TYPE case.
5827
5828 (ada_args_match): Idiot proof against null actuals.
5829 Use intermediate variables to clarify.
5830 (ada_resolve_function): Update comment and interface.
5831 (mangled_ordered_before): Rename to encoded_ordered_before and
5832 update comment.
5833 (sort_choices): Update comment and interface.
5834 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5835 (user_select_syms): New interface.
5836 Use new sort_choices interface.
5837 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5838 (possible_user_operator_p): Idiot-proof against null values.
5839 (ada_simple_renamed_entity): Don't make cleanup; rely on
5840 caller to free result string.
5841 Remove const from return type.
5842 (make_array_descriptor): Rename uses of place_on_stack to
5843 ensure_lval.
5844 Make sure that arrays are on stack.
5845
5846 (HASH_SIZE): Define.
5847 (struct cache_entry): Define.
5848 (cache_space): Define.
5849 (cache): Define.
5850 (clear_ada_sym_cache): New function.
5851 (find_entry): New function.
5852 (lookup_cached_symbol): New function.
5853 (defn_vector_size): Define.
5854 (cache_symbol): New function.
5855 (defn_symbols): Remove.
5856
5857 (standard_lookup): Use lookup_symbol_in_language to get effect of
5858 C lookup.
5859 Cache results.
5860
5861 (symbol_completion_match): New function.
5862 (symbol_completion_add): New function.
5863 (ada_make_symbol_completion_list): New function.
5864
5865 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5866 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5867 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5868 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5869
5870 (ada_lookup_simple_minsym): New function.
5871 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5872
5873 (add_symbols_from_enclosing_procs): New interface.
5874 Conditionalize more helpfully.
5875 Don't bother if program isn't running.
5876 Use new interface to get_frame_block.
5877 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5878
5879 (remove_extra_symbols): New interface.
5880 (xget_renaming_scope): New function.
5881 (is_package_name): New function.
5882 (renaming_is_visible): New function.
5883 (remove_out_of_scope_renamings): New function.
5884
5885 (ada_lookup_symbol_list): New interface.
5886 Properly reinitialize the symbol list obstack.
5887 Don't call add_symbols_from_enclosing_procs if we start from a
5888 static or global block.
5889 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5890 add_symbols_from_enclosing_procs.
5891 Add symtab data to cached entries.
5892 Handle symbols prefixed with
5893 "standard__" specially; strip prefix and don't look in local symbols.
5894 Do not include out of scope renaming symbols in list of
5895 symbols returned.
5896 Add const to block parameter.
5897 Move check for non-local, non-global symbols earlier.
5898 Remove timing stuff.
5899 (ada_lookup_symbol): New interface.
5900 Find symtab as well.
5901 (ada_lookup_symbol_nonlocal): New function.
5902
5903 (is_name_suffix): Enhance suffix detection to recognize
5904 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5905 (is_dot_digits_suffix): New function.
5906 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5907
5908 (ada_add_block_symbols): New interface. Use obstack to return results
5909 in a vector of struct ada_symbol_infos. Add symtab argument.
5910 Use new interface to add_defn_to_vec.
5911 Remove calls to fill_in_ada_prototype.
5912 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5913
5914 (ada_finish_decode_line_1): Add const qualification to local to fix
5915 warning.
5916 Start looking in static block for functions to avoid attempts
5917 to search frame chain for up-level variables.
5918 Adapt to new ada_sals_for_line interface.
5919 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5920 Handle quoting of the function name inside the spec string.
5921 Skip prologue when funfirstline is set and update the
5922 function documentation to that effect.
5923
5924 (debug_print_lines, debug_print_block, debug_print_blocks,
5925 debug_print_symtab): Remove.
5926
5927 (ada_main_name): New function.
5928 (ada_exception_breakpoint_type): New function.
5929 (is_known_support_routine): New function.
5930 (ada_find_printable_frame): Renamed from find_printable_frame and made
5931 global.
5932 Remove level parameter.
5933 Use new interface to select_frame.
5934
5935 (begin_command): Remove.
5936 (ada_adjust_exception_stop): New function.
5937 (ada_print_exception_stop): New function.
5938 (exception_name_from_cond): New function.
5939 (ada_report_exception_break): Replace disabled code with
5940 conditionalization on GNAT_GDB.
5941 Get the exception name from the condition string.
5942 Remove and move functionality into new functions
5943 ada_print_exception_breakpoint_task and
5944 ada_print_exception_breakpoint_nontask.
5945 (error_breakpoint_runtime_sym_not_found): New function.
5946 (is_runtime_sym_defined): New function.
5947 (ada_breakpoint_rewrite): Uncomment suppressed code.
5948 Use symbolic error-message and runtime-symbol names.
5949 Surround runtime symbol names in quotes.
5950 Allow non-specific breakpoints on exceptions and assertions before
5951 program starts.
5952
5953 (ada_is_tagged_type): Add parameter.
5954 (ada_is_tag_type): New function.
5955 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5956 (ada_variant_discrim_type): Ditto.
5957 (value_tag_from_contents_and_address): New function.
5958 (type_from_tag): New function.
5959 (struct tag_args): New structure used to communicate with
5960 ada_tag_name_1.
5961 (ada_tag_name_1): New function.
5962 (ada_tag_name): New function.
5963
5964 (ada_scan_number): Update comment.
5965 (find_struct_field): New function.
5966 (ada_search_struct_field): Make static.
5967 (ada_value_struct_elt): New version that returns references when
5968 given pointers or references to structs.
5969 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5970 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5971 interface.
5972 (ada_value_ind): Use new ada_to_fixed_value interface.
5973 (ada_coerce_ref): Ditto.
5974 (field_offset): Remove.
5975
5976 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5977 (ada_find_renaming_symbol): New function.
5978 (ada_prefer_type): Prefer named types over unnamed ones.
5979 (variant_field_index): New function.
5980 (contains_variant_part): Removed: subsumed by variant_field_index.
5981 (ada_template_to_fixed_record_type): New function, mostly from
5982 template_to_fixed_record_type.
5983 (template_to_fixed_record_type):
5984 Do not scan the type fields beyond the last one; prevents a
5985 potential SEGV.
5986 Handle case where variant field is listed BEFORE discriminant it
5987 depends on.
5988 Fix calculation of record length when bit length is
5989 not evenly divisible by char length.
5990 Move code to ada_template_to_fixed_record_type and call it.
5991
5992 (template_to_static_fixed_type): Revise comment.
5993 Modify to work on ordinary record types as well as templates,
5994 so as to handle fields that use ___XVE or ___XVU encodings.
5995 (to_record_with_fixed_variant_part): Fill out comment.
5996 Initialize C++ stuff in right type.
5997 Allow case where DVAL is null.
5998 Handle case where variant field is not last.
5999 Fix typo concerning record length.
6000 (to_fixed_record_type): Decomment disabled code.
6001 (to_fixed_record_type): Use variant_field_index instead of
6002 contains_variant_part.
6003 (to_fixed_variant_branch_type): Ditto.
6004 (to_fixed_array_type): Decomment disabled code.
6005 (ada_to_fixed_type): Convert tagged types to the specific type.
6006 Deactivate the size-check for array types in order to avoid
6007 some false size alarms.
6008 (to_static_fixed_type): Decomment disabled code.
6009 Modify to call template_to_static_fixed_type
6010 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6011 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6012 Remove valaddr argument, as it is never really used.
6013 (ada_to_fixed_value): Change interface to act on single struct value*
6014 operand.
6015 (adjust_pc_past_prologue): New function.
6016 (ada_attribute_name): Modify to take enum exp_opcode argument.
6017
6018 (ada_enum_name): Recognize new homonym-distinguishing convention.
6019 Adjust local variable's type to remove compiler warning.
6020 Fix a small problem in the part that unqualifies the enumeration name.
6021 (ada_value_binop): New function.
6022 (ada_value_equal): New function.
6023
6024 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6025 Don't give error message when not doing normal evaluation
6026 and a tagged type doesn't seem to contain a structure member.
6027 Give error message for packed arrays.
6028 For indexing arrays, handle pointers to packed arrays correctly.
6029 Handle case of 'first and 'last attributes of bare integral type
6030 without encoded subtype info.
6031 Remove some unnecessary casts.
6032 Fix uninitialized value of type in computing 'first, 'last, or 'length
6033 of array object.
6034 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6035 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6036 calls.
6037 Attributes are now exp_opcode values.
6038 Correct treatment of 'modulus.
6039 Better error message for taking 'length of wrong kind of type;
6040 improve comment.
6041 Change EVAL_NORMAL to noside for consistency.
6042 Use ada_value_binop for DIV, MOD, REM.
6043 Make special case out of array of length 0, since an argument
6044 of 0 upsets some platforms' malloc.
6045 Use OP_STRING instead of OP_ARRAY.
6046 For slice, add check that we have an array type before extracting
6047 a slice out of it. Avoids a SEGV.
6048 When evaluating an array slice, if the array type is a reference to
6049 an aligner type, then replace the aligner type by the actual type.
6050 Decomment disabled code.
6051 Remove some dead code.
6052 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6053 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6054 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6055 and UNOP_MBR to UNOP_IN_RANGE.
6056 If an array type has a parallel ___XVE type, then use it.
6057 Turn arrays into pointers for lvalue arrays.
6058 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6059 bounds error and handle 0-length slices.
6060 Use lim_warning.
6061 When selecting fields, apply ada_to_fixed_value (because the fields
6062 might have ___XVU or ___XVE encodings even if not dynamic.)
6063 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6064 (ada_is_system_address_type): New function.
6065
6066 (get_var_value): Use new interface to ada_lookup_symbol_list.
6067 (get_int_var_value): New interface.
6068 (to_fixed_range_type): Allow unknown bound, with warning.
6069 (ada_is_modular_type): Decomment disabled code.
6070 (ADA_OPERATORS): New definition.
6071 (ada_operator_length): New function.
6072 (ada_expr_op_name): New function.
6073 (ada_forward_operator_length): New function.
6074 (ada_dump_subexp_body): New function.
6075 (ada_print_subexp): New function.
6076 (ada_exp_descriptor): New constant.
6077 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6078 (ada_language_defn): Add ada_exp_descriptor entry.
6079 Change ada_parse => parse.
6080 Add post-parser entry.
6081 Use ada-specific non-local symbol lookup.
6082 Don't use C-style arrays.
6083 String lower-bound is 1.
6084 Decomment disabled code.
6085 (parse): New function.
6086 New fields ada_translate_error_message, ada_lookup_symbol,
6087 ada_lookup_minimal_symbol.
6088
6089 * ada-lang.h: Update copyright dates.
6090 Replace the mangle/demangle terminology throughout by the
6091 more appropriate encode/decode one.
6092 Include breakpoint.h.
6093 Forward declare struct partial_symbol, struct block.
6094 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6095 (EXTRACT_ADDRESS): Remove.
6096 (EXTRACT_INT): Remove.
6097 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6098 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6099 (MAX_RENAMING_CHAIN_LENGTH): Define.
6100 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6101
6102 (enum task_states): Remove.
6103 ada_task_states: Remove.
6104 (fat_string): Remove.
6105 (struct entry_call): Remove.
6106 (struct task_fields): Remove.
6107 (struct task_entry): Remove.
6108
6109 (struct ada_symbol_info): Define.
6110 (enum ada_attribute): Remove.
6111 (enum ada_operator): Define.
6112
6113 (ada_get_field_index): Declare.
6114 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6115 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6116 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6117 (ada_lookup_symbol_list): New interface.
6118 (ada_decode_symbol): Declare.
6119 (ada_decode): Declare.
6120 (ada_lookup_symbol): New interface.
6121 (ada_update_initial_language): Declare.
6122 (ada_lookup_simple_minsym): Declare.
6123 (user_select_syms): New interface.
6124 (ada_sals_for_line): Declare.
6125 (ada_is_tagged_type): New interface.
6126 (ada_tag_name): Declare.
6127 (ada_lookup_struct_elt_type): Remove declaration.
6128 (ada_search_struct_field): Remove declaration.
6129 (ada_attribute_name): New interface.
6130 (ada_is_system_address_type): Declare.
6131 (ada_to_fixed_value): Remove declaration.
6132 (ada_template_to_fixed_record_type_1): Declare.
6133 (get_int_var_value): New interface.
6134 (ada_find_any_symbol): Declare.
6135 (ada_find_renaming_symbol): Declare.
6136 (ada_mangle): Rename to ada_encode.
6137 (ada_simple_renamed_entity): Remove const.
6138 (ada_main_name): Declare.
6139 (get_current_task): Rename to ada_get_current_task.
6140 (get_entry_number): Remove declaration.
6141 (ada_report_exception_break): Remove declaration.
6142 (ada_print_exception_breakpoint_nontask): Declare.
6143 (ada_print_exception_breakpoint_task): Declare.
6144 (ada_find_printable_frame): Declare.
6145
6146 * ada-lex.l: Update copyright notices.
6147 Use xmalloc and xfree instead of malloc and free.
6148 Use new interface to name_lookup.
6149 Use new interface to
6150 ada_mangle=>ada_encode.
6151 Redo handling of '$...' variable to parallel current treatment
6152 in c-exp.y.
6153 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6154 digit_to_int, strtoulst, processInt, processReal, processId,
6155 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6156 yywrap): Protoize.
6157
6158 (processInt): Use cast to remove harmless warning.
6159 (processReal): Modify to get rid of compiler warning on scan formats.
6160
6161 (processId): Replace xmalloc with obstack_alloc for name and remove
6162 call to ada_name_string_cleanup.
6163 Remove obsolete disabled code.
6164 (name_lookup): Ditto.
6165 New interface.
6166 Use obsavestring on temp_parse_space instead of savestring
6167 on name, and remove call to ada_name_string_cleanup.
6168 Free string returned from ada_simple_renamed_entity.
6169 Use new interface to ada_lookup_symbol_list.
6170 Decomment disabled code.
6171 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6172 not types.
6173 When a type name lookup succeeds as a result of
6174 lookup_primitive_typename, check for regular type entry that has not
6175 yet been read in.
6176 Limit length of chain of renamed symbols we are willing to follow.
6177 Do not break names beginning with "standard__" into segments.
6178 (block_lookup): Use new interface to ada_lookup_symbol_list.
6179
6180 * ada-typeprint.c: Update copyright notice.
6181 (demangled_type_name): Rename to decoded_type_name.
6182 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6183 (print_range_bound): Correct handling of negative
6184 bounds that make the index type looked unsigned under STABS.
6185 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6186 (print_range_type_named): Use the builtin int type if no type
6187 corresponding to the given type name could be found.
6188 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6189 Add some bullet-proofing.
6190 (print_variant_clauses): Allow for variant branches with ___XVU
6191 encodings that are not dynamic fields.
6192 Use new interface to ada_is_tagged_type.
6193 (print_record_type): Allow for fields with ___XVE encodings that
6194 are not dynamic fields.
6195 Use new interface to ada_is_tagged_type.
6196 (ada_print_type): ada_is_array_descriptor =>
6197 ada_is_array_descriptor_type.
6198
6199 * ada-valprint.c: Update copyright notice.
6200 Include gdb_string.h
6201 Include infcall.h
6202 (ui_memcpy): New function.
6203 (ada_print_floating): New function.
6204 (ada_print_str): Order arguments correctly.
6205 Correct handling of empty arrays and arrays of 0-length items.
6206 ada_is_array_descriptor => ada_is_array_descriptor_type
6207 Print values of type System.Address in hexadecimal format.
6208 Use ada_print_floating to print floating-point numbers in Ada format.
6209 Print class tag values with type names.
6210 No longer print the address of reference values. Avoids
6211 a potential confusion.
6212 (ada_value_print): Stop printing the object type for reference
6213 values, but preserve that behavior for access types. Avoids
6214 a potential confusion.
6215 Simplify one conditional expression, as the first part is now
6216 necessarily true.
6217 ada_is_array_descriptor => ada_is_array_descriptor_type
6218 Add check for arrays for null records, and print them by hand.
6219
6220 2004-06-01 Jim Blandy <jimb@redhat.com>
6221
6222 * ppc-tdep.h: Delete unused 'regoff' member.
6223 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6224
6225 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6226
6227 Fix PR symtab/1661.
6228 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6229 (hpread_read_struct_type): Likewise.
6230
6231 2004-06-01 Andrew Cagney <cagney@gnu.org>
6232
6233 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6234 instead of xasprintf.
6235 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6236 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6237 (mi_cmd_data_list_register_names)
6238 (mi_cmd_data_list_changed_registers)
6239 (mi_cmd_data_list_register_values)
6240 (get_register, mi_cmd_data_write_register_values)
6241 (mi_cmd_data_write_register_values)
6242 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6243 (mi_cmd_target_download, mi_cmd_target_select)
6244 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6245 (mi_execute_cli_command, mi_execute_async_cli_command)
6246 (mi_execute_async_cli_command): Ditto.
6247 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6248 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6249
6250 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6251 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6252 error_last_message instead of mi_error_last_message.
6253 * mi/mi-main.c (mi_error_last_message): Delete function.
6254
6255 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6256 "invalid number of columns" error. Delete redundant "out of
6257 memory" check.
6258
6259 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6260
6261 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6262 (gregset_t, fpregset_t): Remove typedefs.
6263 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6264 (REG_OFFSET): Rename argument.
6265 (i386bsd_r_reg_offset): Rename from reg_offset.
6266 (REG_ADDR): Remove macro.
6267 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6268 functions.
6269 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6270 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6271 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6272 instead of supply_gregset.
6273 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6274 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6275 instead of fill_gregset.
6276 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6277
6278 * i386bsd-nat.c: Don't include "gregset.h".
6279 (supply_gregset, fill_gregset): Make static.
6280 (supply_fpregset, fill_fpregset): Remove.
6281 * Makefile.in (i386bsd-nat.o): Update dependencies.
6282
6283 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6284
6285 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6286 "gdb_assert.h". Con't include "gregset.h".
6287 (fbsd_make_corefile_notes): Use regset-based core file support
6288 instead off fill_gregset and fill_fpregset.
6289 * Makefile.in (fbsd-proc.o): Update dependencies.
6290
6291 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6292 instructions.
6293 (m88k_frame_prev_register): Simplify code a bit.
6294
6295 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6296 (amd64_collect_fpregset): New function.
6297 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6298
6299 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6300
6301 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6302 (i386_collect_gregset): New function.
6303 (i386_supply_fpregset): Adjust comment.
6304 (i386_collect_fpregset): New function.
6305 (i386_regset_from_core_section): Use i386_collect_gregset and
6306 i386_collect_fpregset.
6307
6308 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6309 handle VALUEP being null.
6310
6311 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6312
6313 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6314
6315 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6316
6317 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6318 assembler in OpenBSD 3.5-current.
6319 (amd64obsd_sigcontext_addr): Likewise.
6320
6321 2004-05-28 Jim Blandy <jimb@redhat.com>
6322
6323 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6324 register set, so our regcache isn't declared "legacy" and our E500
6325 pseudoregister read and write functions aren't ignored.
6326 (rs6000_register_byte, rs6000_register_raw_size,
6327 rs6000_register_virtual_type, rs6000_register_convertible,
6328 rs6000_register_convert_to_virtual,
6329 rs6000_register_convert_to_raw): Deleted.
6330 (rs6000_register_type, rs6000_convert_register_p,
6331 rs6000_register_to_value, rs6000_value_to_register): New
6332 functions.
6333 (rs6000_gdbarch_init): Don't register
6334 gdbarch_deprecated_register_size,
6335 gdbarch_deprecated_register_bytes,
6336 gdbarch_deprecated_register_byte,
6337 gdbarch_deprecated_register_raw_size,
6338 gdbarch_deprecated_register_virtual_type,
6339 gdbarch_deprecated_register_convertible,
6340 gdbarch_deprecated_register_convert_to_virtual, or
6341 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6342 register gdbarch_register_type, gdbarch_convert_register_p,
6343 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6344
6345 2004-05-26 Jim Blandy <jimb@redhat.com>
6346
6347 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6348 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6349 functions, updated to match the register numberings used in GCC.
6350 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6351 rs6000_dwarf2_reg_to_regnum as register number conversions
6352 functions for STABS and Dwarf2.
6353
6354 2004-05-26 Randolph Chung <tausq@debian.org>
6355
6356 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6357 in header file.
6358
6359 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6360
6361 * NEWS: Document new "start" command.
6362
6363 2004-05-25 Randolph Chung <tausq@debian.org>
6364
6365 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6366 hppa-linux.
6367
6368 2004-05-25 Randolph Chung <tausq@debian.org>
6369
6370 * hppa-hpux-tdep.c (offsetof): Define.
6371 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6372 (hppa32_hpux_frame_base_before_sigtramp)
6373 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6374 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6375 (hppa64_hpux_frame_base_before_sigtramp)
6376 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6377 functions.
6378 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6379 (hppa_hpux_sigtramp_frame_unwind_cache)
6380 (hppa_hpux_sigtramp_frame_this_id)
6381 (hppa_hpux_sigtramp_frame_prev_register)
6382 (hppa_hpux_sigtramp_frame_unwind)
6383 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6384 (hppa_hpux_init_abi): Register sigtramp unwinder.
6385 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6386
6387 2004-05-25 Randolph Chung <tausq@debian.org>
6388
6389 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6390 and multiple stack unwinds.
6391 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6392
6393 2004-05-25 Andrew Cagney <cagney@gnu.org>
6394
6395 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6396 * symfile-mem.h: Delete file.
6397 * symfile-mem.c: Do not include "symfile-mem.h".
6398 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6399 "struct bfd_section". When an error do not bother returning NULL.
6400 (add_symbol_file_from_memory_command): Use "struct bfd" and
6401 "struct bfd_section".
6402 * Makefile.in (symfile_mem_h): Delete.
6403 (symfile-mem.o): Update dependencies.
6404
6405 2004-05-25 Nick Roberts <nickrob@gnu.org>
6406
6407 * gdb-mi.el: New file.
6408
6409 2004-05-25 Andrew Cagney <cagney@gnu.org>
6410
6411 * inftarg.c: Include "observer.h".
6412 (child_attach, child_create_inferior): Notify inferior_created.
6413 * corelow.c: Include "observer.h".
6414 (core_open): Notify inferior_created.
6415 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6416
6417 2004-05-25 Andrew Cagney <cagney@gnu.org>
6418
6419 * target.h (struct target_ops): Add from_tty to
6420 to_create_inferior.
6421 (target_create_inferior, find_default_create_inferior): Update.
6422 * infcmd.c (run_command): Update.
6423 * wince.c (child_create_inferior): Update.
6424 * win32-nat.c (child_create_inferior): Update.
6425 * uw-thread.c (uw_thread_create_inferior): Update.
6426 * thread-db.c (thread_db_create_inferior): Update.
6427 * target.c (debug_to_create_inferior)
6428 (find_default_create_inferior): Update.
6429 (maybe_kill_then_create_inferior): Update.
6430 * sol-thread.c (sol_thread_create_inferior): Update.
6431 * remote.c (extended_remote_async_create_inferior)
6432 (extended_remote_create_inferior): Update.
6433 * remote-vx.c (vx_create_inferior): Update.
6434 * remote-st.c (st2000_create_inferior): Update.
6435 * remote-sim.c (gdbsim_create_inferior): Update.
6436 * remote-sds.c (sds_create_inferior): Update.
6437 * remote-rdp.c (remote_rdp_create_inferior): Update.
6438 * remote-rdi.c (arm_rdi_create_inferior): Update.
6439 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6440 * remote-e7000.c (e7000_create_inferior): Update.
6441 * procfs.c (procfs_create_inferior): Update.
6442 * ocd.c (ocd_create_inferior): Update.
6443 * ocd.h (ocd_create_inferior): Update.
6444 * nto-procfs.c (procfs_create_inferior): Update.
6445 * monitor.c (monitor_create_inferior): Update.
6446 * lin-lwp.c (lin_lwp_create_inferior): Update.
6447 * inftarg.c (child_create_inferior): Update.
6448 * hpux-thread.c (hpux_thread_create_inferior): Update.
6449 * gnu-nat.c (gnu_create_inferior): Update.
6450
6451 2004-05-25 Andrew Cagney <cagney@gnu.com>
6452
6453 * MAINTAINERS: Update e-mail address.
6454
6455 2004-05-24 Randolph Chung <tausq@debian.org>
6456
6457 * thread.c (info_threads_command, thread_apply_all_command)
6458 (thread_apply_command, thread_command, do_captured_thread_select):
6459 Remove HPUXHPPA-specific code.
6460
6461 2004-05-24 Randolph Chung <tausq@debian.org>
6462
6463 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6464 unused symbols.
6465 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6466 references.
6467
6468 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6469
6470 * infcmd.c (kill_if_already_running): New function, extracted
6471 from run_command().
6472 (run_command): Replace extracted code by call to
6473 kill_if_already_running().
6474 (start_command): New function.
6475 (_initialize_infcmd): Add "start" command.
6476
6477 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6478
6479 Add OpenBSD/m88k support.
6480 * NEWS (New native configurations): Mention OpenBSD/m88k.
6481 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6482 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6483 * Makefile.in (m88k_tdep_h): New variable.
6484 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6485 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6486 * configure.host: Add m88*-*-openbsd*.
6487 * configure.tgt: Add m88*-*-openbsd*.
6488
6489 2004-05-24 Jim Blandy <jimb@redhat.com>
6490
6491 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6492 to approve changes.
6493
6494 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6495
6496 * symtab.c (fixup_section): Search section table when lookup by
6497 name fails.
6498
6499 2004-05-24 Randolph Chung <tausq@debian.org>
6500
6501 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6502 be "small_struct".
6503
6504 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6505
6506 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6507 register number in regcache_raw_collect call.
6508 (m68kbsd_collect_fpregset): Likewise.
6509 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6510
6511 * regset.h (struct regset): Add back `regset' member.
6512
6513 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6514
6515 * configure.in: Check for td_pcb in `struct thread'.
6516 * configure, config.in: Regenerated.
6517
6518 * dpx2-nat.c: Remove file.
6519 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6520 (dpx2-nat.o): Remove dependencies.
6521
6522 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6523 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6524 (amd64obsd_supply_pcb): New function.
6525 (_initialize_amd64obsd_nat): Enable libkvm interface.
6526 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6527 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6528 (LOADLIBES): New variable.
6529
6530 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6531 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6532 (sparc32nbsd_supply_pcb): New function.
6533 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6534 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6535 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6536 (LOADLIBES): New variable.
6537
6538 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6539
6540 * bsd-kvm.c, bsd-kvm.h: New files.
6541 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6542 "bsd-kvm.h".
6543 (i386fbsd_supply_pcb): New function.
6544 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6545 (i386fbsd-nat.o): Update dependencies.
6546 (bsd_kvm_h): New variable.
6547 (bsd-kvm.o): New dependency.
6548 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6549 (LOADLIBES): New variable.
6550
6551 * regset.c: Tweak comment.
6552 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6553 macro.
6554 * regset.h: Update copyright year.
6555 (struct regset): Remove `descr' member, add `gdbarch' member.
6556 (regset_alloc): Adjust prototype and comment.
6557 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6558 (i386_supply_fpregset): Likewise.
6559 (i386_regset_from_core_section): Update call to regset_alloc.
6560 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6561 REGSET->arch.
6562 (i386obsd_aout_regset_from_core_section): Update call to
6563 regset_alloc.
6564 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6565 REGSET->arch.
6566 (i386nbsd_aout_regset_from_core_section): Update call to
6567 regset_alloc.
6568 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6569 REGSET->arch.
6570 (amd64_regset_from_core_section): Update call to regset_alloc.
6571 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6572 REGSET->arch.
6573 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6574 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6575 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6576 (sparc32nbsd_init_abi): Update call to regset_alloc.
6577 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6578 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6579 (sparc64obsd_init_abi): Update call to regset_alloc.
6580 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6581 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6582 (sparc64nbsd_init_abi): Update call to regset_alloc.
6583 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6584 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6585 (sparc64fbsd_init_abi): Update call to regset_alloc.
6586
6587 2004-05-22 Jim Blandy <jimb@redhat.com>
6588
6589 * ppc-tdep.h (spe_register_p): New declaration.
6590 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6591 ppc_spefscr_regnum.
6592 * rs6000-tdep.c (spe_register_p): New function.
6593 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6594 spefscr.
6595 (rs6000_gdbarch_init): Initialize the new members of the tdep
6596 structure.
6597
6598 2004-05-21 Jim Blandy <jimb@redhat.com>
6599
6600 * ppc-linux-nat.c (fetch_register): Move code back to be next
6601 to the comment that describes it. (Moved code, instead of
6602 comment, for symmetry with store_register.)
6603
6604 Allocate regset structures in the gdbarch's obstack, not using
6605 xmalloc.
6606 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6607 Add 'arch' argument. Allocate the regset on arch's obstack, not
6608 using xmalloc.
6609 * regset.h (regset_alloc): Update declaration.
6610 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6611 gdbarch argument.
6612 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6613 * i386-tdep.c (i386_regset_from_core_section): Same.
6614 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6615 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6616 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6617 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6618 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6619 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6620
6621 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6622
6623 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6624
6625 2004-05-21 Jim Blandy <jimb@redhat.com>
6626
6627 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6628 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6629
6630 2004-05-20 Jim Blandy <jimb@redhat.com>
6631
6632 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6633
6634 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6635
6636 * regset.h: Make prototype const-correct.
6637 * regset.c (regset_xmalloc): Make const-correct.
6638
6639 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6640
6641 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6642 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6643 (symbol_search_name): Declare.
6644
6645 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6646 (iter_name_next_hashed): Ditto.
6647 (iter_name_next_linear): Ditto.
6648 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6649
6650 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6651 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6652 (symbol_search_name): New function.
6653
6654 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6655
6656 * minsyms.c (build_minimal_symbol_hash_tables): Change
6657 test for adding to demangled hash table to check for difference
6658 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6659
6660 2004-05-19 Jim Blandy <jimb@redhat.com>
6661
6662 Use a constructor function to create regset structures.
6663 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6664 (struct regset): Use supply_regset_ftype. Add new
6665 'collect_regset' member.
6666 (regset_xmalloc): New declaration.
6667 * regset.c: New file.
6668 * am64-tdep.c (amd64_regset_from_core_section): Use
6669 regset_xmalloc to construct regset structures.
6670 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6671 * i386-tdep.c (i386_regset_from_core_section): Same.
6672 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6673 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6674 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6675 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6676 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6677 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6678 * Makefile.in (COMMON_OBS): Add regset.o.
6679 (regset.o): New rule.
6680
6681 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6682
6683 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6684 and pthread_cond_wait.c.
6685
6686 2004-05-18 Jim Blandy <jimb@redhat.com>
6687
6688 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6689 before the mach-specific switch, and then let the individual cases
6690 override the defaults, rather than leaving them uninitialized
6691 until the switch and then setting them in each case.
6692
6693 2004-05-18 Randolph Chung <tausq@debian.org>
6694
6695 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6696 millicode functions.
6697
6698 2004-05-18 Randolph Chung <tausq@debian.org>
6699
6700 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6701 references to dld_flags_buffer consistent.
6702
6703 2004-05-18 Randolph Chung <tausq@debian.org>
6704
6705 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6706 it for unwinding the stack.
6707
6708 2004-05-18 Randolph Chung <tausq@debian.org>
6709
6710 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6711 Undefine these so we can overide them using gdbarch.
6712
6713 2004-05-18 Randolph Chung <tausq@debian.org>
6714
6715 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6716 handling for 64-bit HPUX (elf).
6717
6718 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6719
6720 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6721 constants.
6722 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6723 * ia64-tdep.c (examine_prologue): Likewise.
6724 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6725 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6726
6727 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6728
6729 * vax-tdep.c (vax_return_value): Implement
6730 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6731
6732 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6733
6734 * vax-tdep.c (vax_return_value): Fix typo.
6735
6736 2004-05-17 Andrew Cagney <cagney@redhat.com>
6737
6738 * MAINTAINERS: Mark Salter was also responsible for
6739 testsuite/config/
6740
6741 * NEWS: Mention signal fixes.
6742
6743 2004-05-17 Randolph Chung <tausq@debian.org>
6744
6745 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6746 check to see if we are unwinding an export stub. Export stubs clobber
6747 the %rp in the call path and stores the original rp in a stack slot.
6748
6749 2004-05-17 Jim Blandy <jimb@redhat.com>
6750
6751 * MAINTAINERS: Update address for J.T. Conklin.
6752
6753 2004-05-17 Randolph Chung <tausq@debian.org>
6754
6755 * hppa-tdep.c: Remove superfluous #include's.
6756 * Makefile.in (hppa-tdep.o): Update dependencies.
6757
6758 2004-05-17 Randolph Chung <tausq@debian.org>
6759
6760 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6761 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6762 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6763 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6764 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6765 Remove static function declarations.
6766
6767 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6768
6769 * alphabsd-nat.c: Update copyright year.
6770 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6771
6772 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6773 and M68K_A2_REGNUM.
6774
6775 * m68k-tdep.c (m68k_svr4_return_value): Implement
6776 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6777
6778 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6779
6780 * sol-thread.c Update copyright year. Fix various coding
6781 standards violations. Tweak a few comments.
6782 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6783 Delete prototypes.
6784
6785 2004-05-15 Randolph Chung <tausq@debian.org>
6786
6787 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6788 as pointer instead of array reference since HPUX compiler does
6789 not accept unsized array arguments.
6790 * somsolib.c (dld_flags_buffer): Use constant array size.
6791
6792 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6793
6794 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6795 offset with decimal offset.
6796 (amd64obsd_sigcontext_addr): Return correct address for entire
6797 signal trampoline.
6798
6799 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6800 instead of get_frame_base.
6801
6802 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6803 (fill_gregset): Use regcache_raw_collect.
6804
6805 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6806 ppcobsd-tdep.c.
6807
6808 * config/sparc/tm-nbsd64.h: Remove file.
6809 * config/tm-sunos.h: Remove file.
6810
6811 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6812
6813 * rs6000-tdep.c (store_param_on_stack_p): New function,
6814 an improved version of some code extracted from skip_prologue().
6815 (skip_prologue): Use store_param_on_stack_p() to detect
6816 instructions saving a parameter on the stack. Detect when r0
6817 is used to save a parameter.
6818 Do not mark "li rx, SIMM" instructions as part of the prologue,
6819 unless the following instruction is also part of the prologue.
6820
6821 2004-05-14 Andrew Cagney <cagney@redhat.com>
6822
6823 * infrun.c (handle_inferior_event): Simplify
6824 STEP_OVER_UNDEBUGGABLE.
6825
6826 * infrun.c (handle_step_into_function): Delete function.
6827 (handle_inferior_event): Inline calls to
6828 handle_step_into_function.
6829
6830 2004-05-14 Jerome Guitton <guitton@gnat.com>
6831
6832 * rs6000-nat.c: Fix a comment.
6833
6834 2004-05-12 David Anderson <davea@sgi.com>
6835
6836 Committed by Jim Blandy <jimb@redhat.com>:
6837 * regcache.c (struct regcache_descr): fix comment spelling.
6838
6839 2004-05-13 J. Brobecker <brobecker@gnat.com>
6840
6841 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6842 Fixes a link link failure.
6843
6844 2004-05-13 J. Brobecker <brobecker@gnat.com>
6845
6846 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6847 error that was causing the build to fail.
6848
6849 2004-05-13 J. Brobecker <brobecker@gnat.com>
6850
6851 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6852 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6853
6854 2004-05-13 Andrew Cagney <cagney@redhat.com>
6855
6856 * infrun.c (handle_inferior_event): Check for
6857 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6858 calls. Update comments.
6859
6860 2004-05-13 Jim Blandy <jimb@redhat.com>
6861
6862 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6863 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6864 (store_regs_user_thread, store_regs_kernel_thread): Use
6865 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6866 * ppc-linux-nat.c (fill_gregset): Same.
6867 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6868 (ppc_linux_sigtramp_cache): Same.
6869 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6870 (ppcnbsd_sigtramp_cache_init): Same.
6871 * rs6000-nat.c (fetch_core_registers): Same.
6872 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6873 (rs6000_frame_cache): Same.
6874
6875 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6876 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6877 of assuming that the gprs are numbered starting with zero.
6878 * ppc-linux-nat.c (fill_gregset): Same.
6879 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6880 * ppcnbsd-nat.c (getregs_supplies): Same.
6881 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6882 * rs6000-nat.c (fetch_core_registers): Same.
6883 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6884
6885 2004-05-07 Michael Snyder <msnyder@redhat.com>
6886
6887 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6888 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6889
6890 2004-05-13 Andrew Cagney <cagney@redhat.com>
6891
6892 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6893
6894 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6895
6896 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6897 base_address for shared libraries.
6898
6899 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6900
6901 * MAINTAINERS (write after approval): Add myself.
6902
6903 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6904
6905 * breakpoint.c (bpstat_stop_status): Add new argument
6906 STOPPED_BY_WATCHPOINT. Use it instead of testing
6907 target_stopped_data_address agaist 0 to check whether
6908 or not we stopped due to a hardware watchpoint.
6909 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6910 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6911 with new argument.
6912
6913 2004-05-12 Jim Blandy <jimb@redhat.com>
6914
6915 * configure.in: When checking whether we should use the -bbigtoc
6916 option, don't forget to restore the original value of LDFLAGS.
6917 * configure: Regenerated.
6918
6919 2004-05-12 Andrew Cagney <cagney@redhat.com>
6920
6921 * thread.c (load_infrun_state): Delete step_sp.
6922 * infrun.c (context_switch): Ditto.
6923 * inferior.h (step_sp): Ditto.
6924 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6925 * gdbthread.h (struct thread_info, save_infrun_state)
6926 (restore_infrun_state): Ditto.
6927
6928 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6929
6930 * MAINTAINERS (write after approval): Add myself.
6931
6932 2004-05-12 Andrew Cagney <cagney@redhat.com>
6933
6934 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6935 eliminate reference to step_sp.
6936 (struct execution_control_state, init_execution_control_state)
6937 (handle_inferior_event, keep_going): Delete update_step_sp and
6938 step_sp.
6939 * infcmd.c (step_sp): Note that variable is unused.
6940
6941 2004-05-11 Andrew Cagney <cagney@redhat.com>
6942
6943 * infrun.c (step_over_function): Delete function.
6944 (handle_step_into_function): Use insert_step_resume_breakpoint.
6945 (insert_step_resume_breakpoint): Fix assertion.
6946
6947 2004-05-11 Nick Roberts <nickrob@gnu.org>
6948
6949 * utils.c (defaulted_query): Just use the normal query input type
6950 when printing the annotations.
6951
6952 2004-05-11 Andrew Cagney <cagney@redhat.com>
6953
6954 * infrun.c (handle_inferior_event): Simplify code handling
6955 step-into or return-from a signal trampoline.
6956
6957 2004-05-11 Andrew Cagney <cagney@redhat.com>
6958
6959 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6960 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6961
6962 2004-05-10 Jim Blandy <jimb@redhat.com>
6963
6964 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6965 with a call to internal_error.
6966
6967 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6968 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6969 processor variant lacks those registers.
6970 (ppc_floating_point_unit_p): Change description to make it clear
6971 that this returns info about the ISA, not the ABI.
6972 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6973 return true or false by checking tdep->ppc_fp0_regnum and
6974 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6975 arch/mach switching done in rs6000_gdbarch_init; it's better to
6976 keep that logic there, and just check the results here.
6977 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6978 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6979 floating-point registers.
6980 (ppc_supply_fpregset, ppc_collect_fpregset)
6981 (rs6000_push_dummy_call, rs6000_extract_return_value)
6982 (rs6000_store_return_value): Assert that we have floating-point
6983 registers.
6984 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6985 (rs6000_frame_cache): Don't note the locations at which
6986 floating-point registers were saved if we have no fprs.
6987 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6988 registers.
6989 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6990 (store_regs_user_thread, store_regs_kernel_thread): Only call
6991 supply_fprs / fill_fprs if we actually have floating-point
6992 registers.
6993 (special_register_p): Check ppc_fpscr_regnum before matching
6994 against it.
6995 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6996 supply / collect fpscr if we don't have it.
6997 * ppc-bdm.c: #include "gdb_assert.h".
6998 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6999 have floating-point registers, since I can't test this code on
7000 FP-free systems to adapt it.
7001 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7002 fpscr and floating point register numbers if they don't exist.
7003 (fetch_register): Assert that we have floating-point registers
7004 before we reach the code that handles them.
7005 (store_register): Same. And use tdep instead of calling
7006 gdbarch_tdep again.
7007 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7008 don't have them.
7009 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7010 fprs and fpscr if we don't have them.
7011 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7012 don't have them.
7013 * ppcnbsd-nat.c: #include "gdb_assert.h".
7014 (getfpregs_supplies): Assert that we have floating-point registers.
7015 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7016 * ppcobsd-tdep.c: #include "gdb_assert.h".
7017 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7018 have floating-point registers.
7019 * rs6000-nat.c (regmap): Don't match against the fpscr and
7020 floating point register numbers if they don't exist.
7021 (fetch_inferior_registers, store_inferior_registers,
7022 fetch_core_registers): Only fetch / store / supply the
7023 floating-point registers and the fpscr if we have them.
7024 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7025 (ppcobsd-tdep.o): Update dependencies.
7026
7027 2004-05-10 Andrew Cagney <cagney@redhat.com>
7028
7029 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7030 (context_switch): Do not switch through_sigtramp_breakpoint.
7031 * gdbthread.h (save_infrun_state, load_infrun_state)
7032 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7033 and structure member.
7034 * thread.c (load_infrun_state, save_infrun_state): Update.
7035
7036 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7037
7038 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7039
7040 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7041
7042 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7043 throughout.
7044 * aclocal.m4: Regenerate.
7045
7046 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7047
7048 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7049
7050 2004-05-10 Andrew Cagney <cagney@redhat.com>
7051
7052 * infrun.c (check_sigtramp2): Delete function.
7053 (handle_inferior_event): When single stepping, and taking a
7054 signal, set a breakpoint at the signal return address. Delete
7055 redundant calls to check_sigtramp2.
7056 (insert_step_resume_breakpoint): New function.
7057 (through_sigtramp_breakpoint, handle_inferior_event)
7058 (follow_exec, wait_for_inferior, fetch_inferior_event)
7059 (currently_stepping, keep_going): Delete most uses of
7060 through_sigtramp_breakpoint, not that it should be deleted.
7061 (delete_breakpoint_current_contents): Delete function.
7062
7063 2004-05-10 Randolph Chung <tausq@debian.org>
7064
7065 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7066 target.
7067 * config/pa/tm-linux.h: New file.
7068
7069 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7070
7071 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7072 of prefixes. Don't print the prefix twice in the CLI.
7073
7074 2004-05-10 Jim Blandy <jimb@redhat.com>
7075
7076 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7077 collect all the gprs.
7078
7079 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7080 loop collecting gprs.
7081
7082 2004-05-09 Andrew Cagney <cagney@redhat.com>
7083
7084 * remote-vx.c (net_step): Delete step-range code.
7085 * remote.c (remote_resume, init_all_packet_configs)
7086 (set_remote_protocol_E_packet_cmd)
7087 (show_remote_protocol_E_packet_cmd)
7088 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7089 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7090 (show_remote_protocol_e_packet_cmd): Ditto.
7091
7092 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7093
7094 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7095
7096 * hppa-tdep.h: Update copyright year.
7097 (struct trad_frame_saved_reg): Add opaque declaration.
7098
7099 * amd64-tdep.c (amd64_return_value): Implement
7100 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7101
7102 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7103 (m68k_value_to_register): New functions.
7104 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7105 value_to_register.
7106
7107 * defs.h (enum return_value_convention): Add
7108 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7109 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7110 * infcmd.c (legacy_return_value): New function.
7111 (print_return_value): Rwerite to implement
7112 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7113 * values.c (using_struct_return): Check for inequality to
7114 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7115 RETURN_VALUE_STRUCT_CONVENTION.
7116 * i386-tdep.c (i386_return_value): Implement
7117 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7118
7119 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7120 include "symtab.h", "opcode/vax.h" and "inferior.h".
7121 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7122 to read_memory_unsigned_integer.
7123 (vax_gdbarch_init): Reorder.
7124 (_initialize_vax_tdep): Spell out prototype.
7125 * Makefile.in (vax-tdep.o): Update dependencies.
7126
7127 2004-05-08 Andrew Cagney <cagney@redhat.com>
7128
7129 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7130 * target.c (target_detach, target_disconnect): Ditto.
7131
7132 * infcall.c (call_function_by_hand): When no
7133 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7134 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7135 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7136 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7138
7139 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7140 * gdbarch.h, gdbarch.c: Re-generate.
7141 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7142 deprecated_fix_call_dummy.
7143 * v850-tdep.c (v850_gdbarch_init): Ditto.
7144 * infcall.c (call_function_by_hand): Do not call
7145 DEPRECATED_FIX_CALL_DUMMY.
7146
7147 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7148 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7149 * gdbarch.h, gdbarch.c: Re-generate.
7150 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7151 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7152 deprecated_sizeof_call_dummy_words.
7153 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7155 * v850-tdep.c (v850_gdbarch_init): Ditto.
7156 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7157 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7158 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7160 * arch-utils.h (legacy_call_dummy_words)
7161 (legacy_sizeof_call_dummy_words): Delete declarations.
7162 * arch-utils.c (legacy_call_dummy_words)
7163 (legacy_sizeof_call_dummy_words): Delete variables.
7164
7165 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7166 * gdbarch.h, gdbarch.c: Re-generate.
7167 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7168 * infcall.c (call_function_by_hand): Eliminate call to
7169 DEPRECATED_PUSH_DUMMY_FRAME.
7170 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7171 push_dummy_frame.
7172 (ns32k_push_dummy_frame): Delete function.
7173
7174 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7175 deprecated_call_dummy_breakpoint_offset or
7176 deprecated_call_dummy_start_offset.
7177 * dummy-frame.c, arm-tdep.c: Update comments.
7178 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7179 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7180 * gdbarch.h, gdbarch.c: Re-generate.
7181
7182 * infcall.c (legacy_push_dummy_code): Delete function.
7183 (push_dummy_code): Delete call.
7184
7185 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7186 * gdbarch.h, gdbarch.c: Re-generate.
7187 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7188 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7189 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7190 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7191
7192 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7193 (struct frame_info): Delete opaque declaration.
7194 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7195 * frame.c (get_frame_type): Delete call.
7196
7197 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7198 pc_in_call_dummy.
7199 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7200 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7201
7202 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7203
7204 * alphanbsd-tdep.c: Include "gdb_string.h".
7205 * armnbsd-tdep.c: Update copyright year.
7206 Include "gdb_string.h".
7207 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7208 dependencies.
7209
7210 * delta68-nat.c: Remove file.
7211 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7212 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7213 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7214 (delta68-nat.o): Remove dependency.
7215
7216 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7217 function.
7218 (m68k_gdbarch_init): Don't set
7219 deprecated_frameless_function_invocation.
7220
7221 2004-05-07 Randolph Chung <tausq@debian.org>
7222
7223 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7224 read_memory_nobpt for code reading when doing frame unwinding.
7225 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7226
7227 2004-05-07 Randolph Chung <tausq@debian.org>
7228
7229 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7230 instead of sp, handle sigaltstack case.
7231 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7232 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7233 signal handler and not that of the caller.
7234 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7235 hppa_linux_sigtramp_find_sigcontext.
7236
7237 2004-05-07 Randolph Chung <tausq@debian.org>
7238
7239 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7240 hppa-linux-nat.c.
7241 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7242 * hppa-linux-nat.c (fetch_register, store_register): Define.
7243 (fetch_inferior_registers, store_inferior_registers): Define.
7244 (supply_gregset): Add comment and clean up some unneeded code.
7245 (fill_gregset): Add comment and fix so that it saves registers in
7246 the right place in the gregset.
7247 (fill_fpregset): Fix buffer overrun problem.
7248 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7249
7250 2004-05-07 Randolph Chung <tausq@debian.org>
7251
7252 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7253 do common handling of the pcoqt register.
7254 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7255 to use helper function.
7256 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7257 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7258 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7259 generic fallback unwinder when all else fails.
7260 (hppa_gdbarch_init): Add fallback sniffer.
7261 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7262 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7263 to use helper function.
7264
7265 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7266
7267 * config/djgpp/fnchange.lst: Add translation rules for
7268 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7269
7270 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7271
7272 * frame.c (get_prev_frame_1): Work around GCC bug.
7273 * frame.h: Add comment about GCC bug.
7274
7275 2004-05-07 Andrew Cagney <cagney@redhat.com>
7276
7277 * observer.c: Include "commands.h" and "gdbcmd.h".
7278 (observer_debug, _initialize_observer): Add the
7279 command "set/show debug observer".
7280 * observer.sh: When observer debugging, log notify calls.
7281 * Makefile.in (observer.o): Update dependencies.
7282
7283 2004-05-07 Jason Molenda (jmolenda@apple.com)
7284
7285 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7286
7287 2004-05-07 Jim Blandy <jimb@redhat.com>
7288
7289 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7290 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7291 to recognize gpr regnums, instead of assuming that
7292 tdep->ppc_fp0_regnum marks the end of the general-purpose
7293 registers.
7294
7295 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7296 the given architecture has floating-point registers.
7297
7298 2004-05-07 Andrew Cagney <cagney@redhat.com>
7299
7300 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7301 macro defined to 1.
7302 * gdbarch.h, gdbarch.c: Re-generate.
7303 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7304 deprecated_use_generic_dummy_frames.
7305
7306 2004-05-07 Brian Ford <ford@vss.fsi.com>
7307
7308 * NEWS: Mention Cygwin DWARF 2 support.
7309
7310 2004-05-07 Andrew Cagney <cagney@redhat.com>
7311
7312 * objfiles.h (struct entry_info): Delete unused fields
7313 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7314 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7315 * mipsread.c (mipscoff_symfile_read): Update.
7316 * mdebugread.c (parse_partial_symbols): Update.
7317 * dwarfread.c (read_file_scope): Update.
7318 * dwarf2read.c (read_file_scope): Update.
7319 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7320 * coffread.c (complete_symtab): Update.
7321
7322 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7323
7324 * infcall.c (_initialize_infcall): Fix typo.
7325
7326 2004-05-07 Andrew Cagney <cagney@redhat.com>
7327
7328 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7329 * command.h (add_setshow_zinteger_cmd): Declare.
7330
7331 2004-05-06 Randolph Chung <tausq@debian.org>
7332
7333 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7334 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7335 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7336 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7337 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7338 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7339 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7340 definitions ...
7341 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7342 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7343 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7344 (hppa64_hpux_frame_find_saved_regs_in_sig)
7345 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7346 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7347 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7348 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7349 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7350 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7351 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7352 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7353 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7354 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7355 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7356 (hppa32_register_type, hppa_cannot_store_register)
7357 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7358 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7359 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7360 * pa64solib.c (pa64_solib_have_load_event)
7361 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7362 (pa64_solib_unloaded_library_pathname): Likewise.
7363 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7364 (som_solib_library_pathname): Likewise.
7365
7366 2004-05-05 Jim Ingham <jingham@apple.com>
7367
7368 * breakpoint.c (create_breakpoints): Copy the ignore count and
7369 thread id over from the pended breakpoint to the actual
7370 breakpoint.
7371
7372 2004-05-05 Andrew Cagney <cagney@redhat.com>
7373
7374 * gdbarch.sh (PARM_BOUNDARY): Delete.
7375 gdbarch.h, gdbarch.c: Re-generate.
7376 * valops.c (PARM_BOUNDARY): Delete macro.
7377 (value_push): Delete PARM_BOUNDARY code.
7378 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7379
7380 2004-05-04 Jim Blandy <jimb@redhat.com>
7381
7382 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7383 Don't assume that the gprs, fprs, and UISA sprs are
7384 contiguous, start at register number zero, and end with fpscr.
7385 Instead, use the numbers from the tdep structure.
7386
7387 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7388 should no longer be used in code specific to the RS6000 and its
7389 derivatives.
7390 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7391 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7392 tdep->ppc_fp0_regnum.
7393 (ppc_supply_fpregset, ppc_collect_fpregset)
7394 (rs6000_push_dummy_call, rs6000_extract_return_value)
7395 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7396 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7397 FP0_REGNUM.
7398 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7399 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7400 Same.
7401 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7402 bdm_ppc_store_registers): Same.
7403 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7404 (store_register, fill_fpregset): Same.
7405 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7406 (ppc_linux_supply_fpregset): Same.
7407 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7408 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7409 Same.
7410 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7411 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7412 ppc64_sysv_abi_return_value): Same.
7413 * rs6000-nat.c (regmap, fetch_inferior_registers)
7414 (store_inferior_registers, fetch_core_registers): Same.
7415
7416 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7417
7418 * m68knbsd-nat.c: Remove file.
7419 * m68knbsd-tdep.c: Remove file.
7420 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7421 dependencies.
7422 * configure.host: Add m68k-*-netbsdelf*.
7423 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7424 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7425 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7426 (XM_FILE): Remove.
7427 * config/m68k/nbsdelf.mh: New file.
7428 * config/m68k/nbsd.mt: New file.
7429 * config/m68k/nbsdaout.mt: Remove file.
7430 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7431 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7432 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7433 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7434 (use_struct_convention): Remove prototype.
7435 (USE_STRUCT_CONVENTION): Remove define.
7436 * config/m68k/xm-nbsd.h: Remove file.
7437
7438 2004-05-04 Michael Snyder <msnyder@redhat.com>
7439
7440 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7441 reg_struct_return method (as gcc usually does for cross targets).
7442
7443 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7444
7445 Committed by Andrew Cagney.
7446 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7447 alignment padding when accessing ucontext struct members.
7448
7449 2004-05-04 Jim Blandy <jimb@redhat.com>
7450
7451 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7452 'ppc_gplast_regnum' member.
7453 (ppc_num_gprs): New enum constant.
7454 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7455 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7456 * rs6000-nat.c (regmap, fetch_inferior_registers,
7457 store_inferior_registers): Same.
7458 * rs6000-tdep.c (e500_pseudo_register_read)
7459 (e500_pseudo_register_write): Same.
7460 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7461
7462 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7463 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7464 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7465 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7466 FPLAST_REGNUM.
7467 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7468 Same.
7469 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7470 * rs6000-nat.c (regmap, fetch_inferior_registers)
7471 (store_inferior_registers): Same.
7472
7473 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7474 with FPLAST_REGNUM.
7475
7476 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7477
7478 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7479 failure detected by recent versions of GCC.
7480 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7481 to be consistent with the usage in dwarf2_create_include_psymtab.
7482
7483 2004-05-03 Michael Snyder <msnyder@redhat.com>
7484
7485 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7486 (heuristic_proc_start): Whitespace cleanup.
7487
7488 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7489
7490 * sun3-nat.c: Remove file.
7491 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7492 dependencies.
7493 (ALLDEPFILES): Remove sun3-nat.c.
7494 (sun3-nat.o): Remove dependencies.
7495
7496 * i386-interix-nat.c, i386-interix-tdep.c,
7497 config/i386/nm-interix.h, config/i386/interix.mh,
7498 config/i386/interix.mt: Remove files.
7499 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7500 dependencies.
7501
7502 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7503
7504 * m68k-tdep.h (struct gdbarch_tdep): Add member
7505 struct_value_regnum.
7506 (m68k_svr4_init_abi): New prototype.
7507 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7508 different calling conventions.
7509 (m68k_extract_return_value): Remove code dealing with single-field
7510 structs.
7511 (m68k_store_return_value): Remove code dealing with single-field
7512 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7513 (m68k_extract_struct_value_address): Remove function.
7514 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7515 (m68k_reg_struct_return_p, m68k_return_value)
7516 (m68k_svr4_return_value): New functions.
7517 (m68k_use_struct_convention): Remove function.
7518 (m68k_push_dummy_call): Use new struct_value_regnum member of
7519 `struct gdbarch_tdep' instead of hardcoded register number to
7520 store STRUCT_ADDR.
7521 (m68k_svr4_init_abi): New function.
7522 (m68k_gdbarch_init): Don't set extract_return_value,
7523 store_return_values, deprecated_extract_struct_value_address and
7524 use_struct_convention. Set return_value instead. Initialize new
7525 struct_value_regnum member of `struct gdbarch_tdep'.
7526 * m68klinux-tdep.c: Update copyright year.
7527 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7528 (m68k_linux_extract_struct_value_address): Remove function.
7529 (m68k_linux_init_abi): Don't set extract_return_value,
7530 store_return_values, deprecated_extract_struct_value_address and
7531 use_struct_convention. Call m68k_svr4_init_abi but override the
7532 new struct_value_regnum member of `struct gdbarch_tdep'.
7533 * Makefile.in (m68k-tdep.o): Update dependencies.
7534
7535 2004-05-03 J. Brobecker <brobecker@gnat.com>
7536
7537 * dwarf2read.c (line_header): Add new included_p field in
7538 field file_names.
7539 (partial_die_info): New field has_stmt_list. New field line_offset.
7540 (dwarf2_create_include_psymtab): New function.
7541 (dwarf2_build_include_psymtabs): New function.
7542 (add_file_name): Add forward declaration. Initialize new field.
7543 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7544 to be able to determine the list of files included by the
7545 given unit, and build their associated psymtabs.
7546 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7547 files as well.
7548 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7549 (read_file_scope): Update call to dwarf_decode_lines.
7550 (read_partial_die): Handle DW_AT_stmt_list attributes.
7551
7552 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7553
7554 Unfix PR gdb/1626.
7555 * configure.in: Revert special case for osf5.*.
7556 * configure: Regenerate.
7557
7558 2004-05-02 Jim Blandy <jimb@redhat.com>
7559
7560 Move the symbol-file-from-memory functions into their own file.
7561 * symfile-mem.c, symfile-mem.h: New files.
7562 * symfile.c (symbol_file_add_from_bfd): New function.
7563 (symbol_file_add): Call symbol_file_add_from_bfd.
7564 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7565 Moved to symfile-mem.c.
7566 (_initialize_symfile): Move definition of
7567 add-symbol-file-from-memory command to symfile-mem.c.
7568 * symfile.h (symbol_file_add_from_bfd): New declaration.
7569 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7570 * config/powerpc/linux.mt (TDEPFILES): Same.
7571 * Makefile.in (SFILES): Add symfile-mem.c.
7572 (symfile_mem_h): New variable.
7573 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7574 (symfile-mem.o): New rule.
7575
7576 2004-05-01 Andrew Cagney <cagney@redhat.com>
7577
7578 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7579 frame_find_by_id instead of frame_relative_level.
7580 (do_enable_breakpoint): Ditto.
7581 * thread.c: Update copyright.
7582 (info_threads_command): Ditto, simplify.
7583
7584 * frame.c (deprecated_generic_get_saved_register): Delete
7585 function, moved to "xstormy16-tdep.c".
7586 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7587 deprecated_generic_get_saved_register from "frame.c".
7588 (xstormy16_frame_saved_register): Call
7589 xstormy16_get_saved_register.
7590 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7591 static.
7592 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7593 * frame.h (deprecated_generic_get_saved_register): Delete.
7594
7595 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7596
7597 * dwarfread.c: Update documentation on the state of dwarf-1.
7598
7599 2004-05-01 Andrew Cagney <cagney@redhat.com>
7600
7601 * stack.c (select_frame_command): Delete call to
7602 frame_relative_level.
7603 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7604 Delete #if0 code.
7605 (frame_info): Do not print FRAMELESS.
7606 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7607 (catch_info): Delete #if0 code.
7608
7609 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7610 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7611 of frame_relative_level.
7612 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7613 to SENTINEL_FRAME.
7614 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7615 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7616 frame_relative_level.
7617
7618 * frame.h (deprecated_set_frame_type): Delete declaration.
7619 * frame.c (deprecated_set_frame_type): Delete function, update
7620 comments.
7621
7622 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7623 * gdbarch.h, gdbarch.c: Re-generate.
7624 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7625 (shnbsd_pc_in_sigtramp): Delete.
7626 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7627 pc_in_sigtramp.
7628 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7629 pc_in_sigtramp.
7630 * frame.h: Update comments.
7631 * ppc-linux-tdep.c: Update comments.
7632 * breakpoint.c (bpstat_what): Update comments.
7633
7634 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7635 m68klinux-tdep.o's dependencies, were previously added to
7636 m68klinux-nat.o.
7637
7638 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7639 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7640 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7641 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7642 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7643
7644 * Makefile.in (m68klinux-nat.o): Update dependencies.
7645 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7646 (m68k_linux_sigtramp_frame_cache)
7647 (m68k_linux_sigtramp_frame_this_id)
7648 (m68k_linux_sigtramp_frame_prev_register)
7649 (m68k_linux_sigtramp_frame_unwind)
7650 (m68k_linux_sigtramp_frame_sniffer)
7651 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7652 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7653 names, use trad-frame.h.
7654 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7655 (struct m68k_sigtramp_info): Delete.
7656 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7657 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7658 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7659 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7660 "m68klinux-tdep.c".
7661
7662 * infrun.c (check_sigtramp2): Delete check for
7663 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7664
7665 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7666
7667 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7668
7669 2004-05-01 Andrew Cagney <cagney@redhat.com>
7670
7671 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7672 (frv_linux_sigtramp_frame_cache)
7673 (frv_linux_sigtramp_frame_this_id)
7674 (frv_linux_sigtramp_frame_prev_register)
7675 (frv_linux_sigtramp_frame_unwind)
7676 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7677 include "linux" in function and variable names, directly call
7678 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7679 the latest trad-frame code.
7680 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7681 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7682 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7683 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7684 * frv-tdep.c (frv_sigtramp_frame_cache)
7685 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7686 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7687 frv-linux-tdep.c.
7688 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7689 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7690 (frv_set_sigcontext_reg_addr): Delete function.
7691
7692 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7693 (DEPRECATED_SIGTRAMP_END): Delete.
7694 * gdbarch.h, gdbarch.c: Re-generate.
7695 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7696 * config/vax/tm-vaxbsd.h: Update copyright.
7697 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7698 (DEPRECATED_IN_SIGTRAMP): Define.
7699 * config/m68k/tm-nbsd.h: Update copyright.
7700 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7701 (DEPRECATED_IN_SIGTRAMP): Define.
7702
7703 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7704
7705 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7706 encondings. Fixes PR gdb/1628.
7707
7708 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7709 DW_CFA_restore state without a matching DW_CFA_remember_state
7710 instead of aborting. Fixes PR backtrace/1589.
7711
7712 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7713
7714 * MAINTAINERS: Add self as AIX maintainer.
7715 Update my e-mail address in write-after-approval section.
7716
7717 2004-04-30 Andrew Cagney <cagney@redhat.com>
7718
7719 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7720 (legacy_get_prev_frame): Ditto.
7721
7722 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7723 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7724 * mipsread.c (sigtramp_address): Delete extern variable.
7725 (mipscoff_new_init): Delete reference.
7726 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7727 (fixup_sigtramp): Delete function.
7728 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7729 (fixup_sigtramp): Delete declarations.
7730
7731 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7732 deprecated_pc_in_sigtramp.
7733 (ppcnbsd_pc_in_sigtramp): Delete function.
7734
7735 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7736
7737 * config/m68k/nm-nbsd.h: Tweak comments.
7738 * config/m68k/nm-nbsdaout.h: Likewise.
7739
7740 2004-04-30 Andrew Cagney <cagney@redhat.com>
7741
7742 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7743 legacy_pc_in_sigtramp.
7744 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7745
7746 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7747
7748 Add OpenBSD/m68k support.
7749 * NEWS (New native configurations): Mention OpenBSD/m68k.
7750 * m68kbsd-tdep.c: New file.
7751 * m68kbsd-nat.c: New file.
7752 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7753 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7754 * configure.host: Add m68k-*-openbsd.
7755 * configure.tgt: Add m68k-*-openbsd.
7756 * config/m68k/tm-obsd.h: New file.
7757 * config/m68k/obsd.mt: New file.
7758 * config/m68k/obsd.mh: New file.
7759 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7760 m68kbsd-tdep.c.
7761
7762 2004-04-30 Andrew Cagney <cagney@redhat.com>
7763
7764 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7765 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7766
7767 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7768
7769 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7770 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7771
7772 2004-04-30 Brian Ford <ford@vss.fsi.com>
7773
7774 Revert 2004-04-16 change.
7775 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7776 (i386_coff_init_abi): Remove.
7777 * i386-tdep.h (i386_coff_init_abi): Remove.
7778 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7779
7780 2004-04-30 Andrew Cagney <cagney@redhat.com>
7781
7782 * blockframe.c (find_pc_partial_function): Delete use of
7783 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7784 DEPRECATED_SIGTRAMP_END.
7785
7786 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7787 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7788 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7789 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7790 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7791
7792 * defs.h (deprecated_inside_entry_file): Delete declaration.
7793 * blockframe.c (deprecated_inside_entry_file): Delete function.
7794 (legacy_frame_chain_valid): Delete call.
7795 * sh64-tdep.c (sh64_frame_chain): Delete call.
7796 * objfiles.h: Update comments.
7797 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7798 call.
7799 * frame.c (get_prev_frame): Delete call, update comments.
7800
7801 2004-04-30 Brian Ford <ford@vss.fsi.com>
7802
7803 * MAINTAINERS (Write After Approval): Add myself.
7804
7805 2004-04-30 Andrew Cagney <cagney@redhat.com>
7806
7807 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7808 * gdbarch.h, gdbarch.c: Re-generate.
7809 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7810 code.
7811
7812 2004-04-30 Andrew Cagney <cagney@redhat.com>
7813
7814 * gdb-events.sh (selected_thread_changed)
7815 (selected_frame_level_changed, target_changed): Delete.
7816 * gdb-events.h, gdb-events.c: Re-generate.
7817 * valops.c (value_assign): Update.
7818 * stack.c (select_frame_command, up_silently_base)
7819 (down_silently_base): Update.
7820
7821 2004-04-29 Andrew Cagney <cagney@redhat.com>
7822
7823 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7824 registers correctly.
7825 (print_gp_register_row, mips32_heuristic_proc_desc)
7826 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7827 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7828 references to mips_isa_regsize.
7829
7830 2004-04-29 Andrew Cagney <cagney@redhat.com>
7831
7832 * mips-tdep.c (struct gdbarch_tdep): Delete
7833 mips_fp_register_double.
7834 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7835 mips_abi_regsize.
7836 (mips_gdbarch_init): Do not set mips_fp_register_double.
7837 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7838
7839 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7840
7841 Committed by Andrew Cagney.
7842 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7843 function calls.
7844
7845 2004-04-29 Andrew Cagney <cagney@redhat.com>
7846
7847 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7848 gdbarch, use mips_abi, update callers.
7849 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7850 mips_abi_regsize, update callers.
7851 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7852 mips_default_abi_regsize.
7853 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7854 mips_default_abi_regsize.
7855
7856 2004-04-29 Andrew Cagney <cagney@redhat.com>
7857
7858 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7859 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7860 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7861 mips_default_abi_regsize.
7862 (mips_isa_regsize): Rename mips_regisze.
7863 * mipsnbsd-tdep.c: Update.
7864 * mips-linux-tdep.c: Update.
7865 * irix5-nat.c: Update.
7866 * mips-tdep.h (mips_isa_regsize): Update.
7867
7868 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7869 Delete all disabled code.
7870 * gdb-events.h, gdb-events.c: Re-generate.
7871
7872 2004-04-19 Jerome Guitton <guitton@gnat.com>
7873 Mark Kettenis <kettenis@gnu.org>
7874
7875 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7876 the function begins with a branch instruction.
7877
7878 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7879
7880 * i386-tdep.c: Fix spelling mistakes.
7881
7882 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7883 Andrew Cagney <cagney@redhat.com>
7884
7885 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7886 <sys/proc.h>.
7887 * acconfig.h: Provide default _KMEMUSER value.
7888 * config.in, configure: Re-generate.
7889 * NEWS: Mention fix.
7890
7891 2004-04-24 Randolph Chung <tausq@debian.org>
7892
7893 * configure.host (hppa*-*-linux*): New target.
7894 * configure.tgt (hppa*-*-linux*): Likewise.
7895 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7896 gdbarch_init_osabi() call earlier so that osabi-specific frame
7897 unwinders can be registered first.
7898 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7899 hppa-linux-nat.c.
7900 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7901 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7902 * config/pa/linux.mh: New file.
7903 * config/pa/linux.mt: New file.
7904 * config/pa/nm-linux.h: New file.
7905 * config/pa/xm-linux.h: New file.
7906 * hppa-linux-nat.c: New file.
7907 * hppa-linux-tdep.c: New file.
7908
7909 2004-04-28 Randolph Chung <tausq@debian.org>
7910
7911 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7912 return values.
7913 (hppa32_push_dummy_call): Fix small struct and floating point argument
7914 passing, and make sure the stack frame is properly aligned.
7915
7916 2004-04-28 Andrew Cagney <cagney@redhat.com>
7917
7918 * stack.c (print_stack_frame): Fix description.
7919
7920 * NEWS: Mention gdb/gdbserver/configure execute permission
7921 changed. PR server/519.
7922
7923 2004-04-28 Andrew Cagney <cagney@redhat.com>
7924
7925 * stack.c (print_stack_frame_stub): Delete declaration.
7926 (struct print_stack_frame_args, print_stack_frame)
7927 (print_frame_info, print_frame): Replace "source" with print what.
7928 Replace "print" with "print_level". Replace "args" with
7929 "print_args".
7930 * frame.h (show_and_print_stack_frame, print_stack_frame)
7931 (print_frame_info): Update declarations.
7932 * stack.c (select_and_print_frame, frame_command)
7933 (current_frame_command, up_command, down_command): Update calls -
7934 use get_selected_frame, pass "enum print_what" for source, do not
7935 call frame_relative_level.
7936 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7937 * remote-rdp.c (remote_rdp_open): Ditto.
7938 * remote-mips.c (common_open): Ditto.
7939 * remote-e7000.c (e7000_start_remote): Ditto.
7940 * ocd.c (ocd_start_remote): Ditto.
7941 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7942 * infrun.c (normal_stop): Ditto.
7943 * inflow.c (kill_command): Ditto.
7944 * infcmd.c (finish_command): Ditto.
7945 * corelow.c (core_open): Ditto.
7946 * tracepoint.c (finish_tfind_command): Ditto.
7947 * thread.c (info_threads_command, info_threads_command)
7948 (restore_current_thread, do_captured_thread_select): Ditto.
7949 * ada-tasks.c (task_command): Ditto.
7950
7951 2004-04-26 Orjan Friberg <orjanf@axis.com>
7952
7953 * frame.c: Include "observer.h".
7954 (frame_observer_target_changed): New function.
7955 (_initialize_frame): Attach target_changed observer.
7956 * regcache.c: Include "observer.h".
7957 (regcache_observer_target_changed): New function.
7958 (_initialize_regcache): Attach target_changed observer.
7959 * valops.c: Include "observer.h".
7960 (value_assign): Notify target_changed event when modifying register.
7961 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7962
7963 2004-04-26 Orjan Friberg <orjanf@axis.com>
7964
7965 From Paul Koning <pkoning@equallogic.com>:
7966 * breakpoint.c (free_valchain): New function.
7967 (insert_bp_location, delete_breakpoint): Use free_valchain.
7968 (remove_breakpoint): Do not remove the valchain.
7969 (bpstat_stop_status): If not stopped by watchpoint, skip
7970 watchpoints when generating stop status list.
7971 * infrun.c (handle_inferior_event): Make
7972 stepped_after_stopped_by_watchpoint a global variable.
7973 * remote.c (remote_stopped_data_address): Return watch data
7974 address rather than zero if stepped_after_stopped_by_watchpoint is
7975 set.
7976
7977 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7978
7979 Fix PR gdb/1626.
7980 * configure.in: Check for curses after termcap.
7981 On osf5.*, do not check for ncurses.
7982 * configure: Regenerate.
7983
7984 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7985
7986 * ppcobsd-nat.c: Include "ppc-tdep.h".
7987 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7988
7989 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7990 Fixes PR tdep/1623 and PR tdep/1624.
7991
7992 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7993
7994 * xmodem.h, xmodem.c: Remove files.
7995 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7996
7997 2004-04-23 Randolph Chung <tausq@debian.org>
7998
7999 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8000 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8001 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8002 for handling stackless frames.
8003 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8004
8005 2004-04-23 Randolph Chung <tausq@debian.org>
8006
8007 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8008 starts at a pc before the frame is created.
8009
8010 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8011
8012 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8013
8014 2004-04-23 Jerome Guitton <guitton@gnat.com>
8015
8016 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8017 use convert_typed_floating to get the appropriate format.
8018
8019 2004-04-22 Randolph Chung <tausq@debian.org>
8020
8021 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8022 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8023 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8024 (hppa_sign_extend): Add prototype.
8025 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8026 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8027 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8028 hppa targets will also use these functions.
8029 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8030 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8031 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8032 (hppa_gdbarch_init): Remove gdbarch setting of
8033 skip_trampoline_code, in_solib_call_trampoline and
8034 in_solib_return_trampoline.
8035 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8036 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8037 hppa_in_solib_call_trampoline.
8038 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8039 Moved from hppa-tdep.c.
8040 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8041 in_solib_call_trampoline and in_solib_return_trampoline.
8042
8043 2004-04-22 Randolph Chung <tausq@debian.org>
8044
8045 * hppa-tdep.c (hppa_debug): New variable.
8046 (find_unwind_entry, hppa_frame_cache): Add debug output.
8047 (_initialize_hppa_tdep): Add command to set debug flag.
8048
8049 2004-04-22 Andrew Cagney <cagney@redhat.com>
8050
8051 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8052 "trad-frame.h".
8053 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8054 signal trampoline unwinder.
8055 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8056
8057 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8058
8059 Add OpenBSD/powerpc support.
8060 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8061 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8062 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8063 (ppc_collect_fpregset): New prototypes.
8064 * ppcobsd-nat.c: New file.
8065 * ppcobsd-tdep.c: New file.
8066 * ppcobsd-tdep.h: New file.
8067 * rs6000-tdep.c: Include "regset.h".
8068 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8069 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8070 New functions.
8071 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8072 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8073 (rs6000-tdep.o): Update dependencies.
8074 * configure.host: Add powerpc-*-openbsd.
8075 * configure.tgt: Add powerpc-*-openbsd.
8076 * config/powerpc/obsd.mh: New file.
8077 * config/powerpc/nm-obsd.h: New file.
8078 * config/powerpc/obsd.mt: New file.
8079
8080 2004-04-22 Andrew Cagney <cagney@redhat.com>
8081
8082 * frame.h (show_frame_info): Delete declaration.
8083
8084 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8085 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8086 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8087 * frv-tdep.c (frv_frame_this_id): Ditto.
8088 * avr-tdep.c (avr_frame_this_id): Ditto.
8089
8090 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8091
8092 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8093
8094 2004-04-22 Jim Blandy <jimb@redhat.com>
8095
8096 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8097 register number zero.
8098
8099 2004-04-21 Michael Snyder <msnyder@redhat.com>
8100
8101 * mips-tdep.c (heuristic_proc_start):
8102 Warning() already prefixes "Warning: ".
8103
8104 2004-04-21 Andrew Cagney <cagney@redhat.com>
8105
8106 * annotate.h (deprecated_annotate_starting_hook)
8107 (deprecated_annotate_stopped_hook)
8108 (deprecated_annotate_exited_hook)
8109 (deprecated_annotate_signal_hook)
8110 (deprecated_annotate_signalled_hook): Deprecate.
8111 * tracepoint.h (deprecated_create_tracepoint_hook)
8112 (deprecated_delete_tracepoint_hook)
8113 (deprecated_modify_tracepoint_hook)
8114 (deprecated_trace_find_hook)
8115 (deprecated_trace_start_stop_hook): Deprecate.
8116 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8117 * remote.h (deprecated_target_resume_hook)
8118 (deprecated_target_wait_loop_hook): Deprecate.
8119 * gdbcore.h (deprecated_exec_file_display_hook)
8120 (deprecated_file_changed_hook): Deprecate.
8121 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8122 * defs.h (deprecated_modify_breakpoint_hook)
8123 (deprecated_command_loop_hook, deprecated_show_load_progress)
8124 (deprecated_print_frame_info_listing_hook)
8125 (deprecated_query_hook, deprecated_warning_hook)
8126 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8127 (deprecated_delete_breakpoint_hook)
8128 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8129 (deprecated_readline_begin_hook, deprecated_readline_hook)
8130 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8131 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8132 (deprecated_context_hook, deprecated_target_wait_hook)
8133 (deprecated_attach_hook, deprecated_detach_hook)
8134 (deprecated_call_command_hook, deprecated_set_hook)
8135 (deprecated_error_hook, deprecated_error_begin_hook)
8136 (deprecated_ui_load_progress_hook): Deprecate.
8137 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8138 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8139 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8140 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8141 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8142 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8143 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8144 * annotate.c, aix-thread.c: Update.
8145
8146 2004-04-21 Andrew Cagney <cagney@redhat.com>
8147
8148 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8149 * vaxnbsd-tdep.c: Include "gdb_string.h".
8150
8151 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8152 (add_symbol_file_from_memory_command): #if 0 function body, call
8153 error instead.
8154
8155 2004-04-21 Andrew Cagney <cagney@redhat.com>
8156
8157 * gdbcore.h: Update copyright.
8158 (deprecated_add_core_fns): Rename add_core_fns.
8159 * win32-nat.c (_initialize_core_win32): Update.
8160 * sun3-nat.c (_initialize_core_sun3): Update.
8161 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8162 * rs6000-nat.c (_initialize_core_rs6000): Update.
8163 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8164 * nto-tdep.c (_initialize_nto_tdep): Update.
8165 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8166 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8167 * mips-nat.c (_initialize_core_mips): Update.
8168 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8169 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8170 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8171 * lynx-nat.c (_initialize_core_lynx): Update.
8172 * irix5-nat.c (_initialize_core_irix5): Update.
8173 * i386-interix-nat.c (_initialize_core_interix): Update.
8174 * cris-tdep.c (_initialize_cris_tdep): Update.
8175 * corelow.c (deprecated_add_core_fns): Update.
8176 * core-regset.c (_initialize_core_regset): Update.
8177 * core-aout.c (_initialize_core_aout): Update.
8178 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8179 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8180 * alpha-nat.c (_initialize_core_alpha): Update.
8181
8182 2004-04-21 Jim Blandy <jimb@redhat.com>
8183
8184 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8185
8186 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8189 Delete.
8190 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8191 (read_attribute_value): Update calls to dwarf_alloc_block.
8192 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8193 dwarf2_tmp_obstack.
8194 (psymtab_to_symtab_1): Likewise. Clean up using
8195 free_stack_comp_unit.
8196 (add_to_cu_func_list): Use the comp_unit_obstack.
8197
8198 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8199
8200 * dwarf2read.c (dwarf2_flag_true_p): New function.
8201 (die_is_declaration): Use the function above. Add some comments.
8202
8203 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8204
8205 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8206 architecture when registering sparcnbsd_core_osabi_sniffer.
8207 Adjust comment.
8208
8209 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8210
8211 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8212 return value.
8213
8214 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8215 * i386-tdep.c: Correct register numbering scheme comments
8216 throughout.
8217 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8218 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8219 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8220 (i386_gdb_arch_init): Likewise.
8221
8222 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8223 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8224 ppcnbsd-tdep.o.
8225
8226 * m68k-tdep.h: Tweak comments.
8227 * m68k-tdep.c: Tweak comment.
8228
8229 2004-04-17 Randolph Chung <tausq@debian.org>
8230
8231 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8232 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8233 (hppa_hpux_som_init_abi): Set is_elf to 0.
8234 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8235 * hppa-tdep.c (low_text_segment_address): Remove global.
8236 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8237 section offset to calculate segment address.
8238 (internalize_unwinds): Define low_text_segment_address as local and
8239 pass to record_text_segment_lowaddr for ELF targets.
8240 (hppa_gdbarch_init): Zero fill tdep structure.
8241 (hppa_dump_tdep): Print tdep structure.
8242 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8243
8244 2004-04-17 Randolph Chung <tausq@debian.org>
8245
8246 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8247 (hppa_gdbarch_init): Set pseudo_register_read.
8248 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8249 * regcache.c (supply_register): Remove check for
8250 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8251
8252 2004-04-17 Randolph Chung <tausq@debian.org>
8253
8254 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8255 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8256 (hpread_adjust_stack_address): Move to hpread.c.
8257 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8258 obj_private_struct): Move from tm-hppa.h.
8259 * hpread.c (hppa-tdep.h): Include.
8260 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8261 (hpread_read_function_type, hpread_read_doc_function_type)
8262 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8263 directly.
8264 * pa64solib.c (hppa-tdep.h): Include.
8265 * somsolib.c (hppa-tdep.h): Include.
8266 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8267 inferior_status): Remove unused forward declarations.
8268 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8269 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8270 obj_private_struct): Move to hppa-tdep.h.
8271 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8272
8273 2004-04-17 Randolph Chung <tausq@debian.org>
8274
8275 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8276 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8277 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8278 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8279 Remove forward declaration and make static.
8280 (hppa_reg_struct_has_addr): Remove.
8281
8282 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8283
8284 * observer.sh: Move comments in sed command to first column.
8285
8286 2004-04-16 Jason Molenda (jmolenda@apple.com)
8287
8288 * frame.c: Minor typeo corrections in comments.
8289
8290 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8291
8292 * observer.c (observer_test_first_notification_function): Update
8293 function profile.
8294 (observer_test_second_notification_function): Likewise.
8295 (observer_test_third_notification_function): Likewise.
8296
8297 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8298
8299 From Brian Ford <ford@vss.fsi.com>:
8300 * i386-tdep.c (i386_coff_init_abi): New function.
8301 * i386-tdep.h (i386_coff_init_abi): New prototype.
8302 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8303 register number translation functions for DWARF and DWARF 2.
8304
8305 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8306
8307 * dwarf2read.c: Back out my previous change, it was incorrect.
8308
8309 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8310
8311 * dwarf2read.c: Include "hashtab.h".
8312 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8313 has_namespace_info.
8314 (struct partial_die_info): Add comments. Use bitfields to reduce
8315 memory footprint. Add scope, scope_set, has_specification,
8316 spec_offset, die_parent, die_child, and die_sibling.
8317 (peek_die_abbrev): Add prototype.
8318 (partial_read_comp_unit_head): New function, broken out from
8319 dwarf2_build_psymtabs_hard.
8320 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8321 Use partial_read_comp_unit_head. Initialize the CU and
8322 comp_unit_obstack. Update calls to read_partial_die and
8323 scan_partial_symbols. Use free_stack_comp_unit and
8324 load_partial_dies.
8325 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8326 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8327 Update calls to helper functions. Remove NAMESPACE argument.
8328 Update comments.
8329 (partial_die_parent_scope, partial_die_full_name): New functions.
8330 (add_partial_symbol): Remove namespace argument. Update call to
8331 pdi_needs_namespace. Use partial_die_full_name. Handle
8332 DW_TAG_namespace. Check has_namespace_info flag.
8333 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8334 tag. Handle namespaces.
8335 (add_partial_namespace, add_partial_enumeration): Simplify.
8336 (guess_structure_name): New function, derived from
8337 add_partial_structure.
8338 (add_partial_structure): Remove.
8339 (determine_class_name): Update comment.
8340 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8341 (is_type_tag_for_partial, load_partial_dies): New functions.
8342 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8343 Record specifications instead of following them immediately.
8344 (find_partial_die_in_comp_unit, find_partial_die)
8345 (fixup_partial_die, free_stack_comp_unit)
8346 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8347 (partial_die_hash, partial_die_eq): New functions.
8348 * Makefile.in (hashtab_h): Define.
8349 (dwarf2read.o): Update dependencies.
8350 (observer_inc, observer_h): Move to the correct section.
8351
8352 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8353
8354 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8355 (die_is_declaration): Use the function above. Add comment.
8356
8357 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8358
8359 * dwarf2read.c (read_structure_scope): Identify stub types
8360 using die_is_declaration() only.
8361
8362 2004-04-15 Roland McGrath <roland@redhat.com>
8363
8364 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8365 argument instead of NAME.
8366 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8367 in call to symbol_file_add_with_addrs_or_offsets.
8368 (build_addr_info): New function, helper for ...
8369 (symbol_file_add_from_memory): New function.
8370 (add_symbol_file_from_memory_command): New function using that.
8371 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8372 (pre_add_symbol_hook): Add const to argument type.
8373 * symfile.h (symbol_file_add_from_memory): Declare it.
8374
8375 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8376
8377 * NEWS (New native configurations): Mention OpenBSD/vax.
8378 * configure.host: Add vax-*-openbsd*.
8379 * config/vax/obsd.mh: New file.
8380 * config/vax/nm-obsd.h: New file.
8381
8382 * vax-tdep.c: Include "regset.h".
8383 (vax_supply_gregset): New function.
8384 (vax_gregset): New variable.
8385 (vax_regset_from_core_section): New function.
8386 (vax_gdbarch_init): Set regset_from_core_section.
8387 * Makefile.in (vax-tdep.o): Update dependencies.
8388
8389 2004-04-15 Andrew Cagney <cagney@redhat.com>
8390
8391 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8392 (observer_normal_stop_notification_stub)
8393 (observer_attach_normal_stop, observer_detach_normal_stop):
8394 Delete, replaced by #include "observer.inc".
8395 * infrun.c (normal_stop): Pass "stop_bpstat" to
8396 observer_notify_normal_stop.
8397 * Makefile.in (observer_inc): Define.
8398 (observer.o): Update dependencies.
8399 (observer.h, observer.inc): New rules.
8400 * observer.h: Delete file.
8401 * observer.sh: New file.
8402
8403 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8404
8405 * vax-tdep.c (vax_frame_cache): Fix typo.
8406
8407 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8408
8409 * NEWS (New native configurations): Mention NetBSD/vax.
8410 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8411 * config/vax/nbsdelf.mh: New file.
8412 * config/vax/nbsdaout.mh: New file.
8413 * config/vax/nm-nbsd.h: New file.
8414 * config/vax/nm-nbsdaout.h: New file.
8415
8416 * vaxnbsd-tdep.c: New file.
8417 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8418 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8419 * config/vax/nbsd.mt: New file.
8420 * config/vax/tm-nbsd.h: New file.
8421
8422 * Makefile.in (vaxbsd-nat.o): New dependency.
8423
8424 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8425 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8426 struct_addr arguments. Don't push return value address.
8427 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8428 arguments to vax_store_arguments. Store return value address in
8429 R1.
8430 (vax_store_struct_return, vax_extract_return_value)
8431 (vax_store_return_value): Remove functions.
8432 (vax_return_value): New function.
8433 (vax_gdbarch_init): Set return value. Don't set
8434 deprecated_store_struct_return, deprecated_extract_struct_return
8435 and deprecated_store_return_value.
8436
8437 2004-04-14 Andreas Schwab <schwab@suse.de>
8438
8439 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8440 value buffer.
8441 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8442
8443 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8444
8445 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8446 (vax_unwind_dummy_id): New functions.
8447 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8448 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8449 variables.
8450 (vax_fix_call_dummy): Remove function.
8451 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8452 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8453 call_dummy_location, deprecated_call_dummy_words,
8454 deprecated_sizeof_call_dummy_words,
8455 deprecated_call_dummy_breakpoint_offset,
8456 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8457 and deprecated_dummy_write_sp.
8458
8459 2004-04-13 David Carlton <carlton@kealia.com>
8460
8461 * MAINTAINERS: Move myself to "paper trail" section.
8462
8463 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8464
8465 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8466 "trad-frame.h".
8467 (vax_frame_init_saved_regs): Remove function.
8468 (vax_sigtramp_saved_pc): Remove function.
8469 (vax_frame_saved_pc): Remove function.
8470 (vax_frame_args_address): Remove function.
8471 (vax_frame_num_args): Rewrite.
8472 (vax_frame_chain): Remove function.
8473 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8474 VAX_FP_REGNUM.
8475 (vax_pop_frame): Likewise.
8476 (vax_saved_pc_after_call): Remove function.
8477 (struct vax_frame_cache): New structure.
8478 (vax_frame_cache): New function.
8479 (vax_frame_this_id): New function.
8480 (vax_frame_prev_register): New function.
8481 (vax_frame_unwind): New variable.
8482 (vax_frame_sniffer): New function.
8483 (vax_frame_base_address): New function.
8484 (vax_frame_args_address): New function.
8485 (vax_frame_base): New variable.
8486 (vax_unwind_pc): New function.
8487 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8488 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8489 deprecated_frame_chain, deprecated_frame_saved_pc,
8490 deprecated_frame_args_address and
8491 deprecated_frame_init_saved_regs.
8492 * Makefile.in (vax-tdep.o): Update dependencies.
8493
8494 * vaxbsd-nat.c: New file.
8495
8496 * vax-tdep.h: Update copyright year. Adjust comments.
8497 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8498 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8499 (vax_regnum): New enum. Replacing...
8500 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8501 (VAX_PS_REGNUM): ... these removed macros.
8502 * vax-tdep.c (vax_register_name): Remove prototype.
8503 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8504 (vax_register_byte, vax_register_raw_size,
8505 vax_register_virtual_size, vax_register_virtual_type): Remove
8506 functions.
8507 (vax_register_type): New function.
8508 (vax_breakpoint_from_pc): Reorganize.
8509 (vax_gdbarch_init): Set register_type. Don't set
8510 deprecated_register_size, deprecated_register_bytes,
8511 deprecated_register_byte, deprecated_register_raw_size,
8512 deprecated_max_register_raw_size,
8513 deprecated_register_virtual_size,
8514 deprecated_max_register_virtual_size and
8515 deprecated_register_virtual_type. Add comment on stack direction.
8516
8517 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8518
8519 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8520 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8521 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8522
8523 2004-04-10 Randolph Chung <tausq@debian.org>
8524
8525 * MAINTAINERS (write after approval): Add myself.
8526
8527 2004-04-07 Randolph Chung <tausq@debian.org>
8528
8529 * hppa-tdep.c (hppa_inner_than): Remove.
8530 (is_pa_2): Remove unused static variable.
8531 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8532
8533 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8534
8535 * language.h (language_defn): Add new la_post_parser field.
8536 * parser-defs.h (null_post_parser): New declaration (default for
8537 la_post_parser).
8538
8539 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8540 insert call to that function.
8541 (parse_exp_in_context): New function, including code formerly in
8542 parse_exp_1. Calls language-dependent post-parser after
8543 prefixification.
8544 (parse_expression_in_context): New exported function.
8545 (null_post_parser): New definition.
8546 * expression.h (parse_expression_in_context): Add declaration.
8547
8548 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8549 * c-lang.c (c_language_defn): Ditto.
8550 (cplus_language_defn): Ditto.
8551 (asm_language_defn): Ditto.
8552 (minimal_language_defn): Ditto.
8553 * f-lang.c (f_language_defn): Ditto.
8554 * jv-lang.c (java_language_defn): Ditto.
8555 * language.c (unknown_language_defn): Ditto.
8556 (auto_language_defn): Ditto.
8557 (local_language_defn): Ditto.
8558 * m2-lang.c (m2_language_defn): Ditto.
8559 * scm-lang.c (scm_language_defn): Ditto.
8560 * obj-lang.c (objc_language_defn): Ditto.
8561
8562 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8563
8564 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8565 (amd64nbsd_mcontext_addr): New function.
8566 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8567 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8568 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8569
8570 * corelow.c (core_xfer_partial): Fix coding standards violation.
8571 Add support for TARGET_OBJECT_WCOOKIE.
8572
8573 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8574 deprecated_pc_in_sigtramp.
8575 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8576 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8577 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8578 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8579 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8580 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8581 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8582
8583 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8584 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8585 Fix typo.
8586
8587 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8588 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8589 (amd64_collect_fxsave): Likewise.
8590
8591 * i386-sol2-tdep.c: Include "gdb_string.h".
8592 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8593 name.
8594 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8595
8596 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8597
8598 * i386-sol2-tdep.c: Include "solib-svr4.h".
8599 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8600 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8601 * config/i386/tm-i386sol2.h: Include :solib.h".
8602 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8603 solib-svr4.o and solib-legacy.o.
8604 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8605 solib-svr4.o.
8606
8607 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8608
8609 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8610 whether a register is supplied by PTRACE_GETFPREGS.
8611 (store_inferior_registers): Likewise.
8612 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8613 whether a register is supplied by PT_GETFPREGS.
8614 (store_inferior_registers): Likewise.
8615
8616 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8617 * config/i386/linux64.mt (TDEPFILES): Likewise.
8618
8619 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8620
8621 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8622 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8623 the program counter is in the range specified by `struct
8624 gdbarch_tdep'.
8625 * amd64-linux-tdep.c: Include "symtab.h".
8626 (amd64_linux_pc_in_sigtramp): Remove function.
8627 (amd64_linux_sigtramp_p): New function.
8628 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8629 deprecated_pc_in_sigtramp.
8630 * amd64nbsd-tdep.c: Include "symtab.h".
8631 (amd64nbsd_sigtramp_p): New function.
8632 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8633 deprecated_pc_in_sigtramp.
8634 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8635 few comments.
8636 (amd64obsd_pc_in_sigtramp): Remove function.
8637 (amd64obsd_sigtramp_p): New function.
8638 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8639 deprecated_pc_in_sigtramp.
8640 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8641 (i386bsd_pc_ins_sigtramp): Remove prototype.
8642 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8643 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8644 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8645 the program counter is in the range specified by `struct
8646 gdbarch_tdep'.
8647 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8648 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8649 (i386_go32_pc_in_sigtramp): Remove function.
8650 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8651 Initialize TDEP->sigtramp_p.
8652 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8653 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8654 deprecated_pc_in_sigtramp.
8655 * i386-linux-tdep.c: Adjust comments.
8656 (i386_linux_pc_in_sigtramp): Remove function.
8657 (i386_linux_sigtramp_p): New function.
8658 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8659 deprecated_pc_in_sigtramp.
8660 * i386-nto-tdep.c: Update copyright year.
8661 (i386nto_pc_in_sigtramp): Remove function.
8662 (i386nto_sigtramp_p): New function.
8663 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8664 SP_REGNUM.
8665 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8666 deprecated_pc_in_sigtramp.
8667 * i386-sol2-tdep.c: Update copyright year.
8668 (i386_sol2_pc_in_sigtramp): Remove function.
8669 (i386_sol2_sigtramp_p): New function.
8670 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8671 deprecated_pc_in_sigtramp.
8672 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8673 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8674 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8675 deprecated_sigtramp_start and deprecated_sigtramp_end.
8676 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8677 (i386nbsd_pc_in_sigtramp): Remove function.
8678 (i386nbsd_sigtramp_p): New function.
8679 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8680 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8681 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8682 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8683 (i386obsd_pc_in_sigtramp): Remove function.
8684 (i386obsd_sigtramp_p): New function.
8685 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8686 functions.
8687 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8688 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8689 TDEP->sigtramp_p.
8690 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8691 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8692 dependencies.
8693
8694 * config/i386/i386aout.mt: Remove file.
8695
8696 * configure.tgt: Remove i[34567]86-*-go32*,
8697 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8698 and i[34567]86-*-isc*. Set gdb_target to i386 for
8699 i[34567]86-*-netware* and i[34567]86-*-*.
8700 * config/i386/i386.mt: New file.
8701 * config/i386/embed.mt: Remove file.
8702 * config/i386/go32.mt: Remove file.
8703 * config/i386/i386nw.mt: Remove file.
8704 * config/i386/i386v.mt: Remove file.
8705 * config/i386/tm-go32.h: Remove file.
8706
8707 * tui/tui-hooks.c: Include "readline/readline.h" after
8708 "gdb_curses.h" instead of before.
8709 * tui/tui-io.c: Likewise.
8710
8711 * tui/tui.c: Fix typo in comment.
8712
8713 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8714
8715 2004-04-08 Andrew Cagney <cagney@redhat.com>
8716
8717 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8718 (deprecated_exception_support_initialized): Declare.
8719 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8720 (initialize_hp_cxx_exception_support)
8721 (child_enable_exception_callback): Update.
8722 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8723 (deprecated_exception_support_initialized): Rename
8724 deprecated_exception_catchpoints_are_fragile and
8725 deprecated_exception_support_initialized.
8726 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8727
8728 * symtab.c (deprecated_hp_som_som_object_present): Rename
8729 hp_som_som_object_present.
8730 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8731 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8732 Update. Delete extern declaration.
8733 * valops.c (hp_som_som_object_present): Ditto.
8734 * parse.c (deprecated_hp_som_som_object_present)
8735 (parse_nested_classes_for_hpacc): Ditto.
8736 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8737 * hppa-hpux-tdep.c (hp_som_som_object_present)
8738 (initialize_hp_cxx_exception_support): Ditto.
8739 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8740 * cp-valprint.c (hp_som_som_object_present)
8741 (cp_print_class_method): Ditto.
8742 * c-typeprint.c (hp_som_som_object_present):
8743 (c_type_print_base): Ditto.
8744 * c-exp.y (hp_som_som_object_present): Ditto.
8745
8746 2004-04-08 Andrew Cagney <cagney@redhat.com>
8747
8748 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8749 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8750 (frame_unwind_find_by_frame): Re-implement the unwind code so
8751 that it can both prepend and append sniffers. Replace
8752 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8753 * tramp-frame.c (tramp_frame_append): Use
8754 frame_unwind_prepend_unwinder.
8755 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8756 frame_unwind_register_unwinder.
8757 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8758 tramp_frame_append.
8759 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8760 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8761 (mips_linux_init_abi): Update.
8762
8763 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8764
8765 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8766 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8767 file support.
8768
8769 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8770
8771 * ia64-tdep.c (elf.h): Don't include.
8772 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8773
8774 2004-04-07 Jason Molenda (jmolenda@apple.com)
8775
8776 * frame.h: Typeo corrections in comments.
8777
8778 2004-04-07 Jim Blandy <jimb@redhat.com>
8779
8780 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8781 %esp and %ebp
8782
8783 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8784
8785 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8786 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8787 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8788 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8789 and solib-legacy.o.
8790 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8791 solib-svr4.o.
8792 * config/sparc/tm-sol2.h: Update copyright year. Include
8793 "solib.h".
8794
8795 * sparc-sol2-tdep.c: Update copyright year. Include
8796 "solib-svr4.h".
8797 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8798 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8799 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8800 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8801 dependencies.
8802
8803 2004-04-06 Andrew Cagney <cagney@redhat.com>
8804
8805 * infttrace.c: Include "infttrace.h".
8806 * infttrace.h: Include "target.h".
8807 * Makefile.in (infttrace_h): Update.
8808 (infttrace.o): Update.
8809
8810 2004-04-06 Andrew Cagney <cagney@redhat.com>
8811
8812 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8813 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8814 move extern declarations from here ...
8815 * infttrace.h: ... to here.
8816 * Makefile.in (hppah-nat.o): Update dependencies.
8817
8818 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8819 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8820 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8821 (hppa_breakpoint_from_pc): Delete.
8822
8823 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8824
8825 2004-04-05 Andrew Cagney <cagney@redhat.com>
8826
8827 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8828 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8829 <sys/file.h>.
8830
8831 2004-04-06 Randolph Chung <tausq@debian.org>
8832
8833 Committed by Andrew Cagney (mechanical change).
8834 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8835 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8836 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8837 child_enable_exception_callback, current_ex_event,
8838 null_symtab_and_line, child_get_current_exception_event,
8839 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8840 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8841 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8842 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8843 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8844 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8845 Move hpux-specific definitions ...
8846 * hppa-hpux-tdep.c: ... to here.
8847
8848 2004-04-05 Andrew Cagney <cagney@redhat.com>
8849
8850 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8851 skip_prologue_using_sal.
8852
8853 2004-04-05 Andrew Cagney <cagney@redhat.com>
8854
8855 * config/i386/tm-i386.h: Delete file.
8856 * config/i386/tm-vxworks.h: Update copyright, do not include
8857 "tm-i386.h".
8858 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8859 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8860 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8861 * config/i386/ncr3000.mt (TM_FILE): Delete.
8862 * config/i386/interix.mt (TM_FILE): Delete.
8863 * config/i386/i386v.mt (TM_FILE): Delete.
8864 * config/i386/i386nw.mt (TM_FILE): Delete.
8865 * config/i386/i386gnu.mt (TM_FILE): Delete.
8866 * config/i386/i386aout.mt (TM_FILE): Delete.
8867 * config/i386/embed.mt (TM_FILE): Delete.
8868
8869 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8870
8871 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8872 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8873 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8874 (accg7_regnum): New constants.
8875 (last_spr_regnum, last_pseudo_regnum): Update.
8876 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8877 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8878 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8879 for accg registers.
8880 (frv_register_sim_regno): Update spr_map[].
8881
8882 2004-04-04 Andrew Cagney <cagney@redhat.com>
8883
8884 * config/mips/xm-riscos.h: Delete.
8885 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8886 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8887 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8888 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8889 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8890 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8891 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8892 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8893 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8894 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8895 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8896 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8897 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8898 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8899 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8900 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8901 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8902 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8903 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8904 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8905 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8906 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8907 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8908 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8909 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8910 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8911
8912 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8913 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8914 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8915 * configure.host: Remove m680[01]0-sun-sunos3*,
8916 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8917 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8918 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8919 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8920 mips-*-riscos*.
8921 * NEWS: Mention removed systems.
8922
8923 2004-04-04 Andrew Cagney <cagney@redhat.com>
8924
8925 GDB 6.1 release created from 6.1 branch.
8926
8927 2004-04-04 Andrew Cagney <cagney@redhat.com>
8928
8929 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8930 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8931 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8932
8933 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8934 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8935 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8936
8937 2004-04-03 Jim Blandy <jimb@redhat.com>
8938
8939 * MAINTAINERS: Chris Faylor has changed employers; add him to
8940 "paper trail" section, and update his E-mail address.
8941
8942 2004-04-03 Andrew Cagney <cagney@redhat.com>
8943
8944 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8945 generic dummy frames.
8946 * dummy-frame.c: Update copyright.
8947 (dummy_frame_sniffer): Delete check for generic dummy frames.
8948
8949 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8950 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8951 (REG_PARM_STACK_SPACE): Delete.
8952 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8953 Inline reference to REG_PARM_STACK_SPACE.
8954
8955 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8956 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8957 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8958 (FRAME_BASE_BEFORE_SIGTRAMP)
8959 (hppa32_hpux_frame_base_before_sigtramp)
8960 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8961 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8962 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8963 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8964 (FRAME_BASE_BEFORE_SIGTRAMP)
8965 (hppa64_hpux_frame_base_before_sigtramp)
8966 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8967
8968 2004-04-03 Andrew Cagney <cagney@redhat.com>
8969
8970 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8971
8972 2004-04-02 Andrew Cagney <cagney@redhat.com>
8973
8974 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8975 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8976 * dummy-frame.h: Delete out-of-date comments.
8977 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8978 * gdbarch.h, gdbarch.c: Re-generate.
8979
8980 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8981
8982 Committed by Andrew Cagney <cagney@redhat.com>.
8983 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8984 into account an instruction saving a register if we have already
8985 seen an earlier instruction saving that same register.
8986
8987 2004-04-02 Andrew Cagney <cagney@redhat.com>
8988
8989 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8990 * gdbarch.h, gdbarch.c: Re-generate.
8991 * frame.c (legacy_get_prev_frame): Delete references to
8992 DEPRECATED_INIT_FRAME_PC_FIRST.
8993
8994 * infrun.c (pc_in_sigtramp): Delete function.
8995 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8996 get_frame_type.
8997
8998 2004-04-02 Andrew Cagney <cagney@redhat.com>
8999
9000 * infrun.c (handle_step_into_function): Delete code conditional on
9001 legacy_frame_p.
9002 (handle_inferior_event, step_over_function): Ditto.
9003
9004 2004-04-02 Andrew Cagney <cagney@redhat.com>
9005
9006 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9007 "previous frame inner to this frame" test.
9008
9009 2004-04-02 Andrew Cagney <cagney@redhat.com>
9010
9011 * frame.c (safe_frame_unwind_memory): New function.
9012 * frame.h (safe_frame_unwind_memory): Declare. Update description
9013 of /safe_/ methods.
9014 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9015 "next_frame". Use safe_frame_unwind_memory.
9016 (tramp_frame_sniffer): Update call to tramp_frame_start.
9017
9018 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9019
9020 * dwarf2read.c (dwarf2_objfile_data_key): New.
9021 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9022 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9023 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9024 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9025 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9026 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9027 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9028 Remove variables.
9029 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9030 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9031 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9032 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9033 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9034 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9035 Remove macros.
9036 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9037 data.
9038 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9039 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9040 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9041 (read_partial_die, read_full_die, read_indirect_string)
9042 (dwarf_decode_line_header, dwarf_decode_macros)
9043 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9044 Update uses of removed variables.
9045 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9046 of removed macros.
9047 (_initialize_dwarf2_read): New function.
9048 * symfile.h (dwarf2_has_info): Update prototype.
9049 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9050 * elfread.c (elf_symfile_read): Likewise.
9051
9052 2004-04-01 Jim Blandy <jimb@redhat.com>
9053
9054 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9055 function for register numbers on all the rs6000-derived targets.
9056 (rs6000_gdbarch_init): Don't register a separate
9057 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9058 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9059 variants.
9060
9061 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9062 numbering.
9063
9064 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9065
9066 * valarith.c: Update copyright notice.
9067 (value_add): Handle range types.
9068 (value_sub): Ditto.
9069 (value_equal): Ditto.
9070 (value_less): Ditto.
9071 (value_neg): Ditto.
9072 (value_complement): Ditto.
9073 (value_binop): Simplify slightly by using is_integral_type and
9074 eliminiating unnecessary COERCE_ENUMs.
9075
9076 2004-03-31 Andrew Cagney <cagney@redhat.com>
9077
9078 * frame.h (frame_unwind_id): Declare.
9079 * frame.c (frame_unwind_id): New function.
9080 (get_prev_frame_1): New function.
9081 (frame_debug_got_null_frame): New function.
9082 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9083 code proper to prev_frame, update description.
9084 * infrun.c (step_over_function): Use frame_unwind_id.
9085
9086 2004-04-31 J. Brobecker <brobecker@gnat.com>
9087
9088 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9089 (hppa64_push_dummy_call): Likewise.
9090
9091 2004-03-30 Jim Blandy <jimb@redhat.com>
9092
9093 From Ulrich Weigand:
9094 * utils.c (query): Do not use a va_list variable multiple times.
9095
9096 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9097
9098 * Makefile.in (linux_nat_h): Update dependencies.
9099 * configure.in: Check for <gnu/libc-version.h>.
9100 * configure: Regenerate.
9101 * config.in: Regenerate.
9102 * linux-nat.h: Include "target.h". Add waitstatus field to
9103 struct lwp_info.
9104 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9105 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9106 to.
9107 (lin_lwp_handle_extended): New function. Handle clone events.
9108 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9109 thread exit events.
9110 (child_wait): Handle clone events.
9111 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9112 * linux-nat.c (linux_enable_event_reporting): Turn on
9113 PTRACE_O_TRACECLONE.
9114 (linux_handle_extended_wait): Handle clone events.
9115 * thread-db.c: Include <gnu/libc-version.h>.
9116 (struct private_thread_info): Add dying flag.
9117 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9118 higher.
9119 (attach_thread): Update comments. Handle dying threads.
9120 (detach_thread): Set the dying flag.
9121 (check_event): Always call attach_thread.
9122
9123 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * mips-tdep.c (mips_pdr_data): New.
9126 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9127 (_initialize_mips_tdep): Initialize mips_pdr_data.
9128
9129 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9130
9131 * minsyms.c (install_minimal_symbols): Move dropping leading
9132 char from linkage name from here...
9133 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9134 test for "__gnu_compiled*" symbols.
9135
9136 2004-03-28 Jim Blandy <jimb@redhat.com>
9137
9138 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9139 registers to temp register r0 and byte stores as prologue
9140 instructions.
9141
9142 2004-03-28 Andrew Cagney <cagney@redhat.com>
9143
9144 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9145 arm*-*-*.
9146
9147 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9148
9149 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9150 and switch the layout to force a display of register window.
9151
9152 2004-02-26 J. Brobecker <brobecker@gnat.com>
9153
9154 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9155 of the INTEGER class.
9156
9157 2004-03-26 Jim Blandy <jimb@redhat.com>
9158
9159 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9160 bytes long on PPC GNU/Linux.
9161
9162 2004-03-26 David Carlton <carlton@kealia.com>
9163
9164 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9165
9166 2004-03-25 Andrew Cagney <cagney@redhat.com>
9167
9168 * PROBLEMS: Add general section titles, remove references to
9169 specific releases.
9170
9171 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9172
9173 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9174 INT_REGISTER_SIZE.
9175 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9176 FP_REGISTER_VIRTUAL_SIZE.
9177 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9178 of DEPRECATED_REGISTER_RAW_SIZE.
9179 (arm_register_type): Add gdbarch argument.
9180 (arm_register_raw_size, arm_register_virtual_size): Delete.
9181 (arm_register_byte, arm_extract_return_value)
9182 (arm_store_return_value, arm_get_longjmp_target): Update references
9183 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9184 (arm_gdbarch_init): Likewise. Don't set
9185 deprecated_register_raw_size, deprecated_register_virtual_size,
9186 deprecated_max_register_raw_size,
9187 deprecated_max_register_virtual_size, or
9188 deprecated_max_register_virtual_type. Do set register_type.
9189 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9190 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9191 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9192 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9193 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9194 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9195 INT_REGISTER_SIZE.
9196 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9197 (remote_rdp_store_register): Likewise.
9198
9199 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9202 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9203 to after osabi initialization.
9204 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9205 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9206 functions.
9207 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9208 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9209 variables.
9210 (mips_linux_init_abi): Append signal trampoline unwinders.
9211
9212 2004-03-24 Andrew Cagney <cagney@redhat.com>
9213
9214 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9215 * tramp-frame.c: Include "gdb_assert.h".
9216 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9217 correct sizeof.
9218 (tramp_frame_append): Validate the tramp frame's instructions.
9219 * Makefile.in (tramp-frame.o): Update dependencies.
9220
9221 2004-03-23 Andrew Cagney <cagney@redhat.com>
9222
9223 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9224
9225 2004-03-23 Andrew Cagney <cagney@redhat.com>
9226
9227 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9228 Nasser as past testsuite/lib/ (and other) maintainers.
9229
9230 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9231
9232 * infcmd.c (attach_command): Reread symbols if we already have
9233 an exec file.
9234
9235 2004-03-23 Andrew Cagney <cagney@redhat.com>
9236
9237 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9238
9239 2004-03-23 Andrew Cagney <cagney@redhat.com>
9240
9241 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9242 * gdbarch.h, gdbarch.c: Re-generate.
9243 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9244 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9245 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9246 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9247 (DEPRECATED_SIGTRAMP_START): Update.
9248 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9249 (DEPRECATED_SIGTRAMP_START): Update.
9250 * blockframe.c (find_pc_sect_partial_function): Update.
9251 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9252
9253 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9254
9255 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9256 if necessary.
9257
9258 2004-03-23 Andrew Cagney <cagney@redhat.com>
9259
9260 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9261 predicate, deprecate.
9262 * gdbarch.h, gdbarch.c: Re-generate.
9263 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9264 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9265 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9266 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9267 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9268 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9269 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9270 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9271 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9272 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9273 * blockframe.c (find_pc_partial_function): Update.
9274 * breakpoint.c (bpstat_what): Update.
9275 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9276 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9277 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9278 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9279 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9280 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9281 * i386-nto-tdep.c (i386nto_init_abi): Update.
9282 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9283 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9284 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9285 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9286 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9287 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9288 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9289 * infrun.c (pc_in_sigtramp): Update.
9290 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9291 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9292 * mips-tdep.c (mips_gdbarch_init): Update.
9293 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9294 * ppc-linux-tdep.c: Update comment.
9295 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9296 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9297 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9298 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9299 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9300 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9301 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9302 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9303 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9304 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9305
9306 2004-03-23 Andrew Cagney <cagney@redhat.com>
9307
9308 * tramp-frame.h, tramp-frame.h: New files.
9309 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9310 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9311
9312 * Makefile.in: Update all dependencies.
9313
9314 2004-03-23 Andrew Cagney <cagney@redhat.com>
9315
9316 * Makefile.in (trad_frame_h): Add $(frame_h).
9317 * trad-frame.h: Update copyright. Include "frame.h".
9318 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9319 (trad_frame_set_id, trad_frame_get_id): Declare.
9320 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9321 * trad-frame.c: Update copyright.
9322 (struct trad_frame_cache): Define.
9323 (trad_frame_cache_zalloc): New function.
9324 (trad_frame_set_id, trad_frame_get_id): New functions.
9325 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9326
9327 2004-03-22 Andrew Cagney <cagney@redhat.com>
9328
9329 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9330 s390_pltstub_unwind_cache.
9331 (s390_stub_frame_unwind_cache): Rename
9332 s390_pltstub_frame_unwind_cache.
9333 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9334 (s390_stub_frame_prev_register): Rename
9335 s390_pltstub_frame_prev_register.
9336 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9337 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9338
9339 From Ulrich Weigand:
9340 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9341 pointer calls like PLT calls.
9342
9343 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9344
9345 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9346 PC rather than the partial function start address. Use the start
9347 address to sanity check the found PDR.
9348
9349 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9350
9351 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9352 linux_handle_extended_wait.
9353
9354 2004-03-22 Andrew Cagney <cagney@redhat.com>
9355
9356 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9357 function.
9358
9359 * frame.h (generic_pop_current_frame): Delete declaration.
9360 (deprecate_pop_dummy_frame): Deprecate
9361 generic_pop_dummy_frame.
9362 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9363 (generic_pop_current_frame): Delete function.
9364 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9365 generic_pop_current_frame.
9366 * v850-tdep.c (v850_pop_frame): Update.
9367 * mcore-tdep.c (mcore_pop_frame): Update.
9368 * sh64-tdep.c (sh64_pop_frame): Update.
9369 * h8300-tdep.c (h8300_pop_frame): Update.
9370
9371 2004-03-22 Andrew Cagney <cagney@redhat.com>
9372
9373 * frame.h (deprecated_pc_in_call_dummy): Rename
9374 generic_pc_in_call_dummy.
9375 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9376 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9377 generic_pc_in_call_dummy.
9378 (pc_in_dummy_frame): Make static.
9379 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9380 * gdbarch.h, gdbarch.c: Re-generate.
9381 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9382 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9383 (legacy_get_prev_frame): Ditto.
9384 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9385 comment.
9386
9387 2004-03-21 Andrew Cagney <cagney@redhat.com>
9388
9389 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9390 declaration and out-of-date comment.
9391 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9392 Delete function.
9393 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9394 deprecated_pc_in_call_dummy.
9395
9396 * infrun.c (handle_inferior_event): For non legacy frames, use the
9397 frame ID and frame type to identify a signal trampoline. Update
9398 comments.
9399
9400 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9401
9402 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9403 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9404
9405 2004-03-21 Andrew Cagney <cagney@redhat.com>
9406
9407 * frame-unwind.h: Update copyright.
9408 (struct frame_data): Add opaque declaration.
9409 (frame_sniffer_ftype): Declare.
9410 (struct frame_unwind): Add "unwind_data" and "sniffer".
9411 (frame_unwind_register_unwinder): Declare.
9412 (frame_unwind_find_by_frame): Add parameter "this_cache".
9413 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9414 (legacy_get_prev_frame, legacy_get_prev_frame)
9415 (get_frame_type): Pass the prologue_cache to
9416 frame_unwind_find_by_frame.
9417 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9418 "unwinder".
9419 (frame_unwind_register_unwinder): New function.
9420 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9421
9422 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9423
9424 * bcache.c (print_percentage): Use floating point to avoid
9425 incorrect results when portion*100 overflows.
9426
9427 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9428
9429 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9430 (ppc_linux_init_extra_frame_info)
9431 (ppc_linux_frameless_function_invocation)
9432 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9433 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9434 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9435 (rs6000_frame_chain): Delete declarations.
9436 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9437 (ppc_linux_init_extra_frame_info)
9438 (ppc_linux_frameless_function_invocation)
9439 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9440 (ppc_linux_init_abi): Remove registration of above deleted functions.
9441 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9442 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9443 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9444 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9445 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9446 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9447 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9448 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9449 frame management for all OSABIs.
9450
9451 2004-03-19 Andrew Cagney <cagney@redhat.com>
9452
9453 Committed by Kevin Buettner <kevinb@redhat.com>.
9454
9455 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9456 Update copyright.
9457 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9458 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9459 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9460 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9461 unwinders. #ifdef legacy frame code.
9462 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9463 "frame-base.h".
9464 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9465 (struct rs6000_frame_cache, rs6000_frame_cache)
9466 (rs6000_frame_this_id, rs6000_frame_prev_register)
9467 (rs6000_frame_sniffer, rs6000_frame_unwind)
9468 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9469 (rs6000_frame_base): Implement a traditional frame unwinder.
9470 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9471 frame unwinder.
9472
9473 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9474
9475 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9476 breakpoint address for watchpoints or the catch eventpoints.
9477 Add new paramter ``bptype''. Adjust all callers.
9478
9479 2004-03-19 Andrew Cagney <cagney@redhat.com>
9480
9481 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9482
9483 * PROBLEMS: Delete note that ARM does not use frame code, problem
9484 fixed.
9485
9486 2004-03-18 Andrew Cagney <cagney@redhat.com>
9487
9488 * stack.c (return_command): Delete code wrapped in #ifdef
9489 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9490
9491 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9492
9493 2004-03-18 Andrew Cagney <cagney@redhat.com>
9494
9495 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9496 DEPRECATED_IN_SIGTRAMP.
9497 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9498 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9499 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9500 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9501 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9502 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9503 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9504 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9505 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9506 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9507
9508 2004-03-18 Andrew Cagney <cagney@redhat.com>
9509
9510 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9511 (struct frame_base_table_entry): Define.
9512 (struct frame_base_table): Re-implement as a linked list.
9513 (frame_base_init): Re-implement.
9514 (frame_base_table): Delete function.
9515 (append_predicate): Delete function.
9516 (frame_base_append_sniffer): Update.
9517 (frame_base_set_default): Update.
9518 (frame_base_find_by_frame): Update.
9519 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9520 * Makefile.in (frame-base.o): Update dependencies.
9521
9522 2004-03-17 Andrew Cagney <cagney@redhat.com>
9523
9524 * frame.c (legacy_get_prev_frame): Pass correct frame to
9525 frame_unwind_find_by_frame.
9526
9527 2004-03-17 David Carlton <carlton@kealia.com>
9528
9529 * NEWS: Mention C++ nested types and namespaces
9530
9531 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9532
9533 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9534 and "Regressions since gdb 5.3.". Add known regressions since
9535 gdb 6.0.
9536
9537 2004-03-16 David Carlton <carlton@kealia.com>
9538
9539 * dwarf2read.c (process_structure_scope): Process children even
9540 when we're a declaration.
9541
9542 2004-03-16 Andrew Cagney <cagney@redhat.com>
9543
9544 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9545 * blockframe.c (find_pc_partial_function)
9546 (find_pc_sect_partial_function): Merge into a single
9547 find_pc_partial_function.
9548
9549 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9550
9551 * i386bsd-nat.c: s/regno/regnum/g.
9552 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9553 FP0_REGNUM.
9554 (store_inferior_registers): Likewise.
9555
9556 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9557
9558 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9559 of i387_fill_fsave.
9560 (store_inferior_registers): Call i387_collect_fsave and
9561 i387_collect_fxsave instead of i387_fill_fsave and
9562 i387_fill_fxsave.
9563
9564 2004-03-15 Andrew Cagney <cagney@redhat.com>
9565
9566 * Makefile.in (frame-unwind.o): Update dependencies.
9567 * frame-unwind.c: Include "gdb_obstack.h".
9568 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9569 parameter.
9570 (append_predicate): Delete function.
9571 (struct frame_unwind_table_entry): New structure.
9572 (struct frame_unwind_table): Replace "sniffer" with "head" and
9573 "tail".
9574 (frame_unwind_append_sniffer): Update.
9575 (frame_unwind_find_by_frame): Update.
9576 (_initialize_frame_unwind): Registe frame_unwind_init using
9577 gdbarch_data_register_pre_init.
9578
9579 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9580
9581 * i386bsd-nat.c: Update copyright year.
9582 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9583 define unconditionally.
9584
9585 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9586
9587 * i387-tdep.h (i387_collect_fsave): New prototype.
9588 * i387-tdep.c (i387_collect_fsave): New function containing most
9589 of the code from i387_fill_fsave.
9590 (i387_fill_fsave): Call i387_collect_fsave.
9591
9592 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9593
9594 * i386-linux-tdep.c: Update copyright year.
9595 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9596 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9597 svr4_ilp32_link_map_offsets instead of
9598 i386_linux_svr4_fetch_link_map_offsets.
9599
9600 2004-03-15 David Carlton <carlton@kealia.com>
9601
9602 Fix for PR c++/1553:
9603 * dwarf2read.c (read_structure_type): Determine type name by
9604 calling determine_class_name.
9605 (determine_class_name): New.
9606 (determine_prefix): Look at TYPE_TAG_NAME and call
9607 determine_class_name when appropriate.
9608 (determine_prefix_aux, class_name): Delete.
9609 (read_namespace): Set die->type.
9610
9611 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9612
9613 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9614 unused macro definition. The definition in target.h (or perhaps
9615 elsewhere) takes precedence.
9616
9617 2004-03-15 Andrew Cagney <cagney@redhat.com>
9618
9619 * ppc-tdep.h: Update copyright.
9620 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9621 function signatures to match "regsets.h".
9622 * ppc-linux-tdep.c: Include "regset.h".
9623 (ELF_GREGSET_SIZE): Delete.
9624 (right_supply_register): New function.
9625 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9626 using right_supply_register.
9627 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9628 functions.
9629 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9630 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9631 (_initialize_ppc_linux_tdep): Do not register
9632 ppc_linux_regset_core_fns.
9633 (ppc_linux_regset_from_core_section): Replace
9634 fetch_core_registers.
9635 (ppc_linux_regset_core_fns): Delete.
9636 * ppc-linux-nat.c: (right_fill_reg): New function.
9637 (supply_gregset): Update call to ppc_linux_supply_gregset.
9638 (fill_gregset): Clear the register set, use right_fill_reg.
9639 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9640 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9641
9642 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9643 unsigned.
9644
9645 2004-03-15 Andrew Cagney <cagney@redhat.com>
9646
9647 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9648 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9649 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9650 and register_gdbarch_data.
9651 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9652 (struct gdbarch_data): Replace "init" by "pre_init" and
9653 "post_init".
9654 * gdbarch.h, gdbarch.c: Re-generate.
9655 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9656 with"obstack", use OBSTACK_ZALLOC.
9657 (dwarf2_frame_ops): Delete.
9658 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9659 (dwarf2_frame_init_reg): Use gdbarch_data.
9660 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9661 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9662 (_initialize_svr4_solib): Update.
9663 * user-regs.c (_initialize_user_regs): Update.
9664 * reggroups.c (_initialize_reggroup): Update.
9665 * regcache.c (_initialize_regcache): Update.
9666 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9667 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9668 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9669 * frame-unwind.c (_initialize_frame_unwind): Update.
9670 * frame-base.c (_initialize_frame_base): Update.
9671 * user-regs.c (user_reg_add): Update.
9672 * reggroups.c (reggroup_add): Update.
9673 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9674 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9675 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9676 * frame-base.c (frame_base_table): Update.
9677 * remote.c (_initialize_remote): Update.
9678 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9679
9680 2004-03-15 Andrew Cagney <cagney@redhat.com>
9681
9682 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9683
9684 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9685
9686 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9687 * frv-linux-tdep.c: New file.
9688 * frv-tdep.c (struct gdbarch_tdep): Add new field
9689 ``sigcontext_reg_addr''.
9690 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9691 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9692 (frv_sigramp_frame_sniffer): New functions.
9693 (frv_sigtramp_frame_unwind): New static global.
9694 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9695 sniffers.
9696 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9697 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9698
9699 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9700
9701 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9702 but not via a call to error(), when unable to read memory.
9703
9704 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9705
9706 * frv-tdep.c (frv_call_dummy_words): Delete.
9707 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9708
9709 2004-03-15 Andrew Cagney <cagney@redhat.com>
9710
9711 * infrun.c (handle_step_into_function, step_over_function): Only
9712 update and use STEP_FRAME_ID when the system is using legacy
9713 frames. Update comments.
9714
9715 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9716
9717 * amd64-linux-tdep.h: Remove file.
9718 * amd64-linux-tdep.c: Don't include "inferior.h" and
9719 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9720 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9721 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9722 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9723 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9724 macros.
9725 (user_to_gdb_regmap): Remove variable.
9726 (amd64_linux_gregset_reg_offset): New variable.
9727 (amd64_core_fns): Remove variable.
9728 (fetch_core_registers): Remove function.
9729 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9730 functions.
9731 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9732 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9733 * Makefile.in (amd64_linux_tdep_h): Remove.
9734 (amd64-linux-nat.o): Update dependencies.
9735 (amd64-linux-tdep.o): Update dependencies.
9736
9737 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9738 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9739 functions.
9740 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9741
9742 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9743 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9744
9745 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9746
9747 * dwarf2read.c (read_structure_type): Rename from
9748 read_structure_scope. Don't create a symbol or call process_die.
9749 Return immediately if die->type is set. Call read_type_die before
9750 dwarf2_add_member_fn.
9751 (process_structure_scope): New function.
9752 (read_enumeration_type, process_enumeration_scope): New functions,
9753 broken out from read_enumeration. Don't create the enumeration
9754 type if it has already been created.
9755 (read_enumeration): Removed.
9756 (process_die): Call read_structure_type, process_structure_scope,
9757 read_enumeration_type, and process_enumeration_scope. Just call
9758 new_symbol for base and subrange types. Add a comment about other
9759 type dies.
9760 (read_type_die): Call read_enumeration_type.
9761 (add_partial_structure, new_symbol): Update comments.
9762
9763 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9764
9765 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9766
9767 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9768
9769 * tui/tui-win.h (tui_get_cmd_list): Declare.
9770 * tui/tui-win.c (tui_command): New function.
9771 (tui_get_cmd_list): New function.
9772 (_initialize_tui_win): Moved initialization of tui command in
9773 tui_get_cmd_list.
9774
9775 * tui/tui-data.c (init_content_element): Setup new data members.
9776 (init_win_info): Likewise.
9777 (free_content_elements): Free it.
9778 * tui/tui-data.h (struct tui_data_element): Store the register
9779 content to print.
9780 (struct tui_data_info): Keep the current register group.
9781
9782 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9783
9784 * tui/tui-regs.h (tui_show_registers): Update prototype.
9785 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9786 (tui_resize_all): No need to calculate anything for register window.
9787 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9788 (tui_set_register_element, tui_set_general_regs_content): Remove.
9789 (tui_set_special_regs_content): Remove.
9790 (tui_set_general_and_special_regs_content): Remove.
9791 (tui_set_float_regs_content): Remove.
9792 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9793 (tui_set_regs_content): Remove.
9794 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9795 (tui_v_show_registers_command_support): Remove.
9796 (tui_show_registers): Use a reggroup to specify the registers to show.
9797 (tui_show_register_group): New function.
9798 (tui_display_registers_from): Compute the layout of register window
9799 and refresh with new API; be sure to delete old register windows.
9800 (tui_check_register_values): Update to use tui_get_register and
9801 tui_display_data.
9802 (tui_display_register): Just refresh the register window part.
9803 (tui_register_format): Format registers and save in tui_data_element.
9804 (tui_get_register): New to combine tui_reg_value_has_changed and
9805 tui_get_register_raw_value; fix to use the new gdb API.
9806 (tui_show_float_command): Renamed tui_reg_float_command.
9807 (tui_show_general_command): Renamed tui_reg_general_command.
9808 (tui_show_special_command): Renamed tui_reg_system_command.
9809 (_initialize_tui_regs): Remove unused commands.
9810
9811 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9812
9813 * NEWS (New native configurations): Mention OpenBSD/amd64.
9814
9815 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9816 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9817 Remove defines.
9818 * config/i386/nm-fbsd64.h: Likewise.
9819 * config/i386/nm-obsd.h: Likewise.
9820 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9821 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9822
9823 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9824
9825 * frv-tdep.c (set_variant_scratch_registers): New function.
9826 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9827 New constants.
9828
9829 From Richard Sandiford <rsandifo@redhat.com>:
9830 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9831
9832 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9833
9834 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9835 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9836 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9837 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9838 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9839 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9840 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9841 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9842 definitions from frv-tdep.c to frv-tdep.h.
9843
9844 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9845
9846 Add shared library support for FR-V FDPIC ABI:
9847 * Makefile.in (solib-frv.o): Add dependencies.
9848 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9849 New functions.
9850 (frv_push_dummy_call): Add support for FDPIC ABI.
9851 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9852 for FDPIC ABI.
9853 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9854 (frv_fdpic_find_canonical_descriptor): Declare.
9855 * solib-frv.c: New file.
9856 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9857 * config/frv/tm-frv.h (solib.h): Include.
9858
9859 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9860
9861 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9862 (frv-tdep.o): Update dependencies.
9863 * frv-tdep.h: New file.
9864 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9865 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9866 constants.
9867 (struct gdbarch_tdep): Add new member ``frv_abi''.
9868 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9869 functions.
9870 (new_variant): Set ``frv_abi'' field.
9871 (gdb_arch_init): Detect FDPIC executables.
9872
9873 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9874
9875 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9876 wrapper.
9877
9878 2004-03-11 Andrew Cagney <cagney@redhat.com>
9879
9880 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9881
9882 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9883
9884 * solist.h (master_so_list): New function.
9885 * solib.c (master_so_list): Likewise.
9886 * solib-svr4.c (enable_break): Iterate over so_list entries
9887 obtained from master list instead of entries obtained directly
9888 via svr4_current_sos().
9889
9890 2004-03-10 Ben Elliston <bje@gnu.org>
9891
9892 * MAINTAINERS: Update my mail address.
9893
9894 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9895
9896 * remote-m32r-sdi.c: Support hardware watchpoint.
9897
9898 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * user-regs.c: Update copyright years.
9901 (struct user_regs): Rename to gdb_user_regs.
9902 (append_user_reg, builtin_user_regs, user_regs_init)
9903 (user_reg_add, user_reg_map_name_to_regnum)
9904 (usernum_to_user_reg): Update.
9905
9906 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9909 (skip_children): New functions.
9910 (locate_pdi_sibling): Call skip_children.
9911
9912 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9913
9914 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9915 * gdbtypes.c (check_typedef): Update comments.
9916
9917 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9920 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9921 pointer. Update comment about comp_unit_head.
9922 (struct abbrev_info): Shorten two int flags.
9923 (dwarf_alloc_abbrev): Take a CU argument.
9924 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9925 each time through the loop. Update cleanup argument.
9926 (psymtab_to_symtab_1): Update cleanup call.
9927 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9928 abbrev_obstack.
9929 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9930 Just call obstack_free and clear the pointer.
9931
9932 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9933
9934 * infrun.c (handle_inferior_event): Remove short-circuit code for
9935 events in a different thread.
9936
9937 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9940 print the whole transfer.
9941 (initialize_targets): Update description of "set debug target".
9942
9943 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9946
9947 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9948
9949 * MAINTAINERS (write after approval): Add myself.
9950
9951 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9952
9953 * sh-tdep.c (sh_print_registers_info): Use for loop.
9954 Don't skip multiple registers when a float register is encountered.
9955
9956 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9957
9958 Fix PR tdep/1291.
9959 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9960 to official SH documentation.
9961
9962 2004-03-07 Andrew Cagney <cagney@redhat.com>
9963
9964 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9965 unused function.
9966
9967 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9970 (arm_get_next_pc): Handle BX and BLX.
9971
9972 2004-03-07 Andrew Cagney <cagney@redhat.com>
9973
9974 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9975 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9976 HPPA_SP_REGNUM.
9977 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9978 (hppa_target_read_fp): Delete.
9979 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9980 register_virtual_size, max_register_raw_size,
9981 max_register_virtual_size, register_byte, register_size,
9982 target_read_fp, fp_regnum, and register_bytes. Set register_type
9983 instead of register_virtual_type.
9984 (hppa32_register_type, hppa64_register_type): Replace
9985 hppa32_register_virtual_type and hppa64_register_virtual_type.
9986 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9987 (HPPA_FP_REGNUM): Define.
9988
9989 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9990
9991 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9992 (pa_do_registers_info): Delete.
9993 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9994 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9995 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9996
9997 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9998 GDB_TARGET_IS_HPPA code.
9999 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10000 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10001 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10002 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10003 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10004 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10005 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10006 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10007 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10008 (hppa_frameless_function_invocation, hppa64_store_return_value)
10009 (hppa_store_struct_return, hppa64_extract_return_value)
10010 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10011 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10012 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10013 (find_proc_framesize, deposit_21, restore_pc_queue)
10014 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10015 (rp_saved, pc_in_linker_stub): Delete.
10016
10017 Unconditionally enable 64-bit frame and ABI code.
10018 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10019 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10020 push_dummy_frame, fix_call_dummy, push_arguments,
10021 call_dummy_location, extract_return_value, use_struct_convention,
10022 store_return_value, store_struct_return, saved_pc_after_call,
10023 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10024 frame_chain, frame_chain_valid, frameless_function_invocation,
10025 frame_saved_pc, and pop_frame.
10026
10027 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10028 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10029 (hppa_gdbarch_init): Do not set PC_REGNUM.
10030
10031 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10032
10033 * config/alpha/tm-fbsd.h: Remove file.
10034 * config/alpha/fbsd.mt: Tweak comment.
10035 (TM_FILE): Set to tm-alpha.h.
10036
10037 2004-03-05 Andrew Cagney <cagney@redhat.com>
10038
10039 * infrun.c (step_over_function): When non-legacy code, and no
10040 step_frame_id, use the unwinder to get the caller's frame ID.
10041
10042 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10043
10044 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10045 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10046 bfd_arch_unknown. Adjust comment.
10047
10048 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10049 * i386obsd-tdep.c: Correct spelling in comment.
10050 * i386nbsd-tdep.c: Correct spelling in comment.
10051 * sparc-tdep.c: Correct spelling in comments.
10052
10053 2004-03-05 David Carlton <carlton@kealia.com>
10054
10055 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10056 bug.
10057
10058 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10059
10060 * sparc-tdep.c: Fix typo in comment.
10061
10062 2004-03-04 J. Brobecker <brobecker@gnat.com>
10063
10064 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10065
10066 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10067
10068 * dwarf2read.c: Add comment describing memory lifetimes.
10069 (struct dwarf2_pinfo): Update comment.
10070 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10071 (read_enumeration, new_symbol): Don't use obsavestring.
10072
10073 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10074
10075 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10076 instead of amd64_fill_fxsave.
10077 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10078 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10079
10080 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10081 Reorganize code a bit.
10082
10083 2004-03-04 Orjan Friberg <orjanf@axis.com>
10084
10085 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10086 when the frame pointer is pushed. Don't set the frame pointer's
10087 address on the stack unless it's actually located there.
10088 Set the SRP's address on the stack correctly when the PC is still in
10089 the prologue.
10090 (cris_return_value): New function.
10091 (cris_gdbarch_init): Clear deprecated store_return_value,
10092 extract_return_value.
10093
10094 2004-03-02 Jim Blandy <jimb@redhat.com>
10095
10096 * stabsread.c (reg_value_complaint): The maximum register number
10097 is one less than the number of registers.
10098
10099 2004-03-02 Andrew Cagney <cagney@redhat.com>
10100
10101 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10102 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10103 trailing comma and redundant assignment of I386_ST0_REGNUM.
10104 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10105 32-bit segment registers.
10106
10107 2004-03-01 Andrew Cagney <cagney@redhat.com>
10108
10109 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10110 use frame_relative_level and get_next_frame.
10111
10112 2004-02-29 Andrew Cagney <cagney@redhat.com>
10113
10114 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10115 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10116 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10117 Delete macro.
10118
10119 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * inflow.c (terminal_inferior): Don't give up the terminal if we
10122 previously couldn't get the inferior's terminal state.
10123
10124 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10125
10126 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10127 PC_REGNUM.
10128
10129 2004-02-28 Andrew Cagney <cagney@redhat.com>
10130
10131 * NEWS: Refer to GDB 6.1.
10132 * README: Refer to GDB 6.1.
10133 * PROBLEMS: Refer to GDB 6.1.
10134
10135 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10136
10137 * thread-db.c (disable_thread_signals): Remove unused function.
10138
10139 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10140
10141 * amd64-nat.c: Include "gdb_string.h".
10142 (amd64_collect_native_gregset): Zero-extend the 32-bit
10143 general-purpose registers and %eip.
10144
10145 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10146 * amd64-tdep.c (amd64_collect_fxsave): New function.
10147 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10148
10149 * i387-tdep.h: Update copyright year.
10150 (i387_collect_fxsave): New prototype.
10151 * i387-tdep.c: Update copyright year.
10152 (i387_collect_fxsave): New function containing most of the code
10153 from i387_fill_fxsave.
10154 (i387_fill_fxsave): Call i387_collect_fxsave.
10155
10156 2004-02-28 Andrew Cagney <cagney@redhat.com>
10157
10158 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10159 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10160
10161 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10162
10163 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10164
10165 2004-02-28 Andrew Cagney <cagney@redhat.com>
10166
10167 * utils.c: Use "", instead of <>, to include readline.
10168 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10169 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10170 * source.c, solib.c, exec.c, event-top.c: Ditto.
10171 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10172 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10173 * Makefile.in: Update all dependencies.
10174 (readline_tilde_h, readline_history_h): Define.
10175 (readline_headers): Delete.
10176
10177 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10178
10179 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10180 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10181 "config/i386/tm-lx64.h".
10182
10183 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10184 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10185 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10186
10187 2004-02-28 Andrew Cagney <cagney@redhat.com>
10188
10189 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10190
10191 * breakpoint.c (_initialize_breakpoint): Use
10192 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10193 Add help to show command.
10194
10195 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10196
10197 * i386-nat.c: Reformat to be closer to coding standards.
10198 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10199 `retval'. Make variables `align' and `size' local to while-loop.
10200 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10201 (_initialize_i386_nat): New prototype.
10202
10203 * tui/tui.c: Include <readline/readline.h> instead of
10204 "readline/readline.h". Include it after <term.h> and
10205 "gdb_curses.h".
10206
10207 2004-02-27 Andrew Cagney <cagney@redhat.com>
10208
10209 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10210 the new frame unwind code.
10211 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10212 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10213 PCOQ_HEAD_REGNUM.
10214
10215 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10216 "return_value" and "push_dummy_call".
10217 (hppa32_use_struct_convention): Delete unused function.
10218 (hppa32_store_return_value): Delete unused function.
10219 (hppa32_extract_return_value): Delete unused function.
10220 (hppa32_stack_align): Delete function.
10221
10222 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10223
10224 * coffread.c (enter_linenos): Don't let rawptr reference memory
10225 outside linetab[]'s limits.
10226
10227 2004-02-27 Andrew Cagney <cagney@redhat.com>
10228
10229 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10230 inferior stack space - the stack needs to grow upwards.
10231 (hppa32_frame_align): New function.
10232 (hppa64_frame_align): Replace hppa_frame_align.
10233 (hppa_gdbarch_init): Update.
10234
10235 2004-02-26 Orjan Friberg <orjanf@axis.com>
10236
10237 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10238 (dwarf2-frame.h): Include.
10239 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10240 Remove static variables related to ABI setting.
10241 (struct gdbarch_tdep): Remove cris_abi member.
10242 (struct frame_extra_info): Remove.
10243 (cris_unwind_cache, stack_item): New structs.
10244 (cris_frame_unwind, cris_frame_base): New variables.
10245 (push_stack_item, pop_stack_item)
10246 (cris_frame_unwind_cache, cris_frame_this_id)
10247 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10248 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10249 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10250 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10251 (cris_reg_struct_has_addr): New functions.
10252 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10253 (cris_frame_saved_pc, cris_saved_pc_after_call,
10254 (cris_store_struct_return, cris_frameless_function_invocation)
10255 (cris_pop_frame, cris_skip_prologue_main)
10256 (cris_abi_original_store_return_value)
10257 (cris_abi_v2_store_return_value)
10258 (cris_abi_original_extract_return_value)
10259 (cris_abi_v2_extract_return_value)
10260 (cris_abi_original_reg_struct_has_addr)
10261 (cris_abi_v2_reg_struct_has_addr)
10262 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10263 (cris_push_return_address, cris_abi_update): Remove.
10264 (_initialize_cris_tdep): Remove ABI command.
10265 (cris_dump_tdep): Ditto.
10266 (cris_gdbarch_init): Remove ABI command.
10267 Set store_return_value, extract_return_value, push_dummy_code,
10268 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10269 frame_unwind_append_sniffer, frame_base_set_default.
10270 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10271 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10272 sizeof_call_dummy_words, get_saved_register, push_return_address,
10273 pop_frame, store_struct_return, frame_init_saved_regs,
10274 init_extra_frame_info, frameless_function_invocation, frame_chain,
10275 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10276 dummy_write_sp.
10277
10278 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10279
10280 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10281 * valprint.c (print_hex_chars): Change from static to external.
10282 (print_char_chars): New function.
10283 * printcmd.c (print_scalar_formatted): For integer and enum types
10284 that are longer than LONGEST, perform processing via appropriate
10285 print_*_chars routines.
10286
10287 2004-02-26 Andrew Cagney <cagney@redhat.com>
10288
10289 * Makefile.in: Update dependencies.
10290 Changes from Ulrich Weigand,
10291 * s390-tdep.c: Include "dwarf2-frame.h".
10292 (s390_dwarf2_frame_init_reg): New function.
10293 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10294 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10295
10296 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10297
10298 * breakpoint.c (pending_break_support): New setting variable.
10299 (break_command_1): Account for pending_break_support setting
10300 when creating pending breakpoints.
10301 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10302 (_initialize_breakpoint): Add "set breakpoint pending" and
10303 "show breakpoint pending" commands.
10304
10305 2004-02-26 Andrew Cagney <cagney@redhat.com>
10306
10307 Fix PR i18n/1570.
10308 * charset.c (backslashable, backslashed, represented): Remove 'e'
10309 from list of escaped characters, not part of ISO-C.
10310
10311 2004-02-25 J. Brobecker <brobecker@gnat.com>
10312
10313 From Peter Schauer <schauer@pdf.de>:
10314 * tui/tui.c: Move system header includes after local includes.
10315 Fixes a build failure on solaris systems.
10316
10317 2004-02-25 J. Brobecker <brobecker@gnat.com>
10318
10319 * configure.in: Refine the previous change.
10320 * configure: Regenerate.
10321
10322 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10323
10324 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10325 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10326 "amd64-tdep.h" instead of "x86-64-tdep.h".
10327 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10328 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10329 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10330 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10331 and "x86-64-tdep.c".
10332 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10333 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10334 and "x86-64-tdep.c".
10335 * amd64bsd-nat.c: Update copyright year.
10336 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10337 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10338 "x86-64-tdep.h".
10339 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10340 "x86-64-tdep.h".
10341 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10342 "x86-64-tdep.h".
10343 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10344 "x86-64-tdep.h".
10345 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10346 "x86-64-tdep.h".
10347 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10348 "x86-64-tdep.h".
10349 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10350 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10351 * Makefile.in (amd64_linux_tdep_h): Renamed from
10352 x86_64_linux_tdep_h.
10353 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10354 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10355 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10356 (amd64obsd-tdep.o): Update dependencies.
10357 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10358 dependencies.
10359 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10360 dependencies.
10361 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10362 amd64-linux-nat.c amd64-linux-tdep.c.
10363 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10364 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10365 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10366 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10367 amd64-tdep.o and amd64-linux-tdep.o.
10368 (TM_FILE): Set to tm-linux64.h.
10369 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10370 (NAT_FILE): Set to nm-linux64.h.
10371 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10372 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10373 amd64-tdep.o.
10374 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10375 amd64-tdep.o.
10376 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10377 amd64-tdep.o.
10378
10379 2004-02-25 Roland McGrath <roland@redhat.com>
10380
10381 * remote.c (remote_protocol_qPart_auxv): New variable.
10382 (init_all_packet_configs): Initialize it.
10383 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10384 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10385 (show_remote_cmd): Call it.
10386 (_initialize_remote): Initialize commands.
10387 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10388 service TARGET_OBJECT_AUXV requests.
10389
10390 2004-02-25 J. Brobecker <brobecker@gnat.com>
10391
10392 * configure.in: Make sure that the wborder function is available.
10393 Otherwise, search for it in the cur_colr library.
10394 * configure: Regenerate.
10395
10396 2004-02-25 Andrew Cagney <cagney@redhat.com>
10397
10398 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10399
10400 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10401
10402 * config/i386/tm-x86-64linux.h: Tweak comments.
10403
10404 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10405
10406 * MAINTAINERS: Add self to write-after-approval list.
10407
10408 2004-02-25 Andrew Cagney <cagney@redhat.com>
10409
10410 PR cli/1566. Problem found, and fix suggested by David Allan.
10411 * cli/cli-script.c (execute_control_command): Unconditionally
10412 install a cleanup. Default "ret" to "invalid_control". Use
10413 "break" instead of "return" to escape from the switch.
10414
10415 2004-02-24 J. Brobecker <brobecker@gnat.com>
10416
10417 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10418 with the lines macro defined in term.h on AiX.
10419 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10420 a collision with the label_width macro defined in term.h on AiX.
10421
10422 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10423
10424 Committed by Kevin Buettner <kevinb@redhat.com>.
10425
10426 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10427 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10428 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10429 instead of ia64_write_pc().
10430 * ia64-linux-tdep.c (regcache.h): Include.
10431 (ia64_linux_write_pc): New function.
10432
10433 2004-02-23 Roland McGrath <roland@redhat.com>
10434
10435 * auxv.c (info_auxv_command): Fix typos in error messages.
10436
10437 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10438
10439 * x86-64-tdep.h: Tweak comment.
10440 (enum amd64_regnum): New.
10441 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10442 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10443 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10444 (X86_64_XMM1_REGNUM): Removed.
10445 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10446 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10447 prototypes for renamed functions.
10448 * x86-64-tdep.c: Fix typo.
10449 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10450 register numbers.
10451 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10452 Use constants from `enum amd64_regnum' for register numbers.
10453 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10454 (amd64_analyze_prologue, amd64_frame_cache,
10455 amd64_sigtramp_frame_cache): Use constants from `enum
10456 amd64_regnum' for register numbers.
10457 (amd64_supply_fpregset): Adjust for renamed functions.
10458 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10459 `enum amd64_regnum' for register numbers.
10460 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10461 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10462 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10463 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10464 (amd64_linux_fill_gregset): Adjust for renamed macros.
10465 (fetch_core_registers): Adjust for renamed functions.
10466 (amd64_linux_init_abi): Adjust for renamed functions.
10467 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10468 renamed functions.
10469 * amd64-nat.c: Adjust for renamed macros.
10470 * amd64bsd-nat.c (fetch_inferior_registers)
10471 (store_inferior_registers): Use constants from `enum amd64_regnum'
10472 for register numbers. Adjust for renamed variables.
10473 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10474 renamed variables.
10475 (_initialize_amd64fbsd_nat): Use constants from `enum
10476 amd64_regnum' for register numbers.
10477 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10478 `enum amd64_regnum' for register numbers.
10479 (amd64fbsd_init_abi): Adjust for renamed functions.
10480 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10481 `enum amd64_regnum' for register numbers.
10482 (amd64nbsd_init_abi): Adjust for renamed functions.
10483 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10484 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10485 `enum amd64_regnum' for register numbers.
10486 (amd64obsd_init_abi): Adjust for renamed functions.
10487 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10488
10489 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10490
10491 * breakpoint.c (print_one_breakpoint): Do not output spaces
10492 after printing <PENDING> for a pending breakpoint.
10493
10494 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10495
10496 * printcmd.c (print_scalar_formatted): Initialize val_long
10497 to remove compiler warning message.
10498
10499 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10500
10501 * defs.h (nquery, yquery): New prototypes.
10502 * breakpoint.c (break_command_1): Use new nquery interface.
10503 * utils.c (defaulted_query, nquery, yquery): New functions.
10504
10505 2004-02-23 Andrew Cagney <cagney@redhat.com>
10506
10507 * hppa-tdep.c (hppa_frame_align): New function.
10508 (hppa32_push_dummy_call): New function.
10509 (hppa64_push_dummy_call): New function.
10510 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10511 disabled.
10512
10513 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10514 FIX_CALL_DUMMY when push_dummy_call is available.
10515 (call_function_by_hand, push_dummy_code): Ditto.
10516
10517 2004-02-22 Andrew Cagney <cagney@redhat.com>
10518
10519 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10520 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10521 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10522 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10523 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10524 call_dummy_location to ON_STACK.
10525
10526 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10527
10528 * x86-64-linux-tdep.c: Tweak comment.
10529 (amd64_linux_supply_gregset): Renamed from
10530 x86_64_linux_supply_gresget.
10531 (amd64_linux_fill_gregset): Renamed from
10532 x86_64_linux_fill_gregset.
10533 (fetch_core_registers): Adjust for renamed functions.
10534 (amd64_core_fns): Renamed from x86_64_core_fns.
10535 (amd64_linux_sigtramp_start): Renamed from
10536 x86_64_linux_sigtramp_start.
10537 (amd64_linux_pc_in_sigtramp): Renamed from
10538 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10539 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10540 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10541 (amd64_linux_sigcontext_addr): Renamed from
10542 x86_64_linux_sigcontext_addr.
10543 (amd64_linux_sc_reg_offset): Renamed from
10544 x86_64_linux_sc_reg_offset.
10545 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10546 Adjust for renamed functions and variables.
10547 (_initialize_amd64_linux_tdep): Renamed from
10548 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10549 variables.
10550 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10551 Adjust for renamed functions.
10552
10553 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10554 from x86_64_linux_gregset64_reg_offset.
10555 (amd64_linux_gregset32_reg_offset): Rename from
10556 x86_64_linux_gregset64_reg_offset.
10557 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10558 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10559 (amd64_linux_dr_set_control): Renamed from
10560 x86_64_linux_dr_set_control. Adjust for renamed functions.
10561 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10562 Adjust for renamed functions.
10563 (amd64_linux_dr_reset_addr): Renamed from
10564 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10565 (amd64_linux_dr_get_status): Renamed from
10566 x86_64_linux_dr_get_status. Adjust for renamed functions.
10567 (_initialize_amd64_linux_nat): Renamed from
10568 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10569 functions.
10570 * config/i386/nm-x86-64linux.h: Update copyright year.
10571 Adjust for renamed functions.
10572
10573 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10574 amd64fbsd_sigtramp_start.
10575 (amd64fbsd_sigtramp_end_addr): Renamed from
10576 amd64fbsd_sigtramp_end.
10577 (amd64fbsd_init_abi): Adjust for renamed variables.
10578 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10579 variables.
10580 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10581 amd64fbsd_sigtramp_start.
10582 (amd64fbsd_sigtramp_end_addr): Renamed from
10583 amd64fbsd_sigtramp_end.
10584
10585 2004-02-22 Andrew Cagney <cagney@redhat.com>
10586
10587 * hppa-tdep.c (hppa32_return_value): New function.
10588 (hppa64_return_value): New function.
10589 (hppa_gdbarch_init): Set return_value; keep disabled.
10590
10591 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10592 struct-return and inferior function call methods.
10593
10594 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10595 "frame-base.h".
10596 (struct hppa_frame_cache): Define.
10597 (hppa_frame_cache, hppa_frame_this_id): New functions.
10598 (hppa_frame_prev_register): New function.
10599 (hppa_frame_unwind, hppa_frame_base): New variables.
10600 (hppa_frame_unwind_sniffer): New function.
10601 (hppa_frame_base_address, hppa_unwind_pc): New function.
10602 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10603 sniffer, and frame base sniffer; keep disabled.
10604 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10605 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10606
10607 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10608 to predicates for "seriously old code".
10609
10610 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10611 runtime if(0).
10612
10613 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10614 unsigned.
10615 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10616
10617 * config/pa/tm-hppa.h: Update copyright.
10618 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10619 (deprecated_init_frame_pc_default): Delete declaration.
10620 (hppa_frame_init_saved_regs): Delete declaration.
10621 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10622 * hppa-tdep.c: Include "arch-utils.h".
10623 (hppa_gdbarch_init): Set deprecated init_frame_pc
10624 and deprecated frame_init_saved_regs.
10625 (hppa_frame_init_saved_regs): Make static.
10626
10627 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10628
10629 Remove old 386BSD support.
10630 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10631 * configure.host: Remove i[34567]86-*-bsd*.
10632 * configure.tgt: Remove i[34567]86-*-bsd*.
10633 * i386b-nat.c: Removed.
10634 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10635 (i386b-nat.o): Remove dependencies.
10636
10637 * config/i386/i386bsd.mh: Removed.
10638 * config/i386/i386bsd.mt: Removed.
10639 * config/i386/nm-i386bsd.h: Removed.
10640 * config/i386/tm-i386bsd.h: Removed.
10641 * config/i386/xm-i386bsd.h: Removed.
10642
10643 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10644
10645 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10646 (amd64fbsd_init_abi): Set link map offsets.
10647 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10648 (amd64nbsd_init_abi): Set link map offsets.
10649 * amd64obsd-tdep.c: Include "solib-svr4.h".
10650 (amd64obsd_init_abi): Set link map offsets.
10651 * i386fbsd-tdep.c: Include "solib-svr4.h".
10652 (i386fbsd_init_abi): Set link map offsets.
10653 * i386nbsd-tdep.c: Include "solib-svr4.h".
10654 (i386nbsdelf_init_abi): Set link map offsets.
10655 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10656 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10657 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10658 solib-legacy.o and core-aout.o. Reformat.
10659 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10660 solib-svr4.o, solib-legacy.o. Reformat.
10661 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10662 * config/i386/nbsdelf.mh: Reformat.
10663 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10664 solib-svr4.o, solib-legacy.o and corelow.o.
10665 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10666 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10667 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10668 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10669 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10670 (TM_FILE): Set to tm-fbsd.h.
10671 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10672 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10673 solib-svr4.o.
10674 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10675 solib-svr4.o.
10676 (TM_FILE): Set to nm-nbsd.h.
10677 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10678 Simplify shared library support. Don't include "elf/common.h".
10679 (SVR4_SHARED_LIBS): Don't define.
10680 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10681 "solib.h".
10682 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10683 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10684 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10685 Don't include "i386/tm-i386.h". Include "solib.h".
10686 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10687 Don't include "i386/tm-i386.h".
10688 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10689 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10690 Include "i386/xm-i386.h".
10691 (HOST_LONG_DOUBLE_FORMAT): Remove.
10692
10693 Fix OpenBSD/i386 sigtramp recognition.
10694 * i386-tdep.h: Update copyright year.
10695 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10696 (i386bsd_sigtramp_end): New prototypes.
10697 (i386fbsd_sigtramp_start_addr): Renamed from
10698 i386fbsd_sigtramp_start.
10699 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10700 (i386obsd_sigtramp_start_addr): Renamed from
10701 i386obsd_sigtramp_start.
10702 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10703 * i386bsd-tdep.c: Update copyright year.
10704 (i386bsd_pc_in_sigtramp): Make public.
10705 * i386fbsd-nat.c: Update copyright year.
10706 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10707 * i386fbsd-tdep.c: Update copyright year.
10708 (i386fbsd_sigtramp_start_addr): Renamed from
10709 i386fbsd_sigtramp_start.
10710 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10711 (i386fbsdaout_init_abi): Adjust for renamed variables.
10712 * i386obsd-nat.c: Update copyright year.
10713 (_initialize_i386obsd_nat): Adjust for renamed variables.
10714 * i386obsd-tdep.c: Include "target.h".
10715 (i386obsd_page_size): New variable.
10716 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10717 (i386obsd_sigtramp_end): New functions.
10718 (i386obsd_sigtramp_start_addr): Renamed from
10719 i386obsd_sigtramp_start.
10720 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10721 (i386obsd_init_abi): Adjust for renamed variables. Set
10722 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10723 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10724
10725 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10726 trampoline change in OpenBSD kernel.
10727
10728 * amd64-nat.c: Update copyright year.
10729 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10730 architecture from REGCACHE.
10731
10732 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10733 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10734
10735 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10736
10737 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10738 i[34567]86-*-openbsd3.[0-3].
10739 * config/i386/obsdaout.mh: New file.
10740
10741 * config/i386/obsd.mh (MH_FLAGS): Remove.
10742
10743 Fix PR build/1549.
10744 * i386obsd-tdep.c: Update copyright years. Include
10745 "solib-svr4.h".
10746 (i386obsd_init_abi): Don't set regset_from_core_section here.
10747 (i386obsd_aout_init_abi): New function. Set
10748 regset_from_core_section here.
10749 (i386obsd_elf_init_abi): New function.
10750 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10751 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10752 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10753 (TM_FILE): Set to tm-nbsd.h.
10754
10755 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10756 solib-sunos.o.
10757
10758 * solib-svr4.h: Update copyright year.
10759 (svr4_ilp32_fetch_link_map_offsets)
10760 (svr4_lp64_fetch_link_map_offsets): New prototype.
10761 * solib-svr4.c: Update copyright year.
10762 (svr4_ilp32_fetch_link_map_offsets)
10763 (svr4_lp64_fetch_link_map_offsets): New function.
10764
10765 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10768 to the partial symbol table.
10769
10770 2004-02-20 J. brobecker <brobecker@gnat.com>
10771
10772 * PROBLEMS: Add description of problem documented under gdb/1560.
10773
10774 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10775
10776 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10777 comments.
10778 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10779 functions.
10780 (amd64obsd_init_abi): Reorder initializations. Use
10781 amd64obsd_r_reg_offset to initialize the general-purpose register
10782 set details. Set regset_from_core_section.
10783 (_initialize_amd64obsd_tdep): Rename from
10784 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10785 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10786 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10787
10788 * NEWS (New native configurations): Mention OpenBSD/alpha.
10789 * configure.tgt: Add alpha*-*-openbsd*.
10790 * configure.host: Add alpha*-*-openbsd*.
10791 * alphanbsd-tdep.c: Update copyright year.
10792 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10793
10794 2004-02-20 Andrew Cagney <cagney@redhat.com>
10795
10796 Fix PR tdep/1372.
10797 * configure.tgt: Delete target "none-*-*".
10798 * configure.host: Delete host "none-*-*".
10799 * config/none/none.mh: Delete file.
10800 * config/none/none.mt: Delete file.
10801 * config/none/xm-none.h: Delete file.
10802 * config/none/tm-none.h: Delete file.
10803 * config/none/nm-none.h: Delete file.
10804
10805 2004-02-19 Fred Fish <fnf@redhat.com>
10806
10807 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10808 cache->uses_fp prior to setting it.
10809
10810 2004-02-19 Fred Fish <fnf@redhat.com>
10811
10812 Fix for PR breakpoint/1558.
10813 * sh-tdep.c (IS_JSR): New macro.
10814 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10815
10816 2004-02-19 Jim Blandy <jimb@redhat.com>
10817
10818 * findvar.c (value_from_register): Doc fix.
10819
10820 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10821
10822 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10823 type being greater than sizeof of host's LONGEST. Always use
10824 unpack_long() unless format 'f' chosen.
10825
10826 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10827
10828 Committed by Elena Zannoni <ezannoni@redhat.com>
10829
10830 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10831 contains a symbol wich is the best, non-exact match for the given
10832 pc. Update comments.
10833
10834 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10835
10836 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10837 macro, which was part of the now removed Mach 3 port.
10838 * utils.c (request_quit): Ditto.
10839
10840 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10841
10842 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10843 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10844
10845 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10846
10847 Committed by Mark Kettenis <kettenis@gnu.org>.
10848
10849 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10850 Define.
10851
10852 2004-02-18 Andrew Cagney <cagney@redhat.com>
10853
10854 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10855 CONFIG_INSTALL and CONFIG_UNINSTALL.
10856 * configure: Re-generate.
10857 * interps.h (INTERP_TUI): Define.
10858 * Makefile.in: Update dependencies.
10859 (TUI): New macro.
10860 (tui-main.o): Specify dependencies.
10861 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10862 * tui/tui-main.c: New file.
10863
10864 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10865
10866 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10867 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10868 dependencies.
10869 * configure.host: Add x86_64-*-openbsd*.
10870 * configure.tgt: Add x86_64-*-openbsd*.
10871 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10872
10873 * tui/tui.c: Don't include <malloc.h>.
10874
10875 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10876 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10877 amd64nbsd-tdep.c.
10878
10879 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10880 static. Remove extraneous whitespace.
10881 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10882 static.
10883
10884 2004-02-17 Jim Blandy <jimb@redhat.com>
10885
10886 * findvar.c (value_from_register): Doc fix.
10887
10888 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10889
10890 Committed by Jim Blandy <jimb@redhat.com>.
10891
10892 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10893 CORE_ADDR as type for selectors. Correct types for GNU run time
10894 message lookup function to use double indirection.
10895 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10896 * objc-lang.h (lookup_child_selector): Adapt prototype.
10897
10898 * s390-nat.c (SUBOFF): New macro.
10899 (supply_gregset, fill_gregset): Use it to handle debugging
10900 of 32-bit exectuables running under a 64-bit kernel.
10901 * s390-tdep.c: Include "solib-svr4.h".
10902 (s390_svr4_fetch_link_map_offset): New function.
10903 (s390x_svr_fetch_link_map_offset): Likewise.
10904 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10905 * Makefile.in (s390-tdep.o): Update dependencies.
10906
10907 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10908 "frame-unwind.h".
10909 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10910 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10911 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10912 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10913 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10914 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10915 S390_SIGNAL_FRAMESIZE,
10916 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10917 (struct frame_extra_info): Remove.
10918 (s390_memset_extra_info): Remove.
10919 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10920 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10921 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10922 (is_rse): Renamed to ...
10923 (is_rsy): ... this. Support long displacements.
10924 (is_rxe): Renamed to ...
10925 (is_rxy): ... this. Support long displacements.
10926 (compute_x_addr): Support long displacements.
10927 (struct s390_prologue_data): New data type.
10928 (s390_on_stack): Change API to use struct s390_prologue_data.
10929 (s390_store): Reimplement.
10930 (s390_load): New function.
10931 (s390_get_signal_frame_info): Remove.
10932 (s390_get_frame_info): Remove, replace by ...
10933 (s390_analyze_prolog): ... this new function.
10934 (s390_check_function_end): Remove.
10935 (s390_function_start): Remove.
10936 (s390_frameless_function_invokation): Remove.
10937 (s390_is_sigreturn): Remove.
10938 (s390_init_frame_pc_first): Remove.
10939 (s390_init_frame_extra_info): Remove.
10940 (s390_frame_init_saved_regs): Remove.
10941 (s390_frame_saved_pc_nofix): Remove.
10942 (s390_frame_saved_pc): Remove.
10943 (s390_frame_chain): Remove.
10944 (s390_fp_regnum, s390_read_fp): Remove.
10945 (s390_pop_frame_regular, s390_pop_frame): Remove.
10946 (s390_saved_pc_after_call): Remove.
10947 (s390_skip_prologue): Reimplement.
10948 (s390_in_function_epilogue_p): Support long displacements.
10949 (struct s390_unwind_cache): New data structure.
10950 (s390_frame_unwind_cache): New function.
10951 (s390_prologue_frame_unwind_cache): Likewise.
10952 (s390_backchain_frame_unwind_cache): Likewise.
10953 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10954 (s390_frame_unwind): Define.
10955 (s390_frame_sniffer): New function.
10956 (struct s390_pltstub_unwind_cache): New data structure.
10957 (s390_pltstub_frame_unwind_cache): New function.
10958 (s390_pltstub_frame_this_id): Likewise.
10959 (s390_pltstub_frame_prev_register): Likewise.
10960 (s390_pltstub_frame_unwind): Define.
10961 (s390_pltstub_frame_sniffer): New function.
10962 (struct s390_sigtramp_unwind_cache): New data structure.
10963 (s390_sigtramp_frame_unwind_cache): New function.
10964 (s390_sigtramp_frame_this_id): Likewise.
10965 (s390_sigtramp_frame_prev_register): Likewise.
10966 (s390_sigtramp_frame_unwind): Define.
10967 (s390_sigtramp_frame_sniffer): New function.
10968 (s390_frame_base_address, s390_local_base_address): New functions.
10969 (s390_frame_base): Define.
10970 (s390_unwind_pc, s390_unwind_sp): New function.
10971 (s390_push_dummy_call): Use new frame base location.
10972 (s390_unwind_dummy_id): Likewise.
10973 (s390_gdbarch_init): Remove calls to:
10974 set_gdbarch_frameless_function_invocation,
10975 set_gdbarch_deprecated_init_frame_pc,
10976 set_gdbarch_deprecated_frame_chain,
10977 set_gdbarch_deprecated_frame_init_saved_regs,
10978 set_gdbarch_deprecated_pop_frame,
10979 set_gdbarch_deprecated_init_extra_frame_info,
10980 set_gdbarch_deprecated_init_frame_pc_first,
10981 set_gdbarch_deprecated_target_read_fp,
10982 set_gdbarch_deprecated_frame_saved_pc,
10983 set_gdbarch_deprecated_saved_pc_after_call,
10984 set_gdbarch_deprecated_fp_regnum.
10985 Add calls to:
10986 set_gdbarch_in_solib_call_trampoline,
10987 frame_unwind_append_sniffer,
10988 frame_base_set_default,
10989 set_gdbarch_unwind_pc,
10990 set_gdbarch_unwind_sp.
10991 * Makefile.in (s390-tdep.o): Update dependencies.
10992
10993 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10994 (S390_STACK_FRAME_OVERHEAD): Remove.
10995 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10996 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10997 (s390_promote_integer_argument): Remove.
10998 (s390_cannot_extract_struct_value_address): Remove.
10999 (s390_use_struct_convention, s390_store_struct_return): Remove.
11000 (s390_extract_return_value, s390_store_return_value): Remove.
11001 (s390_return_value_convention, s390_return_value): New functions.
11002 (is_float_singleton): Handle typedefs.
11003 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11004 Remove, replace by ...
11005 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11006 s390_function_arg_integer): ... these new functions.
11007 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11008 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11009 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11010 Fill in tdep->abi.
11011 Remove calls to:
11012 set_gdbarch_deprecated_store_struct_return,
11013 set_gdbarch_deprecated_extract_return_value,
11014 set_gdbarch_deprecated_store_return_value,
11015 set_gdbarch_use_struct_convention,
11016 set_gdbarch_extract_struct_value_address,
11017 set_gdbarch_deprecated_pc_in_call_dummy,
11018 set_gdbarch_deprecated_push_arguments,
11019 set_gdbarch_deprecated_save_dummy_frame_tos,
11020 set_gdbarch_deprecated_push_return_address,
11021 set_gdbarch_deprecated_sizeof_call_dummy_words,
11022 set_gdbarch_deprecated_call_dummy_words,
11023 set_gdbarch_deprecated_dummy_write_sp.
11024 Add calls to:
11025 set_gdbarch_push_dummy_call,
11026 set_gdbarch_unwind_dummy_id,
11027 set_gdbarch_return_value.
11028
11029 * config/s390/nm-linux.h: Update comments.
11030 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11031 (STOPPED_BY_WATCHPOINT): Redefine.
11032 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11033 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11034 (s390_stopped_by_watchpoint): Likewise.
11035 (watch_area_cnt): Remove.
11036 * s390-nat.c: Update comments.
11037 (watch_area): Remove typedef.
11038 Global replace watch_area by struct watch_area.
11039 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11040 (s390_stopped_by_watchpoint): Remove pid argument,
11041 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11042 (s390_fix_watch_points): Remove pid argument,
11043 use s390_inferior_tid. Recompute area spanned by watchpoints.
11044 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11045 argument. Reimplement.
11046
11047 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11048 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11049 (FETCH_INFERIOR_REGISTERS): Define.
11050 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11051 core-regset.o.
11052 * config/s390/s390x.mt: Remove.
11053 * config/s390/tm-s390.h: Remove.
11054 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11055 (TARGET_ELF64): Remove.
11056 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11057 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11058 s390*-*-* case; always set gdb_target to s390.
11059 * regformats/reg-s390.dat: Remove control registers.
11060 * regformats/reg-s390x.dat: Likewise.
11061 * s390-tdep.h: New file.
11062 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11063 Include "inferior.h" and "s390-tdep.h".
11064 Remove private definition of offsetof.
11065 (s390_register_u_addr): Remove.
11066 (regmap_gregset, regmap_fpregset): Define.
11067 (supply_gregset, fill_gregset): Reimplement.
11068 (supply_fpregset, fill_fpregset): Likewise.
11069 (s390_inferior_tid): New function.
11070 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11071 (fetch_inferior_registers, store_inferior_registers): Likewise.
11072 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11073 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11074 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11075 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11076 (struct gdbarch_tdep): Define.
11077 (struct s390_register_info): Define.
11078 (s390_register_info): New variable.
11079 (s390_register_name): Reimplement.
11080 (s390_register_type): New function.
11081 (s390_register_raw_size, s390x_register_raw_size): Remove.
11082 (s390_cannot_fetch_register): Remove.
11083 (s390_register_byte): Remove.
11084 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11085 (s390_dwarf_regmap): New variable.
11086 (s390_dwarf_reg_to_regnum): New function.
11087 (s390_stab_reg_to_regnum): Remove.
11088 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11089 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11090 (s390_convert_register_p): Likewise.
11091 (s390_register_to_value, s390_value_to_register): Likewise.
11092 (s390_register_reggroup_p): Likewise.
11093 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11094 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11095 (s390_supply_regset, s390_regset_from_core_section): New functions.
11096 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11097 (S390_FPR_SIZE): Likewise.
11098 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11099 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11100 (S390_NUM_GPRS): Move here from tm-s390.h.
11101 (S390_NUM_FPRS): Likewise.
11102 (s390_in_function_epilogue_p): New function.
11103 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11104 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11105 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11106 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11107 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11108 Remove calls to:
11109 set_gdbarch_deprecated_max_register_raw_size,
11110 set_gdbarch_deprecated_max_register_virtual_size,
11111 set_gdbarch_deprecated_register_byte,
11112 set_gdbarch_cannot_fetch_register,
11113 set_gdbarch_cannot_store_register,
11114 set_gdbarch_deprecated_register_size,
11115 set_gdbarch_deprecated_register_raw_size,
11116 set_gdbarch_deprecated_register_virtual_size,
11117 set_gdbarch_deprecated_register_virtual_type,
11118 set_gdbarch_deprecated_register_bytes.
11119 Add calls to:
11120 set_gdbarch_num_pseudo_regs,
11121 set_gdbarch_register_type,
11122 set_gdbarch_convert_register_p,
11123 set_gdbarch_register_to_value,
11124 set_gdbarch_value_to_register,
11125 set_gdbarch_register_reggroup_p,
11126 set_gdbarch_regset_from_core_section,
11127 set_gdbarch_pseudo_register_read,
11128 set_gdbarch_pseudo_register_write,
11129 set_gdbarch_in_function_epilogue_p.
11130 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11131 (s390_tdep_h): New variable.
11132
11133 2004-02-17 Jim Blandy <jimb@redhat.com>
11134
11135 * findvar.c (value_from_register): If the type has no length, just
11136 return an acceptable value --- don't report an internal error.
11137
11138 * stabsread.c (read_type): If we find any type numbers that are
11139 forward references, complain if the references aren't resolved by
11140 the time we're finished reading.
11141 (cleanup_undefined_types): Make error message more appropriate for
11142 a complaint.
11143
11144 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11145
11146 * Makefile.in (defs_h): Remove dependency on progress_h.
11147 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11148 progress.h.
11149 * main.c (captured_main): Delete use of START_PROGRESS and
11150 END_PROGRESS.
11151
11152 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11153
11154 * objfiles.c (terminate_minimal_symbol_table): Add back
11155 initialization of MSYMBOL_TYPE.
11156
11157 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11158
11159 Committed by Andrew Cagney.
11160 * Makefile.in (ia64_tdep_h): New macro.
11161 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11162 (ia64-tdep.o): Likewise.
11163 * ia64-tdep.h: New file.
11164 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11165 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11166 (ia64_aix_sigcontext_register_address): Likewise.
11167 (ia64_linux_getunwind_table): Delete declaration.
11168 * ia64-linux-tdep.c: Likewise.
11169
11170 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11171
11172 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11173 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11174 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11175
11176 2004-02-17 Andrew Cagney <cagney@redhat.com>
11177
11178 * symtab.c (skip_prologue_using_sal): New function.
11179 * symtab.h (skip_prologue_using_sal): Declare.
11180 * frv-tdep.c: Include "symtab.h".
11181 (skip_prologue_using_sal): Delete function.
11182 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11183 * rs6000-tdep.c (refine_prologue_limit): Mention
11184 skip_prologue_using_sal.
11185 * ia64-tdep.c (refine_prologue_limit): Ditto.
11186 * Makefile.in: Update dependencies.
11187
11188 2004-02-16 Andrew Cagney <cagney@redhat.com>
11189
11190 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11191 START_INFERIOR_TRAPS_EXPECTED.
11192 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11193 START_INFERIOR_TRAPS_EXPECTED.
11194 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11195 Delete macro.
11196 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11197 macro, moved to "nm-osf.h". Update copyright.
11198 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11199 update copyright.
11200
11201 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11202 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11203 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11204 frameless_look_for_prologue.
11205 * frame.h (legacy_frameless_look_for_prologue): Rename
11206 frameless_look_for_prologue.
11207 * gdbarch.h, gdbarch.c: Re-generate.
11208 * sh64-tdep.c (sh64_gdbarch_init): Update.
11209 * sh-tdep.c (sh_gdbarch_init): Update.
11210 * s390-tdep.c (s390_gdbarch_init): Update.
11211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11212 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11213 * m68k-tdep.c (m68k_gdbarch_init): Update.
11214 (delta68_frame_args_address): Update.
11215 * m32r-tdep.c (m32r_gdbarch_init): Update.
11216 * hppa-tdep.c (hppa_gdbarch_init): Update.
11217 * h8300-tdep.c (h8300_gdbarch_init): Update.
11218 * frv-tdep.c (frv_gdbarch_init): Update.
11219 (frv_frameless_function_invocation): Update.
11220 * cris-tdep.c (cris_gdbarch_init): Update.
11221 (cris_frameless_function_invocation): Update.
11222 * avr-tdep.c (avr_gdbarch_init): Update.
11223 * arm-tdep.c (arm_gdbarch_init): Update.
11224 * stack.c (frame_info): Update, call predicate.
11225 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11226 * frame.c (legacy_get_prev_frame): Update, call predicate..
11227 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11228 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11229 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11230 invocation.
11231 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11232 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11233 * vax-tdep.c (vax_gdbarch_init): Ditto.
11234
11235 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11236 function.
11237
11238 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11239
11240 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11241 initializations.
11242
11243 2004-02-16 Andrew Cagney <cagney@redhat.com>
11244
11245 * tui/tui-windata.c: Include "gdb_string.h".
11246 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11247 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11248 * Makefile.in: Update dependencies.
11249
11250 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11251
11252 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11253 * infrun.c: Include "gdb_assert.h".
11254 (singlestep_ptid, saved_singlestep_ptid)
11255 (stepping_past_singlestep_breakpoint): New variables.
11256 (resume): Set singlestep_ptid. Check for singlestep thread
11257 hop.
11258 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11259 (handle_inferior_event): Handle singlestep thread hop.
11260
11261 2004-02-16 Andrew Cagney <cagney@redhat.com>
11262
11263 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11264 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11265 (dwarf2_frame_init_reg): Ditto.
11266
11267 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11268 suggested by Joshua Neuheisel
11269
11270 * configure.in: Always check for curses, including pdcurses.
11271 Warn, instead of error, when no curses are found. Enable TUI when
11272 curses is available.
11273 * configure: Re-generate.
11274
11275 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11276
11277 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11278 sh_sh4_register_convert_to_virtual.
11279 (sh_register_convert_to_raw): Rename from
11280 sh_sh4_register_convert_to_raw.
11281 (sh_pseudo_register_read): Accomodate above name change.
11282 (sh_pseudo_register_write): Ditto.
11283
11284 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11285
11286 * sh-tdep.c (sh_generic_register_name): Remove.
11287 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11288
11289 2004-02-15 Andrew Cagney <cagney@redhat.com>
11290
11291 * configure.in (build_warnings): Add -Wunused-function.
11292 * configure: Re-generate.
11293
11294 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11295 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11296
11297 * procfs.c (procfs_init_inferior): Assume that
11298 START_INFERIOR_TRAPS_EXPECTED is defined.
11299 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11300 * config/ns32k/tm-nbsd.h: Delete file,
11301 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11302
11303 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11304 * config/vax/tm-vax.h: Delete file.
11305
11306 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11307 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11308 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11309 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11310 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11311 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11312 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11313
11314 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11315
11316 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11317 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11318 (struct dwarf2_frame_ops): New.
11319 (dwarf2_frame_default_init_reg): New function, based on
11320 dwarf2_frame_init_reg.
11321 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11322 (dwarf2_frame_init_reg): Call architecture-specific function.
11323 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11324 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11325 instead of dwarf2_frame_data.
11326 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11327 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11328
11329 2004-02-15 Andrew Cagney <cagney@redhat.com>
11330
11331 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11332 register_gdbarch_swap.
11333 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11334 * f-lang.c (_initialize_f_language): Update, use
11335 DEPRECATED_REGISTER_GDBARCH_SWAP.
11336 * remote.c (_initialize_remote): Ditto.
11337 * regcache.c (_initialize_regcache): Ditto.
11338 * parse.c (_initialize_parse): Ditto.
11339 * infrun.c (_initialize_infrun): Ditto.
11340 * mi/mi-main.c (_initialize_mi_main): Ditto.
11341 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11342
11343 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11344 poking .cacheable directly.
11345 * symfile.c (symfile_bfd_open): Ditto.
11346
11347 * Makefile.in: Update all dependencies.
11348
11349 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11350 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11351 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11352 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11353 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11354
11355 2004-02-14 Andrew Cagney <cagney@redhat.com>
11356
11357 * arch-utils.c (legacy_convert_register_p): Check
11358 DEPRECATED_REGISTER_CONVERTIBLE_P.
11359 * findvar.c (value_of_register): Ditto.
11360
11361 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11362 * gdbarch.h, gdbarch.c: Re-generate.
11363 * arch-utils.c (deprecated_register_convertible_not): Delete.
11364 * arch-utils.h (deprecated_register_convertible_not): Delete.
11365 * mi/mi-main.c (get_register): Update. Update copyright.
11366 * infcmd.c (default_print_registers_info): Update.
11367
11368 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11369 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11370 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11371 * gdbarch.h, gdbarch.c: Re-generate.
11372 * frame.c (deprecated_get_next_frame_hack): Delete function.
11373 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11374 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11375 Update.
11376 * infcall.c (call_function_by_hand): Update.
11377
11378 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11379
11380 * symfile.c (init_entry_point_info, entry_point_address): Move
11381 from here...
11382 * objfiles.c (init_entry_point_info, entry_point_address):..to
11383 here.
11384 * symfile.h (init_entry_point_info, entry_point_address): Remove
11385 prototypes.
11386 * objfiles.h (init_entry_point_info, entry_point_address):Add
11387 prototypes.
11388 * cris-tdep.c: Remove include of symfile.h. Add include of
11389 objfiles.h.
11390 * infcall.c: Ditto.
11391 * mcore-tdep.c: Ditto.
11392 * mn10300-tdep.c: Ditto.
11393 * sh64-tdep.c: Ditto.
11394 * v850-tdep.c: Ditto.
11395 * arm-tdep.c: Remove include of symfile.h.
11396 * blockframe.c: Ditto.
11397 * coffread.c: Ditto.
11398 * dbxread.c: Ditto.
11399 * dwarf2read.c: Ditto.
11400 * dwarfread.c: Ditto.
11401 * frv-tdep.c: Ditto.
11402 * ia64-tdep.c: Ditto.
11403 * mdebugread.c: Ditto.
11404 * mipsread.c: Ditto.
11405 * rs6000-tdep.c: Ditto.
11406 * s390-tdep.c: Ditto.
11407 * sh-tdep.c: Ditto.
11408 * xstormy16-tdep.c: Ditto.
11409 * gdbarch.sh: Remove include of symfile.h.
11410 * gdbarch.c: Regenerate.
11411 * solib-irix.c (enable_break): Use entry_point_address().
11412 Add comment about include file.
11413 * xcoffread.c: Add comment about include file.
11414 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11415 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11416 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11417 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11418 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11419
11420 2004-02-13 Andrew Cagney <cagney@redhat.com>
11421
11422 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11423 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11424 copyright.
11425 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11426
11427 2004-02-12 Fred Fish <fnf@redhat.com>
11428
11429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11430 set_gdbarch_store_return_value.
11431
11432 2004-02-12 Andrew Cagney <cagney@redhat.com>
11433
11434 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11435 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11436 (interrupt_query): Ditto.
11437 (ofunc): Delete unused variable.
11438 * cris-tdep.c (cris_abi): Delete unused function.
11439 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11440 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11441 (cris_get_asr_quick_shift_steps): Ditto.
11442 (cris_skip_prologue_frameless_p): Ditto.
11443 * arm-tdep.c (arm_push_return_address): Delete unused function.
11444 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11445 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11446 * s390-tdep.c (s390_function_start): Delete unused function.
11447
11448 2004-02-12 Andrew Cagney <cagney@redhat.com>
11449
11450 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11451 gdbarch.h, gdbarch.c: Re-generate.
11452 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11453 to generic_prologue_frameless_p.
11454 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11455 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11456
11457 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11458
11459 * mips-linux-tdep.c: Include "frame.h".
11460 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11461 (mips_linux_skip_resolver): New functions.
11462 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11463 and set_gdbarch_in_solib_call_trampoline.
11464 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11465 to after set_gdbarch_in_solib_return_trampoline. Only set the
11466 solib hooks to mips16 functions if the OS ABI is unknown.
11467 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11468 including "config/tm-linux.h".
11469 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11470 * Makefile.in (mips-linux-tdep.o): Update.
11471
11472 2004-02-11 David Carlton <carlton@kealia.com>
11473
11474 * linespec.c (decode_compound): Only look for a class symbol when
11475 considering all but the rightmost component.
11476
11477 2004-02-11 Andrew Cagney <cagney@redhat.com>
11478
11479 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11480 abi code are are separatly grouped.
11481
11482 2004-02-11 Andrew Cagney <cagney@redhat.com>
11483
11484 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11485 * gdbarch.h, gdbarch.c: Re-generate.
11486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11487 * v850-tdep.c (v850_gdbarch_init): Update.
11488 * sh64-tdep.c (sh64_gdbarch_init): Update.
11489 * sh-tdep.c (sh_gdbarch_init): Update.
11490 * s390-tdep.c (s390_gdbarch_init): Update.
11491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11492 * mips-tdep.c (mips_gdbarch_init): Update.
11493 * mcore-tdep.c (mcore_gdbarch_init): Update.
11494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11495 * m32r-tdep.c (m32r_gdbarch_init): Update.
11496 * ia64-tdep.c (ia64_gdbarch_init): Update.
11497 * hppa-tdep.c (hppa_gdbarch_init): Update.
11498 * h8300-tdep.c (h8300_gdbarch_init): Update.
11499 * frv-tdep.c (frv_gdbarch_init): Update.
11500 * d10v-tdep.c (d10v_gdbarch_init): Update.
11501 * cris-tdep.c (cris_gdbarch_init): Update.
11502 * avr-tdep.c (avr_gdbarch_init): Update.
11503 * arm-tdep.c (arm_gdbarch_init): Update.
11504 * alpha-tdep.c (alpha_gdbarch_init): Update.
11505
11506 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11507
11508 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11509 comma.
11510 (sh_sh4al_dsp_register_name): Ditto.
11511
11512 2004-02-10 Andrew Cagney <cagney@redhat.com>
11513
11514 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11515 (mips_init_frame_pc_first): Delete function.
11516 (mips_frame_saved_pc): Delete function.
11517 (mips_frame_chain): Delete function.
11518 (mips_init_extra_frame_info): Delete function.
11519 (mips_xfer_register): Delete unused variable "reg".
11520 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11521 (mips_n32n64_return_value): Delete unused variable "reg".
11522 (mips_n32n64_return_value): Delete unused variable "pos".
11523 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11524 (mips_o32_return_value): Delete unused variable "pos".
11525 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11526 (mips_print_fp_register): Delete unused variable "namelen"
11527 (mips_print_fp_register): Delete unused variable "flt2"
11528 (get_frame_pointer): Delete function.
11529 (cached_proc_desc): Delete static variable.
11530 (mips_pop_frame): Delete function.
11531 (mips_find_saved_regs): Delete function.
11532 (mips_get_saved_register): Delete function.
11533 (mips_saved_pc_after_call): Delete function.
11534 (SIGFRAME_BASE): Delete macro.
11535 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11536 (SIGFRAME_PC_OFF): Delete macro.
11537 (SIGFRAME_REGSAVE_OFF): Delete macro.
11538 (mips_dump_tdep): Do not print deleted macro definitions.
11539
11540 2004-02-10 Andrew Cagney <cagney@redhat.com>
11541
11542 * Makefile.in (SFILES): Remove explictly listed tui files.
11543 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11544
11545 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11546
11547 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11548 to use paddr functions to format ia64 addresses and long values.
11549 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11550 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11551 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11552 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11553 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11554
11555 2004-02-10 Andrew Cagney <cagney@redhat.com>
11556
11557 * defs.h: Do not include "tui.h".
11558 * gdb_curses.h: New file.
11559 * tui/tui-hooks.h: New file.
11560 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11561 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11562 (tui_initialize_io): Delete declaration.
11563 (tui_initialize_readline: Delete redundant declaration.
11564 (struct tui_point): Delete definition.
11565 * tui/tui-data.h (struct tui_point): Define.
11566 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11567 * utils.c: Include "tui/tui.h".
11568 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11569 * printcmd.c [TUI]: Include "tui/tui.h".
11570 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11571 * tui/tui-command.c: Include "gdb_curses.h".
11572 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11573 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11574 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11575 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11576 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11577 * Makefile.in: Update all dependencies.
11578 (tui_hooks_h, gdb_curses_h): Define.
11579 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11580
11581 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11582
11583 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11584 auxf2. Add comments about some other rarely used fields.
11585
11586 2004-02-10 Andrew Cagney <cagney@redhat.com>
11587
11588 * Makefile.in (init.c): Fix script removing duplicates. Problem
11589 reported by Peter Schauer.
11590
11591 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11592
11593 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11594 obstack_specify_allocation.
11595 * objfiles.c (allocate_objfile): Ditto.
11596 * solib-sunos.c (solib_add_common_symbols)
11597 (allocate_rt_common_objfile): Ditto.
11598 * symfile.c (reread_symbols): Ditto.
11599 * gdb_obstack.h: Add comment.
11600
11601 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11602
11603 * linespec.c (decode_line_1, locate_first_half)
11604 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11605 commented out code.
11606
11607 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11608
11609 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11610 obstack_free.
11611
11612 2004-02-09 Andrew Cagney <cagney@redhat.com>
11613
11614 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11615 fails, try find_pc_section. Fix PR c++/1267.
11616 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11617 instead of find_pc_mapped_section.
11618 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11619 not default to the section containing PC. Fix PR symtab/1519.
11620
11621 2004-02-09 Andrew Cagney <cagney@redhat.com>
11622
11623 * Makefile.in (mips-tdep.o): Update dependencies.
11624 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11625 "trad-frame.h".
11626 (mips_unwind_pc): Return the pseudo PC register.
11627 (mips_unwind_dummy_id): New function.
11628 (mips16_fetch_instruction): New function.
11629 (mips32_fetch_instruction): New function.
11630 (struct mips_frame_cache): Define.
11631 (mips_mdebug_frame_cache): New function.
11632 (mips_mdebug_frame_this_id): New function.
11633 (mips_mdebug_frame_prev_register): New function.
11634 (mips_mdebug_frame_unwind): Define.
11635 (mips_mdebug_frame_sniffer): New function.
11636 (mips_mdebug_frame_base_address): New function.
11637 (mips_mdebug_frame_base): Define.
11638 (mips_mdebug_frame_base_sniffer): New function.
11639 (mips_gdbarch_init): Append unwind and base sniffers. Set
11640 unwind_dummy_id.
11641
11642 2004-02-08 Andrew Cagney <cagney@redhat.com>
11643
11644 * frame.c: Print both the register number and name.
11645
11646 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11647 and a sed into a single sed. Make .c and .o patterns more robust.
11648 (OBS): Delete.
11649 (INIT_FILES): Replace OBS with COMMON_OBS.
11650 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11651
11652 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11653
11654 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11655 the PT_WCOOKIE request.
11656
11657 2004-02-08 Andrew Cagney <cagney@redhat.com>
11658
11659 * mips-tdep.c (mips_unwind_pc): New function.
11660 (mips_gdbarch_init): Set mips_unwind_pc.
11661
11662 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11663 (get_frame_id): Allow the UNKNOWN_FRAME.
11664 (frame_register_unwind, get_frame_type): Ditto.
11665
11666 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11667 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11668 unwind_dummy_id indicates a legacy frame.
11669
11670 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11671 * configure: Re-generate.
11672
11673 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11674 methods.
11675
11676 2004-02-08 Andrew Cagney <cagney@redhat.com>
11677
11678 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11679 makefile macro.
11680 * configure: Re-generate.
11681 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11682 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11683 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11684 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11685 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11686 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11687 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11688 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11689 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11690 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11691
11692 2004-02-07 Andrew Cagney <cagney@redhat.com>
11693
11694 * Makefile.in: Update all dependencies.
11695
11696 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11697 * configure: Re-generate.
11698 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11699 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11700 (COMMON_OBS): Add "main.o" and "annotate.o".
11701 (ANNOTATE_OBS): Delete.
11702 (OBS): Remove ANNOTATE_OBS.
11703 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11704 CONFIG_INITS.
11705 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11706 against CONFIG_OBS and "main.o".
11707 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11708 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11709
11710 * tui/tui-command.c: Include "gdb_string.h", delete register
11711 attribute, use ISO-C function signatures.
11712 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11713 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11714 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11715 * tui/tui.c: Ditto.
11716
11717 * tui/tui-command.c: Change variable and function names to lower
11718 case.
11719 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11720 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11721 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11722 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11723 * tui/tui-winsource.c, tui/tui.c: Ditto.
11724
11725 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11726
11727 * buildsym.c (free_pending_blocks, finish_block)
11728 (record_pending_block, make_blockvector, end_symtab): Replace
11729 symbol_obstack with objfile_obstack.
11730 * coffread.c (process_coff_symbol, coff_read_struct_type)
11731 (coff_read_enum_type): Ditto.
11732 * cp-namespace.c (initialize_namespace_symtab)
11733 (check_one_possible_namespace_symbol): Ditto.
11734 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11735 (dwarf2_symbol_mark_computed): Ditto.
11736 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11737 * elfread.c (elf_symtab_read): Ditto.
11738 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11739 (hpread_read_enum_type, hpread_read_function_type)
11740 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11741 Ditto.
11742 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11743 (java_link_class_type): Ditto.
11744 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11745 (new_symbol): Ditto.
11746 * minsyms.c (install_minimal_symbols): Ditto.
11747 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11748 (terminate_minimal_symbol_table): Replace symbol_obstack with
11749 objfile_obstack.
11750 (free_objfile): Remove freeing of symbol_obstack.
11751 * objfiles.h: Remove symbol_obstack field.
11752 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11753 objfile_obstack.
11754 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11755 symbol_obstack.
11756 (solib_add_common_symbols): Replace symbol_obstack with
11757 objfile_obstack.
11758 * somsolib.c (som_solib_add): Ditto.
11759 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11760 (common_block_start, common_block_end): Ditto.
11761 * symfile.c (reread_symbols): Remove freeing and init of
11762 symbol_obstack.
11763 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11764 * symfile.h: Update comment.
11765 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11766 stats printing.
11767 * symtab.c (symbol_set_names): Replace symbol_obstack with
11768 objfile_obstack.
11769 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11770 Update comments.
11771 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11772 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11773 objfile_obstack.
11774
11775 2004-02-07 Andrew Cagney <cagney@redhat.com>
11776
11777 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11778 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11779 fields and variables.
11780 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11781 (m_beInvisible): Delete macro.
11782 * tui/tui-data.h: Fix case case fields and variables.
11783 (m_genWinPtrIsNull): Delete macro.
11784 (tui_win_list): Rename winList.
11785 (TUI_SRC_WIN): Rename srcWin.
11786 (TUI_DISASM_WIN): Rename disassemWin.
11787 (TUI_DATA_WIN): Rename dataWin.
11788 (TUI_CMD_WIN): Rename cmdWin.
11789 (m_genWinPtrNotNull): Delete macro.
11790 (m_winPtrIsNull): Delete macro.
11791 (m_winPtrNotNull): Delete macro.
11792 (tui_win_is_source_type): Replace m_winIsSourceType
11793 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11794 (tui_win_has_locator): Replace m_hasLocator.
11795 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11796 m_setWinHighlightOff.
11797 * tui/tui-data.c: Update references.
11798 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11799 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11800 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11801 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11802 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11803 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11804 * tui/tui-winsource.c, tui/tui.c: Ditto.
11805
11806 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11807
11808 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11809 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11810 StackGhost.
11811
11812 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11813 variable `i6' to `i7'.
11814 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11815
11816 2004-02-07 Andrew Cagney <cagney@redhat.com>
11817
11818 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11819 (TuiPoint, TuiPointPtr): Ditto.
11820 (TuiStatus, TuiStatusPtr): Ditto.
11821 (TuiWinType, TuiWinTypePtr): Ditto.
11822 (struct tui_point): Rename _TuiPoint.
11823 (tui_get_low_disassembly_address): Rename
11824 tuiGetLowDisassemblyAddress.
11825 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11826 (tuiFree): Delete declaration.
11827 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11828 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11829 * tui/tui.c (tuiFree): Delete function.
11830 * cli/cli-cmds.c (disassemble_command): Update references.
11831 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11832 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11833 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11834 * tui/tui-winsource.c: Ditto.
11835
11836 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11837
11838 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11839 coffstab_build_psymtabs, elfstab_build_psymtabs)
11840 (stabsect_build_psymtabs): Replace psymbol_obstack with
11841 objfile_obstack.
11842 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11843 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11844 Ditto.
11845 * dwarfread.c (scan_compilation_units): Ditto.
11846 * elfread.c (elfstab_offset_sections): Ditto.
11847 * hppa-tdep.c (read_unwind_info): Ditto.
11848 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11849 (hpread_end_psymtab): Ditto.
11850 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11851 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11852 Ditto.
11853 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11854 * objfiles.c (add_to_objfile_sections)
11855 (build_objfile_section_table): Ditto.
11856 (allocate_objfile): Remove init of psymbol_obstack.
11857 (free_objfile): Remove freeing of psymbol_obstack.
11858 * objfiles.h (struct objfile): Remove field
11859 psymbol_obstack. Update comments.
11860 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11861 psymbol_obstack with objfile_obstack.
11862 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11863 psymbol_obstack.
11864 * somread.c (som_symfile_offsets, init_import_symbols)
11865 (init_export_symbols): Replace psymbol_obstack with
11866 objfile_obstack.
11867 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11868 * symfile.c (default_symfile_offsets, syms_from_objfile)
11869 (reread_symbols): Remove freeing and init of psymbol_obstack.
11870 (cashier_psymtab): Update comment.
11871 * symmisc.c (print_objfile_statistics): Don't report stats for
11872 psymbol obstack.
11873 * symtab.h (struct general_symbol_info, struct partial_symtab):
11874 Update comments.
11875 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11876 (xcoff_symfile_offsets): Replace psymbol_obstack with
11877 objfile_obstack.
11878
11879 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11880
11881 * objfiles.h (struct objfile): Add objfile_obstack field.
11882 Remove type_obstack field.
11883
11884 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11885 read_structure_scope read_enumeration, new_symbol): Replace
11886 type_obstack with objfile_obstack.
11887 * dwarfread.c (struct_type, enum_type): Ditto.
11888 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11889 (lookup_fundamental_type): Ditto.
11890 * gdbtypes.h (TYPE_ALLOC): Ditto.
11891 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11892 (hpread_read_doc_function_type, hpread_read_struct_type)
11893 (fix_static_member_physnames, hpread_read_array_type)
11894 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11895 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11896 (java_link_class_type): Ditto.
11897 * mdebugread.c (parse_type): Ditto.
11898 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11899 * solib-sunos.c (solib_add_common_symbols): Ditto.
11900 * stabsread.c (define_symbol, read_type, read_member_functions,
11901 read_cpp_abbrev, read_one_struct_field): Ditto.
11902 * symfile.c (reread_symbols): Ditto.
11903 * symmisc.c (print_objfile_statistics): Ditto.
11904
11905 2004-02-07 Andrew Cagney <cagney@redhat.com>
11906
11907 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11908 (tui_exec_info_content): Rename TuiExecInfoContent.
11909 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11910 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11911 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11912 (TuiList, TuiListPtr): Ditto.
11913 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11914 (TuiDataType, TuiDataTypePtr): Ditto.
11915 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11916 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11917 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11918 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11919 (TuiDataElement, TuiDataElementPtr): Ditto.
11920 (TuiWinElement, TuiWinElementPtr): Ditto.
11921 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11922 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11923 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11924 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11925 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11926 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11927 * tui/tui-command.c, tui/tui-data.c: Update references.
11928 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11929 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11930 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11931 * tui/tui-winsource.c, tui/tui.c: Ditto.
11932
11933 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11934
11935 * dwarf2-frame.h: Update copyright.
11936 (enum dwarf2_frame_reg_rule): New.
11937 (struct dwarf2_frame_state_reg): New.
11938 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11939 * dwarf2-frame.c: Update copyright.
11940 (enum dwarf2_reg_rule): Remove.
11941 (struct dwarf2_frame_state): Remove defenition of `struct
11942 dwarf2_frame_state_reg'.
11943 (read_reg): Call get_frame_arch to get the architecture instead of
11944 using CURRENT_GDBARCH.
11945 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11946 DWARF2_FRAME_.
11947 (dwarf2_frame_init_reg): New function.
11948 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11949 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11950 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11951 tags with DWARF2_FRAME_.
11952 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11953 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11954 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11955
11956 2004-02-06 Andrew Cagney <cagney@redhat.com>
11957
11958 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11959 (enum tui_data_type): Rename _TuiDataType.
11960 (struct tui_layout_def): Rename _TuiLayoutDef.
11961 (struct tui_source_element): Rename _TuiSourceElement.
11962 (struct tui_data_element): Rename _TuiDataElement.
11963 (struct tui_command_element): Rename _TuiCommandElement.
11964 (struct tui_locator_element): Rename _TuiLocatorElement.
11965 (union tui_which_element): Define.
11966 (struct tui_win_element): Rename _TuiWinElement.
11967 (struct tui_data_info): Rename _TuiDataInfo.
11968 (struct tui_source_info): Rename _TuiSourceInfo.
11969 (struct tui_command_info): Rename _TuiCommandInfo.
11970 (tui_initialize_static_data): Rename initializeStaticData.
11971 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11972 (tui_alloc_win_info): Rename allocWinInfo.
11973 (tui_init_generic_part): Rename initGenericPart.
11974 (tui_init_win_info): Rename initWinInfo.
11975 (tui_alloc_content): Rename allocContent.
11976 (tui_add_content_elements): Rename addContentElements.
11977 (tui_init_content_element): Rename initContentElement.
11978 (tui_free_window): Rename freeWindow.
11979 (tui_free_win_content): Rename freeWinContent.
11980 (tui_free_data_content): Rename freeDataContent.
11981 (tui_free_all_source_wins_content): Rename
11982 freeAllSourceWinsContent.
11983 (tui_del_window): Rename tuiDelWindow.
11984 (tui_del_data_windows): Rename tuiDelDataWindows.
11985 (tui_partial_win_by_name): Rename partialWinByName.
11986 (tui_win_name): Rename winName.
11987 (tui_current_layout): Rename currentLayout.
11988 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11989 (tui_term_height): Rename termHeight.
11990 (tui_set_term_height_to): Rename setTermHeightTo.
11991 (tui_term_width): Rename termWidth.
11992 (tui_set_term_width_to): Rename setTermWidthTo.
11993 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11994 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11995 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11996 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11997 (tui_source_windows): Rename sourceWindows.
11998 (tui_clear_source_windows): Rename clearSourceWindows.
11999 (tui_clear_source_windows_detail): Rename
12000 clearSourceWindowsDetail.
12001 (tui_clear_win_detail): Rename clearWinDetail.
12002 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12003 (tui_default_tab_len): Rename tuiDefaultTabLen.
12004 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12005 (tui_win_with_focus): Rename tuiWinWithFocus.
12006 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12007 (tui_layout_def): Rename tuiLayoutDef.
12008 (tui_win_resized): Rename tuiWinResized.
12009 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12010 (tui_next_win): Rename tuiNextWin.
12011 (tui_prev_win): Rename tuiPrevWin.
12012 (tui_add_to_source_windows): Rename addToSourceWindows.
12013 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12014 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12015 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12016 * tui/tui.c, tui/tui-data.c: Ditto.
12017 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12018 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12019
12020 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12021 (struct symtab): Declare.
12022 (tui_set_source_content): Rename tuiSetSourceContent.
12023 (tui_show_symtab_source): Rename tuiShowSource.
12024 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12025 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12026 * tui/tui-source.c: Update copyright. Update references.
12027 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12028 * tui/tui-stack.c: Update references.
12029
12030 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12031 (struct tui_win_info): Declare.
12032 (tui_scroll_forward): Rename tuiScrollForward.
12033 (tui_scroll_backward): Rename tuiScrollBackward.
12034 (tui_scroll_left): Rename tuiScrollLeft.
12035 (tui_scroll_right): Rename tuiScrollRight.
12036 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12037 (tui_resize_all): Rename tuiResizeAll.
12038 (tui_refresh_all_win): Rename tuiRefreshAll.
12039 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12040 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12041 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12042 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12043
12044 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12045 (tui_erase_data_content): Rename tuiEraseDataContent.
12046 (tui_display_all_data): Rename tuiDisplayAllData.
12047 (tui_check_data_values): Rename tuiCheckDataValues.
12048 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12049 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12050 (tui_first_data_element_no_in_line): Rename
12051 tuiFirstDataElementNoInLine.
12052 (tui_delete_data_content_windows): Rename
12053 tuiDeleteDataContentWindows.
12054 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12055 (tui_display_data_from): Rename tuiDisplayDataFrom.
12056 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12057 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12058 * tui/tui-win.c, tui/tui-regs.c: Update references.
12059 * tui/tui-layout.c, tui/tui.c: Update references.
12060
12061 * tui/tui-wingeneral.h: Update copyright.
12062 (m_allBeVisible): Delete macro.
12063 (m_allBeInvisible): Delete macro.
12064 (struct tui_gen_win_info): Declare.
12065 (struct tui_win_info): Declare.
12066 (tui_unhighlight_win): Rename unhighlightWin.
12067 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12068 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12069 (tui_make_window): Rename makeWindow.
12070 (tui_copy_win): Rename copyWin.
12071 (tui_box_win): Rename boxWin.
12072 (tui_highlight_win): Rename highlightWin.
12073 (tui_check_and_display_highlight_if_needed): Rename
12074 checkAndDisplayHighlightIfNeeded.
12075 (tui_refresh_all): Rename refreshAll.
12076 (tui_delete_win): Rename tuiDelwin.
12077 (tui_refresh_win): Rename tuiRefreshWin.
12078 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12079 (tui_make_visible, tui_make_invisible): New functions.
12080 (tui_make_all_visible, tui_make_all_invisible): New functions.
12081 (make_all_visible): Rename makeAllVisible.
12082 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12083 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12084 * tui/tui-windata.c, tui/tui-win.c: Update references.
12085 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12086 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12087
12088 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12089
12090 * proc-api.c (write_with_trace): Initialize local variable to
12091 silence compiler warning.
12092
12093 2004-02-06 Andrew Cagney <cagney@redhat.com>
12094
12095 * tui/tui-source.h: Do not include "defs.h".
12096 (struct tui_win_info): Declare.
12097 (tui_set_source_content_nil): Declare.
12098 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12099 (union tui_line_or_address): Rename _TuiLineOrAddress.
12100 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12101 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12102 (tui_update_source_window_as_is): Rename
12103 tuiUpdateSourceWindowAsIs.
12104 (tui_update_source_windows_with_addr): Rename
12105 tuiUpdateSourceWindowsWithAddr.
12106 (tui_update_source_windows_with_line): Rename
12107 tuiUpdateSourceWindowsWithLine.
12108 (tui_clear_source_content): Rename tuiClearSourceContent.
12109 (tui_erase_source_content): Rename tuiEraseSourceContent.
12110 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12111 (tui_show_source_content): Rename tuiShowSourceContent.
12112 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12113 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12114 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12115 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12116 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12117 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12118 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12119 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12120 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12121 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12122 (struct tui_win_info): Declare.
12123 * tui/tui-stack.c: Update references.
12124 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12125 * tui/tui-win.c, tui/tui-source.c: Ditto.
12126 * tui/tui.c, tui/tui-disasm.c: Ditto.
12127
12128 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12129
12130 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12131 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12132
12133 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12134
12135 * infrun.c (handle_inferior_event): Allow for breakpoint
12136 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12137 and SIGEMT. Update comments.
12138 * NEWS (Revised SPARC target): Mention support for non-executable
12139 stack.
12140
12141 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12142
12143 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12144 * inftarg.c: Update copyright year.
12145 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12146 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12147 (sparc_xfer_wcookie): New function.
12148 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12149 * Makefile.in (sparc-nat.o): Update dependencies.
12150 * config/sparc/nm-nbsd.h: Include "target.h".
12151 (NATIVE_XFER_WCOOKIE): New define.
12152 (sparc_xfer_wcookie): New prototype.
12153
12154 2004-02-04 Andrew Cagney <cagney@redhat.com>
12155
12156 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12157 SYSCALL_TRAP function.
12158 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12159
12160 2004-02-04 Andrew Cagney <cagney@redhat.com>
12161 Daniel Jacobowitz <drow@mvista.com>
12162
12163 * objfiles.h: Delete comments refering to inside_entry_func and
12164 DEPRECATED_FRAME_CHAIN_VALID.
12165 * defs.h (inside_entry_func): Update prototype..
12166 * blockframe.c (inside_entry_func): Rename to
12167 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12168 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12169
12170 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12171
12172 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12173 outside of #ifdef SOLIB_ADD region.
12174 (do_restore_lang_radix_cleanup): Ditto.
12175 (resolve_pending_breakpoint): Ditto.
12176
12177 2004-02-03 Andrew Cagney <cagney@redhat.com>
12178
12179 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12180 (process_note_abi_tag_sections): Delete unused function.
12181 (ia64_read_fp): Delete unused function.
12182 (gdbarch_extract_struct_value_address): Delete declaration.
12183
12184 2004-02-02 Andrew Cagney <cagney@redhat.com>
12185
12186 * vax-tdep.c (vax_frame_chain): Delete call to
12187 deprecated_inside_entry_file.
12188 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12189
12190 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12191
12192 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12193 column that's "empty" or "same value" when eliminating REG_RA
12194 rules.
12195
12196 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12197
12198 * NEWS: Add information about new pending breakpoint support.
12199
12200 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12201
12202 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12203 and pending fields for pending breakpoint support.
12204 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12205 (condition_command): Only parse condition if not a pending
12206 breakpoint.
12207 (print_one_breakpoint): Add support for pending breakpoints.
12208 (describe_other_breakpoints): Add checks to verify we are not
12209 dealing with pending breakpoints.
12210 (check_duplicates): Don't check pending breakpoints.
12211 (set_raw_breakpoint): Initialize pending flag.
12212 (do_restore_lang_radix_cleanup): New cleanup routine.
12213 (resolve_pending_breakpoint): New function.
12214 (re_enable_breakpoints_in_shlibs): Try and resolve any
12215 pending breakpoints via resolve_pending_breakpoint.
12216 (mention): Add pending breakpoint support.
12217 (parse_breakpoint_sals): Add new parameter to pass to
12218 decode_line_1 to indicate silent errors when files or functions
12219 are not found. Change all callers.
12220 (do_captured_parse_breakpoint): New function.
12221 (break_command_1): Change prototype to return an rc value and to
12222 take an optional pending breakpoint pointer. Support creating
12223 a pending breakpoint if a "not found" form of error occurs when
12224 parsing the breakpoint. Also support resolving an existing pending
12225 breakpoint and be silent if the resolution fails.
12226 (create_breakpoints): Change prototype to take pending breakpoint
12227 pointer. When resolving a pending breakpoint, use the new pointer
12228 to provide a conditional or commands added by the end-user.
12229 (delete_breakpoint): Add appropriate check for pending.
12230 (breakpoint_re_set_one): Ditto.
12231 (do_enable_breakpoint): Ditto.
12232
12233 2004-02-02 David Carlton <carlton@kealia.com>
12234
12235 * valops.c (enum oload_classification): New.
12236 (find_overload_match): Break implementation into separate
12237 functions; delete #if 0'd code; look for symbols within
12238 namespaces.
12239 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12240 (find_oload_champ,oload_method_static,classify_oload_match): New.
12241 * cp-support.h: Add declaration for cp_func_name; update
12242 declaration for make_symbol_overload_list.
12243 * cp-support.c (cp_func_name): New.
12244 (overload_list_add_symbol): Fix comment, use
12245 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12246 (make_symbol_overload_list): Take a function name and a namespace
12247 instead of a symbol; change implementation.
12248 (make_symbol_overload_list_using): New.
12249 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12250
12251 2004-02-02 Fred Fish <fnf@redhat.com>
12252
12253 * main.c (gdb_stdtarg): Move definition to group with other
12254 gdb_stdtarg definitions and update copyright years.
12255 * remote-sim.c (gdb_os_write_stderr): Write output to
12256 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12257 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12258 gdb_stderr stream and update copyright years.
12259
12260 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * Makefile.in (mips-linux-nat.o): Update dependencies.
12263 * mips-linux-nat.c: Include mips-tdep.h.
12264
12265 2004-02-01 Roland McGrath <roland@redhat.com>
12266
12267 * sol-thread.c (sol_thread_xfer_partial): New function.
12268 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12269 (init_sol_core_ops): Likewise.
12270
12271 * procfs.c (procfs_xfer_partial): New function.
12272 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12273 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12274
12275 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12276 procfs_xfer_auxv function.
12277
12278 * procfs.c (procfs_make_note_section): If we can read
12279 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12280 * linux-proc.c (linux_make_note_section): Likewise.
12281
12282 * auxv.h: New file.
12283 * auxv.c: New file.
12284 * Makefile.in (auxv_h): New variable.
12285 (COMMON_OBS): Add auxv.o here.
12286 (auxv.o): New target.
12287
12288 * corelow.c (core_xfer_partial): New function.
12289 (init_core_ops): Use it for core_ops.to_xfer_partial.
12290
12291 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12292 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12293 macro if that is defined.
12294
12295 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12296
12297 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12298 and check the specified thread for each breakpoint.
12299 * breakpoint.h (bpstat_stop_status): Update prototype.
12300 * infrun.c (handle_inferior_event): Update calls to
12301 bpstat_stop_status.
12302
12303 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12304
12305 * Makefile.in (cli-cmds.o): Add $(readline_h).
12306
12307 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12308
12309 * cli/cli-cmds.c: Include readline.h.
12310 (complete_command): Pass the start of the last word to
12311 complete_line.
12312
12313 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12314
12315 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12316 argument, and change first argument to a CORE_ADDR.
12317 * breakpoint.h (bpstat_stop_status): Update prototype.
12318 * infrun.c (adjust_pc_after_break): Add a new comment.
12319 (handle_inferior_event): Update calls to bpstat_stop_status.
12320
12321 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12322
12323 * breakpoint.h: Update copyright years.
12324
12325 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12328 (bpstat_stop_status): Don't decrement PC.
12329 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12330 prototype.
12331 * infrun.c (adjust_pc_after_break): New function.
12332 (handle_inferior_event): Call it, early. Remove later references
12333 to DECR_PC_AFTER_BREAK.
12334 (normal_stop): Add commentary.
12335
12336 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12339 2004-01-27 double-free fix.
12340
12341 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12342
12343 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12344 (sparc32_frame_prev_register): Handle StackGhost.
12345 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12346
12347 2004-01-29 Roland McGrath <roland@redhat.com>
12348
12349 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12350 * configure: Regenerated.
12351
12352 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12353 * Makefile.in (procfs.o): Add dep.
12354
12355 2004-01-28 Andrew Cagney <cagney@redhat.com>
12356
12357 * tui/tui-stack.h: Update copyright.
12358 (struct frame_info): Add opaque declaration.
12359 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12360 (tui_show_locator_content): Rename tuiShowLocatorContent.
12361 (tui_show_frame_info): Rename tuiShowFrameInfo.
12362 * tui/tui-stack.c: Update copyright. Update references.
12363 * tui/tui-winsource.c: Update references.
12364 * tui/tui-win.c: Update references.
12365 * tui/tui-layout.c: Update references.
12366 * tui/tui-hooks.c: Update copyright, update references.
12367 * tui/tui.c: Update copyright, update references.
12368 * tui/tui-disasm.c: Update references.
12369
12370 2004-01-28 David Carlton <carlton@kealia.com>
12371
12372 * dwarf2read.c (add_partial_structure): Use demangled name if
12373 namespace equals "".
12374
12375 2004-01-27 Jim Blandy <jimb@redhat.com>
12376
12377 Clean up misapplied patch:
12378 * dwarf2read.c (determine_prefix): Change one of the two forward
12379 declarations for 'determine_prefix_aux' to a declaration for this.
12380 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12381 argument to 'die_specification'.
12382
12383 * dwarf2read.c (read_func_scope): Re-indent comment.
12384
12385 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12386
12387 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12388 b->exp to NULL after freeing so that error during re-parsing or
12389 evaluation of expressions associated with breakpoint don't
12390 eventually lead to re-freeing of storage.
12391 Committed by Andrew Cagney.
12392
12393 2004-01-27 Andrew Cagney <cagney@redhat.com>
12394
12395 * source.c (ambiguous_line_spec): Delete undefined declaration.
12396 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12397 (m32r_set_server_address, m32r_set_download_path): Ditto.
12398 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12399
12400 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12401
12402 * dwarf2read.c: Update calls to changed and renamed functions, and
12403 references to moved variables.
12404
12405 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12406 language, language_defn, list_in_scope, and ftypes members.
12407 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12408 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12409 (baseaddr): Remove globals.
12410
12411 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12412 (set_cu_language, die_is_declaration, die_specification)
12413 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12414 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12415 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12416 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12417
12418 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12419 cu.list_in_scope. Don't initialize cu_header_offset.
12420 (add_partial_symbol): Add local baseaddr.
12421 (psymtab_to_symtab_1): Add local baseaddr. Use
12422 objfile->section_offsets for consistency. Don't initialize
12423 cu_header_offset; do initialize cu.header.offset and
12424 cu.list_in_scope.
12425 (read_file_scope, read_func_scope, read_lexical_block_scope)
12426 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12427
12428 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12429
12430 * PROBLEMS: Add gdb/1516.
12431
12432 2003-12-29 Robert Millan <robertmh@gnu.org>
12433
12434 Patch committed by Andrw Cagney.
12435 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12436 * configure.tgt: Match knetbsd*-gnu.
12437
12438 2004-01-26 Andrew Cagney <cagney@redhat.com>
12439
12440 * breakpoint.c (catch_command_1): Delete #ifdef code.
12441 (catch_fork_command_1): Delete #ifdef wrapper.
12442 (catch_exec_command_1): Ditto.
12443 (catch_load_command_1): Ditto.
12444 (catch_unload_command_1): Ditto.
12445
12446 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12447 (catch_breakpoint): Delete #if0ed function.
12448 (disable_catch_breakpoint): Ditto.
12449 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12450 (disable_catch, enable_catch, delete_catch): Ditto.
12451
12452 2004-01-26 Andrew Cagney <cagney@redhat.com>
12453
12454 * remote.c (echo_check, quit_flag): Delete variables.
12455 (cisco_kernel_mode): Delete variable.
12456 (minitelnet_return, tty_input, escape_count): Delete variables.
12457 (remote_cisco_mode): Delete variable.
12458 (remote_cisco_open, remote_cisco_close): Delete function.
12459 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12460 (init_remote_cisco_ops): Delete function.
12461 (_initialize_remote): Do not install "remote cisco" code.
12462 (read_frame): Delete cisco specific code.
12463 (remote_info_process): Delete function.
12464 (remote_wait): Delete cisco specific code.
12465 (remote_cisco_section_offsets): Delete function.
12466 (remote_cisco_objfile_relocate): Delete function.
12467 (remote_async_wait): Delete cisco specific code.
12468 (minitelnet, readtty, readsocket): Delete function.
12469
12470 2004-01-26 Andrew Cagney <cagney@redhat.com>
12471
12472 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12473 comments mentioning extract_returned_value_address.
12474 * infcmd.c (print_return_value): Update. Add comments on
12475 extract_returned_value_address.
12476 * stack.c (return_command): Add comments on
12477 extract_returned_value_address.
12478 * values.c: Update comment.
12479 * m32r-tdep.c: Update comment.
12480 * sparc-tdep.c: Update comment.
12481 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12483 * sh64-tdep.c (sh64_gdbarch_init): Update.
12484 * sh-tdep.c (sh_gdbarch_init): Update.
12485 * s390-tdep.c (s390_gdbarch_init): Update.
12486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12487 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12488 * m68k-tdep.c (m68k_gdbarch_init): Update.
12489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12490 * m32r-tdep.c (m32r_gdbarch_init): Update.
12491 * ia64-tdep.c (ia64_gdbarch_init): Update.
12492 * h8300-tdep.c (h8300_gdbarch_init): Update.
12493 * frv-tdep.c (frv_gdbarch_init): Update.
12494 * arm-tdep.c (arm_gdbarch_init): Update.
12495 * alpha-tdep.c (alpha_gdbarch_init): Update.
12496
12497 2004-01-26 Andrew Cagney <cagney@redhat.com>
12498
12499 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12500 SYMBOL_LOCATION_FUNCS
12501 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12502 "struct symbol_ops".
12503 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12504 type to "struct symbol_ops".
12505 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12506 (struct symbol): Replace ".aux_value.loc.funcs" and
12507 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12508 (SYMBOL_OBJFILE): Delete macro.
12509 (SYMBOL_LOCATION_FUNCS): Delete macro.
12510 (SYMBOL_LOCATION_BATON): Update.
12511 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12512 intead of SYMBOL_LOCATION_FUNCS.
12513 * ax-gdb.c (gen_var_ref): Ditto.
12514 * printcmd.c (address_info): Ditto.
12515 * findvar.c (read_var_value): Ditto.
12516 (symbol_read_needs_frame): Ditto.
12517
12518 2004-01-26 Andrew Cagney <cagney@redhat.com>
12519
12520 * dwarf2read.c (read_func_scope): Document frame-base hack.
12521
12522 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12523
12524 * infcmd.c (print_return_value): Plug memory leak; delete
12525 ui_stream object. Rename argument `structure_return' to
12526 `struct_return'.
12527
12528 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12529
12530 * infcmd.c (print_return_value): Wrap long lines.
12531 (finish_command_continuation, finish_command): Remove unused
12532 variable `funcaddr'. Fix some coding-standards problems.
12533
12534 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12535 SECT_SIZE is large enough, not whether it's exactly the right size.
12536 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12537 TDEP->fpregset to zero.
12538
12539 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12540 floating-point registers for traditional NetBSD core files.
12541 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12542 TDEP->sizeof_fpregset here.
12543
12544 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12545
12546 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12547 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12548 function with code split out from
12549 sparc32nbsd_sigcontext_frame_cache.
12550 (sparc32nbsd_sigcontext_frame_cache): Use
12551 sparc32nbsd_sigcontext_saved_regs.
12552 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12553 OpenBSD.
12554 * sparcobsd-tdep.c: New file.
12555 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12556 (sparcobsd-tdep.o): New dependency.
12557 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12558 * config/sparc/obsd.mt: New file.
12559
12560 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12561 TDEP->fpregset to be initialized to enable core file register
12562 sets.
12563
12564 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12565
12566 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12567 Add opaque declarations.
12568 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12569 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12570 function with code split out from
12571 sparc64nbsd_sigcontext_frame_cache.
12572 (sparc64nbsd_sigcontext_frame_cache): Use
12573 sparc64nbsd_sigcontext_saved_regs.
12574 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12575 OpenBSD.
12576 * sparc64obsd-tdep.c: New file.
12577 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12578 (sparc64obsd-tdep.o): New dependency.
12579 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12580 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12581 * config/sparc/obsd64.mt: New file.
12582
12583 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12584 read the instruction at PC.
12585
12586 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12587 value of GDB_OSABI_DEFAULT.
12588 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12589 instead of GDB_OSABI_NETBSD_AOUT.
12590
12591 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12592
12593 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12594 copyright.
12595
12596 2004-01-23 Andrew Cagney <cagney@redhat.com>
12597
12598 * printcmd.c (display_command): Replace tui_set_display call with
12599 tui_set_layout_for_display_command.
12600 * tui/tui.h (enum tui_win_type): Define.
12601 (tui_set_layout): Delete declaration.
12602 (tui_set_layout_for_display_command): Rename set_tui_layout.
12603 * tui/tui-data.h (enum tui_layout_type): Define.
12604 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12605 "tui.h".
12606 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12607 (tui_default_win_height): Rename tuiDefaultWinHeight.
12608 (tui_default_win_viewport_height): Rename
12609 tuiDefaultWinViewportHeight.
12610 (tui_set_layout): RenametuiSetLayout.
12611 * tui/tui-layout.c: Update references.
12612 * tui/tui.c: Update references.
12613 * tui/tui-disasm.c: Update references.
12614
12615 2004-01-23 David Carlton <carlton@kealia.com>
12616
12617 Partial workaround for PR c++/1511:
12618 * cp-namespace.c: Include frame.h.
12619 (cp_lookup_transparent_type): New
12620 (cp_lookup_transparent_type_loop): New.
12621 * cp-support.h: Declare cp_lookup_transparent_type.
12622 * symtab.c (basic_lookup_transparent_type): Renamed from
12623 lookup_transparent_type.
12624 (lookup_transparent_type): Replace old body by a call to
12625 current_language->la_lookup_transparent_type.
12626 * symtab.h: Update copyright. Declare
12627 basic_lookup_transparent_type.
12628 * language.h: Update copyright.
12629 (struct language_defn): Add la_lookup_transparent_type.
12630 * language.c: Update copyright.
12631 (unknown_language_defn): Add basic_lookup_transparent_type.
12632 (auto_language_defn): Add basic_lookup_transparent_type.
12633 (local_language_defn): Add basic_lookup_transparent_type.
12634 * ada-lang.c: Update copyright.
12635 (ada_language_defn): Add basic_lookup_transparent_type.
12636 * c-lang.c: Update copyright.
12637 (c_language_defn): Add basic_lookup_transparent_type.
12638 (cplus_language_defn): Add basic_lookup_transparent_type.
12639 (asm_language_defn): Add basic_lookup_transparent_type.
12640 (minimal_language_defn): Add basic_lookup_transparent_type.
12641 * f-lang.c: Update copyright.
12642 (f_language_defn): Add basic_lookup_transparent_type.
12643 * jv-lang.c: Update copyright.
12644 (java_language_defn): Add basic_lookup_transparent_type.
12645 * m2-lang.c: Update copyright.
12646 (m2_language_defn): Add basic_lookup_transparent_type.
12647 * objc-lang.c: Update copyright.
12648 (objc_language_defn): Add basic_lookup_transparent_type.
12649 * p-lang.c: Update copyright.
12650 (p_language_defn): Add basic_lookup_transparent_type.
12651 * scm-lang.c: Update copyright.
12652 (scm_language_defn): Add basic_lookup_transparent_type.
12653 * Makefile.in (cp-namespace.o): Depend on frame.h.
12654
12655 2004-01-23 David Carlton <carlton@kealia.com>
12656
12657 Patch for PR c++/1520:
12658 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12659 properly if we have a specification die.
12660 (determine_prefix_aux): Rename from determine_prefix.
12661 (determine_prefix): Like the old determine_prefix, but never
12662 returns NULL.
12663
12664 2004-01-23 Theodore A. Roth <troth@openavr.org>
12665
12666 * avr-tdep.c: Update copyright.
12667 (avr_iaddr_p): Delete unused function.
12668 (avr_saddr_p): Delete unused function.
12669
12670 2004-01-23 David Carlton <carlton@kealia.com>
12671
12672 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12673 Fix for PR symtab/1534.
12674
12675 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12676
12677 * NEWS (New native configurations): Mention OpenBSD/sparc and
12678 OpenBSD/sparc64.
12679 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12680 * configure.host: Likewise.
12681 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12682 handler for OpenBSD.
12683 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12684
12685 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12686
12687 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12688 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12689
12690 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12691 * cli/cli-cmds.c (shell_escape): Likewise.
12692
12693 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12694 OpenBSD .note.openbsd.ident sections.
12695
12696 2004-01-22 David Carlton <carlton@kealia.com>
12697
12698 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12699 get_scope_pc_bounds.
12700 (read_file_scope): Ditto.
12701 (get_scope_pc_bounds): New function, produced by extracting code
12702 from the above two functions, consolidating it, and adding support
12703 for DW_TAG_namespace.
12704
12705 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12706
12707 * osabi.c (MAX_NOTESZ): New define.
12708 (check_note): New function.
12709 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12710 check_note.
12711
12712 2004-01-21 Roland McGrath <roland@redhat.com>
12713
12714 * MAINTAINERS (write after approval): Add myself.
12715
12716 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12717
12718 * utils.c (init_page_info): Move declarations of `rows' and
12719 `cols' before the __GO32__-specific code. Move the closing brace
12720 outside the #ifdef __GO32__..#endif block.
12721 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12722
12723 2004-01-21 Paul Brook <paul@codesourcery.com>
12724
12725 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12726 BPSTAT_WHAT_CHECK_SHLIBS.
12727
12728 2004-01-21 Paul Brook <paul@codesourcery.com>
12729
12730 * MAINTAINERS: Add myself to write-after-approval.
12731
12732 2004-01-20 Andrew Cagney <cagney@redhat.com>
12733
12734 * ax-gdb.c (print_axs_value): Delete unused function.
12735 * jv-lang.c (java_lookup_type): Delete unused function.
12736 * cli/cli-dump.c (dump_filetype): Delete unused function.
12737 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12738 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12739 (mips_getstring): Delete unused function.
12740 (pmon_insert_breakpoint): Delete #if0ed function.
12741 (PMON_MAX_BP): Delete #if0ed MACRO.
12742 (mips_pmon_bp_info): Delete #if0ed variable.
12743 (pmon_remove_breakpoint): Delete #if0ed function.
12744 * monitor.c (monitor_write_even_block): Delete unused function.
12745 (monitor_write_memory_block): Delete #if0ed code.
12746 * dink32-rom.c (dink32_load): Delete unused function.
12747 (_initialize_dink32_rom): Delete #if0ed code.
12748 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12749
12750 * tui/tui-command.c: Update references.
12751 * tui/tui-io.c: Update references.
12752 * tui/tui-command.h: Update copyright.
12753 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12754
12755 * source.c (ambiguous_line_spec): Delete never-defined function.
12756 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12757 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12758 * cli/cli-cmds.c (validate_comname): Ditto.
12759
12760 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12761 "tui-data.h".
12762 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12763 (tui_show_disassem): Rename tuiShowDisassem.
12764 (tui_show_disassem_and_update_source): Rename
12765 tuiVerticalDisassemScroll.
12766 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12767 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12768 * tui/tui.h: Update copyright.
12769 (enum tui_status): Define.
12770 * tui/tui-data.h (enum tui_scroll_direction): Define.
12771 * tui/tui-disasm.c: Update copyright. Update references.
12772 * tui/tui-winsource.c: Update copyright. Update references.
12773 * tui/tui-win.c: Update references.
12774 * tui/tui-layout.c: Update references.
12775
12776 2004-01-20 Andrew Cagney <cagney@redhat.com>
12777
12778 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12779 sym2 to start of block.
12780
12781 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12782
12783 * MAINTAINERS: Delete mmalloc.
12784 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12785 * NEWS: Mention removal of --with-malloc.
12786 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12787 * config.in: Regenerate.
12788 * configure: Regenerate.
12789 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12790 USE_MMALLOC, MMCHECK_FORCE.
12791 * gdbinit.in: Remove mmalloc.
12792 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12793 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12794 * config/i386/go32.mh: Likewise.
12795 * config/i386/interix.mh: Likewise.
12796 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12797
12798 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12799
12800 * linespec.c (decode_variable, symtab_from_filename): Call
12801 error_silent with error message instead of throwing an exception
12802 directly.
12803 * defs.h (error_silent, error_output_message): Add prototypes.
12804 (catch_exceptions_with_msg): Ditto.
12805 * utils.c (error_silent, error_output_message): New functions.
12806 * top.c (catch_exceptions_with_msg): New function.
12807
12808 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12809
12810 * mi/mi-cmds.h (enum print_values): Add definition.
12811
12812 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12813 type and value for simple data types and just the name and type
12814 for complex ones, if required.
12815
12816 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12817 children, if required.
12818
12819 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12820
12821 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12822 unused declarations.
12823
12824 2004-01-19 Andrew Cagney <cagney@redhat.com>
12825
12826 * top.h (mapped_symbol_files): Delete declaration.
12827 * main.c (captured_main): Delete option "m" and "mapped".
12828 * objfiles.c (mapped_symbol_files): Delete variable.
12829 * symfile.c (symbol_file_command): Delete mmap code.
12830 (symbol_file_add_with_addrs_or_offsets): Ditto.
12831 (add_symbol_file_command, reread_separate_symbols): Ditto.
12832 * objfiles.h (OBJF_MAPPED): Delete.
12833 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12834 (free_objfile) [USE_MMALLOC]: Ditto.
12835 (open_existing_mapped_file): Delete function.
12836 (open_mapped_file): Delete function.
12837 (map_to_file): Delete function.
12838
12839 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12840
12841 * infrun.c (step_into_function): Account for possible breakpoint
12842 adjustment when computing ``stop_func_start''.
12843
12844 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12845
12846 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12847 the region size against the size of a pointer, not the size of
12848 a register as given by DEPRECATED_REGISTER_SIZE.
12849
12850 2004-01-19 Andrew Cagney <cagney@redhat.com>
12851
12852 * tui/tui-regs.h: Include "tui-data.h".
12853 (tuiFirstRegElementNoInLine): Delete declaration.
12854 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12855 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12856 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12857 (tui_calculate_regs_column_count): Rename
12858 tuiCalculateRegsColumnCount.
12859 (tui_check_register_values): Rename tuiCheckRegisterValues.
12860 (tui_show_registers): Rename tuiShowRegisters.
12861 (tui_display_registers_from_line): Rename
12862 tuiDisplayRegistersFromLine.
12863 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12864 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12865 (tui_first_reg_element_no_inline): Rename
12866 tuiFirstRegElementNoInLine.
12867 * tui/tui-data.h: Update copyright.
12868 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12869 * tui/tui-windata.c: Update copyright, update references.
12870 * tui/tui-regs.c: Update copyright, update references.
12871 * tui/tui-win.c: Update copyright, update references.
12872 * tui/tui-layout.c: Update copyright, update references.
12873
12874 2004-01-18 Andrew Cagney <cagney@redhat.com>
12875
12876 * tui/tui-io.c: Update copyright.
12877 (key_is_end_sequence, key_is_backspace): New functions.
12878 (key_is_command_char, key_is_start_sequence): New function.
12879 (tui_getc): Update references.
12880 * tui/tui-io.h: Update copyright.
12881 (m_tuiStartNewLine): Delete macro.
12882 (m_isBackspace, m_isDeleteChar): Delete macros.
12883 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12884 (m_isNextPage, m_isPrevPage): Delete macros.
12885 (m_isLeftArrow, m_isRightArrow): Delete macros.
12886 (m_isXdbStyleCommandChar): Delete macro.
12887 (key_is_start_sequence): Declare, replace m_isStartSequence.
12888 (key_is_end_sequence): Declare, replace m_isEndSequence.
12889 (key_is_backspace): Declare ,replace m_isBackspace.
12890 (key_is_command_char): Declare, replace m_isCommandChar.
12891 * tui/tui-command.c: Update copyright.
12892 (tuiDispatchCtrlChar): Update references.
12893
12894 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12895 tuiSourceWin.h.
12896
12897 * tui/tui-command.c: Rename tui/tuiCommand.c.
12898 * tui/tui-command.h: Rename tui/tuiCommand.h.
12899 * tui/tui-data.c: Rename tui/tuiData.c.
12900 * tui/tui-data.h: Rename tui/tuiData.h.
12901 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12902 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12903 * tui/tui-io.c: Rename tui/tuiIO.c.
12904 * tui/tui-io.h: Rename tui/tuiIO.h.
12905 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12906 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12907 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12908 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12909 * tui/tui-source.c: Rename tui/tuiSource.c.
12910 * tui/tui-source.h: Rename tui/tuiSource.h.
12911 * tui/tui-stack.c: Rename tui/tuiStack.c.
12912 * tui/tui-stack.h: Rename tui/tuiStack.h.
12913 * tui/tui-win.c: Rename tui/tuiWin.c.
12914 * tui/tui-win.h: Rename tui/tuiWin.h.
12915 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12916 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12917 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12918 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12919 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12920 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12921 * tui/tui-file.c: Update includes.
12922 * tui/tui-hooks.c: Update includes.
12923 * tui/tui-interp.c: Update includes.
12924 * tui/tui.c: Update includes.
12925 * Makefile.in: Update all tui/ dependencies.
12926 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12927
12928 * Makefile.in: Update copyright. Update dependencies.
12929
12930 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12931 problem.
12932
12933 2004-01-18 Andrew Cagney <cagney@redhat.com>
12934
12935 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12936 instead of register_gdbarch_init.
12937
12938 * remote-sds.c (tohex): Delete unused function. Update copyright.
12939 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12940 * v850-tdep.c (v850_register_virtual_size): Ditto.
12941 * target.c (normal_target_post_startup_inferior): Ditto.
12942 * source.c (ambiguous_line_spec): Ditto.
12943 * remote.c (adapt_remote_get_threadinfo): Ditto.
12944 * mi/mi-out.c (out_field_fmt): Ditto.
12945 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12946 (output_control_change_notification): Ditto.
12947 * m68k-tdep.c (m68k_register_byte): Ditto.
12948 (m68k_remote_breakpoint_from_pc): Ditto.
12949 * ui-out.c (init_ui_out_state): Delete unused declaration.
12950 * stabsread.c (search_value): Ditto.
12951 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12952 * maint.c (print_section_table): Ditto.
12953 * infrun.c (set_follow_fork_mode_command): Ditto.
12954
12955 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12956
12957 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12958 DW_CFA_def_cfa_exporession. Add support for
12959 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12960 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12961
12962 2004-01-18 Andrew Cagney <cagney@redhat.com>
12963
12964 * ocd.c: Update copyright.
12965 (bdm_read_register_command): Delete unused function.
12966 (_initialize_remote_ocd): Delete commented out reference.
12967 (get_quoted_char, reset_packet): Delete #if0ed function.
12968 (output_packet, put_quoted_char): Delete #if0ed function.
12969 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12970 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12971 (BDM_BREAKPOINT): Delete #if0ed macro.
12972 (remote_timeout): Delete #if0ed variable.
12973
12974 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12975
12976 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12977 (core-sol2.o): Remove dependency.
12978 * core-sol2.c: Remove file.
12979
12980 2004-01-17 Andrew Cagney <cagney@redhat.com>
12981
12982 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12983 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12984 enums.
12985
12986 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12987
12988 * remote.c: Update copyright years.
12989
12990 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12991
12992 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12993
12994 2004-01-17 Andrew Cagney <cagney@redhat.com>
12995
12996 * mdebugread.c: Update copyright.
12997 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12998 (parse_type, parse_procedure): Ditto.
12999 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13000
13001 * cris-tdep.c (cris_store_struct_return): Put back accidently
13002 deleted function.
13003
13004 * gdbarch.sh: Update copyright year.
13005 * gdbarch.h, gdbarch.c: Re-generate.
13006
13007 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13008
13009 Suggested by George Anzinger.
13010 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13011 correct stack offset. Include unknown opcode numbers in the error
13012 message.
13013
13014 2004-01-17 Andrew Cagney <cagney@redhat.com>
13015
13016 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13017 extract_struct_value_address, i386 does not set it.
13018 * sparc64-tdep.c (sparc64_init_abi): Do not set
13019 extract_struct_value_address, never called.
13020 (sparc64_extract_struct_value_address): Delete function.
13021 * m68hc11-tdep.c: Update copyright.
13022 (m68hc11_gdbarch_init): Delete redundant assignment of
13023 extract_struct_value_address.
13024 * i386-tdep.c: Update copyright.
13025 (i386_gdbarch_init): Do not set extract_struct_value_address,
13026 never called.
13027 (i386_extract_struct_value_address): Delete function.
13028 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13029 extract_struct_value_address, never called.
13030 (sparc32_extract_struct_value_address): #if 0 function. Add
13031 comments explaining its future.
13032
13033 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13034
13035 * arm-tdep.c (arm_write_pc): New function.
13036 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13037
13038 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13039
13040 * breakpoint.c (must_shift_inst_regs): Delete.
13041 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13042 and SHIFT_INST_REGS.
13043 * infcmd.c (step_1, step_1_continuation): Delete references to
13044 SHIFT_INST_REGS.
13045 * infrun.c (keep_going): Likewise.
13046 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13047 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13048
13049 2004-01-17 Andrew Cagney <cagney@redhat.com>
13050
13051 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13052 * gdbarch.h, gdbarch.c: Re-generate.
13053 * infcmd.c (print_return_value): Delete reference to
13054 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13055
13056 * cris-tdep.c (cris_gdbarch_init): Do not set
13057 deprecated_extract_struct_value_address.
13058
13059 * xstormy16-tdep.c: Update copyright.
13060 (xstormy16_extract_struct_value_address): Update to current
13061 extract struct value address interface.
13062 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13063 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13064 current extract struct value address interface.
13065 (sh64_gdbarch_init): Set extract_struct_value_address.
13066
13067 * cris-tdep.c: Update copyright.
13068 (cris_extract_struct_value_address): Delete function.
13069 (struct_return_address): Delete variable.
13070 (cris_store_struct_return): Do not set struct_return_address.
13071
13072 * mcore-tdep.c: Update copyright.
13073 (mcore_extract_struct_value_address): Delete function. Update
13074 comments.
13075 (mcore_gdbarch_init): Update.
13076 * mn10300-tdep.c: Update copyright.
13077 (mn10300_extract_struct_value_address): Delete function.
13078 (mn10300_gdbarch_init): Update.
13079 * v850-tdep.c: Update copyright.
13080 (v850_extract_struct_value_address): Delete.
13081 (v850_gdbarch_init): Update.
13082 * ns32k-tdep.c: Update copyright.
13083 (ns32k_extract_struct_value_address): Delete.
13084 (ns32k_gdbarch_init): Update.
13085 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13086 (hppa_gdbarch_init): Update.
13087 * vax-tdep.c: Update copyright.
13088 (vax_extract_struct_value_address): Delete.
13089 (vax_gdbarch_init): Update.
13090
13091 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13092 * gdbarch.h, gdbarch.c: Re-generate.
13093 * procfs.c (procfs_fetch_registers): Delete reference to
13094 DEPRECATED_NPC_REGNUM.
13095 (procfs_store_registers): Ditto.
13096 * regcache.c (generic_target_write_pc): Simplify.
13097 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13098
13099 * core-sol2.c (fetch_core_registers): Replace
13100 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13101
13102 * hppa-tdep.c: Update copyright year.
13103 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13104 NPC_REGNUM.
13105 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13106
13107 * mips-tdep.c (mips_write_pc): New function.
13108 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13109 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13110 (mips_find_saved_regs, mips_software_single_step: Ditto.
13111 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13112 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13113
13114 2004-01-17 Andrew Cagney <cagney@redhat.com>
13115
13116 * mips-tdep.c: Re-indent. Group functions by ABI.
13117
13118 2004-01-17 Andrew Cagney <cagney@redhat.com>
13119
13120 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13121 * gdbarch.c: Re-generate.
13122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13123 DECR_PC_AFTER_BREAK to zero.
13124 * vax-tdep.c (vax_gdbarch_init): Ditto.
13125 * v850-tdep.c (v850_gdbarch_init): Ditto.
13126 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13127 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13128 * sh-tdep.c (sh_gdbarch_init): Ditto.
13129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13130 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13131 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13132 * mips-tdep.c (mips_gdbarch_init): Ditto.
13133 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13135 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13136 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13137 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13138 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13139 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13140 * frv-tdep.c (frv_gdbarch_init): Ditto.
13141 * cris-tdep.c (cris_gdbarch_init): Ditto.
13142 * avr-tdep.c (avr_gdbarch_init): Ditto.
13143 * arm-tdep.c (arm_gdbarch_init): Ditto.
13144 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13145
13146 2004-01-17 J. Brobecker <brobecker@gnat.com>
13147
13148 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13149 Delete, no longer used.
13150 (read_subrange_type): New function, mostly extracted from
13151 read_array_type().
13152 (read_array_type): Replace extracted code by call to
13153 read_subrange_type().
13154 (dwarf2_get_attr_constant_value): New function.
13155 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13156 (add_partial_symbol): Likewise.
13157 (process_die): Likewise.
13158 (new_symbol): Likewise.
13159 (read_type_die): Likewise.
13160
13161 2004-01-16 Andrew Cagney <cagney@redhat.com>
13162
13163 * symfile.c: Update copyright year.
13164 (compare_symbols): Delete unused function.
13165 * stabsread.c: Update copyright year.
13166 (lrs_general_complaint): Delete unused function.
13167 (ref_search_value): Ditto.
13168 (get_substring): Delete declaration.
13169 * sh64-tdep.c: Update copyright year.
13170 (sh64_get_gdb_regnum): Delete unused function.
13171 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13172 Delete unused function.
13173
13174 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13175
13176 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13177 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13178
13179 2004-01-16 Andrew Cagney <cagney@redhat.com>
13180
13181 Changes from Peter Schauer.
13182 * rs6000-tdep.c: Update copyright year.
13183 (rs6000_push_dummy_call): Update the stack pointer before
13184 accessing the corresponding stack region.
13185 * rs6000-nat.c: Update copyright year.
13186 (set_host_arch): Set "info.abfd" to "exec_bfd".
13187
13188 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13189
13190 * blockframe.c: Update copyright year.
13191 (inside_entry_func): Don't treat a zero PC specially.
13192
13193 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13194
13195 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13196 variable.
13197 (gcore_create_callback): Ditto. Skip any memory segment that has
13198 no permissions set.
13199
13200 2004-01-14 David Carlton <carlton@kealia.com>
13201
13202 Change symbols for C++ nested types to contain the fully qualified
13203 name, if possible. (At least in the DWARF-2 case.) Partial fix
13204 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13205 c++/895.
13206 * c-exp.y (qualified_type): Handle types nested within classes.
13207 * cp-namespace.c: Update comments.
13208 (cp_set_block_scope): Delete #if 0.
13209 (cp_lookup_nested_type): Handle types nested within classes.
13210 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13211 when appropriate.
13212 (add_partial_symbol): Add the name of the enclosing namespace to
13213 types.
13214 (pdi_needs_namespace): New.
13215 (add_partial_namespace): Tweak comment.
13216 (add_partial_structure): New.
13217 (psymtab_to_symtab_1): Initialize processing_current_prefix
13218 here...
13219 (process_die): instead of here.
13220 (read_structure_scope): Try to figure out the name of the class or
13221 namespace that the structure might be defined within.
13222 (read_enumeration): Generate fully-qualified names, if possible.
13223 (read_namespace): Don't set name to NULL.
13224 (die_specification): New.
13225 (new_symbol): Generate fully-qualified names for types.
13226 (read_type_die): Determine appropriate prefix.
13227 (determine_prefix): New.
13228 (typename_concat): New.
13229 (class_name): New.
13230 * valops.c (value_aggregate_elt): Pass NOSIDE to
13231 value_struct_elt_for_reference.
13232 (value_struct_elt_for_reference): Make static, add NOSIDE
13233 parameter, call value_maybe_namespace_elt as a last resort.
13234 (value_namespace_elt): Break out code into
13235 value_maybe_namespace_elt.
13236 (value_maybe_namespace_elt): New.
13237
13238 2004-01-12 Andrew Cagney <cagney@redhat.com>
13239
13240 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13241 cooked floating-point registers.
13242 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13243 and value_to_register.
13244
13245 2004-01-13 Andrew Cagney <cagney@redhat.com>
13246
13247 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13248 * gdbarch.c: Re-generate.
13249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13250 FUNCTION_START_OFFSET.
13251 * v850-tdep.c (v850_gdbarch_init): Ditto.
13252 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13253 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13254 * sh-tdep.c (sh_gdbarch_init): Ditto.
13255 * s390-tdep.c (s390_gdbarch_init): Ditto.
13256 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13257 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13258 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13259 * mips-tdep.c (mips_gdbarch_init): Ditto.
13260 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13261 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13263 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13264 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13265 * i386-tdep.c (i386_gdbarch_init): Ditto.
13266 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13268 * frv-tdep.c (frv_gdbarch_init): Ditto.
13269 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13270 * cris-tdep.c (cris_gdbarch_init): Ditto.
13271 * avr-tdep.c (avr_gdbarch_init): Ditto.
13272 * arm-tdep.c (arm_gdbarch_init): Ditto.
13273 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13274
13275 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13276
13277 * infrun.c (follow_fork_mode_ask): Remove.
13278 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13279 (follow_fork): Simplify and remove internal error for
13280 follow_fork_mode_ask.
13281 (_initialize_infrun): Update "set follow-fork-mode" help text.
13282
13283 2004-01-13 Andrew Cagney <cagney@redhat.com>
13284
13285 * configure.in: Update copyright year.
13286 (build_warnings): Add -Wunused-label.
13287 * configure: Re-generate.
13288
13289 2004-01-12 Andrew Cagney <cagney@redhat.com>
13290
13291 * exec.h (exec_ops): Make "extern".
13292
13293 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13294 the function is void.
13295 (mips_pseudo_register_write): Ditto.
13296
13297 2004-01-12 Andrew Cagney <cagney@redhat.com>
13298
13299 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13300 call. Never defined.
13301 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13302 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13303 (struct sparc_gregset, struct regcache): Ditto.
13304 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13305
13306 2004-01-12 Andrew Cagney <cagney@redhat.com>
13307
13308 * mi/ChangeLog: Delete file. Renamed to ...
13309 * mi/ChangeLog-1999-2003: New file.
13310 * tui/ChangeLog: Delete file. Renamed to ...
13311 * tui/ChangeLog-1998-2003: New file.
13312
13313 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13314
13315 * sparc64nbsd-tdep.c: Include "regset.h".
13316 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13317 Remove variables.
13318 (fetch_core_registers): Remove function.
13319 (sparc64nbsd_core_fns): Remove variable.
13320 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13321 functions.
13322 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13323 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13324 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13325
13326 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13327 sparc_extract_struct_value_address.
13328 (sparc32_gdbarch_init): Set extract_struct_value_address.
13329 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13330 function.
13331 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13332 return_value_on_stack.
13333
13334 * NEWS: Mention that %cs and %ss have been added to the AMD64
13335 configurations
13336
13337 * frame.c: Update copyright year.
13338 (get_prev_frame): Improve comment.
13339
13340 * sparc64fbsd-tdep.c: Include "regset.h".
13341 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13342 Remove variables.
13343 (fetch_core_registers): Remove function.
13344 (sparc64fbsd_core_fns): Remove variable.
13345 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13346 functions.
13347 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13348 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13349 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13350
13351 * sparcnbsd-tdep.c: Include "regset.h".
13352 (fetch_core_registers): Remove function.
13353 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13354 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13355 functions.
13356 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13357 TDEP->fpregset.
13358 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13359
13360 * sparc-tdep.h (struct regset): Provide opaque declaration.
13361 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13362 fpregset and sizeof_fpregset members.
13363 * sparc-tdep.c (struct regset): Provide opaque declaration.
13364 (sparc_regset_from_core_section): New function.
13365 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13366 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13367 Set regset_from_core_section when appropriate.
13368
13369 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13370
13371 * x86-64-tdep.c (amd64_non_pod_p): New function.
13372 (amd64_classify_aggregate): Return class memory for non-POD
13373 C++ structure types.
13374
13375 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13376 argument. Use it to reserve a register if necessary.
13377 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13378 amd64_push_arguments.
13379
13380 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13381
13382 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13383 register numbers in comments.
13384 * x86-64-tdep.h: Update copyright year.
13385 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13386 Adjust for addition of %cs and %ss.
13387 * amd64fbsd-nat.c: Update copyright year.
13388 (reg_offset): Add register offsets for %cs and %ss.
13389 * amd64fbsd-tdep.c: Update copyright year.
13390 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13391 (amd64fbsd_sc_reg_offset): Likewise.
13392 * x86-64-linux-nat.c: Update copyright year.
13393 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13394 and %ss.
13395 * amd64nbsd-nat.c: Update copyright year.
13396 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13397 * amd64nbsd-tdep.c: Update copyright year.
13398 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13399 * x86-64-linux-tdep.c: Update copyright year.
13400 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13401 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13402 * regformats/reg-x86-64.dat: Add %cs and %ss.
13403
13404 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13405 variables to prevent long lines. Update comments to reflect
13406 reality.
13407
13408 2004-01-09 David Carlton <carlton@kealia.com>
13409
13410 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13411 * dwarf2read.c (read_namespace): Pull out name-generating code
13412 into namespace_name. Rename previous_namespace to previous_prefix
13413 and processing_current_namespace to processing_current_prefix..
13414 (namespace_name): New function.
13415 (add_partial_symbol): Substitute uses of pdi->name with
13416 actual_name.
13417 * cp-support.h: Rename processing_current_namespace to
13418 processing_current_prefix.
13419 Update copyright year.
13420 * cp-namespace.c: Rename processing_current_namespace to
13421 processing_current_prefix.
13422 Update copyright year.
13423
13424 2004-01-09 Andrew Cagney <cagney@redhat.com>
13425
13426 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13427
13428 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13429
13430 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13431 complaining.
13432 (process_one_symbol): Deal with N_PATCH stabs.
13433
13434 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13435
13436 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13437 ifdeffed code.
13438 Update copyright year.
13439
13440 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13441
13442 * config/pa/tm-hppa.h: Update extern declarations for
13443 hppa32_hpux_frame_saved_pc_in_sigtramp,
13444 hppa32_hpux_frame_base_before_sigtramp, and
13445 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13446
13447 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13448
13449 * config/pa/tm-hppah.h: Update copyright years.
13450
13451 2004-01-08 Andrew Cagney <cagney@redhat.com>
13452
13453 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13454 (mips_o32_reg_struct_has_addr): Delete function.
13455 (mips_gdbarch_init): Update.
13456 (mips_extract_struct_value_address): Delete function.
13457
13458 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13459
13460 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13461 reality.
13462
13463 2004-01-07 Andrew Cagney <cagney@redhat.com>
13464
13465 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13466 architecture's elf flags (when available).
13467
13468 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13469 FPU to the start, check the MIPS FPU when looking for an old
13470 architecture.
13471 (set_mipsfpu_single_command): Update the architecture.
13472 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13473
13474 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13475 (mips_mask_address_p): Add "tdep" parameter.
13476 (show_mask_address, mips_addr_bits_remove): Update.
13477 (mips_dump_tdep): Update.
13478 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13479 (MIPS_STACK_ARGSIZE): Delete macro.
13480 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13481 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13482 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13483 (mips_dump_tdep): Update.
13484 (MIPS_SAVED_REGSIZE): Delete macro.
13485 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13486 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13487 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13488 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13489 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13490 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13491 (mips_pop_frame, return_value_location): Update.
13492 (mips_n32n64_return_value, mips_dump_tdep): Update.
13493
13494 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13495 MIPS ABI.
13496
13497 * mips-tdep.c: Update copyright.
13498 (mips_gdbarch_init): Merge two code blocks handling the register
13499 name and number layout.
13500
13501 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13502
13503 * tracepoint.c (validate_actionline): Fix segv at EOF
13504
13505 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13506
13507 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13508 properly for static fields.
13509
13510 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13511 Jason Molenda <jmolenda@apple.com>
13512
13513 * disasm.c: Update copyright to include 2004.
13514 (do_mixed_source_and_assembly): For uiout asm list
13515 and tuple cleanups, initialize to null_cleanup instead of
13516 NULL and do so prior to loop. Only reset when we close off
13517 the tuple/list. Move check for whether to close off the
13518 asm tuple/list to after dump_insns call where it will be run
13519 on each loop iteration.
13520
13521 2004-01-05 Andrew Cagney <cagney@redhat.com>
13522
13523 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13524 should be a switch case and not a label.
13525 * mips-tdep.c (mips32_next_pc): Delete unused labels
13526 "greater_equal_branch" and "less_zero_branch".
13527 * jv-valprint.c (java_print_value_fields): Delete unused label
13528 "flush_it".
13529
13530 * target.c (unpush_target): Only close a target that is in the
13531 target stack.
13532
13533 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13534
13535 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13536 address from [sp + 64] instead of %o2.
13537
13538 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13539 fixes PR backtrace/1476.
13540
13541 2004-01-05 Andrew Cagney <cagney@redhat.com>
13542
13543 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13544 move to start of file.
13545 * i386-tdep.h (struct regcache): Add opaque declaration.
13546 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13547 declaration.
13548 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13549 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13550 * win32-nat.c (fake_create_process): Use ISO C style definition.
13551 * stabsread.c (define_symbol): Delete #ifndef
13552 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13553 stabs_argument_has_addr call, macro never defined.
13554
13555 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13556
13557 * op50-rom.c: Delete.
13558 * w89k-rom.c: Delete.
13559 * Makefile.in: Remove references.
13560
13561 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13562
13563 * x86-64-tdep.c: Update copyright year.
13564 (struct amd64_register_info): Rename from x86_64_register_info.
13565 (amd64_register_info): Rename from x86_64_register_info.
13566 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13567 (amd64_register_name): Rename from x86_64_register_name.
13568 (amd64_register_type): Rename from x86_64_register_type.
13569 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13570 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13571 (amd64_dwarf_reg_to_regnum): Rename from
13572 x86_64_dwarf_reg_to_regnum.
13573 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13574 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13575 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13576 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13577 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13578 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13579 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13580 (amd64_frame_cache): Rename from x86_64_frame_cache.
13581 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13582 (amd64_frame_prev_register): Rename from
13583 x86_64_frame_prev_register.
13584 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13585 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13586 (amd64_sigtramp_frame_cache): Rename from
13587 x86_64_sigtramp_frame_cache.
13588 (amd64_sigtramp_frame_prev_register): Rename from
13589 x86_64_sigtramp_frame_prev_register.
13590 (amd64_sigtramp_frame_unwind): Rename from
13591 x86_64_sigtramp_frame_unwind.
13592 (amd64_sigtramp_frame_sniffer): Rename from
13593 x86_64_sigtramp_frame_sniffer.
13594 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13595 (amd64_frame_base): Rename from x86_64_frame_base.
13596 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13597 (amd64_frame_align): Rename from x86_64_frame_align.
13598 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13599 (amd64_regset_from_core_section): Rename from
13600 x86_64_regset_from_core_section.
13601 (x86_64_init_abi): Update comments.
13602
13603 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13604
13605 * MAINTAINERS (write after approval): Add myself.
13606
13607 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13608
13609 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13610 `float' arguments.
13611
13612 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13613
13614 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13615 such that it mentions a specific version of GCC that exhibits this
13616 bug.
13617
13618 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13619
13620 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13621 structure that has a single `float' member, store it in %f1 in
13622 addition to %f0.
13623
13624 * sparc-sol2-nat.c: Add missing '\'.
13625
13626 * sparc-tdep.c (sparc32_return_value): New function.
13627 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13628 Remove functions.
13629 (sparc32_gdbarch_init): Set return_value, don't set
13630 extract_return_value, store_return_value, use_struct_convention
13631 and return_value_on_stack.
13632
13633 * sparc-sol2-nat.c: Add missing ')'.
13634
13635 2004-01-03 J. Brobecker <brobecker@gnat.com>
13636
13637 * infrun.c (handle_step_into_function): New function.
13638 (handle_inferior_event): Extract out some code into the new
13639 function above.
13640
13641 2004-01-03 J. Brobecker <brobecker@gnat.com>
13642
13643 * infrun.c (handle_inferior_event): Move the declaration of
13644 real_stop_pc inside the if blocks where it is used.
13645
13646 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13647
13648 * sparc64-tdep.c (sparc64_16_byte_align_p)
13649 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13650 Use check_typedef to get subtypes of structures and unions.
13651 (sparc64_store_return_value): Fix calculation of the appropriate
13652 offset into VALBUF when storing a structure or union.
13653 (sparc64_return_value): New function.
13654 (sparc64_use_struct_convention): Remove function.
13655 (sparc64_init_abi): Set return_value, don't set
13656 extract_return_value, store_return_value and
13657 use_struct_convention.
13658
13659 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13660
13661 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13662 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13663 gdb/config/alpha/xm-alphaosf.h,
13664 gdb/config/powerpc/tm-ppcle-eabi.h,
13665 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13666 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13667 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13668 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13669 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13670 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13671 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13672 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13673 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13674 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13675 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13676 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13677 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13678 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13679 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13680 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13681 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13682 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13683 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13684 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13685 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13686 Remove lines for .cvsignore files.
13687
13688 2004-01-03 J. Brobecker <brobecker@gnat.com>
13689
13690 * infrun.c: Back out the previous change.
13691
13692 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13693
13694 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13695 sparc-*-sunos4* to the list of REMOVED configurations.
13696
13697 * configure.tgt: Add back sparc-*-vxworks*.
13698 * remote-vxsparc.c: Remove all includes except for "defs.h",
13699 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13700 Include "sparc-tdep.h".
13701 (SPARC_R_G1): New define.
13702 (vxsparc_gregset): New variable.
13703 (ext_format_sparc): Remove extern declaration.
13704 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13705 sparc32_supply_fpregset.
13706 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13707 sparc_collect_rwindow and sparc32_collect_fpregset.
13708 * config/sparc/tm-vxworks.h: New file, based on recently removed
13709 tm-vxsparc.h.
13710 * config/sparc/vxworks.mt: New file, based on recently removed
13711 vxworks.mt.
13712
13713 2004-01-03 J. Brobecker <brobecker@gnat.com>
13714
13715 * infrun.c (handle_step_into_function): New function.
13716 (handle_inferior_event): Extract out some code into the new
13717 function above.
13718
13719 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13720
13721 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13722 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13723 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13724 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13725 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13726 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13727 (sparc_nat_h): New variable.
13728 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13729 (tm-sun4os4.h): Remove dependency.
13730 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13731 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13732 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13733 sparc-tdep.o): Update dependencies.
13734 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13735 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13736 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13737 dependencies.
13738 * configure.host: Remove existing sparc-*-lynxos*,
13739 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13740 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13741 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13742 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13743 triplets.
13744 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13745 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13746 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13747 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13748 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13749 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13750 sparc64-*-solaris2* and sparc64-*-* triplets.
13751 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13752 "symtab.h" and "objfiles.h".
13753 (BIAS): Remove define.
13754 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13755 (X_DISP19): Remove macros.
13756 (sparc_fetch_instruction): Remove function.
13757 (struct gdbarch_tdep): Remove definition.
13758 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13759 (sparc_breakpoint_from_pc): Remove function.
13760 (struct sparc64_frame_cache): Remove definition.
13761 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13762 sparc64_unwind_pc): Remove functions.
13763 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13764 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13765 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13766 (sparc64_frame_cache): Change return type to `struct
13767 sparc_frame_cache *'. Simply call sparc_frame_cache.
13768 (sparc64_frame_this_id, sparc64_frame_prev_register,
13769 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13770 instead of `struct sparc64_frame_cache.
13771 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13772 sparc_analyze_control_transfer, sparc_software_single_step,
13773 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13774 _initialize_sparc64_tdep): Remove functions.
13775 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13776 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13777 macros.
13778 (sparc64_supply_gregset, sparc64_collect_gregset,
13779 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13780 (sparc64_init_abi): New function.
13781 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13782 inclusion guard. Include "sparc-tdep.h".
13783 (BIAS): Define.
13784 (r_tstate_offset, r_fprs_offset): New defines.
13785 (enum sparc_regnum): Remove defenition.
13786 (enum sparc64_regnum): Reformat.
13787 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13788 (sparc64_init_abi, sparc64_supply_gregset,
13789 sparc64_collect_gregset, sparc64_supply_fpregset,
13790 sparc64_collect_fpregset): New prototypes.
13791 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13792 Add extern declarations.
13793 (sparc64_sol2_init_abi): New prototype.
13794 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13795 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13796 prototypes.
13797 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13798 "sparnbsd-nat.h".
13799 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13800 functions.
13801 (_initialize_sparc64fbsd_nat): Remove initialization of
13802 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13803 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13804 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13805 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13806 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13807 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13808 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13809 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13810 (sparc64fbsd_r_y_offset): Remove variables.
13811 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13812 Make static and const.
13813 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13814 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13815 functions.
13816 (sparc64fbsd_gregset): New variable.
13817 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13818 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13819 and sparc64_supply_fpregset.
13820 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13821 (sparc64fbsd_sigtramp_frame_this_id)
13822 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13823 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13824 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13825 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13826 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13827 * sparcnbsd-tdep.c: Update copyright year. Include
13828 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13829 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13830 "value.h" and "sparcnbsd-tdep.h".
13831 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13832 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13833 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13834 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13835 defines.
13836 (sparcnbsd_gregset): New variable.
13837 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13838 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13839 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13840 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13841 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13842 variables.
13843 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13844 (sparc32nbsd_sigcontext_frame_this_id)
13845 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13846 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13847 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13848 (sparcnbsd_get_longjmp_target_32,
13849 sparcnbsd_get_longjmp_target_64): Remove functions.
13850 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13851 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13852 sparcnbsd_init_elf): Remove.
13853 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13854 (sparcnbsd_elf_init_abi): New functions.
13855 (_initialize_sparcnbsd_tdep): New prototype.
13856 (_initialize_sparnbsd_tdep): Update.
13857 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13858 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13859 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13860 * config/sparc/linux.mh: Update comment.
13861 (XM_FILE, HOST_IPC): Remove variables.
13862 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13863 sparc-linux-nat.o.
13864 * config/sparc/linux.mt: Update comment.
13865 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13866 * config/sparc/nbsd.mt: Reformat.
13867 * config/sparc/nbsd64.mh: Update comment.
13868 (NATDEPFILES): Add sparc-nat.o.
13869 * config/sparc/nbsd64.mt: Update comment.
13870 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13871 (TM_FILE): Set to tm-nbsd.h.
13872 * config/sparc/nbsdelf.mh: Update comment.
13873 (NATDEPFILES): Add sparc-nat.o.
13874 (XM_FILE): Delete.
13875 * config/sparc/nbsdaout.mh: Update comment.
13876 (NATDEPFILES): Add sparc-nat.o
13877 (XM_FILE): Delete.
13878 * config/sparc/nm-linux.h: Update copyright year. Don't include
13879 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13880 inclusion.
13881 (KERNEL_U_SIZE): Remove define.
13882 (kernel_u_size): Remove prototype.
13883 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13884 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13885 "regcache.h".
13886 (CHILD_PREPARE_TO_STORE): Remove define.
13887 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13888 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13889 sparcnbsd-nat.c: Rewrite files.
13890 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13891 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13892 sparcnbsd-tdep.h: Remove files.
13893 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13894 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13895 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13896 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13897 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13898 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13899 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13900 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13901 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13902 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13903 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13904 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13905 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13906 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13907 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13908 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13909 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13910 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13911 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13912
13913 2004-01-02 Andrew Cagney <cagney@redhat.com>
13914
13915 From 2003-12-18 Kazuhiro Inaoka:
13916 * configure.host: Add m32r-linux target.
13917
13918 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13919
13920 * top.c (print_gdb_version): Update year to 2004.
13921
13922 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13923
13924 * MAINTAINERS: Add myself to the write-after-approval category.
13925
13926 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13927
13928 From Bernardo Innocenti <bernie@develer.com>:
13929 * configure.tgt: Add uClinux target.
13930
13931 2004-01-02 Andrew Cagney <cagney@redhat.com>
13932
13933 * utils.c (do_my_cleanups): Make static, add forward declaration.
13934 * defs.h (do_my_cleanups): Delete declaration.
13935
13936 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13937
13938 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13939 bfd/ChangeLog-0203.
13940
13941 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13942
13943 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13944 in <machine/reg.h>.
13945 * configure, config.in: Regenerate.
13946
13947 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13948 tui/ChangeLog-1998-2003.
13949 \f
13950 Local Variables:
13951 mode: change-log
13952 left-margin: 8
13953 fill-column: 74
13954 version-control: never
13955 End:
This page took 0.314758 seconds and 4 git commands to generate.