* values.c (modify_field): Correct handling of bit-fields that
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f4e88c8e
PH
12004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2
3 * values.c (modify_field): Correct handling of bit-fields that
4 don't fit in 32 bits. Use unsigned operations throughout and
5 simplify the code a bit. Document preconditions.
6
84674fe1
AC
72004-10-31 Andrew Cagney <cagney@gnu.org>
8
96693b3a
AC
9 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
10 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11 (in_plt_section): Delete.
12
6f296f8f
AC
13 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
14 (mips_gdbarch_init): Do not set same.
15
618501c0
AC
16 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
17 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
18
b22e8f02
AC
19 * gdbarch.sh (in_solib_call_trampoline): Delete.
20 * gdbarch.h, gdbarch.c: Re-generate.
21
84674fe1
AC
22 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
23 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
24 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
25 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
26 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
27
c6d1029f
MK
282004-10-31 Mark Kettenis <kettenis@gnu.org>
29
30 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
31 (mipsnbsd_fetch_inferior_registers): Rename from
32 fetch_inferior_registers. Make static.
33 (mipsnbsd_store_inferior_registers): Rename from
34 store_inferior_registers. Make static.
35 (_initialize_mipsnbsd_nat): New function and prototype.
36 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
37 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
38 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
39 inf-ptrace.o.
40
bd9ca83f
AC
412004-10-31 Andrew Cagney <cagney@gnu.org>
42
19d718a3
AC
43 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
44 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
45 delete corresponding unused function.
46 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
47 in_solib_call_trampoline.
48 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
49 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
50 * config/mips/tm-nbsd.h: Ditto.
51 * config/arm/tm-linux.h: Ditto.
52 * config/mips/tm-linux.h: Ditto.
53
e8ce19c0
AC
54 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
55 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
56 in_solib_call_trampoline, delete corresponding unused function.
57 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
58 (vaxnbsd_aout_init_abi): Ditto.
59 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
60 (sparc32nbsd_aout_init_abi): Ditto.
61 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
62 (ppc_linux_init_abi): Ditto.
63 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
64 (ns32knbsd_init_abi_aout): Ditto.
65 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
66 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
67 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
68 (m68kbsd_aout_init_abi): Ditto.
69 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
70 (i386_cygwin_init_abi): Ditto.
71 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
72 (i386bsd_init_abi): Ditto.
73
af380d61
AC
74 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
75 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
76 isn't used by this architecture.
77 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
78 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
79 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
80 * s390-tdep.c (s390_gdbarch_init): Ditto.
81 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
82 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
83 * i386-tdep.c (i386_svr4_init_abi): Ditto.
84 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
85 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
86 * amd64-tdep.c (amd64_init_abi): Ditto.
87
0528d9f7
AC
88 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
89 in_solib_call_trampoline to its default value of
90 generic_in_solib_call_trampoline.
91 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
92 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
93 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
94 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
95 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
96 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
97
f9f9eacb
AC
98 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
99
a4ffd1e7
AC
100 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
101
82e34d2f
AC
102 * config/mips/tm-mips.h: Delete file.
103 * remote-mips.c: Delete tm-mips.h from comment.
104 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
105 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
106 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
107 * config/mips/tm-linux.h: Don't include tm-mips.h.
108 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
109 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
110 * config/mips/tm-wince.h: Don't include.
111
75dec9cf
AC
112 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
113 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
114 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
115 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
116
bd9ca83f
AC
117 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
118 * mdebugread.c (ecoff_relocate_efi): Delete function.
119 * objfiles.c (objfile_relocate): Delete #ifdef
120 MDEBUG_EFI_SYMBOL_NAME code.
121
3352ef37
AC
1222004-10-31 Orjan Friberg <organ.friberg@axis.com>
123 Andrew Cagney <cagney@gnu.org>
124
125 * gdbarch.sh (single_step_through_delay): Add.
126 * gdbarch.h, gdbarch.c: Re-generate.
127 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
128 (mips_step_skips_delay): Delete.
129 * mips-tdep.c (mips_single_step_through_delay): Replace
130 mips_step_skips_delay.
131 (mips_gdbarch_init): Set single_step_through_delay.
132 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
133
2440b685
MK
1342004-10-31 Mark Kettenis <kettenis@gnu.org>
135
136 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
137 from TRAMP_FRAME frame type.
138
56a2fed5
AC
1392004-10-31 Andrew Cagney <cagney@gnu.org>
140
9b792b1d
AC
141 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
142
0a5e8d98
AC
143 * mips-tdep.c (mips_ignore_helper): Delete.
144 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
145 * infrun.c (handle_inferior_event): Delete #ifdef
146 DEPRECATED_IGNORE_HELPER_CALL code.
147
56a2fed5
AC
148 * config/mips/tm-mips.h (RA_REGNUM): Delete.
149
f69c55b2
MK
1502004-10-31 Mark Kettenis <kettenis@gnu.org>
151
152 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
153 (fill_fpregset): Do not compile for 64-bit systems.
154 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
155 * Makefile.in (i386-sol2-nat.o): Update dependencies.
156 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
157
d37cca3d
AC
1582004-10-30 Andrew Cagney <cagney@gnu.org>
159
36b8628e
AC
160 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
161 (struct mdebug_extra_func_info): Define.
162 * config/alpha/tm-alpha.h: Delete same.
163 * config/mips/tm-mips.h: Delete same.
164 * mdebugread.c: Delete same.
165 * Makefile.in: Update dependencies.
166 * mips-mdebug-tdep.c: Include "mdebugread.h".
167
5b123146
AC
168 * objfiles.c: Include "mdebugread.h".
169 * mdebugread.c: Include "mdebugread.h".
170 (ecoff_relocate_cfi): Delete.
171 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
172 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
173 * mdebugread.h (ecoff_relocate_efi): New file.
174 * Makefile.in: Update dependencies.
175
b9c3a7de
AC
176 * mips-tdep.c (struct frame_extra_info): Delete.
177 (temp_proc_desc): Delete.
178
f92761ec
AC
179 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
180 MIPS_EFI_SYMBOL_NAME.
181 (mips_extra_func_info_t, mips_extra_func_info): Delete.
182 (struct mdebug_extra_func_info): Replace struct
183 alpha_extra_func_info and alpha_extra_func_info_t.
184 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
185 MIPS_EFI_SYMBOL_NAME.
186 (struct mdebug_extra_func_info): Replace struct
187 alpha_extra_func_info and alpha_extra_func_info_t.
188 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
189 * mdebugread.c, alpha-mdebug-tdep.c:
190
0bb57b31
AC
191 Suggested by Mark Kettenis.
192 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
193 fields frame_adjust and high_addr.
194 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
195 (non_heuristic_proc_desc): Delete references.
196
a5c9623c
AC
197 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
198 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
199 * mips-tdep.c: Update.
200
607fc93c
AC
201 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
202 (MIPS_LAST_EMBED_REGNUM): Add.
203 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
204 (LAST_EMBED_REGNUM): Delete.
205 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
206
24e05951
AC
207 * config/mips/tm-mips.h (PS_REGNUM): Delete.
208 * mips-tdep.h (MIPS_PS_REGNUM): Add.
209 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
210 * mips-linux-nat.c: Update.
211
613e114f
AC
212 * mips-tdep.h: Add comments on registers.
213 (MIPS_UNUSED_REGNUM): Define.
214 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
215 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
216 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
217 * mips-linux-nat.c, remote-mips.c: Update.
218
d37cca3d
AC
219 * config/mips/tm-mips.h (t_insn): Delete.
220 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
221 Replace t_insn with ULONGEST.
222
ceb41096
MK
2232004-10-30 Mark Kettenis <kettenis@gnu.org>
224
d1180b0f
MK
225 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
226 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
227 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
228 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
229 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
230 (mipsnbsd_core_osabi_sniffer): New function.
231 (mipsnbsd_init_abi): Set regset_from_core_section.
232 (_initialize_mipsnbsd_tdep): Remove calls to
233 deprecated_add_core_fns.
234 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
235 (mipsnbsd_regset_from_core_section): New functions.
236 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
237 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
238
ceb41096
MK
239 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
240 Remove optimization for DEPRECATED_FP_REGNUM.
241
ec4045ea
AC
2422004-10-30 Andrew Cagney <cagney@gnu.org>
243
cd65c8f6
AC
244 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
245 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
246 (alpha_setup_arbitrary_frame): Delete.
247 * mips-tdep.c (setup_arbitrary_frame): Delete.
248 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
249 (setup_arbitrary_frame): Delete.
250 * stack.c (parse_frame_specification_1): When specified, call
251 create_new_frame with two parameters. Delete #ifdef
252 SETUP_ARBITRARY_FRAME.
253
95ac2dcf
AC
254 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
255 (MIPS_INSTLEN): Delete.
256 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
257 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
258 * remote-mips.c, mips-tdep.c: Update.
259
1a8da44d
AC
260 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
261 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
262 * mips-tdep.c (mips_mdebug_frame_cache)
263 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
264 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
265 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
266 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
267 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
268 (mips_gdbarch_init): Do not append mdebug sniffers.
269 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
270 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
271 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
272 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
273 * Makefile.in: Update dependencies.
274
e6bc2e8a
AC
275 * mips-tdep.h (mips_abi_regsize): Declare.
276 * mips-tdep.c (mips_abi_regsize): Make non-static.
277
ec4045ea
AC
278 * mips-tdep.c (gdb_print_insn_mips): Simplify.
279 (make_mips16_addr): Delete.
e6bc2e8a 280
6b16acab
MK
2812004-10-30 Mark Kettenis <kettenis@gnu.org>
282
283 * i386-sol2-nat.c: New file.
284 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
285 i386-sol2-tdep.c.
286 (i386-sol2-nat.o): Update dependencies.
287 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
288 i386-sol2-nat.o.
289
8b622e6a
AC
2902004-10-30 Andrew Cagney <cagney@gnu.org>
291
292 Total breakage identified by Joel Brobecker.
293 * mips-tdep.c (after_prologue): Delete.
294 (mips_skip_prologue): Use skip_prologue_using_sal.
295 (heuristic_proc_desc): Delete, unused.
296
772cf8be
MK
2972004-10-30 Mark Kettenis <kettenis@gnu.org>
298
299 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
300 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
301 Cleanup coding style.
302
9c8fdbfa
AC
3032004-10-30 Andrew Cagney <cagney@gnu.org>
304
0fe7e7c8
AC
305 * mips-tdep.h (mips_pc_is_mips16): Declare.
306 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
307 non-static. Update calls.
308
1b295c3d
AC
309 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
310 * command.h (add_setshow_enum_cmd): Declare.
311 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
312
6bcadd06
AC
313 * mips-tdep.c (_initialize_mips_tdep): Use
314 add_setshow_zinteger_cmd.
315
9c8fdbfa
AC
316 * mips-tdep.c (mips_eabi_extract_return_value)
317 (mips_o64_extract_return_value, mips_o64_store_return_value)
318 (return_value_location, mips_eabi_reg_struct_has_addr)
319 (mips_eabi_use_struct_convention)
320 (mips_eabi_store_return_value): Delete.
321 (mips_eabi_store_return_value): New function.
322 (mips_eabi_return_value): New function.
323 (mips_gdbarch_init): For O64 and EABI, delete
324 extract_return_value, store_return_value, use_struct_convention
325 and reg_struct_has_addr, add return_value.
326
1d93fe1a
AC
327 * mips-tdep.c (read_signed_register): Use
328 regcache_cooked_read_signed.
329
303d2914
MK
3302004-10-30 Mark Kettenis <kettenis@gnu.org>
331
332 * mipsread.c: Cleanup coding style.
333 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
334 (mipscoff_symfile_finish): Remove prototypes.
335
3362004-10-29 Mark Kettenis <kettenis@gnu.org>
337
338 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
339 (mips_mdebug_frame_cache, mips16_scan_prologue)
340 (mips32_scan_prologue, mips_stub_frame_cache)
341 (heuristic_proc_start, heuristic_proc_desc)
342 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
343 (mips_n32n64_return_value, mips_o32_push_dummy_call)
344 (mips_o32_return_value, mips_o64_push_dummy_call)
345 (mips_step_skips_delay, mips_skip_trampoline_code)
346 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
347 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
348 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
349 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
350 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
351 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
352 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
353 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
354 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
355 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
356 ZERO_REGNUM.
357 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
358 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
359 ZERO_REGNUM.
360 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
361 A0_REGNUM.
362 * mipsnbsd-nat.c: Include "mips-tdep.h".
363 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
364 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
365
1c8831c5
AC
3662004-10-29 Andrew Cagney <cagney@gnu.org>
367
368 * stack.c (parse_frame_specification_1): New function based on
369 parse_frame_specification. Add message and selected_frame_p
370 paramters. Truely always return non-NULL.
371 (parse_frame_specification): Call parse_frame_specification_1.
372 (frame_info): Update. Eliminate target_has_stack check.
373 (select_frame_command): Update.
374
b04f3ab4
AC
3752004-10-29 Andrew Cagney <cagney@gnu.org>
376
377 * frame.h (get_selected_frame): Add message parameter.
378 * frame.c (get_selected_frame): Add and use message parameter.
379 * stack.c (current_frame_command, return_command, locals_info)
380 (catch_info, args_info, up_silently_base, down_silently_base): Use
381 get_selected_frame with an explicit message.
382 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
383 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
384 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
385 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
386 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
387 * breakpoint.c: Update.
388
3892004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
390
391 * trad-frame.c (trad_frame_get_prev_register): Use
392 frame_unwind_register instead of frame_register_unwind, do not
393 recurse the register's location.
394 * xstormy16-tdep.c (xstormy16_frame_prev_register):
395 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
396 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
397 * sh-tdep.c (sh_frame_prev_register): Ditto.
398 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
399 * i386-tdep.c (i386_frame_prev_register): Ditto.
400 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
401 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
402
7a952542
MK
4032004-10-28 Mark Kettenis <kettenis@jive.nl>
404
c18c06be
MK
405 * proc-events.c: Fix several coding-style issues. Consistently
406 use #ifdef instead of #if defined().
407 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
408 ARRAY_SIZE.
409 (_initialize_proc_events): New prototype.
410
7a952542
MK
411 * proc-why.c: Fix several coding-style issues.
412 (proc_prettyfprint_why): Use ARRAY_SIZE.
413
fcad0fa4
JB
4142004-10-27 Jim Blandy <jimb@redhat.com>
415
416 * remote.c (fetch_register_using_p): Construct 'p' packet in a
417 manner independent of the host byte order.
418
c163184f
MK
4192004-10-27 Mark Kettenis <kettenis@gnu.org>
420
421 * mips-tdep.c (id_delayed): Remove prototype.
422
9c46b6f0
MK
4232004-10-26 Mark Kettenis <kettenis@gnu.org>
424
425 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
426 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
427 to enum with register numbers.
428 (enum mips_insn_size): New enum.
429
0d0266c6
AC
4302004-10-26 Andrew Cagney <cagney@gnu.org>
431
e7d6a6d2
AC
432 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
433 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
434 (mips_gdbarch_init): Update.
435 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
436
c5115f39
AC
437 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
438 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
439 IN_SOLIB_RETURN_TRAMPOLINE.
440 * mips-tdep.c (mips_dump_tdep): Do not print
441 IN_SOLIB_RETURN_TRAMPOLINE.
442 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
443 (mips_gdbarch_init): Update.
444
0d0266c6
AC
445 * mips-tdep.h (mips_software_single_step): Move to here ...
446 * config/mips/tm-mips.h: ... from here.
447 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
448 (SOFTWARE_SINGLE_STEP): Delete.
449 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
450
156a53ca
AC
4512004-10-25 Andrew Cagney <cagney@gnu.org>
452
453 * NEWS: Add Changes since GDB 6.3 section.
454
f27cf670
AS
4552004-10-23 Andreas Schwab <schwab@suse.de>
456
156a53ca
AC
457 * ada-lang.c (grow_vect): Return the new array instead of
458 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
459 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
460
121d8485
UW
4612004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
462
463 * s390-tdep.c (enum pv_boolean): Remove.
464 (pv_is_array_ref): Remove.
465 (s390_on_stack): Remove.
466 (S390_NUM_SPILL_SLOTS): Remove.
467 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
468 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
469 (s390_store): Track all stores of orginal incoming registers to the
470 stack constant offsets relative to the CFA, instead of only tracking
471 stores into specific spill slots.
472 (s390_load): Likewise.
473 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
474 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
475 defined as call-saved by the ABI.
476 (s390_push_dummy_call): Use bottom of dummy call argument save area
477 as return value, not the top. Do not store to the called function's
478 register save area.
479 (s390_unwind_dummy_id): Adapt accordingly.
480
0a6ddd08
AC
4812004-10-23 Andrew Cagney <cagney@gnu.org>
482
483 * objfiles.h (struct objfile): Rename obj_private to
484 deprecated_obj_private, sym_private to deprecated_sym_private, and
485 sym_stab_info to deprecated_sym_stab_info.
486 * gdb-stabs.h: Update.
487 * elfread.c: Update.
488 * dbxread.c: Update.
489 * coffread.c: Update.
490 * xcoffread.c: Update.
491 * symfile.c: Update.
492 * somread.c: Update.
493 * nlmread.c: Update.
494 * mdebugread.c: Update.
495 * hpread.c: Update.
496 * coffread.c: Update.
497
abc08782
MK
4982004-10-23 Mark Kettenis <kettenis@gnu.org>
499
500 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
501 * configure.host: Add mips64*-*-openbsd*.
502 * configure.tgt: Add mips64*-*-openbsd*.
503 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
504 mips64obsd-tdep.c.
505 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
506 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
507
fc062ac6
JB
5082004-10-21 Joel Brobecker <brobecker@gnat.com>
509
510 * symtab.c (symbol_search_name): Minor reformatting.
511
5bccb4d1
JB
5122004-10-20 Joel Brobecker <brobecker@gnat.com>
513
514 * symtab.h: Fix typo in comment.
515
a738430d
MK
5162004-10-19 Mark Kettenis <kettenis@gnu.org>
517
518 * dwarf2read.c (struct comp_unit_head): Fix coding style.
519 (dwarf_decode_line_header): Likewise.
520
f2cb65ca
MC
5212004-10-19 Michael Chastain <mec.gnu@mindspring.com>
522
523 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
524
09e55376
AC
5252004-10-19 Andrew Cagney <cagney@gnu.org>
526
527 GDB 6.3 branch created.
528 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
529
bc5f45f8
JB
5302004-10-15 Joel Brobecker <brobecker@gnat.com>
531
532 * dwarf2read.c (set_cu_language): Set language to Ada for
533 DW_LANG_Ada83 and DW_LANG_Ada95.
534
2941da8c
MC
5352004-10-15 Michael Chastain <mec.gnu@mindspring.com>
536
537 From Andreas Schwab <schwab@suse.de>:
538 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
539 for xmalloc and xrealloc.
540
34a17005
AC
5412004-10-15 Andrew Cagney <cagney@gnu.org>
542
543 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
544 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
545 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
546 Update dependencies.
547
714e53ab
PH
5482004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
549
550 * ada-lang.c (ada_lookup_symbol): Correct comment.
551 (ada_evaluate_subexp): Change error message for
552 OP_FUNCALL case so as not to indicate an internal error.
553
5542004-10-15 Joel Brobecker <brobecker@gnat.com>
555
556 Committed by Paul Hilfinger.
557 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
558 type sizes in XVE/XVU types, and emit a warning when that happens,
559 instead of rounding up the size of the resulting type.
560 Some minor reformatting.
561 (ada_is_aligner_type): Do not consider a type as an aligner type
562 if there is a corresponding XVS type as well.
563 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
564 have several levels of pointer indirection to the array.
565
5662004-10-15 Jerome Guitton <guitton@gnat.com>
567
568 Committed by Paul Hilfinger.
569 * ada-lang.c (check_size): New function.
570 (coerce_unspec_val_to_type): call check_size to make sure
571 that the object size is reasonable.
572 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
573 Implements the case when we get a reference when we evaluate
574 the expression of one of the bounds of the slice.
575 (ada_value_struct_elt): when a packed array field is
576 a reference, use ada_coerce_ref to dereference it; use
577 ada_value_ind only if it is a pointer.
578
29639122
JB
5792004-10-15 Joel Brobecker <brobecker@gnat.com>
580
581 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
582 a bit to avoid the necessity of an advance declaration. Remove
583 declaration.
584 (set_reg_offset): Move implemenation up.
585 (mips16_get_imm): Likewise.
586 (mips16_scan_prologue): Likewise.
587 (reset_saved_regs): Likewise.
588 (mips32_scan_prologue): Likewise.
589
a65bbe44
JB
5902004-10-14 Joel Brobecker <brobecker@gnat.com>
591
592 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
593 Remove sp as a parameter, compute it internally instead. Move
594 prologue scanning limit from heuristic_proc_desc to here.
595 (mips16_scan_prologue): Likewise.
596 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
597 by call to mips16_scan_prologue.
598 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
599 by call to mips32_scan_prologue.
600 (heuristic_proc_desc): Remove code that's no longer necessary.
601 Update calls to mips16_scan_prologue and mips32_scan_prologue.
602 (mips_skip_prologue): Update calls to mips16_scan_prologue
603 and mips32_scan_prologue.
604
1c645fec
JB
6052004-10-14 Joel Brobecker <brobecker@gnat.com>
606
607 * mips-tdep.c (mips16_scan_prologue): Merge code from
608 mips16_skip_prologue. Now return the address of the first
609 instruction past the function prologue.
610 (mips16_skip_prologue): Remove, no longer necessary.
611 (mips_skip_prologue): Replace call to mips16_skip_prologue
612 by call to mips16_scan_prologue.
613
98b4dd94
JB
6142004-10-14 Joel Brobecker <brobecker@gnat.com>
615
616 * mips-tdep.c (mips32_scan_prologue): Merge code from
617 mips32_skip_prologue. Now return the address of the first
618 instruction past the function prologue.
619 (mips32_skip_prologue): Remove. No longer necessary.
620 (mips16_skip_prologue): Add parameter end_pc instead of
621 computing it.
622 (mips_skip_prologue): Compute the upper limit for the
623 prologue scanning. Update call to mips16_skip_prologue.
624 Replace call to mips32_skip_prologue by call to
625 mips32_scan_prologue.
626
ad4c72d2
MK
6272004-10-14 Mark Kettenis <kettenis@gnu.org>
628
dfaf8edb
MK
629 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
630 NetBSD system call stubs that store %rp in the ERP slot of the
631 stack frame.
632
3e3a28f1
MK
633 * source.c: Always define O_BINARY to 0 if not defined already.
634 (openp): Unconditionally use O_BINARY.
635
ad4c72d2
MK
636 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
637 * event-top.c (gdb_readline2): Likewise.
638
52bd1401
OF
6392004-10-14 Orjan Friberg <orjanf@axis.com>
640
641 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
642 deprecated_add_core_fns which was removed by mistake.
643
e0e25c6c
KB
6442004-10-13 Kevin Buettner <kevinb@redhat.com>
645
646 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
647 references to deprecated_registers[] with equivalent code.
648
9f335945
KB
6492004-10-13 Kevin Buettner <kevinb@redhat.com>
650
651 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
652 ``deprecated_registers'' with equivalent code. Use gdb_assert()
653 instead of explicit test and print statement.
654
06c2338d
MK
6552004-10-12 Mark Kettenis <kettenis@gnu.org>
656
1b9445c2
MK
657 * sparc-nat.c: Include "inf-ptrace.h".
658 (sparc_target): New function.
659 * sparc-nat.h: Update copyright year.
660 (sparc_target): New prototype.
661 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
662 (_initialize_sparcnbsd_nat): Construct and add target vector.
663 * sparc64nbsd-nat.c: Include "target.h".
664 (_initialize_sparc64nbsd_nat): Construct and add target vector.
665 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
666 Update dependencies.
667 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
668 inftarg.o, add inf-ptrace.o.
669 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
670 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
671 (NAT_FILE): Set to nm-bsd.h.
672 (LOADLIBES): New variable.
673 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
674 infarg.o, add inf-ptrace.o.
675 * config/sparc/nm-nbsdaout.h: Remove file.
676 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
677 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
678 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
679
06c2338d
MK
680 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
681 "fopen-same.h". Update comment.
682
3303a276
MK
6832004-10-11 Mark Kettenis <kettenis@gnu.org>
684
685 * i386gnu-nat.c: Include "gdb_string.h".
686 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
687 registers when the floating-point state isn't initialized.
688 * Makefile.in (i386gnu-nat.o): Update dependencies.
689
04c663e3
DA
6902004-10-11 David Anderson <davea@sgi.com>
691
692 * regcache.c (regcache_raw_read): Comment was missing "to".
693 Extraneous ' removed.
694 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
695 comment now describes use.
696
a5f6c8f5
OF
6972004-10-11 Orjan Friberg <orjanf@axis.com>
698
699 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
700 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
701 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
702 (cris_sigtramp_frame_sniffer): New functions.
703 (cris_gdbarch_init): Hook in signal trampoline unwinder.
704 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
705 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
706 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
707 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
708 command.
709 (cris_version_update): Remove, replace with ...
710 (set_cris_version): New function.
711 (struct gdbarch_tdep, cris_mode, cris_mode_update)
712 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
713 (_initialize_cris_tdep): Remove CRIS mode command.
714 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
715 cris-fpless-backtrace command.
716 (cris_scan_prologue): Fix prologue scanning limit.
717 (cris_register_type): Update to reflect actual registers.
718 (cris_register_bytes_ok) Remove.
719 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
720 Remove set_gdbarch_deprecated_register_size,
721 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
722
77109804
AC
7232004-10-10 Andrew Cagney <cagney@gnu.org>
724
725 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
726 comment.
727
25652d4f
JB
7282004-10-10 Joel Brobecker <brobecker@gnat.com>
729
730 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
731
1e05a7bf
JB
7322004-10-10 Joel Brobecker <brobecker@gnat.com>
733
734 * mips-tdep.c (mips16_scan_prologue): Renames
735 mips16_heuristic_proc_desc. Update comment.
736 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
737 (heuristic_proc_desc): Update calls to the 2 functions above.
738
c68a4142
JB
7392004-10-10 Joel Brobecker <brobecker@gnat.com>
740
741 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
742 Update comments. Also immediately return empty cache when the start
743 address of our function could not be found.
744 (mips_insn32_frame_cache): Likewise.
745
0fce0821
JB
7462004-10-10 Joel Brobecker <brobecker@gnat.com>
747
748 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
749 (mips_insn16_frame_cache): Pass frame cache in call to
750 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
751 Remove code that became redundant as a consequence.
752 (mips32_heuristic_proc_desc): No longer compute a fake
753 procedure descriptor. Compute the full frame cache instead.
754 Some minor comment reformatting.
755
b672553e
JB
7562004-10-10 Jim Blandy <jimb@redhat.com>
757
758 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
759 reader, tracing bytecode stuff): Remove self.
760
9cc52bde
MK
7612004-10-10 Mark Kettenis <kettenis@gnu.org>
762
cc9784b6
MK
763 * sparc64-linux-tdep.c: Update copyright year. Don't include
764 "solib-svr4.h".
765 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
766 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
767 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
768
ee8aef23
MK
769 * sparc-linux-tdep.c: Update copyright year.
770 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
771 to struct frame_info *. Use safe_frame_unwind_memory instead of
772 deprecated_read_memory_nobpt.
773 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
774 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
775 changed signature of sparc_linux_sigtramp_start.
776 (sparc32_linux_pc_in_sigtramp): Remove function.
777 (sparc32_linux_sigtramp_p): New function.
778 (sparc32_linux_sigtramp_frame_sniffer): Use
779 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
780
bc73f8cc
MK
781 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
782 Remove function.
783 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
784
a2249542
MK
785 * ada-lang.c (lim_warning): Re-implement as a varargs function.
786 (decode_packed_array_type, value_subscript_packed)
787 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
788 argument in call to lim_warning.
789
9cc52bde
MK
790 * configure.in: Really disable the TUI if an enhanced curses
791 library isn't found.
792 * configure: Regenerate.
793
151fc45b
MK
7942004-10-09 Mark Kettenis <kettenis@gnu.org>
795
796 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
797 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
798 * config/i386/nm-nbsdaout.h: Remove file.
799 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
800 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
801 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
802 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
803 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
804 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
805 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
806 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
807 (ldd, ld_un, ld_2): Remove defines.
808 * config/i386/nm-obsd.h: Likewise.
809
375c0479
PH
8102004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
811
812 * ada-lex.l: Remove useless rule whose right-context clause
813 causes unreferenced static function warning for yyrealloc.
814 (ada_flex_use): Remove the artificial reference to yyrealloc.
815
c8e73a31
AC
8162004-10-08 Andrew Cagney <cagney@gnu.org>
817
818 * target.h (struct target_ops): Rename to_xfer_memory to
819 deprecated_xfer_memory.
820 * target.c: Update.
821 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
822 * wince.c: Update.
823 * win32-nat.c: Update.
824 * v850ice.c: Update.
825 * uw-thread.c: Update.
826 * thread-db.c: Update.
827 * sol-thread.c: Update.
828 * remote.c: Update.
829 * remote-vx.c: Update.
830 * remote-st.c: Update.
831 * remote-sim.c: Update.
832 * remote-sds.c: Update.
833 * remote-rdp.c: Update.
834 * remote-rdi.c: Update.
835 * remote-mips.c: Update.
836 * remote-m32r-sdi.c: Update.
837 * remote-e7000.c: Update.
838 * procfs.c: Update.
839 * ppc-bdm.c: Update.
840 * nto-procfs.c: Update.
841 * monitor.c: Update.
842 * linux-nat.c: Update.
843 * inftarg.c: Update.
844 * hpux-thread.c: Update.
845 * go32-nat.c: Update.
846 * gnu-nat.c: Update.
847 * exec.c: Update.
848 * corelow.c: Update.
849 * bsd-kvm.c: Update.
850 * aix-thread.c: Update.
851
aa869812
AC
8522004-10-08 Andrew Cagney <cagney@gnu.org>
853
854 * target.c (debug_target): Move to near start of file.
855 (target_stopped_data_address_p): Re-org logic, add casts.
856
8dcef9cf
MK
8572004-10-02 Mark Kettenis <kettenis@gnu.org>
858
859 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
860 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
861 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
862 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
863 New defines.
864
4aa7a7f5
JJ
8652004-10-08 Jeff Johnston <jjohnstn@redhat.com>
866
867 * target.h (to_stopped_data_address): Change prototype to
868 take a CORE_ADDR pointer and return an int.
869 * target.c (update_current_target): Change to_stopped_data_address
870 to match new prototype.
871 (debug_to_stopped_data_address): Change appropriately.
872 * breakpoint.c (bpstat_stop_status): Change call to
873 target_stopped_data_address to use new prototype.
874 * frv-tdep.c (frv_have_stopped_data_address): New function.
875 (frv_stopped_data_address): Change to new prototype and
876 functionality.
877 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
878 prototype and functionality.
879 (ia64_stopped_by_watchpoint): New function.
880 * i386-nat.c (i386_stopped_data_address): Change to new
881 prototype and functionality.
882 (i386_stopped_by_watchpoint): New function.
883 * remote.c (remote_stopped_data_address): Change to new prototype
884 and functionality.
885 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
886 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
887 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
888 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
889 new i386_stopped_by_watchpoint function.
890 (i386_stopped_by_watchpoint): New prototype.
891 (i386_stoppped_data_address): Change to new prototype.
892 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
893 new ia64_stopped_by_watchpoint function.
894 (ia64_stopped_by_watchpoint): New prototype.
895 (ia64_stopped_data_address): Ditto.
896
61ee279c
PH
8972004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
898
899 * ada-typeprint.c (ada_print_type): Use int_string for printing
900 modulus of modular type.
901 * ada-lang.h (ada_modulus): Change return type to unsigned.
902 * ada-lang.c (ada_language_arch_info): Correct type of
903 string_char_type.
904 (ada_modulus): Return unsigned result.
905 (ada_lookup_symbol): Remove user disambiguation and modify comment
906 accordingly.
907
9082004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
909
910 Committed by Paul Hilfinger.
911 * ada-lang.c (decode_packed_array): On big-endian targets,
912 left-justify the value if it comes with a modular type.
913
9142004-10-08 Joel Brobecker <brobecker@gnat.com>
915
916 Committed by Paul Hilfinger.
917 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
918 (is_name_suffix): Add support for "___JM" suffixes.
919 (ada_check_typedef): Renames ada_completed_type.
920 Update all users of CHECK_TYPEDEF, check_typedef, and
921 ada_complete_type to call ada_check_typedef.
922 * ada-typeprint.c: Likewise.
923 * ada-valprint.c: Likewise.
924
b6c25a56
CV
9252004-10-08 Corinna Vinschen <vinschen@redhat.com>
926
927 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
928
83ca6a46
NR
9292004-10-08 Nick Roberts <nickrob@snap.net.nz>
930
931 * MAINTAINERS: Update e-mail address.
932
1fd8cd20
DJ
9332004-10-07 Daniel Jacobowitz <dan@debian.org>
934
935 From Maciej W. Rozycki <macro@mips.com>:
936 * mips-tdep.c (mips32_next_pc): Check the register's contents,
937 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
938
cea15572
KI
9392004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
940
941 * m32r-tdep.c (decode_prologue): Support functions written
942 in assembler language. Recognize trap instructions as the
943 end of prologue.
944 (m32r_frame_unwind_cache): Ditto.
945 (m32r_skip_prologue): Extend search limit. Quit analyzing
946 prologue if pc's location is not readable.
947
23485554
PH
9482004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
949
950 * Makefile.in (.l.c): Do conversions of names of alloc and free
951 functions that are done for .y.c files, plus special one
952 for yy_flex_realloc. Also, correct missing-file tests here.
953 * ada-lex.l (malloc, free): Remove macros.
954 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
955 xrealloc.
956 (ada_flex_use): Dummy definition to remove warnings about unused
957 functions.
958 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
959 to suppress warning.
960
c0409442
CV
9612004-10-06 Corinna Vinschen <vinschen@redhat.com>
962
963 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
964 RETURN_VALUE.
965 (sh_return_value_fpu): Ditto for CPUs with FPU.
966 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
967 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
968 Install sh_return_value_nofpu resp. sh_return_value_fpu as
969 RETURN_VALUE functions.
970
9bed62d7
CV
9712004-10-06 Corinna Vinschen <vinschen@redhat.com>
972
973 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
974 (sh_pseudo_register_write): Ditto.
975
03131d99
CV
9762004-10-06 Corinna Vinschen <vinschen@redhat.com>
977
978 * sh-tdep.c (IS_MACL_STS): New define.
979 (IS_MOVI20): Ditto.
980 (IS_MACL_LDS): Ditto.
981 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
982 instructions in prologue.
983 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
984 instructions in epilogue.
985
da962468
CV
9862004-10-06 Corinna Vinschen <vinschen@redhat.com>
987
988 * sh-tdep.c (SH_NUM_REGS): Define as 67.
989 (sh_sh_register_name): Add eight empty register names.
990 (sh_sh3_register_name): Ditto.
991 (sh_sh3e_register_name): Ditto.
992 (sh_sh2e_register_name): Ditto.
993 (sh_sh2a_register_name): New function, defining SH2A register set.
994 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
995 in nofpu case.
996 (sh_sh_dsp_register_name): Add eight empty register names.
997 (sh_sh3_dsp_register_name): Ditto.
998 (sh_sh4_register_name): Ditto.
999 (sh_sh4_nofpu_register_name): Ditto.
1000 (sh_sh4al_dsp_register_name): Ditto.
1001 (sh2a_show_regs): New function.
1002 (sh2a_nofpu_show_regs): New function.
1003 (sh_sh2a_register_type): New function.
1004 (do_bank_register_info): New function.
1005 (sh_print_pseudo_register): Call do_bank_register_info.
1006 Call sh_print_pseudo_register for valid "bank" register.
1007 (sh_sh2a_register_sim_regno): New function.
1008 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1009 Increment pseudo register count by one for all sh variants with
1010 pseudo registers to accomodate pseudo bank register.
1011 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1012 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1013 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1014 Increment pseudo register numbers.
1015
1326e61b
CV
10162004-10-06 Corinna Vinschen <vinschen@redhat.com>
1017
1018 * dwarf2read.c (read_subroutine_type): Call make_function_type
1019 instead of lookup_function_type.
1020
146c42e3
JB
10212004-10-05 Jim Blandy <jimb@redhat.com>
1022
1023 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1024 (Previous change missed some uses.)
1025
1df84f13
AC
10262004-10-05 Andrew Cagney <cagney@gnu.org>
1027
1028 * target.h (deprecated_child_ops): Rename child_ops.
1029 * wince.c: Update copyright. Rename child_ops.
1030 * win32-nat.c: Rename child_ops.
1031 * target.c: Rename child_ops.
1032 * rs6000-nat.c: Rename child_ops.
1033 * linux-nat.c: Rename child_ops.
1034 * infttrace.c: Rename child_ops.
1035 * inftarg.c: Rename child_ops.
1036 * infptrace.c: Rename child_ops.
1037 * hppah-nat.c: Update copyright. Rename child_ops.
1038 * hpux-thread.c: Update copyright. Rename child_ops.
1039
21e3b9b9
DJ
10402004-10-05 Daniel Jacobowitz <dan@debian.org>
1041
1042 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1043
de83afe7
AC
10442004-10-05 Andrew Cagney <cagney@gnu.org>
1045
1046 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1047
10b3939b
DJ
10482004-10-05 Daniel Jacobowitz <dan@debian.org>
1049
1050 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1051 (die_ref_table): Remove.
1052 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1053 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1054 the usage of this type.
1055 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1056 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1057 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1058 (dwarf2_create_include_psymtab): Update comment.
1059 (find_partial_die): Remove third argument. Remove unreachable call
1060 to error ().
1061 (dwarf2_find_containing_comp_unit): Update comments. Change one
1062 assertion to an error. Remove an unreachable error.
1063 (dwarf2_find_comp_unit): Update comments.
1064 (type_at_offset): Remove dead code.
1065 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1066 (store_in_ref_table): Add CU argument.
1067 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1068 inter-compilation-unit references.
1069 (load_full_comp_unit, process_full_comp_unit): New functions, based
1070 on psymtab_to_symtab_1.
1071 (psymtab_to_symtab_1): Use them.
1072 (dwarf2_add_dependence): New function.
1073 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1074 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1075 (partial_die_parent_scope, guess_structure_name): Update for changes
1076 to find_partial_die.
1077 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1078 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1079 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1080 (read_die_and_children): Update call to store_in_ref_table.
1081 (do_free_die_list_cleanup): Remove.
1082 (fixup_partial_die): Update for changes to find_partial_die.
1083 (read_full_die): Handle queueing absolute references.
1084 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1085 (dwarf2_attr, die_specification, die_type)
1086 (die_containing_type, dwarf2_extension): Update calls to
1087 follow_die_ref.
1088 (dump_die): Update DW_FORM_ref* handling.
1089 (dwarf2_get_ref_die_offset): Likewise.
1090 (free_one_comp_unit): Release the dies list.
1091 (dwarf2_mark_helper): New function.
1092 (dwarf2_mark): Use it.
1093
998bdd68
MK
10942004-10-05 Mark Kettenis <kettenis@jive.nl>
1095
1096 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1097 when writing to memory.
1098
14588880
KI
10992004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1100
1101 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1102 (m32r_extract_struct_value_address): Delete function.
1103 (m32r_return_value): New function.
1104 (m32r_gdbarch_init): Instead of store_return_value,
1105 extract_return_value, deprecated_extract_struct_value_address
1106 and deprecated_use_struct_convention, set return_value.
1107
dd5e6932
DJ
11082004-10-03 Daniel Jacobowitz <dan@debian.org>
1109
1110 * dwarf2read.c (read_subrange_type): Add comment for variable
1111 sized arrays.
1112
7dc1ef8d
PH
11132004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1114
1115 * Makefile.in (.l.c): Modify rule for compatibility with recent
1116 versions of flex, and remove most command-line options.
1117 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1118 options.
1119
1f8173e6
PH
11202004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1121
1122 Turn on initial Ada support (mainly expression evaluation).
1123
1124 * Makefile.in (SFILES): Remove ada-tasks.c.
1125 (HFILES_NO_SRCDIR): Add ada-lang.h.
1126 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1127 (YYOBJ): Add ada-exp.o.
1128 (rule .l.c): Generalize to not mention ada.
1129 * symtab.c: Include ada-lang.h.
1130 (symbol_natural_name, symbol_demangled_name)
1131 (symbol_search_name): Add Ada case.
1132
cb85a953
AC
11332004-10-01 Andrew Cagney <cagney@gnu.org>
1134
3f3db248
AC
1135 * Makefile.in (COMMON_OBS): Add inf-child.o.
1136 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1137 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1138 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1139 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1140 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1141 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1142 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1143 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1144 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1145 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1146 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1147 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1148 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1149
cb85a953
AC
1150 * target.c (xfer_using_stratum): Change return type to LONGEST.
1151 On each iteration offset, readbuf and writebuf.
1152 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1153 partial_length, and read/modify/write predicate, update comments.
1154 Pass buffer.word to ptrace write.
1155
963a6417
PH
11562004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1157
1158 * symfile.c (init_filename_language_table): Add extensions for
1159 Ada.
1160 * defs.h (enum language): Add language_ada.
1161 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1162 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1163 (add_symbols_from_enclosing_procs): Make a no-op for now.
1164 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1165 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1166 (find_line_in_linetable, find_next_line_in_linetable)
1167 (read_all_symtabs, is_plausible_func_for_line)
1168 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1169 (is_runtime_sym_defined, check_size): Remove declaration.
1170 (function_name_from_pc, ada_translate_error_message)
1171 (ada_lookup_minimal_symbol): Remove definition.
1172 (ada_add_block_symbols): Remove useless label.
1173 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1174 useless declaration.
1175 (ada_is_exception_sym): Likewise.
1176
9b32d526
KI
11772004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1178
1179 Add m32r-linux support.
1180 * configure.tgt: Add m32r*-*-linux*.
1181 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1182 and m32r-linux-tdep.c.
1183 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1184 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1185 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1186 m32r-linux-tdep.c.
1187 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1188 config/m32r/linux.mh, config/m32r/linux.mt,
1189 config/m32r/nm-linux.h: New files.
1190
2de118d3
JB
11912004-09-30 Joel Brobecker <brobecker@gnat.com>
1192
1193 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1194 (mips32_fetch_instruction): Remove, unused.
1195
a9fe69d1
JB
11962004-09-30 Joel Brobecker <brobecker@gnat.com>
1197
1198 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1199 conditions that will always be true.
1200
bc8ffc12
MK
12012004-09-30 Mark Kettenis <kettenis@gnu.org>
1202
ba0cd111
MK
1203 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1204 (vaxbsd_fetch_inferior_registers): Rename from
1205 fetch_inferior_registers. Make static.
1206 (vaxbsd_store_inferior_registers): Rename from
1207 store_inferior_registers. Make static.
1208 (_initialize_vaxbsd_nat): Construct and add target vector.
1209 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1210 inftarg.o. Add inf-child.o and inf-ptrace.o.
1211 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1212 inftarg.o. Add inf-child.o and inf-ptrace.o.
1213 (NAT_FILE): Remove.
1214 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1215 inftarg.o. Add inf-child.o and inf-ptrace.o.
1216 (NAT_FILE): Remove.
1217 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1218
bc8ffc12
MK
1219 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1220 (m88kbsd_fetch_inferior_registers): Rename from
1221 fetch_inferior_registers. Make static.
1222 (m88kbsd_store_inferior_registers): Rename from
1223 store_inferior_registers. Make static.
1224 (_initialize_m88kbsd_nat): New prototype and function.
1225 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1226 inftarg.o. Add inf-child.o and inf-ptrace.o.
1227 (NAT_FILE): Remove.
1228 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1229
27394598
AC
12302004-09-30 Andrew Cagney <cagney@gnu.org>
1231
1232 * target.c (target_xfer_partial): New function.
1233 (target_read_memory_partial, target_write_memory_partial)
1234 (default_xfer_partial, target_read_partial, target_write_partial)
1235 (xfer_using_stratum): Use.
1236 (debug_to_xfer_partial): Delete function.
1237 (setup_target_debug): Do not override to_xfer_partial.
1238
74a4fe32
MK
12392004-09-30 Mark Kettenis <kettenis@chello.nl>
1240
1241 * fork-child.c: Update copyright year. Fix coding style.
1242
982526a1
MK
12432004-09-29 Mark Kettenis <kettenis@gnu.org>
1244
1245 * defs.h (msavestring, mstrsave): Remove prototypes.
1246 * utils.c (msavestring, mstrsave): Remove functions.
1247 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1248 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1249 of mstrsave.
1250 * source.c (find_and_open_source): Use xstrdup instead of
1251 mstrsave.
1252
b8eb5af0
AC
12532004-09-30 Andrew Cagney <cagney@gnu.org>
1254
0779438d
AC
1255 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1256 (inf_ptrace_xfer_memory): Delete.
1257 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1258 (target_read_memory, target_write_memory): Use xfer_using_stratum
1259 when target_xfer_partial_p.
1260 (debug_target): Move to start of file.
1261 (target_read_memory_partial, target_write_memory_partial): Use
1262 to_xfer_partial when target_xfer_partial_p.
1263
f929a579
AC
1264 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1265 inf_ptrace_xfer_memory with equivalent code.
1266 * inftarg.c (child_xfer_partial): When performing a write, pass
1267 writebuf to child_xfer_memory.
1268
b8eb5af0
AC
1269 * target.c (target_read_string): Use target_read_memory instead of
1270 target_xfer_memory.
1271
ee21b650
AC
12722004-09-29 Andrew Cagney <cagney@gnu.org>
1273
d3e05d0d
AC
1274 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1275 the address of status.
1276
ee21b650
AC
1277 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1278 (kill_inferior): Inline ptrace_wait call.
1279 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1280 * inftarg.c (child_wait): Inline ptrace_wait call.
1281
a182eed6
AC
1282 * target.h (struct target_ops): Delete field to_post_wait.
1283 (target_post_wait): Delete macro.
1284 (child_post_wait): Delete declaration.
1285 * target.c (update_current_target, update_current_target)
1286 (debug_to_post_wait, setup_target_debug): Delete functions and
1287 references.
1288 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1289 * inftarg.c (child_post_wait): Delete.
1290 (init_child_ops): Do not set to_post_wait.
1291 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1292 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1293 * inf-child.c (inf_child_post_wait): Delete.
1294 (inf_child_target): Do not set to_post_wait.
1295 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1296 (inf_ptrace_target): Do not set to_post_wait.
1297
ba0c540b
AC
1298 * wince.c (child_ops): Delete.
1299 * win32-nat.c (child_ops): Delete.
1300
81977402
AC
1301 * inftarg.c (inftarg_set_find_memory_regions)
1302 (inftarg_set_make_corefile_notes): Delete functions.
1303 (_initialize_linux_nat): Inline calls.
1304
5ac10fd1
AC
1305 * target.h (child_ops): Declare.
1306 * inftarg.c (child_ops): Move from here ...
1307 * target.c (child_ops): ... to here.
1308 * wince.c (child_ops): Delete extern declaration.
1309 * win32-nat.c (child_ops): Delete extern declaration.
1310 * linux-nat.c (child_ops): Delete extern declaration.
1311 * hpux-thread.c (child_ops): Delete extern declaration.
1312
663408c2 13132004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1314
1315 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1316
0dad8a66
MK
13172004-09-28 Mark Kettenis <kettenis@gnu.org>
1318
1319 * configure.in: Only set host_makefile_frag when building a native
1320 debugger.
1321 * configure: Regenerate.
e8d74ed3
MK
1322
1323 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1324 for OpenBSD ELF.
1325
dba24537
AC
13262004-09-28 Andrew Cagney <cagney@gnu.org>
1327
e979516b
AC
1328 Problem identified by Paul Hilfinger.
1329 * Makefile.in (ada_lex_c): Define.
1330 (ada-lex.o): Delete rule.
1331
dba24537
AC
1332 * linux-proc.c: Delete file.
1333 * Makefile.in: Update.
1334 * config/sparc/linux64.mh (NATDEPFILES):
1335 * config/sparc/linux.mh (NATDEPFILES): Update.
1336 * config/s390/s390.mh (NATDEPFILES): Update.
1337 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1338 * config/powerpc/linux.mh (NATDEPFILES): Update.
1339 * config/pa/linux.mh (NATDEPFILES): Update.
1340 * config/mips/linux.mh (NATDEPFILES): Update.
1341 * config/m68k/linux.mh (NATDEPFILES): Update.
1342 * config/ia64/linux.mh (NATDEPFILES): Update.
1343 * config/i386/linux64.mh (NATDEPFILES): Update.
1344 * config/i386/linux.mh (NATDEPFILES): Update.
1345 * config/arm/linux.mh (NATDEPFILES): Update.
1346 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1347 * linux-nat.c: Update copyright. Include <sys/param.h>,
1348 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1349 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1350 (O_LARGEFILE): Possibly define.
1351 (_initialize_linux_nat, linux_proc_pending_signals)
1352 (add_line_to_sigset, linux_proc_xfer_memory)
1353 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1354 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1355 (struct linux_corefile_thread_data)
1356 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1357 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1358
d6b0e80f
AC
13592004-09-16 Andrew Cagney <cagney@gnu.org>
1360
1361 * lin-lwp.c: Delete file.
1362 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1363 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1364 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1365 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1366 (linux_nat_attach, detach_callback, linux_nat_detach)
1367 (resume_callback, resume_clear_callback, linux_nat_resume)
1368 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1369 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1370 (status_callback, running_callback, count_events_callback)
1371 (select_singlestep_lwp_callback, select_event_lwp_callback)
1372 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1373 (child_wait, stop_and_resume_callback, linux_nat_wait)
1374 (kill_callback, kill_wait_callback, linux_nat_kill)
1375 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1376 (linux_nat_xfer_memory, linux_nat_thread_alive)
1377 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1378 (_initialize_linux_nat): New functions.
1379 * Makefile.in: Update all dependencies.
1380 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1381 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1382 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1383 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1384 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1385 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1386 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1387 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1388 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1389 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1390 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1391 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1392 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1393
5a174d79
MK
13942004-09-27 Mark Kettenis <kettenis@gnu.org>
1395
2f604c28
MK
1396 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1397 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1398
5a174d79
MK
1399 * configure.in: Don't comment out NATDEPFILES in the generated
1400 Makefile if NAT_FILE is unset.
1401 * configure: Regenerate.
1402
b2ed1746
AC
14032004-09-27 Andrew Cagney <cagney@gnu.org>
1404
44cbf7b5
AC
1405 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1406 (insert_step_resume_breakpoint): Delete.
1407 (insert_step_resume_breakpoint_at_frame): New function.
1408 (insert_step_resume_breakpoint_at_sal): New function.
1409 (handle_inferior_event, step_into_function)
1410 (insert_step_resume_breakpoint): Simplify by using same.
1411
b2ed1746
AC
1412 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1413
3691b3be
MK
14142004-09-26 Mark Kettenis <kettenis@gnu.org>
1415
36f391e8
MK
1416 * fbsd-proc.c: Remove file.
1417 * Makefile.in (fbsd-proc.o): Remove dependency.
1418
771e236c
MK
1419 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1420 code together.
1421
3691b3be
MK
1422 * config/i386/nm-fbsd64.h: Remove file.
1423 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1424
6a5c78a3
MK
14252004-09-26 Mark Kettenis <kettenis@gnu.org>
1426
1427 * amd64-nat.h: Update copyright year.
1428 (amd64bsd_target): New prototype.
1429 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1430 (amd64bsd_target): New function.
1431 (amd64bsd_fetch_inferior_registers): Rename from
1432 fetch_inferior_registers. Make static.
1433 (amd64bsd_store_inferior_registers): Rename from
1434 store_inferior_registers. Make static.
1435 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1436 (_initialize_amd64fbsd_nat): Construct and add target vector.
1437 * amd64nbsd-nat.o: Include "target.h".
1438 (_initialize_amd64nbsd_nat): Construct and add target vector.
1439 * amd64obsd-nat.c: Include "target.h".
1440 (_initialize_amd64obsd_nat): Construct and add target vector.
1441 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1442 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1443 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1444 fbsd-nat.o.
1445 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1446 Remove infptrace.o and inftarg.o. Add inf-child.o and
1447 inf-ptrace.o.
1448 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1449 (amd64obsd-nat.o): Update dependencies.
1450
27acbe61
MK
14512004-09-25 Mark Kettenis <kettenis@gnu.org>
1452
509a5e7d
MK
1453 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1454 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1455 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1456 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1457 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1458
6e1e94ea
MK
1459 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1460 Inline attach call.
1461 (inf_ptrace_detach): Inline detach call.
1462
8b9cf735
MK
1463 * configure.in: Check for waddstr instead of mvwaddstr when
1464 searching for curses library. Check for wborder.
1465 * configure, config.in: Regenerate.
1466 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1467 available.
1468
27acbe61
MK
1469 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1470
b96ec7ac
AC
14712004-09-24 Robert Picco <Robert.Picco@hp.com>
1472
1473 Committed by Andrew Cagney.
1474 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1475 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1476 configuration.
1477 (fetch_register_using_p): Implement 'p' packet. Based on code by
1478 Fernando Nasser.
1479 (remote_fetch_registers): Call fetch_register_using_p.
1480 (init_all_packet_configs, show_remote_cmd)
1481 (_initialize_remote): Add p-packet.
1482
62ece330
MK
14832004-09-24 Mark Kettenis <kettenis@gnu.org>
1484
1485 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1486 instead of call_ptrace. Call wait directly instead of
1487 ptrace_wait.
1488 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1489 (inf_ptrace_wait): Inline ptrace_wait call.
1490
00937274
PH
14912004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1492
1493 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1494 rolled back instead.
1495
3f2c7a45
PH
14962004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1497
1498 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1499 the new argument order.
1500
b6fcb393
CV
15012004-09-23 Corinna Vinschen <vinschen@redhat.com>
1502
1503 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1504 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1505 (struct gdbarch_tdep): Remove.
1506 (struct xstormy16_frame_cache): New frame cache structure.
1507 (xstormy16_register_byte, xstormy16_register_raw_size)
1508 (xstormy16_reg_virtual_type, xstormy16_register_type)
1509 (xstormy16_push_arguments, xstormy16_push_return_address)
1510 (xstormy16_pop_frame, xstormy16_store_struct_return)
1511 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1512 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1513 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1514 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1515 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1516 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1517 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1518 (xstormy16_extract_return_value, xstormy16_store_return_value):
1519 Regcachify. Drop useless struct convention handling.
1520 (xstormy16_register_type, xstormy16_return_value)
1521 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1522 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1523 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1524 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1525 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1526 (xstormy16_unwind_dummy_id) : New functions.
1527 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1528 of xstormy16_scan_prologue.
1529 (xstormy16_frame_unwind): New frame_unwind structure.
1530 (xstormy16_frame_base): New frame_base structure.
1531 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1532 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1533
1285b746
MK
15342004-09-22 Mark Kettenis <kettenis@gnu.org>
1535
1536 * language.c (language_gdbarch_post_init): Fix off-by one error.
1537
1c379e20
DJ
15382004-09-21 Daniel Jacobowitz <dan@debian.org>
1539
1540 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1541 (struct dwarf2_offset_and_type): New.
1542 (set_die_type, reset_die_and_siblings_types, get_die_type)
1543 (offset_and_type_hash, offset_and_type_eq): New functions.
1544 (read_structure_type, read_enumeration_type, read_array_type)
1545 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1546 (read_tag_reference_type, read_tag_const_type)
1547 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1548 (read_typedef, read_base_type, read_subrange_type): Use
1549 set_die_type.
1550
ae038cb0
DJ
15512004-09-20 Daniel Jacobowitz <dan@debian.org>
1552
1553 * Makefile.in (dwarf2read.o): Update dependencies.
1554 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1555 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1556 and read_in_chain.
1557 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1558 mark, and has_form_ref_addr.
1559 (struct dwarf2_per_cu_data): New.
1560 (dwarf2_max_cache_age): New.
1561 (dwarf2_build_psymtabs_hard): Free cached compilation units
1562 after loading. Create and manage the list of compilation units.
1563 Remove unnecessary NULL initialization. Fix indentation.
1564 (psymtab_to_symtab_1): Initialize all of CU.
1565 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1566 (find_partial_die): Use dwarf2_find_containing_comp_unit
1567 and load_comp_unit.
1568 (free_stack_comp_unit): Update comments. Clear the per-cu
1569 pointer. Handle aging.
1570 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1571 (age_cached_comp_units, free_one_cached_comp_unit)
1572 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1573 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1574 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1575 (show_dwarf2_cmd): New.
1576 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1577 and "maint show dwarf2 max-cache-age".
1578 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1579 externs.
1580 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1581 global.
1582
987504bb
JJ
15832004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1584
1585 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1586 and dwarf2_cu struct pointer as arguments. Change function to use
1587 obstack if provided and use dwarf2_cu to determine language-specific
1588 separator.
1589 (partial_die_parent_scope): Change comment to include java. Use
1590 new version of typename_concat instead of obconcat.
1591 (partial_die_full_name): Use typename_concat.
1592 (read_namespace): Ditto.
1593 (read_enumeration_type): Use typename_concat instead of obconcat.
1594 (new_symbol): Ditto.
1595 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1596 (guess_structure_name): Ditto.
1597 (read_subroutine_type): Ditto.
1598 (read_structure_type): Ditto.
1599 (is_vtable_name): Add Java support.
1600 (determine_class_name): Switch to new typename_concat call.
1601 (determine_prefix): Switch to new typename_concat call.
1602 * jv-exp.y (FuncStart): New pattern.
1603 (MethodInvocation): Add support for simple function calls. Change
1604 warning message for other forms of inferior call currently not
1605 supported.
1606 * valarith.c (value_subscript): Treat an array with upper-bound
1607 of -1 as unknown size.
1608
d9c8471e
DJ
16092004-09-20 Daniel Jacobowitz <dan@debian.org>
1610
1611 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1612 (lookup_partial_symtab): Use symtab_to_fullname.
1613
d73f140a
JB
16142004-09-19 Jim Blandy <jimb@redhat.com>
1615
1616 * minsyms.c (lookup_minimal_symbol): Doc fix.
1617
adbef1f0
AC
16182004-09-20 Andrew Cagney <cagney@gnu.org>
1619
1620 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1621 CHILD_RESUME.
1622 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1623 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1624 KILL_INFERIOR.
1625 * infptrace.c: Update.
1626
d092d1a2
DJ
16272004-09-19 Daniel Jacobowitz <dan@debian.org>
1628
1629 * symtab.c (output_source_filename): Mark first argument as const.
1630 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1631 for "info sources" output.
1632
86d9e1d7
MK
16332004-09-20 Mark Kettenis <kettenis@gnu.org>
1634
1635 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1636 <machine/vmparam.h>.
1637 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1638 (register_u_addr): Remove prototype.
1639
9a6c8ef4
MK
16402004-09-19 Mark Kettenis <kettenis@gnu.org>
1641
9692934b
MK
1642 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1643 (i386bsd_fetch_inferior_registers): Rename from
1644 fetch_inferior_registers. Make static.
1645 (i386bsd_store_inferior_registers): Rename from
1646 store_inferior_registers. Make static.
1647 (i386bsd_target): New function.
1648 * i386bsd-nat.h: New file.
1649 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1650 "i386bsd-nat.h".
1651 (i386fbsd_resume): Rename from child_resume. Make static.
1652 (_initialize_i386fbsd_nat): Construct and add target vector.
1653 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1654 (_initialize_i386nbsd_nat): Construct and add target vector.
1655 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1656 Remove defines.
1657 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1658 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1659 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1660 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1661 (LOADLIBES): New variable.
1662 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1663 inf-ptrace.o. Remove inftarg.o.
1664 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1665 inf-ptrace.o. Remove inftarg.o.
1666 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1667 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1668 (LOADLIBES): New variable.
1669 * Makefile.in (i386bsd_nat_h): New variable.
1670 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1671 dependencies.
1672
3510d1f2
MK
1673 * sparc64nbsd-tdep.c: Include "objfiles.h".
1674 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1675 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1676 svr4_lp64_fetch_link_map_offsets.
1677 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1678 "nbsd-tdep.h".
1679 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1680 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1681 svr4_lp64_fetch_link_map_offsets.
1682 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1683 dependencies.
1684
578c1c03
MK
1685 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1686 * fbsd-nat.h: New file.
1687 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1688 (fbsd_nat_h): New variable.
1689 (fbsd-nat.o): New dependency.
1690
7a7b73b7
MK
1691 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1692 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1693
9a6c8ef4
MK
1694 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1695 comment.
1696
72d5681a
PH
16972004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1698
1699 * ada-exp.y (type_int): New function to add layer of abstraction
1700 around references to expression types.
1701 (type_long): Ditto.
1702 (type_long_long): Ditto.
1703 (type_float): Ditto.
1704 (type_double): Ditto.
1705 (type_long_double): Ditto.
1706 (type_char): Ditto.
1707 (type_system_address): Ditto.
1708 (simple_exp): Use type_* functions in place of builtin_*
1709 variables.
1710 (exp): Ditto.
1711 (write_var_from_name): Ditto.
1712 (write_object_renaming): Ditto.
1713 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1714 declaration.
1715 (build_ada_types): Remove, replacing with...
1716 (ada_language_arch_info): New function to initialize primitive
1717 type vector in language_arch_info.
1718 (ada_array_length): Remove use of builtin_type_ada_int.
1719 (value_pos_atr): Ditto.
1720 (ada_evaluate_subexp): Ditto.
1721 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1722 builtin_type_ada_long_long, builtin_type_ada_char,
1723 builtin_type_ada_float, builtin_type_ada_double,
1724 builtin_type_ada_long_double, builtin_type_ada_natural,
1725 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1726 (ada_builtin_types): Remove.
1727 (ada_language_defn): Remove entries for la_builtin_type_vector and
1728 string_char_type and use ada_language_arch_info.
1729 (_initialize_ada_language): Do type-vector initialization along
1730 the lines of c-lang.c.
1731 (ada_create_fundamental_type): Break up line.
1732 (ada_dump_symtab): Remove unused function.
1733 (enum ada_primitive_types): Define.
1734 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1735 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1736 builtin_type_ada_float, builtin_type_ada_double,
1737 builtin_type_ada_long_double, builtin_type_ada_natural,
1738 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1739 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1740 (processInt): Ditto.
1741 (processReal): Ditto.
1742 (name_lookup): Ditto.
1743 * ada-typeprint.c (print_range): Use builtin_type_int, not
1744 builtin_type_ada_int.
1745
4f0be353
MK
17462004-09-18 Mark Kettenis <kettenis@gnu.org>
1747
30b0e2d8
MK
1748 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1749
4f0be353
MK
1750 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1751 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1752 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1753 * configure.in: Improve checks for curses library by checking for
1754 mvwaddstr instead of initscr. Drop HP curses in favour of
1755 standard curses on HP-UX.
1756 * configure: Regenerated.
1757
72d5681a 17582004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1759
1760 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1761 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1762 Minor formatting changes.
1763 (empty_array): Slight rewrite for formatting.
1764 (emit_char,parse,ada_language_defn,build_ada_types,
1765 ada_is_exception_sym, _initialize_ada_language): Move
1766 definitions around.
1767 (ada_dump_symtab): Remove unused definition.
1768 (ada_maybe_exception_partial_symbol): Remove unused definition.
1769
1c8c7407
AC
17702004-09-16 Andrew Cagney <cagney@gnu.org>
1771
7681f339
AC
1772 * inf-child.c: Include "gdb_string.h".
1773 (inf_child_core_file_to_sym_file): Delete.
1774 (inf_child_target): Set to_fetch_registers and to_store_registers.
1775 * inf-ptrace.c: Include "gdb_string.h".
1776 * Makefile.in: Update all dependencies.
1777
1c8c7407
AC
1778 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1779 problem.
1780
65596487
JB
17812004-09-14 Joel Brobecker <brobecker@gnat.com>
1782
1783 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1784 call to heuristic_proc_desc. Remove code that became redundant
1785 as a consequence.
1786 (read_next_frame_reg): Remove special case for SP_REGNUM.
1787 (set_reg_offset): Fix small typo.
1788 (reset_saved_regs): New procedure.
1789 (mips32_heuristic_proc_desc): No longer compute a fake
1790 procedure descriptor. Compute the full frame cache instead.
1791 Some minor comment reformatting.
1792
95575b2e
AC
17932004-09-14 Andrew Cagney <cagney@gnu.org>
1794
f200c492
AC
1795 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1796 maintainer.
1797
95575b2e
AC
1798 * thread-db.c (thread_db_new_objfile): Assume that there is a
1799 child process.
1800
69657671
JB
18012004-09-13 Jim Blandy <jimb@redhat.com>
1802
1803 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1804 so that its storage isn't referenced after its lifetime ends.
1805
6c4182dd
JB
1806 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1807 and never assigned to. Delete it, and the 'if (use_buffer)'
1808 clauses. Delete 'raw_buffer', since it is now unused.
1809
ee31a58d
AC
18102004-09-13 Andrew Cagney <cagney@gnu.org>
1811
2c0fc042
AC
1812 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1813 * configure: Re-generate.
1814 * nlm/Makefile.in (TAGS): Update.
1815 * Makefile.in (TAGS): Update.
1816 * config/vax/nbsd.mt (TM_FILE): Update.
1817 * config/sparc/vxworks.mt (TM_FILE): Update.
1818 * config/sparc/sol2.mt (TM_FILE): Update.
1819 * config/sparc/sol2-64.mt (TM_FILE): Update.
1820 * config/sparc/obsd64.mt (TM_FILE): Update.
1821 * config/sparc/obsd.mt (TM_FILE): Update.
1822 * config/sparc/nbsd64.mt (TM_FILE): Update.
1823 * config/sparc/nbsd.mt (TM_FILE): Update.
1824 * config/sparc/linux64.mt (TM_FILE): Update.
1825 * config/sparc/linux.mt (TM_FILE): Update.
1826 * config/sparc/fbsd.mt (TM_FILE): Update.
1827 * config/sh/wince.mt (TM_FILE): Update.
1828 * config/sh/nbsd.mt (TM_FILE): Update.
1829 * config/sh/linux.mt (TM_FILE): Update.
1830 * config/sh/embed.mt (TM_FILE): Update.
1831 * config/s390/s390.mt (TM_FILE): Update.
1832 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1833 * config/rs6000/rs6000.mt (TM_FILE): Update.
1834 * config/rs6000/aix4.mt (TM_FILE): Update.
1835 * config/powerpc/vxworks.mt (TM_FILE): Update.
1836 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1837 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1838 * config/powerpc/obsd.mt (TM_FILE): Update.
1839 * config/powerpc/nbsd.mt (TM_FILE): Update.
1840 * config/powerpc/linux.mt (TM_FILE): Update.
1841 * config/powerpc/aix.mt (TM_FILE): Update.
1842 * config/pa/obsd.mt (TM_FILE): Update.
1843 * config/pa/linux.mt (TM_FILE): Update.
1844 * config/pa/hppahpux.mt (TM_FILE): Update.
1845 * config/pa/hppa64.mt (TM_FILE): Update.
1846 * config/pa/hppa.mt (TM_FILE): Update.
1847 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1848 * config/mips/wince.mt (TM_FILE): Update.
1849 * config/mips/vxmips.mt (TM_FILE): Update.
1850 * config/mips/nbsd.mt (TM_FILE): Update.
1851 * config/mips/linux.mt (TM_FILE): Update.
1852 * config/mips/irix6.mt (TM_FILE): Update.
1853 * config/mips/irix5.mt (TM_FILE): Update.
1854 * config/mips/embed.mt (TM_FILE): Update.
1855 * config/m68k/vxworks68.mt (TM_FILE): Update.
1856 * config/m68k/st2000.mt (TM_FILE): Update.
1857 * config/m68k/os68k.mt (TM_FILE): Update.
1858 * config/m68k/obsd.mt (TM_FILE): Update.
1859 * config/m68k/nbsd.mt (TM_FILE): Update.
1860 * config/m68k/monitor.mt (TM_FILE): Update.
1861 * config/m68k/linux.mt (TM_FILE): Update.
1862 * config/m68k/cisco.mt (TM_FILE): Update.
1863 * config/ia64/linux.mt (TM_FILE): Update.
1864 * config/ia64/aix.mt (TM_FILE): Update.
1865 * config/ia64/ia64.mt (TM_FILE): Update.
1866 * config/i386/vxworks.mt (TM_FILE): Update.
1867 * config/i386/obsd64.mt (TM_FILE): Update.
1868 * config/i386/obsd.mt (TM_FILE): Update.
1869 * config/i386/nto.mt (TM_FILE): Update.
1870 * config/i386/nbsd64.mt (TM_FILE): Update.
1871 * config/i386/nbsd.mt (TM_FILE): Update.
1872 * config/i386/linux64.mt (TM_FILE): Update.
1873 * config/i386/linux.mt (TM_FILE): Update.
1874 * config/i386/i386sol2.mt (TM_FILE): Update.
1875 * config/i386/i386lynx.mt (TM_FILE): Update.
1876 * config/i386/fbsd64.mt (TM_FILE): Update.
1877 * config/i386/fbsd.mt (TM_FILE): Update.
1878 * config/i386/cygwin.mt (TM_FILE): Update.
1879 * config/h8300/h8300.mt (TM_FILE): Update.
1880 * config/frv/frv.mt (TM_FILE): Update.
1881 * config/cris/cris.mt (TM_FILE): Update.
1882 * config/arm/wince.mt (TM_FILE): Update.
1883 * config/arm/nbsd.mt (TM_FILE): Update.
1884 * config/arm/linux.mt (TM_FILE): Update.
1885 * config/arm/embed.mt (TM_FILE): Update.
1886 * config/alpha/nbsd.mt (TM_FILE): Update.
1887 * config/alpha/fbsd.mt (TM_FILE): Update.
1888 * config/alpha/alpha.mt (TM_FILE): Update.
1889 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1890 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1891
362646f5
AC
1892 Eliminate event_loop_p, always has the value 1.
1893 * defs.h (event_loop_p): Delete macro.
1894 * breakpoint.c (until_break_command): Simplify.
1895 * utils.c (prompt_for_continue): Simplify.
1896 * tracepoint.c (read_actions): Simplify.
1897 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1898 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1899 (set_prompt, init_main): Simplify.
1900 (init_signals, disconnect): Delete, unused.
1901 * remote.c (remote_async_resume)
1902 (extended_remote_async_create_inferior): Simplify.
1903 * mi/mi-interp.c (mi_input): Delete, unused.
1904 (mi_interpreter_resume, mi_command_loop): Simplify.
1905 * interps.c (current_interp_command_loop): Simplify.
1906 * infrun.c (proceed): Simplify.
1907 * infcmd.c (run_command, continue_command, step_1, jump_command)
1908 (until_command, advance_command, finish_command)
1909 (interrupt_target_command): Simplify.
1910 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1911
ee31a58d
AC
1912 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1913 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1914 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1915 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1916 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1917 * mips-tdep.c (mips_dump_tdep): Do not print same.
1918
b7ffc4a8
AC
19192004-09-12 Andrew Cagney <cagney@gnu.org>
1920
2bfb72ee
AC
1921 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1922 const.
1923 * Makefile.in (valprint.o): Delete explict rule.
1924
4f17c3c1
AC
1925 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1926 reported by Dave Anderson.
1927
f810308b
AC
1928 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1929
b7ffc4a8
AC
1930 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1931
28b41c52
AC
19322004-09-12 Salvador E. Tropea <set@users.sf.net>
1933 Andrew Cagney <cagney@gnu.org>
1934
1935 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1936 (mi_cmd_data_list_register_values)
1937 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1938 the register number computation.
1939
5bf970f9
AC
19402004-09-12 Andrew Cagney <cagney@gnu.org>
1941
1942 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1943 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1944 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1945 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1946 target.
1947 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1948 inf-ptrace.o and inf-child.o.
1949 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1950 * Makefile.in: Update dependencies.
1951
0759e0bf
AC
19522004-09-11 Andrew Cagney <cagney@gnu.org>
1953
1954 * language.c (hex_string, hex_string_custom): Move from here ...
1955 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1956 (CELLSIZE): Increase to 50.
1957 * language.h (hex_string, hex_string_custom): Move from here ...
1958 * defs.h: ... to here.
1959 * Makefile.in: Update all dependencies.
1960
bb599908
PH
19612004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1962
1963 * language.c (local_hex_format_custom): Remove.
1964 (local_hex_string): Rename to hex_string, use C format, and move to
1965 utils.c
1966 (local_hex_string_custom): Rename to hex_string_custom and change
1967 interface. Now uses C format. Move to utils.c
1968 (local_octal_format_custom): Remove.
1969 (local_decimal_format_custom): Remove.
1970 (unknown_language_defn): Remove language-specific number
1971 formatting entries.
1972 (auto_language_defn): Ditto.
1973 (local_language_defn): Ditto.
1974 * language.h (struct language_format_info): Delete declaration.
1975 (struct language_defn): Remove language_format_info fields
1976 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1977 (local_binary_format): Remove macro.
1978 (local_binary_format_prefix): Remove macro.
1979 (local_binary_format_specifier): Remove macro.
1980 (local_binary_format_suffix): Remove macro.
1981 (local_octal_format): Remove macro.
1982 (local_octal_format_prefix): Remove macro.
1983 (local_octal_format_specifier): Remove macro.
1984 (local_octal_format_suffix): Remove macro.
1985 (local_decimal_format): Remove macro.
1986 (local_decimal_format_prefix): Remove macro.
1987 (local_decimal_format_specifier): Remove macro.
1988 (local_decimal_format_suffix): Remove macro.
1989 (local_hex_format): Remove macro.
1990 (local_hex_format_prefix): Remove macro.
1991 (local_hex_format_specifier): Remove macro.
1992 (local_hex_format_suffix): Remove macro.
1993 (local_decimal_format_custom): Remove.
1994 (local_octal_format_custom): Remove.
1995 (local_hex_format_custom): Remove.
1996 (local_hex_string): Rename to hex_string and move to defs.h.
1997 (local_hex_string_custom): Rename to hex_string_custom, change
1998 interface, and move to defs.h.
1999 * utils.c: (int_string): New function.
2000 (hex_string): New function (from language.c).
2001 (hex_string_custom): New function (from language.c).
2002 (octal2str): New function.
2003 (decimal2str): Add width parameter.
2004 (paddr_u): Use new decimal2str interface.
2005 (paddr_d): Ditto.
2006 * defs.h (hex_string): Declare.
2007 (hex_string_custom): Declare.
2008 (int_string): Declare.
2009 * printcmd.c (print_scalar_formatted): Remove localized binary
2010 formatting.
2011 * valprint.c (print_longest): Use int_string.
2012 (print_floating): Use C hex format.
2013 (print_hex_chars): Ditto.
2014 (print_binary_chars): Remove language-specific formatting.
2015 (print_octal_chars): Use C octal format.
2016 (print_decimal_chars): Delocalize format.
2017 (print_decimal): Remove.
2018 * ada-lang.c (ada_language_defn): Remove language-specific number
2019 formatting entries.
2020 * p-lang.c (pascal_language_defn): Ditto.
2021 * c-lang.c (c_language_defn): Ditto.
2022 (cplus_language_defn): Ditto.
2023 (asm_language_defn): Ditto.
2024 (minimal_language_defn): Ditto.
2025 * f-lang.c (f_language_defn): Ditto.
2026 * jv-lang.c (java_language_defn): Ditto.
2027 * m2-lang.c (m2_language_defn): Ditto.
2028 * scm-lang.c (scm_language_defn): Ditto.
2029 * objc-lang.c (objc_language_defn): Ditto.
2030 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2031 new interface.
2032 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2033 * ui-out.c (ui_out_field_core_addr): Ditto.
2034 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2035 * exec.c (print_section_info): Ditto.
2036 * i387-tdep.c (print_i387_status_word): Ditto.
2037 (print_i387_control_word): Ditto.
2038 (i387_print_float_info): Ditto.
2039 * maint.c (maint_print_section_info): Ditto.
2040 * solib.c (info_sharedlibrary_command): Ditto.
2041 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2042 * symtab.c (print_msymbol_info): Ditto.
2043 * tracepoint.c (tracepoints_info): Ditto.
2044 * solib-frv.c (lm_base): Ditto.
2045 (frv_current_sos): Ditto.
2046 (enable_break2): Ditto.
2047 (enable_break): Ditto.
2048 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2049 (process_one_symbol): Ditto.
2050 * infcmd.c (program_info): Ditto.
2051 * mdebugread.c (parse_partial_symbols): Ditto.
2052 * symfile.c (add_symbol_file_command): Ditto.
2053 * cli/cli-cmds.c (edit_command): Ditto.
2054 (list_command): Ditto.
2055 * infcall.c (call_function_by_hand): Ditto.
2056 * remote-vx.c (vx_run_files_info): Ditto.
2057 (vx_wait): Ditto.
2058 (vx_attach): Ditto.
2059 (vx_detach): Ditto.
2060 (vx_kill): Ditto.
2061 * aix-thread.c (pdc_symbol_addrs): Ditto.
2062 (pdc_read_regs): Ditto.
2063 (pdc_write_regs): Ditto.
2064 (pdc_read_data): Ditto.
2065 (pdc_write_data): Ditto.
2066 * d10v-tdep.c (display_trace): Ditto.
2067 * rs6000-nat.c (find_toc_address): Ditto.
2068 * aix-thread.c: Don't include language.h.
2069 * buildsym.c: Ditto.
2070 * dbxread.c: Ditto.
2071 * mdebugread.c: Ditto.
2072 * rs6000-nat.c: Ditto.
2073 * buildsym.c (make_blockvector): Use renamed hex_string.
2074
33f2d567
JM
20752004-09-10 Jason Molenda (jmolenda@apple.com)
2076
2077 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2078 chars after 'if' or 'while' commands in user-defined commands.
2079
7b90c3f9
JB
20802004-09-08 Jim Blandy <jimb@redhat.com>
2081
2082 Fix bug reported and analyzed by Olivier Crete:
2083 * symfile.c (copy_section_addr_info): New function.
2084 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2085 original set of address arguments, instead of handwritten code
2086 that uses one length to allocate and a different length to
2087 initialize. Use make_cleanup_free_section_addr_info.
2088 * symfile.h (copy_section_addr_info): New declaration.
2089 * utils.c: #include "symfile.h".
2090 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2091 New functions.
2092 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2093 * Makefile.in (utils.o): Update dependencies.
2094
b26a6851
AC
20952004-09-08 Andrew Cagney <cagney@gnu.org>
2096
2097 * thread-db.c (keep_thread_db): Delete.
2098 (thread_db_new_objfile, thread_db_create_inferior)
2099 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2100
be24b061
MK
21012004-09-08 Mark Kettenis <kettenis@gnu.org>
2102
f6792ef4
MK
2103 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2104 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2105 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2106 (i386_frameless_signal_p): Remove prototype.
2107 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2108 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2109 I386_SSE_NUM_REGS.
2110 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2111 instead of FP0_REGNUM.
2112 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2113 of FP0_REGNUM and FPC_REGNUM.
2114
eeefdaa7
MK
2115 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2116 (sunos_solib_create_inferior_hook): Don't call
2117 sunos_relocate_main_executable.
2118
be24b061
MK
2119 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2120 solib_svr4_fetch_link_map_offsets to
2121 svr4_ilp32_fetch_link_map_offsets.
2122 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2123 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2124 svr4_ilp32_fetch_link_map_offsets.
2125 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2126
7c679d16
JB
21272004-09-07 Jim Blandy <jimb@redhat.com>
2128
2129 * frame.h (frame_register): Doc fix.
2130
1f04aa62
AC
21312004-09-07 Andrew Cagney <cagney@gnu.org>
2132
2133 * vx-share/wait.h: Delete #ifdef USG.
2134 * utils.c (request_quit): Ditto.
2135 * tui/tui.c (tui_reset): Ditto.
2136 * remote.c: Ditto.
2137 * remote-sds.c: Ditto.
2138 * remote-rdi.c: Ditto.
2139 * mdebugread.c: Ditto.
2140 * m68klinux-nat.c: Ditto.
2141 * infttrace.c: Ditto.
2142 * infptrace.c: Ditto.
2143 * i386v-nat.c: Ditto.
2144 * exec.c: Ditto.
2145 * dbxread.c: Ditto.
2146 * core-aout.c: Ditto.
2147
90edbfbc
JB
21482004-09-05 Joel Brobecker <brobecker@gnat.com>
2149
2150 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2151 heuristic_proc_desc.
2152 (mips_insn32_frame_cache): Likewise.
2153
01f4bf2b
JB
21542004-09-04 Joel Brobecker <brobecker@gnat.com>
2155
2156 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2157 left behind by error.
2158
8511a048
JB
21592004-09-04 Joel Brobecker <brobecker@gnat.com>
2160
2161 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2162 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2163
649dfe9f
JB
21642004-09-04 Joel Brobecker <brobecker@gnat.com>
2165
2166 * config/rs6000/xm-aix4.h: Remove this file.
2167 * config/rs6000/aix4.mh (XM_FILE): Delete.
2168
6e50f889
JB
21692004-09-04 Joel Brobecker <brobecker@gnat.com>
2170
2171 * config/rs6000/xm-rs6000.h: Remove this file.
2172 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2173
b8c4aece
AC
21742004-09-03 Andrew Cagney <cagney@gnu.org>
2175
fb603883
AC
2176 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2177 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2178 only use.
2179
c9343fd1
AC
2180 * mips-tdep.c (temp_saved_regs): Delete.
2181 (set_reg_offset): Replace saved_regs parameter with this_cache.
2182 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2183 (mips32_heuristic_proc_desc): Add this_cache parameter.
2184 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2185 (after_prologue): Pass a NULL this_cache.
2186
9733cfe1
AC
2187 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2188 non-kernel trap prologues.
2189
0d5febcc
AC
2190 * mips-tdep.c (find_proc_desc): Delete function.
2191 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2192 simplify.
2193 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2194 mips_insn32_frame_cache.
2195
9733cfe1 2196 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2197 Simplify as NEXT_FRAME is NULL.
2198 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2199
177f84a3
AC
2200 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2201 local variable.
2202 (mips_skip_prologue): Update.
2203
465f7520
AC
2204 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2205 "cur_frame" parameter.
177f84a3
AC
2206 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2207 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2208
e38b8658
AC
2209 * config/vax/nm-obsd.h: Delete file.
2210 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2211 * config/vax/nm-nbsd.h: Delete file.
2212 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2213 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2214 * config/sh/nm-nbsd.h: Delete file.
2215 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2216 * config/rs6000/nm-rs6000ly.h: Delete file.
2217 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2218 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2219 * config/powerpc/nm-obsd.h: Delete file.
2220 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2221 * config/powerpc/nm-nbsd.h: Delete file.
2222 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2223 * config/pa/nm-obsd.h: Delete file.
2224 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2225 * config/mips/nm-nbsd.h: Delete file.
2226 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2227 * config/m88k/nm-obsd.h: Delete file.
2228 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2229 * config/m68k/nm-nbsd.h: Delete file.
2230 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2231 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2232 * config/i386/nm-nbsd.h: Delete file.
2233 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2234 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2235 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2236 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2237 * config/i386/nm-i386lynx.h: Delete file.
2238 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2239 * config/arm/nm-nbsd.h: Delete file.
2240 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2241 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2242
be1ed680
AC
2243 * config/i386/tm-fbsd.h: Delete file.
2244 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2245 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2246
4b392b26
AC
2247 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2248 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2249 * config/rs6000/aix4.mt (TM_FILE): Set to
2250 config/rs6000/tm-rs6000.h.
2251 * config/powerpc/tm-ppc-aix.h: Delete file.
2252 * config/powerpc/aix.mt (TM_FILE): Set to
2253 config/rs6000/tm-rs6000.h.
2254 * config/m68k/tm-linux.h: Delete file.
2255 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2256 * config/i386/tm-linux64.h: Delete file.
2257 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2258 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2259
f3219c75
AC
2260 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2261 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2262 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2263 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2264 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2265 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2266 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2267 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2268 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2269
b8c4aece
AC
2270 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2271 gdb_host_cpu.
2272
8ac2e020
JB
22732004-09-02 Joel Brobecker <brobecker@gnat.com>
2274
2275 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2276 Minor reformatting. Some code factoring.
2277
c185a355
AC
22782004-09-02 Andrew Cagney <cagney@gnu.org>
2279
63f22f0d
AC
2280 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2281 * config/vax/tm-nbsd.h: Delete file.
2282 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2283 * config/sparc/tm-vxworks.h: Delete file.
2284 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2285 * config/sparc/tm-nbsd.h: Delete file.
2286 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2287 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2288 * config/sparc/tm-linux.h: Delete file.
2289 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2290 * config/s390/tm-linux.h: Delete file.
2291 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2292 * config/pa/tm-bsd.h: Delete file.
2293 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2294 * config/m68k/tm-obsd.h: Delete file.
2295 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2296 * config/m68k/tm-nbsd.h: Delete file.
2297 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2298 * config/i386/tm-vxworks.h: Delete file.
2299 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2300 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2301 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2302 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2303 * config/i386/tm-nbsd.h: Delete file.
2304 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2305 * config/i386/tm-i386lynx.h: Delete file.
2306 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2307 * config/cris/tm-cris.h: Delete file.
2308
0f475e27
AC
2309 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2310 * configure: Re-generate.
2311 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2312 * config/arm/tm-nbsd.h: Delete file.
2313
458ed000
AC
2314 * config/powerpc/tm-ppcle-sim.h: Delete.
2315 * config/powerpc/tm-ppcle-eabi.h: Delete.
2316 * config/powerpc/tm-nbsd.h: Delete.
2317 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2318 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2319 tm-ppcle-eabi.h.
2320
f14375f3
AC
2321 * config/i386/nto.mh (NAT_FILE): Delete.
2322 * config/i386/nm-nto.h: Delete.
2323
c34d127c
AC
2324 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2325 * config/m68k/tm-os68k.h: Ditto.
2326 * config/m68k/tm-monitor.h: Ditto.
2327 * config/m68k/tm-cisco.h: Ditto.
2328 * config/m68k/st2000.mt (TM_FILE): Delete.
2329 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2330 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2331 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2332 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2333
f7f0fe03
AC
2334 * config/m68k/tm-st2000.h: Delete.
2335 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2336 * config/sparc/fbsd.mt (TM_FILE): Delete.
2337 * config/sparc/tm-fbsd.h: Delete.
2338
a2558533
AC
2339 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2340 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2341 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2342
b78960be
AC
2343 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2344 GDB_TM_FILE and GDB_XM_FILE.
2345 * gdbarch.c: Re-generate.
2346 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2347 quotes in macro definition.
2348 * configure.in: Re-generate.
2349
4d60522e
AC
2350 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2351 validating architecture methods.
2352 * gdbarch.c: Re-generate.
2353
5010d38b
AC
2354 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2355 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2356 GDB_MULTI_ARCH_PARTIAL.
2357 * gdbarch.h: Re-generate.
2358
c185a355
AC
2359 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2360 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2361 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2362 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2363 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2364 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2365 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2366 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2367 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2368 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2369 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2370 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2371
14aaa6ab
AC
23722004-09-01 Andrew Cagney <cagney@gnu.org>
2373
2374 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2375 and main_func_highpc.
2376 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2377 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2378 * nlmread.c (nlm_symfile_read): Update.
2379
a343eb3c
JB
23802004-09-01 Joel Brobecker <brobecker@gnat.com>
2381
2382 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2383 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2384 (find_proc_desc): Remove dead code.
2385
4fbbbd07
JB
23862004-09-01 Joel Brobecker <brobecker@gnat.com>
2387
2388 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2389
84acb35a
JJ
23902004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2391
2392 * observer.sh: Add struct so_list declaration.
2393 * Makefile.in: Add dependencies on observer.h for solib.c and
2394 breakpoint.c.
2395 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2396 function.
2397 (_initialize_breakpoint): Register
2398 disable_breakpoints_in_unloaded_shlib as an observer of the
2399 "solib unloaded" observation event.
2400 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2401 call decode_line_1 so unfound breakpoint errors are silent.
2402 * solib.c (update_solib_list): When a solib is discovered to have
2403 been unloaded by the program, notify all observers of the
2404 "solib unloaded" observation event.
2405
c8cd9f6c
AC
24062004-09-01 Andrew Cagney <cagney@gnu.org>
2407
2408 * frame.c: Include "objfiles.h".
2409 (inside_main_func): New function.
2410 (get_prev_frame): Use new inside_main_func.
2411 * Makefile.in (frame.o): Update dependencies.
2412 * defs.h (inside_main_func): Delete declaration.
2413 * blockframe.c (inside_main_func): Delete function.
2414
1168df01
JB
24152004-08-31 Jim Blandy <jimb@redhat.com>
2416
2417 * dwarf2read.c (is_vtable_name): New function, based on logic from
2418 read_structure_type, but passing the correct length to strncmp,
2419 and using 'sizeof' instead of 'strlen'.
2420 (read_structure_type): Call it.
2421
f14f9744
JB
24222004-08-31 Joel Brobecker <brobecker@gnat.com>
2423
2424 * config/powerpc/aix.mh: Add comment.
2425
386d4518
PG
24262004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2427
2428 * MAINTAINERS: Add self to Write-After-Approval.
2429
7d97d5e2
MI
24302004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2431
2432 * MAINTAINERS: Add self to Write-After-Approval.
2433
68f53502
AC
24342004-08-30 Andrew Cagney <cagney@gnu.org>
2435
2436 Fix PR breakpoints/1757.
2437 * infrun.c (struct execution_control_state): Replace
2438 remove_breakpoints_on_following_step with
2439 step_after_step_resume_breakpoint.
2440 (init_execution_control_state): Update.
2441 (handle_inferior_event): For signals, when stepping off a
2442 breakpoint, set step_after_step_resume_breakpoint. When
2443 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2444 (keep_going): Delete code handling
2445 remove_breakpoints_on_following_step.
2446
7ca2d3a3
DL
24472004-08-29 David Lecomber <david@streamline-computing.com>
2448
2449 Fix PR gdb/648
2450 * language.h (enum array_ordering): New enum.
2451 * language.h (struct language_defn): New la_array_ordering
2452 attribute.
2453 * language.c (unknown_language_defn, auto_language_defn)
2454 (local_language_defn): Ditto.
2455 * ada-lang.c (ada_language_defn): Ditto.
2456 * c-lang.c (c_language_defn, cplus_language_defn)
2457 (asm_language_defn, minimal_language_defn): Ditto.
2458 * f-lang.c (f_language_defn): Ditto.
2459 * jv-lang.c (java_language_defn): Ditto.
2460 * m2-lang.c (f_language_defn): Ditto.
2461 * objc-lang.c (objc_language_defn): Ditto.
2462 * p-lang.c (pascal_language_defn): Ditto.
2463 * scm-lang.c (scm_language_defn): Ditto.
2464 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2465 oriented large to small in type structure.
2466 * dwarf2read.c (read_array_order): New function.
2467 (read_array_type): Use read_array_order to check row/column
2468 major ordering.
2469
e354df01
NW
24702004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2471
2472 * target.c (target_resize_to_sections): Check
2473 current_target.to_sections for an old value when updating.
2474
9185ddce
JB
24752004-08-27 Joel Brobecker <brobecker@gnat.com>
2476
2477 * procfs.c (dbx_link_bpt_addr): New static global variable.
2478 (dbx_link_shadow_contents): New static global variable.
2479 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2480 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2481 if we just hit it.
2482 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2483 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2484 from run to run.
2485 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2486 after the inferior has been forked.
2487 (remove_dbx_link_breakpoint): New function.
2488 (dbx_link_addr): New function.
2489 (insert_dbx_link_bpt_in_file): New function.
2490 (insert_dbx_link_bpt_in_region): New function.
2491 (insert_dbx_link_breakpoint): New function.
2492 (proc_trace_syscalls_1): New function, extracted from
2493 proc_trace_syscalls.
2494 (proc_trace_syscalls): Replace extract code by call to
2495 proc_trace_syscalls_1.
2496 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2497 is no longer valid.
2498
e6742ace
JB
24992004-08-25 Jim Blandy <jimb@redhat.com>
2500
2501 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2502
8fb3e588
AC
25032004-08-25 Andrew Cagney <cagney@gnu.org>
2504
629a41ee
AC
2505 * infrun.c (struct execution_control_state): Delete field
2506 "stepping_through_sigtramp".
2507 (init_execution_control_state): Do not set same.
2508 (context_switch): Do not pass same to save_infrun_state and
2509 load_infrun_state.
2510 * gdbthread.h (struct thread_info): Delete field
2511 stepping_through_sigtramp.
2512 (save_infrun_state, load_infrun_state): Delete parameter
2513 stepping_through_sigtramp.
2514 * thread.c (load_infrun_state, save_infrun_state): Update.
2515
8fb3e588
AC
2516 * infrun.c: Re-indent. Move expression operators to the beginning
2517 of the line. Remove long disabled #if 0 code.
2518
49c54768
AC
25192004-08-24 Andrew Cagney <cagney@gnu.org>
2520
2521 * doublest.h (floatformat_ieee_quad): Rename
2522 floatformat_ia64_quad.
2523 * doublest.c (floatformat_ieee_quad): Rename
2524 floatformat_ia64_quad.
2525 (_initialize_doublest): Update.
2526
5ca2e327
JB
25272004-08-24 Jim Blandy <jimb@redhat.com>
2528
87808bd6
JB
2529 * dwarf2expr.h (struct dwarf_expr_context): New members
2530 'num_pieces' and 'pieces', for returning the result of an
2531 expression that uses DW_OP_piece.
2532 (struct dwarf_expr_piece): New struct type.
2533 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2534 pieces.
2535 (free_dwarf_expr_context): Free pieces, if any.
2536 (add_piece): New function.
2537 (execute_stack_op): Implement DW_OP_piece.
2538 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2539 expression is a list of pieces, print an error message.
2540 (dwarf2_loc_desc_needs_frame): If the expression yields
2541 pieces, and any piece is in a register, then we need a frame.
2542
5ca2e327
JB
2543 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2544 the stack until we've decided what sort of result the evaluation
2545 has produced. Use separate variables, with more specific names.
2546
2afeb6b8
RE
25472004-08-23 Richard Earnshaw <rearnsha@arm.com>
2548
2549 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2550 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2551 (arm_netbsd_init_abi_common): Register them.
2552
5885ab49
MK
25532004-08-22 Mark Kettenis <kettenis@gnu.org>
2554
fda820a6
MK
2555 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2556
1c5bf419
MK
2557 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2558 safe_frame_unwind_memory instead of target_read_memory.
2559
8cbba7c8
MK
2560 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2561 Reorder includes.
2562 (fetch_register, store_register): Remove prototypes.
2563 (child_resume): Reorganize code and comments such that it is
2564 grouped a bit more logically.
2565 (attach): Explicitly compare errno against 0.
2566 (detach): Likewise. Use perror_with_name instead of
2567 print_sys_errmsg.
2568 * Makefile.in (infptrace.o): Update dependencies.
2569
c5fa4245
MK
2570 * ia64-linux-nat.c: Update copyright year.
2571 (fetch_debug_register, store_debug_register)
2572 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2573 PTRACE_TYPE_ARG3.
2574 * config/ia64/nm-linux.h: Update copyright year.
2575 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2576
387c058c
MK
2577 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2578 from CORE_ADDR to struct frame_info *. Use
2579 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2580 (amd64_linux_sigtramp_p): Adjust for changed signature of
2581 and64_linux_sigtramp_start
2582
277215a6
MK
2583 * gdb_ptrace.h: GNU/Linux.
2584
25f6178e
MK
2585 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2586 Remove defines.
2587
652fc137
MK
2588 * infptrace.c: Include "gdb_assert.h".
2589 (PTRACE_XFER_TYPE): Remove define.
2590 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2591 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2592 Tweak comment.
2593 (fetch_inferior_registers, store_inferior_registers): Remove
2594 redundant culry braces. Tweak comment. s/regno/regnum.
2595 * Makefile.in (infptrace.o): Update dependencies.
2596
5885ab49
MK
2597 * configure.in: Change test for return type of ptrace to default
2598 to `long' instead of `int'.
2599 * configure: Regenerate.
2600
11003ae3
MK
26012004-08-21 Mark Kettenis <kettenis@gnu.org>
2602
6b95110c
MK
2603 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2604
bcb3dc3d
MK
2605 * configure.in: Check for ttrace function.
2606 * configure, config.in: Regenerate.
2607
11003ae3
MK
2608 * gdb_ptrace.h: New file.
2609 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2610 <sys/ptrace.h>.
2611 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2612 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2613 (attach): Don't define PT_ATTACH.
2614 (detach): Don't define PT_DETACH.
2615 * Makefile.in (gdb_ptrace_h): New variable.
2616 (infptrace.o): Update dependencies.
2617
f8707cac
MK
26182004-08-16 Mark Kettenis <kettenis@gnu.org>
2619
2620 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2621 instead of `int' if not already defined.
2622 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2623 PTRACE_TYPE_ARG3.
2624 * infptrace.c (call_ptrace): Revert change that replaced
2625 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2626
655c5466
MK
26272004-08-15 Mark Kettenis <kettenis@gnu.org>
2628
156e5ba7
MK
2629 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2630 Remove defines.
2631
de9a9e51
MK
2632 * linux-nat.c (kill_inferior): Add missing third and fourth
2633 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2634
88800403
MK
2635 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2636 PTRACE_TYPE_RET.
2637
849a1d7c
MK
2638 * proc-why.c (proc_prettyfprint_why): Fix format string.
2639
61ad16d1
MK
2640 * solib-osf.c (osf_current_sos): Remove unsused label.
2641
a6ed5501
MK
2642 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2643 curses headers.
2644 * configure, config.in: Regenerate.
2645 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2646 <ncurses/ncurses.h>.
2647
016ddeca
MK
2648 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2649 * config/nm-nbsd.h: Update copyright year.
2650 (PTRACE_ARG3_TYPE): Remove define.
2651
49ec097f
MK
2652 * sparc-nat.c (fetch_inferior_registers)
2653 (store_inferior_registers, sparc_xfer_wcookie):
2654 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2655
9f8e0089
MK
2656 * alphabsd-nat.c (fetch_inferior_registers):
2657 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2658 PTRACE_TYPE_ARG3.
2659 * amd64bsd-nat.c (fetch_inferior_registers)
2660 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2661 PTRACE_TYPE_ARG3.
2662 * armnbsd-nat.c: Update copyright year.
2663 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2664 (store_register, store_regs, store_fp_register, store_fp_regs):
2665 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2666 * hppabsd-nat.c (fetch_inferior_registers)
2667 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2668 PTRACE_TYPE_ARG3.
2669 * i386bsd-nat.c (fetch_inferior_registers)
2670 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2671 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2672 * m68kbsd-nat.c (fetch_inferior_registers)
2673 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2674 PTRACE_TYPE_ARG3.
2675 * m88kbsd-nat.c (fetch_inferior_registers)
2676 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2677 PTRACE_TYPE_ARG3.
2678 * mipsnbsd-nat.c: Update copyright year.
2679 (fetch_inferior_registers, store_inferior_registers):
2680 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2681 * ns32knbsd-nat.c: Update copyright year.
2682 (fetch_inferior_registers, store_inferior_registers):
2683 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2684 * ppcnbsd-nat.c (fetch_inferior_registers):
2685 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2686 PTRACE_TYPE_ARG3.
2687 * ppcobsd-nat.c (fetch_inferior_registers):
2688 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2689 PTRACE_TYPE_ARG3.
2690 * shnbsd-nat.c: Update copyright year.
2691 (fetch_inferior_registers, store_inferior_registers):
2692 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2693 * vaxbsd-nat.c (fetch_inferior_registers)
2694 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2695 PTRACE_TYPE_ARG3.
2696
655c5466
MK
2697 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2698 PTRACE_TYPE_ARG3.
2699 * infptrace.c (call_ptrace, child_resume, attach, detach)
2700 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2701 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2702 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2703 PTRACE_TYPE_ARG3.
2704
c40d0d10
MK
27052004-08-14 Mark Kettenis <kettenis@gnu.org>
2706
5cb0ff31
MK
2707 * defs.h: Remove out-of-date comment.
2708 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2709 [!GETENV_PROVIDED] (getenv): Remove prototype.
2710
5f0f34cb
MK
2711 * standalone.c: Remove file.
2712 * Makefile.in (standalone.o): Remove dependency.
2713
7532965f
MK
2714 * i386-linux-nat.c (dummy_sse_values): Remove function and
2715 prototype.
2716 (i386_linux_dr_get): Fix typo in comment.
2717 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2718
1bdc6c53
MK
2719 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2720
c40d0d10
MK
2721 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2722 from declaration.
2723 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2724 from definition.
2725
64218d3e
MK
27262004-08-13 Mark Kettenis <kettenis@gnu.org>
2727
2728 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2729 parenthesis in definition.
2730 * configure: Regenerated.
2731
926c94e7
MC
27322004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2733
2734 * PROBLEMS: Mention build/1411.
2735
69489883
NN
27362004-08-09 Robert Millan <robertmh@gnu.org>
2737
2738 Committed by Nathanael Nerode.
2739 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2740 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2741
ebb7c577
AC
27422004-08-12 Andrew Cagney <cagney@gnu.org>
2743
2744 * NEWS: Mention fixes in GDB 6.2.1.
2745 * PROBLEMS: Remove mention of mips-irix.
2746
232d697c
JB
27472004-08-11 Joel Brobecker <brobecker@gnat.com>
2748
2749 * config/powerpc/xm-aix.h: Delete.
2750 * config/powerpc/aix.mh (MH_FILE): Remove.
2751 * config/powerpc/aix432.mh (MH_FILE): Remove.
2752
72f4e82b
JB
27532004-08-11 Joel Brobecker <brobecker@gnat.com>
2754
2755 * config/powerpc/aix.mh: Remove obsolete comment.
2756 * config/powerpc/aix432.mh: Likewise.
2757
0687ccb2
JB
27582004-08-11 Joel Brobecker <brobecker@gnat.com>
2759
2760 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2761
dbf3ada7
JB
27622004-08-11 Joel Brobecker <brobecker@gnat.com>
2763
e08e1886
JB
2764 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2765 this file is now empty.
2766 * config/xm-aix4.h: Remove, this file is no longer included
2767 anywhere.
2768
27692004-08-11 Joel Brobecker <brobecker@gnat.com>
2770
2771 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2772 that file is now empty.
dbf3ada7
JB
2773 (termdef): Remove prototype, function no longer used.
2774
4c525ef6
JB
27752004-08-11 Joel Brobecker <brobecker@gnat.com>
2776
2777 * doc/gdbint.texinfo (Host Definition): Remove documentation
2778 for USE_O_NOCTTY, no longer used.
2779 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2780 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2781
82e0b968
JB
27822004-08-11 Joel Brobecker <brobecker@gnat.com>
2783
2784 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2785 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2786 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2787
f2acbe1c
MK
27882004-08-11 Mark Kettenis <kettenis@gnu.org>
2789
daa98270
MK
2790 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2791 instead of FIVE_ARG_PTRACE.
2792
f2acbe1c
MK
2793 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2794 (new_tty): Use O_NOCTTY unconditionally.
2795
cc377e6b
MK
27962004-08-10 Mark Kettenis <kettenis@gnu.org>
2797
2798 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2799 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2800 fflush on stdout.
2801
3bcc18fa
JB
28022004-08-10 Joel Brobecker <brobecker@gnat.com>
2803
2804 * xcoff_symfile_finish: Replace last call to xmfree by call
2805 to xfree.
2806
7936743b
AC
28072004-08-10 Andrew Cagney <cagney@gnu.org>
2808
cc503c8a
AC
2809 * main.c (captured_main): Delete call to init_malloc.
2810 * defs.h (init_malloc): Delete declaration.
2811 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2812 (init_malloc): Delete functions.
2813
2dc74dc1
AC
2814 * defs.h (xmfree): Delete.
2815 * utils.c (xmfree): Delete function.
2816 (xfree): Inline calls to xmfree and mfree.
2817 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2818 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2819 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2820 * somread.c (som_symfile_finish): Ditto.
2821 * objfiles.c (allocate_objfile, free_objfile):
2822 * nlmread.c (nlm_symfile_finish): Ditto.
2823 * hpread.c (hpread_symfile_finish): Ditto.
2824 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2825 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2826 * coffread.c (coff_symfile_finish): Ditto.
2827
aa2ee5f6
AC
2828 * defs.h (xmcalloc): Delete declaration.
2829 * utils.c (xmcalloc): Delete.
2830 (xcalloc): Inline calls to xmcalloc and mcalloc.
2831 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2832 xcalloc and xfree.
2833 * symtab.c (create_demangled_names_hash): Ditto.
2834
0efffb96
AC
2835 * defs.h (xmrealloc): Delete.
2836 * utils.c (xmrealloc): Delete.
2837 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2838 * symmisc.c (extend_psymbol_list): Use xrealloc.
2839 * source.c (find_source_lines): Ditto.
2840 * hpread.c (hpread_lookup_type): Ditto.
2841 * dbxread.c (add_bincl_to_list): Ditto.
2842
7936743b
AC
2843 * utils.c (xmmalloc): Delete.
2844 (xmalloc): Inline xmmalloc and mmalloc calls.
2845 (msavestring): Use xmalloc.
2846 * defs.h (xmmalloc): Delete declaration.
2847 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2848 xmmalloc.
2849 * symmisc.c (extend_psymbol_list): Ditto.
2850 * symfile.c (init_psymbol_list): Ditto.
2851 * source.c (find_source_lines): Ditto.
2852 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2853 * elfread.c (elf_symtab_read): Ditto.
2854 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2855 * coffread.c (coff_symfile_init): Ditto.
2856
252ab814
DC
28572004-08-10 David Carlton <carlton@bactrian.org>
2858
2859 * MAINTAINERS: Remove David Carlton from c++ testsuite
2860 maintainers.
2861
8f5ba92b
JG
28622004-08-10 Jerome Guitton <guitton@gnat.com>
2863
2864 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2865 print a line feed before the prompt.
2866
21749010
MK
28672004-08-10 Mark Kettenis <kettenis@gnu.org>
2868
2869 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2870
1f011ce2
JB
28712004-08-09 Joel Brobecker <brobecker@gnat.com>
2872
2873 General cleanup of the AIX xm include file:
2874 * config/xm-aix4.h (fd_set): Remove undefine.
2875 Remove include of <sys/select.h>.
2876 (HAVE_TERMIO): Remove define.
2877 (USG): Likewise.
2878 (NULL): Remove redefine.
2879 (alloca): Remove #pragma.
2880 (vfork): Remove define.
2881 (termdef): Remove.
2882 (SIGWINCH_HANDLER): Remove.
2883 (SIGWINCH_HANDLER_BODY): Remove.
2884
cf4e7692
MK
28852004-08-09 Mark Kettenis <kettenis@gnu.org>
2886
2887 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2888 GDB_OSABI_OPENBSD_ELF.
2889
ac5754fa
MK
28902004-08-07 Robert Millan <robertmh@gnu.org>
2891
2892 * bsd-kvm.c: Check for nlist.h before including it.
2893
086ec9eb
MK
28942004-08-09 Mark Kettenis <kettenis@gnu.org>
2895
bbe06c74
MK
2896 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2897 sigcontext' offset consistency checks for ancient BSD.
2898
3aa7b3b3
MK
2899 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2900
086ec9eb
MK
2901 * configure.in: Check for <sys/types.h>. Check return and
2902 argument types of ptrace.
2903 * configure, config.in: Regenerate.
2904
09991fa0
JB
29052004-08-09 Jim Blandy <jimb@redhat.com>
2906
2907 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2908 rs6000_register_sim_regno): Doc fixes.
2909
fed7ba43
JB
29102004-08-08 Joel Brobecker <brobecker@gnat.com>
2911
2912 * mips-tdep.c: Include "floatformat.h".
2913 (n32n64_floatformat_always_valid): New function.
2914 (floatformat_n32n64_long_double_big): New constant.
2915 (mips_gdbarch_init): Set size and format of long double
2916 for N32 and N64 ABIs.
2917 * Makefile.in (mips-tdep.o): Update dependencies.
2918
456fcf94
AC
29192004-08-08 Andrew Cagney <cagney@gnu.org>
2920
2f9b146e
AC
2921 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2922 print. Improve script's error messages.
2923 * gdbarch.h: Re-generate.
2924
456fcf94
AC
2925 * gdbarch.sh (pformat): New function.
2926 (float_format, double_format, long_double_format): List with bit
2927 members. Use pformat when printing.
2928 * gdbarch.c, gdbarch.h: Re-generate.
2929
69e9e646
NW
29302004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2931
2932 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2933 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2934 (ppcnbsd_supply_pcb): New function.
2935 (_initialize_ppcnbsd_nat): New prototype and function.
2936 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2937 (LOADLIBES): New variable.
2938 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2939
5ef2d0aa
AC
29402004-08-08 Andrew Cagney <cagney@gnu.org>
2941
2942 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2943 (builtin_type_ieee_double, builtin_type_ia64_quad)
2944 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2945 BE/LE floating-point types.
2946 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2947 (builtin_type_ieee_double, builtin_type_ia64_quad)
2948 (builtin_type_ia64_spill): Declare.
2949 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2950 (floatformat_ieee_double, floatformat_arm_ext)
2951 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2952 of LE/BE floatformats.
2953 * doublest.h: (struct floatformat, floatformat_ieee_single)
2954 (floatformat_ieee_double, floatformat_arm_ext)
2955 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2956
5c7f2947
MK
29572004-08-08 Mark Kettenis <kettenis@gnu.org>
2958
ecac404d
MK
2959 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2960
9b8607ce
MK
2961 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2962 instead of regcache_raw_supply when storing the registers.
2963
f6052080
MK
2964 * i386gnu-nat.c: Update copyright year.
2965 (gnu_store_registers): Don't use deprecated_registers and
2966 deprecated_registers_valid. Use regcache_valid_p and
2967 regcache_raw_supply instead.
2968
17777823
MK
2969 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2970 frame_pc_unwind.
2971
5240ceac
MK
2972 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2973 variables. Incapitalized "process".
2974
5c7f2947
MK
2975 * configure.in: Add cursesX to the list of possible curses libs.
2976 Add cursesX.h to the list of possible curses headers.
2977 * configure, config.in: Regenerate.
2978
da7d81e3
NW
29792004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2980
2981 * configure.in: Test for struct lwp in <sys/lwp.h>.
2982 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2983 the offset of l_addr in struct lwp.
2984
7f245d65
NW
29852004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2986
2987 * bsd-kvm.c: Include "gdbcore.h"
2988 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2989
47b3f456
AC
29902004-08-07 Andrew Cagney <cagney@gnu.org>
2991
70bd8e24
AC
2992 * gdbtypes.c (build_flt, build_complex): New functions.
2993 (gdbtypes_post_init): Use.
2994
9b0dea39
AC
2995 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2996
5cf7abac
AC
2997 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2998 through to builtin_type_uint128.
2999
64d2b26d
AC
3000 * c-exp.y: Use builtin_type function to obtain builtin types.
3001
7ad6570d
AC
3002 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3003 builtin_uint128.
3004 * gdbtypes.c (gdbtypes_post_init): Update.
3005 (build_gdbtypes): Move initialization of builtin_type_int0
3006 through to builtin_type_uint128 from here ...
3007 (_initialize_gdbtypes): ... to here.
3008 * d10v-tdep.c (d10v_register_type): Update.
3009
47b3f456
AC
3010 * doublest.c: Update copyright.
3011 (floatformat_from_length): Call error when floatformat is NULL.
3012 (extract_floating_by_length): Remove NULL fmt check.
3013 (store_floating_by_length): Ditto.
3014
0a8146bf
AC
30152004-08-07 Andrew Cagney <cagney@gnu.org>
3016
3017 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3018 that the register is valid.
3019
c0ccb908
MK
30202004-08-05 Mark Kettenis <kettenis@chello.nl>
3021
8e6bed05
MK
3022 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3023 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3024 struct frame_info *. Use safe_frame_unwind_memory instead of
3025 deprecated_read_memory_nobpt.
3026 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3027 changed signature of i386_linux_sigtramp_start and
3028 i386_linux_rt_sigtramp_start.
3029
24f9f5e3
MK
3030 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3031 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3032 instead of deprecated_read_memory_nobpt.
3033 (i386nbsd_sigtramp_p): Adjust for changed signature of
3034 i386nbsd_sigtramp_offset.
3035
c822af0c
MK
3036 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3037 safe_frame_unwind_memory instead of target_read_memory.
3038
c0ccb908
MK
3039 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3040 !NO_SYS_FILE.
3041 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3042 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3043 (_initialize_kernel_u_addr): Remove prototype and function.
3044 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3045 !NO_SYS_FILE.
3046 * xcoffread.c: Likewise.
3047
b9e1c0d6
MK
30482004-08-06 Mark Kettenis <kettenis@gnu.org>
3049
3050 * vax-nat.c: New file.
3051 * vaxbsd-nat.c: Tweak comment.
3052 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3053 vaxnbsd-tdep.c.
3054 (vax-nat.o): New dependency.
3055 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3056 (vax-*-ultrix2*): Remove.
3057 * config/vax/vax.mh: New file.
3058 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3059 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3060 (vax_register_u_addr): New prototype.
3061 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3062 * config/vax/vaxult2.mh: Remove file.
3063 * config/vax/vaxult.mh: Remove file.
3064 * config/vax/vaxbsd.mh: Remove file.
3065 * config/vax/vax.mt (TM_FILE): Remove.
3066 * config/vax/tm-vaxbsd.h: Remove file.
3067
9ad7bec7
JB
30682004-08-06 Joel Brobecker <brobecker@gnat.com>
3069
3070 * aix-thread.c (get_signaled_thread): New function.
3071 (iter_trap): Delete, no longer used.
3072 (iter_tid): New function.
3073 (pd_update): Find the thread that received the SIGTRAP signal
3074 by first locating the kernel thread, and then finding its
3075 associated thread.
3076
bf0d233d
UW
30772004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3078
3079 * lin-lwp.c (child_wait): Continue inferior after processing
3080 PTRACE_EVENT_CLONE event.
3081
d0f853e1
NN
30822004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3083
3084 * MAINTAINERS: Add self to Write-After-Approval.
3085
ab14aeb0
JJ
30862004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3087
3088 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3089 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3090
9c8dbfa9
AC
30912004-08-05 Andrew Cagney <cagney@gnu.org>
3092
c8f3ca46
AC
3093 * config/xm-sysv4.h: Delete file.
3094 * config/mips/xm-irix5.h: Delete file.
3095 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3096 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3097 * config/ia64/xm-aix.h: Delete file.
3098 * config/ia64/aix.mh (XM_FILE): Delete.
3099 * config/pa/xm-hppah.h: Delete file.
3100 * config/pa/hpux11w.mh (XM_FILE): Delete.
3101 * config/pa/hpux11.mh (XM_FILE): Delete.
3102 * config/pa/hpux1020.mh (XM_FILE): Delete.
3103 * config/pa/hppahpux.mh (XM_FILE): Delete.
3104
5f7daaff
AC
3105 * config/alpha/xm-alphalinux.h: Delete file.
3106 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3107 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3108 * config/alpha/xm-alphaosf.h: Delete file.
3109 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3110 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3111 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3112 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3113
69babf95
AC
3114 * config/i386/xm-i386v.h: Delete file.
3115 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3116 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3117 * config/i386/xm-i386sco.h: Delete file.
3118 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3119 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3120 * config/i386/xm-i386v4.h: Delete file.
3121 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3122 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3123 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3124 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3125
6f009c8a
AC
3126 * config/vax/xm-vax.h: Delete file.
3127 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3128 * config/vax/xm-vaxult2.h: Delete file.
3129 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3130 * config/vax/vaxult2.mh (XM_FILE): Delete.
3131 * config/vax/xm-vaxult.h: Delete file.
3132 * config/vax/vaxult.mh (XM_FILE): Delete.
3133 * config/vax/xm-vaxbsd.h: Delete file.
3134 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3135
9c8dbfa9
AC
3136 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3137 * gdbarch.h, gdbarch.c: Re-generate.
3138 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3139 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3140 * frame.h: Delete deprecated_read_fp from comments.
3141 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3142 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3143
84367a3e
MK
31442004-08-04 Mark Kettenis <kettenis@gnu.org>
3145
9c8e3411
MK
3146 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3147 trampoline in OpenBSD 3.5-current.
3148
b87bc0d8
MK
3149 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3150 SSE registers.
3151
84367a3e
MK
3152 * Makefile.in: Remove embedded page breaks.
3153
a44bddec
JB
31542004-08-04 Jim Blandy <jimb@redhat.com>
3155
7ab3286f
JB
3156 * regcache.c (regcache_raw_read): Assert that, after calling
3157 target_fetch_registers, the register we're reading is cached.
3158
a44bddec
JB
3159 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3160 a call to 'internal_error', with a more helpful error message.
3161 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3162 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3163
35124113
AC
31642004-08-04 Andrew Cagney <cagney@gnu.org>
3165
3166 * Makefile.in: Update dependencies.
3167
9f643768
JB
31682004-08-04 Jim Blandy <jimb@redhat.com>
3169
6ced10dd
JB
3170 Change the layout of the PowerPC E500 raw register cache to allow
3171 the lower 32-bit halves of the GPRS to be their own raw registers,
3172 not pseudoregisters.
3173 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3174 add ppc_ev0_upper_regnum flag.
3175 * rs6000-tdep.c: #include "reggroups.h".
3176 (spe_register_p): Recognize the ev upper half registers as SPE
3177 registers.
3178 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3179 registers.
3180 (e500_move_ev_register): New function.
3181 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3182 vector registers are the pseudo-registers now, formed by splicing
3183 together the gprs and the upper-half registers.
3184 (e500_register_reggroup_p): New function.
3185 (P): Macro deleted.
3186 (P8, A4): New macro.
3187 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3188 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3189 macros.
3190 (registers_e500): Rearrange register set so that the raw register
3191 set contains 32-bit GPRs and upper-half registers, and the SPE
3192 vector registers become pseudo-registers.
3193 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3194 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3195 register numbers are now the same for the E500 as they are for
3196 other PowerPC variants. Register e500_register_reggroup_p as the
3197 register group function for the E500.
3198 * Makefile.in (rs6000-tdep.o): Update dependencies.
3199
3200 Adapt PPC E500 native support to the new raw regcache layout.
3201 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3202 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3203 (fetch_spe_register, store_spe_register): Handle fetching/storing
3204 all the SPE registers at once, if regno == -1. These now take
3205 over the job of fetch_spe_registers and store_spe_registers.
3206 (fetch_spe_registers, store_spe_registers): Deleted.
3207 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3208 unconditionally; they're always raw. Fetch/store SPE upper half
3209 registers, if present, instead of ev registers.
3210 (fetch_register, store_register): Remove sanity checks: gprs are
3211 never pseudo-registers now, so we never need to even mention any
3212 registers that are ever pseudoregisters.
3213
9f643768
JB
3214 Use a fixed register numbering when communicating with the PowerPC
3215 simulator.
3216 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3217 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3218 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3219 New functions.
3220 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3221 init_sim_regno_table.
3222 * Makefile.in (gdb_sim_ppc_h): New variable.
3223 (rs6000-tdep.o): Update dependencies.
3224
1e2279c8
AC
32252004-08-02 Andrew Cagney <cagney@gnu.org>
3226
1d94326f
AC
3227 * cris-tdep.c (cris_register_size): Restore function, still used
3228 locally.
3229
331ae7ed
AC
3230 * gdbarch.sh (deprecated_target_read_fp)
3231 (deprecated_frame_locals_address, deprecated_frame_args_address)
3232 (deprecated_frame_chain_valid, deprecated_frame_chain)
3233 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3234 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3235 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3236 * gdbarch.h, gdbarch.c: Re-generate.
3237 * regcache.c (deprecated_read_fp): Do not call
3238 DEPRECATED_TARGET_READ_FP_P.
3239 * infcmd.c (default_print_registers_info): Do not call
3240 DEPRECATED_DO_REGISTERS_INFO.
3241 * frame-base.c (default_frame_locals_address): Do not call
3242 DEPRECATED_FRAME_LOCALS_ADDRESS.
3243 (default_frame_args_address): Do not call
3244 DEPRECATED_FRAME_ARGS_ADDRESS.
3245
1e2279c8
AC
3246 * gdbarch.sh (deprecated_register_raw_size)
3247 (deprecated_register_virtual_size:int): Delete.
3248 * gdbarch.h, gdbarch.c: Re-generate.
3249 * cris-tdep.c (cris_register_size): Delete.
3250 (cris_gdbarch_init): Update.
3251 * alpha-tdep.c (alpha_register_raw_size)
3252 (alpha_register_virtual_size): Delete.
3253 (alpha_gdbarch_init): Update.
3254
a90c06b4
AC
3255 * gdbarch.sh (deprecated_register_virtual_type)
3256 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3257 (deprecated_dummy_write_sp): Delete.
3258 * gdbarch.h, gdbarch.c: Re-generate.
3259
f42accbe
AC
3260 * gdbarch.sh (deprecated_register_bytes): Delete.
3261 * gdbarch.h, gdbarch.c: Re-generate.
3262 * regcache.c (deprecated_register_bytes): New function.
3263 * regcache.h (deprecated_register_bytes): Declare.
3264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3265 * v850-tdep.c (v850_gdbarch_init): Update.
3266 * sh64-tdep.c (sh64_gdbarch_init): Update.
3267 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3269 * mcore-tdep.c (mcore_gdbarch_init): Update.
3270 * cris-tdep.c (cris_gdbarch_init): Update.
3271 * arm-tdep.c (arm_gdbarch_init): Update.
3272 * remote.c (init_remote_state): Update.
3273 * remote-vx.c (vx_prepare_to_store): Update.
3274 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3275 * irix5-nat.c (fetch_core_registers): Update.
3276 * cris-tdep.c (cris_register_bytes_ok): Update.
3277 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3278
45c9dd44
AC
3279 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3280 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3281 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3282 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3283 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3284 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3285 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3286 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3287 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3288 with mips_insn16 and mips_insn32.
3289
3acba339
AC
3290 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3291 * rs6000-tdep.c (rs6000_push_dummy_call)
3292 (rs6000_extract_return_value): Use register_size.
3293 * xstormy16-tdep.c (xstormy16_get_saved_register)
3294 (xstormy16_extract_return_value): Ditto.
3295 * valops.c (value_assign): Ditto.
3296 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3297 * v850-tdep.c (v850_extract_return_value): Ditto.
3298 * tracepoint.c (collect_symbol): Ditto.
3299 * target.c (debug_print_register): Ditto.
3300 * stack.c (frame_info): Ditto.
3301 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3302 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3303 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3304 (store_register_using_P): Ditto.
3305 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3306 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3307 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3308 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3309 * regcache.c (deprecated_read_register_bytes)
3310 (deprecated_write_register_bytes, read_register)
3311 (write_register): Ditto.
3312 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3313 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3314 * monitor.c (monitor_supply_register, monitor_fetch_register)
3315 (monitor_store_register): Ditto.
3316 * mn10300-tdep.c (mn10300_pop_frame_regular)
3317 (mn10300_print_register): Ditto.
3318 * mipsv4-nat.c (fill_fpregset): Ditto.
3319 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3320 (mips64_fill_fpregset): Ditto.
3321 * mi/mi-main.c (register_changed_p, get_register)
3322 (mi_cmd_data_write_register_values): Ditto.
3323 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3324 * irix5-nat.c (fill_gregset, fetch_core_registers):
3325 * infrun.c (write_inferior_status_register): Ditto.
3326 * infptrace.c (fetch_register, store_register): Ditto.
3327 * infcmd.c (default_print_registers_info): Ditto.
3328 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3329 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3330 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3331 * hpux-thread.c (hpux_thread_fetch_registers)
3332 (hpux_thread_store_registers): Ditto.
3333 * hppah-nat.c (store_inferior_registers, fetch_register):
3334 * findvar.c (value_from_register): Ditto.
3335 * dve3900-rom.c (fetch_bitmapped_register):
3336 * cris-tdep.c (cris_gdbarch_init): Ditto.
3337 * alpha-tdep.h: Ditto.
3338 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3339
01e1877c
AC
3340 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3341 DEPRECATED_REGISTER_RAW_SIZE from comments.
3342 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3343 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3344 DEPRECATED_REGISTER_RAW_SIZE.
3345 * findvar.c (value_of_register): Simplify by assuming that the
3346 registers raw and virtual sizes are identical.
3347 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3348 comment.
3349 * arch-utils.c (generic_register_size): Simplify by assuming
3350 register_type.
3351
73f458fb
AC
3352 * regcache.c (legacy_read_register_gen, real_register)
3353 (legacy_write_register_gen): Delete, not used.
3354
336a3131
AC
3355 * regcache.c (struct regcache_descr): Delete legacy_p.
3356 (init_legacy_regcache_descr): Delete function.
3357 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3358 Do not use deprecated register functions.
3359 (regcache_raw_read, deprecated_write_register_gen):
3360 (deprecated_read_register_gen, regcache_raw_write): Delete code
3361 predicated on legacy_p.
3362 (register_size): Delete check against register raw size.
3363
c1d546cd
AC
3364 * cris-tdep.c (cris_register_type): Replace
3365 cris_register_virtual_type.
3366 (cris_gdbarch_init): Update, set register_type.
3367
48c2c0a6
AC
3368 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3369 * gdbarch.h, gdbarch.c: Re-generate.
3370 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3371 (arm_gdbarch_init) Do not set frameless function invocation.
3372 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3373 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3374 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3375 (frv_gdbarch_init): Do not set frameless function invocation.
3376 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3377 * sh-tdep.c (sh_gdbarch_init): Ditto.
3378 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3380 * avr-tdep.c (avr_gdbarch_init): Ditto.
3381
474093a6
AC
3382 * blockframe.c (legacy_frame_chain_valid): Delete function.
3383
3c109c8b
AC
3384 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3385 and pc. Update comments.
3386 (pc_in_dummy_frame): Delete function.
3387 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3388 use the "id".
3389 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3390 call_hi, top and pc, use the id.
3391 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3392
96860204
AC
3393 * dummy-frame.c: Include "gdb_string.h".
3394 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3395 (generic_save_dummy_frame_tos): Delete.
3396 (dummy_frame_push): New function, replaces above.
3397 * dummy-frame.h: Update copyright.
3398 (dummy_frame_push): Declare.
3399 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3400 (generic_save_call_dummy_addr): Delete declarations.
3401 * infcall.c: Include "dummy-frame.h".
3402 (call_function_by_hand): Add locals caller_regcache,
3403 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3404 with call to frame_save_as_regcache plus cleanup. Delete calls to
3405 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3406 Move clear_proceed_status to just before the resume, add call to
3407 dummy_frame_push (discard cleanup).
3408 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3409 (dummy-frame.o): Add $(gdb_string_h).
3410
d67ec5db
AC
34112004-08-01 Andrew Cagney <cagney@gnu.org>
3412
3413 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3414 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3415 * dummy-frame.c (find_dummy_frame): Delete.
3416 (struct dummy_frame_cache, dummy_frame_sniffer)
3417 (dummy_frame_prev_register, dummy_frame_this_id)
3418 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3419 frame unwinder using a dummy_frame_cache.
3420
a81dcb05
AC
34212004-08-01 Andrew Cagney <cagney@gnu.org>
3422
3423 * frame.h (frame_save_as_regcache): Declare.
3424 * frame.c (frame_save_as_regcache): New function.
3425 (do_frame_read_register): Replace do_frame_unwind_register.
3426 (frame_pop): Use frame_save_as_regcache.
3427 * dummy-frame.c (generic_push_dummy_frame): Use
3428 frame_save_as_regcache.
3429
aa495d11
JB
34302004-08-01 Joel Brobecker <brobecker@gnat.com>
3431
3432 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3433 file as included until we record the first line in the linetable.
3434
ff65ac78
AC
34352004-08-01 Andrew Cagney <cagney@gnu.org>
3436
3437 * frame.h (deprecated_pop_dummy_frame)
3438 (deprecated_read_register_dummy)
3439 (deprecated_generic_find_dummy_frame): Delete.
3440 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3441 (deprecated_read_register_dummy)
3442 (deprecated_find_dummy_frame_regcache)
3443 (discard_innermost_dummy)
3444 (deprecated_pop_dummy_frame): Delete.
3445 (dummy_frame_this_id): Simplify.
3446 (struct dummy_frame): Delete "fp" and "sp".
3447 (find_dummy_frame): Simplify.
3448 (generic_push_dummy_frame): Do not set "fp" or "sp".
3449 (fprint_dummy_frames): Do not print "fp" and "sp"
3450
37bdc87e
MK
34512004-08-01 Mark Kettenis <kettenis@gnu.org>
3452
3453 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3454 (struct i386_insn): New structure.
3455 (i386_match_insn): New function.
3456 (i386_frame_setup_skip_insns): New variable.
3457 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3458 array i386_frame_setup_insns of instructions that should be
3459 skipped inside the frame setup sequence.
3460
8241eaa6
AC
34612004-08-01 Andrew Cagney <cagney@gnu.org>
3462
5bc602c7
AC
3463 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3464 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3465 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3466 * stack.c (frame_info): Delete references to
3467 DEPRECATED_FRAME_INIT_SAVED_REGS and
3468 deprecated_get_frame_saved_regs.
3469 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3470 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3471 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3472 (frame_unwind_register_signed)
3473 (frame_unwind_register_unsigned)
3474 (frame_unwind_unsigned_register): Use register_size.
3475 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3476 (deprecated_frame_xmalloc_with_cleanup)
3477 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3478 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3479
03d363a1
AC
3480 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3481 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3482 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3483 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3484
8241eaa6
AC
3485 * infcall.c (call_function_by_hand): Do not use
3486 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3487 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3488 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3489 DEPRECATED_STACK_ALIGN.
3490
f00df8b7
AC
34912004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3492
3493 Committed by Andrew Cagney.
3494 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3495
eec63939
AC
34962004-08-01 Andrew Cagney <cagney@gnu.org>
3497
3498 * mips-tdep.c (mips16_frame_cache)
3499 (mips16_frame_this_id, mips16_frame_prev_register)
3500 (mips16_frame_unwind, mips16_frame_sniffer)
3501 (mips16_frame_base_address, mips16_frame_base)
3502 (mips16_frame_base_sniffer, mips32_frame_cache)
3503 (mips32_frame_this_id, mips32_frame_prev_register)
3504 (mips32_frame_unwind, mips32_frame_sniffer)
3505 (mips32_frame_base_address, mips32_frame_base)
3506 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3507 separate heuristic mips16 and mips32 unwinders.
3508 (mips_stub_frame_cache, mips_stub_frame_this_id)
3509 (mips_stub_frame_prev_register)
3510 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3511 (mips_stub_frame_base_address, mips_stub_frame_base)
3512 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3513 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3514 match true mdebug frames.
3515 (non_heuristic_proc_desc): Add forward declaration.
3516
e66299b3
AC
35172004-08-01 Andrew Cagney <cagney@gnu.org>
3518
83cbbf3e
AC
3519 * config/mips/tm-irix6.h: Delete file.
3520 * config/mips/tm-irix5.h: Delete file.
3521 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3522 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3523
22d41b37
AC
3524 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3525 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3526 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3527 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3528 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3529 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3530 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3531 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3532 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3533 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3534 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3535 (TARGET_SIGNAL_RAW_VALUES): Delete.
3536 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3537 Delete.
3538 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3539 (TARGET_HW_WATCH_LIMIT): Delete.
3540 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3541 * minimon.h: Delete file.
3542
e66299b3
AC
3543 * trad-frame.c (trad_frame_get_this_base)
3544 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3545 functions.
3546 * trad-frame.h (trad_frame_set_this_base)
3547 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3548
1f67027d
AC
35492004-07-31 Andrew Cagney <cagney@gnu.org>
3550
3551 * trad-frame.c (trad_frame_get_prev_register): Rename
3552 trad_frame_get_prev_register.
3553 * vax-tdep.c (vax_frame_prev_register): Update.
3554 * trad-frame.h: Update.
3555 * trad-frame.c (trad_frame_get_register): Update.
3556 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3557 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3558 Update.
3559 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3560 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3561 Update.
3562 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3563 Update.
3564 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3565 Update.
3566 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3567 Update.
3568 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3569 Update.
3570 * s390-tdep.c (s390_frame_prev_register)
3571 (s390_stub_frame_prev_register)
3572 (s390_sigtramp_frame_prev_register): Update.
3573 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3574 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3575 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3576 * m88k-tdep.c (m88k_frame_prev_register)
3577 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3578 * m32r-tdep.c (m32r_frame_prev_register): Update.
3579 * hppa-tdep.c (hppa_frame_prev_register_helper)
3580 * frv-tdep.c (frv_frame_prev_register): Update.
3581 * d10v-tdep.c (d10v_frame_prev_register): Update.
3582 * cris-tdep.c (cris_frame_prev_register): Update.
3583 * avr-tdep.c (avr_frame_prev_register): Update.
3584 * arm-tdep.c (arm_prologue_prev_register)
3585 (arm_sigtramp_prev_register): Update.
3586
c1bf6f65
AC
35872004-07-31 Andrew Cagney <cagney@gnu.org>
3588
3589 * frame.h (legacy_saved_regs_unwind)
3590 (legacy_frame_chain_valid, legacy_frame_p)
3591 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3592 * dummy-frame.c (dummy_frame_this_id): Simplify.
3593 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3594 * frame.c (struct frame_info): Delete the field "type".
3595 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3596 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3597 (legacy_saved_regs_unwind, legacy_frame_p)
3598 (frame_type_from_pc): Delete.
3599 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3600 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3601
dc856692
MK
36022004-07-31 Mark Kettenis <kettenis@gnu.org>
3603
5a5effe1
MK
3604 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3605 indentation.
3606
d4fd50a6
MK
3607 * mips-nat.c: Remove file.
3608 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3609 (mips-nat.o): Remove dependency.
3610
2689df5a
MK
3611 * infptrace.c: Update copyright year.
3612 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3613 explicitly setting the buffer to all zeroes.
3614
dc856692
MK
3615 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3616 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3617
763910e0
AC
36182004-07-30 Andrew Cagney <cagney@gnu.org>
3619
3620 * GDB 6.2 released from gdb_6_2-branch.
3621
0b66e38c
EZ
36222004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3623
3624 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3625
3626 * exec.c (exec_file_attach):
3627 * nto-tdep.c (nto_find_and_open_solib):
3628 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3629 * solib.c (solib_open):
3630 * somsolib.c (som_solib_sizeof_symbol_table):
3631 * source.c (is_regular_file, openp, open_source_file):
3632 * symfile.c (symfile_bfd_open):
3633 * wince.c (upload_to_device): Differentiate between the search for
3634 binary and source files.
3635
be7d7357
AC
36362004-07-30 Andrew Cagney <cagney@gnu.org>
3637
3638 * complaints.c (_initialize_complaints): Pass NULL to
3639 add_setshow_zinteger_cmd for help_doc.
3640 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3641
ddc9cd0f
AC
36422004-07-30 Andrew Cagney <cagney@gnu.org>
3643
3644 Fix PR i18n/761.
3645 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3646 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3647 $(PACKAGE).pot and update-po.
3648 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3649 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3650 (update-po): New rules.
3651 (localedir): Define using autoconf.
3652 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3653 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3654 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3655 * configure.in: Generate CATALOGS and LINGUAS from contents of
3656 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3657 * configure: Re-generate.
3658 * po/gdbtext: New file
3659
e92f3704
JG
36602004-07-30 Jerome Guitton <guitton@gnat.com>
3661
3662 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3663 order.
3664
b0f35d58
DL
36652004-07-30 David Lecomber <dsl@sources.redhat.com>
3666
3667 * dwarf2read.c (read_file_scope): Set producer if attribute
3668 present.
3669 (struct dwarf2_cu): Added new member producer.
3670
ce7d4522
JG
36712004-07-30 Jerome Guitton <guitton@gnat.com>
3672
3673 * inflow.c (kill_command): release file handles in BFD.
3674 * exec.c (exec_file_attach): Ditto.
3675 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3676
05ee07c7
AC
36772004-07-29 Andrew Cagney <cagney@gnu.org>
3678
3679 * PROBLEMS (mips-irix): Note that it is broken.
3680
62eceb47
AC
36812004-07-29 Andrew Cagney <cagney@gnu.org>
3682
e57b8d41
AC
3683 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3684 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3685
d334389b
AC
3686 * config/xm-nbsd.h: Delete file.
3687 * config/arm/xm-nbsd.h: Delete file.
3688 * config/i386/xm-nbsd.h: Delete file.
3689 * config/ns32k/xm-nbsd.h: Delete file.
3690 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3691 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3692 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3693 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3694 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3695
e910f676
AC
3696 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3697 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3698 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3699 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3700 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3701 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3702
6fa856b9
AC
3703 * config/powerpc/xm-linux.h: Delete empty file.
3704 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3705 * config/powerpc/linux.mh (XM_FILE): Delete.
3706 * config/m68k/xm-linux.h: Delete empty file.
3707 * config/m68k/linux.mh (XM_FILE): Delete.
3708 * config/ia64/xm-linux.h: Delete empty file.
3709 * config/ia64/linux.mh (XM_FILE): Delete.
3710 * config/arm/xm-linux.h: Delete empty file.
3711 * config/arm/linux.mh (XM_FILE): Delete.
3712
471ae5ae
AC
3713 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3714 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3715 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3716 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3717 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3718 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3719 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3720 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3721
62eceb47
AC
3722 * config/m68k/xm-m68k.h: Delete file.
3723 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3724 copyright.
3725 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3726 * config/pa/xm-linux.h: Delete empty file.
3727 * config/pa/linux.mh (XM_FILE): Delete.
3728 * config/i386/xm-i386.h: Delete empty file.
3729 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3730 "i386/xm-i386.h".
3731 * config/i386/obsdaout.mh (XM_FILE): Delete.
3732 * config/i386/obsd64.mh (XM_FILE): Delete.
3733 * config/i386/fbsd64.mh (XM_FILE): Delete.
3734 * config/i386/nto.mh (XM_FILE): Delete.
3735 * config/i386/obsd.mh (XM_FILE): Delete.
3736 * config/i386/linux64.mh (XM_FILE): Delete.
3737 * config/i386/linux.mh (XM_FILE): Delete.
3738 * config/i386/i386sol2.mh (XM_FILE): Delete.
3739 * config/i386/i386gnu.mh (XM_FILE): Delete.
3740 * config/i386/fbsd.mh (XM_FILE): Delete.
3741 * config/i386/nbsd64.mh (XM_FILE): Delete.
3742
c35f4ffc
AC
37432004-07-29 Andrew Cagney <cagney@gnu.org>
3744
3745 * config/pa/xm-linux.h: Do not include "floatformat.h".
3746 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3747 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3748 * config/i386/xm-i386.h: Do not include "floatformat.h".
3749 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3750 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3751 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3752 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3753 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3754 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3755 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3756 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3757 * configure, config.in: Regenerate.
3758 * configure.host (gdb_host_float_format, gdb_host_double_format)
3759 (gdb_host_long_double_format): Set according to the host.
3760
624a44a3
AC
37612004-07-29 Andrew Cagney <cagney@gnu.org>
3762
3763 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3764
0dea2468
AC
37652004-07-28 Andrew Cagney <cagney@gnu.org>
3766
3767 * PROBLEMS: Mention threads/1650.
3768 * NEWS: Mention the NPTL fix.
3769
b3f42336
AC
37702004-07-28 Andrew Cagney <cagney@gnu.org>
3771
3772 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3773 (add_setshow_cmd_full): Make static.
3774 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3775 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3776 * cli/cli-decode.c (add_setshow_filename_cmd)
3777 (add_setshow_string_cmd): New functions.
3778 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3779 * mips-tdep.c (_initialize_mips_tdep): Update.
3780 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3781 * cli/cli-logging.c (_initialize_cli_logging): Update.
3782 * complaints.c (_initialize_complaints): Update.
3783 * remote.c (_initialize_remote): Update.
3784
3b64bf98
AC
37852004-07-28 Andrew Cagney <cagney@gnu.org>
3786
3787 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3788 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3789 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3790 print parameters. Make string parameters constant.
3791 * command.h: Update. Update copyright.
3792 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3793 * observer.c (_initialize_observer): Ditto.
3794 * frame.c (_initialize_frame): Ditto.
3795 * complaints.c (_initialize_complaints): Ditto.
3796 * maint.c (_initialize_maint_cmds): Ditto.
3797 * target.c (initialize_targets): Ditto.
3798 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3799 * infcall.c (_initialize_infcall): Ditto.
3800 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3801 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3802 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3803 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3804 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3805
e9667a65
AC
38062004-07-28 Andrew Cagney <cagney@gnu.org>
3807
54a5b07d
AC
3808 * gdbtypes.c (lookup_primitive_typename): Delete function.
3809 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3810 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3811 * gdbtypes.c (lookup_typename): Ditto.
3812 * f-exp.y (yylex): Ditto.
3813 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3814
e9667a65
AC
3815 * scm-lang.c (c_builtin_types): Delete extern declaration.
3816 (scm_language_defn): Replace
3817 string_char_type and primitive_type_vector with
3818 la_language_arch_info.
3819 * jv-lang.c (java_language_defn): Replace
3820 string_char_type and primitive_type_vector with
3821 la_language_arch_info.
3822 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3823 c_builtin_types in comment.
3824 * c-lang.h (struct language_arch_info): Declare opaque.
3825 (c_language_arch_info): Declare.
3826 (c_builtin_types): Delete declaration.
3827 * c-lang.c (c_language_arch_info): Set string_char_type to
3828 builtin_char, not builtin_true_char. Make global.
3829 (c_builtin_types): Delete array.
3830 (asm_language_defn, minimal_language_defn): Replace
3831 string_char_type and primitive_type_vector with
3832 la_language_arch_info.
3833
685419e2
AC
38342004-07-28 Andrew Cagney <cagney@gnu.org>
3835
3836 * gdbtypes.h (struct builtin_type): Rename true_char to
3837 builtin_true_char.
3838 * gdbtypes.c (gdbtypes_post_init): Update.
3839 * c-lang.c (arch_info): New function.
3840 (enum c_primitive_types): New enum.
3841 (c_language_defn): Instead of string_char_type and
3842 primitive_type_vector set la_language_arch_info.
3843
5a44ea29
AC
38442004-07-28 Andrew Cagney <cagney@gnu.org>
3845
3846 * language.h (struct language_arch_info): Fix typo
3847 s/primative/primitive/.
3848 * gdbtypes.c (lookup_primitive_typename): Ditto.
3849 * language.c (language_lookup_primitive_type_by_name)
3850 (unknown_language_arch_info): Ditto.
3851
f290d38e
AC
38522004-07-27 Andrew Cagney <cagney@gnu.org>
3853
3854 * defs.h (enum language): Add nr_languages.
3855 * language.h (struct language_arch_info): Define.
3856 (struct language_defn): Add la_language_arch_info.
3857 (language_lookup_primative_type_by_name): Declare.
3858 (language_string_char_type): Declare.
3859 * language.c (_initialize_language, language_gdbarch_post_init)
3860 (struct language_gdbarch, language_gdbarch_data): Implement
3861 per-architecture language information.
3862 (unknown_language_arch_info, language_string_char_type)
3863 (language_lookup_primative_type_by_name): New functions.
3864 (unknown_language_defn, auto_language_defn)
3865 (local_language_defn): Set la_language_arch_info to
3866 unknown_language_arch_info.
3867 (unknown_builtin_types): Delete.
3868 * gdbtypes.c (lookup_primitive_typename): Use
3869 language_lookup_primative_type_by_name.
3870 (create_string_type): Use language_string_char_type.
3871 * values.c (value_from_string): Use language_string_char_type.
3872 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3873 * p-lang.c (pascal_language_defn): Ditto.
3874 * m2-lang.c (m2_language_defn): Ditto.
3875 * jv-lang.c (java_language_defn): Ditto.
3876 * objc-lang.c (objc_language_defn): Ditto.
3877 * f-lang.c (f_language_defn): Ditto.
3878 * c-lang.c (c_language_defn, cplus_language_defn)
3879 (asm_language_defn, minimal_language_defn): Ditto.
3880
000177f0
AC
38812004-07-27 Andrew Cagney <cagney@gnu.org>
3882
3883 * gdbtypes.h (struct builtin_type): Declare.
3884 (builtin_type): Declare.
3885 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3886 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3887 (gdbtypes_post_init): New function.
3888 (builtin_type): New function.
3889
e22f895c
KI
38902004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3891
3892 * remote-m32r-sdi.c: Fix breakpoint bug.
3893 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3894 recv_char_data, recv_long_data): New functions to replace communication
3895 sequences.
3896
536517dd
MC
38972004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3898
3899 Document PR threads/1650.
3900 * PROBLEMS (Threads): Document problem with many threads
3901
a0a44d18
AC
39022004-07-26 Andrew Cagney <cagney@gnu.org>
3903
3904 * gdb-mi.el: Move from here ...
3905 * mi/gdb-mi.el: ... to here.
3906
7ac4ac06
AC
39072004-07-26 Andrew Cagney <cagney@gnu.org>
3908
3909 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3910 * main.c (captured_main): When in batch mode always detach.
3911
a1b461bf
AC
39122004-07-26 Andrew Cagney <cagney@gnu.org>
3913
3914 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3915 and h8300 as broken.
3916 * NEWS: END-OF-LIFE frame compatibility module.
3917 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3918 specific comments.
3919
cb1a6d5f
AC
39202004-07-26 Andrew Cagney <cagney@gnu.org>
3921
3922 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3923 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3924 * wince.c (_initialize_wince): Update.
3925 * win32-nat.c (_initialize_win32_nat): Update.
3926 * varobj.c (_initialize_varobj): Update.
3927 * valops.c (_initialize_valops): Update.
3928 * utils.c (initialize_utils, initialize_utils): Update.
3929 * tui/tui-win.c (_initialize_tui_win): Update.
3930 * top.c (init_main): Update.
3931 * symfile.c (_initialize_symfile): Update.
3932 * source.c (_initialize_source): Update.
3933 * somsolib.c (_initialize_som_solib): Update.
3934 * solib.c (_initialize_solib): Update.
3935 * solib-frv.c (_initialize_frv_solib): Update.
3936 * serial.c (_initialize_serial): Update.
3937 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3938 * remote.c (_initialize_remote, _initialize_remote): Update.
3939 * remote-vx.c (_initialize_vx): Update.
3940 * remote-utils.c (_initialize_sr_support): Update.
3941 * remote-sds.c (_initialize_remote_sds): Update.
3942 * remote-mips.c (_initialize_remote_mips): Update.
3943 * remote-e7000.c (_initialize_remote_e7000): Update.
3944 * proc-api.c (_initialize_proc_api): Update.
3945 * printcmd.c: Update.
3946 * parse.c (_initialize_parse): Update.
3947 * pa64solib.c (_initialize_pa64_solib): Update.
3948 * p-valprint.c (_initialize_pascal_valprint): Update.
3949 * monitor.c (_initialize_remote_monitors): Update.
3950 * mips-tdep.c (_initialize_mips_tdep): Update.
3951 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3952 * maint.c (_initialize_maint_cmds): Update.
3953 * lin-lwp.c (_initialize_lin_lwp): Update.
3954 * language.c (_initialize_language): Update.
3955 * kod.c (_initialize_kod): Update.
3956 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3957 * i386-tdep.c (_initialize_i386_tdep): Update.
3958 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3959 * gdbarch.sh: Update.
3960 * gdbarch.c: Re-generate.
3961 * gdb-events.sh: Update.
3962 * gdb-events.c: Re-generate.
3963 * frame.c (_initialize_frame): Update.
3964 * exec.c: Update.
3965 * demangle.c (_initialize_demangler): Update.
3966 * dcache.c (_initialize_dcache): Update.
3967 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3968 * cp-valprint.c (_initialize_cp_valprint): Update.
3969 * corefile.c (_initialize_core): Update.
3970 * command.h: Update.
3971 * cli/cli-decode.h: Update.
3972 * cli/cli-cmds.c (init_cli_cmds): Update.
3973 * charset.c (_initialize_charset): Update.
3974 * breakpoint.c (_initialize_breakpoint): Update.
3975 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3976 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3977 * aix-thread.c (_initialize_aix_thread): Update.
3978
b4632131
MK
39792004-07-24 Mark Kettenis <kettenis@gnu.org>
3980
3981 Partial fix for PR backtrace/1718.
3982 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3983 that GCC migrates into the prolugue. Don't handle any
3984 instructions that clobber %ebx.
3985
822c9732
AC
39862004-07-23 Andrew Cagney <cagney@gnu.org>
3987
3988 Use regcache_raw_collect instead of regcache_collect.
3989 * regcache.h (regcache_collect): Delete declaration.
3990 * regcache.c (regcache_colect): Delete function.
3991 * win32-nat.c (do_child_store_inferior_registers): Update.
3992 * sol-thread.c (sol_thread_store_registers): Update.
3993 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3994 * rs6000-nat.c (store_register): Update.
3995 * remote.c (store_register_using_P, remote_store_registers): Update.
3996 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3997 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3998 (fill_vrregset, store_spe_registers, fill_gregset)
3999 (fill_gregset): Update.
4000 * nto-procfs.c (procfs_store_registers): Update.
4001 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4002 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4003 * m68klinux-nat.c (store_register, fill_gregset): Update.
4004 * m68k-tdep.c (fill_gregset): Update.
4005 * infptrace.c (store_register): Update.
4006 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4007 * i386-linux-nat.c (store_register, fill_gregset): Update.
4008 * hppa-linux-nat.c (fill_gregset): Update.
4009 * go32-nat.c (store_register): Update.
4010 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4011 (store_fp_regs): Update.
4012 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4013 (store_nwfpe_extended, store_fpregister, store_fpregs)
4014 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4015 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4016 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4017 (store_regs_user_thread, store_regs_kernel_thread): Update.
4018
32b05c07
MK
40192004-07-24 Mark Kettenis <kettenis@gnu.org>
4020
4021 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4022 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4023 encoding.
4024 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4025 member of `struct comp_unit'.
4026
8567c30f
AC
40272004-07-23 Andrew Cagney <cagney@gnu.org>
4028
4029 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4030 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4031
f6da8dd8
MH
40322004-07-23 Martin Hunt <hunt@redhat.com>
4033 Kevin Buettner <kevinb@redhat.com>
4034
4035 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4036 alignment was being added to the offset instead of multiplied.
4037
bd921882
MK
40382004-07-23 Mark Kettenis <kettenis@gnu.org>
4039
24f033e8
MK
4040 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4041 changed signal trampoline in OpenBSD 3.5-current.
4042
90f3cecd
MK
4043 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4044 <machine/pcb.h> and "bsd-kvm.h".
4045 (sparc64nbsd_supply_pcb): New function.
4046 (_initialize_sparc64nbsd_nat): Renamed from
4047 _initialize_sparcnbsd_nat. Enable libkvm interface.
4048 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4049 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4050 (LOADLIBES): New variable.
4051
a4954a62
MK
4052 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4053
bd921882
MK
4054 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4055
23a6d369
AC
40562004-07-21 Andrew Cagney <cagney@gnu.org>
4057
4058 Use regcache_raw_supply instead of supply_register.
4059 * regcache.h (supply_register): Delete declaration.
4060 * regcache.c (supply_register): Delete function.
4061 * wince.c (do_child_fetch_inferior_registers): Update.
4062 * win32-nat.c (do_child_fetch_inferior_registers)
4063 (fetch_elf_core_registers): Update.
4064 * v850ice.c (v850ice_fetch_registers): Update.
4065 * thread-db.c (thread_db_store_registers): Update.
4066 * sol-thread.c (sol_thread_store_registers): Update.
4067 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4068 * rs6000-nat.c (fetch_register): Update.
4069 * rom68k-rom.c (rom68k_supply_one_register): Update.
4070 * remote.c (remote_wait, remote_async_wait): Update.
4071 * remote-st.c (get_hex_regs): Update.
4072 * remote-sim.c (gdbsim_fetch_register): Update.
4073 * remote-sds.c (sds_fetch_registers): Update.
4074 * remote-rdp.c (remote_rdp_fetch_register): Update.
4075 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4076 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4077 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4078 * remote-hms.c (init_hms_cmds): Update.
4079 * remote-est.c (init_est_cmds): Update.
4080 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4081 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4082 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4083 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4084 (fetch_register, supply_vrregset, supply_vrregset)
4085 (fetch_spe_registers): Update.
4086 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4087 * monitor.c (monitor_supply_register): Update.
4088 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4089 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4090 (mipsnbsd_supply_fpreg): Update.
4091 * mips-nat.c (fetch_inferior_registers)
4092 (fetch_core_registers): Update.
4093 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4094 (supply_fpregset, mips64_supply_gregset)
4095 (mips64_supply_fpregset): Update.
4096 * m68klinux-nat.c (fetch_register, supply_gregset)
4097 (supply_fpregset): Update.
4098 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4099 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4100 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4101 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4102 * infptrace.c (fetch_register): Update.
4103 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4104 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4105 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4106 (gnu_fetch_registers, gnu_store_registers): Update.
4107 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4108 * i386-linux-nat.c (fetch_register, supply_gregset)
4109 (dummy_sse_values): Update.
4110 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4111 * hppah-nat.c (fetch_register): Update.
4112 * hppa-linux-nat.c (fetch_register, supply_gregset)
4113 (supply_fpregset): Update.
4114 * go32-nat.c (fetch_register): Update.
4115 * dve3900-rom.c (fetch_bitmapped_register)
4116 (_initialize_r3900_rom): Update.
4117 * cris-tdep.c (supply_gregset): Update.
4118 * abug-rom.c (init_abug_cmds): Update.
4119 * core-aout.c (fetch_core_registers): Update.
4120 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4121 (fetch_register, fetch_fp_register): Update.
4122 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4123 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4124 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4125 * alphanbsd-tdep.c (fetch_core_registers): Update.
4126 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4127 * alpha-nat.c (fetch_osf_core_registers)
4128 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4129 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4130 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4131
73cc75f3
AC
41322004-07-21 Andrew Cagney <cagney@gnu.org>
4133
4134 * PROBLEMS: Mention breakpoints/1702.
4135 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4136 that is known to work.
4137
a53c66de
AC
41382004-07-21 Andrew Cagney <cagney@gnu.org>
4139
4140 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4141 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4142 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4143 (handle_inferior_event): Wrap call to deprecated
4144 IGNORE_HELPER_CALL in #ifdef.
4145 * config/mips/tm-nbsd.h: Update.
4146
708ff411
JB
41472004-07-20 Jim Blandy <jimb@redhat.com>
4148
412b3060
JB
4149 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4150 bfd_mach_ppc has no segment registers.
4151
13ac140c
JB
4152 Include PowerPC SPR numbers for special-purpose registers.
4153 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4154 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4155 new member in initializer.
4156 (S, S4, SN4, S64): New macros for defining special-purpose
4157 registers.
4158 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4159 registers_403, registers_403GC, registers_505, registers_860,
4160 registers_601, registers_602, registers_603, registers_604,
4161 registers_750, registers_e500): Use them.
4162
708ff411
JB
4163 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4164 replace references with expression used to initialize variable.
4165
1f602b35
AC
41662004-07-20 Andrew Cagney <cagney@gnu.org>
4167
4168 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4169 read_memory_nobpt.
4170 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4171 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4172 (s390_sigtramp_frame_sniffer): Update.
4173 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4174 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4175 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4176 (mips32_fetch_instruction): Update.
4177 * mcore-tdep.c (get_insn): Update.
4178 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4179 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4180 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4181 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4182 (i386_linux_rt_sigtramp_start): Update.
4183 * i386-linux-nat.c (child_resume): Update.
4184 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4185 * hppa-linux-tdep.c (insns_match_pattern): Update.
4186 * gdbcore.h: Update.
4187 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4188 * frame.c (safe_frame_unwind_memory): Update.
4189 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4190 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4191 * alpha-tdep.c (alpha_read_insn): Update.
4192
2cd8546d
AC
41932004-07-20 Andrew Cagney <cagney@gnu.org>
4194
4195 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4196 containing both bytes and mask. Add "frame_type".
4197 * tramp-frame.c (tramp_frame_start): Update.
4198 (tramp_frame_prepend_unwinder): Update.
4199 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4200 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4201 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4202 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4203
f928dd62
EZ
42042004-07-19 Eli Zaretskii <eliz@gnu.org>
4205
4206 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4207 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4208 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4209 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4210
d5c560f7
AC
42112004-07-17 Andrew Cagney <cagney@gnu.org>
4212
860660cb
AC
4213 * NEWS, PROBLEMS: Update for 6.2.
4214
8c266f54
AC
4215 * README: Update to 6.2.
4216
a552edd9
AC
4217 * utils.c (xvasprintf): Call xstrvprintf.
4218
c4a172b5
AC
4219 * parse.c: Update copyright.
4220 (null_post_parser): Eliminate ARGSUSED.
4221
da745b36
AC
4222 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4223 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4224 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4225
9cbc6ef0
AC
4226 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4227 * ppc-linux-nat.c: Use "Linux kernel".
4228 * hppa-linux-tdep.c: Use GNU/Linux.
4229 * hppa-linux-nat.c: Use GNU/Linux.
4230 * dwarfread.c: Add [sic] to use of Linux.
4231
1b89295f
AC
4232 * hppa-linux-nat.c: Do not include <string.h>.
4233 (supply_fpregset): Remove "register" attribute.
4234
d5c560f7
AC
4235 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4236
7ddd7709
MK
42372004-07-17 Mark Kettenis <kettenis@gnu.org>
4238
b1d19a62
MK
4239 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4240 * configure, config.in: Regenerated.
4241
7ddd7709
MK
4242 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4243 "bsd-kvm.h".
4244 (vaxbsd_supply_pcb): New function.
4245 (_initialize_vaxbsd_nat): New prototype and function.
4246 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4247 solib-sunos.o.
4248 (LOADLIBES): New variable.
4249 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4250 (LOADLIBES): New variable.
4251 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4252 (LOADLIBES): New variable.
4253 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4254
2c07db7a
AC
42552004-07-16 Andrew Cagney <cagney@gnu.org>
4256
4257 * defs.h (event_loop_p): Replace variable declaration with macro,
4258 always 1.
4259 * main.c (captured_main): Delete options "-async" and "-noasync".
4260 (event_loop_p): Delete variable.
4261 * NEWS: Mention that "-async" and "-noasync" were removed.
4262
717eb1cf
AC
42632004-07-16 Andrew Cagney <cagney@gnu.org>
4264
4265 * remote-m32r-sdi.c: Re-indent.
4266
c101bc14
JB
42672004-07-16 Jim Blandy <jimb@redhat.com>
4268
5109a438
JB
4269 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4270 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4271 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4272 missing MPC823 SPRs.
4273 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4274 incorrect. (This was corrected in GDB's register name tables on
4275 2004-07-14.)
4276
c101bc14
JB
4277 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4278 should be "esasrr" ("ESA Save and Restore Register").
4279
7ce450bd
AC
42802004-07-16 Andrew Cagney <cagney@gnu.org>
4281
4282 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4283 calls, no longer applicable. Update comments and rename parameter
4284 "step_frame" to "return_frame".
4285
ca73dd9d
AC
42862004-07-16 Andrew Cagney <cagney@gnu.org>
4287
4288 * frame.c (fprint_field): New function.
4289 (fprint_frame_id): Use fprint_field.
4290
31941f6d
JB
42912004-07-15 Joel Brobecker <brobecker@gnat.com>
4292
4293 * ada-lang.c (ada_language_defn): Remove commented out code.
4294
f86a7158
JB
42952004-07-15 Jim Blandy <jimb@redhat.com>
4296
4297 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4298 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4299
c24791ec
JB
43002004-07-14 Jim Blandy <jimb@redhat.com>
4301
29bb1356
JB
4302 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4303
cc98b5cc
JB
4304 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4305
8f088af7
JB
4306 * ppc-tdep.h (ppc_num_srs): New enum constant.
4307
0ea0ec5f
JB
4308 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4309 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4310 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4311 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4312 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4313 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4314 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4315 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4316 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4317 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4318 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4319 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4320 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4321 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4322 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4323 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4324 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4325 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4326 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4327 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4328 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4329 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4330 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4331 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4332 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4333 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4334 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4335 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4336 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4337 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4338 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4339 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4340 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4341 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4342 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4343 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4344 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4345 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4346 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4347 special-purpose register numbers.
4348
c24791ec
JB
4349 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4350 manual mentions 'md_twb', but many mention 'm_twb', and at that
4351 point in the register list.)
4352
d833db3b
AC
43532004-07-14 Andrew Cagney <cagney@gnu.org>
4354
4355 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4356 instead of "internal-error".
4357
080228b2
JB
43582004-07-10 Joel Brobecker <brobecker@gnat.com>
4359
4360 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4361 that was inserted inside a comment.
4362
c268433a
RC
43632004-07-10 Randolph Chung <tausq@debian.org>
4364
4365 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4366 function.
4367 (hppa_hpux_push_dummy_code): New function.
4368 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4369 Set find_global_pointer method.
4370
71009278
MK
43712004-07-10 Mark Kettenis <kettenis@gnu.org>
4372
4373 * NEWS: Mention BSD libkvm interface.
4374
b2fa5097
MS
43752004-07-10 Michael Snyder <msnyder@redhat.com>
4376
4377 * symfile.c (generic_load): Comment typo.
4378 * stack.c (get_selected_block): Ditto.
4379 * regcache.c (regcache_cooked_read): Ditto.
4380 * monitor.c (monitor_debug): Ditto.
4381 * mips-tdep.c (mips_read_pc): Ditto.
4382 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4383 * gdb_mbuild.sh: Ditto.
4384 * gdbarch.sh: Ditto.
4385 * gdbarch.h: Ditto.
4386
c3e5cd34
PH
43872004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4388
8a2225b2
PH
4389 * ada-tasks.c: Remove file.
4390
c3e5cd34
PH
4391 Remove ARI problems:
4392
4393 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4394 beginning of line.
4395
4396 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4397 Add comment.
4398 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4399 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4400 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4401 (UMIN_OF_SIZE): Remove.
4402 (max_of_type): New function to replace orphan macro in gdbtypes.h
4403 (min_of_type): Ditto.
4404 (discrete_type_high_bound): Use max_of_type.
4405 (discrete_type_low_bound): Use min_of_type.
4406 (possible_user_operator_p): Move operator to beginning of line.
4407 (ada_is_variant_part): Ditto.
4408 (ensure_lval): Rewrite to avoid deprecated operations.
4409 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4410 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4411 (ada_enum_name): Remove assignments in 'if' statements.
4412 (build_ada_types): Add gdbarch parameter.
4413 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4414 with gdbarch_data_register_post_init.
4415 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4416 add_show_from_set.
4417
4418 * ada-valprint.c (inspect_it): Remove declaration.
4419 (repeat_count_threshold): Remove declaration.
4420 (ada_print_floating): Remove assignments in 'if' statements.
4421 (print_str): Move operator to beginning of line.
4422
61ce229a
JB
44232004-07-08 Jim Blandy <jimb@redhat.com>
4424
4425 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4426
09bcec80
BR
44272004-07-08 Bob Rossi <bob@brasko.net>
4428
4429 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4430
31c27f77
JJ
44312004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4432
4433 * language.h (struct_language_defn): Add new function pointer:
4434 la_class_name_from_physname. Also add new prototype for
4435 language_class_name_from_physname.
4436 * language.c (language_class_name_from_physname): New function.
4437 (unk_lang_class_name): Ditto.
4438 (unknown_language_defn, auto_language_defn): Change
4439 to add unk_lang_class_name function pointer for
4440 la_class_name_from_physname.
4441 (local_language_defn): Ditto.
4442 * dwarf2read.c (guess_structure_name): Change to call
4443 language_class_name_from_physname.
4444 (determine_class_name): Ditto.
4445 * cp-support.c (class_name_from_physname): Renamed.
4446 (cp_class_name_from_physname): New name of function.
4447 * cp-support.h: Ditto.
4448 * c-lang.c (c_language_defn): Change to add NULL
4449 for class_name_from_physname function pointer.
4450 (cplus_language_defn): Change to add cp_class_name_from_physname.
4451 * jv-lang.c (java_class_name_physname): New function.
4452 (java_find_last_component): New static routine.
4453 (java_language_defn): Add java_class_name_from_physname pointer.
4454 * ada-lang.c (ada_language_defn): Change to add NULL
4455 for class_name_from_physname function pointer.
4456 * f-lang.c (f_language_defn): Ditto.
4457 * m2-lang.c (m2_language_defn): Ditto.
4458 * objc-lang.c (objc_language_defn): Ditto.
4459 * p-lang.c (pascal_language_defn): Ditto.
4460 * scm-lang.c (scm_language_defn): Ditto.
4461
ee28ca0f
AC
44622004-07-06 Andrew Cagney <cagney@gnu.org>
4463
4464 Patch from Bart Robinson.
4465 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4466 (O_LARGEFILE): Define to 0, if not defined.
4467
fdb1bf9d
MK
44682004-07-03 Mark Kettenis <kettenis@gnu.org>
4469
cb162ff6
MK
4470 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4471 <machine/pcb.h> and "bsd-kvm.h".
4472 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4473 (m68kbsd_supply_pcb): New function.
4474 (_initialize_m68kbsd_nat): New prototype and function.
4475 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4476 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4477 (LOADLIBES): New variable.
4478 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4479 (LOADLIBES): New variable.
4480
fdb1bf9d
MK
4481 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4482
963c4174
MK
44832004-07-03 Mark Kettenis <kettenis@gnu.org>
4484
4485 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4486 <sys/proc.h>.
4487 (bsd_kvm_cmdlist): New variable.
4488 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4489 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4490 command and "kvm proc" command.
4491 * Makefile.in (bsd-kvm.o): Update dependencies.
4492
533f1d8f
MK
44932004-07-02 Mark Kettenis <kettenis@gnu.org>
4494
4495 * osabi.c: Update copyright year.
4496 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4497 notes if EI_OSABI is set to ELFOSABI_HPUX.
4498
6780dcde
MS
44992004-07-01 Michael Snyder <msnyder@redhat.com>
4500
4501 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4502 that seems to have gotten whacked out of line.
4503
67bebe79
MK
45042004-07-01 Mark Kettenis <kettenis@gnu.org>
4505
4506 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4507 code.
4508
0b5d8877
PH
45092004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4510
4511 * ada-lang.c (decode_packed_array): Minor change to comment.
4512 (ada_value_slice_ptr): New function.
4513 (ada_value_slice): New function.
4514 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4515 test. Don't know why it is there.
4516 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4517 to avoid dereferencing huge arrays from which one is slicing.
4518 (empty_array): Correct to return an array rather than
4519 a subrange value.
4520 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4521 on empty arrays (let'em use 'FIRST instead).
4522
19c1ef65
PH
45232004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4524
4525 Address complaints from gdb_ari.sh:
4526
4527 * ada-exp.y: Include gdb_string.h rather than string.h.
4528 (convert_char_literal): Reformat declaration.
4529 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4530 * ada-lex.l: Change use of free to xfree (the macro would do so
4531 anyway, but this is harmless).
4532 Include gdb_string.h rather than string.h.
4533 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4534
4535 * ada-lang.c (parse): Remove K&Rism in parameter list.
4536 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4537
d81cbc94
MK
45382004-06-30 Mark Kettenis <kettenis@gnu.org>
4539
4540 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4541 dead code.
4542
07681759
MK
45432004-06-30 Mark Kettenis <kettenis@gnu.org>
4544
4545 * alphabsd-nat.c: Update copyright year.
4546 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4547
f7948b5f
JB
45482004-06-29 Joel Brobecker <brobecker@gnat.com>
4549
6e0cdd28 4550 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4551 (i386_cygwin_in_solib_call_trampoline): New function.
4552 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4553 and skip_trampoline_code gdbarch methods.
4554
8f113c9a
JB
45552004-06-29 Jim Blandy <jimb@redhat.com>
4556
4557 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4558 name actually used in the dependency lists.
4559
97dc871c
RC
45602004-06-29 Randolph Chung <tausq@debian.org>
4561
4562 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4563
47216e51
CV
45642004-06-29 Corinna Vinschen <vinschen@redhat.com>
4565
4566 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4567 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4568 functionality.
4569
e623b504
AC
45702004-06-28 Andrew Cagney <cagney@gnu.org>
4571
4572 * defs.h (xstrvprintf): Declare.
4573 * utils.c (xstrvprintf): New function.
4574 (internal_vproblem, xstrprintf, xasprintf)
4575 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4576 * serial.c (serial_printf): Ditto.
4577 * complaints.c (vcomplaint): Ditto.
4578
79acc9b3
CV
45792004-06-29 Corinna Vinschen <vinschen@redhat.com>
4580
4581 * infcmd.c (attach_command): Move call to target_terminal_inferior
4582 behind loading symbol table.
4583
1daf35d9
AC
45842004-06-28 Andrew Cagney <cagney@gnu.org>
4585
4586 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4587 change - add back extern deprecated_ui_loop_hook declaration.
4588
b435e160
AC
45892004-06-28 Andrew Cagney <cagney@gnu.org>
4590
4591 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4592 xstrprintf.
4593 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4594 (c_value_of_variable): Ditto.
4595 * utils.c (internal_vproblem): Ditto.
4596 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4597 * remote.c (add_packet_config_cmd): Ditto.
4598 * remote-rdp.c (rdp_set_command_line): Ditto.
4599 * regcache.c (regcache_dump): Ditto.
4600 * frv-tdep.c (new_variant, new_variant): Ditto.
4601 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4602 (fbsd_find_memory_regions): Ditto.
4603 * breakpoint.c (create_thread_event_breakpoint)
4604 (create_breakpoints): Ditto.
4605 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4606 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4607
06d5cf63
JB
46082004-06-28 Joel Brobecker <brobecker@gnat.com>
4609
4610 * ada-lang.c: Re-indent file, with some massaging to help indent
4611 a bit when the result is otherwise really too ugly.
4612
35809fad
UW
46132004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4614
4615 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4616 code_addr_p and special_addr_p to 'unsigned int'.
4617
40e20472
MK
46182004-06-27 Mark Kettenis <kettenis@gnu.org>
4619
4620 * i386v4-nat.c: Update copyright year and tweak comment.
4621 (regmap): Remove trailing comma.
4622 (supply_gregset): Rename local variable i to regnum. Call
4623 regcache_raw_supply instead of supply_register.
4624 (fill_gregset): Rename argument regno to regnum. Call
4625 regcache_raw_collect instead of regcache_collect.
4626
12b0b6de
UW
46272004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4628
4629 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4630 and special_addr_p.
4631 (frame_id_build, frame_id_build_special): Update comments.
4632 (frame_id_build_wild): New prototype.
4633 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4634 struct frame_id fields.
4635 (frame_id_build_wild): New function.
4636 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4637
47b42a3e
MK
46382004-06-27 Mark Kettenis <kettenis@gnu.org>
4639
4640 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4641 hppabsd-tdep.c.
4642
1265e4aa
JB
46432004-06-27 Joel Brobecker <brobecker@gnat.com>
4644
4645 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4646
76a01679
JB
46472004-06-27 Joel Brobecker <brobecker@gnat.com>
4648
4649 * ada-lang.c: Re-indent file.
4650
7aca490a
JB
46512004-06-27 Joel Brobecker <brobecker@gnat.com>
4652
4653 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4654 (no_symtab_msg): Likewise.
4655
5e987968
AS
46562004-06-27 Andreas Schwab <schwab@suse.de>
4657
4658 * source.c: Fix whitespace.
4659
315c4276
MK
46602004-06-27 Mark Kettenis <kettenis@gnu.org>
4661
d15be926
MK
4662 * configure.in: Include <sys/param.h> for td_pcb test.
4663 * configure: Regenerated.
4664
9062529b
MK
4665 * i386nbsd-nat.c: New file.
4666 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4667 i386obsd-nat.c and i386obsd-tdep.c.
4668 (i386nbsd-nat.o): New dependency.
4669 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4670 bsd-kvm.o.
4671 (LOADLIBES): New variable.
4672 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4673 bsd-kvm.o.
4674 (LOADLIBES): New variable.
4675
8010310e
MK
4676 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4677 (LOADLIBES): New variable.
4678
efe1d7b9
MK
4679 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4680 fetching from BSD_KVM_PADDR. Correctly lookup address for
4681 "_thread0".
4682
315c4276
MK
4683 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4684 "bsd-kvm.h".
4685 (amd64fbsd_supply_pcb): New funcion.
4686 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4687
399cfac6
DL
46882004-06-27 <david@streamline-computing.com>
4689
4690 Partial fix for PR cli/1056.
4691 * valarith.c: Check for zero in division and remainder
4692 evaluation.
4693
6235f9c8
MK
46942004-06-27 Mark Kettenis <kettenis@gnu.org>
4695
4696 * i387-tdep.c: Remove excessive whitespace.
4697
2726dafc
AC
46982004-06-26 Andrew Cagney <cagney@gnu.org>
4699
4700 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4701 * gdb-events.h, gdb-events.c: Re-generate.
4702 * tui/tui-hooks.c (tui_install_hooks): Update.
4703 (tui_remove_hooks): Update.
4704 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4705
0e56aeaf
MK
47062004-06-26 Mark Kettenis <kettenis@gnu.org>
4707
cb461069
MK
4708 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4709 (gregset_t, fpregset_t): Remove typedefs.
4710 (REG_OFFSET): Rename argument.
4711 (amd64bsd_r_reg_offset): Rename from reg_offset.
4712 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4713 Remove functions.
4714 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4715 of reg_offset.
4716 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4717
ecba89de
MK
4718 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4719
4cd80476
MK
4720 * vax-tdep.c: Tweak comment.
4721
0e56aeaf
MK
4722 Add OpenBSD/hppa support.
4723 * NEWS (New native configurations): Mention OpenBSD/hppa.
4724 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4725 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4726 files.
4727 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4728 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4729 * configure.host: Add hppa*-*-openbsd*.
4730 * configure.tgt: Add hppa*-*-openbsd*.
4731
98bbd631
AC
47322004-06-25 Andrew Cagney <cagney@gnu.org>
4733
4734 * defs.h (deprecated_ui_loop_hook): Deprecated.
4735 * wince.c (child_wait): Update.
4736 * win32-nat.c (child_wait): Update.
4737 * v850ice.c (v850ice_wait): Update.
4738 * top.c (deprecated_ui_loop_hook): Update.
4739 * serial.h: Update.
4740 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4741 (do_unix_readchar): Update.
4742 * ser-tcp.c (net_open): Update.
4743 * remote-sim.c (gdb_os_poll_quit): Update.
4744 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4745
769d7dc4
AC
47462004-06-24 Andrew Cagney <cagney@gnu.org>
4747
4748 * defs.h (deprecated_pre_add_symbol_hook)
4749 (deprecated_post_add_symbol_hook): Deprecated.
4750 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4751 (symbol_file_add_with_addrs_or_offsets): Update references.
4752
11c949aa
AC
47532004-06-24 Andrew Cagney <cagney@gnu.org>
4754
4755 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4756 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4757 * wince.c (ui_loop_hook): Delete extern declaration.
4758 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4759 * v850ice.c (ui_loop_hook): Delete extern declaration..
4760 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4761 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4762 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4763 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4764 ui_loop_hook declaration.
4765
eedc19af
AC
47662004-06-24 Andrew Cagney <cagney@gnu.org>
4767
4768 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4769 entry_func_highpc fields.
4770 * objfiles.c (init_entry_point_info): Do not clear
4771 entry_func_lowpc and entry_func_highpc.
4772 (objfile_relocate): Do not relocate entry_func_lowpc and
4773 entry_func_highpc.
4774 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4775 entry_func_highpc.
4776 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4777 entry_func_highpc.
4778 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4779 entry_func_lowpc and entry_func_highpc with call to
4780 inside_entry_func.
4781
d47079be
MK
47822004-06-24 Mark Kettenis <kettenis@gnu.org>
4783
4784 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4785 quad-precision floating point arguments in registers.
4786
2107e348
MK
47872004-06-24 Mark Kettenis <kettenis@gnu.org>
4788
4789 From Michael Mueller <m.mueller99@kay-mueller.de>:
4790 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4791 account.
4792
46587c42
JJ
47932004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4794
4795 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4796 to -1.
4797 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4798 untriggered watchpoints to a separate if clause. Update function
4799 comment regarding STOPPED_BY_WATCHPOINT argument.
4800
226f5cf4
JB
48012004-06-22 Jim Blandy <jimb@redhat.com>
4802
4803 * gdbarch.sh: Doc fix.
4804
f10683bb
MH
48052004-06-21 Martin Hunt <hunt@redhat.com>
4806 Kevin Buettner <kevinb@redhat.com>
4807
4808 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4809 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4810 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4811 to set_gdbarch_sp_regnum(). Use cooked register number.
4812 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4813
412d5987
AC
48142004-06-21 Andrew Cagney <cagney@gnu.org>
4815
4816 * gdbarch.sh: When the macro field is empty, do not generate a
4817 macro definition. When the macro field is "=", generate the macro
4818 name from the upper-case function name.
4819 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4820 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4821 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4822 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4823 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4824 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4825 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4826 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4827 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4828 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4829 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4830 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4831 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4832 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4833 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4834 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4835 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4836 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4837 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4838 (DEPRECATED_USE_STRUCT_CONVENTION)
4839 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4840 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4841 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4842 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4843 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4844 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4845 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4846 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4847 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4848 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4849 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4850 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4851 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4852 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4853 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4854 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4855 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4856 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4857
68908a3e
AC
48582004-06-21 Andrew Cagney <cagney@gnu.org>
4859
48f7351b
AC
4860 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4861 macro name, and the function rather than macro value. Only wrap
4862 macro print statements in #ifdef. Move format logic to where it
4863 is needed.
4864 * gdbarch.c: Re-generate.
4865
283354d8
AC
4866 * gdbarch.sh (read): Delete "print_p" and "description", add
4867 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4868 Delete references to print_p.
4869 (TARGET_ARCHITECTURE): Delete print predicate.
4870 * gdbarch.c: Re-generate.
4871
68908a3e
AC
4872 * gdbarch.sh: Check that multi-arch methods do not provide a
4873 macro.
4874 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4875 (print_registers_info, print_float_info, print_vector_info)
4876 (adjust_breakpoint_address, remote_translate_xfer_address)
4877 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4878 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4879 name from the multi-arch definition.
4880
a2428dbe
AC
48812004-06-20 Andrew Cagney <cagney@gnu.org>
4882
4883 * gdbarch.sh: Sort by the function, instead of macro name.
4884 * gdbarch.c: Re-generate.
4885
750eb019
AC
48862004-06-20 Andrew Cagney <cagney@gnu.org>
4887
66d659b1
AC
4888 * gdbarch.sh: Use the function, instead of macro name in
4889 errors and the log file.
4890 (return_value): Remove stray ":" in spec.
4891
750eb019
AC
4892 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4893 * gdbarch.h, gdbarch.c: Re-generate.
4894 * Makefile.in (arch-utils.o): Update dependencies.
4895 * values.c (using_struct_return): Move code calling
4896 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4897 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4898 to legacy_return_value, simplify.
4899 * infcmd.c (print_return_value): Move code calling
4900 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4901 to legacy_return_value, simplify.
4902 * infcall.c (call_function_by_hand): Move code calling
4903 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4904 * arch-utils.c: Update copyright. Include "gdbcore.h".
4905 (legacy_return_value): New function.
4906 * arch-utils.h: Update copyright.
4907 (legacy_return_value): Declare.
4908
b5622e8d
AC
49092004-06-20 Andrew Cagney <cagney@gnu.org>
4910
4911 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4912 * gdbarch.h, gdbarch.c: Re-generate.
4913 * values.c (using_struct_return): Update call.
4914 * mcore-tdep.c: Update comment.
4915 * infcall.c (call_function_by_hand): Update comment.
4916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4917 * arch-utils.h (always_use_struct_convention): Update.
4918 * v850-tdep.c (v850_gdbarch_init): Update.
4919 * sh64-tdep.c (sh64_gdbarch_init): Update.
4920 * sh-tdep.c (sh_gdbarch_init): Update.
4921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4922 * mips-tdep.c (mips_gdbarch_init): Update.
4923 * mcore-tdep.c (mcore_gdbarch_init): Update.
4924 * m32r-tdep.c (m32r_gdbarch_init): Update.
4925 * ia64-tdep.c (ia64_gdbarch_init): Update.
4926 * h8300-tdep.c (h8300_gdbarch_init): Update.
4927 * frv-tdep.c (frv_gdbarch_init): Update.
4928 * cris-tdep.c (cris_gdbarch_init): Update.
4929 * arm-tdep.c (arm_gdbarch_init): Update.
4930 * alpha-tdep.c (alpha_gdbarch_init): Update.
4931
5191de37
MC
49322004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4933
4934 * PROBLEMS: Add more specific information, and a work-around,
4935 for PR gdb/1458.
4936
782263ab
AC
49372004-06-18 Andrew Cagney <cagney@gnu.org>
4938
4939 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4940 * gdbarch.h, gdbarch.c: Re-generate.
4941 * ada-lang.c (ada_finish_decode_line_1): Update.
4942 * infrun.c (handle_inferior_event): Update.
4943 * infcall.c (find_function_addr): Update.
4944 * linespec.c (minsym_found): Update.
4945 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4946 Update.
4947 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4948 * cli/cli-cmds.c (disassemble_command): Update.
4949 * vax-tdep.c (vax_gdbarch_init): Update.
4950
2f305df1
MK
49512004-06-18 Mark Kettenis <kettenis@gnu.org>
4952
4953 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4954
e5fe55f7
AC
49552004-06-17 Andrew Cagney <cagney@gnu.org>
4956
4957 GDB 6.1.1 released from the GDB 6.1 branch.
4958 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4959 * PROBLEMS: Ditto.
4960
473b7be6
DJ
49612004-06-16 Daniel Jacobowitz <dan@debian.org>
4962
4963 PR gdb/1658
4964 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4965 operation as a uleb128. Found by Michael Coulter.
4966
96d887e8
PH
49672004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4968
4969 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4970 make it non-static.
4971 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4972 to ada-lang.h; this is needed to be able to implement the kill command
4973 in multi-task mode.
4974 (task_ptid): Ditto.
4975 (task_entry): Ditto.
4976 (task_list): Ditto.
4977 (ada_build_task_list): Ditto.
4978
4979 * ada-lang.c: Conditionalize routines and data structures related
4980 to breakpoints, exceptions, completion, and symbol caching on
4981 GNAT_GDB, since these are not yet used in the submitted public sources.
4982 (ada_main_name): Editorial: Move definition out of exception-related
4983 code.
4984
31eef181
AC
49852004-06-15 Andrew Cagney <cagney@gnu.org>
4986
4987 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4988 deprecated_pc_in_call_dummy.
4989
2c500098
AM
49902004-06-15 Alan Modra <amodra@bigpond.net.au>
4991
4992 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4993 bfd_get_section_size_before_reloc or _raw_size.
4994 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4995 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4996 (dwarf2_read_section): Likewise.
4997 * elfread.c (elf_locate_sections): Likewise.
4998 * gcore.c (derive_heap_segment): Likewise.
4999 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5000 * remote-e7000.c (e7000_load): Likewise.
5001 * remote-m32r-sdi.c (m32r_load): Likewise.
5002 * remote-mips.c (mips_load_srec): Likewise.
5003 (pmon_load_fast): Likewise.
5004 * remote.c (compare_sections_command): Likewise.
5005 * symfile.c (add_section_size_callback): Likewise.
5006 (load_section_callback): Likewise.
5007 (pc_in_unmapped_range): Likewise.
5008 (pc_in_mapped_range): Likewise.
5009 (sections_overlap): Likewise.
5010 (list_overlays_command): Likewise.
5011 (simple_overlay_update_1): Likewise.
5012 (simple_overlay_update): Likewise.
5013 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5014 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5015
90f943f1
RC
50162004-06-14 Randolph Chung <tausq@debian.org>
5017
5018 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5019 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5020 static.
5021 (hppa_hpux_inferior_created): New function.
5022 (hppa_hpux_init_abi): Register observer.
5023 * symfile.c (hp_cxx_exception_support_initialized)
5024 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5025 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5026
700c15aa
RC
50272004-06-14 Randolph Chung <tausq@debian.org>
5028
3973a7d3
AC
5029 * MAINTAINERS (Write After Approval): Alphabetize my entry
5030 correctly.
700c15aa 5031
cea4838c
AC
50322004-06-14 Andrew Cagney <cagney@gnu.org>
5033
5034 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5035 testsuite maintainer.
5036
97092415
AC
50372004-06-13 Andrew Cagney <cagney@gnu.org>
5038
e8c3165b
AC
5039 * infcmd.c (print_return_value): Fix logic, allow
5040 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5041
bceabdd8
AC
5042 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5043 defining any macros.
5044 * gdbarch.h: Re-generate.
5045
57010b1c
AC
5046 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5047 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5048 * gdbarch.h: Re-generate.
5049
bc87dfa0
AC
5050 * values.c (generic_use_struct_convention): Don't check gcc_p.
5051
15ac804d
AC
5052 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5053 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5054 * gdbarch.h, gdbarch.c: Regenerate.
5055 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5056 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5058 deprecated_max_register_raw_size and
5059 deprecated_max_register_virtual_size.
5060 * v850-tdep.c (v850_gdbarch_init): Ditto.
5061 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5062 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5063 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5064 * cris-tdep.c (cris_gdbarch_init): Ditto.
5065
97092415
AC
5066 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5067 * gdbarch.h, gdbarch.c: Re-generate.
5068 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5069 (m68hc11_use_struct_convention): Delete function.
5070 (m68hc11_extract_struct_value_address): Delete function.
5071 (m68hc11_return_value): New function.
5072 (m68hc11_gdbarch_init): Instead of store_return_value,
5073 extract_return_value, return_value_on_stack,
5074 deprecated_extract_struct_value_address and use_struct_convention,
5075 set return_value.
5076 * values.c (using_struct_return): Do not call
5077 RETURN_VALUE_ON_STACK.
5078 * arch-utils.h (generic_return_value_on_stack_not): Delete
5079 declaration.
5080 * arch-utils.c (generic_return_value_on_stack_not): Delete
5081 function.
5082
44e5158b
AC
50832004-06-12 Andrew Cagney <cagney@gnu.org>
5084
5085 * values.c (register_value_being_returned): Delete function.
5086 * infcmd.c (legacy_return_value): Delete function.
5087 * infcall.c (call_function_by_hand): Inline
5088 "register_value_being_returned", simplify.
5089 * values.c (using_struct_return): Update comment, refer to
5090 print_return_value instead of register_value_being_returned.
5091 * infcmd.c (print_return_value): Inline calls to
5092 register_value_being_returned and legacy_return_value. Simplify.
5093
b887c273
RC
50942004-06-11 Randolph Chung <tausq@debian.org>
5095
5096 * somread.c (som_symtab_read): Exclude gcc local symbols.
5097
1b2bfbb9
RC
50982004-06-11 Randolph Chung <tausq@debian.org>
5099
3973a7d3
AC
5100 * infrun.c (handle_inferior_event): Handle the case when a
5101 trampoline ends up in the runtime resolver, and if the trampoline
5102 has no name. Rearrange the code so that all the trampoline
5103 processing happens before other step-out-of-range handling.
1b2bfbb9 5104
a9d61c86
MH
51052004-06-11 Martin Hunt <hunt@redhat.com>
5106
5107 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5108 has no fpu.
5109
2c87cf5a
AC
51102004-06-10 Andrew Cagney <cagney@gnu.org>
5111
5112 * blockframe.c (legacy_inside_entry_func): Delete.
5113 (legacy_frame_chain_valid): Inline call to
5114 legacy_inside_entry_func, simplify.
5115
0b67b468 51162004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5117
5118 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5119 * dwarf2read.c (partial_die_info): Add dirname field.
5120 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5121 (read_partial_die): Save away DW_AT_comp_dir.
5122 * defs.h (symtab_to_filename): Removed.
5123 * source.c (find_and_open_source): Added.
57c22c6c 5124 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5125 (symtab_to_filename): Removed.
5126 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5127 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5128 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5129 symtab_to_filename.
5130 * symtab.h (partial_symtab): Add dirname field.
5131 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5132 (mi_cmd_file_list_exec_source_file): Call new function
5133 symtab_to_fullname to find fullname.
57c22c6c 5134 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5135 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5136 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5137
9a1dd1ad
AC
51382004-06-10 Andrew Cagney <cagney@gnu.org>
5139
239ae8c7
AC
5140 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5141 to generic_use_struct_convention, the default value.
5142
fc720350
AC
5143 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5144 of abort.
5145
9a1dd1ad
AC
5146 * ns32k-tdep.c (ns32k_push_arguments): New function.
5147 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5148 * infcall.c (call_function_by_hand): Call error instead of
5149 legacy_push_arguments.
5150 * value.h (legacy_push_arguments): Delete declaration.
5151 * valops.c (legacy_push_arguments): Delete function.
5152 (value_push): Delete function.
5153
fea25152
BF
51542004-06-10 Brian Ford <ford@vss.fsi.com>
5155
5156 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5157 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5158 info.
5159 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5160
30a4a8e0
AC
51612004-06-10 Andrew Cagney <cagney@gnu.org>
5162
5163 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5164 * gdbarch.h, gdbarch.c: Re-generate.
5165 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5166 parameters.
5167 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5168 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5169 deprecated_pc_in_call_dummy instead of
5170 DEPRECATED_PC_IN_CALL_DUMMY.
5171 (arm_skip_prologue): Ditto.
5172 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5173 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5174 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5175 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5176 Ditto.
5177 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5178 (sh64_init_extra_frame_info, sh64_get_saved_register)
5179 (sh64_pop_frame): Ditto.
5180 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5181 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5182 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5183 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5184 (h8300_pop_frame): Ditto.
5185 * blockframe.c (legacy_inside_entry_func)
5186 (legacy_frame_chain_valid): Ditto.
5187 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5188 to deprecated_pc_in_call_dummy.
5189
81cfbe54
AC
51902004-06-09 Andrew Cagney <cagney@gnu.org>
5191
a1f4a1b6
AC
5192 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5193 provide a default value.
5194 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5195 * gdbarch.h, gdbarch.c: Re-generate.
5196 * arch-utils.c (generic_convert_register_p): Rename
5197 legacy_convert_register_p
5198 (legacy_register_to_value, legacy_value_to_register): Delete
5199 functions.
5200 * arch-utils.h (generic_convert_register_p): Rename
5201 legacy_convert_register_p.
5202 (legacy_register_to_value, legacy_value_to_register): Delete
5203 declarations.
5204
9730f241
AC
5205 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5206 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5207 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5208 * gdbarch.h, gdbarch.c: Re-generate.
5209 * infcmd.c (default_print_registers_info): Simplify.
5210 * findvar.c (value_of_register): Simplify.
5211 * mi/mi-main.c (get_register): Simplify.
5212 * arch-utils.c (legacy_convert_register_p): Always return 0.
5213 (legacy_register_to_value, legacy_value_to_register): Always call
5214 internal_error.
5215
8a1bf479
AC
5216 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5217 #ifdef CLEAR_INSN_CACHE code.
5218 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5219 Delete #ifdef CLEAR_DEFERRED_STORES code.
5220
4b38d6f1
AC
5221 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5222
2d62ecc7
AC
5223 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5224 copyright.
5225 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5226
be4f7469
AC
5227 * config/mips/mipsv4.mh: Delete file.
5228
81cfbe54
AC
5229 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5230 unreferenced macro.
5231 (hpread_adjust_stack_address): Delete declaration.
5232
d966f0cb
AC
52332004-06-08 Andrew Cagney <cagney@gnu.org>
5234
5235 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5236 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5237 PTRACE_ATTACH / PTRACE_DETACH available call error.
5238 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5239 * infttrace.c (update_thread_state_after_attach, attach, detach):
5240 Remove #ifdef wrappers.
5241 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5242 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5243 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5244 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5245 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5246 * config/nm-linux.h (ATTACH_DETACH): Delete.
5247 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5248 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5249 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5250 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5251 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5252
d91670b9
CV
52532004-06-08 Corinna Vinschen <vinschen@redhat.com>
5254
5255 * configure.in: Set $configdir to the right OS specific value.
5256 Use value when setting $tcldir and $tkdir.
5257 * configure: Regenerate.
5258
28ba0b33
PB
52592004-06-06 Paul Brook <paul@codesourcery.com>
5260
5261 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5262 records.
5263
f26caa11
PH
52642004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5265
5266 * ada-lang.c (lookup_symbol_in_language): New function to allow
5267 re-use of another language's symbol lookup code. (Placed here
5268 temporarily while Ada support is being integrated into the public
5269 tree).
5270 (restore_language): New auxiliary function for
5271 lookup_symbol_in_language.
5272 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5273 temporarily while Ada support is being integrated into the public
5274 tree).
5275
d560a54b
AO
52762004-06-08 Alexandre Oliva <aoliva@redhat.com>
5277
e75d110c
AO
5278 * Makefile.in (check//%): New.
5279
d560a54b
AO
5280 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5281 (mn10300_store_return_value): Rewrite.
5282 (mn10300_type_align): New.
5283 (mn10300_use_struct_convention): Rewrite.
5284 (mn10300_return_value): New, using all of the above.
5285 (mn10300_pop_frame_regular): Add saved_regs_size.
5286 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5287
a72fbdb7
AO
5288 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5289 regs if PC is on movm.
5290
01904826
JB
52912004-06-07 Jim Blandy <jimb@redhat.com>
5292
5293 Add native Linux support for the PowerPC E500.
5294 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5295 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5296 all architectures except the E500.
5297 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5298 #definitions.
5299 (struct gdb_evrregset_t): New type.
5300 (have_ptrace_getsetevrregs): New variable.
5301 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5302 fetch_spe_registers): New functions.
5303 (fetch_register): Call fetch_spe_register as appropriate.
5304 Assert that we're only passed raw register numbers.
5305 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5306 Don't fetch gprs if they're pseudoregisters.
5307 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5308 store_spe_registers): New functions.
5309 (store_register): Call store_spe_register as appropriate.
5310 Assert that we're only passed raw register numbers.
5311 (store_ppc_registers): Call store_spe_registers as appropriate.
5312 Don't store gprs if they're pseudoregisters.
5313
f90ef764
JJ
53142004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5315
5316 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5317 struct if one exists, even if we are dealing with a zombie thread.
5318
45b75230
AC
53192004-06-07 Andrew Cagney <cagney@gnu.org>
5320
5321 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5322 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5323 Rename PC_REQUIRES_RUN_BEFORE_USE.
5324 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5325 #ifdef.
5326
1658da49
RC
53272004-06-07 Randolph Chung <tausq@debian.org>
5328
5329 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5330 unwinding after sp has been saved to the stack but before the end
5331 of the prologue, and after the fp has been modified but before it has
5332 been saved to the stack.
5333 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5334 Remove superfluous definitions.
5335 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5336
9a727a3c
RC
53372004-06-07 Guy Martin <gmsoft@gentoo.org>
5338
5339 Committed by Randolph Chung.
5340 * hppa-linux-nat.c: Include the correct version of the header file
5341 depending on the kernel version.
5342
9e500012
RC
53432004-06-06 Randolph Chung <tausq@debian.org>
5344
5345 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5346 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5347
3388d7ff
RC
53482004-06-06 Randolph Chung <tausq@debian.org>
5349
5350 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5351 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5352 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5353 * hppa-tdep.c (hppa_symbol_address): New function definition.
5354 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5355
d49771ef
RC
53562004-06-06 Randolph Chung <tausq@debian.org>
5357
5358 * hppa-tdep.h (struct value): Forward declaration.
5359 (gdbarch_tdep): Define tdep find_global_pointer method.
5360 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5361 associated with the function we are trying to call, and write it
5362 to the gp register.
5363 (hppa32_convert_from_funct_ptr_addr): New function.
5364 (hppa_find_global_pointer): New function.
5365 (hppa_gdbarch_init): Set default find_global_pointer method; set
5366 convert_from_func_ptr_addr method.
5367 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5368 (hppa_linux_init_abi): Set find_global_pointer method.
5369 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5370
7d9b040b
RC
53712004-06-06 Randolph Chung <tausq@debian.org>
5372
5373 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5374 to struct value *function.
5375 * gdbarch.c: Regenerate.
5376 * gdbarch.h: Likewise.
5377 * infcall.c (call_function_by_hand): Pass entire function value
5378 to push_dummy_call.
5379
5380 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5381 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5382 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5383 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5384 * arm-tdep.c (arm_push_dummy_call): Likewise.
5385 * avr-tdep.c (avr_push_dummy_call): Likewise.
5386 * cris-tdep.c (cris_push_dummy_call): Likewise.
5387 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5388 * frv-tdep.c (frv_push_dummy_call): Likewise.
5389 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5390 * hppa-tdep.c (hppa32_push_dummy_call)
5391 (hppa64_push_dummy_call): Likewise.
5392 * i386-tdep.c (i386_push_dummy_call): Likewise.
5393 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5394 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5395 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5396 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5397 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5398 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5399 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5400 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5401 (ppc64_sysv_abi_push_dummy_call): Likewise.
5402 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5403 (ppc64_sysv_abi_push_dummy_call): Likewise.
5404 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5405 * s390-tdep.c (s390_push_dummy_call): Likewise.
5406 * sh-tdep.c (sh_push_dummy_call_fpu)
5407 (sh_push_dummy_call_nofpu): Likewise.
5408 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5409 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5410 * vax-tdep.c (vax_push_dummy_call): Likewise.
5411
4a19ea35
JB
54122004-06-04 Jim Blandy <jimb@redhat.com>
5413
8327ccee
JB
5414 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5415 gdbarch argument to register_size.
5416
a3c001ce
JB
5417 * rs6000-tdep.c (rs6000_store_return_value): Use
5418 regcache_cooked_write_part instead of
5419 deprecated_write_register_bytes.
5420 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5421 not gdbarch_deprecated_store_return_value.
5422
4a19ea35
JB
5423 * ppc-linux-nat.c (store_register, fetch_register): Remove
5424 incorrect assertions. Simplify and generalize handling of
5425 transfers whose sizes are not multiples of, or less than, sizeof
5426 (PTRACE_XFER_TYPE).
5427
b9b5d7ea
JJ
54282004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5429
5430 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5431 as a new thread event.
720c7d64 5432 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5433 zombie, return TD_THR_ZOMBIE.
720c7d64 5434 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5435 TD_THR_ZOMBIE, check if the thread is still on the thread list
5436 and return a -1 ptid if not found.
5437 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5438 change the status to TARGET_WAITKIND_SPURIOUS.
5439
c8a3b559
CV
54402004-06-03 Corinna Vinschen <vinschen@redhat.com>
5441
5442 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5443 double values in little endian mode.
5444
20605361
AC
54452004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5446
5447 Committed by Andrew Cagney.
5448 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5449 after last enum constant to avoid error from IBM C
5450 compiler.
5451
bc97b3ba
JB
54522004-06-02 Jim Blandy <jimb@redhat.com>
5453
5454 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5455 to 'message', and make it local to the lone block that uses it.
5456
1da28ab0
JB
5457 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5458
4c4b4cd2
PH
54592004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5460
8a2225b2
PH
5461 * ada-exp.y: Update copyright notice.
5462 Include block.h.
5463
5464 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5465 SPECIAL_VARIABLE and unify the treatment of these cases.
5466
5467 (write_attribute_call0): Remove.
5468 (write_attribute_call1): Remove.
5469 (write_attribute_calln): Remove.
5470 (save_qualifier): Add missing semicolon.
5471
5472 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5473 temporarily disabled to allow compilation with FSF head version.
5474
5475 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5476 use individual operators (OP_*) for all attributes.
5477 (exp syntax): Use write_int.
5478 Handle STRING literals with OP_STRING.
5479 (variable syntax): Add limit parameter to calls to
5480 write_object_renaming.
5481
5482 (temp_parse_space): New definition to hold entities that need
5483 only live until the next call to ada_parse.
5484 (string_to_operator): Rename fields of ada_opname_table entries.
5485
5486 (write_var_from_sym): Record block.
5487 (write_var_from_name): Minor reformatting.
5488 Make sure saved name is properly encoded in the case of multiple
5489 matches, and set its language to Ada.
5490 Update comment.
5491 Modify to indicate unresolved name as symbol in the UNRESOLVED
5492 namespace, allocated in temp_parse_space.
5493 (write_int): New function.
5494
5495 (write_object_renaming): Add max_depth parameter to limit
5496 chains of object renamings.
5497 Handle case where root of renaming expression is itself a renaming.
5498 Use temp_parse_space for temporary name buffer.
5499 Handle renamings to dereferenced pointers (___XEXA suffices).
5500
5501 (ada_parse, yyerror, string_to_operator,
5502 write_var_from_sym, write_var_from_name, write_attribute_call0,
5503 write_attribute_call1, write_attribute_calln,
5504 write_object_renaming): Protoize.
5505
5506 (_initialize_ada_exp): New function.
5507
5508 * ada-lang.c: Update copyright notice.
5509 General terminology change to conform to GNAT compiler usage:
5510 mangle => encode, demangle => decode
5511 Include gdb_obstack.h.
5512 Include gdb_regex.h
5513 Include frame.h
5514 Include hashtab.h
5515 Include completer.h
5516 Include gdb_stat.h
5517 Include block.h
5518 Include infcall.h
5519
5520 (ADA_RETAIN_DOTS): Make sure this is defined.
5521 (TRUNCATION_TOWARDS_ZERO): Define.
5522 (struct string_vector): Define.
5523 (unresolved_names): Remove definition.
5524 (xnew_string_vector): New function.
5525 (string_vector_append): New function.
5526 (extract_string): Make static.
5527 (ada_unqualified_name): New function.
5528 (add_angle_brackets): New function.
5529 (function_name_from_pc): New function.
5530 (place_on_stack): Rename to ensure_lval.
5531
5532 (ensure_lval): Renamed from place_on_stack.
5533 Make identity on lvals.
5534 Update comment.
5535 (is_nonfunction): New interface.
5536 Only symbols in LOC_CONST class can be enumerals.
5537 (fill_in_ada_prototype): Remove; now independent of language.
5538 (add_defn_to_vec): Add obstack and symtab arguments.
5539 Use obstack to hold collected definitions.
5540 (num_defns_collected): New function.
5541 (defns_collected): New function.
5542 (ada_resolve_subexp): Rename to resolve_subexp.
5543 (resolve_subexp): Renamed from ada_resolve_subexp.
5544 (ada_op_name): Return non-const result.
5545 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5546 other purposes.
5547
5548 (to_fixed_array_type): Add declaration.
5549 (coerce_unspec_val_to_type): Remove offset parameter.
5550 (find_sal_from_funcs_and_line): New interface.
5551 (find_line_in_linetable): Ditto.
5552
5553 (all_sals_for_line): Rename to ada_sals_for_line and make
5554 global.
5555 Add new parameter. When set, do not ask the user to choose the
5556 instance, but use the first one found instead.
5557 Use given line number in returned sals.
5558 Fix comment.
5559 Skip the prologue if funfirstline is set.
5560 Correct for memory leak when 0 lines found.
5561
5562 (value_pos_atr): Use pos_atr.
5563 (pos_atr): New function.
5564 (standard_lookup): Add block parameter.
5565
5566 (makeTimeStart): Remove declaration and uses.
5567 (makeTimeStop): Remove declaration and uses.
5568
5569 (ada_completer_word_break_characters): Allow for VMS.
5570 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5571 (raise_sym_name): New constant.
5572 (raise_unhandled_sym_name): New constant.
5573 (raise_assert_sym_name): New constant.
5574 (process_raise_exception_name): New constant.
5575 (longest_exception_template): New constant.
5576 (warning_limit): New variable to limit warnings during expression
5577 evaluation.
5578 (warnings_issued): New variable to keep track of warnings issued.
5579 (known_runtime_file_name_patterns): New constant.
5580 (known_auxiliary_function_name_patterns): New constant.
5581 (symbol_list_obstack): New variable.
5582
5583 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5584 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5585 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5586 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5587 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5588 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5589 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5590 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5591 and strcmp.
5592
5593 (ada_get_field_index): New function.
5594 (lim_warning): New function.
5595 (ada_translate_error_message): New function.
5596 (MAX_OF_SIZE): New function.
5597 (MIN_OF_SIZE): New function.
5598 (UMAX_OF_SIZE): New function.
5599 (UMIN_OF_SIZE): New function.
5600 (discrete_type_high_bound): New function.
5601 (discrete_type_low_bound): New function.
5602 (base_type): New function.
5603 (do_command): Remove.
5604
5605 (ada_update_initial_language): Use language_ada, not language_unknown.
5606 (ada_encode): Renamed from ada_mangle.
5607 Obey ADA_RETAIN_DOTS.
5608 (ada_decode): Renamed from ada_demangle.
5609 Update coding conventions.
5610 (decoded_names_store): New hash table.
5611 (ada_decode_symbol): New function.
5612 (ada_la_decode): New function.
5613
5614 (modify_general_field): Correct computations of offset and bit
5615 position.
5616 (desc_base_type): Handle ref types, too.
5617 (ada_is_direct_array_type): New function.
5618
5619 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5620 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5621 (ada_is_bogus_array_descriptor,ada_type_of_array,
5622 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5623 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5624 ada_is_array_descriptor_type.
5625
5626 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5627 (ada_is_packed_array_type): Handle pointers or
5628 references to packed arrays as well.
5629 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5630 (decode_packed_array_type): Search for the packed array type
5631 symbol in the currently selected block and associated
5632 superblocks too.
5633 Use lookup_symbol again.
5634
5635 (decode_packed_array): Handle pointers and references.
5636 Update call to coerce_unspec_val_to_type.
5637 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5638 (ada_value_primitive_packed_val): Improve comment.
5639
5640 (ada_index_type): Substitute int type for "undefined".
5641 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5642 ada_array_langth, ada_is_string_type): Use renamed
5643 ada_is_simple_array_type.
5644 (empty_array): New function.
5645
5646 (ada_resolve): Rename to resolve.
5647 (resolve): Make static.
5648 Call renamed resolve_subexp.
5649 Update comment.
5650 (ada_resolve_subexp): Rename to resolve_subexp.
5651 (resolve_subexp): Update comment.
5652 Decomment disabled code.
5653 Add LOC_COMPUTED* cases.
5654 Modify to use temporary struct symbols (marked as being in
5655 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5656 OP_UNRESOLVED_VALUE.
5657 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5658 Add OP_STRING case.
5659 Remove OP_ARRAY.
5660 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5661 Use new ada_lookup_symbol_list interface.
5662 Use new ada_resolve_function interface.
5663 Remove OP_TYPE case.
5664
5665 (ada_args_match): Idiot proof against null actuals.
5666 Use intermediate variables to clarify.
5667 (ada_resolve_function): Update comment and interface.
5668 (mangled_ordered_before): Rename to encoded_ordered_before and
5669 update comment.
5670 (sort_choices): Update comment and interface.
5671 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5672 (user_select_syms): New interface.
5673 Use new sort_choices interface.
5674 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5675 (possible_user_operator_p): Idiot-proof against null values.
5676 (ada_simple_renamed_entity): Don't make cleanup; rely on
5677 caller to free result string.
5678 Remove const from return type.
5679 (make_array_descriptor): Rename uses of place_on_stack to
5680 ensure_lval.
5681 Make sure that arrays are on stack.
5682
5683 (HASH_SIZE): Define.
5684 (struct cache_entry): Define.
5685 (cache_space): Define.
5686 (cache): Define.
5687 (clear_ada_sym_cache): New function.
5688 (find_entry): New function.
5689 (lookup_cached_symbol): New function.
5690 (defn_vector_size): Define.
5691 (cache_symbol): New function.
5692 (defn_symbols): Remove.
5693
5694 (standard_lookup): Use lookup_symbol_in_language to get effect of
5695 C lookup.
5696 Cache results.
5697
5698 (symbol_completion_match): New function.
5699 (symbol_completion_add): New function.
5700 (ada_make_symbol_completion_list): New function.
5701
5702 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5703 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5704 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5705 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5706
5707 (ada_lookup_simple_minsym): New function.
5708 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5709
5710 (add_symbols_from_enclosing_procs): New interface.
5711 Conditionalize more helpfully.
5712 Don't bother if program isn't running.
5713 Use new interface to get_frame_block.
5714 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5715
5716 (remove_extra_symbols): New interface.
5717 (xget_renaming_scope): New function.
5718 (is_package_name): New function.
5719 (renaming_is_visible): New function.
5720 (remove_out_of_scope_renamings): New function.
5721
5722 (ada_lookup_symbol_list): New interface.
5723 Properly reinitialize the symbol list obstack.
5724 Don't call add_symbols_from_enclosing_procs if we start from a
5725 static or global block.
5726 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5727 add_symbols_from_enclosing_procs.
5728 Add symtab data to cached entries.
5729 Handle symbols prefixed with
5730 "standard__" specially; strip prefix and don't look in local symbols.
5731 Do not include out of scope renaming symbols in list of
5732 symbols returned.
5733 Add const to block parameter.
5734 Move check for non-local, non-global symbols earlier.
5735 Remove timing stuff.
5736 (ada_lookup_symbol): New interface.
5737 Find symtab as well.
5738 (ada_lookup_symbol_nonlocal): New function.
5739
5740 (is_name_suffix): Enhance suffix detection to recognize
5741 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5742 (is_dot_digits_suffix): New function.
5743 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5744
5745 (ada_add_block_symbols): New interface. Use obstack to return results
5746 in a vector of struct ada_symbol_infos. Add symtab argument.
5747 Use new interface to add_defn_to_vec.
5748 Remove calls to fill_in_ada_prototype.
5749 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5750
5751 (ada_finish_decode_line_1): Add const qualification to local to fix
5752 warning.
5753 Start looking in static block for functions to avoid attempts
5754 to search frame chain for up-level variables.
5755 Adapt to new ada_sals_for_line interface.
5756 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5757 Handle quoting of the function name inside the spec string.
5758 Skip prologue when funfirstline is set and update the
5759 function documentation to that effect.
5760
5761 (debug_print_lines, debug_print_block, debug_print_blocks,
5762 debug_print_symtab): Remove.
5763
5764 (ada_main_name): New function.
5765 (ada_exception_breakpoint_type): New function.
5766 (is_known_support_routine): New function.
5767 (ada_find_printable_frame): Renamed from find_printable_frame and made
5768 global.
5769 Remove level parameter.
5770 Use new interface to select_frame.
5771
5772 (begin_command): Remove.
5773 (ada_adjust_exception_stop): New function.
5774 (ada_print_exception_stop): New function.
5775 (exception_name_from_cond): New function.
5776 (ada_report_exception_break): Replace disabled code with
5777 conditionalization on GNAT_GDB.
5778 Get the exception name from the condition string.
5779 Remove and move functionality into new functions
5780 ada_print_exception_breakpoint_task and
5781 ada_print_exception_breakpoint_nontask.
5782 (error_breakpoint_runtime_sym_not_found): New function.
5783 (is_runtime_sym_defined): New function.
5784 (ada_breakpoint_rewrite): Uncomment suppressed code.
5785 Use symbolic error-message and runtime-symbol names.
5786 Surround runtime symbol names in quotes.
5787 Allow non-specific breakpoints on exceptions and assertions before
5788 program starts.
5789
5790 (ada_is_tagged_type): Add parameter.
5791 (ada_is_tag_type): New function.
5792 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5793 (ada_variant_discrim_type): Ditto.
5794 (value_tag_from_contents_and_address): New function.
5795 (type_from_tag): New function.
5796 (struct tag_args): New structure used to communicate with
5797 ada_tag_name_1.
5798 (ada_tag_name_1): New function.
5799 (ada_tag_name): New function.
5800
5801 (ada_scan_number): Update comment.
5802 (find_struct_field): New function.
5803 (ada_search_struct_field): Make static.
5804 (ada_value_struct_elt): New version that returns references when
5805 given pointers or references to structs.
5806 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5807 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5808 interface.
5809 (ada_value_ind): Use new ada_to_fixed_value interface.
5810 (ada_coerce_ref): Ditto.
5811 (field_offset): Remove.
5812
5813 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5814 (ada_find_renaming_symbol): New function.
5815 (ada_prefer_type): Prefer named types over unnamed ones.
5816 (variant_field_index): New function.
5817 (contains_variant_part): Removed: subsumed by variant_field_index.
5818 (ada_template_to_fixed_record_type): New function, mostly from
5819 template_to_fixed_record_type.
5820 (template_to_fixed_record_type):
5821 Do not scan the type fields beyond the last one; prevents a
5822 potential SEGV.
5823 Handle case where variant field is listed BEFORE discriminant it
5824 depends on.
5825 Fix calculation of record length when bit length is
5826 not evenly divisible by char length.
5827 Move code to ada_template_to_fixed_record_type and call it.
5828
5829 (template_to_static_fixed_type): Revise comment.
5830 Modify to work on ordinary record types as well as templates,
5831 so as to handle fields that use ___XVE or ___XVU encodings.
5832 (to_record_with_fixed_variant_part): Fill out comment.
5833 Initialize C++ stuff in right type.
5834 Allow case where DVAL is null.
5835 Handle case where variant field is not last.
5836 Fix typo concerning record length.
5837 (to_fixed_record_type): Decomment disabled code.
5838 (to_fixed_record_type): Use variant_field_index instead of
5839 contains_variant_part.
5840 (to_fixed_variant_branch_type): Ditto.
5841 (to_fixed_array_type): Decomment disabled code.
5842 (ada_to_fixed_type): Convert tagged types to the specific type.
5843 Deactivate the size-check for array types in order to avoid
5844 some false size alarms.
5845 (to_static_fixed_type): Decomment disabled code.
5846 Modify to call template_to_static_fixed_type
5847 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5848 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5849 Remove valaddr argument, as it is never really used.
5850 (ada_to_fixed_value): Change interface to act on single struct value*
5851 operand.
5852 (adjust_pc_past_prologue): New function.
5853 (ada_attribute_name): Modify to take enum exp_opcode argument.
5854
5855 (ada_enum_name): Recognize new homonym-distinguishing convention.
5856 Adjust local variable's type to remove compiler warning.
5857 Fix a small problem in the part that unqualifies the enumeration name.
5858 (ada_value_binop): New function.
5859 (ada_value_equal): New function.
5860
5861 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5862 Don't give error message when not doing normal evaluation
5863 and a tagged type doesn't seem to contain a structure member.
5864 Give error message for packed arrays.
5865 For indexing arrays, handle pointers to packed arrays correctly.
5866 Handle case of 'first and 'last attributes of bare integral type
5867 without encoded subtype info.
5868 Remove some unnecessary casts.
5869 Fix uninitialized value of type in computing 'first, 'last, or 'length
5870 of array object.
5871 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5872 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5873 calls.
5874 Attributes are now exp_opcode values.
5875 Correct treatment of 'modulus.
5876 Better error message for taking 'length of wrong kind of type;
5877 improve comment.
5878 Change EVAL_NORMAL to noside for consistency.
5879 Use ada_value_binop for DIV, MOD, REM.
5880 Make special case out of array of length 0, since an argument
5881 of 0 upsets some platforms' malloc.
5882 Use OP_STRING instead of OP_ARRAY.
5883 For slice, add check that we have an array type before extracting
5884 a slice out of it. Avoids a SEGV.
5885 When evaluating an array slice, if the array type is a reference to
5886 an aligner type, then replace the aligner type by the actual type.
5887 Decomment disabled code.
5888 Remove some dead code.
5889 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5890 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5891 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5892 and UNOP_MBR to UNOP_IN_RANGE.
5893 If an array type has a parallel ___XVE type, then use it.
5894 Turn arrays into pointers for lvalue arrays.
5895 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5896 bounds error and handle 0-length slices.
5897 Use lim_warning.
5898 When selecting fields, apply ada_to_fixed_value (because the fields
5899 might have ___XVU or ___XVE encodings even if not dynamic.)
5900 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5901 (ada_is_system_address_type): New function.
5902
5903 (get_var_value): Use new interface to ada_lookup_symbol_list.
5904 (get_int_var_value): New interface.
5905 (to_fixed_range_type): Allow unknown bound, with warning.
5906 (ada_is_modular_type): Decomment disabled code.
5907 (ADA_OPERATORS): New definition.
5908 (ada_operator_length): New function.
5909 (ada_expr_op_name): New function.
5910 (ada_forward_operator_length): New function.
5911 (ada_dump_subexp_body): New function.
5912 (ada_print_subexp): New function.
5913 (ada_exp_descriptor): New constant.
5914 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5915 (ada_language_defn): Add ada_exp_descriptor entry.
5916 Change ada_parse => parse.
5917 Add post-parser entry.
5918 Use ada-specific non-local symbol lookup.
5919 Don't use C-style arrays.
5920 String lower-bound is 1.
5921 Decomment disabled code.
5922 (parse): New function.
5923 New fields ada_translate_error_message, ada_lookup_symbol,
5924 ada_lookup_minimal_symbol.
5925
5926 * ada-lang.h: Update copyright dates.
5927 Replace the mangle/demangle terminology throughout by the
5928 more appropriate encode/decode one.
5929 Include breakpoint.h.
5930 Forward declare struct partial_symbol, struct block.
5931 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5932 (EXTRACT_ADDRESS): Remove.
5933 (EXTRACT_INT): Remove.
5934 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5935 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5936 (MAX_RENAMING_CHAIN_LENGTH): Define.
5937 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5938
5939 (enum task_states): Remove.
5940 ada_task_states: Remove.
5941 (fat_string): Remove.
5942 (struct entry_call): Remove.
5943 (struct task_fields): Remove.
5944 (struct task_entry): Remove.
5945
5946 (struct ada_symbol_info): Define.
5947 (enum ada_attribute): Remove.
5948 (enum ada_operator): Define.
5949
5950 (ada_get_field_index): Declare.
5951 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5952 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5953 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5954 (ada_lookup_symbol_list): New interface.
5955 (ada_decode_symbol): Declare.
5956 (ada_decode): Declare.
5957 (ada_lookup_symbol): New interface.
5958 (ada_update_initial_language): Declare.
5959 (ada_lookup_simple_minsym): Declare.
5960 (user_select_syms): New interface.
5961 (ada_sals_for_line): Declare.
5962 (ada_is_tagged_type): New interface.
5963 (ada_tag_name): Declare.
5964 (ada_lookup_struct_elt_type): Remove declaration.
5965 (ada_search_struct_field): Remove declaration.
5966 (ada_attribute_name): New interface.
5967 (ada_is_system_address_type): Declare.
5968 (ada_to_fixed_value): Remove declaration.
5969 (ada_template_to_fixed_record_type_1): Declare.
5970 (get_int_var_value): New interface.
5971 (ada_find_any_symbol): Declare.
5972 (ada_find_renaming_symbol): Declare.
5973 (ada_mangle): Rename to ada_encode.
5974 (ada_simple_renamed_entity): Remove const.
5975 (ada_main_name): Declare.
5976 (get_current_task): Rename to ada_get_current_task.
5977 (get_entry_number): Remove declaration.
5978 (ada_report_exception_break): Remove declaration.
5979 (ada_print_exception_breakpoint_nontask): Declare.
5980 (ada_print_exception_breakpoint_task): Declare.
5981 (ada_find_printable_frame): Declare.
5982
5983 * ada-lex.l: Update copyright notices.
5984 Use xmalloc and xfree instead of malloc and free.
5985 Use new interface to name_lookup.
5986 Use new interface to
5987 ada_mangle=>ada_encode.
5988 Redo handling of '$...' variable to parallel current treatment
5989 in c-exp.y.
5990 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5991 digit_to_int, strtoulst, processInt, processReal, processId,
5992 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5993 yywrap): Protoize.
5994
5995 (processInt): Use cast to remove harmless warning.
5996 (processReal): Modify to get rid of compiler warning on scan formats.
5997
5998 (processId): Replace xmalloc with obstack_alloc for name and remove
5999 call to ada_name_string_cleanup.
6000 Remove obsolete disabled code.
6001 (name_lookup): Ditto.
6002 New interface.
6003 Use obsavestring on temp_parse_space instead of savestring
6004 on name, and remove call to ada_name_string_cleanup.
6005 Free string returned from ada_simple_renamed_entity.
6006 Use new interface to ada_lookup_symbol_list.
6007 Decomment disabled code.
6008 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6009 not types.
6010 When a type name lookup succeeds as a result of
6011 lookup_primitive_typename, check for regular type entry that has not
6012 yet been read in.
6013 Limit length of chain of renamed symbols we are willing to follow.
6014 Do not break names beginning with "standard__" into segments.
6015 (block_lookup): Use new interface to ada_lookup_symbol_list.
6016
6017 * ada-typeprint.c: Update copyright notice.
6018 (demangled_type_name): Rename to decoded_type_name.
6019 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6020 (print_range_bound): Correct handling of negative
6021 bounds that make the index type looked unsigned under STABS.
6022 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6023 (print_range_type_named): Use the builtin int type if no type
6024 corresponding to the given type name could be found.
6025 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6026 Add some bullet-proofing.
6027 (print_variant_clauses): Allow for variant branches with ___XVU
6028 encodings that are not dynamic fields.
6029 Use new interface to ada_is_tagged_type.
6030 (print_record_type): Allow for fields with ___XVE encodings that
6031 are not dynamic fields.
6032 Use new interface to ada_is_tagged_type.
6033 (ada_print_type): ada_is_array_descriptor =>
6034 ada_is_array_descriptor_type.
6035
6036 * ada-valprint.c: Update copyright notice.
6037 Include gdb_string.h
6038 Include infcall.h
6039 (ui_memcpy): New function.
6040 (ada_print_floating): New function.
6041 (ada_print_str): Order arguments correctly.
6042 Correct handling of empty arrays and arrays of 0-length items.
6043 ada_is_array_descriptor => ada_is_array_descriptor_type
6044 Print values of type System.Address in hexadecimal format.
6045 Use ada_print_floating to print floating-point numbers in Ada format.
6046 Print class tag values with type names.
6047 No longer print the address of reference values. Avoids
6048 a potential confusion.
6049 (ada_value_print): Stop printing the object type for reference
6050 values, but preserve that behavior for access types. Avoids
6051 a potential confusion.
6052 Simplify one conditional expression, as the first part is now
6053 necessarily true.
6054 ada_is_array_descriptor => ada_is_array_descriptor_type
6055 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6056
f65f91b5
JB
60572004-06-01 Jim Blandy <jimb@redhat.com>
6058
6059 * ppc-tdep.h: Delete unused 'regoff' member.
6060 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6061
d4687fa0
MC
60622004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6063
6064 Fix PR symtab/1661.
6065 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6066 (hpread_read_struct_type): Likewise.
6067
de169ec9
AC
60682004-06-01 Andrew Cagney <cagney@gnu.org>
6069
c6902d46
AC
6070 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6071 instead of xasprintf.
6072 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6073 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6074 (mi_cmd_data_list_register_names)
6075 (mi_cmd_data_list_changed_registers)
6076 (mi_cmd_data_list_register_values)
6077 (get_register, mi_cmd_data_write_register_values)
6078 (mi_cmd_data_write_register_values)
6079 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6080 (mi_cmd_target_download, mi_cmd_target_select)
6081 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6082 (mi_execute_cli_command, mi_execute_async_cli_command)
6083 (mi_execute_async_cli_command): Ditto.
6084 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6085 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6086
6085fc2d
AC
6087 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6088 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6089 error_last_message instead of mi_error_last_message.
6090 * mi/mi-main.c (mi_error_last_message): Delete function.
6091
de169ec9
AC
6092 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6093 "invalid number of columns" error. Delete redundant "out of
6094 memory" check.
6095
1fc7d519
MK
60962004-05-31 Mark Kettenis <kettenis@gnu.org>
6097
6cfb2041
MK
6098 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6099 (gregset_t, fpregset_t): Remove typedefs.
6100 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6101 (REG_OFFSET): Rename argument.
6102 (i386bsd_r_reg_offset): Rename from reg_offset.
6103 (REG_ADDR): Remove macro.
6104 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6105 functions.
6106 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6107 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6108 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6109 instead of supply_gregset.
6110 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6111 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6112 instead of fill_gregset.
6113 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6114
1fc7d519
MK
6115 * i386bsd-nat.c: Don't include "gregset.h".
6116 (supply_gregset, fill_gregset): Make static.
6117 (supply_fpregset, fill_fpregset): Remove.
6118 * Makefile.in (i386bsd-nat.o): Update dependencies.
6119
2c34abbe
MK
61202004-05-30 Mark Kettenis <kettenis@gnu.org>
6121
448724fb
MK
6122 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6123 "gdb_assert.h". Con't include "gregset.h".
6124 (fbsd_make_corefile_notes): Use regset-based core file support
6125 instead off fill_gregset and fill_fpregset.
6126 * Makefile.in (fbsd-proc.o): Update dependencies.
6127
5ca8ca7c
MK
6128 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6129 instructions.
6130 (m88k_frame_prev_register): Simplify code a bit.
6131
593adc23
MK
6132 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6133 (amd64_collect_fpregset): New function.
6134 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6135
8d1b517b
MK
6136 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6137
7fdafb5a
MK
6138 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6139 (i386_collect_gregset): New function.
6140 (i386_supply_fpregset): Adjust comment.
6141 (i386_collect_fpregset): New function.
6142 (i386_regset_from_core_section): Use i386_collect_gregset and
6143 i386_collect_fpregset.
6144
8693c419
MK
6145 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6146 handle VALUEP being null.
6147
2c34abbe
MK
6148 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6149
45d134d8
MK
61502004-05-29 Mark Kettenis <kettenis@gnu.org>
6151
1698f4e7
MK
6152 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6153
45d134d8
MK
6154 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6155 assembler in OpenBSD 3.5-current.
6156 (amd64obsd_sigcontext_addr): Likewise.
6157
691d145a
JB
61582004-05-28 Jim Blandy <jimb@redhat.com>
6159
6160 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6161 register set, so our regcache isn't declared "legacy" and our E500
6162 pseudoregister read and write functions aren't ignored.
6163 (rs6000_register_byte, rs6000_register_raw_size,
6164 rs6000_register_virtual_type, rs6000_register_convertible,
6165 rs6000_register_convert_to_virtual,
6166 rs6000_register_convert_to_raw): Deleted.
6167 (rs6000_register_type, rs6000_convert_register_p,
6168 rs6000_register_to_value, rs6000_value_to_register): New
6169 functions.
6170 (rs6000_gdbarch_init): Don't register
6171 gdbarch_deprecated_register_size,
6172 gdbarch_deprecated_register_bytes,
6173 gdbarch_deprecated_register_byte,
6174 gdbarch_deprecated_register_raw_size,
6175 gdbarch_deprecated_register_virtual_type,
6176 gdbarch_deprecated_register_convertible,
6177 gdbarch_deprecated_register_convert_to_virtual, or
6178 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6179 register gdbarch_register_type, gdbarch_convert_register_p,
6180 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6181
18ed0c4e
JB
61822004-05-26 Jim Blandy <jimb@redhat.com>
6183
6184 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6185 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6186 functions, updated to match the register numberings used in GCC.
6187 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6188 rs6000_dwarf2_reg_to_regnum as register number conversions
6189 functions for STABS and Dwarf2.
6190
779af9e3
RC
61912004-05-26 Randolph Chung <tausq@debian.org>
6192
6193 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6194 in header file.
6195
c23968a2
JB
61962004-05-25 Joel Brobecker <brobecker@gnat.com>
6197
6198 * NEWS: Document new "start" command.
6199
3a7d1c27
RC
62002004-05-25 Randolph Chung <tausq@debian.org>
6201
6202 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6203 hppa-linux.
6204
43613416
RC
62052004-05-25 Randolph Chung <tausq@debian.org>
6206
6207 * hppa-hpux-tdep.c (offsetof): Define.
6208 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6209 (hppa32_hpux_frame_base_before_sigtramp)
6210 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6211 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6212 (hppa64_hpux_frame_base_before_sigtramp)
6213 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6214 functions.
6215 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6216 (hppa_hpux_sigtramp_frame_unwind_cache)
6217 (hppa_hpux_sigtramp_frame_this_id)
6218 (hppa_hpux_sigtramp_frame_prev_register)
6219 (hppa_hpux_sigtramp_frame_unwind)
6220 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6221 (hppa_hpux_init_abi): Register sigtramp unwinder.
6222 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6223
6d1be3f1
RC
62242004-05-25 Randolph Chung <tausq@debian.org>
6225
6226 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6227 and multiple stack unwinds.
6228 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6229
97c34f65
AC
62302004-05-25 Andrew Cagney <cagney@gnu.org>
6231
6232 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6233 * symfile-mem.h: Delete file.
6234 * symfile-mem.c: Do not include "symfile-mem.h".
6235 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6236 "struct bfd_section". When an error do not bother returning NULL.
6237 (add_symbol_file_from_memory_command): Use "struct bfd" and
6238 "struct bfd_section".
6239 * Makefile.in (symfile_mem_h): Delete.
6240 (symfile-mem.o): Update dependencies.
6241
e23cbd82
NR
62422004-05-25 Nick Roberts <nickrob@gnu.org>
6243
6244 * gdb-mi.el: New file.
6245
20d2ca3e
AC
62462004-05-25 Andrew Cagney <cagney@gnu.org>
6247
6248 * inftarg.c: Include "observer.h".
6249 (child_attach, child_create_inferior): Notify inferior_created.
6250 * corelow.c: Include "observer.h".
6251 (core_open): Notify inferior_created.
6252 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6253
c27cda74
AC
62542004-05-25 Andrew Cagney <cagney@gnu.org>
6255
6256 * target.h (struct target_ops): Add from_tty to
6257 to_create_inferior.
6258 (target_create_inferior, find_default_create_inferior): Update.
6259 * infcmd.c (run_command): Update.
6260 * wince.c (child_create_inferior): Update.
6261 * win32-nat.c (child_create_inferior): Update.
6262 * uw-thread.c (uw_thread_create_inferior): Update.
6263 * thread-db.c (thread_db_create_inferior): Update.
6264 * target.c (debug_to_create_inferior)
6265 (find_default_create_inferior): Update.
6266 (maybe_kill_then_create_inferior): Update.
6267 * sol-thread.c (sol_thread_create_inferior): Update.
6268 * remote.c (extended_remote_async_create_inferior)
6269 (extended_remote_create_inferior): Update.
6270 * remote-vx.c (vx_create_inferior): Update.
6271 * remote-st.c (st2000_create_inferior): Update.
6272 * remote-sim.c (gdbsim_create_inferior): Update.
6273 * remote-sds.c (sds_create_inferior): Update.
6274 * remote-rdp.c (remote_rdp_create_inferior): Update.
6275 * remote-rdi.c (arm_rdi_create_inferior): Update.
6276 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6277 * remote-e7000.c (e7000_create_inferior): Update.
6278 * procfs.c (procfs_create_inferior): Update.
6279 * ocd.c (ocd_create_inferior): Update.
6280 * ocd.h (ocd_create_inferior): Update.
6281 * nto-procfs.c (procfs_create_inferior): Update.
6282 * monitor.c (monitor_create_inferior): Update.
6283 * lin-lwp.c (lin_lwp_create_inferior): Update.
6284 * inftarg.c (child_create_inferior): Update.
6285 * hpux-thread.c (hpux_thread_create_inferior): Update.
6286 * gnu-nat.c (gnu_create_inferior): Update.
6287
1db2a798
AC
62882004-05-25 Andrew Cagney <cagney@gnu.com>
6289
6290 * MAINTAINERS: Update e-mail address.
6291
007d08bb
RC
62922004-05-24 Randolph Chung <tausq@debian.org>
6293
6294 * thread.c (info_threads_command, thread_apply_all_command)
6295 (thread_apply_command, thread_command, do_captured_thread_select):
6296 Remove HPUXHPPA-specific code.
6297
69e7b95e
RC
62982004-05-24 Randolph Chung <tausq@debian.org>
6299
6300 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6301 unused symbols.
6302 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6303 references.
6304
a4d5f2e0
JB
63052004-05-24 Joel Brobecker <brobecker@gnat.com>
6306
6307 * infcmd.c (kill_if_already_running): New function, extracted
6308 from run_command().
6309 (run_command): Replace extracted code by call to
6310 kill_if_already_running().
6311 (start_command): New function.
6312 (_initialize_infcmd): Add "start" command.
6313
bf2ca189
MK
63142004-05-24 Mark Kettenis <kettenis@gnu.org>
6315
6316 Add OpenBSD/m88k support.
6317 * NEWS (New native configurations): Mention OpenBSD/m88k.
6318 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6319 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6320 * Makefile.in (m88k_tdep_h): New variable.
6321 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6322 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6323 * configure.host: Add m88*-*-openbsd*.
6324 * configure.tgt: Add m88*-*-openbsd*.
6325
80fadb11
JB
63262004-05-24 Jim Blandy <jimb@redhat.com>
6327
6328 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6329 to approve changes.
6330
19e2d14b
KB
63312004-05-24 Kevin Buettner <kevinb@redhat.com>
6332
6333 * symtab.c (fixup_section): Search section table when lookup by
6334 name fails.
6335
1b07b470
RC
63362004-05-24 Randolph Chung <tausq@debian.org>
6337
6338 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6339 be "small_struct".
6340
368702b1
MK
63412004-05-24 Mark Kettenis <kettenis@gnu.org>
6342
5df97fde
MK
6343 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6344 register number in regcache_raw_collect call.
6345 (m68kbsd_collect_fpregset): Likewise.
6346 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6347
368702b1
MK
6348 * regset.h (struct regset): Add back `regset' member.
6349
a770d4ec
MK
63502004-05-23 Mark Kettenis <kettenis@gnu.org>
6351
70f9f479
MK
6352 * configure.in: Check for td_pcb in `struct thread'.
6353 * configure, config.in: Regenerated.
6354
2e16d79e
MK
6355 * dpx2-nat.c: Remove file.
6356 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6357 (dpx2-nat.o): Remove dependencies.
6358
492cf391
MK
6359 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6360 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6361 (amd64obsd_supply_pcb): New function.
6362 (_initialize_amd64obsd_nat): Enable libkvm interface.
6363 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6364 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6365 (LOADLIBES): New variable.
6366
a770d4ec
MK
6367 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6368 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6369 (sparc32nbsd_supply_pcb): New function.
6370 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6371 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6372 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6373 (LOADLIBES): New variable.
6374
9ea75c57
MK
63752004-05-22 Mark Kettenis <kettenis@gnu.org>
6376
2e0c3539
MK
6377 * bsd-kvm.c, bsd-kvm.h: New files.
6378 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6379 "bsd-kvm.h".
6380 (i386fbsd_supply_pcb): New function.
6381 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6382 (i386fbsd-nat.o): Update dependencies.
6383 (bsd_kvm_h): New variable.
6384 (bsd-kvm.o): New dependency.
6385 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6386 (LOADLIBES): New variable.
6387
9ea75c57
MK
6388 * regset.c: Tweak comment.
6389 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6390 macro.
6391 * regset.h: Update copyright year.
6392 (struct regset): Remove `descr' member, add `gdbarch' member.
6393 (regset_alloc): Adjust prototype and comment.
6394 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6395 (i386_supply_fpregset): Likewise.
6396 (i386_regset_from_core_section): Update call to regset_alloc.
6397 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6398 REGSET->arch.
6399 (i386obsd_aout_regset_from_core_section): Update call to
6400 regset_alloc.
6401 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6402 REGSET->arch.
6403 (i386nbsd_aout_regset_from_core_section): Update call to
6404 regset_alloc.
6405 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6406 REGSET->arch.
6407 (amd64_regset_from_core_section): Update call to regset_alloc.
6408 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6409 REGSET->arch.
6410 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6411 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6412 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6413 (sparc32nbsd_init_abi): Update call to regset_alloc.
6414 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6415 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6416 (sparc64obsd_init_abi): Update call to regset_alloc.
6417 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6418 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6419 (sparc64nbsd_init_abi): Update call to regset_alloc.
6420 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6421 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6422 (sparc64fbsd_init_abi): Update call to regset_alloc.
6423
867e2dc5
JB
64242004-05-22 Jim Blandy <jimb@redhat.com>
6425
6426 * ppc-tdep.h (spe_register_p): New declaration.
6427 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6428 ppc_spefscr_regnum.
6429 * rs6000-tdep.c (spe_register_p): New function.
6430 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6431 spefscr.
6432 (rs6000_gdbarch_init): Initialize the new members of the tdep
6433 structure.
6434
617a4cba
JB
64352004-05-21 Jim Blandy <jimb@redhat.com>
6436
0397dee1
JB
6437 * ppc-linux-nat.c (fetch_register): Move code back to be next
6438 to the comment that describes it. (Moved code, instead of
6439 comment, for symmetry with store_register.)
6440
617a4cba
JB
6441 Allocate regset structures in the gdbarch's obstack, not using
6442 xmalloc.
6443 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6444 Add 'arch' argument. Allocate the regset on arch's obstack, not
6445 using xmalloc.
6446 * regset.h (regset_alloc): Update declaration.
6447 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6448 gdbarch argument.
6449 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6450 * i386-tdep.c (i386_regset_from_core_section): Same.
6451 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6452 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6453 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6454 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6455 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6456 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6457
9aa3914d
JB
64582004-05-21 Joel Brobecker <brobecker@gnat.com>
6459
6460 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6461
99c87dab
JB
64622004-05-21 Jim Blandy <jimb@redhat.com>
6463
6464 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6465 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6466
c2b6b4aa
JB
64672004-05-20 Jim Blandy <jimb@redhat.com>
6468
6469 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6470
144529d0
MK
64712004-05-20 Mark Kettenis <kettenis@gnu.org>
6472
6473 * regset.h: Make prototype const-correct.
6474 * regset.c (regset_xmalloc): Make const-correct.
6475
4725b721
PH
64762004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6477
6478 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6479 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6480 (symbol_search_name): Declare.
6481
6482 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6483 (iter_name_next_hashed): Ditto.
6484 (iter_name_next_linear): Ditto.
6485 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6486
6487 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6488 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6489 (symbol_search_name): New function.
6490
6491 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6492
6493 * minsyms.c (build_minimal_symbol_hash_tables): Change
6494 test for adding to demangled hash table to check for difference
6495 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6496
be07a590
JB
64972004-05-19 Jim Blandy <jimb@redhat.com>
6498
6499 Use a constructor function to create regset structures.
6500 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6501 (struct regset): Use supply_regset_ftype. Add new
6502 'collect_regset' member.
6503 (regset_xmalloc): New declaration.
6504 * regset.c: New file.
6505 * am64-tdep.c (amd64_regset_from_core_section): Use
6506 regset_xmalloc to construct regset structures.
6507 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6508 * i386-tdep.c (i386_regset_from_core_section): Same.
6509 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6510 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6511 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6512 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6513 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6514 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6515 * Makefile.in (COMMON_OBS): Add regset.o.
6516 (regset.o): New rule.
6517
604368f5
JB
65182004-05-19 Joel Brobecker <brobecker@gnat.com>
6519
6520 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6521 and pthread_cond_wait.c.
6522
82d69f8b
JB
65232004-05-18 Jim Blandy <jimb@redhat.com>
6524
6525 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6526 before the mach-specific switch, and then let the individual cases
6527 override the defaults, rather than leaving them uninitialized
6528 until the switch and then setting them in each case.
6529
5859efe5
RC
65302004-05-18 Randolph Chung <tausq@debian.org>
6531
6532 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6533 millicode functions.
6534
9ca80cf8
RC
65352004-05-18 Randolph Chung <tausq@debian.org>
6536
6537 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6538 references to dld_flags_buffer consistent.
6539
ed70ba00
RC
65402004-05-18 Randolph Chung <tausq@debian.org>
6541
6542 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6543 it for unwinding the stack.
6544
63100632
RC
65452004-05-18 Randolph Chung <tausq@debian.org>
6546
6547 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6548 Undefine these so we can overide them using gdbarch.
6549
090ccbb7
RC
65502004-05-18 Randolph Chung <tausq@debian.org>
6551
6552 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6553 handling for 64-bit HPUX (elf).
6554
594706e6
DJ
65552004-05-18 Daniel Jacobowitz <dan@debian.org>
6556
6557 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6558 constants.
6559 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6560 * ia64-tdep.c (examine_prologue): Likewise.
6561 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6562 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6563
e5483145
MK
65642004-05-18 Mark Kettenis <kettenis@gnu.org>
6565
6566 * vax-tdep.c (vax_return_value): Implement
6567 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6568
caed1a45
MK
65692004-05-17 Mark Kettenis <kettenis@gnu.org>
6570
6571 * vax-tdep.c (vax_return_value): Fix typo.
6572
3c0b7db2
AC
65732004-05-17 Andrew Cagney <cagney@redhat.com>
6574
5aae53e5
AC
6575 * MAINTAINERS: Mark Salter was also responsible for
6576 testsuite/config/
6577
3c0b7db2
AC
6578 * NEWS: Mention signal fixes.
6579
22b0923d
RC
65802004-05-17 Randolph Chung <tausq@debian.org>
6581
6582 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6583 check to see if we are unwinding an export stub. Export stubs clobber
6584 the %rp in the call path and stores the original rp in a stack slot.
6585
22f2b2f3
JB
65862004-05-17 Jim Blandy <jimb@redhat.com>
6587
6588 * MAINTAINERS: Update address for J.T. Conklin.
6589
cea96d64
RC
65902004-05-17 Randolph Chung <tausq@debian.org>
6591
6592 * hppa-tdep.c: Remove superfluous #include's.
6593 * Makefile.in (hppa-tdep.o): Update dependencies.
6594
f08f6a4a
RC
65952004-05-17 Randolph Chung <tausq@debian.org>
6596
6597 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6598 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6599 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6600 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6601 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6602 Remove static function declarations.
6603
51da707a
MK
66042004-05-17 Mark Kettenis <kettenis@gnu.org>
6605
caed1a45
MK
6606 * alphabsd-nat.c: Update copyright year.
6607 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6608
c0c2b0db
MK
6609 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6610 and M68K_A2_REGNUM.
6611
51da707a
MK
6612 * m68k-tdep.c (m68k_svr4_return_value): Implement
6613 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6614
8d027a04
MK
66152004-05-16 Mark Kettenis <kettenis@gnu.org>
6616
6617 * sol-thread.c Update copyright year. Fix various coding
6618 standards violations. Tweak a few comments.
6619 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6620 Delete prototypes.
6621
0d99fdb9
RC
66222004-05-15 Randolph Chung <tausq@debian.org>
6623
6624 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6625 as pointer instead of array reference since HPUX compiler does
6626 not accept unsized array arguments.
6627 * somsolib.c (dld_flags_buffer): Use constant array size.
6628
f7e3843a
MK
66292004-05-15 Mark Kettenis <kettenis@gnu.org>
6630
0fe85704
MK
6631 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6632 offset with decimal offset.
6633 (amd64obsd_sigcontext_addr): Return correct address for entire
6634 signal trampoline.
6635
a54f9a00
MK
6636 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6637 instead of get_frame_base.
6638
feae6502
MK
6639 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6640 (fill_gregset): Use regcache_raw_collect.
6641
0382d099
MK
6642 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6643 ppcobsd-tdep.c.
6644
f7e3843a
MK
6645 * config/sparc/tm-nbsd64.h: Remove file.
6646 * config/tm-sunos.h: Remove file.
6647
773df3e5
JB
66482004-05-15 Joel Brobecker <brobecker@gnat.com>
6649
6650 * rs6000-tdep.c (store_param_on_stack_p): New function,
6651 an improved version of some code extracted from skip_prologue().
6652 (skip_prologue): Use store_param_on_stack_p() to detect
6653 instructions saving a parameter on the stack. Detect when r0
6654 is used to save a parameter.
6655 Do not mark "li rx, SIMM" instructions as part of the prologue,
6656 unless the following instruction is also part of the prologue.
6657
95918acb
AC
66582004-05-14 Andrew Cagney <cagney@redhat.com>
6659
06f32659
AC
6660 * infrun.c (handle_inferior_event): Simplify
6661 STEP_OVER_UNDEBUGGABLE.
6662
95918acb
AC
6663 * infrun.c (handle_step_into_function): Delete function.
6664 (handle_inferior_event): Inline calls to
6665 handle_step_into_function.
6666
40711ff1 66672004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6668
6669 * rs6000-nat.c: Fix a comment.
6670
02f60eae
JB
66712004-05-12 David Anderson <davea@sgi.com>
6672
6673 Committed by Jim Blandy <jimb@redhat.com>:
6674 * regcache.c (struct regcache_descr): fix comment spelling.
6675
552e377b
JB
66762004-05-13 J. Brobecker <brobecker@gnat.com>
6677
6678 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6679 Fixes a link link failure.
6680
349766b2
JB
66812004-05-13 J. Brobecker <brobecker@gnat.com>
6682
6683 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6684 error that was causing the build to fail.
6685
0d4d5484
JB
66862004-05-13 J. Brobecker <brobecker@gnat.com>
6687
6688 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6689 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6690
0b30808c
AC
66912004-05-13 Andrew Cagney <cagney@redhat.com>
6692
6693 * infrun.c (handle_inferior_event): Check for
6694 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6695 calls. Update comments.
6696
cdf2c5f5
JB
66972004-05-13 Jim Blandy <jimb@redhat.com>
6698
063715bf
JB
6699 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6700 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6701 (store_regs_user_thread, store_regs_kernel_thread): Use
6702 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6703 * ppc-linux-nat.c (fill_gregset): Same.
6704 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6705 (ppc_linux_sigtramp_cache): Same.
6706 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6707 (ppcnbsd_sigtramp_cache_init): Same.
6708 * rs6000-nat.c (fetch_core_registers): Same.
6709 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6710 (rs6000_frame_cache): Same.
6711
cdf2c5f5
JB
6712 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6713 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6714 of assuming that the gprs are numbered starting with zero.
6715 * ppc-linux-nat.c (fill_gregset): Same.
6716 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6717 * ppcnbsd-nat.c (getregs_supplies): Same.
6718 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6719 * rs6000-nat.c (fetch_core_registers): Same.
6720 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6721
450bd37b
MS
67222004-05-07 Michael Snyder <msnyder@redhat.com>
6723
6724 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6725 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6726
4a72a2a6
AC
67272004-05-13 Andrew Cagney <cagney@redhat.com>
6728
6729 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6730
8edfa926
BM
67312004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6732
6733 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6734 base_address for shared libraries.
6735
723e0e3d
BM
67362004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6737
6738 * MAINTAINERS (write after approval): Add myself.
6739
00d4360e
UW
67402004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6741
6742 * breakpoint.c (bpstat_stop_status): Add new argument
6743 STOPPED_BY_WATCHPOINT. Use it instead of testing
6744 target_stopped_data_address agaist 0 to check whether
6745 or not we stopped due to a hardware watchpoint.
6746 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6747 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6748 with new argument.
6749
ec76baa5
JB
67502004-05-12 Jim Blandy <jimb@redhat.com>
6751
6752 * configure.in: When checking whether we should use the -bbigtoc
6753 option, don't forget to restore the original value of LDFLAGS.
6754 * configure: Regenerated.
6755
f2c9ca08
AC
67562004-05-12 Andrew Cagney <cagney@redhat.com>
6757
6758 * thread.c (load_infrun_state): Delete step_sp.
6759 * infrun.c (context_switch): Ditto.
6760 * inferior.h (step_sp): Ditto.
6761 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6762 * gdbthread.h (struct thread_info, save_infrun_state)
6763 (restore_infrun_state): Ditto.
6764
090ddb2a
UW
67652004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6766
6767 * MAINTAINERS (write after approval): Add myself.
6768
8aad930b
AC
67692004-05-12 Andrew Cagney <cagney@redhat.com>
6770
6771 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6772 eliminate reference to step_sp.
6773 (struct execution_control_state, init_execution_control_state)
6774 (handle_inferior_event, keep_going): Delete update_step_sp and
6775 step_sp.
6776 * infcmd.c (step_sp): Note that variable is unused.
6777
922d5ae0
AC
67782004-05-11 Andrew Cagney <cagney@redhat.com>
6779
6780 * infrun.c (step_over_function): Delete function.
6781 (handle_step_into_function): Use insert_step_resume_breakpoint.
6782 (insert_step_resume_breakpoint): Fix assertion.
6783
017c5ca5
NR
67842004-05-11 Nick Roberts <nickrob@gnu.org>
6785
6786 * utils.c (defaulted_query): Just use the normal query input type
6787 when printing the annotations.
6788
42edda50
AC
67892004-05-11 Andrew Cagney <cagney@redhat.com>
6790
6791 * infrun.c (handle_inferior_event): Simplify code handling
6792 step-into or return-from a signal trampoline.
6793
d28b44a7
AC
67942004-05-11 Andrew Cagney <cagney@redhat.com>
6795
6796 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6797 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6798
383f0f5b
JB
67992004-05-10 Jim Blandy <jimb@redhat.com>
6800
d0b57c3a
JB
6801 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6802 with a call to internal_error.
6803
383f0f5b
JB
6804 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6805 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6806 processor variant lacks those registers.
6807 (ppc_floating_point_unit_p): Change description to make it clear
6808 that this returns info about the ISA, not the ABI.
6809 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6810 return true or false by checking tdep->ppc_fp0_regnum and
6811 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6812 arch/mach switching done in rs6000_gdbarch_init; it's better to
6813 keep that logic there, and just check the results here.
6814 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6815 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6816 floating-point registers.
6817 (ppc_supply_fpregset, ppc_collect_fpregset)
6818 (rs6000_push_dummy_call, rs6000_extract_return_value)
6819 (rs6000_store_return_value): Assert that we have floating-point
6820 registers.
6821 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6822 (rs6000_frame_cache): Don't note the locations at which
6823 floating-point registers were saved if we have no fprs.
6824 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6825 registers.
6826 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6827 (store_regs_user_thread, store_regs_kernel_thread): Only call
6828 supply_fprs / fill_fprs if we actually have floating-point
6829 registers.
6830 (special_register_p): Check ppc_fpscr_regnum before matching
6831 against it.
6832 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6833 supply / collect fpscr if we don't have it.
6834 * ppc-bdm.c: #include "gdb_assert.h".
6835 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6836 have floating-point registers, since I can't test this code on
6837 FP-free systems to adapt it.
6838 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6839 fpscr and floating point register numbers if they don't exist.
6840 (fetch_register): Assert that we have floating-point registers
6841 before we reach the code that handles them.
6842 (store_register): Same. And use tdep instead of calling
6843 gdbarch_tdep again.
6844 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6845 don't have them.
6846 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6847 fprs and fpscr if we don't have them.
6848 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6849 don't have them.
6850 * ppcnbsd-nat.c: #include "gdb_assert.h".
6851 (getfpregs_supplies): Assert that we have floating-point registers.
6852 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6853 * ppcobsd-tdep.c: #include "gdb_assert.h".
6854 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6855 have floating-point registers.
6856 * rs6000-nat.c (regmap): Don't match against the fpscr and
6857 floating point register numbers if they don't exist.
6858 (fetch_inferior_registers, store_inferior_registers,
6859 fetch_core_registers): Only fetch / store / supply the
6860 floating-point registers and the fpscr if we have them.
6861 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6862 (ppcobsd-tdep.o): Update dependencies.
6863
15960608
AC
68642004-05-10 Andrew Cagney <cagney@redhat.com>
6865
6866 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6867 (context_switch): Do not switch through_sigtramp_breakpoint.
6868 * gdbthread.h (save_infrun_state, load_infrun_state)
6869 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6870 and structure member.
6871 * thread.c (load_infrun_state, save_infrun_state): Update.
6872
5ab5aa0f
MK
68732004-05-10 Mark Kettenis <kettenis@gnu.org>
6874
6875 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6876
da78b0e7
DJ
68772004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6878
6879 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6880 throughout.
6881 * aclocal.m4: Regenerate.
6882
cca0d3b0
NW
68832004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6884
6885 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6886
d303a6c7
AC
68872004-05-10 Andrew Cagney <cagney@redhat.com>
6888
6889 * infrun.c (check_sigtramp2): Delete function.
6890 (handle_inferior_event): When single stepping, and taking a
6891 signal, set a breakpoint at the signal return address. Delete
6892 redundant calls to check_sigtramp2.
6893 (insert_step_resume_breakpoint): New function.
6894 (through_sigtramp_breakpoint, handle_inferior_event)
6895 (follow_exec, wait_for_inferior, fetch_inferior_event)
6896 (currently_stepping, keep_going): Delete most uses of
6897 through_sigtramp_breakpoint, not that it should be deleted.
6898 (delete_breakpoint_current_contents): Delete function.
6899
03f4cc20
RC
69002004-05-10 Randolph Chung <tausq@debian.org>
6901
6902 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6903 target.
6904 * config/pa/tm-linux.h: New file.
6905
37fc812e
DJ
69062004-05-10 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6909 of prefixes. Don't print the prefix twice in the CLI.
6910
26c0b942
JB
69112004-05-10 Jim Blandy <jimb@redhat.com>
6912
2e56e9c1
JB
6913 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6914 collect all the gprs.
6915
26c0b942
JB
6916 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6917 loop collecting gprs.
6918
dc497459
AC
69192004-05-09 Andrew Cagney <cagney@redhat.com>
6920
6921 * remote-vx.c (net_step): Delete step-range code.
6922 * remote.c (remote_resume, init_all_packet_configs)
6923 (set_remote_protocol_E_packet_cmd)
6924 (show_remote_protocol_E_packet_cmd)
6925 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6926 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6927 (show_remote_protocol_e_packet_cmd): Ditto.
6928
0543f387
MK
69292004-05-09 Mark Kettenis <kettenis@gnu.org>
6930
c481d1ca
MK
6931 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6932
f626a069
MK
6933 * hppa-tdep.h: Update copyright year.
6934 (struct trad_frame_saved_reg): Add opaque declaration.
6935
6fa57a7d
MK
6936 * amd64-tdep.c (amd64_return_value): Implement
6937 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6938
e47577ab
MK
6939 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6940 (m68k_value_to_register): New functions.
6941 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6942 value_to_register.
6943
31db7b6c
MK
6944 * defs.h (enum return_value_convention): Add
6945 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6946 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6947 * infcmd.c (legacy_return_value): New function.
6948 (print_return_value): Rwerite to implement
6949 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6950 * values.c (using_struct_return): Check for inequality to
6951 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6952 RETURN_VALUE_STRUCT_CONVENTION.
6953 * i386-tdep.c (i386_return_value): Implement
6954 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6955
0543f387
MK
6956 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6957 include "symtab.h", "opcode/vax.h" and "inferior.h".
6958 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6959 to read_memory_unsigned_integer.
6960 (vax_gdbarch_init): Reorder.
6961 (_initialize_vax_tdep): Spell out prototype.
6962 * Makefile.in (vax-tdep.o): Update dependencies.
6963
0c93b7b6
AC
69642004-05-08 Andrew Cagney <cagney@redhat.com>
6965
e6b55ae2
AC
6966 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6967 * target.c (target_detach, target_disconnect): Ditto.
6968
1ac839b8
AC
6969 * infcall.c (call_function_by_hand): When no
6970 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6971 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6972 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6973 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6974 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6975
28954179
AC
6976 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6977 * gdbarch.h, gdbarch.c: Re-generate.
6978 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6979 deprecated_fix_call_dummy.
6980 * v850-tdep.c (v850_gdbarch_init): Ditto.
6981 * infcall.c (call_function_by_hand): Do not call
6982 DEPRECATED_FIX_CALL_DUMMY.
6983
434b87dd
AC
6984 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6985 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6986 * gdbarch.h, gdbarch.c: Re-generate.
6987 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6988 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6989 deprecated_sizeof_call_dummy_words.
6990 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6992 * v850-tdep.c (v850_gdbarch_init): Ditto.
6993 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6994 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6995 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6996 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6997 * arch-utils.h (legacy_call_dummy_words)
6998 (legacy_sizeof_call_dummy_words): Delete declarations.
6999 * arch-utils.c (legacy_call_dummy_words)
7000 (legacy_sizeof_call_dummy_words): Delete variables.
7001
58d28df8
AC
7002 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7003 * gdbarch.h, gdbarch.c: Re-generate.
7004 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7005 * infcall.c (call_function_by_hand): Eliminate call to
7006 DEPRECATED_PUSH_DUMMY_FRAME.
7007 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7008 push_dummy_frame.
7009 (ns32k_push_dummy_frame): Delete function.
7010
e4a2df64
AC
7011 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7012 deprecated_call_dummy_breakpoint_offset or
7013 deprecated_call_dummy_start_offset.
7014 * dummy-frame.c, arm-tdep.c: Update comments.
7015 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7016 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7017 * gdbarch.h, gdbarch.c: Re-generate.
7018
d3712828
AC
7019 * infcall.c (legacy_push_dummy_code): Delete function.
7020 (push_dummy_code): Delete call.
7021
7a882905
AC
7022 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7023 * gdbarch.h, gdbarch.c: Re-generate.
7024 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7025 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7026 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7027 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7028
0ec5872b
AC
7029 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7030 (struct frame_info): Delete opaque declaration.
7031 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7032 * frame.c (get_frame_type): Delete call.
7033
0c93b7b6
AC
7034 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7035 pc_in_call_dummy.
7036 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7037 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7038
75536971
MK
70392004-05-08 Mark Kettenis <kettenis@gnu.org>
7040
527ca6bb
MK
7041 * alphanbsd-tdep.c: Include "gdb_string.h".
7042 * armnbsd-tdep.c: Update copyright year.
7043 Include "gdb_string.h".
7044 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7045 dependencies.
7046
d39fdc61
MK
7047 * delta68-nat.c: Remove file.
7048 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7049 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7050 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7051 (delta68-nat.o): Remove dependency.
7052
75536971
MK
7053 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7054 function.
7055 (m68k_gdbarch_init): Don't set
7056 deprecated_frameless_function_invocation.
7057
f4ca1d1f
RC
70582004-05-07 Randolph Chung <tausq@debian.org>
7059
7060 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7061 read_memory_nobpt for code reading when doing frame unwinding.
7062 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7063
2f0e8c7a
RC
70642004-05-07 Randolph Chung <tausq@debian.org>
7065
7066 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7067 instead of sp, handle sigaltstack case.
7068 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7069 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7070 signal handler and not that of the caller.
7071 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7072 hppa_linux_sigtramp_find_sigcontext.
7073
959464ff
RC
70742004-05-07 Randolph Chung <tausq@debian.org>
7075
7076 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7077 hppa-linux-nat.c.
7078 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7079 * hppa-linux-nat.c (fetch_register, store_register): Define.
7080 (fetch_inferior_registers, store_inferior_registers): Define.
7081 (supply_gregset): Add comment and clean up some unneeded code.
7082 (fill_gregset): Add comment and fix so that it saves registers in
7083 the right place in the gregset.
7084 (fill_fpregset): Fix buffer overrun problem.
7085 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7086
0da28f8a
RC
70872004-05-07 Randolph Chung <tausq@debian.org>
7088
7089 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7090 do common handling of the pcoqt register.
7091 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7092 to use helper function.
7093 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7094 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7095 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7096 generic fallback unwinder when all else fails.
7097 (hppa_gdbarch_init): Add fallback sniffer.
7098 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7099 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7100 to use helper function.
7101
b9ec757a
JB
71022004-05-08 Joel Brobecker <brobecker@gnat.com>
7103
7104 * config/djgpp/fnchange.lst: Add translation rules for
7105 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7106
756e95f1
MK
71072004-05-08 Mark Kettenis <kettenis@gnu.org>
7108
7109 * frame.c (get_prev_frame_1): Work around GCC bug.
7110 * frame.h: Add comment about GCC bug.
7111
2b4855ab
AC
71122004-05-07 Andrew Cagney <cagney@redhat.com>
7113
7114 * observer.c: Include "commands.h" and "gdbcmd.h".
7115 (observer_debug, _initialize_observer): Add the
7116 command "set/show debug observer".
7117 * observer.sh: When observer debugging, log notify calls.
7118 * Makefile.in (observer.o): Update dependencies.
7119
ba3e8e46
JM
71202004-05-07 Jason Molenda (jmolenda@apple.com)
7121
7122 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7123
16796152
JB
71242004-05-07 Jim Blandy <jimb@redhat.com>
7125
daf6dc85
JB
7126 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7127 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7128 to recognize gpr regnums, instead of assuming that
7129 tdep->ppc_fp0_regnum marks the end of the general-purpose
7130 registers.
7131
16796152
JB
7132 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7133 the given architecture has floating-point registers.
7134
c69b8bfc
AC
71352004-05-07 Andrew Cagney <cagney@redhat.com>
7136
7137 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7138 macro defined to 1.
7139 * gdbarch.h, gdbarch.c: Re-generate.
7140 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7141 deprecated_use_generic_dummy_frames.
7142
7243600a
BF
71432004-05-07 Brian Ford <ford@vss.fsi.com>
7144
7145 * NEWS: Mention Cygwin DWARF 2 support.
7146
73c1e0a1
AC
71472004-05-07 Andrew Cagney <cagney@redhat.com>
7148
7149 * objfiles.h (struct entry_info): Delete unused fields
7150 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7151 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7152 * mipsread.c (mipscoff_symfile_read): Update.
7153 * mdebugread.c (parse_partial_symbols): Update.
7154 * dwarfread.c (read_file_scope): Update.
7155 * dwarf2read.c (read_file_scope): Update.
7156 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7157 * coffread.c (complete_symtab): Update.
7158
1d3056ac
MK
71592004-05-07 Mark Kettenis <kettenis@gnu.org>
7160
7161 * infcall.c (_initialize_infcall): Fix typo.
7162
15170568
AC
71632004-05-07 Andrew Cagney <cagney@redhat.com>
7164
7165 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7166 * command.h (add_setshow_zinteger_cmd): Declare.
7167
34f75cc1
RC
71682004-05-06 Randolph Chung <tausq@debian.org>
7169
7170 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7171 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7172 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7173 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7174 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7175 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7176 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7177 definitions ...
7178 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7179 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7180 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7181 (hppa64_hpux_frame_find_saved_regs_in_sig)
7182 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7183 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7184 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7185 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7186 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7187 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7188 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7189 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7190 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7191 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7192 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7193 (hppa32_register_type, hppa_cannot_store_register)
7194 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7195 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7196 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7197 * pa64solib.c (pa64_solib_have_load_event)
7198 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7199 (pa64_solib_unloaded_library_pathname): Likewise.
7200 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7201 (som_solib_library_pathname): Likewise.
7202
0a5e7efe
JI
72032004-05-05 Jim Ingham <jingham@apple.com>
7204
7205 * breakpoint.c (create_breakpoints): Copy the ignore count and
7206 thread id over from the pended breakpoint to the actual
7207 breakpoint.
7208
10a4b113
AC
72092004-05-05 Andrew Cagney <cagney@redhat.com>
7210
7211 * gdbarch.sh (PARM_BOUNDARY): Delete.
7212 gdbarch.h, gdbarch.c: Re-generate.
7213 * valops.c (PARM_BOUNDARY): Delete macro.
7214 (value_push): Delete PARM_BOUNDARY code.
7215 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7216
366f009f
JB
72172004-05-04 Jim Blandy <jimb@redhat.com>
7218
32b99774
JB
7219 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7220 Don't assume that the gprs, fprs, and UISA sprs are
7221 contiguous, start at register number zero, and end with fpscr.
7222 Instead, use the numbers from the tdep structure.
7223
366f009f
JB
7224 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7225 should no longer be used in code specific to the RS6000 and its
7226 derivatives.
7227 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7228 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7229 tdep->ppc_fp0_regnum.
7230 (ppc_supply_fpregset, ppc_collect_fpregset)
7231 (rs6000_push_dummy_call, rs6000_extract_return_value)
7232 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7233 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7234 FP0_REGNUM.
7235 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7236 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7237 Same.
7238 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7239 bdm_ppc_store_registers): Same.
7240 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7241 (store_register, fill_fpregset): Same.
7242 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7243 (ppc_linux_supply_fpregset): Same.
7244 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7245 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7246 Same.
7247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7248 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7249 ppc64_sysv_abi_return_value): Same.
7250 * rs6000-nat.c (regmap, fetch_inferior_registers)
7251 (store_inferior_registers, fetch_core_registers): Same.
7252
827f338d
MK
72532004-05-01 Mark Kettenis <kettenis@gnu.org>
7254
7255 * m68knbsd-nat.c: Remove file.
7256 * m68knbsd-tdep.c: Remove file.
7257 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7258 dependencies.
7259 * configure.host: Add m68k-*-netbsdelf*.
7260 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7261 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7262 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7263 (XM_FILE): Remove.
7264 * config/m68k/nbsdelf.mh: New file.
7265 * config/m68k/nbsd.mt: New file.
7266 * config/m68k/nbsdaout.mt: Remove file.
7267 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7268 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7269 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7270 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7271 (use_struct_convention): Remove prototype.
7272 (USE_STRUCT_CONVENTION): Remove define.
7273 * config/m68k/xm-nbsd.h: Remove file.
7274
66894781
MS
72752004-05-04 Michael Snyder <msnyder@redhat.com>
7276
7277 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7278 reg_struct_return method (as gcc usually does for cross targets).
7279
f0f63663
AC
72802004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7281
7282 Committed by Andrew Cagney.
7283 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7284 alignment padding when accessing ucontext struct members.
7285
edf61169
JB
72862004-05-04 Jim Blandy <jimb@redhat.com>
7287
8bf659e8
JB
7288 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7289 'ppc_gplast_regnum' member.
7290 (ppc_num_gprs): New enum constant.
7291 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7292 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7293 * rs6000-nat.c (regmap, fetch_inferior_registers,
7294 store_inferior_registers): Same.
7295 * rs6000-tdep.c (e500_pseudo_register_read)
7296 (e500_pseudo_register_write): Same.
7297 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7298
b967e06f
JB
7299 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7300 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7301 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7302 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7303 FPLAST_REGNUM.
7304 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7305 Same.
7306 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7307 * rs6000-nat.c (regmap, fetch_inferior_registers)
7308 (store_inferior_registers): Same.
7309
edf61169
JB
7310 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7311 with FPLAST_REGNUM.
7312
58a9656e
JB
73132004-05-03 Joel Brobecker <brobecker@gnat.com>
7314
7315 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7316 failure detected by recent versions of GCC.
7317 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7318 to be consistent with the usage in dwarf2_create_include_psymtab.
7319
dc305454
MS
73202004-05-03 Michael Snyder <msnyder@redhat.com>
7321
7322 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7323 (heuristic_proc_start): Whitespace cleanup.
7324
29972665
MK
73252004-05-04 Mark Kettenis <kettenis@gnu.org>
7326
6b57680d
MK
7327 * sun3-nat.c: Remove file.
7328 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7329 dependencies.
7330 (ALLDEPFILES): Remove sun3-nat.c.
7331 (sun3-nat.o): Remove dependencies.
7332
29972665
MK
7333 * i386-interix-nat.c, i386-interix-tdep.c,
7334 config/i386/nm-interix.h, config/i386/interix.mh,
7335 config/i386/interix.mt: Remove files.
7336 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7337 dependencies.
7338
f595cb19
MK
73392004-05-03 Mark Kettenis <kettenis@gnu.org>
7340
7341 * m68k-tdep.h (struct gdbarch_tdep): Add member
7342 struct_value_regnum.
7343 (m68k_svr4_init_abi): New prototype.
7344 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7345 different calling conventions.
7346 (m68k_extract_return_value): Remove code dealing with single-field
7347 structs.
7348 (m68k_store_return_value): Remove code dealing with single-field
7349 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7350 (m68k_extract_struct_value_address): Remove function.
7351 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7352 (m68k_reg_struct_return_p, m68k_return_value)
7353 (m68k_svr4_return_value): New functions.
7354 (m68k_use_struct_convention): Remove function.
7355 (m68k_push_dummy_call): Use new struct_value_regnum member of
7356 `struct gdbarch_tdep' instead of hardcoded register number to
7357 store STRUCT_ADDR.
7358 (m68k_svr4_init_abi): New function.
7359 (m68k_gdbarch_init): Don't set extract_return_value,
7360 store_return_values, deprecated_extract_struct_value_address and
7361 use_struct_convention. Set return_value instead. Initialize new
7362 struct_value_regnum member of `struct gdbarch_tdep'.
7363 * m68klinux-tdep.c: Update copyright year.
7364 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7365 (m68k_linux_extract_struct_value_address): Remove function.
7366 (m68k_linux_init_abi): Don't set extract_return_value,
7367 store_return_values, deprecated_extract_struct_value_address and
7368 use_struct_convention. Call m68k_svr4_init_abi but override the
7369 new struct_value_regnum member of `struct gdbarch_tdep'.
7370 * Makefile.in (m68k-tdep.o): Update dependencies.
7371
aaa75496
JB
73722004-05-03 J. Brobecker <brobecker@gnat.com>
7373
7374 * dwarf2read.c (line_header): Add new included_p field in
7375 field file_names.
7376 (partial_die_info): New field has_stmt_list. New field line_offset.
7377 (dwarf2_create_include_psymtab): New function.
7378 (dwarf2_build_include_psymtabs): New function.
7379 (add_file_name): Add forward declaration. Initialize new field.
7380 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7381 to be able to determine the list of files included by the
7382 given unit, and build their associated psymtabs.
7383 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7384 files as well.
7385 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7386 (read_file_scope): Update call to dwarf_decode_lines.
7387 (read_partial_die): Handle DW_AT_stmt_list attributes.
7388
c848556f
MC
73892004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7390
7391 Unfix PR gdb/1626.
7392 * configure.in: Revert special case for osf5.*.
7393 * configure: Regenerate.
7394
eb4556d7
JB
73952004-05-02 Jim Blandy <jimb@redhat.com>
7396
7397 Move the symbol-file-from-memory functions into their own file.
7398 * symfile-mem.c, symfile-mem.h: New files.
7399 * symfile.c (symbol_file_add_from_bfd): New function.
7400 (symbol_file_add): Call symbol_file_add_from_bfd.
7401 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7402 Moved to symfile-mem.c.
7403 (_initialize_symfile): Move definition of
7404 add-symbol-file-from-memory command to symfile-mem.c.
7405 * symfile.h (symbol_file_add_from_bfd): New declaration.
7406 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7407 * config/powerpc/linux.mt (TDEPFILES): Same.
7408 * Makefile.in (SFILES): Add symfile-mem.c.
7409 (symfile_mem_h): New variable.
7410 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7411 (symfile-mem.o): New rule.
7412
80bb239e
AC
74132004-05-01 Andrew Cagney <cagney@redhat.com>
7414
7789d0fa
AC
7415 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7416 frame_find_by_id instead of frame_relative_level.
7417 (do_enable_breakpoint): Ditto.
7418 * thread.c: Update copyright.
7419 (info_threads_command): Ditto, simplify.
7420
80bb239e
AC
7421 * frame.c (deprecated_generic_get_saved_register): Delete
7422 function, moved to "xstormy16-tdep.c".
7423 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7424 deprecated_generic_get_saved_register from "frame.c".
7425 (xstormy16_frame_saved_register): Call
7426 xstormy16_get_saved_register.
7427 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7428 static.
7429 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7430 * frame.h (deprecated_generic_get_saved_register): Delete.
7431
b2a871dd
MC
74322004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7433
7434 * dwarfread.c: Update documentation on the state of dwarf-1.
7435
0e100dab
AC
74362004-05-01 Andrew Cagney <cagney@redhat.com>
7437
acd8056e
AC
7438 * stack.c (select_frame_command): Delete call to
7439 frame_relative_level.
7440 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7441 Delete #if0 code.
7442 (frame_info): Do not print FRAMELESS.
7443 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7444 (catch_info): Delete #if0 code.
7445
0e100dab
AC
7446 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7447 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7448 of frame_relative_level.
7449 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7450 to SENTINEL_FRAME.
7451 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7452 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7453 frame_relative_level.
7454
55699d59
AC
7455 * frame.h (deprecated_set_frame_type): Delete declaration.
7456 * frame.c (deprecated_set_frame_type): Delete function, update
7457 comments.
7458
fcf70625
AC
7459 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7460 * gdbarch.h, gdbarch.c: Re-generate.
7461 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7462 (shnbsd_pc_in_sigtramp): Delete.
7463 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7464 pc_in_sigtramp.
7465 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7466 pc_in_sigtramp.
7467 * frame.h: Update comments.
7468 * ppc-linux-tdep.c: Update comments.
7469 * breakpoint.c (bpstat_what): Update comments.
7470
ac5eccb7
AC
7471 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7472 m68klinux-tdep.o's dependencies, were previously added to
7473 m68klinux-nat.o.
7474
f2524b93
AC
7475 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7476 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7477 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7478 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7479 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7480
17e20bce
AC
7481 * Makefile.in (m68klinux-nat.o): Update dependencies.
7482 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7483 (m68k_linux_sigtramp_frame_cache)
7484 (m68k_linux_sigtramp_frame_this_id)
7485 (m68k_linux_sigtramp_frame_prev_register)
7486 (m68k_linux_sigtramp_frame_unwind)
7487 (m68k_linux_sigtramp_frame_sniffer)
7488 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7489 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7490 names, use trad-frame.h.
7491 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7492 (struct m68k_sigtramp_info): Delete.
7493 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7494 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7495 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7496 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7497 "m68klinux-tdep.c".
7498
c8864fa2
AC
7499 * infrun.c (check_sigtramp2): Delete check for
7500 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7501
511dd2cd
MK
75022004-05-01 Mark Kettenis <kettenis@gnu.org>
7503
7504 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7505
8c6b0e06
AC
75062004-05-01 Andrew Cagney <cagney@redhat.com>
7507
9df0bb3f
AC
7508 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7509 (frv_linux_sigtramp_frame_cache)
7510 (frv_linux_sigtramp_frame_this_id)
7511 (frv_linux_sigtramp_frame_prev_register)
7512 (frv_linux_sigtramp_frame_unwind)
7513 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7514 include "linux" in function and variable names, directly call
7515 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7516 the latest trad-frame code.
7517 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7518 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7519 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7520 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7521 * frv-tdep.c (frv_sigtramp_frame_cache)
7522 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7523 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7524 frv-linux-tdep.c.
7525 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7526 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7527 (frv_set_sigcontext_reg_addr): Delete function.
7528
8c6b0e06
AC
7529 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7530 (DEPRECATED_SIGTRAMP_END): Delete.
7531 * gdbarch.h, gdbarch.c: Re-generate.
7532 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7533 * config/vax/tm-vaxbsd.h: Update copyright.
7534 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7535 (DEPRECATED_IN_SIGTRAMP): Define.
7536 * config/m68k/tm-nbsd.h: Update copyright.
7537 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7538 (DEPRECATED_IN_SIGTRAMP): Define.
7539
50ea7769
MK
75402004-05-01 Mark Kettenis <kettenis@gnu.org>
7541
03ac2a74
MK
7542 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7543 encondings. Fixes PR gdb/1628.
7544
50ea7769
MK
7545 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7546 DW_CFA_restore state without a matching DW_CFA_remember_state
7547 instead of aborting. Fixes PR backtrace/1589.
7548
9a5d7be1
JB
75492004-04-30 Joel Brobecker <brobecker@gnat.com>
7550
7551 * MAINTAINERS: Add self as AIX maintainer.
7552 Update my e-mail address in write-after-approval section.
7553
2593d1cd
AC
75542004-04-30 Andrew Cagney <cagney@redhat.com>
7555
ce12bbf9
AC
7556 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7557 (legacy_get_prev_frame): Ditto.
7558
36710c63
AC
7559 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7560 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7561 * mipsread.c (sigtramp_address): Delete extern variable.
7562 (mipscoff_new_init): Delete reference.
7563 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7564 (fixup_sigtramp): Delete function.
7565 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7566 (fixup_sigtramp): Delete declarations.
7567
2593d1cd
AC
7568 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7569 deprecated_pc_in_sigtramp.
7570 (ppcnbsd_pc_in_sigtramp): Delete function.
7571
2a25f91c
MK
75722004-05-01 Mark Kettenis <kettenis@gnu.org>
7573
7574 * config/m68k/nm-nbsd.h: Tweak comments.
7575 * config/m68k/nm-nbsdaout.h: Likewise.
7576
0b281939
AC
75772004-04-30 Andrew Cagney <cagney@redhat.com>
7578
7579 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7580 legacy_pc_in_sigtramp.
7581 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7582
8f2d3ea0
MK
75832004-05-01 Mark Kettenis <kettenis@gnu.org>
7584
7585 Add OpenBSD/m68k support.
7586 * NEWS (New native configurations): Mention OpenBSD/m68k.
7587 * m68kbsd-tdep.c: New file.
7588 * m68kbsd-nat.c: New file.
7589 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7590 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7591 * configure.host: Add m68k-*-openbsd.
7592 * configure.tgt: Add m68k-*-openbsd.
7593 * config/m68k/tm-obsd.h: New file.
7594 * config/m68k/obsd.mt: New file.
7595 * config/m68k/obsd.mh: New file.
7596 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7597 m68kbsd-tdep.c.
7598
c40f49a4
AC
75992004-04-30 Andrew Cagney <cagney@redhat.com>
7600
7601 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7602 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7603
e81554cd
MK
76042004-04-30 Mark Kettenis <kettenis@gnu.org>
7605
7606 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7607 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7608
d4dc1a91
BF
76092004-04-30 Brian Ford <ford@vss.fsi.com>
7610
7611 Revert 2004-04-16 change.
7612 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7613 (i386_coff_init_abi): Remove.
7614 * i386-tdep.h (i386_coff_init_abi): Remove.
7615 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7616
2f72f850
AC
76172004-04-30 Andrew Cagney <cagney@redhat.com>
7618
e492f9d6
AC
7619 * blockframe.c (find_pc_partial_function): Delete use of
7620 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7621 DEPRECATED_SIGTRAMP_END.
7622
7b7adad0
AC
7623 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7624 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7625 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7626 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7627 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7628
2f72f850
AC
7629 * defs.h (deprecated_inside_entry_file): Delete declaration.
7630 * blockframe.c (deprecated_inside_entry_file): Delete function.
7631 (legacy_frame_chain_valid): Delete call.
7632 * sh64-tdep.c (sh64_frame_chain): Delete call.
7633 * objfiles.h: Update comments.
7634 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7635 call.
7636 * frame.c (get_prev_frame): Delete call, update comments.
7637
283f90a7
BF
76382004-04-30 Brian Ford <ford@vss.fsi.com>
7639
7640 * MAINTAINERS (Write After Approval): Add myself.
7641
8ee56bcf
AC
76422004-04-30 Andrew Cagney <cagney@redhat.com>
7643
7644 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7645 * gdbarch.h, gdbarch.c: Re-generate.
7646 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7647 code.
7648
ee27e1b6
AC
76492004-04-30 Andrew Cagney <cagney@redhat.com>
7650
7651 * gdb-events.sh (selected_thread_changed)
7652 (selected_frame_level_changed, target_changed): Delete.
7653 * gdb-events.h, gdb-events.c: Re-generate.
7654 * valops.c (value_assign): Update.
7655 * stack.c (select_frame_command, up_silently_base)
7656 (down_silently_base): Update.
7657
d5ac5a39
AC
76582004-04-29 Andrew Cagney <cagney@redhat.com>
7659
7660 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7661 registers correctly.
7662 (print_gp_register_row, mips32_heuristic_proc_desc)
7663 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7664 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7665 references to mips_isa_regsize.
7666
ceae6e75
AC
76672004-04-29 Andrew Cagney <cagney@redhat.com>
7668
7669 * mips-tdep.c (struct gdbarch_tdep): Delete
7670 mips_fp_register_double.
7671 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7672 mips_abi_regsize.
7673 (mips_gdbarch_init): Do not set mips_fp_register_double.
7674 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7675
a587af0b
AC
76762004-04-29 Joel Brobecker <brobecker@gnat.com>
7677
7678 Committed by Andrew Cagney.
7679 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7680 function calls.
7681
13326b4e
AC
76822004-04-29 Andrew Cagney <cagney@redhat.com>
7683
7684 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7685 gdbarch, use mips_abi, update callers.
7686 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7687 mips_abi_regsize, update callers.
7688 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7689 mips_default_abi_regsize.
7690 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7691 mips_default_abi_regsize.
7692
711cc5cd
AC
76932004-04-29 Andrew Cagney <cagney@redhat.com>
7694
1b13c4f6
AC
7695 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7696 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7697 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7698 mips_default_abi_regsize.
7699 (mips_isa_regsize): Rename mips_regisze.
7700 * mipsnbsd-tdep.c: Update.
7701 * mips-linux-tdep.c: Update.
7702 * irix5-nat.c: Update.
7703 * mips-tdep.h (mips_isa_regsize): Update.
7704
711cc5cd
AC
7705 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7706 Delete all disabled code.
7707 * gdb-events.h, gdb-events.c: Re-generate.
7708
e63bbc88
MK
77092004-04-19 Jerome Guitton <guitton@gnat.com>
7710 Mark Kettenis <kettenis@gnu.org>
7711
7712 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7713 the function begins with a branch instruction.
7714
fd35795f
MK
77152004-04-29 Mark Kettenis <kettenis@gnu.org>
7716
7717 * i386-tdep.c: Fix spelling mistakes.
7718
c960c18f
AC
77192004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7720 Andrew Cagney <cagney@redhat.com>
7721
7722 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7723 <sys/proc.h>.
7724 * acconfig.h: Provide default _KMEMUSER value.
7725 * config.in, configure: Re-generate.
7726 * NEWS: Mention fix.
7727
50306a9d
RC
77282004-04-24 Randolph Chung <tausq@debian.org>
7729
7730 * configure.host (hppa*-*-linux*): New target.
7731 * configure.tgt (hppa*-*-linux*): Likewise.
7732 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7733 gdbarch_init_osabi() call earlier so that osabi-specific frame
7734 unwinders can be registered first.
7735 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7736 hppa-linux-nat.c.
7737 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7738 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7739 * config/pa/linux.mh: New file.
7740 * config/pa/linux.mt: New file.
7741 * config/pa/nm-linux.h: New file.
7742 * config/pa/xm-linux.h: New file.
7743 * hppa-linux-nat.c: New file.
7744 * hppa-linux-tdep.c: New file.
7745
2a6228ef
RC
77462004-04-28 Randolph Chung <tausq@debian.org>
7747
7748 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7749 return values.
7750 (hppa32_push_dummy_call): Fix small struct and floating point argument
7751 passing, and make sure the stack frame is properly aligned.
7752
82c10df6
AC
77532004-04-28 Andrew Cagney <cagney@redhat.com>
7754
d762c46a
AC
7755 * stack.c (print_stack_frame): Fix description.
7756
82c10df6
AC
7757 * NEWS: Mention gdb/gdbserver/configure execute permission
7758 changed. PR server/519.
7759
0faf0076
AC
77602004-04-28 Andrew Cagney <cagney@redhat.com>
7761
7762 * stack.c (print_stack_frame_stub): Delete declaration.
7763 (struct print_stack_frame_args, print_stack_frame)
7764 (print_frame_info, print_frame): Replace "source" with print what.
7765 Replace "print" with "print_level". Replace "args" with
7766 "print_args".
7767 * frame.h (show_and_print_stack_frame, print_stack_frame)
7768 (print_frame_info): Update declarations.
7769 * stack.c (select_and_print_frame, frame_command)
7770 (current_frame_command, up_command, down_command): Update calls -
7771 use get_selected_frame, pass "enum print_what" for source, do not
7772 call frame_relative_level.
7773 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7774 * remote-rdp.c (remote_rdp_open): Ditto.
7775 * remote-mips.c (common_open): Ditto.
7776 * remote-e7000.c (e7000_start_remote): Ditto.
7777 * ocd.c (ocd_start_remote): Ditto.
7778 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7779 * infrun.c (normal_stop): Ditto.
7780 * inflow.c (kill_command): Ditto.
7781 * infcmd.c (finish_command): Ditto.
7782 * corelow.c (core_open): Ditto.
7783 * tracepoint.c (finish_tfind_command): Ditto.
7784 * thread.c (info_threads_command, info_threads_command)
7785 (restore_current_thread, do_captured_thread_select): Ditto.
7786 * ada-tasks.c (task_command): Ditto.
7787
f4c5303c
OF
77882004-04-26 Orjan Friberg <orjanf@axis.com>
7789
7790 * frame.c: Include "observer.h".
7791 (frame_observer_target_changed): New function.
7792 (_initialize_frame): Attach target_changed observer.
7793 * regcache.c: Include "observer.h".
7794 (regcache_observer_target_changed): New function.
7795 (_initialize_regcache): Attach target_changed observer.
7796 * valops.c: Include "observer.h".
7797 (value_assign): Notify target_changed event when modifying register.
7798 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7799
7270d8f2
OF
78002004-04-26 Orjan Friberg <orjanf@axis.com>
7801
7802 From Paul Koning <pkoning@equallogic.com>:
7803 * breakpoint.c (free_valchain): New function.
7804 (insert_bp_location, delete_breakpoint): Use free_valchain.
7805 (remove_breakpoint): Do not remove the valchain.
7806 (bpstat_stop_status): If not stopped by watchpoint, skip
7807 watchpoints when generating stop status list.
7808 * infrun.c (handle_inferior_event): Make
7809 stepped_after_stopped_by_watchpoint a global variable.
7810 * remote.c (remote_stopped_data_address): Return watch data
7811 address rather than zero if stepped_after_stopped_by_watchpoint is
7812 set.
7813
02d62932
MC
78142004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7815
7816 Fix PR gdb/1626.
7817 * configure.in: Check for curses after termcap.
7818 On osf5.*, do not check for ncurses.
7819 * configure: Regenerate.
7820
3e9a183c
MK
78212004-04-25 Mark Kettenis <kettenis@gnu.org>
7822
c79ac407
MK
7823 * ppcobsd-nat.c: Include "ppc-tdep.h".
7824 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7825
3e9a183c
MK
7826 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7827 Fixes PR tdep/1623 and PR tdep/1624.
7828
38cc9c28
MC
78292004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7830
7831 * xmodem.h, xmodem.c: Remove files.
7832 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7833
7f07c5b6
RC
78342004-04-23 Randolph Chung <tausq@debian.org>
7835
7836 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7837 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7838 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7839 for handling stackless frames.
7840 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7841
9f7194c3
RC
78422004-04-23 Randolph Chung <tausq@debian.org>
7843
7844 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7845 starts at a pc before the frame is created.
7846
dcff6009
JB
78472004-04-23 Joel Brobecker <brobecker@gnat.com>
7848
7849 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7850
40711ff1 78512004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7852
7853 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7854 use convert_typed_floating to get the appropriate format.
7855
abc485a1
RC
78562004-04-22 Randolph Chung <tausq@debian.org>
7857
7858 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7859 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7860 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7861 (hppa_sign_extend): Add prototype.
7862 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7863 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7864 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7865 hppa targets will also use these functions.
7866 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7867 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7868 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7869 (hppa_gdbarch_init): Remove gdbarch setting of
7870 skip_trampoline_code, in_solib_call_trampoline and
7871 in_solib_return_trampoline.
7872 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7873 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7874 hppa_in_solib_call_trampoline.
7875 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7876 Moved from hppa-tdep.c.
7877 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7878 in_solib_call_trampoline and in_solib_return_trampoline.
7879
369aa520
RC
78802004-04-22 Randolph Chung <tausq@debian.org>
7881
7882 * hppa-tdep.c (hppa_debug): New variable.
7883 (find_unwind_entry, hppa_frame_cache): Add debug output.
7884 (_initialize_hppa_tdep): Add command to set debug flag.
7885
476be15e
AC
78862004-04-22 Andrew Cagney <cagney@redhat.com>
7887
7888 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7889 "trad-frame.h".
7890 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7891 signal trampoline unwinder.
7892 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7893
d195bc9f
MK
78942004-04-22 Mark Kettenis <kettenis@gnu.org>
7895
7896 Add OpenBSD/powerpc support.
7897 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7898 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7899 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7900 (ppc_collect_fpregset): New prototypes.
7901 * ppcobsd-nat.c: New file.
7902 * ppcobsd-tdep.c: New file.
7903 * ppcobsd-tdep.h: New file.
7904 * rs6000-tdep.c: Include "regset.h".
7905 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7906 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7907 New functions.
7908 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7909 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7910 (rs6000-tdep.o): Update dependencies.
7911 * configure.host: Add powerpc-*-openbsd.
7912 * configure.tgt: Add powerpc-*-openbsd.
7913 * config/powerpc/obsd.mh: New file.
7914 * config/powerpc/nm-obsd.h: New file.
7915 * config/powerpc/obsd.mt: New file.
7916
6f14cc33
AC
79172004-04-22 Andrew Cagney <cagney@redhat.com>
7918
fcf29e5f
AC
7919 * frame.h (show_frame_info): Delete declaration.
7920
6f14cc33
AC
7921 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7922 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7923 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7924 * frv-tdep.c (frv_frame_this_id): Ditto.
7925 * avr-tdep.c (avr_frame_this_id): Ditto.
7926
e5786a5c
EZ
79272004-04-22 Elena Zannoni <ezannoni@redhat.com>
7928
7929 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7930
26e75e5c
JB
79312004-04-22 Jim Blandy <jimb@redhat.com>
7932
7933 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7934 register number zero.
7935
d8d65dd3
MS
79362004-04-21 Michael Snyder <msnyder@redhat.com>
7937
7938 * mips-tdep.c (heuristic_proc_start):
7939 Warning() already prefixes "Warning: ".
7940
9a4105ab
AC
79412004-04-21 Andrew Cagney <cagney@redhat.com>
7942
7943 * annotate.h (deprecated_annotate_starting_hook)
7944 (deprecated_annotate_stopped_hook)
7945 (deprecated_annotate_exited_hook)
7946 (deprecated_annotate_signal_hook)
7947 (deprecated_annotate_signalled_hook): Deprecate.
7948 * tracepoint.h (deprecated_create_tracepoint_hook)
7949 (deprecated_delete_tracepoint_hook)
7950 (deprecated_modify_tracepoint_hook)
7951 (deprecated_trace_find_hook)
7952 (deprecated_trace_start_stop_hook): Deprecate.
7953 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7954 * remote.h (deprecated_target_resume_hook)
7955 (deprecated_target_wait_loop_hook): Deprecate.
7956 * gdbcore.h (deprecated_exec_file_display_hook)
7957 (deprecated_file_changed_hook): Deprecate.
7958 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7959 * defs.h (deprecated_modify_breakpoint_hook)
7960 (deprecated_command_loop_hook, deprecated_show_load_progress)
7961 (deprecated_print_frame_info_listing_hook)
7962 (deprecated_query_hook, deprecated_warning_hook)
7963 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7964 (deprecated_delete_breakpoint_hook)
7965 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7966 (deprecated_readline_begin_hook, deprecated_readline_hook)
7967 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7968 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7969 (deprecated_context_hook, deprecated_target_wait_hook)
7970 (deprecated_attach_hook, deprecated_detach_hook)
7971 (deprecated_call_command_hook, deprecated_set_hook)
7972 (deprecated_error_hook, deprecated_error_begin_hook)
7973 (deprecated_ui_load_progress_hook): Deprecate.
7974 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7975 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7976 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7977 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7978 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7979 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7980 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7981 * annotate.c, aix-thread.c: Update.
7982
62cf13cc
AC
79832004-04-21 Andrew Cagney <cagney@redhat.com>
7984
b2e31a62
AC
7985 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7986 * vaxnbsd-tdep.c: Include "gdb_string.h".
7987
62cf13cc
AC
7988 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7989 (add_symbol_file_from_memory_command): #if 0 function body, call
7990 error instead.
7991
00e32a35
AC
79922004-04-21 Andrew Cagney <cagney@redhat.com>
7993
7994 * gdbcore.h: Update copyright.
7995 (deprecated_add_core_fns): Rename add_core_fns.
7996 * win32-nat.c (_initialize_core_win32): Update.
7997 * sun3-nat.c (_initialize_core_sun3): Update.
7998 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7999 * rs6000-nat.c (_initialize_core_rs6000): Update.
8000 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8001 * nto-tdep.c (_initialize_nto_tdep): Update.
8002 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8003 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8004 * mips-nat.c (_initialize_core_mips): Update.
8005 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8006 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8007 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8008 * lynx-nat.c (_initialize_core_lynx): Update.
8009 * irix5-nat.c (_initialize_core_irix5): Update.
8010 * i386-interix-nat.c (_initialize_core_interix): Update.
8011 * cris-tdep.c (_initialize_cris_tdep): Update.
8012 * corelow.c (deprecated_add_core_fns): Update.
8013 * core-regset.c (_initialize_core_regset): Update.
8014 * core-aout.c (_initialize_core_aout): Update.
8015 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8016 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8017 * alpha-nat.c (_initialize_core_alpha): Update.
8018
13c7b1ca
JB
80192004-04-21 Jim Blandy <jimb@redhat.com>
8020
8021 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8022
7b5a2f43
DJ
80232004-04-19 Daniel Jacobowitz <drow@mvista.com>
8024
8025 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8026 Delete.
8027 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8028 (read_attribute_value): Update calls to dwarf_alloc_block.
8029 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8030 dwarf2_tmp_obstack.
8031 (psymtab_to_symtab_1): Likewise. Clean up using
8032 free_stack_comp_unit.
8033 (add_to_cu_func_list): Use the comp_unit_obstack.
8034
05cf31d1
JB
80352004-04-19 Joel Brobecker <brobecker@gnat.com>
8036
8037 * dwarf2read.c (dwarf2_flag_true_p): New function.
8038 (die_is_declaration): Use the function above. Add some comments.
8039
adf93a2f
MK
80402004-04-19 Mark Kettenis <kettenis@gnu.org>
8041
8042 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8043 architecture when registering sparcnbsd_core_osabi_sniffer.
8044 Adjust comment.
8045
748894bf
MK
80462004-04-18 Mark Kettenis <kettenis@gnu.org>
8047
f622ad42
MK
8048 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8049 return value.
8050
c4fc7f1b
MK
8051 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8052 * i386-tdep.c: Correct register numbering scheme comments
8053 throughout.
8054 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8055 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8056 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8057 (i386_gdb_arch_init): Likewise.
8058
b4ead1bd
MK
8059 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8060 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8061 ppcnbsd-tdep.o.
8062
748894bf
MK
8063 * m68k-tdep.h: Tweak comments.
8064 * m68k-tdep.c: Tweak comment.
8065
fdd72f95
RC
80662004-04-17 Randolph Chung <tausq@debian.org>
8067
8068 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8069 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8070 (hppa_hpux_som_init_abi): Set is_elf to 0.
8071 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8072 * hppa-tdep.c (low_text_segment_address): Remove global.
8073 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8074 section offset to calculate segment address.
8075 (internalize_unwinds): Define low_text_segment_address as local and
8076 pass to record_text_segment_lowaddr for ELF targets.
8077 (hppa_gdbarch_init): Zero fill tdep structure.
8078 (hppa_dump_tdep): Print tdep structure.
8079 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8080
0f8d9d59
RC
80812004-04-17 Randolph Chung <tausq@debian.org>
8082
8083 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8084 (hppa_gdbarch_init): Set pseudo_register_read.
8085 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8086 * regcache.c (supply_register): Remove check for
8087 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8088
7c46b9fb
RC
80892004-04-17 Randolph Chung <tausq@debian.org>
8090
8091 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8092 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8093 (hpread_adjust_stack_address): Move to hpread.c.
8094 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8095 obj_private_struct): Move from tm-hppa.h.
8096 * hpread.c (hppa-tdep.h): Include.
8097 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8098 (hpread_read_function_type, hpread_read_doc_function_type)
8099 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8100 directly.
8101 * pa64solib.c (hppa-tdep.h): Include.
8102 * somsolib.c (hppa-tdep.h): Include.
8103 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8104 inferior_status): Remove unused forward declarations.
8105 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8106 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8107 obj_private_struct): Move to hppa-tdep.h.
8108 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8109
8d153463
RC
81102004-04-17 Randolph Chung <tausq@debian.org>
8111
8112 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8113 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8114 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8115 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8116 Remove forward declaration and make static.
8117 (hppa_reg_struct_has_addr): Remove.
8118
350c2e5b
JB
81192004-04-16 Joel Brobecker <brobecker@gnat.com>
8120
8121 * observer.sh: Move comments in sed command to first column.
8122
bbde78fa
JM
81232004-04-16 Jason Molenda (jmolenda@apple.com)
8124
8125 * frame.c: Minor typeo corrections in comments.
8126
e0270fd9
JB
81272004-04-16 Joel Brobecker <brobecker@gnat.com>
8128
8129 * observer.c (observer_test_first_notification_function): Update
8130 function profile.
8131 (observer_test_second_notification_function): Likewise.
8132 (observer_test_third_notification_function): Likewise.
8133
3d049254
MK
81342004-04-16 Mark Kettenis <kettenis@gnu.org>
8135
8136 From Brian Ford <ford@vss.fsi.com>:
8137 * i386-tdep.c (i386_coff_init_abi): New function.
8138 * i386-tdep.h (i386_coff_init_abi): New prototype.
8139 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8140 register number translation functions for DWARF and DWARF 2.
8141
7867684d
JB
81422004-04-16 Joel Brobecker <brobecker@gnat.com>
8143
8144 * dwarf2read.c: Back out my previous change, it was incorrect.
8145
72bf9492
DJ
81462004-04-16 Daniel Jacobowitz <drow@mvista.com>
8147
8148 * dwarf2read.c: Include "hashtab.h".
8149 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8150 has_namespace_info.
8151 (struct partial_die_info): Add comments. Use bitfields to reduce
8152 memory footprint. Add scope, scope_set, has_specification,
8153 spec_offset, die_parent, die_child, and die_sibling.
8154 (peek_die_abbrev): Add prototype.
8155 (partial_read_comp_unit_head): New function, broken out from
8156 dwarf2_build_psymtabs_hard.
8157 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8158 Use partial_read_comp_unit_head. Initialize the CU and
8159 comp_unit_obstack. Update calls to read_partial_die and
8160 scan_partial_symbols. Use free_stack_comp_unit and
8161 load_partial_dies.
8162 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8163 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8164 Update calls to helper functions. Remove NAMESPACE argument.
8165 Update comments.
8166 (partial_die_parent_scope, partial_die_full_name): New functions.
8167 (add_partial_symbol): Remove namespace argument. Update call to
8168 pdi_needs_namespace. Use partial_die_full_name. Handle
8169 DW_TAG_namespace. Check has_namespace_info flag.
8170 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8171 tag. Handle namespaces.
8172 (add_partial_namespace, add_partial_enumeration): Simplify.
8173 (guess_structure_name): New function, derived from
8174 add_partial_structure.
8175 (add_partial_structure): Remove.
8176 (determine_class_name): Update comment.
8177 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8178 (is_type_tag_for_partial, load_partial_dies): New functions.
8179 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8180 Record specifications instead of following them immediately.
8181 (find_partial_die_in_comp_unit, find_partial_die)
8182 (fixup_partial_die, free_stack_comp_unit)
8183 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8184 (partial_die_hash, partial_die_eq): New functions.
8185 * Makefile.in (hashtab_h): Define.
8186 (dwarf2read.o): Update dependencies.
8187 (observer_inc, observer_h): Move to the correct section.
8188
fdc860a3
JB
81892004-04-15 Joel Brobecker <brobecker@gnat.com>
8190
8191 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8192 (die_is_declaration): Use the function above. Add comment.
8193
dc718098
JB
81942004-04-15 Joel Brobecker <brobecker@gnat.com>
8195
8196 * dwarf2read.c (read_structure_scope): Identify stub types
8197 using die_is_declaration() only.
8198
8718a420
RM
81992004-04-15 Roland McGrath <roland@redhat.com>
8200
8201 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8202 argument instead of NAME.
8203 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8204 in call to symbol_file_add_with_addrs_or_offsets.
8205 (build_addr_info): New function, helper for ...
8206 (symbol_file_add_from_memory): New function.
8207 (add_symbol_file_from_memory_command): New function using that.
8208 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8209 (pre_add_symbol_hook): Add const to argument type.
8210 * symfile.h (symbol_file_add_from_memory): Declare it.
8211
8b910bab
MK
82122004-04-15 Mark Kettenis <kettenis@gnu.org>
8213
9f076e7a
MK
8214 * NEWS (New native configurations): Mention OpenBSD/vax.
8215 * configure.host: Add vax-*-openbsd*.
8216 * config/vax/obsd.mh: New file.
8217 * config/vax/nm-obsd.h: New file.
8218
8b910bab
MK
8219 * vax-tdep.c: Include "regset.h".
8220 (vax_supply_gregset): New function.
8221 (vax_gregset): New variable.
8222 (vax_regset_from_core_section): New function.
8223 (vax_gdbarch_init): Set regset_from_core_section.
8224 * Makefile.in (vax-tdep.o): Update dependencies.
8225
7a464420
AC
82262004-04-15 Andrew Cagney <cagney@redhat.com>
8227
8228 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8229 (observer_normal_stop_notification_stub)
8230 (observer_attach_normal_stop, observer_detach_normal_stop):
8231 Delete, replaced by #include "observer.inc".
8232 * infrun.c (normal_stop): Pass "stop_bpstat" to
8233 observer_notify_normal_stop.
8234 * Makefile.in (observer_inc): Define.
8235 (observer.o): Update dependencies.
8236 (observer.h, observer.inc): New rules.
8237 * observer.h: Delete file.
8238 * observer.sh: New file.
8239
e36ad527
MK
82402004-04-15 Mark Kettenis <kettenis@gnu.org>
8241
8242 * vax-tdep.c (vax_frame_cache): Fix typo.
8243
67b441e1
MK
82442004-04-14 Mark Kettenis <kettenis@gnu.org>
8245
6f606e1c
MK
8246 * NEWS (New native configurations): Mention NetBSD/vax.
8247 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8248 * config/vax/nbsdelf.mh: New file.
8249 * config/vax/nbsdaout.mh: New file.
8250 * config/vax/nm-nbsd.h: New file.
8251 * config/vax/nm-nbsdaout.h: New file.
8252
9c5519a5
MK
8253 * vaxnbsd-tdep.c: New file.
8254 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8255 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8256 * config/vax/nbsd.mt: New file.
8257 * config/vax/tm-nbsd.h: New file.
8258
4844a614
MK
8259 * Makefile.in (vaxbsd-nat.o): New dependency.
8260
67b441e1
MK
8261 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8262 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8263 struct_addr arguments. Don't push return value address.
8264 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8265 arguments to vax_store_arguments. Store return value address in
8266 R1.
8267 (vax_store_struct_return, vax_extract_return_value)
8268 (vax_store_return_value): Remove functions.
8269 (vax_return_value): New function.
8270 (vax_gdbarch_init): Set return value. Don't set
8271 deprecated_store_struct_return, deprecated_extract_struct_return
8272 and deprecated_store_return_value.
8273
6672f2ae
AS
82742004-04-14 Andreas Schwab <schwab@suse.de>
8275
8276 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8277 value buffer.
8278 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8279
7346c184
MK
82802004-04-14 Mark Kettenis <kettenis@gnu.org>
8281
8282 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8283 (vax_unwind_dummy_id): New functions.
8284 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8285 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8286 variables.
8287 (vax_fix_call_dummy): Remove function.
8288 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8289 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8290 call_dummy_location, deprecated_call_dummy_words,
8291 deprecated_sizeof_call_dummy_words,
8292 deprecated_call_dummy_breakpoint_offset,
8293 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8294 and deprecated_dummy_write_sp.
8295
58e23df4
DC
82962004-04-13 David Carlton <carlton@kealia.com>
8297
8298 * MAINTAINERS: Move myself to "paper trail" section.
8299
5e6b39ff
MK
83002004-04-12 Mark Kettenis <kettenis@gnu.org>
8301
7def7fef
MK
8302 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8303 "trad-frame.h".
8304 (vax_frame_init_saved_regs): Remove function.
8305 (vax_sigtramp_saved_pc): Remove function.
8306 (vax_frame_saved_pc): Remove function.
8307 (vax_frame_args_address): Remove function.
8308 (vax_frame_num_args): Rewrite.
8309 (vax_frame_chain): Remove function.
8310 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8311 VAX_FP_REGNUM.
8312 (vax_pop_frame): Likewise.
8313 (vax_saved_pc_after_call): Remove function.
8314 (struct vax_frame_cache): New structure.
8315 (vax_frame_cache): New function.
8316 (vax_frame_this_id): New function.
8317 (vax_frame_prev_register): New function.
8318 (vax_frame_unwind): New variable.
8319 (vax_frame_sniffer): New function.
8320 (vax_frame_base_address): New function.
8321 (vax_frame_args_address): New function.
8322 (vax_frame_base): New variable.
8323 (vax_unwind_pc): New function.
8324 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8325 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8326 deprecated_frame_chain, deprecated_frame_saved_pc,
8327 deprecated_frame_args_address and
8328 deprecated_frame_init_saved_regs.
8329 * Makefile.in (vax-tdep.o): Update dependencies.
8330
53284fc1
MK
8331 * vaxbsd-nat.c: New file.
8332
5e6b39ff
MK
8333 * vax-tdep.h: Update copyright year. Adjust comments.
8334 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8335 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8336 (vax_regnum): New enum. Replacing...
8337 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8338 (VAX_PS_REGNUM): ... these removed macros.
8339 * vax-tdep.c (vax_register_name): Remove prototype.
8340 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8341 (vax_register_byte, vax_register_raw_size,
8342 vax_register_virtual_size, vax_register_virtual_type): Remove
8343 functions.
8344 (vax_register_type): New function.
8345 (vax_breakpoint_from_pc): Reorganize.
8346 (vax_gdbarch_init): Set register_type. Don't set
8347 deprecated_register_size, deprecated_register_bytes,
8348 deprecated_register_byte, deprecated_register_raw_size,
8349 deprecated_max_register_raw_size,
8350 deprecated_register_virtual_size,
8351 deprecated_max_register_virtual_size and
8352 deprecated_register_virtual_type. Add comment on stack direction.
8353
e9c71e9f
MK
83542004-04-11 Mark Kettenis <kettenis@gnu.org>
8355
8356 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8357 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8358 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8359
d46f1176 83602004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8361
d46f1176
RC
8362 * MAINTAINERS (write after approval): Add myself.
8363
a2a84a72
RC
83642004-04-07 Randolph Chung <tausq@debian.org>
8365
8366 * hppa-tdep.c (hppa_inner_than): Remove.
8367 (is_pa_2): Remove unused static variable.
8718a420 8368 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8369
e85c3284
PH
83702004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8371
8372 * language.h (language_defn): Add new la_post_parser field.
8373 * parser-defs.h (null_post_parser): New declaration (default for
8374 la_post_parser).
8718a420 8375
e85c3284
PH
8376 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8377 insert call to that function.
8378 (parse_exp_in_context): New function, including code formerly in
8718a420 8379 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8380 prefixification.
8381 (parse_expression_in_context): New exported function.
8382 (null_post_parser): New definition.
8383 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8384
e85c3284
PH
8385 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8386 * c-lang.c (c_language_defn): Ditto.
8387 (cplus_language_defn): Ditto.
8388 (asm_language_defn): Ditto.
8389 (minimal_language_defn): Ditto.
8390 * f-lang.c (f_language_defn): Ditto.
8391 * jv-lang.c (java_language_defn): Ditto.
8392 * language.c (unknown_language_defn): Ditto.
8393 (auto_language_defn): Ditto.
8394 (local_language_defn): Ditto.
8395 * m2-lang.c (m2_language_defn): Ditto.
8396 * scm-lang.c (scm_language_defn): Ditto.
8397 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8398
d9f8c85b
MK
83992004-04-10 Mark Kettenis <kettenis@gnu.org>
8400
fa34704a
MK
8401 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8402 (amd64nbsd_mcontext_addr): New function.
8403 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8404 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8405 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8406
403e1656
MK
8407 * corelow.c (core_xfer_partial): Fix coding standards violation.
8408 Add support for TARGET_OBJECT_WCOOKIE.
8409
a57e5a95
MK
8410 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8411 deprecated_pc_in_sigtramp.
8412 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8413 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8414 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8415 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8416 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8417 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8418 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8419
377d9ebd
MK
8420 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8421 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8422 Fix typo.
8423
f0ef85a5
MK
8424 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8425 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8426 (amd64_collect_fxsave): Likewise.
8427
d9f8c85b
MK
8428 * i386-sol2-tdep.c: Include "gdb_string.h".
8429 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8430 name.
8431 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8432
75f501b5
MK
84332004-04-10 Mark Kettenis <kettenis@gnu.org>
8434
8435 * i386-sol2-tdep.c: Include "solib-svr4.h".
8436 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8437 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8438 * config/i386/tm-i386sol2.h: Include :solib.h".
8439 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8440 solib-svr4.o and solib-legacy.o.
8441 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8442 solib-svr4.o.
8443
b31bc724
MK
84442004-04-09 Mark Kettenis <kettenis@gnu.org>
8445
18bbbd9e
MK
8446 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8447 whether a register is supplied by PTRACE_GETFPREGS.
8448 (store_inferior_registers): Likewise.
8449 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8450 whether a register is supplied by PT_GETFPREGS.
8451 (store_inferior_registers): Likewise.
8452
3c30bf1b
MK
8453 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8454 * config/i386/linux64.mt (TDEPFILES): Likewise.
8455
a4194092
MK
8456 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8457
911bc6ee
MK
8458 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8459 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8460 the program counter is in the range specified by `struct
8461 gdbarch_tdep'.
8462 * amd64-linux-tdep.c: Include "symtab.h".
8463 (amd64_linux_pc_in_sigtramp): Remove function.
8464 (amd64_linux_sigtramp_p): New function.
8465 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8466 deprecated_pc_in_sigtramp.
8467 * amd64nbsd-tdep.c: Include "symtab.h".
8468 (amd64nbsd_sigtramp_p): New function.
8469 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8470 deprecated_pc_in_sigtramp.
8471 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8472 few comments.
8473 (amd64obsd_pc_in_sigtramp): Remove function.
8474 (amd64obsd_sigtramp_p): New function.
8475 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8476 deprecated_pc_in_sigtramp.
8477 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8478 (i386bsd_pc_ins_sigtramp): Remove prototype.
8479 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8480 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8481 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8482 the program counter is in the range specified by `struct
8483 gdbarch_tdep'.
8484 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8485 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8486 (i386_go32_pc_in_sigtramp): Remove function.
8487 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8488 Initialize TDEP->sigtramp_p.
8489 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8490 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8491 deprecated_pc_in_sigtramp.
8492 * i386-linux-tdep.c: Adjust comments.
8493 (i386_linux_pc_in_sigtramp): Remove function.
8494 (i386_linux_sigtramp_p): New function.
8495 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8496 deprecated_pc_in_sigtramp.
8497 * i386-nto-tdep.c: Update copyright year.
8498 (i386nto_pc_in_sigtramp): Remove function.
8499 (i386nto_sigtramp_p): New function.
8500 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8501 SP_REGNUM.
8502 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8503 deprecated_pc_in_sigtramp.
8504 * i386-sol2-tdep.c: Update copyright year.
8505 (i386_sol2_pc_in_sigtramp): Remove function.
8506 (i386_sol2_sigtramp_p): New function.
8507 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8508 deprecated_pc_in_sigtramp.
8509 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8510 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8511 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8512 deprecated_sigtramp_start and deprecated_sigtramp_end.
8513 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8514 (i386nbsd_pc_in_sigtramp): Remove function.
8515 (i386nbsd_sigtramp_p): New function.
8516 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8517 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8518 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8519 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8520 (i386obsd_pc_in_sigtramp): Remove function.
8521 (i386obsd_sigtramp_p): New function.
8522 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8523 functions.
8524 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8525 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8526 TDEP->sigtramp_p.
8527 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8528 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8529 dependencies.
8530
e083e6ec
MK
8531 * config/i386/i386aout.mt: Remove file.
8532
bd153b94
MK
8533 * configure.tgt: Remove i[34567]86-*-go32*,
8534 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8535 and i[34567]86-*-isc*. Set gdb_target to i386 for
8536 i[34567]86-*-netware* and i[34567]86-*-*.
8537 * config/i386/i386.mt: New file.
8538 * config/i386/embed.mt: Remove file.
8539 * config/i386/go32.mt: Remove file.
8540 * config/i386/i386nw.mt: Remove file.
8541 * config/i386/i386v.mt: Remove file.
8542 * config/i386/tm-go32.h: Remove file.
8543
4a1bcc8c
MK
8544 * tui/tui-hooks.c: Include "readline/readline.h" after
8545 "gdb_curses.h" instead of before.
8546 * tui/tui-io.c: Likewise.
8547
f9a79064
MK
8548 * tui/tui.c: Fix typo in comment.
8549
b31bc724
MK
8550 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8551
f83f82bc
AC
85522004-04-08 Andrew Cagney <cagney@redhat.com>
8553
8554 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8555 (deprecated_exception_support_initialized): Declare.
8718a420 8556 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8557 (initialize_hp_cxx_exception_support)
8558 (child_enable_exception_callback): Update.
8559 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8560 (deprecated_exception_support_initialized): Rename
8561 deprecated_exception_catchpoints_are_fragile and
8562 deprecated_exception_support_initialized.
8563 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8564
8565 * symtab.c (deprecated_hp_som_som_object_present): Rename
8566 hp_som_som_object_present.
8567 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8568 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8569 Update. Delete extern declaration.
8570 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8571 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8572 (parse_nested_classes_for_hpacc): Ditto.
8573 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8574 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8575 (initialize_hp_cxx_exception_support): Ditto.
8576 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8577 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8578 (cp_print_class_method): Ditto.
8718a420 8579 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8580 (c_type_print_base): Ditto.
8581 * c-exp.y (hp_som_som_object_present): Ditto.
8582
fb2be677
AC
85832004-04-08 Andrew Cagney <cagney@redhat.com>
8584
8585 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8586 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8587 (frame_unwind_find_by_frame): Re-implement the unwind code so
8588 that it can both prepend and append sniffers. Replace
8589 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8590 * tramp-frame.c (tramp_frame_append): Use
8591 frame_unwind_prepend_unwinder.
8592 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8593 frame_unwind_register_unwinder.
8594 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8595 tramp_frame_append.
8596 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8597 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8598 (mips_linux_init_abi): Update.
8599
67faf007
KB
86002004-04-08 Kevin Buettner <kevinb@redhat.com>
8601
8602 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8603 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8604 file support.
8605
8973ff21
KB
86062004-04-07 Kevin Buettner <kevinb@redhat.com>
8607
8608 * ia64-tdep.c (elf.h): Don't include.
8609 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8610
4a0e2f88
JM
86112004-04-07 Jason Molenda (jmolenda@apple.com)
8612
8613 * frame.h: Typeo corrections in comments.
8614
9872ad24
JB
86152004-04-07 Jim Blandy <jimb@redhat.com>
8616
8617 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8618 %esp and %ebp
8619
70b216c8
MK
86202004-04-07 Mark Kettenis <kettenis@gnu.org>
8621
11d5789c
MK
8622 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8623 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8624 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8625 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8626 and solib-legacy.o.
8627 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8628 solib-svr4.o.
8629 * config/sparc/tm-sol2.h: Update copyright year. Include
8630 "solib.h".
8631
70b216c8
MK
8632 * sparc-sol2-tdep.c: Update copyright year. Include
8633 "solib-svr4.h".
8634 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8635 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8636 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8637 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8638 dependencies.
8639
6339dc9e
AC
86402004-04-06 Andrew Cagney <cagney@redhat.com>
8641
8642 * infttrace.c: Include "infttrace.h".
8643 * infttrace.h: Include "target.h".
8644 * Makefile.in (infttrace_h): Update.
8645 (infttrace.o): Update.
8718a420 8646
93449403
AC
86472004-04-06 Andrew Cagney <cagney@redhat.com>
8648
6d518969
AC
8649 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8650 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8651 move extern declarations from here ...
8652 * infttrace.h: ... to here.
8653 * Makefile.in (hppah-nat.o): Update dependencies.
8654
85f4f2d8
AC
8655 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8656 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8657 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8658 (hppa_breakpoint_from_pc): Delete.
8659
93449403
AC
8660 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8661
71456ec6
AC
86622004-04-05 Andrew Cagney <cagney@redhat.com>
8663
8664 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8665 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8666 <sys/file.h>.
8718a420 8667
4c02c60c
AC
86682004-04-06 Randolph Chung <tausq@debian.org>
8669
8670 Committed by Andrew Cagney (mechanical change).
8671 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8672 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8673 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8674 child_enable_exception_callback, current_ex_event,
8675 null_symtab_and_line, child_get_current_exception_event,
8676 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8677 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8678 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8679 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8680 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8681 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8682 Move hpux-specific definitions ...
8683 * hppa-hpux-tdep.c: ... to here.
8684
3a515653
AC
86852004-04-05 Andrew Cagney <cagney@redhat.com>
8686
8687 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8688 skip_prologue_using_sal.
8689
c1730d02
AC
86902004-04-05 Andrew Cagney <cagney@redhat.com>
8691
8692 * config/i386/tm-i386.h: Delete file.
8693 * config/i386/tm-vxworks.h: Update copyright, do not include
8694 "tm-i386.h".
8695 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8696 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8697 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8698 * config/i386/ncr3000.mt (TM_FILE): Delete.
8699 * config/i386/interix.mt (TM_FILE): Delete.
8700 * config/i386/i386v.mt (TM_FILE): Delete.
8701 * config/i386/i386nw.mt (TM_FILE): Delete.
8702 * config/i386/i386gnu.mt (TM_FILE): Delete.
8703 * config/i386/i386aout.mt (TM_FILE): Delete.
8704 * config/i386/embed.mt (TM_FILE): Delete.
8705
8b67aa36
KB
87062004-04-05 Kevin Buettner <kevinb@redhat.com>
8707
8708 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8709 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8710 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8711 (accg7_regnum): New constants.
8712 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8713 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8714 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8715 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8716 for accg registers.
8717 (frv_register_sim_regno): Update spr_map[].
8718
3c7012f5
AC
87192004-04-04 Andrew Cagney <cagney@redhat.com>
8720
8721 * config/mips/xm-riscos.h: Delete.
8722 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8723 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8724 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8725 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8726 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8727 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8728 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8729 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8730 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8731 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8732 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8733 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8734 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8735 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8736 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8737 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8738 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8739 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8740 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8741 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8742 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8743 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8744 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8745 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8746 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8747 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8748
3c7012f5
AC
8749 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8750 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8751 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8752 * configure.host: Remove m680[01]0-sun-sunos3*,
8753 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8754 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8755 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8756 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8757 mips-*-riscos*.
8758 * NEWS: Mention removed systems.
8759
99d16a21
AC
87602004-04-04 Andrew Cagney <cagney@redhat.com>
8761
8762 GDB 6.1 release created from 6.1 branch.
8763
6cdf9d98
AC
87642004-04-04 Andrew Cagney <cagney@redhat.com>
8765
98d346c3
AC
8766 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8767 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8768 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8769
6cdf9d98
AC
8770 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8771 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8772 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8773
859a326d
JB
87742004-04-03 Jim Blandy <jimb@redhat.com>
8775
8776 * MAINTAINERS: Chris Faylor has changed employers; add him to
8777 "paper trail" section, and update his E-mail address.
8778
b87178c3
AC
87792004-04-03 Andrew Cagney <cagney@redhat.com>
8780
4ea2acf0
AC
8781 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8782 generic dummy frames.
8783 * dummy-frame.c: Update copyright.
8784 (dummy_frame_sniffer): Delete check for generic dummy frames.
8785
d0bd2d18 8786 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8787 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8788 (REG_PARM_STACK_SPACE): Delete.
8789 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8790 Inline reference to REG_PARM_STACK_SPACE.
8791
b87178c3
AC
8792 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8793 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8794 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8795 (FRAME_BASE_BEFORE_SIGTRAMP)
8796 (hppa32_hpux_frame_base_before_sigtramp)
8797 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8798 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8799 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8800 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8801 (FRAME_BASE_BEFORE_SIGTRAMP)
8802 (hppa64_hpux_frame_base_before_sigtramp)
8803 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8804
43e2e1a0
AC
88052004-04-03 Andrew Cagney <cagney@redhat.com>
8806
8807 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8808
ddc135a4
AC
88092004-04-02 Andrew Cagney <cagney@redhat.com>
8810
8811 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8812 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8813 * dummy-frame.h: Delete out-of-date comments.
8814 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8815 * gdbarch.h, gdbarch.c: Re-generate.
8816
d15bfd3a 88172004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8818
d15bfd3a
AC
8819 Committed by Andrew Cagney <cagney@redhat.com>.
8820 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8821 into account an instruction saving a register if we have already
8822 seen an earlier instruction saving that same register.
8823
f04ceafa
AC
88242004-04-02 Andrew Cagney <cagney@redhat.com>
8825
08be3abd
AC
8826 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8827 * gdbarch.h, gdbarch.c: Re-generate.
8828 * frame.c (legacy_get_prev_frame): Delete references to
8829 DEPRECATED_INIT_FRAME_PC_FIRST.
8830
f04ceafa
AC
8831 * infrun.c (pc_in_sigtramp): Delete function.
8832 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8833 get_frame_type.
8834
08e69816
AC
88352004-04-02 Andrew Cagney <cagney@redhat.com>
8836
8837 * infrun.c (handle_step_into_function): Delete code conditional on
8838 legacy_frame_p.
8839 (handle_inferior_event, step_over_function): Ditto.
8840
adb54772
AC
88412004-04-02 Andrew Cagney <cagney@redhat.com>
8842
8843 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8844 "previous frame inner to this frame" test.
8845
304396fb
AC
88462004-04-02 Andrew Cagney <cagney@redhat.com>
8847
8848 * frame.c (safe_frame_unwind_memory): New function.
8849 * frame.h (safe_frame_unwind_memory): Declare. Update description
8850 of /safe_/ methods.
8851 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8852 "next_frame". Use safe_frame_unwind_memory.
8853 (tramp_frame_sniffer): Update call to tramp_frame_start.
8854
6502dd73
DJ
88552004-04-01 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * dwarf2read.c (dwarf2_objfile_data_key): New.
8858 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8859 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8860 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8861 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8862 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8863 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8864 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8865 Remove variables.
8866 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8867 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8868 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8869 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8870 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8871 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8872 Remove macros.
8873 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8874 data.
8875 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8876 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8877 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8878 (read_partial_die, read_full_die, read_indirect_string)
8879 (dwarf_decode_line_header, dwarf_decode_macros)
8880 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8881 Update uses of removed variables.
8882 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8883 of removed macros.
8884 (_initialize_dwarf2_read): New function.
8885 * symfile.h (dwarf2_has_info): Update prototype.
8886 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8887 * elfread.c (elf_symfile_read): Likewise.
8888
408752b0
JB
88892004-04-01 Jim Blandy <jimb@redhat.com>
8890
9f744501
JB
8891 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8892 function for register numbers on all the rs6000-derived targets.
8893 (rs6000_gdbarch_init): Don't register a separate
8894 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8895 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8896 variants.
8897
408752b0
JB
8898 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8899 numbering.
8900
2de41bce
PH
89012004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8902
8903 * valarith.c: Update copyright notice.
8904 (value_add): Handle range types.
8905 (value_sub): Ditto.
8906 (value_equal): Ditto.
8907 (value_less): Ditto.
8908 (value_neg): Ditto.
8909 (value_complement): Ditto.
8718a420 8910 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8911 eliminiating unnecessary COERCE_ENUMs.
8718a420 8912
5613d8d3
AC
89132004-03-31 Andrew Cagney <cagney@redhat.com>
8914
8915 * frame.h (frame_unwind_id): Declare.
8916 * frame.c (frame_unwind_id): New function.
8917 (get_prev_frame_1): New function.
8918 (frame_debug_got_null_frame): New function.
8919 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8920 code proper to prev_frame, update description.
8921 * infrun.c (step_over_function): Use frame_unwind_id.
8922
c4557624
JB
89232004-04-31 J. Brobecker <brobecker@gnat.com>
8924
8925 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8926 (hppa64_push_dummy_call): Likewise.
8927
3e6bb910
JB
89282004-03-30 Jim Blandy <jimb@redhat.com>
8929
8930 From Ulrich Weigand:
8931 * utils.c (query): Do not use a va_list variable multiple times.
8932
a2f23071
DJ
89332004-03-29 Daniel Jacobowitz <drow@mvista.com>
8934
8935 * Makefile.in (linux_nat_h): Update dependencies.
8936 * configure.in: Check for <gnu/libc-version.h>.
8937 * configure: Regenerate.
8938 * config.in: Regenerate.
8939 * linux-nat.h: Include "target.h". Add waitstatus field to
8940 struct lwp_info.
8941 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8942 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8943 to.
8944 (lin_lwp_handle_extended): New function. Handle clone events.
8945 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8946 thread exit events.
8947 (child_wait): Handle clone events.
8948 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8949 * linux-nat.c (linux_enable_event_reporting): Turn on
8950 PTRACE_O_TRACECLONE.
8951 (linux_handle_extended_wait): Handle clone events.
8952 * thread-db.c: Include <gnu/libc-version.h>.
8953 (struct private_thread_info): Add dying flag.
8954 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8955 higher.
8956 (attach_thread): Update comments. Handle dying threads.
8957 (detach_thread): Set the dying flag.
8958 (check_event): Always call attach_thread.
8959
8d5f9dcb
DJ
89602004-03-29 Daniel Jacobowitz <drow@mvista.com>
8961
8962 * mips-tdep.c (mips_pdr_data): New.
8963 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8964 (_initialize_mips_tdep): Initialize mips_pdr_data.
8965
66337bb1
CV
89662004-03-29 Corinna Vinschen <vinschen@redhat.com>
8967
8968 * minsyms.c (install_minimal_symbols): Move dropping leading
8969 char from linkage name from here...
8970 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8971 test for "__gnu_compiled*" symbols.
8972
e802b915
JB
89732004-03-28 Jim Blandy <jimb@redhat.com>
8974
8975 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8976 registers to temp register r0 and byte stores as prologue
8977 instructions.
8978
72b56458
AC
89792004-03-28 Andrew Cagney <cagney@redhat.com>
8980
8981 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8982 arm*-*-*.
8983
0bfbda3b
SC
89842004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8985
8986 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8987 and switch the layout to force a display of register window.
8988
5a7225ed
JB
89892004-02-26 J. Brobecker <brobecker@gnat.com>
8990
8991 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8992 of the INTEGER class.
8993
81a07a45
JB
89942004-03-26 Jim Blandy <jimb@redhat.com>
8995
8996 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8997 bytes long on PPC GNU/Linux.
8998
8c691c7a
DC
89992004-03-26 David Carlton <carlton@kealia.com>
9000
9001 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9002
103a0089
AC
90032004-03-25 Andrew Cagney <cagney@redhat.com>
9004
9005 * PROBLEMS: Add general section titles, remove references to
9006 specific releases.
9007
7a5ea0d4
DJ
90082004-03-25 Daniel Jacobowitz <drow@mvista.com>
9009
9010 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9011 INT_REGISTER_SIZE.
9012 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9013 FP_REGISTER_VIRTUAL_SIZE.
9014 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9015 of DEPRECATED_REGISTER_RAW_SIZE.
9016 (arm_register_type): Add gdbarch argument.
9017 (arm_register_raw_size, arm_register_virtual_size): Delete.
9018 (arm_register_byte, arm_extract_return_value)
9019 (arm_store_return_value, arm_get_longjmp_target): Update references
9020 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9021 (arm_gdbarch_init): Likewise. Don't set
9022 deprecated_register_raw_size, deprecated_register_virtual_size,
9023 deprecated_max_register_raw_size,
9024 deprecated_max_register_virtual_size, or
9025 deprecated_max_register_virtual_type. Do set register_type.
9026 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9027 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9028 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9029 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9030 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9031 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9032 INT_REGISTER_SIZE.
9033 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9034 (remote_rdp_store_register): Likewise.
9035
5792a79b
DJ
90362004-03-24 Daniel Jacobowitz <drow@mvista.com>
9037
9038 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9039 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9040 to after osabi initialization.
9041 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9042 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9043 functions.
9044 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9045 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9046 variables.
9047 (mips_linux_init_abi): Append signal trampoline unwinders.
9048
1196bfda
AC
90492004-03-24 Andrew Cagney <cagney@redhat.com>
9050
9051 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9052 * tramp-frame.c: Include "gdb_assert.h".
9053 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9054 correct sizeof.
9055 (tramp_frame_append): Validate the tramp frame's instructions.
9056 * Makefile.in (tramp-frame.o): Update dependencies.
9057
4be282b4
AC
90582004-03-23 Andrew Cagney <cagney@redhat.com>
9059
9060 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9061
69aec09b
AC
90622004-03-23 Andrew Cagney <cagney@redhat.com>
9063
9064 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9065 Nasser as past testsuite/lib/ (and other) maintainers.
9066
63ed89b4
DJ
90672004-03-23 Daniel Jacobowitz <drow@mvista.com>
9068
9069 * infcmd.c (attach_command): Reread symbols if we already have
9070 an exec file.
9071
f3b36427
AC
90722004-03-23 Andrew Cagney <cagney@redhat.com>
9073
9074 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9075
aa2a3f87
AC
90762004-03-23 Andrew Cagney <cagney@redhat.com>
9077
9078 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9079 * gdbarch.h, gdbarch.c: Re-generate.
9080 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9081 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9082 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9083 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9084 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9085 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9086 (DEPRECATED_SIGTRAMP_START): Update.
9087 * blockframe.c (find_pc_sect_partial_function): Update.
9088 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9089
00cac895
DJ
90902004-03-23 Daniel Jacobowitz <drow@mvista.com>
9091
9092 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9093 if necessary.
9094
f561f026
AC
90952004-03-23 Andrew Cagney <cagney@redhat.com>
9096
9097 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9098 predicate, deprecate.
9099 * gdbarch.h, gdbarch.c: Re-generate.
9100 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9101 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9102 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9103 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9104 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9105 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9106 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9107 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9108 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9109 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9110 * blockframe.c (find_pc_partial_function): Update.
9111 * breakpoint.c (bpstat_what): Update.
9112 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9113 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9114 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9115 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9116 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9117 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9118 * i386-nto-tdep.c (i386nto_init_abi): Update.
9119 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9120 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9121 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9122 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9123 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9124 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9125 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9126 * infrun.c (pc_in_sigtramp): Update.
9127 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9128 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9129 * mips-tdep.c (mips_gdbarch_init): Update.
9130 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9131 * ppc-linux-tdep.c: Update comment.
9132 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9133 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9134 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9135 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9136 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9137 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9138 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9139 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9140 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9141 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9142
8050c72f
AC
91432004-03-23 Andrew Cagney <cagney@redhat.com>
9144
d2259dd3
AC
9145 * tramp-frame.h, tramp-frame.h: New files.
9146 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9147 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9148
8050c72f
AC
9149 * Makefile.in: Update all dependencies.
9150
0db9b4b7
AC
91512004-03-23 Andrew Cagney <cagney@redhat.com>
9152
9153 * Makefile.in (trad_frame_h): Add $(frame_h).
9154 * trad-frame.h: Update copyright. Include "frame.h".
9155 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9156 (trad_frame_set_id, trad_frame_get_id): Declare.
9157 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9158 * trad-frame.c: Update copyright.
9159 (struct trad_frame_cache): Define.
9160 (trad_frame_cache_zalloc): New function.
9161 (trad_frame_set_id, trad_frame_get_id): New functions.
9162 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9163
8e645ae7
AC
91642004-03-22 Andrew Cagney <cagney@redhat.com>
9165
9166 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9167 s390_pltstub_unwind_cache.
9168 (s390_stub_frame_unwind_cache): Rename
9169 s390_pltstub_frame_unwind_cache.
9170 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9171 (s390_stub_frame_prev_register): Rename
9172 s390_pltstub_frame_prev_register.
9173 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9174 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9175
9176 From Ulrich Weigand:
9177 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9178 pointer calls like PLT calls.
9179
34fcf120
DJ
91802004-03-22 Daniel Jacobowitz <drow@mvista.com>
9181
9182 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9183 PC rather than the partial function start address. Use the start
9184 address to sanity check the found PDR.
9185
5b917078
DJ
91862004-03-22 Daniel Jacobowitz <drow@mvista.com>
9187
9188 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9189 linux_handle_extended_wait.
9190
8adf9e78
AC
91912004-03-22 Andrew Cagney <cagney@redhat.com>
9192
c3122434
AC
9193 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9194 function.
9195
8adf9e78
AC
9196 * frame.h (generic_pop_current_frame): Delete declaration.
9197 (deprecate_pop_dummy_frame): Deprecate
9198 generic_pop_dummy_frame.
9199 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9200 (generic_pop_current_frame): Delete function.
9201 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9202 generic_pop_current_frame.
9203 * v850-tdep.c (v850_pop_frame): Update.
9204 * mcore-tdep.c (mcore_pop_frame): Update.
9205 * sh64-tdep.c (sh64_pop_frame): Update.
9206 * h8300-tdep.c (h8300_pop_frame): Update.
9207
90ba813f
AC
92082004-03-22 Andrew Cagney <cagney@redhat.com>
9209
9210 * frame.h (deprecated_pc_in_call_dummy): Rename
9211 generic_pc_in_call_dummy.
9212 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9213 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9214 generic_pc_in_call_dummy.
9215 (pc_in_dummy_frame): Make static.
9216 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9217 * gdbarch.h, gdbarch.c: Re-generate.
9218 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9219 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9220 (legacy_get_prev_frame): Ditto.
9221 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9222 comment.
8718a420 9223
ca4bb888
AC
92242004-03-21 Andrew Cagney <cagney@redhat.com>
9225
244675f9
AC
9226 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9227 declaration and out-of-date comment.
9228 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9229 Delete function.
9230 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9231 deprecated_pc_in_call_dummy.
9232
ca4bb888
AC
9233 * infrun.c (handle_inferior_event): For non legacy frames, use the
9234 frame ID and frame type to identify a signal trampoline. Update
9235 comments.
9236
1777c7b4
NW
92372004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9238
9239 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9240 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9241
82417da5
AC
92422004-03-21 Andrew Cagney <cagney@redhat.com>
9243
9244 * frame-unwind.h: Update copyright.
9245 (struct frame_data): Add opaque declaration.
9246 (frame_sniffer_ftype): Declare.
9247 (struct frame_unwind): Add "unwind_data" and "sniffer".
9248 (frame_unwind_register_unwinder): Declare.
9249 (frame_unwind_find_by_frame): Add parameter "this_cache".
9250 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9251 (legacy_get_prev_frame, legacy_get_prev_frame)
9252 (get_frame_type): Pass the prologue_cache to
9253 frame_unwind_find_by_frame.
9254 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9255 "unwinder".
9256 (frame_unwind_register_unwinder): New function.
9257 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9258
b2ba182e
PH
92592004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9260
9261 * bcache.c (print_percentage): Use floating point to avoid
9262 incorrect results when portion*100 overflows.
9263
81332287
KB
92642004-03-19 Kevin Buettner <kevinb@redhat.com>
9265
9266 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9267 (ppc_linux_init_extra_frame_info)
9268 (ppc_linux_frameless_function_invocation)
9269 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9270 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9271 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9272 (rs6000_frame_chain): Delete declarations.
9273 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9274 (ppc_linux_init_extra_frame_info)
9275 (ppc_linux_frameless_function_invocation)
9276 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9277 (ppc_linux_init_abi): Remove registration of above deleted functions.
9278 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9279 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9280 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9281 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9282 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9283 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9284 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9285 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9286 frame management for all OSABIs.
9287
61a65099
KB
92882004-03-19 Andrew Cagney <cagney@redhat.com>
9289
9290 Committed by Kevin Buettner <kevinb@redhat.com>.
9291
9292 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9293 Update copyright.
9294 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9295 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9296 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9297 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9298 unwinders. #ifdef legacy frame code.
9299 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9300 "frame-base.h".
9301 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9302 (struct rs6000_frame_cache, rs6000_frame_cache)
9303 (rs6000_frame_this_id, rs6000_frame_prev_register)
9304 (rs6000_frame_sniffer, rs6000_frame_unwind)
9305 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9306 (rs6000_frame_base): Implement a traditional frame unwinder.
9307 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9308 frame unwinder.
9309
88f7da05
KB
93102004-03-19 Kevin Buettner <kevinb@redhat.com>
9311
9312 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9313 breakpoint address for watchpoints or the catch eventpoints.
9314 Add new paramter ``bptype''. Adjust all callers.
9315
f826dce1
AC
93162004-03-19 Andrew Cagney <cagney@redhat.com>
9317
33cb8b0f
AC
9318 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9319
f826dce1
AC
9320 * PROBLEMS: Delete note that ARM does not use frame code, problem
9321 fixed.
9322
43b1ab88
AC
93232004-03-18 Andrew Cagney <cagney@redhat.com>
9324
292ab034
AC
9325 * stack.c (return_command): Delete code wrapped in #ifdef
9326 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9327
43b1ab88
AC
9328 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9329
dbfe4626
AC
93302004-03-18 Andrew Cagney <cagney@redhat.com>
9331
9332 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9333 DEPRECATED_IN_SIGTRAMP.
9334 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9335 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9336 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9337 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9338 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9339 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9340 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9341 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9342 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9343 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9344
0cad6aec
AC
93452004-03-18 Andrew Cagney <cagney@redhat.com>
9346
9347 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9348 (struct frame_base_table_entry): Define.
9349 (struct frame_base_table): Re-implement as a linked list.
9350 (frame_base_init): Re-implement.
9351 (frame_base_table): Delete function.
9352 (append_predicate): Delete function.
9353 (frame_base_append_sniffer): Update.
9354 (frame_base_set_default): Update.
9355 (frame_base_find_by_frame): Update.
9356 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9357 * Makefile.in (frame-base.o): Update dependencies.
9358
9982c2e7
AC
93592004-03-17 Andrew Cagney <cagney@redhat.com>
9360
9361 * frame.c (legacy_get_prev_frame): Pass correct frame to
9362 frame_unwind_find_by_frame.
9363
8dfe8985
DC
93642004-03-17 David Carlton <carlton@kealia.com>
9365
9366 * NEWS: Mention C++ nested types and namespaces
9367
ed47347a
MC
93682004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9369
9370 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9371 and "Regressions since gdb 5.3.". Add known regressions since
9372 gdb 6.0.
9373
90aeadfc
DC
93742004-03-16 David Carlton <carlton@kealia.com>
9375
9376 * dwarf2read.c (process_structure_scope): Process children even
9377 when we're a declaration.
9378
73912b9b
AC
93792004-03-16 Andrew Cagney <cagney@redhat.com>
9380
9381 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9382 * blockframe.c (find_pc_partial_function)
9383 (find_pc_sect_partial_function): Merge into a single
9384 find_pc_partial_function.
9385
283accbc
MK
93862004-03-16 Mark Kettenis <kettenis@gnu.org>
9387
9388 * i386bsd-nat.c: s/regno/regnum/g.
9389 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9390 FP0_REGNUM.
9391 (store_inferior_registers): Likewise.
9392
f5b1afdf
MK
93932004-03-16 Mark Kettenis <kettenis@gnu.org>
9394
9395 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9396 of i387_fill_fsave.
9397 (store_inferior_registers): Call i387_collect_fsave and
9398 i387_collect_fxsave instead of i387_fill_fsave and
9399 i387_fill_fxsave.
9400
41fe5eb3
AC
94012004-03-15 Andrew Cagney <cagney@redhat.com>
9402
9403 * Makefile.in (frame-unwind.o): Update dependencies.
9404 * frame-unwind.c: Include "gdb_obstack.h".
9405 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9406 parameter.
9407 (append_predicate): Delete function.
9408 (struct frame_unwind_table_entry): New structure.
9409 (struct frame_unwind_table): Replace "sniffer" with "head" and
9410 "tail".
9411 (frame_unwind_append_sniffer): Update.
9412 (frame_unwind_find_by_frame): Update.
9413 (_initialize_frame_unwind): Registe frame_unwind_init using
9414 gdbarch_data_register_pre_init.
9415
3f63813d
MK
94162004-03-15 Mark Kettenis <kettenis@gnu.org>
9417
9418 * i386bsd-nat.c: Update copyright year.
9419 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9420 define unconditionally.
9421
3248c325 94222004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9423
9424 * i387-tdep.h (i387_collect_fsave): New prototype.
9425 * i387-tdep.c (i387_collect_fsave): New function containing most
9426 of the code from i387_fill_fsave.
3248c325 9427 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9428
871fbe6a
MK
94292004-03-15 Mark Kettenis <kettenis@gnu.org>
9430
9431 * i386-linux-tdep.c: Update copyright year.
9432 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9433 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9434 svr4_ilp32_link_map_offsets instead of
9435 i386_linux_svr4_fetch_link_map_offsets.
9436
8176b9b8
DC
94372004-03-15 David Carlton <carlton@kealia.com>
9438
9439 Fix for PR c++/1553:
9440 * dwarf2read.c (read_structure_type): Determine type name by
9441 calling determine_class_name.
9442 (determine_class_name): New.
9443 (determine_prefix): Look at TYPE_TAG_NAME and call
9444 determine_class_name when appropriate.
9445 (determine_prefix_aux, class_name): Delete.
9d58e29d 9446 (read_namespace): Set die->type.
8176b9b8 9447
fe8bf7d7
KB
94482004-03-15 Kevin Buettner <kevinb@redhat.com>
9449
9450 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9451 unused macro definition. The definition in target.h (or perhaps
9452 elsewhere) takes precedence.
9453
ed6edd9b
AC
94542004-03-15 Andrew Cagney <cagney@redhat.com>
9455
f9be684a
AC
9456 * ppc-tdep.h: Update copyright.
9457 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9458 function signatures to match "regsets.h".
9459 * ppc-linux-tdep.c: Include "regset.h".
9460 (ELF_GREGSET_SIZE): Delete.
9461 (right_supply_register): New function.
9462 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9463 using right_supply_register.
9464 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9465 functions.
9466 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9467 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9468 (_initialize_ppc_linux_tdep): Do not register
9469 ppc_linux_regset_core_fns.
9470 (ppc_linux_regset_from_core_section): Replace
9471 fetch_core_registers.
9472 (ppc_linux_regset_core_fns): Delete.
9473 * ppc-linux-nat.c: (right_fill_reg): New function.
9474 (supply_gregset): Update call to ppc_linux_supply_gregset.
9475 (fill_gregset): Clear the register set, use right_fill_reg.
9476 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9477 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9478
ed6edd9b
AC
9479 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9480 unsigned.
9481
030f20e1
AC
94822004-03-15 Andrew Cagney <cagney@redhat.com>
9483
9484 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9485 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9486 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9487 and register_gdbarch_data.
9488 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9489 (struct gdbarch_data): Replace "init" by "pre_init" and
9490 "post_init".
9491 * gdbarch.h, gdbarch.c: Re-generate.
9492 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9493 with"obstack", use OBSTACK_ZALLOC.
9494 (dwarf2_frame_ops): Delete.
9495 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9496 (dwarf2_frame_init_reg): Use gdbarch_data.
9497 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9498 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9499 (_initialize_svr4_solib): Update.
9500 * user-regs.c (_initialize_user_regs): Update.
9501 * reggroups.c (_initialize_reggroup): Update.
9502 * regcache.c (_initialize_regcache): Update.
9503 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9504 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9505 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9506 * frame-unwind.c (_initialize_frame_unwind): Update.
9507 * frame-base.c (_initialize_frame_base): Update.
9508 * user-regs.c (user_reg_add): Update.
9509 * reggroups.c (reggroup_add): Update.
9510 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9511 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9512 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9513 * frame-base.c (frame_base_table): Update.
9514 * remote.c (_initialize_remote): Update.
9515 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9516
3111a3fc
AC
95172004-03-15 Andrew Cagney <cagney@redhat.com>
9518
9519 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9520
5ecb7103
KB
95212004-03-15 Kevin Buettner <kevinb@redhat.com>
9522
9523 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9524 * frv-linux-tdep.c: New file.
9525 * frv-tdep.c (struct gdbarch_tdep): Add new field
9526 ``sigcontext_reg_addr''.
9527 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9528 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9529 (frv_sigramp_frame_sniffer): New functions.
9530 (frv_sigtramp_frame_unwind): New static global.
9531 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9532 sniffers.
9533 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9534 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9535
1ccda5e9
KB
95362004-03-15 Kevin Buettner <kevinb@redhat.com>
9537
9538 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9539 but not via a call to error(), when unable to read memory.
9540
b375a0a5
KB
95412004-03-15 Kevin Buettner <kevinb@redhat.com>
9542
9543 * frv-tdep.c (frv_call_dummy_words): Delete.
9544 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9545
4fdf6121
AC
95462004-03-15 Andrew Cagney <cagney@redhat.com>
9547
9548 * infrun.c (handle_step_into_function, step_over_function): Only
9549 update and use STEP_FRAME_ID when the system is using legacy
9550 frames. Update comments.
9551
34021503
MK
95522004-03-14 Mark Kettenis <kettenis@gnu.org>
9553
187e21d1
MK
9554 * amd64-linux-tdep.h: Remove file.
9555 * amd64-linux-tdep.c: Don't include "inferior.h" and
9556 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9557 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9558 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9559 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9560 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9561 macros.
9562 (user_to_gdb_regmap): Remove variable.
9563 (amd64_linux_gregset_reg_offset): New variable.
9564 (amd64_core_fns): Remove variable.
9565 (fetch_core_registers): Remove function.
9566 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9567 functions.
9568 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9569 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9570 * Makefile.in (amd64_linux_tdep_h): Remove.
9571 (amd64-linux-nat.o): Update dependencies.
9572 (amd64-linux-tdep.o): Update dependencies.
9573
99679982
MK
9574 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9575 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9576 functions.
9577 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9578
34021503
MK
9579 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9580 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9581
134d01f1
DJ
95822004-03-14 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * dwarf2read.c (read_structure_type): Rename from
8718a420 9585 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9586 Return immediately if die->type is set. Call read_type_die before
9587 dwarf2_add_member_fn.
9588 (process_structure_scope): New function.
9589 (read_enumeration_type, process_enumeration_scope): New functions,
9590 broken out from read_enumeration. Don't create the enumeration
9591 type if it has already been created.
9592 (read_enumeration): Removed.
9593 (process_die): Call read_structure_type, process_structure_scope,
9594 read_enumeration_type, and process_enumeration_scope. Just call
9595 new_symbol for base and subrange types. Add a comment about other
9596 type dies.
9597 (read_type_die): Call read_enumeration_type.
9598 (add_partial_structure, new_symbol): Update comments.
9599
65760afb
SC
96002004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9601
9602 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9603
10f59415
SC
96042004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9605
9606 * tui/tui-win.h (tui_get_cmd_list): Declare.
9607 * tui/tui-win.c (tui_command): New function.
9608 (tui_get_cmd_list): New function.
9609 (_initialize_tui_win): Moved initialization of tui command in
9610 tui_get_cmd_list.
9611
9612 * tui/tui-data.c (init_content_element): Setup new data members.
9613 (init_win_info): Likewise.
9614 (free_content_elements): Free it.
9615 * tui/tui-data.h (struct tui_data_element): Store the register
9616 content to print.
9617 (struct tui_data_info): Keep the current register group.
9618
9619 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9620
9621 * tui/tui-regs.h (tui_show_registers): Update prototype.
9622 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9623 (tui_resize_all): No need to calculate anything for register window.
9624 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9625 (tui_set_register_element, tui_set_general_regs_content): Remove.
9626 (tui_set_special_regs_content): Remove.
9627 (tui_set_general_and_special_regs_content): Remove.
9628 (tui_set_float_regs_content): Remove.
9629 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9630 (tui_set_regs_content): Remove.
9631 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9632 (tui_v_show_registers_command_support): Remove.
9633 (tui_show_registers): Use a reggroup to specify the registers to show.
9634 (tui_show_register_group): New function.
9635 (tui_display_registers_from): Compute the layout of register window
9636 and refresh with new API; be sure to delete old register windows.
9637 (tui_check_register_values): Update to use tui_get_register and
9638 tui_display_data.
9639 (tui_display_register): Just refresh the register window part.
9640 (tui_register_format): Format registers and save in tui_data_element.
9641 (tui_get_register): New to combine tui_reg_value_has_changed and
9642 tui_get_register_raw_value; fix to use the new gdb API.
9643 (tui_show_float_command): Renamed tui_reg_float_command.
9644 (tui_show_general_command): Renamed tui_reg_general_command.
9645 (tui_show_special_command): Renamed tui_reg_system_command.
9646 (_initialize_tui_regs): Remove unused commands.
9647
c3364ea4
MK
96482004-03-13 Mark Kettenis <kettenis@gnu.org>
9649
27d1e716
MK
9650 * NEWS (New native configurations): Mention OpenBSD/amd64.
9651
c3364ea4
MK
9652 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9653 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9654 Remove defines.
9655 * config/i386/nm-fbsd64.h: Likewise.
9656 * config/i386/nm-obsd.h: Likewise.
9657 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9658 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9659
b2d6d697
KB
96602004-03-12 Kevin Buettner <kevinb@redhat.com>
9661
9662 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9663 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9664 New constants.
9665
76e43199
KB
9666 From Richard Sandiford <rsandifo@redhat.com>:
9667 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9668
34ce532e
KB
96692004-03-12 Kevin Buettner <kevinb@redhat.com>
9670
9671 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9672 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9673 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9674 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9675 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9676 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9677 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9678 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9679 definitions from frv-tdep.c to frv-tdep.h.
9680
c4d10515
KB
96812004-03-12 Kevin Buettner <kevinb@redhat.com>
9682
9683 Add shared library support for FR-V FDPIC ABI:
9684 * Makefile.in (solib-frv.o): Add dependencies.
9685 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9686 New functions.
9687 (frv_push_dummy_call): Add support for FDPIC ABI.
9688 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9689 for FDPIC ABI.
9690 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9691 (frv_fdpic_find_canonical_descriptor): Declare.
9692 * solib-frv.c: New file.
9693 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9694 * config/frv/tm-frv.h (solib.h): Include.
9695
ed1bd989
KB
96962004-03-12 Kevin Buettner <kevinb@redhat.com>
9697
9698 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9699 (frv-tdep.o): Update dependencies.
9700 * frv-tdep.h: New file.
9701 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9702 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9703 constants.
9704 (struct gdbarch_tdep): Add new member ``frv_abi''.
9705 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9706 functions.
9707 (new_variant): Set ``frv_abi'' field.
9708 (gdb_arch_init): Detect FDPIC executables.
9709
82b38f72
MK
97102004-03-12 Mark Kettenis <kettenis@gnu.org>
9711
9712 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9713 wrapper.
9714
db1ea9ba
AC
97152004-03-11 Andrew Cagney <cagney@redhat.com>
9716
9717 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9718
f8766ec1
KB
97192004-03-11 Kevin Buettner <kevinb@redhat.com>
9720
9721 * solist.h (master_so_list): New function.
9722 * solib.c (master_so_list): Likewise.
9723 * solib-svr4.c (enable_break): Iterate over so_list entries
9724 obtained from master list instead of entries obtained directly
9725 via svr4_current_sos().
9726
523f6a27
BE
97272004-03-10 Ben Elliston <bje@gnu.org>
9728
9729 * MAINTAINERS: Update my mail address.
9730
37814c18
KI
97312004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9732
9733 * remote-m32r-sdi.c: Support hardware watchpoint.
9734
8b9740d8
DJ
97352004-03-09 Daniel Jacobowitz <drow@mvista.com>
9736
9737 * user-regs.c: Update copyright years.
9738 (struct user_regs): Rename to gdb_user_regs.
9739 (append_user_reg, builtin_user_regs, user_regs_init)
9740 (user_reg_add, user_reg_map_name_to_regnum)
9741 (usernum_to_user_reg): Update.
9742
4bb7a0a7
DJ
97432004-03-09 Daniel Jacobowitz <drow@mvista.com>
9744
9745 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9746 (skip_children): New functions.
9747 (locate_pdi_sibling): Call skip_children.
9748
44e1a9eb
DJ
97492004-03-09 Daniel Jacobowitz <drow@mvista.com>
9750
9751 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9752 * gdbtypes.c (check_typedef): Update comments.
9753
f3dd6933
DJ
97542004-03-09 Daniel Jacobowitz <drow@mvista.com>
9755
9756 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9757 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9758 pointer. Update comment about comp_unit_head.
9759 (struct abbrev_info): Shorten two int flags.
9760 (dwarf_alloc_abbrev): Take a CU argument.
9761 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9762 each time through the loop. Update cleanup argument.
9763 (psymtab_to_symtab_1): Update cleanup call.
9764 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9765 abbrev_obstack.
9766 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9767 Just call obstack_free and clear the pointer.
9768
b40c7d58
DJ
97692004-03-09 Daniel Jacobowitz <drow@mvista.com>
9770
9771 * infrun.c (handle_inferior_event): Remove short-circuit code for
9772 events in a different thread.
9773
333dabeb
DJ
97742004-03-09 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9777 print the whole transfer.
9778 (initialize_targets): Update description of "set debug target".
9779
aa17d93e
DJ
97802004-03-09 Daniel Jacobowitz <drow@mvista.com>
9781
9782 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9783
0b71f08f
NW
97842004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9785
9786 * MAINTAINERS (write after approval): Add myself.
9787
3930f270
CV
97882004-03-08 Corinna Vinschen <vinschen@redhat.com>
9789
9790 * sh-tdep.c (sh_print_registers_info): Use for loop.
9791 Don't skip multiple registers when a float register is encountered.
9792
a2b4a96c
CV
97932004-03-08 Corinna Vinschen <vinschen@redhat.com>
9794
9795 Fix PR tdep/1291.
9796 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9797 to official SH documentation.
9798
f15a4bc0
AC
97992004-03-07 Andrew Cagney <cagney@redhat.com>
9800
9801 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9802 unused function.
9803
9498281f
DJ
98042004-03-07 Daniel Jacobowitz <drow@mvista.com>
9805
9806 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9807 (arm_get_next_pc): Handle BX and BLX.
9808
449e1137
AC
98092004-03-07 Andrew Cagney <cagney@redhat.com>
9810
eded0a31
AC
9811 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9812 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9813 HPPA_SP_REGNUM.
9814 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9815 (hppa_target_read_fp): Delete.
9816 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9817 register_virtual_size, max_register_raw_size,
9818 max_register_virtual_size, register_byte, register_size,
9819 target_read_fp, fp_regnum, and register_bytes. Set register_type
9820 instead of register_virtual_type.
9821 (hppa32_register_type, hppa64_register_type): Replace
9822 hppa32_register_virtual_type and hppa64_register_virtual_type.
9823 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9824 (HPPA_FP_REGNUM): Define.
9825
f5f907e2
AC
9826 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9827
69b4bbe4
AC
9828 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9829 (pa_do_registers_info): Delete.
9830 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9831 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9832 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9833
78161e48
AC
9834 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9835 GDB_TARGET_IS_HPPA code.
9836 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9837 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9838 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9839 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9840 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9841 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9842 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9843 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9844 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9845 (hppa_frameless_function_invocation, hppa64_store_return_value)
9846 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9847 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9848 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9849 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9850 (find_proc_framesize, deposit_21, restore_pc_queue)
9851 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9852 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9853
782eae8b
AC
9854 Unconditionally enable 64-bit frame and ABI code.
9855 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9856 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9857 push_dummy_frame, fix_call_dummy, push_arguments,
9858 call_dummy_location, extract_return_value, use_struct_convention,
9859 store_return_value, store_struct_return, saved_pc_after_call,
9860 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9861 frame_chain, frame_chain_valid, frameless_function_invocation,
9862 frame_saved_pc, and pop_frame.
78161e48 9863
449e1137
AC
9864 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9865 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9866 (hppa_gdbarch_init): Do not set PC_REGNUM.
9867
12507572
MK
98682004-03-06 Mark Kettenis <kettenis@gnu.org>
9869
9870 * config/alpha/tm-fbsd.h: Remove file.
9871 * config/alpha/fbsd.mt: Tweak comment.
9872 (TM_FILE): Set to tm-alpha.h.
9873
c107cc1b
AC
98742004-03-05 Andrew Cagney <cagney@redhat.com>
9875
9876 * infrun.c (step_over_function): When non-legacy code, and no
9877 step_frame_id, use the unwinder to get the caller's frame ID.
9878
f2e7c15d
MK
98792004-03-05 Mark Kettenis <kettenis@gnu.org>
9880
8b0c3633
MK
9881 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9882 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9883 bfd_arch_unknown. Adjust comment.
9884
f2e7c15d
MK
9885 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9886 * i386obsd-tdep.c: Correct spelling in comment.
9887 * i386nbsd-tdep.c: Correct spelling in comment.
9888 * sparc-tdep.c: Correct spelling in comments.
9889
1198ecbe
DC
98902004-03-05 David Carlton <carlton@kealia.com>
9891
9892 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9893 bug.
9894
9eb42ed1
MK
98952004-03-05 Mark Kettenis <kettenis@gnu.org>
9896
9897 * sparc-tdep.c: Fix typo in comment.
9898
52b5e991
JB
98992004-03-04 J. Brobecker <brobecker@gnat.com>
9900
9901 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9902
d8151005
DJ
99032004-03-04 Daniel Jacobowitz <drow@mvista.com>
9904
9905 * dwarf2read.c: Add comment describing memory lifetimes.
9906 (struct dwarf2_pinfo): Update comment.
9907 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9908 (read_enumeration, new_symbol): Don't use obsavestring.
9909
cbeae229
MK
99102004-03-04 Mark Kettenis <kettenis@gnu.org>
9911
722d18c2
MK
9912 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9913 instead of amd64_fill_fxsave.
9914 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9915 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9916
cbeae229
MK
9917 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9918 Reorganize code a bit.
9919
b4206d25
OF
99202004-03-04 Orjan Friberg <orjanf@axis.com>
9921
9922 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9923 when the frame pointer is pushed. Don't set the frame pointer's
9924 address on the stack unless it's actually located there.
b4206d25
OF
9925 Set the SRP's address on the stack correctly when the PC is still in
9926 the prologue.
9927 (cris_return_value): New function.
9928 (cris_gdbarch_init): Clear deprecated store_return_value,
9929 extract_return_value.
9930
49b0b195
JB
99312004-03-02 Jim Blandy <jimb@redhat.com>
9932
9933 * stabsread.c (reg_value_complaint): The maximum register number
9934 is one less than the number of registers.
9935
e9ff708b
AC
99362004-03-02 Andrew Cagney <cagney@redhat.com>
9937
9938 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9939 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9940 trailing comma and redundant assignment of I386_ST0_REGNUM.
9941 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9942 32-bit segment registers.
9943
d4715e41
AC
99442004-03-01 Andrew Cagney <cagney@redhat.com>
9945
9946 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9947 use frame_relative_level and get_next_frame.
9948
3ce2bf18
AC
99492004-02-29 Andrew Cagney <cagney@redhat.com>
9950
9951 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9952 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9953 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9954 Delete macro.
9955
2da6aac3
DJ
99562004-02-29 Daniel Jacobowitz <drow@mvista.com>
9957
9958 * inflow.c (terminal_inferior): Don't give up the terminal if we
9959 previously couldn't get the inferior's terminal state.
9960
6ba34a8d
DJ
99612004-02-29 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9964 PC_REGNUM.
9965
faae5abe
AC
99662004-02-28 Andrew Cagney <cagney@redhat.com>
9967
9968 * NEWS: Refer to GDB 6.1.
9969 * README: Refer to GDB 6.1.
9970 * PROBLEMS: Refer to GDB 6.1.
9971
2227a3c5
DJ
99722004-02-28 Daniel Jacobowitz <drow@mvista.com>
9973
9974 * thread-db.c (disable_thread_signals): Remove unused function.
9975
80571bff
MK
99762004-02-28 Mark Kettenis <kettenis@gnu.org>
9977
041bd74b
MK
9978 * amd64-nat.c: Include "gdb_string.h".
9979 (amd64_collect_native_gregset): Zero-extend the 32-bit
9980 general-purpose registers and %eip.
9981
3c017e40
MK
9982 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9983 * amd64-tdep.c (amd64_collect_fxsave): New function.
9984 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9985
80571bff
MK
9986 * i387-tdep.h: Update copyright year.
9987 (i387_collect_fxsave): New prototype.
9988 * i387-tdep.c: Update copyright year.
9989 (i387_collect_fxsave): New function containing most of the code
9990 from i387_fill_fxsave.
9991 (i387_fill_fxsave): Call i387_collect_fxsave.
9992
50d71875
AC
99932004-02-28 Andrew Cagney <cagney@redhat.com>
9994
9995 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9996 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9997
4a28816e
MK
99982004-02-28 Mark Kettenis <kettenis@gnu.org>
9999
10000 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10001
dbda9972
AC
100022004-02-28 Andrew Cagney <cagney@redhat.com>
10003
10004 * utils.c: Use "", instead of <>, to include readline.
10005 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10006 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10007 * source.c, solib.c, exec.c, event-top.c: Ditto.
10008 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10009 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10010 * Makefile.in: Update all dependencies.
10011 (readline_tilde_h, readline_history_h): Define.
10012 (readline_headers): Delete.
10013
83277a99
MK
100142004-02-28 Mark Kettenis <kettenis@gnu.org>
10015
91ae4303
MK
10016 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10017 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10018 "config/i386/tm-lx64.h".
10019
83277a99
MK
10020 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10021 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10022 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10023
6e1d7d6c
AC
100242004-02-28 Andrew Cagney <cagney@redhat.com>
10025
ecc9ac84
AC
10026 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10027
6e1d7d6c
AC
10028 * breakpoint.c (_initialize_breakpoint): Use
10029 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10030 Add help to show command.
10031
9671aeef
MK
100322004-02-28 Mark Kettenis <kettenis@gnu.org>
10033
7fa2737c
MK
10034 * i386-nat.c: Reformat to be closer to coding standards.
10035 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10036 `retval'. Make variables `align' and `size' local to while-loop.
10037 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10038 (_initialize_i386_nat): New prototype.
10039
9671aeef
MK
10040 * tui/tui.c: Include <readline/readline.h> instead of
10041 "readline/readline.h". Include it after <term.h> and
10042 "gdb_curses.h".
10043
fca7aa43
AC
100442004-02-27 Andrew Cagney <cagney@redhat.com>
10045
412275d5
AC
10046 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10047 the new frame unwind code.
10048 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10049 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10050 PCOQ_HEAD_REGNUM.
10051
fca7aa43
AC
10052 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10053 "return_value" and "push_dummy_call".
10054 (hppa32_use_struct_convention): Delete unused function.
10055 (hppa32_store_return_value): Delete unused function.
10056 (hppa32_extract_return_value): Delete unused function.
10057 (hppa32_stack_align): Delete function.
10058
e6a8a7d2
EZ
100592004-02-27 Eli Zaretskii <eliz@elta.co.il>
10060
10061 * coffread.c (enter_linenos): Don't let rawptr reference memory
10062 outside linetab[]'s limits.
10063
1797a8f6
AC
100642004-02-27 Andrew Cagney <cagney@redhat.com>
10065
10066 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10067 inferior stack space - the stack needs to grow upwards.
10068 (hppa32_frame_align): New function.
10069 (hppa64_frame_align): Replace hppa_frame_align.
10070 (hppa_gdbarch_init): Update.
10071
2e4b5889
OF
100722004-02-26 Orjan Friberg <orjanf@axis.com>
10073
10074 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10075 (dwarf2-frame.h): Include.
10076 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10077 Remove static variables related to ABI setting.
10078 (struct gdbarch_tdep): Remove cris_abi member.
10079 (struct frame_extra_info): Remove.
10080 (cris_unwind_cache, stack_item): New structs.
10081 (cris_frame_unwind, cris_frame_base): New variables.
10082 (push_stack_item, pop_stack_item)
10083 (cris_frame_unwind_cache, cris_frame_this_id)
10084 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10085 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10086 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10087 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10088 (cris_reg_struct_has_addr): New functions.
10089 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10090 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10091 (cris_store_struct_return, cris_frameless_function_invocation)
10092 (cris_pop_frame, cris_skip_prologue_main)
10093 (cris_abi_original_store_return_value)
10094 (cris_abi_v2_store_return_value)
10095 (cris_abi_original_extract_return_value)
10096 (cris_abi_v2_extract_return_value)
10097 (cris_abi_original_reg_struct_has_addr)
10098 (cris_abi_v2_reg_struct_has_addr)
10099 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10100 (cris_push_return_address, cris_abi_update): Remove.
10101 (_initialize_cris_tdep): Remove ABI command.
10102 (cris_dump_tdep): Ditto.
8718a420 10103 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10104 Set store_return_value, extract_return_value, push_dummy_code,
10105 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10106 frame_unwind_append_sniffer, frame_base_set_default.
10107 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10108 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10109 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10110 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10111 init_extra_frame_info, frameless_function_invocation, frame_chain,
10112 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10113 dummy_write_sp.
8718a420 10114
6b9acc27
JJ
101152004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10116
10117 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10118 * valprint.c (print_hex_chars): Change from static to external.
10119 (print_char_chars): New function.
10120 * printcmd.c (print_scalar_formatted): For integer and enum types
10121 that are longer than LONGEST, perform processing via appropriate
10122 print_*_chars routines.
10123
a431654a
AC
101242004-02-26 Andrew Cagney <cagney@redhat.com>
10125
10126 * Makefile.in: Update dependencies.
10127 Changes from Ulrich Weigand,
10128 * s390-tdep.c: Include "dwarf2-frame.h".
10129 (s390_dwarf2_frame_init_reg): New function.
10130 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10131 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10132
fa8d40ab
JJ
101332004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10134
10135 * breakpoint.c (pending_break_support): New setting variable.
10136 (break_command_1): Account for pending_break_support setting
10137 when creating pending breakpoints.
10138 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10139 (_initialize_breakpoint): Add "set breakpoint pending" and
10140 "show breakpoint pending" commands.
10141
0dcd613f
AC
101422004-02-26 Andrew Cagney <cagney@redhat.com>
10143
10144 Fix PR i18n/1570.
10145 * charset.c (backslashable, backslashed, represented): Remove 'e'
10146 from list of escaped characters, not part of ISO-C.
10147
479272a3
JB
101482004-02-25 J. Brobecker <brobecker@gnat.com>
10149
10150 From Peter Schauer <schauer@pdf.de>:
10151 * tui/tui.c: Move system header includes after local includes.
10152 Fixes a build failure on solaris systems.
10153
7613d933
JB
101542004-02-25 J. Brobecker <brobecker@gnat.com>
10155
10156 * configure.in: Refine the previous change.
10157 * configure: Regenerate.
10158
9c1488cb
MK
101592004-02-25 Mark Kettenis <kettenis@gnu.org>
10160
10161 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10162 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10163 "amd64-tdep.h" instead of "x86-64-tdep.h".
10164 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10165 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10166 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10167 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10168 and "x86-64-tdep.c".
10169 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10170 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10171 and "x86-64-tdep.c".
10172 * amd64bsd-nat.c: Update copyright year.
10173 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10174 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10175 "x86-64-tdep.h".
10176 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10177 "x86-64-tdep.h".
10178 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10179 "x86-64-tdep.h".
10180 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10181 "x86-64-tdep.h".
10182 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10183 "x86-64-tdep.h".
10184 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10185 "x86-64-tdep.h".
8718a420 10186 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10187 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10188 * Makefile.in (amd64_linux_tdep_h): Renamed from
10189 x86_64_linux_tdep_h.
10190 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10191 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10192 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10193 (amd64obsd-tdep.o): Update dependencies.
10194 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10195 dependencies.
10196 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10197 dependencies.
10198 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10199 amd64-linux-nat.c amd64-linux-tdep.c.
10200 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10201 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10202 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10203 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10204 amd64-tdep.o and amd64-linux-tdep.o.
10205 (TM_FILE): Set to tm-linux64.h.
10206 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10207 (NAT_FILE): Set to nm-linux64.h.
10208 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10209 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10210 amd64-tdep.o.
10211 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10212 amd64-tdep.o.
10213 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10214 amd64-tdep.o.
10215
4b8dad4a
RM
102162004-02-25 Roland McGrath <roland@redhat.com>
10217
10218 * remote.c (remote_protocol_qPart_auxv): New variable.
10219 (init_all_packet_configs): Initialize it.
10220 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10221 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10222 (show_remote_cmd): Call it.
10223 (_initialize_remote): Initialize commands.
10224 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10225 service TARGET_OBJECT_AUXV requests.
10226
66745969
JB
102272004-02-25 J. Brobecker <brobecker@gnat.com>
10228
10229 * configure.in: Make sure that the wborder function is available.
10230 Otherwise, search for it in the cur_colr library.
10231 * configure: Regenerate.
10232
79508e1e
AC
102332004-02-25 Andrew Cagney <cagney@redhat.com>
10234
10235 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10236
571ee600
MK
102372004-02-25 Mark Kettenis <kettenis@gnu.org>
10238
10239 * config/i386/tm-x86-64linux.h: Tweak comments.
10240
2b1b322f 102412004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10242
10243 * MAINTAINERS: Add self to write-after-approval list.
10244
4d2acc65
AC
102452004-02-25 Andrew Cagney <cagney@redhat.com>
10246
4b8dad4a 10247 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10248 * cli/cli-script.c (execute_control_command): Unconditionally
10249 install a cleanup. Default "ret" to "invalid_control". Use
10250 "break" instead of "return" to escape from the switch.
10251
4cfcaf21
JB
102522004-02-24 J. Brobecker <brobecker@gnat.com>
10253
10254 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10255 with the lines macro defined in term.h on AiX.
10256 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10257 a collision with the label_width macro defined in term.h on AiX.
10258
54a5c8d8
KB
102592004-02-23 David Mosberger <davidm@hpl.hp.com>
10260
10261 Committed by Kevin Buettner <kevinb@redhat.com>.
10262
10263 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10264 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10265 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10266 instead of ia64_write_pc().
10267 * ia64-linux-tdep.c (regcache.h): Include.
10268 (ia64_linux_write_pc): New function.
4b8dad4a 10269
8a1dac83
RM
102702004-02-23 Roland McGrath <roland@redhat.com>
10271
10272 * auxv.c (info_auxv_command): Fix typos in error messages.
10273
90f90721
MK
102742004-02-23 Mark Kettenis <kettenis@gnu.org>
10275
8a1dac83 10276 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10277 (enum amd64_regnum): New.
10278 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10279 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10280 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10281 (X86_64_XMM1_REGNUM): Removed.
10282 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10283 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10284 prototypes for renamed functions.
10285 * x86-64-tdep.c: Fix typo.
10286 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10287 register numbers.
10288 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10289 Use constants from `enum amd64_regnum' for register numbers.
10290 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10291 (amd64_analyze_prologue, amd64_frame_cache,
10292 amd64_sigtramp_frame_cache): Use constants from `enum
10293 amd64_regnum' for register numbers.
10294 (amd64_supply_fpregset): Adjust for renamed functions.
10295 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10296 `enum amd64_regnum' for register numbers.
10297 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10298 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10299 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10300 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10301 (amd64_linux_fill_gregset): Adjust for renamed macros.
10302 (fetch_core_registers): Adjust for renamed functions.
10303 (amd64_linux_init_abi): Adjust for renamed functions.
10304 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10305 renamed functions.
10306 * amd64-nat.c: Adjust for renamed macros.
10307 * amd64bsd-nat.c (fetch_inferior_registers)
10308 (store_inferior_registers): Use constants from `enum amd64_regnum'
10309 for register numbers. Adjust for renamed variables.
10310 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10311 renamed variables.
10312 (_initialize_amd64fbsd_nat): Use constants from `enum
10313 amd64_regnum' for register numbers.
10314 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10315 `enum amd64_regnum' for register numbers.
10316 (amd64fbsd_init_abi): Adjust for renamed functions.
10317 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10318 `enum amd64_regnum' for register numbers.
10319 (amd64nbsd_init_abi): Adjust for renamed functions.
10320 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10321 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10322 `enum amd64_regnum' for register numbers.
10323 (amd64obsd_init_abi): Adjust for renamed functions.
10324 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10325
d5479188
JJ
103262004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10327
10328 * breakpoint.c (print_one_breakpoint): Do not output spaces
10329 after printing <PENDING> for a pending breakpoint.
10330
81cb7cc9
JJ
103312004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10332
10333 * printcmd.c (print_scalar_formatted): Initialize val_long
10334 to remove compiler warning message.
10335
cbdeadca
JJ
103362004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10337
10338 * defs.h (nquery, yquery): New prototypes.
10339 * breakpoint.c (break_command_1): Use new nquery interface.
10340 * utils.c (defaulted_query, nquery, yquery): New functions.
10341
da6bab63
AC
103422004-02-23 Andrew Cagney <cagney@redhat.com>
10343
2f690297
AC
10344 * hppa-tdep.c (hppa_frame_align): New function.
10345 (hppa32_push_dummy_call): New function.
10346 (hppa64_push_dummy_call): New function.
10347 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10348 disabled.
8a1dac83 10349
da6bab63
AC
10350 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10351 FIX_CALL_DUMMY when push_dummy_call is available.
10352 (call_function_by_hand, push_dummy_code): Ditto.
10353
abf9b42d
AC
103542004-02-22 Andrew Cagney <cagney@redhat.com>
10355
10356 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10357 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10358 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10359 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10360 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10361 call_dummy_location to ON_STACK.
10362
10fc94a4
MK
103632004-02-22 Mark Kettenis <kettenis@gnu.org>
10364
51433e4b
MK
10365 * x86-64-linux-tdep.c: Tweak comment.
10366 (amd64_linux_supply_gregset): Renamed from
10367 x86_64_linux_supply_gresget.
10368 (amd64_linux_fill_gregset): Renamed from
10369 x86_64_linux_fill_gregset.
10370 (fetch_core_registers): Adjust for renamed functions.
10371 (amd64_core_fns): Renamed from x86_64_core_fns.
10372 (amd64_linux_sigtramp_start): Renamed from
10373 x86_64_linux_sigtramp_start.
10374 (amd64_linux_pc_in_sigtramp): Renamed from
10375 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10376 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10377 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10378 (amd64_linux_sigcontext_addr): Renamed from
10379 x86_64_linux_sigcontext_addr.
10380 (amd64_linux_sc_reg_offset): Renamed from
10381 x86_64_linux_sc_reg_offset.
10382 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10383 Adjust for renamed functions and variables.
10384 (_initialize_amd64_linux_tdep): Renamed from
10385 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10386 variables.
10387 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10388 Adjust for renamed functions.
10389
430eaf2e
MK
10390 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10391 from x86_64_linux_gregset64_reg_offset.
10392 (amd64_linux_gregset32_reg_offset): Rename from
10393 x86_64_linux_gregset64_reg_offset.
10394 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10395 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10396 (amd64_linux_dr_set_control): Renamed from
10397 x86_64_linux_dr_set_control. Adjust for renamed functions.
10398 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10399 Adjust for renamed functions.
10400 (amd64_linux_dr_reset_addr): Renamed from
10401 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10402 (amd64_linux_dr_get_status): Renamed from
10403 x86_64_linux_dr_get_status. Adjust for renamed functions.
10404 (_initialize_amd64_linux_nat): Renamed from
10405 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10406 functions.
10407 * config/i386/nm-x86-64linux.h: Update copyright year.
10408 Adjust for renamed functions.
10409
10fc94a4
MK
10410 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10411 amd64fbsd_sigtramp_start.
10412 (amd64fbsd_sigtramp_end_addr): Renamed from
10413 amd64fbsd_sigtramp_end.
10414 (amd64fbsd_init_abi): Adjust for renamed variables.
10415 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10416 variables.
10417 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10418 amd64fbsd_sigtramp_start.
10419 (amd64fbsd_sigtramp_end_addr): Renamed from
10420 amd64fbsd_sigtramp_end.
10421
343af405
AC
104222004-02-22 Andrew Cagney <cagney@redhat.com>
10423
537987fc
AC
10424 * hppa-tdep.c (hppa32_return_value): New function.
10425 (hppa64_return_value): New function.
10426 (hppa_gdbarch_init): Set return_value; keep disabled.
10427
fad850b2
AC
10428 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10429 struct-return and inferior function call methods.
10430
26d08f08
AC
10431 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10432 "frame-base.h".
10433 (struct hppa_frame_cache): Define.
10434 (hppa_frame_cache, hppa_frame_this_id): New functions.
10435 (hppa_frame_prev_register): New function.
10436 (hppa_frame_unwind, hppa_frame_base): New variables.
10437 (hppa_frame_unwind_sniffer): New function.
10438 (hppa_frame_base_address, hppa_unwind_pc): New function.
10439 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10440 sniffer, and frame base sniffer; keep disabled.
10441 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10442 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10443
e7d7bd65
AC
10444 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10445 to predicates for "seriously old code".
10446
e963316f
AC
10447 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10448 runtime if(0).
10449
56132691
AC
10450 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10451 unsigned.
10452 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10453
343af405
AC
10454 * config/pa/tm-hppa.h: Update copyright.
10455 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10456 (deprecated_init_frame_pc_default): Delete declaration.
10457 (hppa_frame_init_saved_regs): Delete declaration.
10458 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10459 * hppa-tdep.c: Include "arch-utils.h".
10460 (hppa_gdbarch_init): Set deprecated init_frame_pc
10461 and deprecated frame_init_saved_regs.
10462 (hppa_frame_init_saved_regs): Make static.
10463
f5859b4d
MK
104642004-02-22 Mark Kettenis <kettenis@gnu.org>
10465
86f6f8e7 10466 Remove old 386BSD support.
cf7c5c23 10467 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10468 * configure.host: Remove i[34567]86-*-bsd*.
10469 * configure.tgt: Remove i[34567]86-*-bsd*.
10470 * i386b-nat.c: Removed.
10471 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10472 (i386b-nat.o): Remove dependencies.
10473
86f6f8e7
MK
10474 * config/i386/i386bsd.mh: Removed.
10475 * config/i386/i386bsd.mt: Removed.
10476 * config/i386/nm-i386bsd.h: Removed.
10477 * config/i386/tm-i386bsd.h: Removed.
10478 * config/i386/xm-i386bsd.h: Removed.
10479
971218cd
MK
10480 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10481
7e654c37
MK
10482 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10483 (amd64fbsd_init_abi): Set link map offsets.
10484 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10485 (amd64nbsd_init_abi): Set link map offsets.
10486 * amd64obsd-tdep.c: Include "solib-svr4.h".
10487 (amd64obsd_init_abi): Set link map offsets.
10488 * i386fbsd-tdep.c: Include "solib-svr4.h".
10489 (i386fbsd_init_abi): Set link map offsets.
10490 * i386nbsd-tdep.c: Include "solib-svr4.h".
10491 (i386nbsdelf_init_abi): Set link map offsets.
10492 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10493 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10494 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10495 solib-legacy.o and core-aout.o. Reformat.
10496 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10497 solib-svr4.o, solib-legacy.o. Reformat.
10498 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10499 * config/i386/nbsdelf.mh: Reformat.
10500 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10501 solib-svr4.o, solib-legacy.o and corelow.o.
10502 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10503 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10504 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10505 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10506 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10507 (TM_FILE): Set to tm-fbsd.h.
10508 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10509 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10510 solib-svr4.o.
10511 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10512 solib-svr4.o.
10513 (TM_FILE): Set to nm-nbsd.h.
10514 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10515 Simplify shared library support. Don't include "elf/common.h".
10516 (SVR4_SHARED_LIBS): Don't define.
10517 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10518 "solib.h".
10519 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10520 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10521 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10522 Don't include "i386/tm-i386.h". Include "solib.h".
10523 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10524 Don't include "i386/tm-i386.h".
10525 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10526 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10527 Include "i386/xm-i386.h".
10528 (HOST_LONG_DOUBLE_FORMAT): Remove.
10529
5d93ae8c
MK
10530 Fix OpenBSD/i386 sigtramp recognition.
10531 * i386-tdep.h: Update copyright year.
10532 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10533 (i386bsd_sigtramp_end): New prototypes.
10534 (i386fbsd_sigtramp_start_addr): Renamed from
10535 i386fbsd_sigtramp_start.
10536 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10537 (i386obsd_sigtramp_start_addr): Renamed from
10538 i386obsd_sigtramp_start.
10539 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10540 * i386bsd-tdep.c: Update copyright year.
10541 (i386bsd_pc_in_sigtramp): Make public.
10542 * i386fbsd-nat.c: Update copyright year.
10543 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10544 * i386fbsd-tdep.c: Update copyright year.
10545 (i386fbsd_sigtramp_start_addr): Renamed from
10546 i386fbsd_sigtramp_start.
10547 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10548 (i386fbsdaout_init_abi): Adjust for renamed variables.
10549 * i386obsd-nat.c: Update copyright year.
10550 (_initialize_i386obsd_nat): Adjust for renamed variables.
10551 * i386obsd-tdep.c: Include "target.h".
10552 (i386obsd_page_size): New variable.
10553 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10554 (i386obsd_sigtramp_end): New functions.
10555 (i386obsd_sigtramp_start_addr): Renamed from
10556 i386obsd_sigtramp_start.
10557 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10558 (i386obsd_init_abi): Adjust for renamed variables. Set
10559 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10560 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10561
84d04465
MK
10562 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10563 trampoline change in OpenBSD kernel.
10564
b053aceb
MK
10565 * amd64-nat.c: Update copyright year.
10566 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10567 architecture from REGCACHE.
10568
f5859b4d
MK
10569 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10570 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10571
e4bbbda8
MK
105722004-02-21 Mark Kettenis <kettenis@gnu.org>
10573
ba361932
MK
10574 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10575 i[34567]86-*-openbsd3.[0-3].
10576 * config/i386/obsdaout.mh: New file.
10577
d3e48264
MK
10578 * config/i386/obsd.mh (MH_FLAGS): Remove.
10579
60a6eeb6
MK
10580 Fix PR build/1549.
10581 * i386obsd-tdep.c: Update copyright years. Include
10582 "solib-svr4.h".
10583 (i386obsd_init_abi): Don't set regset_from_core_section here.
10584 (i386obsd_aout_init_abi): New function. Set
10585 regset_from_core_section here.
10586 (i386obsd_elf_init_abi): New function.
10587 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10588 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10589 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10590 (TM_FILE): Set to tm-nbsd.h.
10591
10592 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10593 solib-sunos.o.
10594
e4bbbda8
MK
10595 * solib-svr4.h: Update copyright year.
10596 (svr4_ilp32_fetch_link_map_offsets)
10597 (svr4_lp64_fetch_link_map_offsets): New prototype.
10598 * solib-svr4.c: Update copyright year.
10599 (svr4_ilp32_fetch_link_map_offsets)
10600 (svr4_lp64_fetch_link_map_offsets): New function.
10601
f6fe98ef
DJ
106022004-02-20 Daniel Jacobowitz <drow@mvista.com>
10603
10604 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10605 to the partial symbol table.
10606
589ca796
JB
106072004-02-20 J. brobecker <brobecker@gnat.com>
10608
10609 * PROBLEMS: Add description of problem documented under gdb/1560.
10610
2031c21a
MK
106112004-02-20 Mark Kettenis <kettenis@gnu.org>
10612
30b344b1
MK
10613 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10614 comments.
10615 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10616 functions.
10617 (amd64obsd_init_abi): Reorder initializations. Use
10618 amd64obsd_r_reg_offset to initialize the general-purpose register
10619 set details. Set regset_from_core_section.
10620 (_initialize_amd64obsd_tdep): Rename from
10621 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10622 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10623 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10624
2031c21a
MK
10625 * NEWS (New native configurations): Mention OpenBSD/alpha.
10626 * configure.tgt: Add alpha*-*-openbsd*.
10627 * configure.host: Add alpha*-*-openbsd*.
10628 * alphanbsd-tdep.c: Update copyright year.
10629 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10630
42471775
AC
106312004-02-20 Andrew Cagney <cagney@redhat.com>
10632
10633 Fix PR tdep/1372.
10634 * configure.tgt: Delete target "none-*-*".
10635 * configure.host: Delete host "none-*-*".
10636 * config/none/none.mh: Delete file.
10637 * config/none/none.mt: Delete file.
10638 * config/none/xm-none.h: Delete file.
10639 * config/none/tm-none.h: Delete file.
10640 * config/none/nm-none.h: Delete file.
10641
960ccd7d
FF
106422004-02-19 Fred Fish <fnf@redhat.com>
10643
10644 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10645 cache->uses_fp prior to setting it.
10646
5f883edd
FF
106472004-02-19 Fred Fish <fnf@redhat.com>
10648
10649 Fix for PR breakpoint/1558.
10650 * sh-tdep.c (IS_JSR): New macro.
10651 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10652
f98c22d5
JB
106532004-02-19 Jim Blandy <jimb@redhat.com>
10654
10655 * findvar.c (value_from_register): Doc fix.
10656
95051d27
JJ
106572004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10658
10659 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10660 type being greater than sizeof of host's LONGEST. Always use
10661 unpack_long() unless format 'f' chosen.
10662
ccefbec3
EZ
106632004-02-19 Joel Brobecker <brobecker@gnat.com>
10664
10665 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10666
ccefbec3
EZ
10667 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10668 contains a symbol wich is the best, non-exact match for the given
10669 pc. Update comments.
10670
106712004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10672
2ede629f
EZ
10673 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10674 macro, which was part of the now removed Mach 3 port.
10675 * utils.c (request_quit): Ditto.
10676
567ee972
MK
106772004-02-18 Mark Kettenis <kettenis@gnu.org>
10678
10679 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10680 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10681
50cca7bb
MK
106822004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10683
10684 Committed by Mark Kettenis <kettenis@gnu.org>.
10685
10686 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10687 Define.
10688
226361c4
AC
106892004-02-18 Andrew Cagney <cagney@redhat.com>
10690
10691 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10692 CONFIG_INSTALL and CONFIG_UNINSTALL.
10693 * configure: Re-generate.
10694 * interps.h (INTERP_TUI): Define.
10695 * Makefile.in: Update dependencies.
10696 (TUI): New macro.
10697 (tui-main.o): Specify dependencies.
10698 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10699 * tui/tui-main.c: New file.
10700
49cfa46f
MK
107012004-02-18 Mark Kettenis <kettenis@gnu.org>
10702
e2879ccb
MK
10703 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10704 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10705 dependencies.
10706 * configure.host: Add x86_64-*-openbsd*.
10707 * configure.tgt: Add x86_64-*-openbsd*.
10708 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10709
c43f4bec
MK
10710 * tui/tui.c: Don't include <malloc.h>.
10711
09ae75b6
MK
10712 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10713 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10714 amd64nbsd-tdep.c.
10715
49cfa46f 10716 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10717 static. Remove extraneous whitespace.
49cfa46f
MK
10718 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10719 static.
10720
05957fdb
JB
107212004-02-17 Jim Blandy <jimb@redhat.com>
10722
10723 * findvar.c (value_from_register): Doc fix.
10724
d0f54f9d
JB
107252004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10726
10727 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10728
8a1dac83 10729 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10730 CORE_ADDR as type for selectors. Correct types for GNU run time
10731 message lookup function to use double indirection.
10732 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10733 * objc-lang.h (lookup_child_selector): Adapt prototype.
10734
9cbd5950
JB
10735 * s390-nat.c (SUBOFF): New macro.
10736 (supply_gregset, fill_gregset): Use it to handle debugging
10737 of 32-bit exectuables running under a 64-bit kernel.
10738 * s390-tdep.c: Include "solib-svr4.h".
10739 (s390_svr4_fetch_link_map_offset): New function.
10740 (s390x_svr_fetch_link_map_offset): Likewise.
10741 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10742 * Makefile.in (s390-tdep.o): Update dependencies.
10743
a8c99f38
JB
10744 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10745 "frame-unwind.h".
10746 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10747 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10748 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10749 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10750 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10751 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10752 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10753 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10754 (struct frame_extra_info): Remove.
10755 (s390_memset_extra_info): Remove.
f73b1eff
JB
10756 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10757 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10758 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10759 (is_rse): Renamed to ...
10760 (is_rsy): ... this. Support long displacements.
10761 (is_rxe): Renamed to ...
10762 (is_rxy): ... this. Support long displacements.
10763 (compute_x_addr): Support long displacements.
10764 (struct s390_prologue_data): New data type.
10765 (s390_on_stack): Change API to use struct s390_prologue_data.
10766 (s390_store): Reimplement.
10767 (s390_load): New function.
10768 (s390_get_signal_frame_info): Remove.
10769 (s390_get_frame_info): Remove, replace by ...
10770 (s390_analyze_prolog): ... this new function.
10771 (s390_check_function_end): Remove.
10772 (s390_function_start): Remove.
10773 (s390_frameless_function_invokation): Remove.
10774 (s390_is_sigreturn): Remove.
10775 (s390_init_frame_pc_first): Remove.
10776 (s390_init_frame_extra_info): Remove.
10777 (s390_frame_init_saved_regs): Remove.
10778 (s390_frame_saved_pc_nofix): Remove.
10779 (s390_frame_saved_pc): Remove.
10780 (s390_frame_chain): Remove.
10781 (s390_fp_regnum, s390_read_fp): Remove.
10782 (s390_pop_frame_regular, s390_pop_frame): Remove.
10783 (s390_saved_pc_after_call): Remove.
10784 (s390_skip_prologue): Reimplement.
10785 (s390_in_function_epilogue_p): Support long displacements.
10786 (struct s390_unwind_cache): New data structure.
10787 (s390_frame_unwind_cache): New function.
10788 (s390_prologue_frame_unwind_cache): Likewise.
10789 (s390_backchain_frame_unwind_cache): Likewise.
10790 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10791 (s390_frame_unwind): Define.
10792 (s390_frame_sniffer): New function.
10793 (struct s390_pltstub_unwind_cache): New data structure.
10794 (s390_pltstub_frame_unwind_cache): New function.
10795 (s390_pltstub_frame_this_id): Likewise.
10796 (s390_pltstub_frame_prev_register): Likewise.
10797 (s390_pltstub_frame_unwind): Define.
10798 (s390_pltstub_frame_sniffer): New function.
10799 (struct s390_sigtramp_unwind_cache): New data structure.
10800 (s390_sigtramp_frame_unwind_cache): New function.
10801 (s390_sigtramp_frame_this_id): Likewise.
10802 (s390_sigtramp_frame_prev_register): Likewise.
10803 (s390_sigtramp_frame_unwind): Define.
10804 (s390_sigtramp_frame_sniffer): New function.
10805 (s390_frame_base_address, s390_local_base_address): New functions.
10806 (s390_frame_base): Define.
10807 (s390_unwind_pc, s390_unwind_sp): New function.
10808 (s390_push_dummy_call): Use new frame base location.
10809 (s390_unwind_dummy_id): Likewise.
10810 (s390_gdbarch_init): Remove calls to:
10811 set_gdbarch_frameless_function_invocation,
10812 set_gdbarch_deprecated_init_frame_pc,
10813 set_gdbarch_deprecated_frame_chain,
10814 set_gdbarch_deprecated_frame_init_saved_regs,
10815 set_gdbarch_deprecated_pop_frame,
10816 set_gdbarch_deprecated_init_extra_frame_info,
10817 set_gdbarch_deprecated_init_frame_pc_first,
10818 set_gdbarch_deprecated_target_read_fp,
10819 set_gdbarch_deprecated_frame_saved_pc,
10820 set_gdbarch_deprecated_saved_pc_after_call,
10821 set_gdbarch_deprecated_fp_regnum.
10822 Add calls to:
10823 set_gdbarch_in_solib_call_trampoline,
10824 frame_unwind_append_sniffer,
10825 frame_base_set_default,
10826 set_gdbarch_unwind_pc,
10827 set_gdbarch_unwind_sp.
10828 * Makefile.in (s390-tdep.o): Update dependencies.
10829
b0cf273e
JB
10830 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10831 (S390_STACK_FRAME_OVERHEAD): Remove.
10832 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10833 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10834 (s390_promote_integer_argument): Remove.
10835 (s390_cannot_extract_struct_value_address): Remove.
10836 (s390_use_struct_convention, s390_store_struct_return): Remove.
10837 (s390_extract_return_value, s390_store_return_value): Remove.
10838 (s390_return_value_convention, s390_return_value): New functions.
10839 (is_float_singleton): Handle typedefs.
8a1dac83 10840 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10841 Remove, replace by ...
10842 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10843 s390_function_arg_integer): ... these new functions.
10844 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10845 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10846 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10847 Fill in tdep->abi.
10848 Remove calls to:
10849 set_gdbarch_deprecated_store_struct_return,
10850 set_gdbarch_deprecated_extract_return_value,
10851 set_gdbarch_deprecated_store_return_value,
10852 set_gdbarch_use_struct_convention,
10853 set_gdbarch_extract_struct_value_address,
10854 set_gdbarch_deprecated_pc_in_call_dummy,
10855 set_gdbarch_deprecated_push_arguments,
10856 set_gdbarch_deprecated_save_dummy_frame_tos,
10857 set_gdbarch_deprecated_push_return_address,
10858 set_gdbarch_deprecated_sizeof_call_dummy_words,
10859 set_gdbarch_deprecated_call_dummy_words,
10860 set_gdbarch_deprecated_dummy_write_sp.
10861 Add calls to:
10862 set_gdbarch_push_dummy_call,
10863 set_gdbarch_unwind_dummy_id,
10864 set_gdbarch_return_value.
8a1dac83 10865
e1457d83
JB
10866 * config/s390/nm-linux.h: Update comments.
10867 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10868 (STOPPED_BY_WATCHPOINT): Redefine.
10869 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10870 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10871 (s390_stopped_by_watchpoint): Likewise.
10872 (watch_area_cnt): Remove.
10873 * s390-nat.c: Update comments.
10874 (watch_area): Remove typedef.
10875 Global replace watch_area by struct watch_area.
10876 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10877 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10878 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10879 (s390_fix_watch_points): Remove pid argument,
10880 use s390_inferior_tid. Recompute area spanned by watchpoints.
10881 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10882 argument. Reimplement.
10883
d0f54f9d
JB
10884 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10885 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10886 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10887 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10888 core-regset.o.
10889 * config/s390/s390x.mt: Remove.
10890 * config/s390/tm-s390.h: Remove.
10891 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10892 (TARGET_ELF64): Remove.
10893 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10894 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10895 s390*-*-* case; always set gdb_target to s390.
10896 * regformats/reg-s390.dat: Remove control registers.
10897 * regformats/reg-s390x.dat: Likewise.
10898 * s390-tdep.h: New file.
8a1dac83 10899 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10900 Include "inferior.h" and "s390-tdep.h".
10901 Remove private definition of offsetof.
10902 (s390_register_u_addr): Remove.
10903 (regmap_gregset, regmap_fpregset): Define.
10904 (supply_gregset, fill_gregset): Reimplement.
10905 (supply_fpregset, fill_fpregset): Likewise.
10906 (s390_inferior_tid): New function.
10907 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10908 (fetch_inferior_registers, store_inferior_registers): Likewise.
10909 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10910 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10911 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10912 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10913 (struct gdbarch_tdep): Define.
10914 (struct s390_register_info): Define.
10915 (s390_register_info): New variable.
10916 (s390_register_name): Reimplement.
10917 (s390_register_type): New function.
10918 (s390_register_raw_size, s390x_register_raw_size): Remove.
10919 (s390_cannot_fetch_register): Remove.
10920 (s390_register_byte): Remove.
10921 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10922 (s390_dwarf_regmap): New variable.
10923 (s390_dwarf_reg_to_regnum): New function.
10924 (s390_stab_reg_to_regnum): Remove.
10925 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10926 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10927 (s390_convert_register_p): Likewise.
10928 (s390_register_to_value, s390_value_to_register): Likewise.
10929 (s390_register_reggroup_p): Likewise.
10930 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10931 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10932 (s390_supply_regset, s390_regset_from_core_section): New functions.
10933 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10934 (S390_FPR_SIZE): Likewise.
10935 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10936 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10937 (S390_NUM_GPRS): Move here from tm-s390.h.
10938 (S390_NUM_FPRS): Likewise.
10939 (s390_in_function_epilogue_p): New function.
10940 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10941 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10942 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10943 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10944 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10945 Remove calls to:
10946 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10947 set_gdbarch_deprecated_max_register_virtual_size,
10948 set_gdbarch_deprecated_register_byte,
d0f54f9d 10949 set_gdbarch_cannot_fetch_register,
8a1dac83 10950 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10951 set_gdbarch_deprecated_register_size,
10952 set_gdbarch_deprecated_register_raw_size,
10953 set_gdbarch_deprecated_register_virtual_size,
10954 set_gdbarch_deprecated_register_virtual_type,
10955 set_gdbarch_deprecated_register_bytes.
10956 Add calls to:
10957 set_gdbarch_num_pseudo_regs,
10958 set_gdbarch_register_type,
10959 set_gdbarch_convert_register_p,
10960 set_gdbarch_register_to_value,
10961 set_gdbarch_value_to_register,
10962 set_gdbarch_register_reggroup_p,
10963 set_gdbarch_regset_from_core_section,
10964 set_gdbarch_pseudo_register_read,
10965 set_gdbarch_pseudo_register_write,
10966 set_gdbarch_in_function_epilogue_p.
10967 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10968 (s390_tdep_h): New variable.
10969
8cfe231d
JB
109702004-02-17 Jim Blandy <jimb@redhat.com>
10971
4589a601
JB
10972 * findvar.c (value_from_register): If the type has no length, just
10973 return an acceptable value --- don't report an internal error.
10974
8cfe231d
JB
10975 * stabsread.c (read_type): If we find any type numbers that are
10976 forward references, complain if the references aren't resolved by
10977 the time we're finished reading.
10978 (cleanup_undefined_types): Make error message more appropriate for
10979 a complaint.
10980
5bf0017e
EZ
109812004-02-17 Elena Zannoni <ezannoni@redhat.com>
10982
9d62932d
EZ
10983 * Makefile.in (defs_h): Remove dependency on progress_h.
10984 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10985 progress.h.
10986 * main.c (captured_main): Delete use of START_PROGRESS and
10987 END_PROGRESS.
10988
109892004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10990
5bf0017e
EZ
10991 * objfiles.c (terminate_minimal_symbol_table): Add back
10992 initialization of MSYMBOL_TYPE.
10993
9fc9f5e2
AC
109942004-02-17 David Mosberger <davidm@hpl.hp.com>
10995
10996 Committed by Andrew Cagney.
10997 * Makefile.in (ia64_tdep_h): New macro.
10998 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10999 (ia64-tdep.o): Likewise.
11000 * ia64-tdep.h: New file.
11001 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11002 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11003 (ia64_aix_sigcontext_register_address): Likewise.
11004 (ia64_linux_getunwind_table): Delete declaration.
11005 * ia64-linux-tdep.c: Likewise.
11006
76cd2bd9
CV
110072004-02-17 Corinna Vinschen <vinschen@redhat.com>
11008
11009 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11010 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11011 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11012
634aa483
AC
110132004-02-17 Andrew Cagney <cagney@redhat.com>
11014
11015 * symtab.c (skip_prologue_using_sal): New function.
11016 * symtab.h (skip_prologue_using_sal): Declare.
11017 * frv-tdep.c: Include "symtab.h".
11018 (skip_prologue_using_sal): Delete function.
11019 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11020 * rs6000-tdep.c (refine_prologue_limit): Mention
11021 skip_prologue_using_sal.
11022 * ia64-tdep.c (refine_prologue_limit): Ditto.
11023 * Makefile.in: Update dependencies.
11024
110252004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11026
39ce7b3f
AC
11027 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11028 START_INFERIOR_TRAPS_EXPECTED.
11029 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11030 START_INFERIOR_TRAPS_EXPECTED.
11031 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11032 Delete macro.
11033 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11034 macro, moved to "nm-osf.h". Update copyright.
11035 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11036 update copyright.
11037
19772a2c
AC
11038 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11039 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11040 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11041 frameless_look_for_prologue.
11042 * frame.h (legacy_frameless_look_for_prologue): Rename
11043 frameless_look_for_prologue.
11044 * gdbarch.h, gdbarch.c: Re-generate.
11045 * sh64-tdep.c (sh64_gdbarch_init): Update.
11046 * sh-tdep.c (sh_gdbarch_init): Update.
11047 * s390-tdep.c (s390_gdbarch_init): Update.
11048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11049 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11050 * m68k-tdep.c (m68k_gdbarch_init): Update.
11051 (delta68_frame_args_address): Update.
11052 * m32r-tdep.c (m32r_gdbarch_init): Update.
11053 * hppa-tdep.c (hppa_gdbarch_init): Update.
11054 * h8300-tdep.c (h8300_gdbarch_init): Update.
11055 * frv-tdep.c (frv_gdbarch_init): Update.
11056 (frv_frameless_function_invocation): Update.
11057 * cris-tdep.c (cris_gdbarch_init): Update.
11058 (cris_frameless_function_invocation): Update.
11059 * avr-tdep.c (avr_gdbarch_init): Update.
11060 * arm-tdep.c (arm_gdbarch_init): Update.
11061 * stack.c (frame_info): Update, call predicate.
11062 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11063 * frame.c (legacy_get_prev_frame): Update, call predicate..
11064 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11065 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11066 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11067 invocation.
11068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11069 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11070 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11071
11072 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11073 function.
11074
7dcaac91
DJ
110752004-02-16 Daniel Jacobowitz <drow@mvista.com>
11076
11077 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11078 initializations.
11079
88289b6e
AC
110802004-02-16 Andrew Cagney <cagney@redhat.com>
11081
11082 * tui/tui-windata.c: Include "gdb_string.h".
11083 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11084 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11085 * Makefile.in: Update dependencies.
11086
9f976b41
DJ
110872004-02-16 Daniel Jacobowitz <drow@mvista.com>
11088
11089 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11090 * infrun.c: Include "gdb_assert.h".
11091 (singlestep_ptid, saved_singlestep_ptid)
11092 (stepping_past_singlestep_breakpoint): New variables.
11093 (resume): Set singlestep_ptid. Check for singlestep thread
11094 hop.
11095 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11096 (handle_inferior_event): Handle singlestep thread hop.
11097
c324d747
AC
110982004-02-16 Andrew Cagney <cagney@redhat.com>
11099
f090b9b1
AC
11100 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11101 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11102 (dwarf2_frame_init_reg): Ditto.
11103
fd33e6cb
AC
11104 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11105 suggested by Joshua Neuheisel
11106
c324d747
AC
11107 * configure.in: Always check for curses, including pdcurses.
11108 Warn, instead of error, when no curses are found. Enable TUI when
11109 curses is available.
11110 * configure: Re-generate.
11111
b66ba949
CV
111122004-02-16 Corinna Vinschen <vinschen@redhat.com>
11113
11114 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11115 sh_sh4_register_convert_to_virtual.
11116 (sh_register_convert_to_raw): Rename from
11117 sh_sh4_register_convert_to_raw.
11118 (sh_pseudo_register_read): Accomodate above name change.
11119 (sh_pseudo_register_write): Ditto.
11120
b58cbbf2
CV
111212004-02-16 Corinna Vinschen <vinschen@redhat.com>
11122
11123 * sh-tdep.c (sh_generic_register_name): Remove.
11124 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11125
5929a910
AC
111262004-02-15 Andrew Cagney <cagney@redhat.com>
11127
4566dfcf
AC
11128 * configure.in (build_warnings): Add -Wunused-function.
11129 * configure: Re-generate.
11130
db11ed55
AC
11131 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11132 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11133
46ac7a5d
AC
11134 * procfs.c (procfs_init_inferior): Assume that
11135 START_INFERIOR_TRAPS_EXPECTED is defined.
11136 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11137 * config/ns32k/tm-nbsd.h: Delete file,
11138 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11139
ba801595
AC
11140 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11141 * config/vax/tm-vax.h: Delete file.
11142
5929a910
AC
11143 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11144 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11145 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11146 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11147 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11148 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11149 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11150
8f22cb90
MK
111512004-02-15 Mark Kettenis <kettenis@gnu.org>
11152
11153 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11154 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11155 (struct dwarf2_frame_ops): New.
11156 (dwarf2_frame_default_init_reg): New function, based on
11157 dwarf2_frame_init_reg.
11158 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11159 (dwarf2_frame_init_reg): Call architecture-specific function.
11160 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11161 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11162 instead of dwarf2_frame_data.
11163 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11164 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11165
8132723e
AC
111662004-02-15 Andrew Cagney <cagney@redhat.com>
11167
046a4708
AC
11168 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11169 register_gdbarch_swap.
11170 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11171 * f-lang.c (_initialize_f_language): Update, use
11172 DEPRECATED_REGISTER_GDBARCH_SWAP.
11173 * remote.c (_initialize_remote): Ditto.
11174 * regcache.c (_initialize_regcache): Ditto.
11175 * parse.c (_initialize_parse): Ditto.
11176 * infrun.c (_initialize_infrun): Ditto.
11177 * mi/mi-main.c (_initialize_mi_main): Ditto.
11178 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11179
549c1eea
AC
11180 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11181 poking .cacheable directly.
11182 * symfile.c (symfile_bfd_open): Ditto.
11183
0c0b39de
AC
11184 * Makefile.in: Update all dependencies.
11185
8132723e
AC
11186 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11187 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11188 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11189 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11190 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11191
b9d26eb9
AC
111922004-02-14 Andrew Cagney <cagney@redhat.com>
11193
8e1f669a
AC
11194 * arch-utils.c (legacy_convert_register_p): Check
11195 DEPRECATED_REGISTER_CONVERTIBLE_P.
11196 * findvar.c (value_of_register): Ditto.
11197
cd0bfa36
AC
11198 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11199 * gdbarch.h, gdbarch.c: Re-generate.
11200 * arch-utils.c (deprecated_register_convertible_not): Delete.
11201 * arch-utils.h (deprecated_register_convertible_not): Delete.
11202 * mi/mi-main.c (get_register): Update. Update copyright.
11203 * infcmd.c (default_print_registers_info): Update.
11204
b9d26eb9
AC
11205 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11206 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11207 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11208 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11209 * frame.c (deprecated_get_next_frame_hack): Delete function.
11210 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11211 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11212 Update.
11213 * infcall.c (call_function_by_hand): Update.
11214
9ab9195f
EZ
112152004-02-14 Elena Zannoni <ezannoni@redhat.com>
11216
11217 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11218 from here...
9ab9195f
EZ
11219 * objfiles.c (init_entry_point_info, entry_point_address):..to
11220 here.
11221 * symfile.h (init_entry_point_info, entry_point_address): Remove
11222 prototypes.
11223 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11224 prototypes.
9ab9195f
EZ
11225 * cris-tdep.c: Remove include of symfile.h. Add include of
11226 objfiles.h.
11227 * infcall.c: Ditto.
11228 * mcore-tdep.c: Ditto.
11229 * mn10300-tdep.c: Ditto.
11230 * sh64-tdep.c: Ditto.
11231 * v850-tdep.c: Ditto.
11232 * arm-tdep.c: Remove include of symfile.h.
11233 * blockframe.c: Ditto.
11234 * coffread.c: Ditto.
11235 * dbxread.c: Ditto.
11236 * dwarf2read.c: Ditto.
11237 * dwarfread.c: Ditto.
8a1dac83 11238 * frv-tdep.c: Ditto.
9ab9195f
EZ
11239 * ia64-tdep.c: Ditto.
11240 * mdebugread.c: Ditto.
11241 * mipsread.c: Ditto.
8a1dac83 11242 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11243 * s390-tdep.c: Ditto.
11244 * sh-tdep.c: Ditto.
8a1dac83 11245 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11246 * gdbarch.sh: Remove include of symfile.h.
11247 * gdbarch.c: Regenerate.
11248 * solib-irix.c (enable_break): Use entry_point_address().
11249 Add comment about include file.
11250 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11251 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11252 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11253 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11254 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11255 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11256
c4c5b7ba
AC
112572004-02-13 Andrew Cagney <cagney@redhat.com>
11258
11259 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11260 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11261 copyright.
11262 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11263
3e7879de
FF
112642004-02-12 Fred Fish <fnf@redhat.com>
11265
11266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11267 set_gdbarch_store_return_value.
11268
6a7760b6
AC
112692004-02-12 Andrew Cagney <cagney@redhat.com>
11270
11271 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11272 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11273 (interrupt_query): Ditto.
11274 (ofunc): Delete unused variable.
11275 * cris-tdep.c (cris_abi): Delete unused function.
11276 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11277 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11278 (cris_get_asr_quick_shift_steps): Ditto.
11279 (cris_skip_prologue_frameless_p): Ditto.
11280 * arm-tdep.c (arm_push_return_address): Delete unused function.
11281 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11282 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11283 * s390-tdep.c (s390_function_start): Delete unused function.
11284
31687c3c
AC
112852004-02-12 Andrew Cagney <cagney@redhat.com>
11286
11287 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11288 gdbarch.h, gdbarch.c: Re-generate.
11289 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11290 to generic_prologue_frameless_p.
11291 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11292 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11293
6de918a6
DJ
112942004-02-11 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * mips-linux-tdep.c: Include "frame.h".
11297 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11298 (mips_linux_skip_resolver): New functions.
11299 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11300 and set_gdbarch_in_solib_call_trampoline.
11301 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11302 to after set_gdbarch_in_solib_return_trampoline. Only set the
11303 solib hooks to mips16 functions if the OS ABI is unknown.
11304 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11305 including "config/tm-linux.h".
11306 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11307 * Makefile.in (mips-linux-tdep.o): Update.
11308
87b3ede8
DC
113092004-02-11 David Carlton <carlton@kealia.com>
11310
11311 * linespec.c (decode_compound): Only look for a class symbol when
11312 considering all but the rightmost component.
11313
5979bc46
AC
113142004-02-11 Andrew Cagney <cagney@redhat.com>
11315
11316 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11317 abi code are are separatly grouped.
11318
5867a2fb
AC
113192004-02-11 Andrew Cagney <cagney@redhat.com>
11320
11321 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11322 * gdbarch.h, gdbarch.c: Re-generate.
11323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11324 * v850-tdep.c (v850_gdbarch_init): Update.
11325 * sh64-tdep.c (sh64_gdbarch_init): Update.
11326 * sh-tdep.c (sh_gdbarch_init): Update.
11327 * s390-tdep.c (s390_gdbarch_init): Update.
11328 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11329 * mips-tdep.c (mips_gdbarch_init): Update.
11330 * mcore-tdep.c (mcore_gdbarch_init): Update.
11331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11332 * m32r-tdep.c (m32r_gdbarch_init): Update.
11333 * ia64-tdep.c (ia64_gdbarch_init): Update.
11334 * hppa-tdep.c (hppa_gdbarch_init): Update.
11335 * h8300-tdep.c (h8300_gdbarch_init): Update.
11336 * frv-tdep.c (frv_gdbarch_init): Update.
11337 * d10v-tdep.c (d10v_gdbarch_init): Update.
11338 * cris-tdep.c (cris_gdbarch_init): Update.
11339 * avr-tdep.c (avr_gdbarch_init): Update.
11340 * arm-tdep.c (arm_gdbarch_init): Update.
11341 * alpha-tdep.c (alpha_gdbarch_init): Update.
11342
026a72f8
CV
113432004-02-11 Corinna Vinschen <vinschen@redhat.com>
11344
11345 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11346 comma.
11347 (sh_sh4al_dsp_register_name): Ditto.
11348
3903d437
AC
113492004-02-10 Andrew Cagney <cagney@redhat.com>
11350
11351 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11352 (mips_init_frame_pc_first): Delete function.
11353 (mips_frame_saved_pc): Delete function.
11354 (mips_frame_chain): Delete function.
11355 (mips_init_extra_frame_info): Delete function.
11356 (mips_xfer_register): Delete unused variable "reg".
11357 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11358 (mips_n32n64_return_value): Delete unused variable "reg".
11359 (mips_n32n64_return_value): Delete unused variable "pos".
11360 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11361 (mips_o32_return_value): Delete unused variable "pos".
11362 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11363 (mips_print_fp_register): Delete unused variable "namelen"
11364 (mips_print_fp_register): Delete unused variable "flt2"
11365 (get_frame_pointer): Delete function.
11366 (cached_proc_desc): Delete static variable.
11367 (mips_pop_frame): Delete function.
11368 (mips_find_saved_regs): Delete function.
11369 (mips_get_saved_register): Delete function.
11370 (mips_saved_pc_after_call): Delete function.
11371 (SIGFRAME_BASE): Delete macro.
11372 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11373 (SIGFRAME_PC_OFF): Delete macro.
11374 (SIGFRAME_REGSAVE_OFF): Delete macro.
11375 (mips_dump_tdep): Do not print deleted macro definitions.
11376
b9fb98bd
AC
113772004-02-10 Andrew Cagney <cagney@redhat.com>
11378
11379 * Makefile.in (SFILES): Remove explictly listed tui files.
11380 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11381
78ced177 113822004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11383
78ced177
JJ
11384 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11385 to use paddr functions to format ia64 addresses and long values.
11386 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11387 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11388 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11389 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11390 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11391
6a83354a
AC
113922004-02-10 Andrew Cagney <cagney@redhat.com>
11393
11394 * defs.h: Do not include "tui.h".
11395 * gdb_curses.h: New file.
11396 * tui/tui-hooks.h: New file.
11397 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11398 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11399 (tui_initialize_io): Delete declaration.
11400 (tui_initialize_readline: Delete redundant declaration.
11401 (struct tui_point): Delete definition.
11402 * tui/tui-data.h (struct tui_point): Define.
11403 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11404 * utils.c: Include "tui/tui.h".
11405 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11406 * printcmd.c [TUI]: Include "tui/tui.h".
11407 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11408 * tui/tui-command.c: Include "gdb_curses.h".
11409 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11410 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11411 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11412 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11413 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11414 * Makefile.in: Update all dependencies.
11415 (tui_hooks_h, gdb_curses_h): Define.
11416 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11417
997470ef
EZ
114182004-02-10 Elena Zannoni <ezannoni@redhat.com>
11419
11420 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11421 auxf2. Add comments about some other rarely used fields.
11422
4ff2cc4d
AC
114232004-02-10 Andrew Cagney <cagney@redhat.com>
11424
11425 * Makefile.in (init.c): Fix script removing duplicates. Problem
11426 reported by Peter Schauer.
11427
1ab21617
EZ
114282004-02-09 Elena Zannoni <ezannoni@redhat.com>
11429
11430 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11431 obstack_specify_allocation.
11432 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11433 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11434 (allocate_rt_common_objfile): Ditto.
11435 * symfile.c (reread_symbols): Ditto.
11436 * gdb_obstack.h: Add comment.
11437
17763fd9
EZ
114382004-02-09 Elena Zannoni <ezannoni@redhat.com>
11439
11440 * linespec.c (decode_line_1, locate_first_half)
11441 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11442 commented out code.
11443
ec5cdd75
DJ
114442004-02-09 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11447 obstack_free.
11448
43b54b88
AC
114492004-02-09 Andrew Cagney <cagney@redhat.com>
11450
11451 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11452 fails, try find_pc_section. Fix PR c++/1267.
11453 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11454 instead of find_pc_mapped_section.
11455 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11456 not default to the section containing PC. Fix PR symtab/1519.
11457
edfae063
AC
114582004-02-09 Andrew Cagney <cagney@redhat.com>
11459
11460 * Makefile.in (mips-tdep.o): Update dependencies.
11461 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11462 "trad-frame.h".
11463 (mips_unwind_pc): Return the pseudo PC register.
11464 (mips_unwind_dummy_id): New function.
11465 (mips16_fetch_instruction): New function.
11466 (mips32_fetch_instruction): New function.
11467 (struct mips_frame_cache): Define.
11468 (mips_mdebug_frame_cache): New function.
11469 (mips_mdebug_frame_this_id): New function.
11470 (mips_mdebug_frame_prev_register): New function.
11471 (mips_mdebug_frame_unwind): Define.
11472 (mips_mdebug_frame_sniffer): New function.
11473 (mips_mdebug_frame_base_address): New function.
11474 (mips_mdebug_frame_base): Define.
11475 (mips_mdebug_frame_base_sniffer): New function.
11476 (mips_gdbarch_init): Append unwind and base sniffers. Set
11477 unwind_dummy_id.
11478
defc864c
AC
114792004-02-08 Andrew Cagney <cagney@redhat.com>
11480
6764ddad
AC
11481 * frame.c: Print both the register number and name.
11482
defc864c
AC
11483 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11484 and a sed into a single sed. Make .c and .o patterns more robust.
11485 (OBS): Delete.
11486 (INIT_FILES): Replace OBS with COMMON_OBS.
11487 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11488
645d6d10
MK
114892004-02-08 Mark Kettenis <kettenis@gnu.org>
11490
11491 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11492 the PT_WCOOKIE request.
11493
23e3c3fc
AC
114942004-02-08 Andrew Cagney <cagney@redhat.com>
11495
58dfe9ff
AC
11496 * mips-tdep.c (mips_unwind_pc): New function.
11497 (mips_gdbarch_init): Set mips_unwind_pc.
11498
1152e35e
AC
11499 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11500 (get_frame_id): Allow the UNKNOWN_FRAME.
11501 (frame_register_unwind, get_frame_type): Ditto.
11502
31b75dbf
AC
11503 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11504 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11505 unwind_dummy_id indicates a legacy frame.
11506
3483b318
AC
11507 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11508 * configure: Re-generate.
11509
23e3c3fc
AC
11510 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11511 methods.
11512
33f8ca73
AC
115132004-02-08 Andrew Cagney <cagney@redhat.com>
11514
11515 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11516 makefile macro.
11517 * configure: Re-generate.
11518 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11519 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11520 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11521 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11522 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11523 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11524 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11525 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11526 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11527 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11528
6ba8e26f 115292004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11530
20d286a5
AC
11531 * Makefile.in: Update all dependencies.
11532
d836ee13
AC
11533 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11534 * configure: Re-generate.
11535 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11536 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11537 (COMMON_OBS): Add "main.o" and "annotate.o".
11538 (ANNOTATE_OBS): Delete.
11539 (OBS): Remove ANNOTATE_OBS.
11540 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11541 CONFIG_INITS.
11542 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11543 against CONFIG_OBS and "main.o".
11544 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11545 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11546
d02c80cd
AC
11547 * tui/tui-command.c: Include "gdb_string.h", delete register
11548 attribute, use ISO-C function signatures.
11549 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11550 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11551 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11552 * tui/tui.c: Ditto.
6ba8e26f
AC
11553
11554 * tui/tui-command.c: Change variable and function names to lower
11555 case.
11556 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11557 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11558 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11559 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11560 * tui/tui-winsource.c, tui/tui.c: Ditto.
11561
4a146b47
EZ
115622004-02-07 Elena Zannoni <ezannoni@redhat.com>
11563
11564 * buildsym.c (free_pending_blocks, finish_block)
11565 (record_pending_block, make_blockvector, end_symtab): Replace
11566 symbol_obstack with objfile_obstack.
8a1dac83 11567 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11568 (coff_read_enum_type): Ditto.
8a1dac83 11569 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11570 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11571 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11572 (dwarf2_symbol_mark_computed): Ditto.
11573 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11574 * elfread.c (elf_symtab_read): Ditto.
11575 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11576 (hpread_read_enum_type, hpread_read_function_type)
11577 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11578 Ditto.
8a1dac83 11579 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11580 (java_link_class_type): Ditto.
8a1dac83 11581 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11582 (new_symbol): Ditto.
11583 * minsyms.c (install_minimal_symbols): Ditto.
11584 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11585 (terminate_minimal_symbol_table): Replace symbol_obstack with
11586 objfile_obstack.
11587 (free_objfile): Remove freeing of symbol_obstack.
11588 * objfiles.h: Remove symbol_obstack field.
11589 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11590 objfile_obstack.
11591 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11592 symbol_obstack.
11593 (solib_add_common_symbols): Replace symbol_obstack with
11594 objfile_obstack.
11595 * somsolib.c (som_solib_add): Ditto.
11596 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11597 (common_block_start, common_block_end): Ditto.
11598 * symfile.c (reread_symbols): Remove freeing and init of
11599 symbol_obstack.
11600 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11601 * symfile.h: Update comment.
11602 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11603 stats printing.
11604 * symtab.c (symbol_set_names): Replace symbol_obstack with
11605 objfile_obstack.
11606 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11607 Update comments.
11608 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11609 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11610 objfile_obstack.
11611
6d012f14
AC
116122004-02-07 Andrew Cagney <cagney@redhat.com>
11613
11614 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11615 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11616 fields and variables.
11617 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11618 (m_beInvisible): Delete macro.
11619 * tui/tui-data.h: Fix case case fields and variables.
11620 (m_genWinPtrIsNull): Delete macro.
11621 (tui_win_list): Rename winList.
11622 (TUI_SRC_WIN): Rename srcWin.
11623 (TUI_DISASM_WIN): Rename disassemWin.
11624 (TUI_DATA_WIN): Rename dataWin.
11625 (TUI_CMD_WIN): Rename cmdWin.
11626 (m_genWinPtrNotNull): Delete macro.
11627 (m_winPtrIsNull): Delete macro.
11628 (m_winPtrNotNull): Delete macro.
11629 (tui_win_is_source_type): Replace m_winIsSourceType
11630 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11631 (tui_win_has_locator): Replace m_hasLocator.
11632 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11633 m_setWinHighlightOff.
11634 * tui/tui-data.c: Update references.
11635 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11636 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11637 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11638 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11639 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11640 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11641 * tui/tui-winsource.c, tui/tui.c: Ditto.
11642
7d34766b
MK
116432004-02-07 Mark Kettenis <kettenis@gnu.org>
11644
1c800673
MK
11645 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11646 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11647 StackGhost.
11648
7d34766b
MK
11649 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11650 variable `i6' to `i7'.
11651 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11652
22940a24
AC
116532004-02-07 Andrew Cagney <cagney@redhat.com>
11654
11655 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11656 (TuiPoint, TuiPointPtr): Ditto.
11657 (TuiStatus, TuiStatusPtr): Ditto.
11658 (TuiWinType, TuiWinTypePtr): Ditto.
11659 (struct tui_point): Rename _TuiPoint.
11660 (tui_get_low_disassembly_address): Rename
11661 tuiGetLowDisassemblyAddress.
11662 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11663 (tuiFree): Delete declaration.
11664 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11665 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11666 * tui/tui.c (tuiFree): Delete function.
11667 * cli/cli-cmds.c (disassemble_command): Update references.
11668 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11669 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11670 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11671 * tui/tui-winsource.c: Ditto.
11672
8b92e4d5
EZ
116732004-02-07 Elena Zannoni <ezannoni@redhat.com>
11674
11675 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11676 coffstab_build_psymtabs, elfstab_build_psymtabs)
11677 (stabsect_build_psymtabs): Replace psymbol_obstack with
11678 objfile_obstack.
11679 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11680 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11681 Ditto.
11682 * dwarfread.c (scan_compilation_units): Ditto.
11683 * elfread.c (elfstab_offset_sections): Ditto.
11684 * hppa-tdep.c (read_unwind_info): Ditto.
11685 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11686 (hpread_end_psymtab): Ditto.
11687 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11688 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11689 Ditto.
11690 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11691 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11692 (build_objfile_section_table): Ditto.
11693 (allocate_objfile): Remove init of psymbol_obstack.
11694 (free_objfile): Remove freeing of psymbol_obstack.
11695 * objfiles.h (struct objfile): Remove field
11696 psymbol_obstack. Update comments.
11697 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11698 psymbol_obstack with objfile_obstack.
11699 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11700 psymbol_obstack.
11701 * somread.c (som_symfile_offsets, init_import_symbols)
11702 (init_export_symbols): Replace psymbol_obstack with
11703 objfile_obstack.
11704 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11705 * symfile.c (default_symfile_offsets, syms_from_objfile)
11706 (reread_symbols): Remove freeing and init of psymbol_obstack.
11707 (cashier_psymtab): Update comment.
11708 * symmisc.c (print_objfile_statistics): Don't report stats for
11709 psymbol obstack.
11710 * symtab.h (struct general_symbol_info, struct partial_symtab):
11711 Update comments.
11712 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11713 (xcoff_symfile_offsets): Replace psymbol_obstack with
11714 objfile_obstack.
11715
b99607ea
EZ
117162004-02-07 Elena Zannoni <ezannoni@redhat.com>
11717
11718 * objfiles.h (struct objfile): Add objfile_obstack field.
11719 Remove type_obstack field.
11720
11721 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11722 read_structure_scope read_enumeration, new_symbol): Replace
11723 type_obstack with objfile_obstack.
11724 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11725 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11726 (lookup_fundamental_type): Ditto.
11727 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11728 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11729 (hpread_read_doc_function_type, hpread_read_struct_type)
11730 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11731 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11732 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11733 (java_link_class_type): Ditto.
11734 * mdebugread.c (parse_type): Ditto.
11735 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11736 * solib-sunos.c (solib_add_common_symbols): Ditto.
11737 * stabsread.c (define_symbol, read_type, read_member_functions,
11738 read_cpp_abbrev, read_one_struct_field): Ditto.
11739 * symfile.c (reread_symbols): Ditto.
11740 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11741
2a8854a7
AC
117422004-02-07 Andrew Cagney <cagney@redhat.com>
11743
11744 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11745 (tui_exec_info_content): Rename TuiExecInfoContent.
11746 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11747 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11748 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11749 (TuiList, TuiListPtr): Ditto.
11750 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11751 (TuiDataType, TuiDataTypePtr): Ditto.
11752 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11753 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11754 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11755 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11756 (TuiDataElement, TuiDataElementPtr): Ditto.
11757 (TuiWinElement, TuiWinElementPtr): Ditto.
11758 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11759 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11760 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11761 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11762 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11763 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11764 * tui/tui-command.c, tui/tui-data.c: Update references.
11765 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11766 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11767 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11768 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11769
05cbe71a
MK
117702004-02-07 Mark Kettenis <kettenis@gnu.org>
11771
11772 * dwarf2-frame.h: Update copyright.
11773 (enum dwarf2_frame_reg_rule): New.
11774 (struct dwarf2_frame_state_reg): New.
11775 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11776 * dwarf2-frame.c: Update copyright.
11777 (enum dwarf2_reg_rule): Remove.
11778 (struct dwarf2_frame_state): Remove defenition of `struct
11779 dwarf2_frame_state_reg'.
11780 (read_reg): Call get_frame_arch to get the architecture instead of
11781 using CURRENT_GDBARCH.
11782 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11783 DWARF2_FRAME_.
11784 (dwarf2_frame_init_reg): New function.
11785 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11786 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11787 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11788 tags with DWARF2_FRAME_.
11789 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11790 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11791 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11792
ec7d9e56
AC
117932004-02-06 Andrew Cagney <cagney@redhat.com>
11794
dd1abb8c
AC
11795 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11796 (enum tui_data_type): Rename _TuiDataType.
11797 (struct tui_layout_def): Rename _TuiLayoutDef.
11798 (struct tui_source_element): Rename _TuiSourceElement.
11799 (struct tui_data_element): Rename _TuiDataElement.
11800 (struct tui_command_element): Rename _TuiCommandElement.
11801 (struct tui_locator_element): Rename _TuiLocatorElement.
11802 (union tui_which_element): Define.
11803 (struct tui_win_element): Rename _TuiWinElement.
11804 (struct tui_data_info): Rename _TuiDataInfo.
11805 (struct tui_source_info): Rename _TuiSourceInfo.
11806 (struct tui_command_info): Rename _TuiCommandInfo.
11807 (tui_initialize_static_data): Rename initializeStaticData.
11808 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11809 (tui_alloc_win_info): Rename allocWinInfo.
11810 (tui_init_generic_part): Rename initGenericPart.
11811 (tui_init_win_info): Rename initWinInfo.
11812 (tui_alloc_content): Rename allocContent.
11813 (tui_add_content_elements): Rename addContentElements.
11814 (tui_init_content_element): Rename initContentElement.
11815 (tui_free_window): Rename freeWindow.
11816 (tui_free_win_content): Rename freeWinContent.
11817 (tui_free_data_content): Rename freeDataContent.
11818 (tui_free_all_source_wins_content): Rename
11819 freeAllSourceWinsContent.
11820 (tui_del_window): Rename tuiDelWindow.
11821 (tui_del_data_windows): Rename tuiDelDataWindows.
11822 (tui_partial_win_by_name): Rename partialWinByName.
11823 (tui_win_name): Rename winName.
11824 (tui_current_layout): Rename currentLayout.
11825 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11826 (tui_term_height): Rename termHeight.
11827 (tui_set_term_height_to): Rename setTermHeightTo.
11828 (tui_term_width): Rename termWidth.
11829 (tui_set_term_width_to): Rename setTermWidthTo.
11830 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11831 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11832 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11833 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11834 (tui_source_windows): Rename sourceWindows.
11835 (tui_clear_source_windows): Rename clearSourceWindows.
11836 (tui_clear_source_windows_detail): Rename
11837 clearSourceWindowsDetail.
11838 (tui_clear_win_detail): Rename clearWinDetail.
11839 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11840 (tui_default_tab_len): Rename tuiDefaultTabLen.
11841 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11842 (tui_win_with_focus): Rename tuiWinWithFocus.
11843 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11844 (tui_layout_def): Rename tuiLayoutDef.
11845 (tui_win_resized): Rename tuiWinResized.
11846 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11847 (tui_next_win): Rename tuiNextWin.
11848 (tui_prev_win): Rename tuiPrevWin.
11849 (tui_add_to_source_windows): Rename addToSourceWindows.
11850 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11851 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11852 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11853 * tui/tui.c, tui/tui-data.c: Ditto.
11854 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11855 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11856
a358af15
AC
11857 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11858 (struct symtab): Declare.
11859 (tui_set_source_content): Rename tuiSetSourceContent.
11860 (tui_show_symtab_source): Rename tuiShowSource.
11861 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11862 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11863 * tui/tui-source.c: Update copyright. Update references.
11864 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11865 * tui/tui-stack.c: Update references.
11866
a21fcd8f
AC
11867 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11868 (struct tui_win_info): Declare.
11869 (tui_scroll_forward): Rename tuiScrollForward.
11870 (tui_scroll_backward): Rename tuiScrollBackward.
11871 (tui_scroll_left): Rename tuiScrollLeft.
11872 (tui_scroll_right): Rename tuiScrollRight.
11873 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11874 (tui_resize_all): Rename tuiResizeAll.
11875 (tui_refresh_all_win): Rename tuiRefreshAll.
11876 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11877 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11878 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11879 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11880
edae1ccf
AC
11881 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11882 (tui_erase_data_content): Rename tuiEraseDataContent.
11883 (tui_display_all_data): Rename tuiDisplayAllData.
11884 (tui_check_data_values): Rename tuiCheckDataValues.
11885 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11886 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11887 (tui_first_data_element_no_in_line): Rename
11888 tuiFirstDataElementNoInLine.
11889 (tui_delete_data_content_windows): Rename
11890 tuiDeleteDataContentWindows.
11891 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11892 (tui_display_data_from): Rename tuiDisplayDataFrom.
11893 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11894 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11895 * tui/tui-win.c, tui/tui-regs.c: Update references.
11896 * tui/tui-layout.c, tui/tui.c: Update references.
11897
ec7d9e56
AC
11898 * tui/tui-wingeneral.h: Update copyright.
11899 (m_allBeVisible): Delete macro.
8a1dac83 11900 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11901 (struct tui_gen_win_info): Declare.
11902 (struct tui_win_info): Declare.
11903 (tui_unhighlight_win): Rename unhighlightWin.
11904 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11905 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11906 (tui_make_window): Rename makeWindow.
11907 (tui_copy_win): Rename copyWin.
11908 (tui_box_win): Rename boxWin.
11909 (tui_highlight_win): Rename highlightWin.
11910 (tui_check_and_display_highlight_if_needed): Rename
11911 checkAndDisplayHighlightIfNeeded.
11912 (tui_refresh_all): Rename refreshAll.
11913 (tui_delete_win): Rename tuiDelwin.
11914 (tui_refresh_win): Rename tuiRefreshWin.
11915 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11916 (tui_make_visible, tui_make_invisible): New functions.
11917 (tui_make_all_visible, tui_make_all_invisible): New functions.
11918 (make_all_visible): Rename makeAllVisible.
11919 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11920 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11921 * tui/tui-windata.c, tui/tui-win.c: Update references.
11922 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11923 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11924
1e52e2eb
MK
119252004-02-06 Mark Kettenis <kettenis@gnu.org>
11926
11927 * proc-api.c (write_with_trace): Initialize local variable to
11928 silence compiler warning.
11929
f80bda8e
AC
119302004-02-06 Andrew Cagney <cagney@redhat.com>
11931
11932 * tui/tui-source.h: Do not include "defs.h".
11933 (struct tui_win_info): Declare.
11934 (tui_set_source_content_nil): Declare.
11935 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11936 (union tui_line_or_address): Rename _TuiLineOrAddress.
11937 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11938 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11939 (tui_update_source_window_as_is): Rename
11940 tuiUpdateSourceWindowAsIs.
11941 (tui_update_source_windows_with_addr): Rename
11942 tuiUpdateSourceWindowsWithAddr.
11943 (tui_update_source_windows_with_line): Rename
11944 tuiUpdateSourceWindowsWithLine.
11945 (tui_clear_source_content): Rename tuiClearSourceContent.
11946 (tui_erase_source_content): Rename tuiEraseSourceContent.
11947 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11948 (tui_show_source_content): Rename tuiShowSourceContent.
11949 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11950 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11951 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11952 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11953 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11954 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11955 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11956 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11957 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11958 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11959 (struct tui_win_info): Declare.
11960 * tui/tui-stack.c: Update references.
11961 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11962 * tui/tui-win.c, tui/tui-source.c: Ditto.
11963 * tui/tui.c, tui/tui-disasm.c: Ditto.
11964
9fbfb822
MK
119652004-02-06 Mark Kettenis <kettenis@gnu.org>
11966
11967 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11968 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11969
03cebad2
MK
119702004-02-05 Mark Kettenis <kettenis@gnu.org>
11971
11972 * infrun.c (handle_inferior_event): Allow for breakpoint
11973 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11974 and SIGEMT. Update comments.
11975 * NEWS (Revised SPARC target): Mention support for non-executable
11976 stack.
11977
290281b1
MK
119782004-02-04 Mark Kettenis <kettenis@gnu.org>
11979
11980 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11981 * inftarg.c: Update copyright year.
11982 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11983 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11984 (sparc_xfer_wcookie): New function.
11985 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11986 * Makefile.in (sparc-nat.o): Update dependencies.
11987 * config/sparc/nm-nbsd.h: Include "target.h".
11988 (NATIVE_XFER_WCOOKIE): New define.
11989 (sparc_xfer_wcookie): New prototype.
11990
212161df
AC
119912004-02-04 Andrew Cagney <cagney@redhat.com>
11992
11993 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11994 SYSCALL_TRAP function.
11995 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11996
6e4c6c91
DJ
119972004-02-04 Andrew Cagney <cagney@redhat.com>
11998 Daniel Jacobowitz <drow@mvista.com>
11999
12000 * objfiles.h: Delete comments refering to inside_entry_func and
12001 DEPRECATED_FRAME_CHAIN_VALID.
12002 * defs.h (inside_entry_func): Update prototype..
12003 * blockframe.c (inside_entry_func): Rename to
12004 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12005 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12006
cae688ec
JJ
120072004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12008
12009 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12010 outside of #ifdef SOLIB_ADD region.
12011 (do_restore_lang_radix_cleanup): Ditto.
12012 (resolve_pending_breakpoint): Ditto.
12013
19217676
AC
120142004-02-03 Andrew Cagney <cagney@redhat.com>
12015
12016 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12017 (process_note_abi_tag_sections): Delete unused function.
12018 (ia64_read_fp): Delete unused function.
12019 (gdbarch_extract_struct_value_address): Delete declaration.
12020
876753be
AC
120212004-02-02 Andrew Cagney <cagney@redhat.com>
12022
12023 * vax-tdep.c (vax_frame_chain): Delete call to
12024 deprecated_inside_entry_file.
12025 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12026
d4f10bf2
MK
120272004-02-02 Mark Kettenis <kettenis@gnu.org>
12028
12029 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12030 column that's "empty" or "same value" when eliminating REG_RA
12031 rules.
12032
cae688ec
JJ
120332004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12034
12035 * NEWS: Add information about new pending breakpoint support.
12036
0101ce28
JJ
120372004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12038
12039 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12040 and pending fields for pending breakpoint support.
12041 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12042 (condition_command): Only parse condition if not a pending
12043 breakpoint.
12044 (print_one_breakpoint): Add support for pending breakpoints.
12045 (describe_other_breakpoints): Add checks to verify we are not
12046 dealing with pending breakpoints.
12047 (check_duplicates): Don't check pending breakpoints.
12048 (set_raw_breakpoint): Initialize pending flag.
12049 (do_restore_lang_radix_cleanup): New cleanup routine.
12050 (resolve_pending_breakpoint): New function.
12051 (re_enable_breakpoints_in_shlibs): Try and resolve any
12052 pending breakpoints via resolve_pending_breakpoint.
12053 (mention): Add pending breakpoint support.
12054 (parse_breakpoint_sals): Add new parameter to pass to
12055 decode_line_1 to indicate silent errors when files or functions
12056 are not found. Change all callers.
12057 (do_captured_parse_breakpoint): New function.
12058 (break_command_1): Change prototype to return an rc value and to
12059 take an optional pending breakpoint pointer. Support creating
12060 a pending breakpoint if a "not found" form of error occurs when
12061 parsing the breakpoint. Also support resolving an existing pending
12062 breakpoint and be silent if the resolution fails.
12063 (create_breakpoints): Change prototype to take pending breakpoint
12064 pointer. When resolving a pending breakpoint, use the new pointer
12065 to provide a conditional or commands added by the end-user.
12066 (delete_breakpoint): Add appropriate check for pending.
12067 (breakpoint_re_set_one): Ditto.
12068 (do_enable_breakpoint): Ditto.
12069
8d577d32
DC
120702004-02-02 David Carlton <carlton@kealia.com>
12071
12072 * valops.c (enum oload_classification): New.
12073 (find_overload_match): Break implementation into separate
12074 functions; delete #if 0'd code; look for symbols within
12075 namespaces.
12076 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12077 (find_oload_champ,oload_method_static,classify_oload_match): New.
12078 * cp-support.h: Add declaration for cp_func_name; update
12079 declaration for make_symbol_overload_list.
12080 * cp-support.c (cp_func_name): New.
12081 (overload_list_add_symbol): Fix comment, use
12082 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12083 (make_symbol_overload_list): Take a function name and a namespace
12084 instead of a symbol; change implementation.
12085 (make_symbol_overload_list_using): New.
12086 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12087
22e8e3c7
FF
120882004-02-02 Fred Fish <fnf@redhat.com>
12089
12090 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12091 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12092 * remote-sim.c (gdb_os_write_stderr): Write output to
12093 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12094 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12095 gdb_stderr stream and update copyright years.
22e8e3c7 12096
6b753f60
DJ
120972004-02-01 Daniel Jacobowitz <drow@mvista.com>
12098
12099 * Makefile.in (mips-linux-nat.o): Update dependencies.
12100 * mips-linux-nat.c: Include mips-tdep.h.
12101
121022004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12103
12104 * sol-thread.c (sol_thread_xfer_partial): New function.
12105 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12106 (init_sol_core_ops): Likewise.
12107
12108 * procfs.c (procfs_xfer_partial): New function.
12109 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12110 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12111
12112 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12113 procfs_xfer_auxv function.
12114
12115 * procfs.c (procfs_make_note_section): If we can read
12116 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12117 * linux-proc.c (linux_make_note_section): Likewise.
12118
12119 * auxv.h: New file.
12120 * auxv.c: New file.
12121 * Makefile.in (auxv_h): New variable.
12122 (COMMON_OBS): Add auxv.o here.
12123 (auxv.o): New target.
12124
12125 * corelow.c (core_xfer_partial): New function.
12126 (init_core_ops): Use it for core_ops.to_xfer_partial.
12127
12128 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12129 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12130 macro if that is defined.
12131
fa5281d0
DJ
121322004-02-01 Daniel Jacobowitz <drow@mvista.com>
12133
12134 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12135 and check the specified thread for each breakpoint.
12136 * breakpoint.h (bpstat_stop_status): Update prototype.
12137 * infrun.c (handle_inferior_event): Update calls to
12138 bpstat_stop_status.
12139
26ee262d
DJ
121402004-02-01 Daniel Jacobowitz <drow@mvista.com>
12141
12142 * Makefile.in (cli-cmds.o): Add $(readline_h).
12143
d9b52655
DJ
121442004-02-01 Daniel Jacobowitz <drow@mvista.com>
12145
12146 * cli/cli-cmds.c: Include readline.h.
12147 (complete_command): Pass the start of the last word to
12148 complete_line.
12149
9709f61c
DJ
121502004-01-31 Daniel Jacobowitz <drow@mvista.com>
12151
12152 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12153 argument, and change first argument to a CORE_ADDR.
12154 * breakpoint.h (bpstat_stop_status): Update prototype.
12155 * infrun.c (adjust_pc_after_break): Add a new comment.
12156 (handle_inferior_event): Update calls to bpstat_stop_status.
12157
4f1280bb
DJ
121582004-01-31 Daniel Jacobowitz <drow@mvista.com>
12159
12160 * breakpoint.h: Update copyright years.
12161
4fa8626c
DJ
121622004-01-31 Daniel Jacobowitz <drow@mvista.com>
12163
12164 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12165 (bpstat_stop_status): Don't decrement PC.
12166 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12167 prototype.
12168 * infrun.c (adjust_pc_after_break): New function.
12169 (handle_inferior_event): Call it, early. Remove later references
12170 to DECR_PC_AFTER_BREAK.
12171 (normal_stop): Add commentary.
12172
fad0733a
DJ
121732004-01-31 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12176 2004-01-27 double-free fix.
12177
42cdca6c
MK
121782004-01-31 Mark Kettenis <kettenis@gnu.org>
12179
12180 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12181 (sparc32_frame_prev_register): Handle StackGhost.
12182 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12183
932d5416
RM
121842004-01-29 Roland McGrath <roland@redhat.com>
12185
12186 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12187 * configure: Regenerated.
12188
12189 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12190 * Makefile.in (procfs.o): Add dep.
12191
47d3492a
AC
121922004-01-28 Andrew Cagney <cagney@redhat.com>
12193
12194 * tui/tui-stack.h: Update copyright.
12195 (struct frame_info): Add opaque declaration.
12196 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12197 (tui_show_locator_content): Rename tuiShowLocatorContent.
12198 (tui_show_frame_info): Rename tuiShowFrameInfo.
12199 * tui/tui-stack.c: Update copyright. Update references.
12200 * tui/tui-winsource.c: Update references.
12201 * tui/tui-win.c: Update references.
12202 * tui/tui-layout.c: Update references.
12203 * tui/tui-hooks.c: Update copyright, update references.
12204 * tui/tui.c: Update copyright, update references.
12205 * tui/tui-disasm.c: Update references.
12206
5d51ca54
DC
122072004-01-28 David Carlton <carlton@kealia.com>
12208
12209 * dwarf2read.c (add_partial_structure): Use demangled name if
12210 namespace equals "".
12211
086ed43d
JB
122122004-01-27 Jim Blandy <jimb@redhat.com>
12213
12214 Clean up misapplied patch:
12215 * dwarf2read.c (determine_prefix): Change one of the two forward
12216 declarations for 'determine_prefix_aux' to a declaration for this.
12217 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12218 argument to 'die_specification'.
12219
2a35147e
JB
12220 * dwarf2read.c (read_func_scope): Re-indent comment.
12221
a355c7de 122222004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12223
a355c7de
AC
12224 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12225 b->exp to NULL after freeing so that error during re-parsing or
12226 evaluation of expressions associated with breakpoint don't
12227 eventually lead to re-freeing of storage.
12228 Committed by Andrew Cagney.
12229
63ff5125
AC
122302004-01-27 Andrew Cagney <cagney@redhat.com>
12231
12232 * source.c (ambiguous_line_spec): Delete undefined declaration.
12233 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12234 (m32r_set_server_address, m32r_set_download_path): Ditto.
12235 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12236
e142c38c
DJ
122372004-01-27 Daniel Jacobowitz <drow@mvista.com>
12238
12239 * dwarf2read.c: Update calls to changed and renamed functions, and
12240 references to moved variables.
12241
12242 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12243 language, language_defn, list_in_scope, and ftypes members.
12244 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12245 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12246 (baseaddr): Remove globals.
12247
12248 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12249 (set_cu_language, die_is_declaration, die_specification)
12250 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12251 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12252 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12253 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12254
12255 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12256 cu.list_in_scope. Don't initialize cu_header_offset.
12257 (add_partial_symbol): Add local baseaddr.
12258 (psymtab_to_symtab_1): Add local baseaddr. Use
12259 objfile->section_offsets for consistency. Don't initialize
12260 cu_header_offset; do initialize cu.header.offset and
12261 cu.list_in_scope.
12262 (read_file_scope, read_func_scope, read_lexical_block_scope)
12263 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12264
c6e06ede
MC
122652004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12266
fb328ecc 12267 * PROBLEMS: Add gdb/1516.
c6e06ede 12268
48184fd4
AC
122692003-12-29 Robert Millan <robertmh@gnu.org>
12270
12271 Patch committed by Andrw Cagney.
12272 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12273 * configure.tgt: Match knetbsd*-gnu.
12274
c1321b30
AC
122752004-01-26 Andrew Cagney <cagney@redhat.com>
12276
f3699be3
AC
12277 * breakpoint.c (catch_command_1): Delete #ifdef code.
12278 (catch_fork_command_1): Delete #ifdef wrapper.
12279 (catch_exec_command_1): Ditto.
12280 (catch_load_command_1): Ditto.
12281 (catch_unload_command_1): Ditto.
12282
c1321b30
AC
12283 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12284 (catch_breakpoint): Delete #if0ed function.
12285 (disable_catch_breakpoint): Ditto.
12286 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12287 (disable_catch, enable_catch, delete_catch): Ditto.
12288
b4501125
AC
122892004-01-26 Andrew Cagney <cagney@redhat.com>
12290
12291 * remote.c (echo_check, quit_flag): Delete variables.
12292 (cisco_kernel_mode): Delete variable.
12293 (minitelnet_return, tty_input, escape_count): Delete variables.
12294 (remote_cisco_mode): Delete variable.
12295 (remote_cisco_open, remote_cisco_close): Delete function.
12296 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12297 (init_remote_cisco_ops): Delete function.
12298 (_initialize_remote): Do not install "remote cisco" code.
12299 (read_frame): Delete cisco specific code.
12300 (remote_info_process): Delete function.
12301 (remote_wait): Delete cisco specific code.
12302 (remote_cisco_section_offsets): Delete function.
12303 (remote_cisco_objfile_relocate): Delete function.
12304 (remote_async_wait): Delete cisco specific code.
12305 (minitelnet, readtty, readsocket): Delete function.
12306
74055713
AC
123072004-01-26 Andrew Cagney <cagney@redhat.com>
12308
12309 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12310 comments mentioning extract_returned_value_address.
12311 * infcmd.c (print_return_value): Update. Add comments on
12312 extract_returned_value_address.
12313 * stack.c (return_command): Add comments on
12314 extract_returned_value_address.
12315 * values.c: Update comment.
12316 * m32r-tdep.c: Update comment.
12317 * sparc-tdep.c: Update comment.
12318 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12320 * sh64-tdep.c (sh64_gdbarch_init): Update.
12321 * sh-tdep.c (sh_gdbarch_init): Update.
12322 * s390-tdep.c (s390_gdbarch_init): Update.
12323 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12324 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12325 * m68k-tdep.c (m68k_gdbarch_init): Update.
12326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12327 * m32r-tdep.c (m32r_gdbarch_init): Update.
12328 * ia64-tdep.c (ia64_gdbarch_init): Update.
12329 * h8300-tdep.c (h8300_gdbarch_init): Update.
12330 * frv-tdep.c (frv_gdbarch_init): Update.
12331 * arm-tdep.c (arm_gdbarch_init): Update.
12332 * alpha-tdep.c (alpha_gdbarch_init): Update.
12333
a67af2b9
AC
123342004-01-26 Andrew Cagney <cagney@redhat.com>
12335
12336 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12337 SYMBOL_LOCATION_FUNCS
12338 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12339 "struct symbol_ops".
12340 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12341 type to "struct symbol_ops".
12342 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12343 (struct symbol): Replace ".aux_value.loc.funcs" and
12344 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12345 (SYMBOL_OBJFILE): Delete macro.
12346 (SYMBOL_LOCATION_FUNCS): Delete macro.
12347 (SYMBOL_LOCATION_BATON): Update.
12348 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12349 intead of SYMBOL_LOCATION_FUNCS.
12350 * ax-gdb.c (gen_var_ref): Ditto.
12351 * printcmd.c (address_info): Ditto.
12352 * findvar.c (read_var_value): Ditto.
12353 (symbol_read_needs_frame): Ditto.
12354
c034e007
AC
123552004-01-26 Andrew Cagney <cagney@redhat.com>
12356
12357 * dwarf2read.c (read_func_scope): Document frame-base hack.
12358
bb472c1e
MK
123592004-01-25 Mark Kettenis <kettenis@gnu.org>
12360
12361 * infcmd.c (print_return_value): Plug memory leak; delete
12362 ui_stream object. Rename argument `structure_return' to
12363 `struct_return'.
12364
c8e737d5
MK
123652004-01-25 Mark Kettenis <kettenis@gnu.org>
12366
f941662f
MK
12367 * infcmd.c (print_return_value): Wrap long lines.
12368 (finish_command_continuation, finish_command): Remove unused
12369 variable `funcaddr'. Fix some coding-standards problems.
12370
c558d81a 12371 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12372 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12373 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12374 TDEP->fpregset to zero.
12375
bf1e5861 12376 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12377 floating-point registers for traditional NetBSD core files.
12378 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12379 TDEP->sizeof_fpregset here.
12380
4c72d57a
MK
123812004-01-25 Mark Kettenis <kettenis@gnu.org>
12382
566626fa
MK
12383 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12384 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12385 function with code split out from
12386 sparc32nbsd_sigcontext_frame_cache.
12387 (sparc32nbsd_sigcontext_frame_cache): Use
12388 sparc32nbsd_sigcontext_saved_regs.
12389 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12390 OpenBSD.
12391 * sparcobsd-tdep.c: New file.
12392 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12393 (sparcobsd-tdep.o): New dependency.
12394 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12395 * config/sparc/obsd.mt: New file.
12396
4c72d57a
MK
12397 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12398 TDEP->fpregset to be initialized to enable core file register
12399 sets.
12400
7e5e9f88
MK
124012004-01-24 Mark Kettenis <kettenis@gnu.org>
12402
f0f207fd 12403 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12404 Add opaque declarations.
12405 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12406 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12407 function with code split out from
12408 sparc64nbsd_sigcontext_frame_cache.
12409 (sparc64nbsd_sigcontext_frame_cache): Use
12410 sparc64nbsd_sigcontext_saved_regs.
12411 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12412 OpenBSD.
12413 * sparc64obsd-tdep.c: New file.
12414 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12415 (sparc64obsd-tdep.o): New dependency.
12416 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12417 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12418 * config/sparc/obsd64.mt: New file.
12419
690668cc
MK
12420 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12421 read the instruction at PC.
12422
7e5e9f88
MK
12423 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12424 value of GDB_OSABI_DEFAULT.
12425 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12426 instead of GDB_OSABI_NETBSD_AOUT.
12427
68b6dce9
NR
124282004-01-24 Nick Roberts <nick@nick.uklinux.net>
12429
12430 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12431 copyright.
12432
080ce8c0
AC
124332004-01-23 Andrew Cagney <cagney@redhat.com>
12434
12435 * printcmd.c (display_command): Replace tui_set_display call with
12436 tui_set_layout_for_display_command.
12437 * tui/tui.h (enum tui_win_type): Define.
12438 (tui_set_layout): Delete declaration.
12439 (tui_set_layout_for_display_command): Rename set_tui_layout.
12440 * tui/tui-data.h (enum tui_layout_type): Define.
12441 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12442 "tui.h".
12443 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12444 (tui_default_win_height): Rename tuiDefaultWinHeight.
12445 (tui_default_win_viewport_height): Rename
12446 tuiDefaultWinViewportHeight.
12447 (tui_set_layout): RenametuiSetLayout.
12448 * tui/tui-layout.c: Update references.
12449 * tui/tui.c: Update references.
12450 * tui/tui-disasm.c: Update references.
12451
b368761e
DC
124522004-01-23 David Carlton <carlton@kealia.com>
12453
12454 Partial workaround for PR c++/1511:
12455 * cp-namespace.c: Include frame.h.
12456 (cp_lookup_transparent_type): New
12457 (cp_lookup_transparent_type_loop): New.
12458 * cp-support.h: Declare cp_lookup_transparent_type.
12459 * symtab.c (basic_lookup_transparent_type): Renamed from
12460 lookup_transparent_type.
12461 (lookup_transparent_type): Replace old body by a call to
12462 current_language->la_lookup_transparent_type.
12463 * symtab.h: Update copyright. Declare
12464 basic_lookup_transparent_type.
12465 * language.h: Update copyright.
12466 (struct language_defn): Add la_lookup_transparent_type.
12467 * language.c: Update copyright.
12468 (unknown_language_defn): Add basic_lookup_transparent_type.
12469 (auto_language_defn): Add basic_lookup_transparent_type.
12470 (local_language_defn): Add basic_lookup_transparent_type.
12471 * ada-lang.c: Update copyright.
12472 (ada_language_defn): Add basic_lookup_transparent_type.
12473 * c-lang.c: Update copyright.
12474 (c_language_defn): Add basic_lookup_transparent_type.
12475 (cplus_language_defn): Add basic_lookup_transparent_type.
12476 (asm_language_defn): Add basic_lookup_transparent_type.
12477 (minimal_language_defn): Add basic_lookup_transparent_type.
12478 * f-lang.c: Update copyright.
12479 (f_language_defn): Add basic_lookup_transparent_type.
12480 * jv-lang.c: Update copyright.
12481 (java_language_defn): Add basic_lookup_transparent_type.
12482 * m2-lang.c: Update copyright.
12483 (m2_language_defn): Add basic_lookup_transparent_type.
12484 * objc-lang.c: Update copyright.
12485 (objc_language_defn): Add basic_lookup_transparent_type.
12486 * p-lang.c: Update copyright.
12487 (p_language_defn): Add basic_lookup_transparent_type.
12488 * scm-lang.c: Update copyright.
12489 (scm_language_defn): Add basic_lookup_transparent_type.
12490 * Makefile.in (cp-namespace.o): Depend on frame.h.
12491
fdde2d81
DC
124922004-01-23 David Carlton <carlton@kealia.com>
12493
12494 Patch for PR c++/1520:
12495 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12496 properly if we have a specification die.
12497 (determine_prefix_aux): Rename from determine_prefix.
12498 (determine_prefix): Like the old determine_prefix, but never
12499 returns NULL.
12500
5b828b6b
TR
125012004-01-23 Theodore A. Roth <troth@openavr.org>
12502
12503 * avr-tdep.c: Update copyright.
12504 (avr_iaddr_p): Delete unused function.
12505 (avr_saddr_p): Delete unused function.
12506
a1b8c067
DC
125072004-01-23 David Carlton <carlton@kealia.com>
12508
12509 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12510 Fix for PR symtab/1534.
12511
f2cab569
MK
125122004-01-23 Mark Kettenis <kettenis@gnu.org>
12513
12514 * NEWS (New native configurations): Mention OpenBSD/sparc and
12515 OpenBSD/sparc64.
12516 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12517 * configure.host: Likewise.
12518 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12519 handler for OpenBSD.
12520 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12521
642d8300
MK
125222004-01-22 Mark Kettenis <kettenis@gnu.org>
12523
89aac506
MK
12524 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12525 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12526
36662fde
MK
12527 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12528 * cli/cli-cmds.c (shell_escape): Likewise.
12529
642d8300
MK
12530 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12531 OpenBSD .note.openbsd.ident sections.
12532
fae299cd
DC
125332004-01-22 David Carlton <carlton@kealia.com>
12534
12535 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12536 get_scope_pc_bounds.
12537 (read_file_scope): Ditto.
12538 (get_scope_pc_bounds): New function, produced by extracting code
12539 from the above two functions, consolidating it, and adding support
12540 for DW_TAG_namespace.
12541
a49d618c
MK
125422004-01-22 Mark Kettenis <kettenis@gnu.org>
12543
12544 * osabi.c (MAX_NOTESZ): New define.
12545 (check_note): New function.
12546 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12547 check_note.
12548
fe61caab
RM
125492004-01-21 Roland McGrath <roland@redhat.com>
12550
12551 * MAINTAINERS (write after approval): Add myself.
12552
ec145965
EZ
125532004-01-21 Eli Zaretskii <eliz@gnu.org>
12554
12555 * utils.c (init_page_info): Move declarations of `rows' and
12556 `cols' before the __GO32__-specific code. Move the closing brace
12557 outside the #ifdef __GO32__..#endif block.
12558 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12559
877522db
PB
125602004-01-21 Paul Brook <paul@codesourcery.com>
12561
12562 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12563 BPSTAT_WHAT_CHECK_SHLIBS.
12564
dbf5be1c
PB
125652004-01-21 Paul Brook <paul@codesourcery.com>
12566
12567 * MAINTAINERS: Add myself to write-after-approval.
12568
81f08b92
AC
125692004-01-20 Andrew Cagney <cagney@redhat.com>
12570
5a1efed7
AC
12571 * ax-gdb.c (print_axs_value): Delete unused function.
12572 * jv-lang.c (java_lookup_type): Delete unused function.
12573 * cli/cli-dump.c (dump_filetype): Delete unused function.
12574 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12575 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12576 (mips_getstring): Delete unused function.
12577 (pmon_insert_breakpoint): Delete #if0ed function.
12578 (PMON_MAX_BP): Delete #if0ed MACRO.
12579 (mips_pmon_bp_info): Delete #if0ed variable.
12580 (pmon_remove_breakpoint): Delete #if0ed function.
12581 * monitor.c (monitor_write_even_block): Delete unused function.
12582 (monitor_write_memory_block): Delete #if0ed code.
12583 * dink32-rom.c (dink32_load): Delete unused function.
12584 (_initialize_dink32_rom): Delete #if0ed code.
12585 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12586
b0a30fce
AC
12587 * tui/tui-command.c: Update references.
12588 * tui/tui-io.c: Update references.
12589 * tui/tui-command.h: Update copyright.
12590 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12591
81f08b92
AC
12592 * source.c (ambiguous_line_spec): Delete never-defined function.
12593 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12594 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12595 * cli/cli-cmds.c (validate_comname): Ditto.
12596
65f05602
AC
12597 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12598 "tui-data.h".
12599 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12600 (tui_show_disassem): Rename tuiShowDisassem.
12601 (tui_show_disassem_and_update_source): Rename
12602 tuiVerticalDisassemScroll.
12603 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12604 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12605 * tui/tui.h: Update copyright.
12606 (enum tui_status): Define.
12607 * tui/tui-data.h (enum tui_scroll_direction): Define.
12608 * tui/tui-disasm.c: Update copyright. Update references.
12609 * tui/tui-winsource.c: Update copyright. Update references.
12610 * tui/tui-win.c: Update references.
12611 * tui/tui-layout.c: Update references.
12612
6bb0384f
AC
126132004-01-20 Andrew Cagney <cagney@redhat.com>
12614
12615 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12616 sym2 to start of block.
12617
9175c9a3
MC
126182004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12619
12620 * MAINTAINERS: Delete mmalloc.
12621 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12622 * NEWS: Mention removal of --with-malloc.
12623 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12624 * config.in: Regenerate.
12625 * configure: Regenerate.
6bb0384f
AC
12626 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12627 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12628 * gdbinit.in: Remove mmalloc.
12629 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12630 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12631 * config/i386/go32.mh: Likewise.
12632 * config/i386/interix.mh: Likewise.
12633 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12634
4fcef00a
JJ
126352004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12636
12637 * linespec.c (decode_variable, symtab_from_filename): Call
12638 error_silent with error message instead of throwing an exception
12639 directly.
12640 * defs.h (error_silent, error_output_message): Add prototypes.
12641 (catch_exceptions_with_msg): Ditto.
12642 * utils.c (error_silent, error_output_message): New functions.
12643 * top.c (catch_exceptions_with_msg): New function.
12644
8e94b928
NR
126452004-01-20 Nick Roberts <nick@nick.uklinux.net>
12646
12647 * mi/mi-cmds.h (enum print_values): Add definition.
12648
12649 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12650 type and value for simple data types and just the name and type
12651 for complex ones, if required.
12652
12653 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12654 children, if required.
12655
a02d6af8
KB
126562004-01-19 Kevin Buettner <kevinb@redhat.com>
12657
12658 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12659 unused declarations.
12660
78a4a9b9
AC
126612004-01-19 Andrew Cagney <cagney@redhat.com>
12662
12663 * top.h (mapped_symbol_files): Delete declaration.
12664 * main.c (captured_main): Delete option "m" and "mapped".
12665 * objfiles.c (mapped_symbol_files): Delete variable.
12666 * symfile.c (symbol_file_command): Delete mmap code.
12667 (symbol_file_add_with_addrs_or_offsets): Ditto.
12668 (add_symbol_file_command, reread_separate_symbols): Ditto.
12669 * objfiles.h (OBJF_MAPPED): Delete.
12670 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12671 (free_objfile) [USE_MMALLOC]: Ditto.
12672 (open_existing_mapped_file): Delete function.
12673 (open_mapped_file): Delete function.
12674 (map_to_file): Delete function.
12675
2dbd5e30
KB
126762004-01-19 Kevin Buettner <kevinb@redhat.com>
12677
12678 * infrun.c (step_into_function): Account for possible breakpoint
12679 adjustment when computing ``stop_func_start''.
12680
437b434f
KB
126812004-01-19 Kevin Buettner <kevinb@redhat.com>
12682
12683 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12684 the region size against the size of a pointer, not the size of
12685 a register as given by DEPRECATED_REGISTER_SIZE.
12686
55fb0713
AC
126872004-01-19 Andrew Cagney <cagney@redhat.com>
12688
12689 * tui/tui-regs.h: Include "tui-data.h".
12690 (tuiFirstRegElementNoInLine): Delete declaration.
12691 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12692 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12693 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12694 (tui_calculate_regs_column_count): Rename
12695 tuiCalculateRegsColumnCount.
12696 (tui_check_register_values): Rename tuiCheckRegisterValues.
12697 (tui_show_registers): Rename tuiShowRegisters.
12698 (tui_display_registers_from_line): Rename
12699 tuiDisplayRegistersFromLine.
12700 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12701 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12702 (tui_first_reg_element_no_inline): Rename
12703 tuiFirstRegElementNoInLine.
12704 * tui/tui-data.h: Update copyright.
12705 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12706 * tui/tui-windata.c: Update copyright, update references.
12707 * tui/tui-regs.c: Update copyright, update references.
12708 * tui/tui-win.c: Update copyright, update references.
12709 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12710
cebe9500
AC
127112004-01-18 Andrew Cagney <cagney@redhat.com>
12712
bcdf1568
AC
12713 * tui/tui-io.c: Update copyright.
12714 (key_is_end_sequence, key_is_backspace): New functions.
12715 (key_is_command_char, key_is_start_sequence): New function.
12716 (tui_getc): Update references.
12717 * tui/tui-io.h: Update copyright.
12718 (m_tuiStartNewLine): Delete macro.
12719 (m_isBackspace, m_isDeleteChar): Delete macros.
12720 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12721 (m_isNextPage, m_isPrevPage): Delete macros.
12722 (m_isLeftArrow, m_isRightArrow): Delete macros.
12723 (m_isXdbStyleCommandChar): Delete macro.
12724 (key_is_start_sequence): Declare, replace m_isStartSequence.
12725 (key_is_end_sequence): Declare, replace m_isEndSequence.
12726 (key_is_backspace): Declare ,replace m_isBackspace.
12727 (key_is_command_char): Declare, replace m_isCommandChar.
12728 * tui/tui-command.c: Update copyright.
12729 (tuiDispatchCtrlChar): Update references.
12730
130d87e6
AC
12731 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12732 tuiSourceWin.h.
12733
d7b2e967
AC
12734 * tui/tui-command.c: Rename tui/tuiCommand.c.
12735 * tui/tui-command.h: Rename tui/tuiCommand.h.
12736 * tui/tui-data.c: Rename tui/tuiData.c.
12737 * tui/tui-data.h: Rename tui/tuiData.h.
12738 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12739 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12740 * tui/tui-io.c: Rename tui/tuiIO.c.
12741 * tui/tui-io.h: Rename tui/tuiIO.h.
12742 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12743 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12744 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12745 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12746 * tui/tui-source.c: Rename tui/tuiSource.c.
12747 * tui/tui-source.h: Rename tui/tuiSource.h.
12748 * tui/tui-stack.c: Rename tui/tuiStack.c.
12749 * tui/tui-stack.h: Rename tui/tuiStack.h.
12750 * tui/tui-win.c: Rename tui/tuiWin.c.
12751 * tui/tui-win.h: Rename tui/tuiWin.h.
12752 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12753 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12754 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12755 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12756 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12757 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12758 * tui/tui-file.c: Update includes.
12759 * tui/tui-hooks.c: Update includes.
12760 * tui/tui-interp.c: Update includes.
12761 * tui/tui.c: Update includes.
12762 * Makefile.in: Update all tui/ dependencies.
12763 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12764
b2100910
AC
12765 * Makefile.in: Update copyright. Update dependencies.
12766
cebe9500
AC
12767 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12768 problem.
12769
c6f0559b
AC
127702004-01-18 Andrew Cagney <cagney@redhat.com>
12771
43e9390b
AC
12772 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12773 instead of register_gdbarch_init.
12774
c6f0559b
AC
12775 * remote-sds.c (tohex): Delete unused function. Update copyright.
12776 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12777 * v850-tdep.c (v850_register_virtual_size): Ditto.
12778 * target.c (normal_target_post_startup_inferior): Ditto.
12779 * source.c (ambiguous_line_spec): Ditto.
12780 * remote.c (adapt_remote_get_threadinfo): Ditto.
12781 * mi/mi-out.c (out_field_fmt): Ditto.
12782 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12783 (output_control_change_notification): Ditto.
12784 * m68k-tdep.c (m68k_register_byte): Ditto.
12785 (m68k_remote_breakpoint_from_pc): Ditto.
12786 * ui-out.c (init_ui_out_state): Delete unused declaration.
12787 * stabsread.c (search_value): Ditto.
12788 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12789 * maint.c (print_section_table): Ditto.
12790 * infrun.c (set_follow_fork_mode_command): Ditto.
12791
a8504492
MK
127922004-01-18 Mark Kettenis <kettenis@gnu.org>
12793
12794 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12795 DW_CFA_def_cfa_exporession. Add support for
12796 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12797 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12798
0bd8997e
AC
127992004-01-18 Andrew Cagney <cagney@redhat.com>
12800
12801 * ocd.c: Update copyright.
12802 (bdm_read_register_command): Delete unused function.
12803 (_initialize_remote_ocd): Delete commented out reference.
12804 (get_quoted_char, reset_packet): Delete #if0ed function.
12805 (output_packet, put_quoted_char): Delete #if0ed function.
12806 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12807 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12808 (BDM_BREAKPOINT): Delete #if0ed macro.
12809 (remote_timeout): Delete #if0ed variable.
12810
31bb40e4
MK
128112004-01-18 Mark Kettenis <kettenis@gnu.org>
12812
12813 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12814 (core-sol2.o): Remove dependency.
12815 * core-sol2.c: Remove file.
12816
887432a5
AC
128172004-01-17 Andrew Cagney <cagney@redhat.com>
12818
12819 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12820 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12821 enums.
12822
29182b13
DJ
128232004-01-17 Daniel Jacobowitz <drow@mvista.com>
12824
12825 * remote.c: Update copyright years.
12826
2963ee1d
DJ
128272004-01-17 Daniel Jacobowitz <drow@mvista.com>
12828
12829 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12830
79d45cd4
AC
128312004-01-17 Andrew Cagney <cagney@redhat.com>
12832
ee300cd4
AC
12833 * mdebugread.c: Update copyright.
12834 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12835 (parse_type, parse_procedure): Ditto.
12836 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12837
fcacc9c2
AC
12838 * cris-tdep.c (cris_store_struct_return): Put back accidently
12839 deleted function.
12840
79d45cd4
AC
12841 * gdbarch.sh: Update copyright year.
12842 * gdbarch.h, gdbarch.c: Re-generate.
12843
b263358a
DJ
128442004-01-17 Daniel Jacobowitz <drow@mvista.com>
12845
12846 Suggested by George Anzinger.
12847 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12848 correct stack offset. Include unknown opcode numbers in the error
12849 message.
12850
931aecf5
AC
128512004-01-17 Andrew Cagney <cagney@redhat.com>
12852
12853 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12854 extract_struct_value_address, i386 does not set it.
12855 * sparc64-tdep.c (sparc64_init_abi): Do not set
12856 extract_struct_value_address, never called.
12857 (sparc64_extract_struct_value_address): Delete function.
12858 * m68hc11-tdep.c: Update copyright.
12859 (m68hc11_gdbarch_init): Delete redundant assignment of
12860 extract_struct_value_address.
12861 * i386-tdep.c: Update copyright.
12862 (i386_gdbarch_init): Do not set extract_struct_value_address,
12863 never called.
12864 (i386_extract_struct_value_address): Delete function.
12865 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12866 extract_struct_value_address, never called.
12867 (sparc32_extract_struct_value_address): #if 0 function. Add
12868 comments explaining its future.
12869
756fe439
DJ
128702004-01-17 Daniel Jacobowitz <drow@mvista.com>
12871
12872 * arm-tdep.c (arm_write_pc): New function.
12873 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12874
e74f0f02
DJ
128752004-01-17 Daniel Jacobowitz <drow@mvista.com>
12876
12877 * breakpoint.c (must_shift_inst_regs): Delete.
12878 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12879 and SHIFT_INST_REGS.
12880 * infcmd.c (step_1, step_1_continuation): Delete references to
12881 SHIFT_INST_REGS.
12882 * infrun.c (keep_going): Likewise.
12883 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12884 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12885
b6cb9035
AC
128862004-01-17 Andrew Cagney <cagney@redhat.com>
12887
444a1e2e
AC
12888 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12889 * gdbarch.h, gdbarch.c: Re-generate.
12890 * infcmd.c (print_return_value): Delete reference to
12891 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12892
def7e6ed
AC
12893 * cris-tdep.c (cris_gdbarch_init): Do not set
12894 deprecated_extract_struct_value_address.
12895
07be497a
AC
12896 * xstormy16-tdep.c: Update copyright.
12897 (xstormy16_extract_struct_value_address): Update to current
12898 extract struct value address interface.
12899 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12900 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12901 current extract struct value address interface.
12902 (sh64_gdbarch_init): Set extract_struct_value_address.
12903
6b4d5c91
AC
12904 * cris-tdep.c: Update copyright.
12905 (cris_extract_struct_value_address): Delete function.
12906 (struct_return_address): Delete variable.
12907 (cris_store_struct_return): Do not set struct_return_address.
12908
464e0365
AC
12909 * mcore-tdep.c: Update copyright.
12910 (mcore_extract_struct_value_address): Delete function. Update
12911 comments.
12912 (mcore_gdbarch_init): Update.
12913 * mn10300-tdep.c: Update copyright.
12914 (mn10300_extract_struct_value_address): Delete function.
12915 (mn10300_gdbarch_init): Update.
12916 * v850-tdep.c: Update copyright.
12917 (v850_extract_struct_value_address): Delete.
12918 (v850_gdbarch_init): Update.
12919 * ns32k-tdep.c: Update copyright.
12920 (ns32k_extract_struct_value_address): Delete.
12921 (ns32k_gdbarch_init): Update.
12922 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12923 (hppa_gdbarch_init): Update.
12924 * vax-tdep.c: Update copyright.
12925 (vax_extract_struct_value_address): Delete.
12926 (vax_gdbarch_init): Update.
12927
afb18d0f
AC
12928 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12929 * gdbarch.h, gdbarch.c: Re-generate.
12930 * procfs.c (procfs_fetch_registers): Delete reference to
12931 DEPRECATED_NPC_REGNUM.
12932 (procfs_store_registers): Ditto.
12933 * regcache.c (generic_target_write_pc): Simplify.
12934 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12935
a698f53e
AC
12936 * core-sol2.c (fetch_core_registers): Replace
12937 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12938
adc11376
AC
12939 * hppa-tdep.c: Update copyright year.
12940 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12941 NPC_REGNUM.
12942 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12943
b6cb9035
AC
12944 * mips-tdep.c (mips_write_pc): New function.
12945 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12946 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12947 (mips_find_saved_regs, mips_software_single_step: Ditto.
12948 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12949 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12950
6d82d43b
AC
129512004-01-17 Andrew Cagney <cagney@redhat.com>
12952
12953 * mips-tdep.c: Re-indent. Group functions by ABI.
12954
71bd6bd4
AC
129552004-01-17 Andrew Cagney <cagney@redhat.com>
12956
12957 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12958 * gdbarch.c: Re-generate.
12959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12960 DECR_PC_AFTER_BREAK to zero.
12961 * vax-tdep.c (vax_gdbarch_init): Ditto.
12962 * v850-tdep.c (v850_gdbarch_init): Ditto.
12963 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12964 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12965 * sh-tdep.c (sh_gdbarch_init): Ditto.
12966 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12967 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12968 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12969 * mips-tdep.c (mips_gdbarch_init): Ditto.
12970 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12972 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12973 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12974 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12975 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12976 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12977 * frv-tdep.c (frv_gdbarch_init): Ditto.
12978 * cris-tdep.c (cris_gdbarch_init): Ditto.
12979 * avr-tdep.c (avr_gdbarch_init): Ditto.
12980 * arm-tdep.c (arm_gdbarch_init): Ditto.
12981 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12982
a02abb62
JB
129832004-01-17 J. Brobecker <brobecker@gnat.com>
12984
12985 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12986 Delete, no longer used.
12987 (read_subrange_type): New function, mostly extracted from
12988 read_array_type().
12989 (read_array_type): Replace extracted code by call to
12990 read_subrange_type().
12991 (dwarf2_get_attr_constant_value): New function.
12992 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12993 (add_partial_symbol): Likewise.
12994 (process_die): Likewise.
12995 (new_symbol): Likewise.
12996 (read_type_die): Likewise.
12997
cf5b2f1b
AC
129982004-01-16 Andrew Cagney <cagney@redhat.com>
12999
13000 * symfile.c: Update copyright year.
13001 (compare_symbols): Delete unused function.
13002 * stabsread.c: Update copyright year.
13003 (lrs_general_complaint): Delete unused function.
13004 (ref_search_value): Ditto.
13005 (get_substring): Delete declaration.
13006 * sh64-tdep.c: Update copyright year.
13007 (sh64_get_gdb_regnum): Delete unused function.
13008 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13009 Delete unused function.
13010
d33b9831
MK
130112004-01-17 Mark Kettenis <kettenis@gnu.org>
13012
13013 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13014 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13015
7aea86e6
AC
130162004-01-16 Andrew Cagney <cagney@redhat.com>
13017
13018 Changes from Peter Schauer.
13019 * rs6000-tdep.c: Update copyright year.
13020 (rs6000_push_dummy_call): Update the stack pointer before
13021 accessing the corresponding stack region.
13022 * rs6000-nat.c: Update copyright year.
13023 (set_host_arch): Set "info.abfd" to "exec_bfd".
13024
26b0da32
MK
130252004-01-15 Mark Kettenis <kettenis@gnu.org>
13026
13027 * blockframe.c: Update copyright year.
13028 (inside_entry_func): Don't treat a zero PC specially.
13029
86fbe6cc
EZ
130302004-01-14 Elena Zannoni <ezannoni@redhat.com>
13031
13032 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13033 variable.
13034 (gcore_create_callback): Ditto. Skip any memory segment that has
13035 no permissions set.
13036
63d06c5c
DC
130372004-01-14 David Carlton <carlton@kealia.com>
13038
13039 Change symbols for C++ nested types to contain the fully qualified
13040 name, if possible. (At least in the DWARF-2 case.) Partial fix
13041 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13042 c++/895.
13043 * c-exp.y (qualified_type): Handle types nested within classes.
13044 * cp-namespace.c: Update comments.
13045 (cp_set_block_scope): Delete #if 0.
13046 (cp_lookup_nested_type): Handle types nested within classes.
13047 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13048 when appropriate.
13049 (add_partial_symbol): Add the name of the enclosing namespace to
13050 types.
13051 (pdi_needs_namespace): New.
13052 (add_partial_namespace): Tweak comment.
13053 (add_partial_structure): New.
13054 (psymtab_to_symtab_1): Initialize processing_current_prefix
13055 here...
13056 (process_die): instead of here.
13057 (read_structure_scope): Try to figure out the name of the class or
13058 namespace that the structure might be defined within.
13059 (read_enumeration): Generate fully-qualified names, if possible.
13060 (read_namespace): Don't set name to NULL.
13061 (die_specification): New.
13062 (new_symbol): Generate fully-qualified names for types.
13063 (read_type_die): Determine appropriate prefix.
13064 (determine_prefix): New.
13065 (typename_concat): New.
13066 (class_name): New.
13067 * valops.c (value_aggregate_elt): Pass NOSIDE to
13068 value_struct_elt_for_reference.
13069 (value_struct_elt_for_reference): Make static, add NOSIDE
13070 parameter, call value_maybe_namespace_elt as a last resort.
13071 (value_namespace_elt): Break out code into
13072 value_maybe_namespace_elt.
13073 (value_maybe_namespace_elt): New.
13074
87783b8b
AC
130752004-01-12 Andrew Cagney <cagney@redhat.com>
13076
13077 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13078 cooked floating-point registers.
13079 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13080 and value_to_register.
13081
6503b91e
AC
130822004-01-13 Andrew Cagney <cagney@redhat.com>
13083
13084 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13085 * gdbarch.c: Re-generate.
13086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13087 FUNCTION_START_OFFSET.
13088 * v850-tdep.c (v850_gdbarch_init): Ditto.
13089 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13090 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13091 * sh-tdep.c (sh_gdbarch_init): Ditto.
13092 * s390-tdep.c (s390_gdbarch_init): Ditto.
13093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13094 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13096 * mips-tdep.c (mips_gdbarch_init): Ditto.
13097 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13098 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13100 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13101 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13102 * i386-tdep.c (i386_gdbarch_init): Ditto.
13103 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13104 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13105 * frv-tdep.c (frv_gdbarch_init): Ditto.
13106 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13107 * cris-tdep.c (cris_gdbarch_init): Ditto.
13108 * avr-tdep.c (avr_gdbarch_init): Ditto.
13109 * arm-tdep.c (arm_gdbarch_init): Ditto.
13110 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13111
ea1dd7bc
DJ
131122004-01-13 Daniel Jacobowitz <drow@mvista.com>
13113
13114 * infrun.c (follow_fork_mode_ask): Remove.
13115 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13116 (follow_fork): Simplify and remove internal error for
13117 follow_fork_mode_ask.
13118 (_initialize_infrun): Update "set follow-fork-mode" help text.
13119
0f0cffd2
AC
131202004-01-13 Andrew Cagney <cagney@redhat.com>
13121
13122 * configure.in: Update copyright year.
13123 (build_warnings): Add -Wunused-label.
13124 * configure: Re-generate.
13125
de38af99
AC
131262004-01-12 Andrew Cagney <cagney@redhat.com>
13127
954a7fba
AC
13128 * exec.h (exec_ops): Make "extern".
13129
de38af99
AC
13130 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13131 the function is void.
13132 (mips_pseudo_register_write): Ditto.
13133
1a111ce3
AC
131342004-01-12 Andrew Cagney <cagney@redhat.com>
13135
13136 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13137 call. Never defined.
13138 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13139 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13140 (struct sparc_gregset, struct regcache): Ditto.
13141 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13142
48efe704
AC
131432004-01-12 Andrew Cagney <cagney@redhat.com>
13144
13145 * mi/ChangeLog: Delete file. Renamed to ...
13146 * mi/ChangeLog-1999-2003: New file.
13147 * tui/ChangeLog: Delete file. Renamed to ...
13148 * tui/ChangeLog-1998-2003: New file.
fe61caab 13149
a54124c5
MK
131502004-01-11 Mark Kettenis <kettenis@gnu.org>
13151
2ca62865
MK
13152 * sparc64nbsd-tdep.c: Include "regset.h".
13153 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13154 Remove variables.
13155 (fetch_core_registers): Remove function.
13156 (sparc64nbsd_core_fns): Remove variable.
13157 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13158 functions.
13159 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13160 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13161 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13162
ca9d58e9
MK
13163 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13164 sparc_extract_struct_value_address.
13165 (sparc32_gdbarch_init): Set extract_struct_value_address.
13166 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13167 function.
13168 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13169 return_value_on_stack.
13170
3cc87ec0
MK
13171 * NEWS: Mention that %cs and %ss have been added to the AMD64
13172 configurations
13173
5bf00f29
MK
13174 * frame.c: Update copyright year.
13175 (get_prev_frame): Improve comment.
13176
4f7ec84e
MK
13177 * sparc64fbsd-tdep.c: Include "regset.h".
13178 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13179 Remove variables.
13180 (fetch_core_registers): Remove function.
13181 (sparc64fbsd_core_fns): Remove variable.
13182 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13183 functions.
13184 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13185 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13186 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13187
4e7b0cd3
MK
13188 * sparcnbsd-tdep.c: Include "regset.h".
13189 (fetch_core_registers): Remove function.
13190 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13191 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13192 functions.
13193 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13194 TDEP->fpregset.
46b58ce9 13195 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13196
a54124c5
MK
13197 * sparc-tdep.h (struct regset): Provide opaque declaration.
13198 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13199 fpregset and sizeof_fpregset members.
13200 * sparc-tdep.c (struct regset): Provide opaque declaration.
13201 (sparc_regset_from_core_section): New function.
13202 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13203 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13204 Set regset_from_core_section when appropriate.
13205
29ff87c5
MK
132062004-01-10 Mark Kettenis <kettenis@gnu.org>
13207
79b1ab3d
MK
13208 * x86-64-tdep.c (amd64_non_pod_p): New function.
13209 (amd64_classify_aggregate): Return class memory for non-POD
13210 C++ structure types.
13211
6470d250
MK
13212 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13213 argument. Use it to reserve a register if necessary.
13214 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13215 amd64_push_arguments.
13216
562c50c2
MK
13217 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13218
af233647
MK
13219 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13220 register numbers in comments.
13221 * x86-64-tdep.h: Update copyright year.
13222 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13223 Adjust for addition of %cs and %ss.
13224 * amd64fbsd-nat.c: Update copyright year.
13225 (reg_offset): Add register offsets for %cs and %ss.
13226 * amd64fbsd-tdep.c: Update copyright year.
13227 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13228 (amd64fbsd_sc_reg_offset): Likewise.
13229 * x86-64-linux-nat.c: Update copyright year.
13230 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13231 and %ss.
13232 * amd64nbsd-nat.c: Update copyright year.
13233 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13234 * amd64nbsd-tdep.c: Update copyright year.
13235 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13236 * x86-64-linux-tdep.c: Update copyright year.
13237 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13238 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13239 * regformats/reg-x86-64.dat: Add %cs and %ss.
13240
29ff87c5
MK
13241 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13242 variables to prevent long lines. Update comments to reflect
13243 reality.
13244
38d518c9
EZ
132452004-01-09 David Carlton <carlton@kealia.com>
13246
13247 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13248 * dwarf2read.c (read_namespace): Pull out name-generating code
13249 into namespace_name. Rename previous_namespace to previous_prefix
13250 and processing_current_namespace to processing_current_prefix..
13251 (namespace_name): New function.
13252 (add_partial_symbol): Substitute uses of pdi->name with
13253 actual_name.
13254 * cp-support.h: Rename processing_current_namespace to
13255 processing_current_prefix.
13256 Update copyright year.
13257 * cp-namespace.c: Rename processing_current_namespace to
13258 processing_current_prefix.
13259 Update copyright year.
fe61caab 13260
1e4728e7
AC
132612004-01-09 Andrew Cagney <cagney@redhat.com>
13262
13263 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13264
c77c642a
MK
132652004-01-09 Mark Kettenis <kettenis@gnu.org>
13266
13267 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13268 complaining.
13269 (process_one_symbol): Deal with N_PATCH stabs.
13270
b44e9041
EZ
132712004-01-09 Elena Zannoni <ezannoni@redhat.com>
13272
13273 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13274 ifdeffed code.
13275 Update copyright year.
38d518c9 13276
eccfb640
MC
132772004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13278
13279 * config/pa/tm-hppa.h: Update extern declarations for
13280 hppa32_hpux_frame_saved_pc_in_sigtramp,
13281 hppa32_hpux_frame_base_before_sigtramp, and
13282 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13283
848c5feb
MC
132842004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13285
13286 * config/pa/tm-hppah.h: Update copyright years.
13287
3cc5d663
AC
132882004-01-08 Andrew Cagney <cagney@redhat.com>
13289
13290 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13291 (mips_o32_reg_struct_has_addr): Delete function.
13292 (mips_gdbarch_init): Update.
13293 (mips_extract_struct_value_address): Delete function.
13294
bfec0b41
JJ
132952004-01-08 David Mosberger <davidm@hpl.hp.com>
13296
13297 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13298 reality.
13299
16e109ca
AC
133002004-01-07 Andrew Cagney <cagney@redhat.com>
13301
6214a8a1
AC
13302 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13303 architecture's elf flags (when available).
13304
8d5838b5
AC
13305 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13306 FPU to the start, check the MIPS FPU when looking for an old
13307 architecture.
13308 (set_mipsfpu_single_command): Update the architecture.
13309 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13310
480d3dd2
AC
13311 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13312 (mips_mask_address_p): Add "tdep" parameter.
13313 (show_mask_address, mips_addr_bits_remove): Update.
13314 (mips_dump_tdep): Update.
13315 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13316 (MIPS_STACK_ARGSIZE): Delete macro.
13317 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13318 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13319 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13320 (mips_dump_tdep): Update.
13321 (MIPS_SAVED_REGSIZE): Delete macro.
13322 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13323 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13324 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13325 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13326 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13327 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13328 (mips_pop_frame, return_value_location): Update.
13329 (mips_n32n64_return_value, mips_dump_tdep): Update.
13330
ec03c1ac
AC
13331 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13332 MIPS ABI.
13333
16e109ca
AC
13334 * mips-tdep.c: Update copyright.
13335 (mips_gdbarch_init): Merge two code blocks handling the register
13336 name and number layout.
13337
15255275
MS
133382004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13339
13340 * tracepoint.c (validate_actionline): Fix segv at EOF
13341
9f9057da
MC
133422004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13343
13344 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13345 properly for static fields.
13346
0127c0d3 133472004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13348 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13349
13350 * disasm.c: Update copyright to include 2004.
13351 (do_mixed_source_and_assembly): For uiout asm list
13352 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13353 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13354 the tuple/list. Move check for whether to close off the
fe61caab 13355 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13356 on each loop iteration.
13357
5269965e
AC
133582004-01-05 Andrew Cagney <cagney@redhat.com>
13359
54f1137d
AC
13360 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13361 should be a switch case and not a label.
13362 * mips-tdep.c (mips32_next_pc): Delete unused labels
13363 "greater_equal_branch" and "less_zero_branch".
13364 * jv-valprint.c (java_print_value_fields): Delete unused label
13365 "flush_it".
13366
5269965e
AC
13367 * target.c (unpush_target): Only close a target that is in the
13368 target stack.
13369
dbc22fa1
MK
133702004-01-05 Mark Kettenis <kettenis@gnu.org>
13371
9515395e
MK
13372 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13373 address from [sp + 64] instead of %o2.
13374
dbc22fa1
MK
13375 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13376 fixes PR backtrace/1476.
13377
5439edaa
AC
133782004-01-05 Andrew Cagney <cagney@redhat.com>
13379
13380 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13381 move to start of file.
13382 * i386-tdep.h (struct regcache): Add opaque declaration.
13383 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13384 declaration.
13385 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13386 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13387 * win32-nat.c (fake_create_process): Use ISO C style definition.
13388 * stabsread.c (define_symbol): Delete #ifndef
13389 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13390 stabs_argument_has_addr call, macro never defined.
13391
19061abe
MC
133922004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13393
13394 * op50-rom.c: Delete.
13395 * w89k-rom.c: Delete.
13396 * Makefile.in: Remove references.
13397
e53bef9f
MK
133982004-01-04 Mark Kettenis <kettenis@gnu.org>
13399
13400 * x86-64-tdep.c: Update copyright year.
13401 (struct amd64_register_info): Rename from x86_64_register_info.
13402 (amd64_register_info): Rename from x86_64_register_info.
13403 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13404 (amd64_register_name): Rename from x86_64_register_name.
13405 (amd64_register_type): Rename from x86_64_register_type.
13406 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13407 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13408 (amd64_dwarf_reg_to_regnum): Rename from
13409 x86_64_dwarf_reg_to_regnum.
13410 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13411 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13412 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13413 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13414 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13415 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13416 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13417 (amd64_frame_cache): Rename from x86_64_frame_cache.
13418 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13419 (amd64_frame_prev_register): Rename from
13420 x86_64_frame_prev_register.
13421 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13422 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13423 (amd64_sigtramp_frame_cache): Rename from
13424 x86_64_sigtramp_frame_cache.
13425 (amd64_sigtramp_frame_prev_register): Rename from
13426 x86_64_sigtramp_frame_prev_register.
13427 (amd64_sigtramp_frame_unwind): Rename from
13428 x86_64_sigtramp_frame_unwind.
13429 (amd64_sigtramp_frame_sniffer): Rename from
13430 x86_64_sigtramp_frame_sniffer.
13431 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13432 (amd64_frame_base): Rename from x86_64_frame_base.
13433 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13434 (amd64_frame_align): Rename from x86_64_frame_align.
13435 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13436 (amd64_regset_from_core_section): Rename from
13437 x86_64_regset_from_core_section.
13438 (x86_64_init_abi): Update comments.
13439
fca6aa58
NR
134402004-01-04 Nick Roberts <nick@nick.uklinux.net>
13441
13442 * MAINTAINERS (write after approval): Add myself.
13443
8ada74e3
MK
134442004-01-04 Mark Kettenis <kettenis@gnu.org>
13445
13446 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13447 `float' arguments.
13448
5154b0cd
MK
134492004-01-04 Mark Kettenis <kettenis@gnu.org>
13450
13451 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13452 such that it mentions a specific version of GCC that exhibits this
13453 bug.
13454
fb316966
MK
134552004-01-03 Mark Kettenis <kettenis@gnu.org>
13456
200cc553
MK
13457 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13458 structure that has a single `float' member, store it in %f1 in
13459 addition to %f0.
13460
e226a4a0
MK
13461 * sparc-sol2-nat.c: Add missing '\'.
13462
b9d4c5ed
MK
13463 * sparc-tdep.c (sparc32_return_value): New function.
13464 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13465 Remove functions.
13466 (sparc32_gdbarch_init): Set return_value, don't set
13467 extract_return_value, store_return_value, use_struct_convention
13468 and return_value_on_stack.
13469
fb316966
MK
13470 * sparc-sol2-nat.c: Add missing ')'.
13471
1af510a8
JB
134722004-01-03 J. Brobecker <brobecker@gnat.com>
13473
13474 * infrun.c (handle_step_into_function): New function.
13475 (handle_inferior_event): Extract out some code into the new
13476 function above.
13477
5cf4d23a
JB
134782004-01-03 J. Brobecker <brobecker@gnat.com>
13479
13480 * infrun.c (handle_inferior_event): Move the declaration of
13481 real_stop_pc inside the if blocks where it is used.
13482
60af1db2
MK
134832004-01-03 Mark Kettenis <kettenis@gnu.org>
13484
13485 * sparc64-tdep.c (sparc64_16_byte_align_p)
13486 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13487 Use check_typedef to get subtypes of structures and unions.
13488 (sparc64_store_return_value): Fix calculation of the appropriate
13489 offset into VALBUF when storing a structure or union.
13490 (sparc64_return_value): New function.
13491 (sparc64_use_struct_convention): Remove function.
13492 (sparc64_init_abi): Set return_value, don't set
13493 extract_return_value, store_return_value and
13494 use_struct_convention.
13495
1a901d3f
EZ
134962004-01-03 Eli Zaretskii <eliz@elta.co.il>
13497
13498 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13499 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13500 gdb/config/alpha/xm-alphaosf.h,
13501 gdb/config/powerpc/tm-ppcle-eabi.h,
13502 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13503 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13504 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13505 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13506 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13507 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13508 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13509 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13510 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13511 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13512 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13513 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13514 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13515 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13516 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13517 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13518 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13519 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13520 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13521 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13522 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13523 Remove lines for .cvsignore files.
13524
ef52e463
JB
135252004-01-03 J. Brobecker <brobecker@gnat.com>
13526
13527 * infrun.c: Back out the previous change.
13528
cb1bf9dc
MK
135292004-01-03 Mark Kettenis <kettenis@gnu.org>
13530
f0424ef6
MK
13531 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13532 sparc-*-sunos4* to the list of REMOVED configurations.
13533
cb1bf9dc
MK
13534 * configure.tgt: Add back sparc-*-vxworks*.
13535 * remote-vxsparc.c: Remove all includes except for "defs.h",
13536 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13537 Include "sparc-tdep.h".
13538 (SPARC_R_G1): New define.
13539 (vxsparc_gregset): New variable.
13540 (ext_format_sparc): Remove extern declaration.
13541 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13542 sparc32_supply_fpregset.
13543 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13544 sparc_collect_rwindow and sparc32_collect_fpregset.
13545 * config/sparc/tm-vxworks.h: New file, based on recently removed
13546 tm-vxsparc.h.
13547 * config/sparc/vxworks.mt: New file, based on recently removed
13548 vxworks.mt.
fe61caab 13549
5e938f9f
JB
135502004-01-03 J. Brobecker <brobecker@gnat.com>
13551
13552 * infrun.c (handle_step_into_function): New function.
13553 (handle_inferior_event): Extract out some code into the new
13554 function above.
13555
386c036b
MK
135562004-01-02 Mark Kettenis <kettenis@gnu.org>
13557
13558 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13559 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13560 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13561 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13562 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13563 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13564 (sparc_nat_h): New variable.
13565 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13566 (tm-sun4os4.h): Remove dependency.
13567 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13568 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13569 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13570 sparc-tdep.o): Update dependencies.
13571 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13572 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13573 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13574 dependencies.
13575 * configure.host: Remove existing sparc-*-lynxos*,
13576 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13577 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13578 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13579 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13580 triplets.
13581 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13582 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13583 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13584 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13585 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13586 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13587 sparc64-*-solaris2* and sparc64-*-* triplets.
13588 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13589 "symtab.h" and "objfiles.h".
13590 (BIAS): Remove define.
13591 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13592 (X_DISP19): Remove macros.
13593 (sparc_fetch_instruction): Remove function.
13594 (struct gdbarch_tdep): Remove definition.
13595 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13596 (sparc_breakpoint_from_pc): Remove function.
13597 (struct sparc64_frame_cache): Remove definition.
13598 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13599 sparc64_unwind_pc): Remove functions.
13600 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13601 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13602 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13603 (sparc64_frame_cache): Change return type to `struct
13604 sparc_frame_cache *'. Simply call sparc_frame_cache.
13605 (sparc64_frame_this_id, sparc64_frame_prev_register,
13606 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13607 instead of `struct sparc64_frame_cache.
13608 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13609 sparc_analyze_control_transfer, sparc_software_single_step,
13610 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13611 _initialize_sparc64_tdep): Remove functions.
13612 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13613 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13614 macros.
13615 (sparc64_supply_gregset, sparc64_collect_gregset,
13616 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13617 (sparc64_init_abi): New function.
13618 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13619 inclusion guard. Include "sparc-tdep.h".
13620 (BIAS): Define.
13621 (r_tstate_offset, r_fprs_offset): New defines.
13622 (enum sparc_regnum): Remove defenition.
13623 (enum sparc64_regnum): Reformat.
13624 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13625 (sparc64_init_abi, sparc64_supply_gregset,
13626 sparc64_collect_gregset, sparc64_supply_fpregset,
13627 sparc64_collect_fpregset): New prototypes.
13628 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13629 Add extern declarations.
13630 (sparc64_sol2_init_abi): New prototype.
13631 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13632 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13633 prototypes.
13634 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13635 "sparnbsd-nat.h".
13636 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13637 functions.
13638 (_initialize_sparc64fbsd_nat): Remove initialization of
13639 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13640 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13641 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13642 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13643 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13644 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13645 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13646 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13647 (sparc64fbsd_r_y_offset): Remove variables.
13648 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13649 Make static and const.
13650 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13651 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13652 functions.
13653 (sparc64fbsd_gregset): New variable.
13654 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13655 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13656 and sparc64_supply_fpregset.
13657 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13658 (sparc64fbsd_sigtramp_frame_this_id)
13659 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13660 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13661 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13662 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13663 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13664 * sparcnbsd-tdep.c: Update copyright year. Include
13665 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13666 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13667 "value.h" and "sparcnbsd-tdep.h".
13668 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13669 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13670 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13671 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13672 defines.
13673 (sparcnbsd_gregset): New variable.
13674 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13675 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13676 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13677 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13678 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13679 variables.
13680 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13681 (sparc32nbsd_sigcontext_frame_this_id)
13682 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13683 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13684 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13685 (sparcnbsd_get_longjmp_target_32,
13686 sparcnbsd_get_longjmp_target_64): Remove functions.
13687 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13688 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13689 sparcnbsd_init_elf): Remove.
13690 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13691 (sparcnbsd_elf_init_abi): New functions.
13692 (_initialize_sparcnbsd_tdep): New prototype.
13693 (_initialize_sparnbsd_tdep): Update.
13694 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13695 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13696 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13697 * config/sparc/linux.mh: Update comment.
13698 (XM_FILE, HOST_IPC): Remove variables.
13699 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13700 sparc-linux-nat.o.
13701 * config/sparc/linux.mt: Update comment.
13702 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13703 * config/sparc/nbsd.mt: Reformat.
13704 * config/sparc/nbsd64.mh: Update comment.
13705 (NATDEPFILES): Add sparc-nat.o.
13706 * config/sparc/nbsd64.mt: Update comment.
13707 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13708 (TM_FILE): Set to tm-nbsd.h.
13709 * config/sparc/nbsdelf.mh: Update comment.
13710 (NATDEPFILES): Add sparc-nat.o.
13711 (XM_FILE): Delete.
13712 * config/sparc/nbsdaout.mh: Update comment.
13713 (NATDEPFILES): Add sparc-nat.o
13714 (XM_FILE): Delete.
13715 * config/sparc/nm-linux.h: Update copyright year. Don't include
13716 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13717 inclusion.
13718 (KERNEL_U_SIZE): Remove define.
13719 (kernel_u_size): Remove prototype.
13720 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13721 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13722 "regcache.h".
13723 (CHILD_PREPARE_TO_STORE): Remove define.
13724 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13725 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13726 sparcnbsd-nat.c: Rewrite files.
13727 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13728 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13729 sparcnbsd-tdep.h: Remove files.
13730 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13731 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13732 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13733 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13734 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13735 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13736 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13737 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13738 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13739 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13740 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13741 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13742 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13743 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13744 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13745 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13746 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13747 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13748 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13749
ee84457a
AC
137502004-01-02 Andrew Cagney <cagney@redhat.com>
13751
13752 From 2003-12-18 Kazuhiro Inaoka:
13753 * configure.host: Add m32r-linux target.
13754
0bc2134e
MC
137552004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13756
13757 * top.c (print_gdb_version): Update year to 2004.
13758
89a72f9c
MM
137592004-01-02 Mark Mitchell <mark@codesourcery.com>
13760
13761 * MAINTAINERS: Add myself to the write-after-approval category.
13762
86b013ed
DJ
137632004-01-02 Daniel Jacobowitz <drow@mvista.com>
13764
13765 From Bernardo Innocenti <bernie@develer.com>:
13766 * configure.tgt: Add uClinux target.
13767
e42c9534
AC
137682004-01-02 Andrew Cagney <cagney@redhat.com>
13769
13770 * utils.c (do_my_cleanups): Make static, add forward declaration.
13771 * defs.h (do_my_cleanups): Delete declaration.
13772
162467d3
EZ
137732004-01-02 Eli Zaretskii <eliz@elta.co.il>
13774
13775 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13776 bfd/ChangeLog-0203.
13777
78434e59
MK
137782004-01-02 Mark Kettenis <kettenis@gnu.org>
13779
13780 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13781 in <machine/reg.h>.
13782 * configure, config.in: Regenerate.
13783
48efe704
AC
13784For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13785tui/ChangeLog-1998-2003.
c906108c
SS
13786\f
13787Local Variables:
13788mode: change-log
13789left-margin: 8
13790fill-column: 74
13791version-control: never
13792End:
This page took 1.492862 seconds and 4 git commands to generate.