2004-10-31 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-31 Andrew Cagney <cagney@gnu.org>
2
3 * gdbarch.sh (in_solib_call_trampoline): Delete.
4 * gdbarch.h, gdbarch.c: Re-generate.
5
6 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
7 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
8 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
9 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
10 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
11
12 2004-10-31 Mark Kettenis <kettenis@gnu.org>
13
14 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
15 (mipsnbsd_fetch_inferior_registers): Rename from
16 fetch_inferior_registers. Make static.
17 (mipsnbsd_store_inferior_registers): Rename from
18 store_inferior_registers. Make static.
19 (_initialize_mipsnbsd_nat): New function and prototype.
20 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
21 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
22 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
23 inf-ptrace.o.
24
25 2004-10-31 Andrew Cagney <cagney@gnu.org>
26
27 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
28 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
29 delete corresponding unused function.
30 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
31 in_solib_call_trampoline.
32 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
33 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
34 * config/mips/tm-nbsd.h: Ditto.
35 * config/arm/tm-linux.h: Ditto.
36 * config/mips/tm-linux.h: Ditto.
37
38 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
39 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
40 in_solib_call_trampoline, delete corresponding unused function.
41 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
42 (vaxnbsd_aout_init_abi): Ditto.
43 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
44 (sparc32nbsd_aout_init_abi): Ditto.
45 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
46 (ppc_linux_init_abi): Ditto.
47 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
48 (ns32knbsd_init_abi_aout): Ditto.
49 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
50 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
51 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
52 (m68kbsd_aout_init_abi): Ditto.
53 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
54 (i386_cygwin_init_abi): Ditto.
55 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
56 (i386bsd_init_abi): Ditto.
57
58 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
59 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
60 isn't used by this architecture.
61 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
62 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
63 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
64 * s390-tdep.c (s390_gdbarch_init): Ditto.
65 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
66 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
67 * i386-tdep.c (i386_svr4_init_abi): Ditto.
68 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
69 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
70 * amd64-tdep.c (amd64_init_abi): Ditto.
71
72 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
73 in_solib_call_trampoline to its default value of
74 generic_in_solib_call_trampoline.
75 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
76 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
77 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
78 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
79 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
80 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
81
82 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
83
84 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
85
86 * config/mips/tm-mips.h: Delete file.
87 * remote-mips.c: Delete tm-mips.h from comment.
88 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
89 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
90 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
91 * config/mips/tm-linux.h: Don't include tm-mips.h.
92 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
93 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
94 * config/mips/tm-wince.h: Don't include.
95
96 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
97 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
98 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
99 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
100
101 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
102 * mdebugread.c (ecoff_relocate_efi): Delete function.
103 * objfiles.c (objfile_relocate): Delete #ifdef
104 MDEBUG_EFI_SYMBOL_NAME code.
105
106 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
107 Andrew Cagney <cagney@gnu.org>
108
109 * gdbarch.sh (single_step_through_delay): Add.
110 * gdbarch.h, gdbarch.c: Re-generate.
111 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
112 (mips_step_skips_delay): Delete.
113 * mips-tdep.c (mips_single_step_through_delay): Replace
114 mips_step_skips_delay.
115 (mips_gdbarch_init): Set single_step_through_delay.
116 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
117
118 2004-10-31 Mark Kettenis <kettenis@gnu.org>
119
120 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
121 from TRAMP_FRAME frame type.
122
123 2004-10-31 Andrew Cagney <cagney@gnu.org>
124
125 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
126
127 * mips-tdep.c (mips_ignore_helper): Delete.
128 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
129 * infrun.c (handle_inferior_event): Delete #ifdef
130 DEPRECATED_IGNORE_HELPER_CALL code.
131
132 * config/mips/tm-mips.h (RA_REGNUM): Delete.
133
134 2004-10-31 Mark Kettenis <kettenis@gnu.org>
135
136 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
137 (fill_fpregset): Do not compile for 64-bit systems.
138 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
139 * Makefile.in (i386-sol2-nat.o): Update dependencies.
140 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
141
142 2004-10-30 Andrew Cagney <cagney@gnu.org>
143
144 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
145 (struct mdebug_extra_func_info): Define.
146 * config/alpha/tm-alpha.h: Delete same.
147 * config/mips/tm-mips.h: Delete same.
148 * mdebugread.c: Delete same.
149 * Makefile.in: Update dependencies.
150 * mips-mdebug-tdep.c: Include "mdebugread.h".
151
152 * objfiles.c: Include "mdebugread.h".
153 * mdebugread.c: Include "mdebugread.h".
154 (ecoff_relocate_cfi): Delete.
155 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
156 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
157 * mdebugread.h (ecoff_relocate_efi): New file.
158 * Makefile.in: Update dependencies.
159
160 * mips-tdep.c (struct frame_extra_info): Delete.
161 (temp_proc_desc): Delete.
162
163 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
164 MIPS_EFI_SYMBOL_NAME.
165 (mips_extra_func_info_t, mips_extra_func_info): Delete.
166 (struct mdebug_extra_func_info): Replace struct
167 alpha_extra_func_info and alpha_extra_func_info_t.
168 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
169 MIPS_EFI_SYMBOL_NAME.
170 (struct mdebug_extra_func_info): Replace struct
171 alpha_extra_func_info and alpha_extra_func_info_t.
172 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
173 * mdebugread.c, alpha-mdebug-tdep.c:
174
175 Suggested by Mark Kettenis.
176 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
177 fields frame_adjust and high_addr.
178 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
179 (non_heuristic_proc_desc): Delete references.
180
181 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
182 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
183 * mips-tdep.c: Update.
184
185 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
186 (MIPS_LAST_EMBED_REGNUM): Add.
187 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
188 (LAST_EMBED_REGNUM): Delete.
189 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
190
191 * config/mips/tm-mips.h (PS_REGNUM): Delete.
192 * mips-tdep.h (MIPS_PS_REGNUM): Add.
193 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
194 * mips-linux-nat.c: Update.
195
196 * mips-tdep.h: Add comments on registers.
197 (MIPS_UNUSED_REGNUM): Define.
198 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
199 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
200 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
201 * mips-linux-nat.c, remote-mips.c: Update.
202
203 * config/mips/tm-mips.h (t_insn): Delete.
204 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
205 Replace t_insn with ULONGEST.
206
207 2004-10-30 Mark Kettenis <kettenis@gnu.org>
208
209 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
210 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
211 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
212 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
213 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
214 (mipsnbsd_core_osabi_sniffer): New function.
215 (mipsnbsd_init_abi): Set regset_from_core_section.
216 (_initialize_mipsnbsd_tdep): Remove calls to
217 deprecated_add_core_fns.
218 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
219 (mipsnbsd_regset_from_core_section): New functions.
220 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
221 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
222
223 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
224 Remove optimization for DEPRECATED_FP_REGNUM.
225
226 2004-10-30 Andrew Cagney <cagney@gnu.org>
227
228 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
229 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
230 (alpha_setup_arbitrary_frame): Delete.
231 * mips-tdep.c (setup_arbitrary_frame): Delete.
232 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
233 (setup_arbitrary_frame): Delete.
234 * stack.c (parse_frame_specification_1): When specified, call
235 create_new_frame with two parameters. Delete #ifdef
236 SETUP_ARBITRARY_FRAME.
237
238 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
239 (MIPS_INSTLEN): Delete.
240 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
241 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
242 * remote-mips.c, mips-tdep.c: Update.
243
244 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
245 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
246 * mips-tdep.c (mips_mdebug_frame_cache)
247 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
248 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
249 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
250 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
251 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
252 (mips_gdbarch_init): Do not append mdebug sniffers.
253 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
254 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
255 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
256 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
257 * Makefile.in: Update dependencies.
258
259 * mips-tdep.h (mips_abi_regsize): Declare.
260 * mips-tdep.c (mips_abi_regsize): Make non-static.
261
262 * mips-tdep.c (gdb_print_insn_mips): Simplify.
263 (make_mips16_addr): Delete.
264
265 2004-10-30 Mark Kettenis <kettenis@gnu.org>
266
267 * i386-sol2-nat.c: New file.
268 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
269 i386-sol2-tdep.c.
270 (i386-sol2-nat.o): Update dependencies.
271 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
272 i386-sol2-nat.o.
273
274 2004-10-30 Andrew Cagney <cagney@gnu.org>
275
276 Total breakage identified by Joel Brobecker.
277 * mips-tdep.c (after_prologue): Delete.
278 (mips_skip_prologue): Use skip_prologue_using_sal.
279 (heuristic_proc_desc): Delete, unused.
280
281 2004-10-30 Mark Kettenis <kettenis@gnu.org>
282
283 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
284 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
285 Cleanup coding style.
286
287 2004-10-30 Andrew Cagney <cagney@gnu.org>
288
289 * mips-tdep.h (mips_pc_is_mips16): Declare.
290 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
291 non-static. Update calls.
292
293 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
294 * command.h (add_setshow_enum_cmd): Declare.
295 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
296
297 * mips-tdep.c (_initialize_mips_tdep): Use
298 add_setshow_zinteger_cmd.
299
300 * mips-tdep.c (mips_eabi_extract_return_value)
301 (mips_o64_extract_return_value, mips_o64_store_return_value)
302 (return_value_location, mips_eabi_reg_struct_has_addr)
303 (mips_eabi_use_struct_convention)
304 (mips_eabi_store_return_value): Delete.
305 (mips_eabi_store_return_value): New function.
306 (mips_eabi_return_value): New function.
307 (mips_gdbarch_init): For O64 and EABI, delete
308 extract_return_value, store_return_value, use_struct_convention
309 and reg_struct_has_addr, add return_value.
310
311 * mips-tdep.c (read_signed_register): Use
312 regcache_cooked_read_signed.
313
314 2004-10-30 Mark Kettenis <kettenis@gnu.org>
315
316 * mipsread.c: Cleanup coding style.
317 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
318 (mipscoff_symfile_finish): Remove prototypes.
319
320 2004-10-29 Mark Kettenis <kettenis@gnu.org>
321
322 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
323 (mips_mdebug_frame_cache, mips16_scan_prologue)
324 (mips32_scan_prologue, mips_stub_frame_cache)
325 (heuristic_proc_start, heuristic_proc_desc)
326 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
327 (mips_n32n64_return_value, mips_o32_push_dummy_call)
328 (mips_o32_return_value, mips_o64_push_dummy_call)
329 (mips_step_skips_delay, mips_skip_trampoline_code)
330 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
331 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
332 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
333 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
334 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
335 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
336 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
337 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
338 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
339 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
340 ZERO_REGNUM.
341 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
342 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
343 ZERO_REGNUM.
344 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
345 A0_REGNUM.
346 * mipsnbsd-nat.c: Include "mips-tdep.h".
347 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
348 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
349
350 2004-10-29 Andrew Cagney <cagney@gnu.org>
351
352 * stack.c (parse_frame_specification_1): New function based on
353 parse_frame_specification. Add message and selected_frame_p
354 paramters. Truely always return non-NULL.
355 (parse_frame_specification): Call parse_frame_specification_1.
356 (frame_info): Update. Eliminate target_has_stack check.
357 (select_frame_command): Update.
358
359 2004-10-29 Andrew Cagney <cagney@gnu.org>
360
361 * frame.h (get_selected_frame): Add message parameter.
362 * frame.c (get_selected_frame): Add and use message parameter.
363 * stack.c (current_frame_command, return_command, locals_info)
364 (catch_info, args_info, up_silently_base, down_silently_base): Use
365 get_selected_frame with an explicit message.
366 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
367 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
368 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
369 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
370 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
371 * breakpoint.c: Update.
372
373 2004-10-29 Andrew Cagney <cagney@gnu.org>
374
375 * trad-frame.c (trad_frame_get_prev_register): Use
376 frame_unwind_register instead of frame_register_unwind, do not
377 recurse the register's location.
378 * xstormy16-tdep.c (xstormy16_frame_prev_register):
379 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
380 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
381 * sh-tdep.c (sh_frame_prev_register): Ditto.
382 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
383 * i386-tdep.c (i386_frame_prev_register): Ditto.
384 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
385 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
386
387 2004-10-28 Mark Kettenis <kettenis@jive.nl>
388
389 * proc-events.c: Fix several coding-style issues. Consistently
390 use #ifdef instead of #if defined().
391 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
392 ARRAY_SIZE.
393 (_initialize_proc_events): New prototype.
394
395 * proc-why.c: Fix several coding-style issues.
396 (proc_prettyfprint_why): Use ARRAY_SIZE.
397
398 2004-10-27 Jim Blandy <jimb@redhat.com>
399
400 * remote.c (fetch_register_using_p): Construct 'p' packet in a
401 manner independent of the host byte order.
402
403 2004-10-27 Mark Kettenis <kettenis@gnu.org>
404
405 * mips-tdep.c (id_delayed): Remove prototype.
406
407 2004-10-26 Mark Kettenis <kettenis@gnu.org>
408
409 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
410 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
411 to enum with register numbers.
412 (enum mips_insn_size): New enum.
413
414 2004-10-26 Andrew Cagney <cagney@gnu.org>
415
416 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
417 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
418 (mips_gdbarch_init): Update.
419 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
420
421 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
422 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
423 IN_SOLIB_RETURN_TRAMPOLINE.
424 * mips-tdep.c (mips_dump_tdep): Do not print
425 IN_SOLIB_RETURN_TRAMPOLINE.
426 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
427 (mips_gdbarch_init): Update.
428
429 * mips-tdep.h (mips_software_single_step): Move to here ...
430 * config/mips/tm-mips.h: ... from here.
431 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
432 (SOFTWARE_SINGLE_STEP): Delete.
433 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
434
435 2004-10-25 Andrew Cagney <cagney@gnu.org>
436
437 * NEWS: Add Changes since GDB 6.3 section.
438
439 2004-10-23 Andreas Schwab <schwab@suse.de>
440
441 * ada-lang.c (grow_vect): Return the new array instead of
442 expecting pointer to pointer to avoid violation of aliasing rules.
443 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
444
445 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
446
447 * s390-tdep.c (enum pv_boolean): Remove.
448 (pv_is_array_ref): Remove.
449 (s390_on_stack): Remove.
450 (S390_NUM_SPILL_SLOTS): Remove.
451 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
452 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
453 (s390_store): Track all stores of orginal incoming registers to the
454 stack constant offsets relative to the CFA, instead of only tracking
455 stores into specific spill slots.
456 (s390_load): Likewise.
457 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
458 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
459 defined as call-saved by the ABI.
460 (s390_push_dummy_call): Use bottom of dummy call argument save area
461 as return value, not the top. Do not store to the called function's
462 register save area.
463 (s390_unwind_dummy_id): Adapt accordingly.
464
465 2004-10-23 Andrew Cagney <cagney@gnu.org>
466
467 * objfiles.h (struct objfile): Rename obj_private to
468 deprecated_obj_private, sym_private to deprecated_sym_private, and
469 sym_stab_info to deprecated_sym_stab_info.
470 * gdb-stabs.h: Update.
471 * elfread.c: Update.
472 * dbxread.c: Update.
473 * coffread.c: Update.
474 * xcoffread.c: Update.
475 * symfile.c: Update.
476 * somread.c: Update.
477 * nlmread.c: Update.
478 * mdebugread.c: Update.
479 * hpread.c: Update.
480 * coffread.c: Update.
481
482 2004-10-23 Mark Kettenis <kettenis@gnu.org>
483
484 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
485 * configure.host: Add mips64*-*-openbsd*.
486 * configure.tgt: Add mips64*-*-openbsd*.
487 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
488 mips64obsd-tdep.c.
489 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
490 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
491
492 2004-10-21 Joel Brobecker <brobecker@gnat.com>
493
494 * symtab.c (symbol_search_name): Minor reformatting.
495
496 2004-10-20 Joel Brobecker <brobecker@gnat.com>
497
498 * symtab.h: Fix typo in comment.
499
500 2004-10-19 Mark Kettenis <kettenis@gnu.org>
501
502 * dwarf2read.c (struct comp_unit_head): Fix coding style.
503 (dwarf_decode_line_header): Likewise.
504
505 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
506
507 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
508
509 2004-10-19 Andrew Cagney <cagney@gnu.org>
510
511 GDB 6.3 branch created.
512 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
513
514 2004-10-15 Joel Brobecker <brobecker@gnat.com>
515
516 * dwarf2read.c (set_cu_language): Set language to Ada for
517 DW_LANG_Ada83 and DW_LANG_Ada95.
518
519 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
520
521 From Andreas Schwab <schwab@suse.de>:
522 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
523 for xmalloc and xrealloc.
524
525 2004-10-15 Andrew Cagney <cagney@gnu.org>
526
527 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
528 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
529 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
530 Update dependencies.
531
532 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
533
534 * ada-lang.c (ada_lookup_symbol): Correct comment.
535 (ada_evaluate_subexp): Change error message for
536 OP_FUNCALL case so as not to indicate an internal error.
537
538 2004-10-15 Joel Brobecker <brobecker@gnat.com>
539
540 Committed by Paul Hilfinger.
541 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
542 type sizes in XVE/XVU types, and emit a warning when that happens,
543 instead of rounding up the size of the resulting type.
544 Some minor reformatting.
545 (ada_is_aligner_type): Do not consider a type as an aligner type
546 if there is a corresponding XVS type as well.
547 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
548 have several levels of pointer indirection to the array.
549
550 2004-10-15 Jerome Guitton <guitton@gnat.com>
551
552 Committed by Paul Hilfinger.
553 * ada-lang.c (check_size): New function.
554 (coerce_unspec_val_to_type): call check_size to make sure
555 that the object size is reasonable.
556 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
557 Implements the case when we get a reference when we evaluate
558 the expression of one of the bounds of the slice.
559 (ada_value_struct_elt): when a packed array field is
560 a reference, use ada_coerce_ref to dereference it; use
561 ada_value_ind only if it is a pointer.
562
563 2004-10-15 Joel Brobecker <brobecker@gnat.com>
564
565 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
566 a bit to avoid the necessity of an advance declaration. Remove
567 declaration.
568 (set_reg_offset): Move implemenation up.
569 (mips16_get_imm): Likewise.
570 (mips16_scan_prologue): Likewise.
571 (reset_saved_regs): Likewise.
572 (mips32_scan_prologue): Likewise.
573
574 2004-10-14 Joel Brobecker <brobecker@gnat.com>
575
576 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
577 Remove sp as a parameter, compute it internally instead. Move
578 prologue scanning limit from heuristic_proc_desc to here.
579 (mips16_scan_prologue): Likewise.
580 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
581 by call to mips16_scan_prologue.
582 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
583 by call to mips32_scan_prologue.
584 (heuristic_proc_desc): Remove code that's no longer necessary.
585 Update calls to mips16_scan_prologue and mips32_scan_prologue.
586 (mips_skip_prologue): Update calls to mips16_scan_prologue
587 and mips32_scan_prologue.
588
589 2004-10-14 Joel Brobecker <brobecker@gnat.com>
590
591 * mips-tdep.c (mips16_scan_prologue): Merge code from
592 mips16_skip_prologue. Now return the address of the first
593 instruction past the function prologue.
594 (mips16_skip_prologue): Remove, no longer necessary.
595 (mips_skip_prologue): Replace call to mips16_skip_prologue
596 by call to mips16_scan_prologue.
597
598 2004-10-14 Joel Brobecker <brobecker@gnat.com>
599
600 * mips-tdep.c (mips32_scan_prologue): Merge code from
601 mips32_skip_prologue. Now return the address of the first
602 instruction past the function prologue.
603 (mips32_skip_prologue): Remove. No longer necessary.
604 (mips16_skip_prologue): Add parameter end_pc instead of
605 computing it.
606 (mips_skip_prologue): Compute the upper limit for the
607 prologue scanning. Update call to mips16_skip_prologue.
608 Replace call to mips32_skip_prologue by call to
609 mips32_scan_prologue.
610
611 2004-10-14 Mark Kettenis <kettenis@gnu.org>
612
613 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
614 NetBSD system call stubs that store %rp in the ERP slot of the
615 stack frame.
616
617 * source.c: Always define O_BINARY to 0 if not defined already.
618 (openp): Unconditionally use O_BINARY.
619
620 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
621 * event-top.c (gdb_readline2): Likewise.
622
623 2004-10-14 Orjan Friberg <orjanf@axis.com>
624
625 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
626 deprecated_add_core_fns which was removed by mistake.
627
628 2004-10-13 Kevin Buettner <kevinb@redhat.com>
629
630 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
631 references to deprecated_registers[] with equivalent code.
632
633 2004-10-13 Kevin Buettner <kevinb@redhat.com>
634
635 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
636 ``deprecated_registers'' with equivalent code. Use gdb_assert()
637 instead of explicit test and print statement.
638
639 2004-10-12 Mark Kettenis <kettenis@gnu.org>
640
641 * sparc-nat.c: Include "inf-ptrace.h".
642 (sparc_target): New function.
643 * sparc-nat.h: Update copyright year.
644 (sparc_target): New prototype.
645 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
646 (_initialize_sparcnbsd_nat): Construct and add target vector.
647 * sparc64nbsd-nat.c: Include "target.h".
648 (_initialize_sparc64nbsd_nat): Construct and add target vector.
649 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
650 Update dependencies.
651 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
652 inftarg.o, add inf-ptrace.o.
653 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
654 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
655 (NAT_FILE): Set to nm-bsd.h.
656 (LOADLIBES): New variable.
657 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
658 infarg.o, add inf-ptrace.o.
659 * config/sparc/nm-nbsdaout.h: Remove file.
660 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
661 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
662 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
663
664 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
665 "fopen-same.h". Update comment.
666
667 2004-10-11 Mark Kettenis <kettenis@gnu.org>
668
669 * i386gnu-nat.c: Include "gdb_string.h".
670 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
671 registers when the floating-point state isn't initialized.
672 * Makefile.in (i386gnu-nat.o): Update dependencies.
673
674 2004-10-11 David Anderson <davea@sgi.com>
675
676 * regcache.c (regcache_raw_read): Comment was missing "to".
677 Extraneous ' removed.
678 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
679 comment now describes use.
680
681 2004-10-11 Orjan Friberg <orjanf@axis.com>
682
683 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
684 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
685 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
686 (cris_sigtramp_frame_sniffer): New functions.
687 (cris_gdbarch_init): Hook in signal trampoline unwinder.
688 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
689 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
690 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
691 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
692 command.
693 (cris_version_update): Remove, replace with ...
694 (set_cris_version): New function.
695 (struct gdbarch_tdep, cris_mode, cris_mode_update)
696 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
697 (_initialize_cris_tdep): Remove CRIS mode command.
698 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
699 cris-fpless-backtrace command.
700 (cris_scan_prologue): Fix prologue scanning limit.
701 (cris_register_type): Update to reflect actual registers.
702 (cris_register_bytes_ok) Remove.
703 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
704 Remove set_gdbarch_deprecated_register_size,
705 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
706
707 2004-10-10 Andrew Cagney <cagney@gnu.org>
708
709 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
710 comment.
711
712 2004-10-10 Joel Brobecker <brobecker@gnat.com>
713
714 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
715
716 2004-10-10 Joel Brobecker <brobecker@gnat.com>
717
718 * mips-tdep.c (mips16_scan_prologue): Renames
719 mips16_heuristic_proc_desc. Update comment.
720 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
721 (heuristic_proc_desc): Update calls to the 2 functions above.
722
723 2004-10-10 Joel Brobecker <brobecker@gnat.com>
724
725 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
726 Update comments. Also immediately return empty cache when the start
727 address of our function could not be found.
728 (mips_insn32_frame_cache): Likewise.
729
730 2004-10-10 Joel Brobecker <brobecker@gnat.com>
731
732 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
733 (mips_insn16_frame_cache): Pass frame cache in call to
734 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
735 Remove code that became redundant as a consequence.
736 (mips32_heuristic_proc_desc): No longer compute a fake
737 procedure descriptor. Compute the full frame cache instead.
738 Some minor comment reformatting.
739
740 2004-10-10 Jim Blandy <jimb@redhat.com>
741
742 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
743 reader, tracing bytecode stuff): Remove self.
744
745 2004-10-10 Mark Kettenis <kettenis@gnu.org>
746
747 * sparc64-linux-tdep.c: Update copyright year. Don't include
748 "solib-svr4.h".
749 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
750 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
751 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
752
753 * sparc-linux-tdep.c: Update copyright year.
754 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
755 to struct frame_info *. Use safe_frame_unwind_memory instead of
756 deprecated_read_memory_nobpt.
757 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
758 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
759 changed signature of sparc_linux_sigtramp_start.
760 (sparc32_linux_pc_in_sigtramp): Remove function.
761 (sparc32_linux_sigtramp_p): New function.
762 (sparc32_linux_sigtramp_frame_sniffer): Use
763 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
764
765 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
766 Remove function.
767 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
768
769 * ada-lang.c (lim_warning): Re-implement as a varargs function.
770 (decode_packed_array_type, value_subscript_packed)
771 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
772 argument in call to lim_warning.
773
774 * configure.in: Really disable the TUI if an enhanced curses
775 library isn't found.
776 * configure: Regenerate.
777
778 2004-10-09 Mark Kettenis <kettenis@gnu.org>
779
780 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
781 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
782 * config/i386/nm-nbsdaout.h: Remove file.
783 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
784 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
785 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
786 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
787 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
788 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
789 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
790 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
791 (ldd, ld_un, ld_2): Remove defines.
792 * config/i386/nm-obsd.h: Likewise.
793
794 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
795
796 * ada-lex.l: Remove useless rule whose right-context clause
797 causes unreferenced static function warning for yyrealloc.
798 (ada_flex_use): Remove the artificial reference to yyrealloc.
799
800 2004-10-08 Andrew Cagney <cagney@gnu.org>
801
802 * target.h (struct target_ops): Rename to_xfer_memory to
803 deprecated_xfer_memory.
804 * target.c: Update.
805 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
806 * wince.c: Update.
807 * win32-nat.c: Update.
808 * v850ice.c: Update.
809 * uw-thread.c: Update.
810 * thread-db.c: Update.
811 * sol-thread.c: Update.
812 * remote.c: Update.
813 * remote-vx.c: Update.
814 * remote-st.c: Update.
815 * remote-sim.c: Update.
816 * remote-sds.c: Update.
817 * remote-rdp.c: Update.
818 * remote-rdi.c: Update.
819 * remote-mips.c: Update.
820 * remote-m32r-sdi.c: Update.
821 * remote-e7000.c: Update.
822 * procfs.c: Update.
823 * ppc-bdm.c: Update.
824 * nto-procfs.c: Update.
825 * monitor.c: Update.
826 * linux-nat.c: Update.
827 * inftarg.c: Update.
828 * hpux-thread.c: Update.
829 * go32-nat.c: Update.
830 * gnu-nat.c: Update.
831 * exec.c: Update.
832 * corelow.c: Update.
833 * bsd-kvm.c: Update.
834 * aix-thread.c: Update.
835
836 2004-10-08 Andrew Cagney <cagney@gnu.org>
837
838 * target.c (debug_target): Move to near start of file.
839 (target_stopped_data_address_p): Re-org logic, add casts.
840
841 2004-10-02 Mark Kettenis <kettenis@gnu.org>
842
843 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
844 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
845 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
846 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
847 New defines.
848
849 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
850
851 * target.h (to_stopped_data_address): Change prototype to
852 take a CORE_ADDR pointer and return an int.
853 * target.c (update_current_target): Change to_stopped_data_address
854 to match new prototype.
855 (debug_to_stopped_data_address): Change appropriately.
856 * breakpoint.c (bpstat_stop_status): Change call to
857 target_stopped_data_address to use new prototype.
858 * frv-tdep.c (frv_have_stopped_data_address): New function.
859 (frv_stopped_data_address): Change to new prototype and
860 functionality.
861 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
862 prototype and functionality.
863 (ia64_stopped_by_watchpoint): New function.
864 * i386-nat.c (i386_stopped_data_address): Change to new
865 prototype and functionality.
866 (i386_stopped_by_watchpoint): New function.
867 * remote.c (remote_stopped_data_address): Change to new prototype
868 and functionality.
869 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
870 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
871 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
872 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
873 new i386_stopped_by_watchpoint function.
874 (i386_stopped_by_watchpoint): New prototype.
875 (i386_stoppped_data_address): Change to new prototype.
876 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
877 new ia64_stopped_by_watchpoint function.
878 (ia64_stopped_by_watchpoint): New prototype.
879 (ia64_stopped_data_address): Ditto.
880
881 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
882
883 * ada-typeprint.c (ada_print_type): Use int_string for printing
884 modulus of modular type.
885 * ada-lang.h (ada_modulus): Change return type to unsigned.
886 * ada-lang.c (ada_language_arch_info): Correct type of
887 string_char_type.
888 (ada_modulus): Return unsigned result.
889 (ada_lookup_symbol): Remove user disambiguation and modify comment
890 accordingly.
891
892 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
893
894 Committed by Paul Hilfinger.
895 * ada-lang.c (decode_packed_array): On big-endian targets,
896 left-justify the value if it comes with a modular type.
897
898 2004-10-08 Joel Brobecker <brobecker@gnat.com>
899
900 Committed by Paul Hilfinger.
901 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
902 (is_name_suffix): Add support for "___JM" suffixes.
903 (ada_check_typedef): Renames ada_completed_type.
904 Update all users of CHECK_TYPEDEF, check_typedef, and
905 ada_complete_type to call ada_check_typedef.
906 * ada-typeprint.c: Likewise.
907 * ada-valprint.c: Likewise.
908
909 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
910
911 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
912
913 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
914
915 * MAINTAINERS: Update e-mail address.
916
917 2004-10-07 Daniel Jacobowitz <dan@debian.org>
918
919 From Maciej W. Rozycki <macro@mips.com>:
920 * mips-tdep.c (mips32_next_pc): Check the register's contents,
921 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
922
923 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
924
925 * m32r-tdep.c (decode_prologue): Support functions written
926 in assembler language. Recognize trap instructions as the
927 end of prologue.
928 (m32r_frame_unwind_cache): Ditto.
929 (m32r_skip_prologue): Extend search limit. Quit analyzing
930 prologue if pc's location is not readable.
931
932 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
933
934 * Makefile.in (.l.c): Do conversions of names of alloc and free
935 functions that are done for .y.c files, plus special one
936 for yy_flex_realloc. Also, correct missing-file tests here.
937 * ada-lex.l (malloc, free): Remove macros.
938 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
939 xrealloc.
940 (ada_flex_use): Dummy definition to remove warnings about unused
941 functions.
942 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
943 to suppress warning.
944
945 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
946
947 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
948 RETURN_VALUE.
949 (sh_return_value_fpu): Ditto for CPUs with FPU.
950 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
951 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
952 Install sh_return_value_nofpu resp. sh_return_value_fpu as
953 RETURN_VALUE functions.
954
955 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
956
957 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
958 (sh_pseudo_register_write): Ditto.
959
960 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
961
962 * sh-tdep.c (IS_MACL_STS): New define.
963 (IS_MOVI20): Ditto.
964 (IS_MACL_LDS): Ditto.
965 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
966 instructions in prologue.
967 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
968 instructions in epilogue.
969
970 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
971
972 * sh-tdep.c (SH_NUM_REGS): Define as 67.
973 (sh_sh_register_name): Add eight empty register names.
974 (sh_sh3_register_name): Ditto.
975 (sh_sh3e_register_name): Ditto.
976 (sh_sh2e_register_name): Ditto.
977 (sh_sh2a_register_name): New function, defining SH2A register set.
978 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
979 in nofpu case.
980 (sh_sh_dsp_register_name): Add eight empty register names.
981 (sh_sh3_dsp_register_name): Ditto.
982 (sh_sh4_register_name): Ditto.
983 (sh_sh4_nofpu_register_name): Ditto.
984 (sh_sh4al_dsp_register_name): Ditto.
985 (sh2a_show_regs): New function.
986 (sh2a_nofpu_show_regs): New function.
987 (sh_sh2a_register_type): New function.
988 (do_bank_register_info): New function.
989 (sh_print_pseudo_register): Call do_bank_register_info.
990 Call sh_print_pseudo_register for valid "bank" register.
991 (sh_sh2a_register_sim_regno): New function.
992 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
993 Increment pseudo register count by one for all sh variants with
994 pseudo registers to accomodate pseudo bank register.
995 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
996 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
997 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
998 Increment pseudo register numbers.
999
1000 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1001
1002 * dwarf2read.c (read_subroutine_type): Call make_function_type
1003 instead of lookup_function_type.
1004
1005 2004-10-05 Jim Blandy <jimb@redhat.com>
1006
1007 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1008 (Previous change missed some uses.)
1009
1010 2004-10-05 Andrew Cagney <cagney@gnu.org>
1011
1012 * target.h (deprecated_child_ops): Rename child_ops.
1013 * wince.c: Update copyright. Rename child_ops.
1014 * win32-nat.c: Rename child_ops.
1015 * target.c: Rename child_ops.
1016 * rs6000-nat.c: Rename child_ops.
1017 * linux-nat.c: Rename child_ops.
1018 * infttrace.c: Rename child_ops.
1019 * inftarg.c: Rename child_ops.
1020 * infptrace.c: Rename child_ops.
1021 * hppah-nat.c: Update copyright. Rename child_ops.
1022 * hpux-thread.c: Update copyright. Rename child_ops.
1023
1024 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1025
1026 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1027
1028 2004-10-05 Andrew Cagney <cagney@gnu.org>
1029
1030 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1031
1032 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1033
1034 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1035 (die_ref_table): Remove.
1036 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1037 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1038 the usage of this type.
1039 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1040 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1041 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1042 (dwarf2_create_include_psymtab): Update comment.
1043 (find_partial_die): Remove third argument. Remove unreachable call
1044 to error ().
1045 (dwarf2_find_containing_comp_unit): Update comments. Change one
1046 assertion to an error. Remove an unreachable error.
1047 (dwarf2_find_comp_unit): Update comments.
1048 (type_at_offset): Remove dead code.
1049 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1050 (store_in_ref_table): Add CU argument.
1051 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1052 inter-compilation-unit references.
1053 (load_full_comp_unit, process_full_comp_unit): New functions, based
1054 on psymtab_to_symtab_1.
1055 (psymtab_to_symtab_1): Use them.
1056 (dwarf2_add_dependence): New function.
1057 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1058 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1059 (partial_die_parent_scope, guess_structure_name): Update for changes
1060 to find_partial_die.
1061 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1062 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1063 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1064 (read_die_and_children): Update call to store_in_ref_table.
1065 (do_free_die_list_cleanup): Remove.
1066 (fixup_partial_die): Update for changes to find_partial_die.
1067 (read_full_die): Handle queueing absolute references.
1068 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1069 (dwarf2_attr, die_specification, die_type)
1070 (die_containing_type, dwarf2_extension): Update calls to
1071 follow_die_ref.
1072 (dump_die): Update DW_FORM_ref* handling.
1073 (dwarf2_get_ref_die_offset): Likewise.
1074 (free_one_comp_unit): Release the dies list.
1075 (dwarf2_mark_helper): New function.
1076 (dwarf2_mark): Use it.
1077
1078 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1079
1080 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1081 when writing to memory.
1082
1083 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1084
1085 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1086 (m32r_extract_struct_value_address): Delete function.
1087 (m32r_return_value): New function.
1088 (m32r_gdbarch_init): Instead of store_return_value,
1089 extract_return_value, deprecated_extract_struct_value_address
1090 and deprecated_use_struct_convention, set return_value.
1091
1092 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1093
1094 * dwarf2read.c (read_subrange_type): Add comment for variable
1095 sized arrays.
1096
1097 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1098
1099 * Makefile.in (.l.c): Modify rule for compatibility with recent
1100 versions of flex, and remove most command-line options.
1101 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1102 options.
1103
1104 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1105
1106 Turn on initial Ada support (mainly expression evaluation).
1107
1108 * Makefile.in (SFILES): Remove ada-tasks.c.
1109 (HFILES_NO_SRCDIR): Add ada-lang.h.
1110 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1111 (YYOBJ): Add ada-exp.o.
1112 (rule .l.c): Generalize to not mention ada.
1113 * symtab.c: Include ada-lang.h.
1114 (symbol_natural_name, symbol_demangled_name)
1115 (symbol_search_name): Add Ada case.
1116
1117 2004-10-01 Andrew Cagney <cagney@gnu.org>
1118
1119 * Makefile.in (COMMON_OBS): Add inf-child.o.
1120 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1121 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1122 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1123 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1124 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1125 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1126 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1127 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1128 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1129 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1130 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1131 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1132 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1133
1134 * target.c (xfer_using_stratum): Change return type to LONGEST.
1135 On each iteration offset, readbuf and writebuf.
1136 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1137 partial_length, and read/modify/write predicate, update comments.
1138 Pass buffer.word to ptrace write.
1139
1140 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1141
1142 * symfile.c (init_filename_language_table): Add extensions for
1143 Ada.
1144 * defs.h (enum language): Add language_ada.
1145 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1146 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1147 (add_symbols_from_enclosing_procs): Make a no-op for now.
1148 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1149 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1150 (find_line_in_linetable, find_next_line_in_linetable)
1151 (read_all_symtabs, is_plausible_func_for_line)
1152 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1153 (is_runtime_sym_defined, check_size): Remove declaration.
1154 (function_name_from_pc, ada_translate_error_message)
1155 (ada_lookup_minimal_symbol): Remove definition.
1156 (ada_add_block_symbols): Remove useless label.
1157 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1158 useless declaration.
1159 (ada_is_exception_sym): Likewise.
1160
1161 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1162
1163 Add m32r-linux support.
1164 * configure.tgt: Add m32r*-*-linux*.
1165 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1166 and m32r-linux-tdep.c.
1167 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1168 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1169 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1170 m32r-linux-tdep.c.
1171 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1172 config/m32r/linux.mh, config/m32r/linux.mt,
1173 config/m32r/nm-linux.h: New files.
1174
1175 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1176
1177 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1178 (mips32_fetch_instruction): Remove, unused.
1179
1180 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1181
1182 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1183 conditions that will always be true.
1184
1185 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1186
1187 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1188 (vaxbsd_fetch_inferior_registers): Rename from
1189 fetch_inferior_registers. Make static.
1190 (vaxbsd_store_inferior_registers): Rename from
1191 store_inferior_registers. Make static.
1192 (_initialize_vaxbsd_nat): Construct and add target vector.
1193 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1194 inftarg.o. Add inf-child.o and inf-ptrace.o.
1195 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1196 inftarg.o. Add inf-child.o and inf-ptrace.o.
1197 (NAT_FILE): Remove.
1198 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1199 inftarg.o. Add inf-child.o and inf-ptrace.o.
1200 (NAT_FILE): Remove.
1201 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1202
1203 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1204 (m88kbsd_fetch_inferior_registers): Rename from
1205 fetch_inferior_registers. Make static.
1206 (m88kbsd_store_inferior_registers): Rename from
1207 store_inferior_registers. Make static.
1208 (_initialize_m88kbsd_nat): New prototype and function.
1209 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1210 inftarg.o. Add inf-child.o and inf-ptrace.o.
1211 (NAT_FILE): Remove.
1212 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1213
1214 2004-09-30 Andrew Cagney <cagney@gnu.org>
1215
1216 * target.c (target_xfer_partial): New function.
1217 (target_read_memory_partial, target_write_memory_partial)
1218 (default_xfer_partial, target_read_partial, target_write_partial)
1219 (xfer_using_stratum): Use.
1220 (debug_to_xfer_partial): Delete function.
1221 (setup_target_debug): Do not override to_xfer_partial.
1222
1223 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1224
1225 * fork-child.c: Update copyright year. Fix coding style.
1226
1227 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1228
1229 * defs.h (msavestring, mstrsave): Remove prototypes.
1230 * utils.c (msavestring, mstrsave): Remove functions.
1231 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1232 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1233 of mstrsave.
1234 * source.c (find_and_open_source): Use xstrdup instead of
1235 mstrsave.
1236
1237 2004-09-30 Andrew Cagney <cagney@gnu.org>
1238
1239 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1240 (inf_ptrace_xfer_memory): Delete.
1241 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1242 (target_read_memory, target_write_memory): Use xfer_using_stratum
1243 when target_xfer_partial_p.
1244 (debug_target): Move to start of file.
1245 (target_read_memory_partial, target_write_memory_partial): Use
1246 to_xfer_partial when target_xfer_partial_p.
1247
1248 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1249 inf_ptrace_xfer_memory with equivalent code.
1250 * inftarg.c (child_xfer_partial): When performing a write, pass
1251 writebuf to child_xfer_memory.
1252
1253 * target.c (target_read_string): Use target_read_memory instead of
1254 target_xfer_memory.
1255
1256 2004-09-29 Andrew Cagney <cagney@gnu.org>
1257
1258 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1259 the address of status.
1260
1261 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1262 (kill_inferior): Inline ptrace_wait call.
1263 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1264 * inftarg.c (child_wait): Inline ptrace_wait call.
1265
1266 * target.h (struct target_ops): Delete field to_post_wait.
1267 (target_post_wait): Delete macro.
1268 (child_post_wait): Delete declaration.
1269 * target.c (update_current_target, update_current_target)
1270 (debug_to_post_wait, setup_target_debug): Delete functions and
1271 references.
1272 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1273 * inftarg.c (child_post_wait): Delete.
1274 (init_child_ops): Do not set to_post_wait.
1275 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1276 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1277 * inf-child.c (inf_child_post_wait): Delete.
1278 (inf_child_target): Do not set to_post_wait.
1279 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1280 (inf_ptrace_target): Do not set to_post_wait.
1281
1282 * wince.c (child_ops): Delete.
1283 * win32-nat.c (child_ops): Delete.
1284
1285 * inftarg.c (inftarg_set_find_memory_regions)
1286 (inftarg_set_make_corefile_notes): Delete functions.
1287 (_initialize_linux_nat): Inline calls.
1288
1289 * target.h (child_ops): Declare.
1290 * inftarg.c (child_ops): Move from here ...
1291 * target.c (child_ops): ... to here.
1292 * wince.c (child_ops): Delete extern declaration.
1293 * win32-nat.c (child_ops): Delete extern declaration.
1294 * linux-nat.c (child_ops): Delete extern declaration.
1295 * hpux-thread.c (child_ops): Delete extern declaration.
1296
1297 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1298
1299 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1300
1301 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1302
1303 * configure.in: Only set host_makefile_frag when building a native
1304 debugger.
1305 * configure: Regenerate.
1306
1307 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1308 for OpenBSD ELF.
1309
1310 2004-09-28 Andrew Cagney <cagney@gnu.org>
1311
1312 Problem identified by Paul Hilfinger.
1313 * Makefile.in (ada_lex_c): Define.
1314 (ada-lex.o): Delete rule.
1315
1316 * linux-proc.c: Delete file.
1317 * Makefile.in: Update.
1318 * config/sparc/linux64.mh (NATDEPFILES):
1319 * config/sparc/linux.mh (NATDEPFILES): Update.
1320 * config/s390/s390.mh (NATDEPFILES): Update.
1321 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1322 * config/powerpc/linux.mh (NATDEPFILES): Update.
1323 * config/pa/linux.mh (NATDEPFILES): Update.
1324 * config/mips/linux.mh (NATDEPFILES): Update.
1325 * config/m68k/linux.mh (NATDEPFILES): Update.
1326 * config/ia64/linux.mh (NATDEPFILES): Update.
1327 * config/i386/linux64.mh (NATDEPFILES): Update.
1328 * config/i386/linux.mh (NATDEPFILES): Update.
1329 * config/arm/linux.mh (NATDEPFILES): Update.
1330 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1331 * linux-nat.c: Update copyright. Include <sys/param.h>,
1332 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1333 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1334 (O_LARGEFILE): Possibly define.
1335 (_initialize_linux_nat, linux_proc_pending_signals)
1336 (add_line_to_sigset, linux_proc_xfer_memory)
1337 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1338 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1339 (struct linux_corefile_thread_data)
1340 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1341 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1342
1343 2004-09-16 Andrew Cagney <cagney@gnu.org>
1344
1345 * lin-lwp.c: Delete file.
1346 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1347 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1348 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1349 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1350 (linux_nat_attach, detach_callback, linux_nat_detach)
1351 (resume_callback, resume_clear_callback, linux_nat_resume)
1352 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1353 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1354 (status_callback, running_callback, count_events_callback)
1355 (select_singlestep_lwp_callback, select_event_lwp_callback)
1356 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1357 (child_wait, stop_and_resume_callback, linux_nat_wait)
1358 (kill_callback, kill_wait_callback, linux_nat_kill)
1359 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1360 (linux_nat_xfer_memory, linux_nat_thread_alive)
1361 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1362 (_initialize_linux_nat): New functions.
1363 * Makefile.in: Update all dependencies.
1364 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1365 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1366 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1367 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1368 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1369 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1370 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1371 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1372 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1373 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1374 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1375 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1376 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1377
1378 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1379
1380 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1381 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1382
1383 * configure.in: Don't comment out NATDEPFILES in the generated
1384 Makefile if NAT_FILE is unset.
1385 * configure: Regenerate.
1386
1387 2004-09-27 Andrew Cagney <cagney@gnu.org>
1388
1389 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1390 (insert_step_resume_breakpoint): Delete.
1391 (insert_step_resume_breakpoint_at_frame): New function.
1392 (insert_step_resume_breakpoint_at_sal): New function.
1393 (handle_inferior_event, step_into_function)
1394 (insert_step_resume_breakpoint): Simplify by using same.
1395
1396 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1397
1398 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1399
1400 * fbsd-proc.c: Remove file.
1401 * Makefile.in (fbsd-proc.o): Remove dependency.
1402
1403 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1404 code together.
1405
1406 * config/i386/nm-fbsd64.h: Remove file.
1407 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1408
1409 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1410
1411 * amd64-nat.h: Update copyright year.
1412 (amd64bsd_target): New prototype.
1413 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1414 (amd64bsd_target): New function.
1415 (amd64bsd_fetch_inferior_registers): Rename from
1416 fetch_inferior_registers. Make static.
1417 (amd64bsd_store_inferior_registers): Rename from
1418 store_inferior_registers. Make static.
1419 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1420 (_initialize_amd64fbsd_nat): Construct and add target vector.
1421 * amd64nbsd-nat.o: Include "target.h".
1422 (_initialize_amd64nbsd_nat): Construct and add target vector.
1423 * amd64obsd-nat.c: Include "target.h".
1424 (_initialize_amd64obsd_nat): Construct and add target vector.
1425 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1426 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1427 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1428 fbsd-nat.o.
1429 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1430 Remove infptrace.o and inftarg.o. Add inf-child.o and
1431 inf-ptrace.o.
1432 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1433 (amd64obsd-nat.o): Update dependencies.
1434
1435 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1436
1437 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1438 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1439 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1440 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1441 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1442
1443 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1444 Inline attach call.
1445 (inf_ptrace_detach): Inline detach call.
1446
1447 * configure.in: Check for waddstr instead of mvwaddstr when
1448 searching for curses library. Check for wborder.
1449 * configure, config.in: Regenerate.
1450 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1451 available.
1452
1453 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1454
1455 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1456
1457 Committed by Andrew Cagney.
1458 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1459 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1460 configuration.
1461 (fetch_register_using_p): Implement 'p' packet. Based on code by
1462 Fernando Nasser.
1463 (remote_fetch_registers): Call fetch_register_using_p.
1464 (init_all_packet_configs, show_remote_cmd)
1465 (_initialize_remote): Add p-packet.
1466
1467 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1468
1469 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1470 instead of call_ptrace. Call wait directly instead of
1471 ptrace_wait.
1472 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1473 (inf_ptrace_wait): Inline ptrace_wait call.
1474
1475 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1476
1477 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1478 rolled back instead.
1479
1480 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1481
1482 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1483 the new argument order.
1484
1485 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1486
1487 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1488 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1489 (struct gdbarch_tdep): Remove.
1490 (struct xstormy16_frame_cache): New frame cache structure.
1491 (xstormy16_register_byte, xstormy16_register_raw_size)
1492 (xstormy16_reg_virtual_type, xstormy16_register_type)
1493 (xstormy16_push_arguments, xstormy16_push_return_address)
1494 (xstormy16_pop_frame, xstormy16_store_struct_return)
1495 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1496 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1497 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1498 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1499 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1500 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1501 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1502 (xstormy16_extract_return_value, xstormy16_store_return_value):
1503 Regcachify. Drop useless struct convention handling.
1504 (xstormy16_register_type, xstormy16_return_value)
1505 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1506 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1507 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1508 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1509 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1510 (xstormy16_unwind_dummy_id) : New functions.
1511 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1512 of xstormy16_scan_prologue.
1513 (xstormy16_frame_unwind): New frame_unwind structure.
1514 (xstormy16_frame_base): New frame_base structure.
1515 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1516 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1517
1518 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1519
1520 * language.c (language_gdbarch_post_init): Fix off-by one error.
1521
1522 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1523
1524 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1525 (struct dwarf2_offset_and_type): New.
1526 (set_die_type, reset_die_and_siblings_types, get_die_type)
1527 (offset_and_type_hash, offset_and_type_eq): New functions.
1528 (read_structure_type, read_enumeration_type, read_array_type)
1529 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1530 (read_tag_reference_type, read_tag_const_type)
1531 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1532 (read_typedef, read_base_type, read_subrange_type): Use
1533 set_die_type.
1534
1535 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1536
1537 * Makefile.in (dwarf2read.o): Update dependencies.
1538 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1539 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1540 and read_in_chain.
1541 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1542 mark, and has_form_ref_addr.
1543 (struct dwarf2_per_cu_data): New.
1544 (dwarf2_max_cache_age): New.
1545 (dwarf2_build_psymtabs_hard): Free cached compilation units
1546 after loading. Create and manage the list of compilation units.
1547 Remove unnecessary NULL initialization. Fix indentation.
1548 (psymtab_to_symtab_1): Initialize all of CU.
1549 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1550 (find_partial_die): Use dwarf2_find_containing_comp_unit
1551 and load_comp_unit.
1552 (free_stack_comp_unit): Update comments. Clear the per-cu
1553 pointer. Handle aging.
1554 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1555 (age_cached_comp_units, free_one_cached_comp_unit)
1556 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1557 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1558 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1559 (show_dwarf2_cmd): New.
1560 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1561 and "maint show dwarf2 max-cache-age".
1562 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1563 externs.
1564 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1565 global.
1566
1567 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1568
1569 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1570 and dwarf2_cu struct pointer as arguments. Change function to use
1571 obstack if provided and use dwarf2_cu to determine language-specific
1572 separator.
1573 (partial_die_parent_scope): Change comment to include java. Use
1574 new version of typename_concat instead of obconcat.
1575 (partial_die_full_name): Use typename_concat.
1576 (read_namespace): Ditto.
1577 (read_enumeration_type): Use typename_concat instead of obconcat.
1578 (new_symbol): Ditto.
1579 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1580 (guess_structure_name): Ditto.
1581 (read_subroutine_type): Ditto.
1582 (read_structure_type): Ditto.
1583 (is_vtable_name): Add Java support.
1584 (determine_class_name): Switch to new typename_concat call.
1585 (determine_prefix): Switch to new typename_concat call.
1586 * jv-exp.y (FuncStart): New pattern.
1587 (MethodInvocation): Add support for simple function calls. Change
1588 warning message for other forms of inferior call currently not
1589 supported.
1590 * valarith.c (value_subscript): Treat an array with upper-bound
1591 of -1 as unknown size.
1592
1593 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1594
1595 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1596 (lookup_partial_symtab): Use symtab_to_fullname.
1597
1598 2004-09-19 Jim Blandy <jimb@redhat.com>
1599
1600 * minsyms.c (lookup_minimal_symbol): Doc fix.
1601
1602 2004-09-20 Andrew Cagney <cagney@gnu.org>
1603
1604 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1605 CHILD_RESUME.
1606 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1607 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1608 KILL_INFERIOR.
1609 * infptrace.c: Update.
1610
1611 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1612
1613 * symtab.c (output_source_filename): Mark first argument as const.
1614 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1615 for "info sources" output.
1616
1617 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1618
1619 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1620 <machine/vmparam.h>.
1621 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1622 (register_u_addr): Remove prototype.
1623
1624 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1625
1626 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1627 (i386bsd_fetch_inferior_registers): Rename from
1628 fetch_inferior_registers. Make static.
1629 (i386bsd_store_inferior_registers): Rename from
1630 store_inferior_registers. Make static.
1631 (i386bsd_target): New function.
1632 * i386bsd-nat.h: New file.
1633 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1634 "i386bsd-nat.h".
1635 (i386fbsd_resume): Rename from child_resume. Make static.
1636 (_initialize_i386fbsd_nat): Construct and add target vector.
1637 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1638 (_initialize_i386nbsd_nat): Construct and add target vector.
1639 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1640 Remove defines.
1641 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1642 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1643 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1644 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1645 (LOADLIBES): New variable.
1646 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1647 inf-ptrace.o. Remove inftarg.o.
1648 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1649 inf-ptrace.o. Remove inftarg.o.
1650 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1651 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1652 (LOADLIBES): New variable.
1653 * Makefile.in (i386bsd_nat_h): New variable.
1654 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1655 dependencies.
1656
1657 * sparc64nbsd-tdep.c: Include "objfiles.h".
1658 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1659 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1660 svr4_lp64_fetch_link_map_offsets.
1661 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1662 "nbsd-tdep.h".
1663 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1664 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1665 svr4_lp64_fetch_link_map_offsets.
1666 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1667 dependencies.
1668
1669 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1670 * fbsd-nat.h: New file.
1671 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1672 (fbsd_nat_h): New variable.
1673 (fbsd-nat.o): New dependency.
1674
1675 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1676 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1677
1678 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1679 comment.
1680
1681 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1682
1683 * ada-exp.y (type_int): New function to add layer of abstraction
1684 around references to expression types.
1685 (type_long): Ditto.
1686 (type_long_long): Ditto.
1687 (type_float): Ditto.
1688 (type_double): Ditto.
1689 (type_long_double): Ditto.
1690 (type_char): Ditto.
1691 (type_system_address): Ditto.
1692 (simple_exp): Use type_* functions in place of builtin_*
1693 variables.
1694 (exp): Ditto.
1695 (write_var_from_name): Ditto.
1696 (write_object_renaming): Ditto.
1697 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1698 declaration.
1699 (build_ada_types): Remove, replacing with...
1700 (ada_language_arch_info): New function to initialize primitive
1701 type vector in language_arch_info.
1702 (ada_array_length): Remove use of builtin_type_ada_int.
1703 (value_pos_atr): Ditto.
1704 (ada_evaluate_subexp): Ditto.
1705 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1706 builtin_type_ada_long_long, builtin_type_ada_char,
1707 builtin_type_ada_float, builtin_type_ada_double,
1708 builtin_type_ada_long_double, builtin_type_ada_natural,
1709 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1710 (ada_builtin_types): Remove.
1711 (ada_language_defn): Remove entries for la_builtin_type_vector and
1712 string_char_type and use ada_language_arch_info.
1713 (_initialize_ada_language): Do type-vector initialization along
1714 the lines of c-lang.c.
1715 (ada_create_fundamental_type): Break up line.
1716 (ada_dump_symtab): Remove unused function.
1717 (enum ada_primitive_types): Define.
1718 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1719 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1720 builtin_type_ada_float, builtin_type_ada_double,
1721 builtin_type_ada_long_double, builtin_type_ada_natural,
1722 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1723 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1724 (processInt): Ditto.
1725 (processReal): Ditto.
1726 (name_lookup): Ditto.
1727 * ada-typeprint.c (print_range): Use builtin_type_int, not
1728 builtin_type_ada_int.
1729
1730 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1731
1732 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1733
1734 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1735 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1736 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1737 * configure.in: Improve checks for curses library by checking for
1738 mvwaddstr instead of initscr. Drop HP curses in favour of
1739 standard curses on HP-UX.
1740 * configure: Regenerated.
1741
1742 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1743
1744 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1745 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1746 Minor formatting changes.
1747 (empty_array): Slight rewrite for formatting.
1748 (emit_char,parse,ada_language_defn,build_ada_types,
1749 ada_is_exception_sym, _initialize_ada_language): Move
1750 definitions around.
1751 (ada_dump_symtab): Remove unused definition.
1752 (ada_maybe_exception_partial_symbol): Remove unused definition.
1753
1754 2004-09-16 Andrew Cagney <cagney@gnu.org>
1755
1756 * inf-child.c: Include "gdb_string.h".
1757 (inf_child_core_file_to_sym_file): Delete.
1758 (inf_child_target): Set to_fetch_registers and to_store_registers.
1759 * inf-ptrace.c: Include "gdb_string.h".
1760 * Makefile.in: Update all dependencies.
1761
1762 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1763 problem.
1764
1765 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1766
1767 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1768 call to heuristic_proc_desc. Remove code that became redundant
1769 as a consequence.
1770 (read_next_frame_reg): Remove special case for SP_REGNUM.
1771 (set_reg_offset): Fix small typo.
1772 (reset_saved_regs): New procedure.
1773 (mips32_heuristic_proc_desc): No longer compute a fake
1774 procedure descriptor. Compute the full frame cache instead.
1775 Some minor comment reformatting.
1776
1777 2004-09-14 Andrew Cagney <cagney@gnu.org>
1778
1779 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1780 maintainer.
1781
1782 * thread-db.c (thread_db_new_objfile): Assume that there is a
1783 child process.
1784
1785 2004-09-13 Jim Blandy <jimb@redhat.com>
1786
1787 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1788 so that its storage isn't referenced after its lifetime ends.
1789
1790 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1791 and never assigned to. Delete it, and the 'if (use_buffer)'
1792 clauses. Delete 'raw_buffer', since it is now unused.
1793
1794 2004-09-13 Andrew Cagney <cagney@gnu.org>
1795
1796 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1797 * configure: Re-generate.
1798 * nlm/Makefile.in (TAGS): Update.
1799 * Makefile.in (TAGS): Update.
1800 * config/vax/nbsd.mt (TM_FILE): Update.
1801 * config/sparc/vxworks.mt (TM_FILE): Update.
1802 * config/sparc/sol2.mt (TM_FILE): Update.
1803 * config/sparc/sol2-64.mt (TM_FILE): Update.
1804 * config/sparc/obsd64.mt (TM_FILE): Update.
1805 * config/sparc/obsd.mt (TM_FILE): Update.
1806 * config/sparc/nbsd64.mt (TM_FILE): Update.
1807 * config/sparc/nbsd.mt (TM_FILE): Update.
1808 * config/sparc/linux64.mt (TM_FILE): Update.
1809 * config/sparc/linux.mt (TM_FILE): Update.
1810 * config/sparc/fbsd.mt (TM_FILE): Update.
1811 * config/sh/wince.mt (TM_FILE): Update.
1812 * config/sh/nbsd.mt (TM_FILE): Update.
1813 * config/sh/linux.mt (TM_FILE): Update.
1814 * config/sh/embed.mt (TM_FILE): Update.
1815 * config/s390/s390.mt (TM_FILE): Update.
1816 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1817 * config/rs6000/rs6000.mt (TM_FILE): Update.
1818 * config/rs6000/aix4.mt (TM_FILE): Update.
1819 * config/powerpc/vxworks.mt (TM_FILE): Update.
1820 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1821 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1822 * config/powerpc/obsd.mt (TM_FILE): Update.
1823 * config/powerpc/nbsd.mt (TM_FILE): Update.
1824 * config/powerpc/linux.mt (TM_FILE): Update.
1825 * config/powerpc/aix.mt (TM_FILE): Update.
1826 * config/pa/obsd.mt (TM_FILE): Update.
1827 * config/pa/linux.mt (TM_FILE): Update.
1828 * config/pa/hppahpux.mt (TM_FILE): Update.
1829 * config/pa/hppa64.mt (TM_FILE): Update.
1830 * config/pa/hppa.mt (TM_FILE): Update.
1831 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1832 * config/mips/wince.mt (TM_FILE): Update.
1833 * config/mips/vxmips.mt (TM_FILE): Update.
1834 * config/mips/nbsd.mt (TM_FILE): Update.
1835 * config/mips/linux.mt (TM_FILE): Update.
1836 * config/mips/irix6.mt (TM_FILE): Update.
1837 * config/mips/irix5.mt (TM_FILE): Update.
1838 * config/mips/embed.mt (TM_FILE): Update.
1839 * config/m68k/vxworks68.mt (TM_FILE): Update.
1840 * config/m68k/st2000.mt (TM_FILE): Update.
1841 * config/m68k/os68k.mt (TM_FILE): Update.
1842 * config/m68k/obsd.mt (TM_FILE): Update.
1843 * config/m68k/nbsd.mt (TM_FILE): Update.
1844 * config/m68k/monitor.mt (TM_FILE): Update.
1845 * config/m68k/linux.mt (TM_FILE): Update.
1846 * config/m68k/cisco.mt (TM_FILE): Update.
1847 * config/ia64/linux.mt (TM_FILE): Update.
1848 * config/ia64/aix.mt (TM_FILE): Update.
1849 * config/ia64/ia64.mt (TM_FILE): Update.
1850 * config/i386/vxworks.mt (TM_FILE): Update.
1851 * config/i386/obsd64.mt (TM_FILE): Update.
1852 * config/i386/obsd.mt (TM_FILE): Update.
1853 * config/i386/nto.mt (TM_FILE): Update.
1854 * config/i386/nbsd64.mt (TM_FILE): Update.
1855 * config/i386/nbsd.mt (TM_FILE): Update.
1856 * config/i386/linux64.mt (TM_FILE): Update.
1857 * config/i386/linux.mt (TM_FILE): Update.
1858 * config/i386/i386sol2.mt (TM_FILE): Update.
1859 * config/i386/i386lynx.mt (TM_FILE): Update.
1860 * config/i386/fbsd64.mt (TM_FILE): Update.
1861 * config/i386/fbsd.mt (TM_FILE): Update.
1862 * config/i386/cygwin.mt (TM_FILE): Update.
1863 * config/h8300/h8300.mt (TM_FILE): Update.
1864 * config/frv/frv.mt (TM_FILE): Update.
1865 * config/cris/cris.mt (TM_FILE): Update.
1866 * config/arm/wince.mt (TM_FILE): Update.
1867 * config/arm/nbsd.mt (TM_FILE): Update.
1868 * config/arm/linux.mt (TM_FILE): Update.
1869 * config/arm/embed.mt (TM_FILE): Update.
1870 * config/alpha/nbsd.mt (TM_FILE): Update.
1871 * config/alpha/fbsd.mt (TM_FILE): Update.
1872 * config/alpha/alpha.mt (TM_FILE): Update.
1873 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1874 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1875
1876 Eliminate event_loop_p, always has the value 1.
1877 * defs.h (event_loop_p): Delete macro.
1878 * breakpoint.c (until_break_command): Simplify.
1879 * utils.c (prompt_for_continue): Simplify.
1880 * tracepoint.c (read_actions): Simplify.
1881 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1882 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1883 (set_prompt, init_main): Simplify.
1884 (init_signals, disconnect): Delete, unused.
1885 * remote.c (remote_async_resume)
1886 (extended_remote_async_create_inferior): Simplify.
1887 * mi/mi-interp.c (mi_input): Delete, unused.
1888 (mi_interpreter_resume, mi_command_loop): Simplify.
1889 * interps.c (current_interp_command_loop): Simplify.
1890 * infrun.c (proceed): Simplify.
1891 * infcmd.c (run_command, continue_command, step_1, jump_command)
1892 (until_command, advance_command, finish_command)
1893 (interrupt_target_command): Simplify.
1894 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1895
1896 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1897 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1898 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1899 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1900 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1901 * mips-tdep.c (mips_dump_tdep): Do not print same.
1902
1903 2004-09-12 Andrew Cagney <cagney@gnu.org>
1904
1905 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1906 const.
1907 * Makefile.in (valprint.o): Delete explict rule.
1908
1909 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1910 reported by Dave Anderson.
1911
1912 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1913
1914 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1915
1916 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1917 Andrew Cagney <cagney@gnu.org>
1918
1919 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1920 (mi_cmd_data_list_register_values)
1921 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1922 the register number computation.
1923
1924 2004-09-12 Andrew Cagney <cagney@gnu.org>
1925
1926 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1927 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1928 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1929 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1930 target.
1931 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1932 inf-ptrace.o and inf-child.o.
1933 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1934 * Makefile.in: Update dependencies.
1935
1936 2004-09-11 Andrew Cagney <cagney@gnu.org>
1937
1938 * language.c (hex_string, hex_string_custom): Move from here ...
1939 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1940 (CELLSIZE): Increase to 50.
1941 * language.h (hex_string, hex_string_custom): Move from here ...
1942 * defs.h: ... to here.
1943 * Makefile.in: Update all dependencies.
1944
1945 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1946
1947 * language.c (local_hex_format_custom): Remove.
1948 (local_hex_string): Rename to hex_string, use C format, and move to
1949 utils.c
1950 (local_hex_string_custom): Rename to hex_string_custom and change
1951 interface. Now uses C format. Move to utils.c
1952 (local_octal_format_custom): Remove.
1953 (local_decimal_format_custom): Remove.
1954 (unknown_language_defn): Remove language-specific number
1955 formatting entries.
1956 (auto_language_defn): Ditto.
1957 (local_language_defn): Ditto.
1958 * language.h (struct language_format_info): Delete declaration.
1959 (struct language_defn): Remove language_format_info fields
1960 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1961 (local_binary_format): Remove macro.
1962 (local_binary_format_prefix): Remove macro.
1963 (local_binary_format_specifier): Remove macro.
1964 (local_binary_format_suffix): Remove macro.
1965 (local_octal_format): Remove macro.
1966 (local_octal_format_prefix): Remove macro.
1967 (local_octal_format_specifier): Remove macro.
1968 (local_octal_format_suffix): Remove macro.
1969 (local_decimal_format): Remove macro.
1970 (local_decimal_format_prefix): Remove macro.
1971 (local_decimal_format_specifier): Remove macro.
1972 (local_decimal_format_suffix): Remove macro.
1973 (local_hex_format): Remove macro.
1974 (local_hex_format_prefix): Remove macro.
1975 (local_hex_format_specifier): Remove macro.
1976 (local_hex_format_suffix): Remove macro.
1977 (local_decimal_format_custom): Remove.
1978 (local_octal_format_custom): Remove.
1979 (local_hex_format_custom): Remove.
1980 (local_hex_string): Rename to hex_string and move to defs.h.
1981 (local_hex_string_custom): Rename to hex_string_custom, change
1982 interface, and move to defs.h.
1983 * utils.c: (int_string): New function.
1984 (hex_string): New function (from language.c).
1985 (hex_string_custom): New function (from language.c).
1986 (octal2str): New function.
1987 (decimal2str): Add width parameter.
1988 (paddr_u): Use new decimal2str interface.
1989 (paddr_d): Ditto.
1990 * defs.h (hex_string): Declare.
1991 (hex_string_custom): Declare.
1992 (int_string): Declare.
1993 * printcmd.c (print_scalar_formatted): Remove localized binary
1994 formatting.
1995 * valprint.c (print_longest): Use int_string.
1996 (print_floating): Use C hex format.
1997 (print_hex_chars): Ditto.
1998 (print_binary_chars): Remove language-specific formatting.
1999 (print_octal_chars): Use C octal format.
2000 (print_decimal_chars): Delocalize format.
2001 (print_decimal): Remove.
2002 * ada-lang.c (ada_language_defn): Remove language-specific number
2003 formatting entries.
2004 * p-lang.c (pascal_language_defn): Ditto.
2005 * c-lang.c (c_language_defn): Ditto.
2006 (cplus_language_defn): Ditto.
2007 (asm_language_defn): Ditto.
2008 (minimal_language_defn): Ditto.
2009 * f-lang.c (f_language_defn): Ditto.
2010 * jv-lang.c (java_language_defn): Ditto.
2011 * m2-lang.c (m2_language_defn): Ditto.
2012 * scm-lang.c (scm_language_defn): Ditto.
2013 * objc-lang.c (objc_language_defn): Ditto.
2014 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2015 new interface.
2016 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2017 * ui-out.c (ui_out_field_core_addr): Ditto.
2018 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2019 * exec.c (print_section_info): Ditto.
2020 * i387-tdep.c (print_i387_status_word): Ditto.
2021 (print_i387_control_word): Ditto.
2022 (i387_print_float_info): Ditto.
2023 * maint.c (maint_print_section_info): Ditto.
2024 * solib.c (info_sharedlibrary_command): Ditto.
2025 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2026 * symtab.c (print_msymbol_info): Ditto.
2027 * tracepoint.c (tracepoints_info): Ditto.
2028 * solib-frv.c (lm_base): Ditto.
2029 (frv_current_sos): Ditto.
2030 (enable_break2): Ditto.
2031 (enable_break): Ditto.
2032 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2033 (process_one_symbol): Ditto.
2034 * infcmd.c (program_info): Ditto.
2035 * mdebugread.c (parse_partial_symbols): Ditto.
2036 * symfile.c (add_symbol_file_command): Ditto.
2037 * cli/cli-cmds.c (edit_command): Ditto.
2038 (list_command): Ditto.
2039 * infcall.c (call_function_by_hand): Ditto.
2040 * remote-vx.c (vx_run_files_info): Ditto.
2041 (vx_wait): Ditto.
2042 (vx_attach): Ditto.
2043 (vx_detach): Ditto.
2044 (vx_kill): Ditto.
2045 * aix-thread.c (pdc_symbol_addrs): Ditto.
2046 (pdc_read_regs): Ditto.
2047 (pdc_write_regs): Ditto.
2048 (pdc_read_data): Ditto.
2049 (pdc_write_data): Ditto.
2050 * d10v-tdep.c (display_trace): Ditto.
2051 * rs6000-nat.c (find_toc_address): Ditto.
2052 * aix-thread.c: Don't include language.h.
2053 * buildsym.c: Ditto.
2054 * dbxread.c: Ditto.
2055 * mdebugread.c: Ditto.
2056 * rs6000-nat.c: Ditto.
2057 * buildsym.c (make_blockvector): Use renamed hex_string.
2058
2059 2004-09-10 Jason Molenda (jmolenda@apple.com)
2060
2061 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2062 chars after 'if' or 'while' commands in user-defined commands.
2063
2064 2004-09-08 Jim Blandy <jimb@redhat.com>
2065
2066 Fix bug reported and analyzed by Olivier Crete:
2067 * symfile.c (copy_section_addr_info): New function.
2068 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2069 original set of address arguments, instead of handwritten code
2070 that uses one length to allocate and a different length to
2071 initialize. Use make_cleanup_free_section_addr_info.
2072 * symfile.h (copy_section_addr_info): New declaration.
2073 * utils.c: #include "symfile.h".
2074 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2075 New functions.
2076 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2077 * Makefile.in (utils.o): Update dependencies.
2078
2079 2004-09-08 Andrew Cagney <cagney@gnu.org>
2080
2081 * thread-db.c (keep_thread_db): Delete.
2082 (thread_db_new_objfile, thread_db_create_inferior)
2083 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2084
2085 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2086
2087 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2088 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2089 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2090 (i386_frameless_signal_p): Remove prototype.
2091 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2092 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2093 I386_SSE_NUM_REGS.
2094 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2095 instead of FP0_REGNUM.
2096 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2097 of FP0_REGNUM and FPC_REGNUM.
2098
2099 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2100 (sunos_solib_create_inferior_hook): Don't call
2101 sunos_relocate_main_executable.
2102
2103 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2104 solib_svr4_fetch_link_map_offsets to
2105 svr4_ilp32_fetch_link_map_offsets.
2106 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2107 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2108 svr4_ilp32_fetch_link_map_offsets.
2109 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2110
2111 2004-09-07 Jim Blandy <jimb@redhat.com>
2112
2113 * frame.h (frame_register): Doc fix.
2114
2115 2004-09-07 Andrew Cagney <cagney@gnu.org>
2116
2117 * vx-share/wait.h: Delete #ifdef USG.
2118 * utils.c (request_quit): Ditto.
2119 * tui/tui.c (tui_reset): Ditto.
2120 * remote.c: Ditto.
2121 * remote-sds.c: Ditto.
2122 * remote-rdi.c: Ditto.
2123 * mdebugread.c: Ditto.
2124 * m68klinux-nat.c: Ditto.
2125 * infttrace.c: Ditto.
2126 * infptrace.c: Ditto.
2127 * i386v-nat.c: Ditto.
2128 * exec.c: Ditto.
2129 * dbxread.c: Ditto.
2130 * core-aout.c: Ditto.
2131
2132 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2133
2134 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2135 heuristic_proc_desc.
2136 (mips_insn32_frame_cache): Likewise.
2137
2138 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2139
2140 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2141 left behind by error.
2142
2143 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2144
2145 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2146 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2147
2148 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2149
2150 * config/rs6000/xm-aix4.h: Remove this file.
2151 * config/rs6000/aix4.mh (XM_FILE): Delete.
2152
2153 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2154
2155 * config/rs6000/xm-rs6000.h: Remove this file.
2156 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2157
2158 2004-09-03 Andrew Cagney <cagney@gnu.org>
2159
2160 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2161 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2162 only use.
2163
2164 * mips-tdep.c (temp_saved_regs): Delete.
2165 (set_reg_offset): Replace saved_regs parameter with this_cache.
2166 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2167 (mips32_heuristic_proc_desc): Add this_cache parameter.
2168 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2169 (after_prologue): Pass a NULL this_cache.
2170
2171 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2172 non-kernel trap prologues.
2173
2174 * mips-tdep.c (find_proc_desc): Delete function.
2175 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2176 simplify.
2177 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2178 mips_insn32_frame_cache.
2179
2180 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2181 Simplify as NEXT_FRAME is NULL.
2182 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2183
2184 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2185 local variable.
2186 (mips_skip_prologue): Update.
2187
2188 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2189 "cur_frame" parameter.
2190 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2191 (mips_insn32_frame_cache, find_proc_desc): Update
2192
2193 * config/vax/nm-obsd.h: Delete file.
2194 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2195 * config/vax/nm-nbsd.h: Delete file.
2196 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2197 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2198 * config/sh/nm-nbsd.h: Delete file.
2199 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2200 * config/rs6000/nm-rs6000ly.h: Delete file.
2201 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2202 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2203 * config/powerpc/nm-obsd.h: Delete file.
2204 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2205 * config/powerpc/nm-nbsd.h: Delete file.
2206 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2207 * config/pa/nm-obsd.h: Delete file.
2208 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2209 * config/mips/nm-nbsd.h: Delete file.
2210 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2211 * config/m88k/nm-obsd.h: Delete file.
2212 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2213 * config/m68k/nm-nbsd.h: Delete file.
2214 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2215 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2216 * config/i386/nm-nbsd.h: Delete file.
2217 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2218 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2219 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2220 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2221 * config/i386/nm-i386lynx.h: Delete file.
2222 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2223 * config/arm/nm-nbsd.h: Delete file.
2224 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2225 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2226
2227 * config/i386/tm-fbsd.h: Delete file.
2228 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2229 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2230
2231 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2232 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2233 * config/rs6000/aix4.mt (TM_FILE): Set to
2234 config/rs6000/tm-rs6000.h.
2235 * config/powerpc/tm-ppc-aix.h: Delete file.
2236 * config/powerpc/aix.mt (TM_FILE): Set to
2237 config/rs6000/tm-rs6000.h.
2238 * config/m68k/tm-linux.h: Delete file.
2239 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2240 * config/i386/tm-linux64.h: Delete file.
2241 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2242 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2243
2244 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2245 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2246 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2247 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2248 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2249 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2250 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2251 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2252 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2253
2254 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2255 gdb_host_cpu.
2256
2257 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2258
2259 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2260 Minor reformatting. Some code factoring.
2261
2262 2004-09-02 Andrew Cagney <cagney@gnu.org>
2263
2264 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2265 * config/vax/tm-nbsd.h: Delete file.
2266 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2267 * config/sparc/tm-vxworks.h: Delete file.
2268 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2269 * config/sparc/tm-nbsd.h: Delete file.
2270 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2271 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2272 * config/sparc/tm-linux.h: Delete file.
2273 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2274 * config/s390/tm-linux.h: Delete file.
2275 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2276 * config/pa/tm-bsd.h: Delete file.
2277 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2278 * config/m68k/tm-obsd.h: Delete file.
2279 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2280 * config/m68k/tm-nbsd.h: Delete file.
2281 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2282 * config/i386/tm-vxworks.h: Delete file.
2283 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2284 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2285 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2286 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2287 * config/i386/tm-nbsd.h: Delete file.
2288 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2289 * config/i386/tm-i386lynx.h: Delete file.
2290 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2291 * config/cris/tm-cris.h: Delete file.
2292
2293 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2294 * configure: Re-generate.
2295 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2296 * config/arm/tm-nbsd.h: Delete file.
2297
2298 * config/powerpc/tm-ppcle-sim.h: Delete.
2299 * config/powerpc/tm-ppcle-eabi.h: Delete.
2300 * config/powerpc/tm-nbsd.h: Delete.
2301 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2302 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2303 tm-ppcle-eabi.h.
2304
2305 * config/i386/nto.mh (NAT_FILE): Delete.
2306 * config/i386/nm-nto.h: Delete.
2307
2308 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2309 * config/m68k/tm-os68k.h: Ditto.
2310 * config/m68k/tm-monitor.h: Ditto.
2311 * config/m68k/tm-cisco.h: Ditto.
2312 * config/m68k/st2000.mt (TM_FILE): Delete.
2313 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2314 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2315 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2316 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2317
2318 * config/m68k/tm-st2000.h: Delete.
2319 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2320 * config/sparc/fbsd.mt (TM_FILE): Delete.
2321 * config/sparc/tm-fbsd.h: Delete.
2322
2323 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2324 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2325 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2326
2327 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2328 GDB_TM_FILE and GDB_XM_FILE.
2329 * gdbarch.c: Re-generate.
2330 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2331 quotes in macro definition.
2332 * configure.in: Re-generate.
2333
2334 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2335 validating architecture methods.
2336 * gdbarch.c: Re-generate.
2337
2338 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2339 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2340 GDB_MULTI_ARCH_PARTIAL.
2341 * gdbarch.h: Re-generate.
2342
2343 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2344 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2345 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2346 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2347 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2348 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2349 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2350 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2351 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2352 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2353 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2354 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2355
2356 2004-09-01 Andrew Cagney <cagney@gnu.org>
2357
2358 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2359 and main_func_highpc.
2360 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2361 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2362 * nlmread.c (nlm_symfile_read): Update.
2363
2364 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2365
2366 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2367 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2368 (find_proc_desc): Remove dead code.
2369
2370 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2371
2372 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2373
2374 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2375
2376 * observer.sh: Add struct so_list declaration.
2377 * Makefile.in: Add dependencies on observer.h for solib.c and
2378 breakpoint.c.
2379 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2380 function.
2381 (_initialize_breakpoint): Register
2382 disable_breakpoints_in_unloaded_shlib as an observer of the
2383 "solib unloaded" observation event.
2384 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2385 call decode_line_1 so unfound breakpoint errors are silent.
2386 * solib.c (update_solib_list): When a solib is discovered to have
2387 been unloaded by the program, notify all observers of the
2388 "solib unloaded" observation event.
2389
2390 2004-09-01 Andrew Cagney <cagney@gnu.org>
2391
2392 * frame.c: Include "objfiles.h".
2393 (inside_main_func): New function.
2394 (get_prev_frame): Use new inside_main_func.
2395 * Makefile.in (frame.o): Update dependencies.
2396 * defs.h (inside_main_func): Delete declaration.
2397 * blockframe.c (inside_main_func): Delete function.
2398
2399 2004-08-31 Jim Blandy <jimb@redhat.com>
2400
2401 * dwarf2read.c (is_vtable_name): New function, based on logic from
2402 read_structure_type, but passing the correct length to strncmp,
2403 and using 'sizeof' instead of 'strlen'.
2404 (read_structure_type): Call it.
2405
2406 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2407
2408 * config/powerpc/aix.mh: Add comment.
2409
2410 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2411
2412 * MAINTAINERS: Add self to Write-After-Approval.
2413
2414 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2415
2416 * MAINTAINERS: Add self to Write-After-Approval.
2417
2418 2004-08-30 Andrew Cagney <cagney@gnu.org>
2419
2420 Fix PR breakpoints/1757.
2421 * infrun.c (struct execution_control_state): Replace
2422 remove_breakpoints_on_following_step with
2423 step_after_step_resume_breakpoint.
2424 (init_execution_control_state): Update.
2425 (handle_inferior_event): For signals, when stepping off a
2426 breakpoint, set step_after_step_resume_breakpoint. When
2427 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2428 (keep_going): Delete code handling
2429 remove_breakpoints_on_following_step.
2430
2431 2004-08-29 David Lecomber <david@streamline-computing.com>
2432
2433 Fix PR gdb/648
2434 * language.h (enum array_ordering): New enum.
2435 * language.h (struct language_defn): New la_array_ordering
2436 attribute.
2437 * language.c (unknown_language_defn, auto_language_defn)
2438 (local_language_defn): Ditto.
2439 * ada-lang.c (ada_language_defn): Ditto.
2440 * c-lang.c (c_language_defn, cplus_language_defn)
2441 (asm_language_defn, minimal_language_defn): Ditto.
2442 * f-lang.c (f_language_defn): Ditto.
2443 * jv-lang.c (java_language_defn): Ditto.
2444 * m2-lang.c (f_language_defn): Ditto.
2445 * objc-lang.c (objc_language_defn): Ditto.
2446 * p-lang.c (pascal_language_defn): Ditto.
2447 * scm-lang.c (scm_language_defn): Ditto.
2448 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2449 oriented large to small in type structure.
2450 * dwarf2read.c (read_array_order): New function.
2451 (read_array_type): Use read_array_order to check row/column
2452 major ordering.
2453
2454 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2455
2456 * target.c (target_resize_to_sections): Check
2457 current_target.to_sections for an old value when updating.
2458
2459 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2460
2461 * procfs.c (dbx_link_bpt_addr): New static global variable.
2462 (dbx_link_shadow_contents): New static global variable.
2463 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2464 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2465 if we just hit it.
2466 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2467 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2468 from run to run.
2469 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2470 after the inferior has been forked.
2471 (remove_dbx_link_breakpoint): New function.
2472 (dbx_link_addr): New function.
2473 (insert_dbx_link_bpt_in_file): New function.
2474 (insert_dbx_link_bpt_in_region): New function.
2475 (insert_dbx_link_breakpoint): New function.
2476 (proc_trace_syscalls_1): New function, extracted from
2477 proc_trace_syscalls.
2478 (proc_trace_syscalls): Replace extract code by call to
2479 proc_trace_syscalls_1.
2480 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2481 is no longer valid.
2482
2483 2004-08-25 Jim Blandy <jimb@redhat.com>
2484
2485 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2486
2487 2004-08-25 Andrew Cagney <cagney@gnu.org>
2488
2489 * infrun.c (struct execution_control_state): Delete field
2490 "stepping_through_sigtramp".
2491 (init_execution_control_state): Do not set same.
2492 (context_switch): Do not pass same to save_infrun_state and
2493 load_infrun_state.
2494 * gdbthread.h (struct thread_info): Delete field
2495 stepping_through_sigtramp.
2496 (save_infrun_state, load_infrun_state): Delete parameter
2497 stepping_through_sigtramp.
2498 * thread.c (load_infrun_state, save_infrun_state): Update.
2499
2500 * infrun.c: Re-indent. Move expression operators to the beginning
2501 of the line. Remove long disabled #if 0 code.
2502
2503 2004-08-24 Andrew Cagney <cagney@gnu.org>
2504
2505 * doublest.h (floatformat_ieee_quad): Rename
2506 floatformat_ia64_quad.
2507 * doublest.c (floatformat_ieee_quad): Rename
2508 floatformat_ia64_quad.
2509 (_initialize_doublest): Update.
2510
2511 2004-08-24 Jim Blandy <jimb@redhat.com>
2512
2513 * dwarf2expr.h (struct dwarf_expr_context): New members
2514 'num_pieces' and 'pieces', for returning the result of an
2515 expression that uses DW_OP_piece.
2516 (struct dwarf_expr_piece): New struct type.
2517 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2518 pieces.
2519 (free_dwarf_expr_context): Free pieces, if any.
2520 (add_piece): New function.
2521 (execute_stack_op): Implement DW_OP_piece.
2522 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2523 expression is a list of pieces, print an error message.
2524 (dwarf2_loc_desc_needs_frame): If the expression yields
2525 pieces, and any piece is in a register, then we need a frame.
2526
2527 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2528 the stack until we've decided what sort of result the evaluation
2529 has produced. Use separate variables, with more specific names.
2530
2531 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2532
2533 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2534 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2535 (arm_netbsd_init_abi_common): Register them.
2536
2537 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2538
2539 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2540
2541 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2542 safe_frame_unwind_memory instead of target_read_memory.
2543
2544 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2545 Reorder includes.
2546 (fetch_register, store_register): Remove prototypes.
2547 (child_resume): Reorganize code and comments such that it is
2548 grouped a bit more logically.
2549 (attach): Explicitly compare errno against 0.
2550 (detach): Likewise. Use perror_with_name instead of
2551 print_sys_errmsg.
2552 * Makefile.in (infptrace.o): Update dependencies.
2553
2554 * ia64-linux-nat.c: Update copyright year.
2555 (fetch_debug_register, store_debug_register)
2556 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2557 PTRACE_TYPE_ARG3.
2558 * config/ia64/nm-linux.h: Update copyright year.
2559 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2560
2561 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2562 from CORE_ADDR to struct frame_info *. Use
2563 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2564 (amd64_linux_sigtramp_p): Adjust for changed signature of
2565 and64_linux_sigtramp_start
2566
2567 * gdb_ptrace.h: GNU/Linux.
2568
2569 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2570 Remove defines.
2571
2572 * infptrace.c: Include "gdb_assert.h".
2573 (PTRACE_XFER_TYPE): Remove define.
2574 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2575 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2576 Tweak comment.
2577 (fetch_inferior_registers, store_inferior_registers): Remove
2578 redundant culry braces. Tweak comment. s/regno/regnum.
2579 * Makefile.in (infptrace.o): Update dependencies.
2580
2581 * configure.in: Change test for return type of ptrace to default
2582 to `long' instead of `int'.
2583 * configure: Regenerate.
2584
2585 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2586
2587 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2588
2589 * configure.in: Check for ttrace function.
2590 * configure, config.in: Regenerate.
2591
2592 * gdb_ptrace.h: New file.
2593 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2594 <sys/ptrace.h>.
2595 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2596 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2597 (attach): Don't define PT_ATTACH.
2598 (detach): Don't define PT_DETACH.
2599 * Makefile.in (gdb_ptrace_h): New variable.
2600 (infptrace.o): Update dependencies.
2601
2602 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2603
2604 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2605 instead of `int' if not already defined.
2606 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2607 PTRACE_TYPE_ARG3.
2608 * infptrace.c (call_ptrace): Revert change that replaced
2609 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2610
2611 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2612
2613 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2614 Remove defines.
2615
2616 * linux-nat.c (kill_inferior): Add missing third and fourth
2617 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2618
2619 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2620 PTRACE_TYPE_RET.
2621
2622 * proc-why.c (proc_prettyfprint_why): Fix format string.
2623
2624 * solib-osf.c (osf_current_sos): Remove unsused label.
2625
2626 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2627 curses headers.
2628 * configure, config.in: Regenerate.
2629 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2630 <ncurses/ncurses.h>.
2631
2632 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2633 * config/nm-nbsd.h: Update copyright year.
2634 (PTRACE_ARG3_TYPE): Remove define.
2635
2636 * sparc-nat.c (fetch_inferior_registers)
2637 (store_inferior_registers, sparc_xfer_wcookie):
2638 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2639
2640 * alphabsd-nat.c (fetch_inferior_registers):
2641 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2642 PTRACE_TYPE_ARG3.
2643 * amd64bsd-nat.c (fetch_inferior_registers)
2644 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2645 PTRACE_TYPE_ARG3.
2646 * armnbsd-nat.c: Update copyright year.
2647 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2648 (store_register, store_regs, store_fp_register, store_fp_regs):
2649 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2650 * hppabsd-nat.c (fetch_inferior_registers)
2651 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2652 PTRACE_TYPE_ARG3.
2653 * i386bsd-nat.c (fetch_inferior_registers)
2654 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2655 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2656 * m68kbsd-nat.c (fetch_inferior_registers)
2657 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2658 PTRACE_TYPE_ARG3.
2659 * m88kbsd-nat.c (fetch_inferior_registers)
2660 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2661 PTRACE_TYPE_ARG3.
2662 * mipsnbsd-nat.c: Update copyright year.
2663 (fetch_inferior_registers, store_inferior_registers):
2664 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2665 * ns32knbsd-nat.c: Update copyright year.
2666 (fetch_inferior_registers, store_inferior_registers):
2667 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2668 * ppcnbsd-nat.c (fetch_inferior_registers):
2669 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2670 PTRACE_TYPE_ARG3.
2671 * ppcobsd-nat.c (fetch_inferior_registers):
2672 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2673 PTRACE_TYPE_ARG3.
2674 * shnbsd-nat.c: Update copyright year.
2675 (fetch_inferior_registers, store_inferior_registers):
2676 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2677 * vaxbsd-nat.c (fetch_inferior_registers)
2678 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2679 PTRACE_TYPE_ARG3.
2680
2681 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2682 PTRACE_TYPE_ARG3.
2683 * infptrace.c (call_ptrace, child_resume, attach, detach)
2684 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2685 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2686 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2687 PTRACE_TYPE_ARG3.
2688
2689 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2690
2691 * defs.h: Remove out-of-date comment.
2692 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2693 [!GETENV_PROVIDED] (getenv): Remove prototype.
2694
2695 * standalone.c: Remove file.
2696 * Makefile.in (standalone.o): Remove dependency.
2697
2698 * i386-linux-nat.c (dummy_sse_values): Remove function and
2699 prototype.
2700 (i386_linux_dr_get): Fix typo in comment.
2701 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2702
2703 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2704
2705 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2706 from declaration.
2707 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2708 from definition.
2709
2710 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2711
2712 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2713 parenthesis in definition.
2714 * configure: Regenerated.
2715
2716 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2717
2718 * PROBLEMS: Mention build/1411.
2719
2720 2004-08-09 Robert Millan <robertmh@gnu.org>
2721
2722 Committed by Nathanael Nerode.
2723 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2724 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2725
2726 2004-08-12 Andrew Cagney <cagney@gnu.org>
2727
2728 * NEWS: Mention fixes in GDB 6.2.1.
2729 * PROBLEMS: Remove mention of mips-irix.
2730
2731 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2732
2733 * config/powerpc/xm-aix.h: Delete.
2734 * config/powerpc/aix.mh (MH_FILE): Remove.
2735 * config/powerpc/aix432.mh (MH_FILE): Remove.
2736
2737 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2738
2739 * config/powerpc/aix.mh: Remove obsolete comment.
2740 * config/powerpc/aix432.mh: Likewise.
2741
2742 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2743
2744 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2745
2746 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2747
2748 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2749 this file is now empty.
2750 * config/xm-aix4.h: Remove, this file is no longer included
2751 anywhere.
2752
2753 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2754
2755 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2756 that file is now empty.
2757 (termdef): Remove prototype, function no longer used.
2758
2759 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2760
2761 * doc/gdbint.texinfo (Host Definition): Remove documentation
2762 for USE_O_NOCTTY, no longer used.
2763 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2764 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2765
2766 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2767
2768 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2769 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2770 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2771
2772 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2773
2774 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2775 instead of FIVE_ARG_PTRACE.
2776
2777 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2778 (new_tty): Use O_NOCTTY unconditionally.
2779
2780 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2781
2782 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2783 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2784 fflush on stdout.
2785
2786 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2787
2788 * xcoff_symfile_finish: Replace last call to xmfree by call
2789 to xfree.
2790
2791 2004-08-10 Andrew Cagney <cagney@gnu.org>
2792
2793 * main.c (captured_main): Delete call to init_malloc.
2794 * defs.h (init_malloc): Delete declaration.
2795 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2796 (init_malloc): Delete functions.
2797
2798 * defs.h (xmfree): Delete.
2799 * utils.c (xmfree): Delete function.
2800 (xfree): Inline calls to xmfree and mfree.
2801 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2802 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2803 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2804 * somread.c (som_symfile_finish): Ditto.
2805 * objfiles.c (allocate_objfile, free_objfile):
2806 * nlmread.c (nlm_symfile_finish): Ditto.
2807 * hpread.c (hpread_symfile_finish): Ditto.
2808 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2809 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2810 * coffread.c (coff_symfile_finish): Ditto.
2811
2812 * defs.h (xmcalloc): Delete declaration.
2813 * utils.c (xmcalloc): Delete.
2814 (xcalloc): Inline calls to xmcalloc and mcalloc.
2815 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2816 xcalloc and xfree.
2817 * symtab.c (create_demangled_names_hash): Ditto.
2818
2819 * defs.h (xmrealloc): Delete.
2820 * utils.c (xmrealloc): Delete.
2821 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2822 * symmisc.c (extend_psymbol_list): Use xrealloc.
2823 * source.c (find_source_lines): Ditto.
2824 * hpread.c (hpread_lookup_type): Ditto.
2825 * dbxread.c (add_bincl_to_list): Ditto.
2826
2827 * utils.c (xmmalloc): Delete.
2828 (xmalloc): Inline xmmalloc and mmalloc calls.
2829 (msavestring): Use xmalloc.
2830 * defs.h (xmmalloc): Delete declaration.
2831 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2832 xmmalloc.
2833 * symmisc.c (extend_psymbol_list): Ditto.
2834 * symfile.c (init_psymbol_list): Ditto.
2835 * source.c (find_source_lines): Ditto.
2836 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2837 * elfread.c (elf_symtab_read): Ditto.
2838 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2839 * coffread.c (coff_symfile_init): Ditto.
2840
2841 2004-08-10 David Carlton <carlton@bactrian.org>
2842
2843 * MAINTAINERS: Remove David Carlton from c++ testsuite
2844 maintainers.
2845
2846 2004-08-10 Jerome Guitton <guitton@gnat.com>
2847
2848 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2849 print a line feed before the prompt.
2850
2851 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2852
2853 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2854
2855 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2856
2857 General cleanup of the AIX xm include file:
2858 * config/xm-aix4.h (fd_set): Remove undefine.
2859 Remove include of <sys/select.h>.
2860 (HAVE_TERMIO): Remove define.
2861 (USG): Likewise.
2862 (NULL): Remove redefine.
2863 (alloca): Remove #pragma.
2864 (vfork): Remove define.
2865 (termdef): Remove.
2866 (SIGWINCH_HANDLER): Remove.
2867 (SIGWINCH_HANDLER_BODY): Remove.
2868
2869 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2870
2871 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2872 GDB_OSABI_OPENBSD_ELF.
2873
2874 2004-08-07 Robert Millan <robertmh@gnu.org>
2875
2876 * bsd-kvm.c: Check for nlist.h before including it.
2877
2878 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2879
2880 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2881 sigcontext' offset consistency checks for ancient BSD.
2882
2883 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2884
2885 * configure.in: Check for <sys/types.h>. Check return and
2886 argument types of ptrace.
2887 * configure, config.in: Regenerate.
2888
2889 2004-08-09 Jim Blandy <jimb@redhat.com>
2890
2891 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2892 rs6000_register_sim_regno): Doc fixes.
2893
2894 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2895
2896 * mips-tdep.c: Include "floatformat.h".
2897 (n32n64_floatformat_always_valid): New function.
2898 (floatformat_n32n64_long_double_big): New constant.
2899 (mips_gdbarch_init): Set size and format of long double
2900 for N32 and N64 ABIs.
2901 * Makefile.in (mips-tdep.o): Update dependencies.
2902
2903 2004-08-08 Andrew Cagney <cagney@gnu.org>
2904
2905 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2906 print. Improve script's error messages.
2907 * gdbarch.h: Re-generate.
2908
2909 * gdbarch.sh (pformat): New function.
2910 (float_format, double_format, long_double_format): List with bit
2911 members. Use pformat when printing.
2912 * gdbarch.c, gdbarch.h: Re-generate.
2913
2914 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2915
2916 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2917 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2918 (ppcnbsd_supply_pcb): New function.
2919 (_initialize_ppcnbsd_nat): New prototype and function.
2920 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2921 (LOADLIBES): New variable.
2922 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2923
2924 2004-08-08 Andrew Cagney <cagney@gnu.org>
2925
2926 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2927 (builtin_type_ieee_double, builtin_type_ia64_quad)
2928 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2929 BE/LE floating-point types.
2930 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2931 (builtin_type_ieee_double, builtin_type_ia64_quad)
2932 (builtin_type_ia64_spill): Declare.
2933 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2934 (floatformat_ieee_double, floatformat_arm_ext)
2935 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2936 of LE/BE floatformats.
2937 * doublest.h: (struct floatformat, floatformat_ieee_single)
2938 (floatformat_ieee_double, floatformat_arm_ext)
2939 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2940
2941 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2942
2943 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2944
2945 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2946 instead of regcache_raw_supply when storing the registers.
2947
2948 * i386gnu-nat.c: Update copyright year.
2949 (gnu_store_registers): Don't use deprecated_registers and
2950 deprecated_registers_valid. Use regcache_valid_p and
2951 regcache_raw_supply instead.
2952
2953 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2954 frame_pc_unwind.
2955
2956 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2957 variables. Incapitalized "process".
2958
2959 * configure.in: Add cursesX to the list of possible curses libs.
2960 Add cursesX.h to the list of possible curses headers.
2961 * configure, config.in: Regenerate.
2962
2963 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2964
2965 * configure.in: Test for struct lwp in <sys/lwp.h>.
2966 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2967 the offset of l_addr in struct lwp.
2968
2969 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2970
2971 * bsd-kvm.c: Include "gdbcore.h"
2972 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2973
2974 2004-08-07 Andrew Cagney <cagney@gnu.org>
2975
2976 * gdbtypes.c (build_flt, build_complex): New functions.
2977 (gdbtypes_post_init): Use.
2978
2979 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2980
2981 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2982 through to builtin_type_uint128.
2983
2984 * c-exp.y: Use builtin_type function to obtain builtin types.
2985
2986 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2987 builtin_uint128.
2988 * gdbtypes.c (gdbtypes_post_init): Update.
2989 (build_gdbtypes): Move initialization of builtin_type_int0
2990 through to builtin_type_uint128 from here ...
2991 (_initialize_gdbtypes): ... to here.
2992 * d10v-tdep.c (d10v_register_type): Update.
2993
2994 * doublest.c: Update copyright.
2995 (floatformat_from_length): Call error when floatformat is NULL.
2996 (extract_floating_by_length): Remove NULL fmt check.
2997 (store_floating_by_length): Ditto.
2998
2999 2004-08-07 Andrew Cagney <cagney@gnu.org>
3000
3001 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3002 that the register is valid.
3003
3004 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3005
3006 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3007 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3008 struct frame_info *. Use safe_frame_unwind_memory instead of
3009 deprecated_read_memory_nobpt.
3010 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3011 changed signature of i386_linux_sigtramp_start and
3012 i386_linux_rt_sigtramp_start.
3013
3014 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3015 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3016 instead of deprecated_read_memory_nobpt.
3017 (i386nbsd_sigtramp_p): Adjust for changed signature of
3018 i386nbsd_sigtramp_offset.
3019
3020 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3021 safe_frame_unwind_memory instead of target_read_memory.
3022
3023 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3024 !NO_SYS_FILE.
3025 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3026 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3027 (_initialize_kernel_u_addr): Remove prototype and function.
3028 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3029 !NO_SYS_FILE.
3030 * xcoffread.c: Likewise.
3031
3032 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3033
3034 * vax-nat.c: New file.
3035 * vaxbsd-nat.c: Tweak comment.
3036 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3037 vaxnbsd-tdep.c.
3038 (vax-nat.o): New dependency.
3039 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3040 (vax-*-ultrix2*): Remove.
3041 * config/vax/vax.mh: New file.
3042 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3043 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3044 (vax_register_u_addr): New prototype.
3045 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3046 * config/vax/vaxult2.mh: Remove file.
3047 * config/vax/vaxult.mh: Remove file.
3048 * config/vax/vaxbsd.mh: Remove file.
3049 * config/vax/vax.mt (TM_FILE): Remove.
3050 * config/vax/tm-vaxbsd.h: Remove file.
3051
3052 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3053
3054 * aix-thread.c (get_signaled_thread): New function.
3055 (iter_trap): Delete, no longer used.
3056 (iter_tid): New function.
3057 (pd_update): Find the thread that received the SIGTRAP signal
3058 by first locating the kernel thread, and then finding its
3059 associated thread.
3060
3061 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3062
3063 * lin-lwp.c (child_wait): Continue inferior after processing
3064 PTRACE_EVENT_CLONE event.
3065
3066 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3067
3068 * MAINTAINERS: Add self to Write-After-Approval.
3069
3070 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3071
3072 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3073 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3074
3075 2004-08-05 Andrew Cagney <cagney@gnu.org>
3076
3077 * config/xm-sysv4.h: Delete file.
3078 * config/mips/xm-irix5.h: Delete file.
3079 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3080 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3081 * config/ia64/xm-aix.h: Delete file.
3082 * config/ia64/aix.mh (XM_FILE): Delete.
3083 * config/pa/xm-hppah.h: Delete file.
3084 * config/pa/hpux11w.mh (XM_FILE): Delete.
3085 * config/pa/hpux11.mh (XM_FILE): Delete.
3086 * config/pa/hpux1020.mh (XM_FILE): Delete.
3087 * config/pa/hppahpux.mh (XM_FILE): Delete.
3088
3089 * config/alpha/xm-alphalinux.h: Delete file.
3090 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3091 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3092 * config/alpha/xm-alphaosf.h: Delete file.
3093 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3094 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3095 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3096 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3097
3098 * config/i386/xm-i386v.h: Delete file.
3099 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3100 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3101 * config/i386/xm-i386sco.h: Delete file.
3102 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3103 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3104 * config/i386/xm-i386v4.h: Delete file.
3105 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3106 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3107 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3108 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3109
3110 * config/vax/xm-vax.h: Delete file.
3111 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3112 * config/vax/xm-vaxult2.h: Delete file.
3113 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3114 * config/vax/vaxult2.mh (XM_FILE): Delete.
3115 * config/vax/xm-vaxult.h: Delete file.
3116 * config/vax/vaxult.mh (XM_FILE): Delete.
3117 * config/vax/xm-vaxbsd.h: Delete file.
3118 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3119
3120 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3121 * gdbarch.h, gdbarch.c: Re-generate.
3122 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3123 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3124 * frame.h: Delete deprecated_read_fp from comments.
3125 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3126 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3127
3128 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3129
3130 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3131 trampoline in OpenBSD 3.5-current.
3132
3133 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3134 SSE registers.
3135
3136 * Makefile.in: Remove embedded page breaks.
3137
3138 2004-08-04 Jim Blandy <jimb@redhat.com>
3139
3140 * regcache.c (regcache_raw_read): Assert that, after calling
3141 target_fetch_registers, the register we're reading is cached.
3142
3143 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3144 a call to 'internal_error', with a more helpful error message.
3145 * rs6000-tdep.c (e500_pseudo_register_read,
3146 e500_pseudo_register_write, rs6000_store_return_value): Same.
3147
3148 2004-08-04 Andrew Cagney <cagney@gnu.org>
3149
3150 * Makefile.in: Update dependencies.
3151
3152 2004-08-04 Jim Blandy <jimb@redhat.com>
3153
3154 Change the layout of the PowerPC E500 raw register cache to allow
3155 the lower 32-bit halves of the GPRS to be their own raw registers,
3156 not pseudoregisters.
3157 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3158 add ppc_ev0_upper_regnum flag.
3159 * rs6000-tdep.c: #include "reggroups.h".
3160 (spe_register_p): Recognize the ev upper half registers as SPE
3161 registers.
3162 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3163 registers.
3164 (e500_move_ev_register): New function.
3165 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3166 vector registers are the pseudo-registers now, formed by splicing
3167 together the gprs and the upper-half registers.
3168 (e500_register_reggroup_p): New function.
3169 (P): Macro deleted.
3170 (P8, A4): New macro.
3171 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3172 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3173 macros.
3174 (registers_e500): Rearrange register set so that the raw register
3175 set contains 32-bit GPRs and upper-half registers, and the SPE
3176 vector registers become pseudo-registers.
3177 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3178 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3179 register numbers are now the same for the E500 as they are for
3180 other PowerPC variants. Register e500_register_reggroup_p as the
3181 register group function for the E500.
3182 * Makefile.in (rs6000-tdep.o): Update dependencies.
3183
3184 Adapt PPC E500 native support to the new raw regcache layout.
3185 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3186 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3187 (fetch_spe_register, store_spe_register): Handle fetching/storing
3188 all the SPE registers at once, if regno == -1. These now take
3189 over the job of fetch_spe_registers and store_spe_registers.
3190 (fetch_spe_registers, store_spe_registers): Deleted.
3191 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3192 unconditionally; they're always raw. Fetch/store SPE upper half
3193 registers, if present, instead of ev registers.
3194 (fetch_register, store_register): Remove sanity checks: gprs are
3195 never pseudo-registers now, so we never need to even mention any
3196 registers that are ever pseudoregisters.
3197
3198 Use a fixed register numbering when communicating with the PowerPC
3199 simulator.
3200 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3201 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3202 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3203 New functions.
3204 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3205 init_sim_regno_table.
3206 * Makefile.in (gdb_sim_ppc_h): New variable.
3207 (rs6000-tdep.o): Update dependencies.
3208
3209 2004-08-02 Andrew Cagney <cagney@gnu.org>
3210
3211 * cris-tdep.c (cris_register_size): Restore function, still used
3212 locally.
3213
3214 * gdbarch.sh (deprecated_target_read_fp)
3215 (deprecated_frame_locals_address, deprecated_frame_args_address)
3216 (deprecated_frame_chain_valid, deprecated_frame_chain)
3217 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3218 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3219 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3220 * gdbarch.h, gdbarch.c: Re-generate.
3221 * regcache.c (deprecated_read_fp): Do not call
3222 DEPRECATED_TARGET_READ_FP_P.
3223 * infcmd.c (default_print_registers_info): Do not call
3224 DEPRECATED_DO_REGISTERS_INFO.
3225 * frame-base.c (default_frame_locals_address): Do not call
3226 DEPRECATED_FRAME_LOCALS_ADDRESS.
3227 (default_frame_args_address): Do not call
3228 DEPRECATED_FRAME_ARGS_ADDRESS.
3229
3230 * gdbarch.sh (deprecated_register_raw_size)
3231 (deprecated_register_virtual_size:int): Delete.
3232 * gdbarch.h, gdbarch.c: Re-generate.
3233 * cris-tdep.c (cris_register_size): Delete.
3234 (cris_gdbarch_init): Update.
3235 * alpha-tdep.c (alpha_register_raw_size)
3236 (alpha_register_virtual_size): Delete.
3237 (alpha_gdbarch_init): Update.
3238
3239 * gdbarch.sh (deprecated_register_virtual_type)
3240 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3241 (deprecated_dummy_write_sp): Delete.
3242 * gdbarch.h, gdbarch.c: Re-generate.
3243
3244 * gdbarch.sh (deprecated_register_bytes): Delete.
3245 * gdbarch.h, gdbarch.c: Re-generate.
3246 * regcache.c (deprecated_register_bytes): New function.
3247 * regcache.h (deprecated_register_bytes): Declare.
3248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3249 * v850-tdep.c (v850_gdbarch_init): Update.
3250 * sh64-tdep.c (sh64_gdbarch_init): Update.
3251 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3252 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3253 * mcore-tdep.c (mcore_gdbarch_init): Update.
3254 * cris-tdep.c (cris_gdbarch_init): Update.
3255 * arm-tdep.c (arm_gdbarch_init): Update.
3256 * remote.c (init_remote_state): Update.
3257 * remote-vx.c (vx_prepare_to_store): Update.
3258 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3259 * irix5-nat.c (fetch_core_registers): Update.
3260 * cris-tdep.c (cris_register_bytes_ok): Update.
3261 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3262
3263 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3264 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3265 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3266 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3267 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3268 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3269 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3270 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3271 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3272 with mips_insn16 and mips_insn32.
3273
3274 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3275 * rs6000-tdep.c (rs6000_push_dummy_call)
3276 (rs6000_extract_return_value): Use register_size.
3277 * xstormy16-tdep.c (xstormy16_get_saved_register)
3278 (xstormy16_extract_return_value): Ditto.
3279 * valops.c (value_assign): Ditto.
3280 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3281 * v850-tdep.c (v850_extract_return_value): Ditto.
3282 * tracepoint.c (collect_symbol): Ditto.
3283 * target.c (debug_print_register): Ditto.
3284 * stack.c (frame_info): Ditto.
3285 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3286 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3287 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3288 (store_register_using_P): Ditto.
3289 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3290 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3291 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3292 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3293 * regcache.c (deprecated_read_register_bytes)
3294 (deprecated_write_register_bytes, read_register)
3295 (write_register): Ditto.
3296 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3297 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3298 * monitor.c (monitor_supply_register, monitor_fetch_register)
3299 (monitor_store_register): Ditto.
3300 * mn10300-tdep.c (mn10300_pop_frame_regular)
3301 (mn10300_print_register): Ditto.
3302 * mipsv4-nat.c (fill_fpregset): Ditto.
3303 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3304 (mips64_fill_fpregset): Ditto.
3305 * mi/mi-main.c (register_changed_p, get_register)
3306 (mi_cmd_data_write_register_values): Ditto.
3307 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3308 * irix5-nat.c (fill_gregset, fetch_core_registers):
3309 * infrun.c (write_inferior_status_register): Ditto.
3310 * infptrace.c (fetch_register, store_register): Ditto.
3311 * infcmd.c (default_print_registers_info): Ditto.
3312 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3313 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3314 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3315 * hpux-thread.c (hpux_thread_fetch_registers)
3316 (hpux_thread_store_registers): Ditto.
3317 * hppah-nat.c (store_inferior_registers, fetch_register):
3318 * findvar.c (value_from_register): Ditto.
3319 * dve3900-rom.c (fetch_bitmapped_register):
3320 * cris-tdep.c (cris_gdbarch_init): Ditto.
3321 * alpha-tdep.h: Ditto.
3322 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3323
3324 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3325 DEPRECATED_REGISTER_RAW_SIZE from comments.
3326 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3327 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3328 DEPRECATED_REGISTER_RAW_SIZE.
3329 * findvar.c (value_of_register): Simplify by assuming that the
3330 registers raw and virtual sizes are identical.
3331 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3332 comment.
3333 * arch-utils.c (generic_register_size): Simplify by assuming
3334 register_type.
3335
3336 * regcache.c (legacy_read_register_gen, real_register)
3337 (legacy_write_register_gen): Delete, not used.
3338
3339 * regcache.c (struct regcache_descr): Delete legacy_p.
3340 (init_legacy_regcache_descr): Delete function.
3341 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3342 Do not use deprecated register functions.
3343 (regcache_raw_read, deprecated_write_register_gen):
3344 (deprecated_read_register_gen, regcache_raw_write): Delete code
3345 predicated on legacy_p.
3346 (register_size): Delete check against register raw size.
3347
3348 * cris-tdep.c (cris_register_type): Replace
3349 cris_register_virtual_type.
3350 (cris_gdbarch_init): Update, set register_type.
3351
3352 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3353 * gdbarch.h, gdbarch.c: Re-generate.
3354 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3355 (arm_gdbarch_init) Do not set frameless function invocation.
3356 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3357 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3358 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3359 (frv_gdbarch_init): Do not set frameless function invocation.
3360 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3361 * sh-tdep.c (sh_gdbarch_init): Ditto.
3362 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3363 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3364 * avr-tdep.c (avr_gdbarch_init): Ditto.
3365
3366 * blockframe.c (legacy_frame_chain_valid): Delete function.
3367
3368 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3369 and pc. Update comments.
3370 (pc_in_dummy_frame): Delete function.
3371 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3372 use the "id".
3373 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3374 call_hi, top and pc, use the id.
3375 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3376
3377 * dummy-frame.c: Include "gdb_string.h".
3378 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3379 (generic_save_dummy_frame_tos): Delete.
3380 (dummy_frame_push): New function, replaces above.
3381 * dummy-frame.h: Update copyright.
3382 (dummy_frame_push): Declare.
3383 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3384 (generic_save_call_dummy_addr): Delete declarations.
3385 * infcall.c: Include "dummy-frame.h".
3386 (call_function_by_hand): Add locals caller_regcache,
3387 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3388 with call to frame_save_as_regcache plus cleanup. Delete calls to
3389 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3390 Move clear_proceed_status to just before the resume, add call to
3391 dummy_frame_push (discard cleanup).
3392 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3393 (dummy-frame.o): Add $(gdb_string_h).
3394
3395 2004-08-01 Andrew Cagney <cagney@gnu.org>
3396
3397 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3398 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3399 * dummy-frame.c (find_dummy_frame): Delete.
3400 (struct dummy_frame_cache, dummy_frame_sniffer)
3401 (dummy_frame_prev_register, dummy_frame_this_id)
3402 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3403 frame unwinder using a dummy_frame_cache.
3404
3405 2004-08-01 Andrew Cagney <cagney@gnu.org>
3406
3407 * frame.h (frame_save_as_regcache): Declare.
3408 * frame.c (frame_save_as_regcache): New function.
3409 (do_frame_read_register): Replace do_frame_unwind_register.
3410 (frame_pop): Use frame_save_as_regcache.
3411 * dummy-frame.c (generic_push_dummy_frame): Use
3412 frame_save_as_regcache.
3413
3414 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3415
3416 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3417 file as included until we record the first line in the linetable.
3418
3419 2004-08-01 Andrew Cagney <cagney@gnu.org>
3420
3421 * frame.h (deprecated_pop_dummy_frame)
3422 (deprecated_read_register_dummy)
3423 (deprecated_generic_find_dummy_frame): Delete.
3424 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3425 (deprecated_read_register_dummy)
3426 (deprecated_find_dummy_frame_regcache)
3427 (discard_innermost_dummy)
3428 (deprecated_pop_dummy_frame): Delete.
3429 (dummy_frame_this_id): Simplify.
3430 (struct dummy_frame): Delete "fp" and "sp".
3431 (find_dummy_frame): Simplify.
3432 (generic_push_dummy_frame): Do not set "fp" or "sp".
3433 (fprint_dummy_frames): Do not print "fp" and "sp"
3434
3435 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3436
3437 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3438 (struct i386_insn): New structure.
3439 (i386_match_insn): New function.
3440 (i386_frame_setup_skip_insns): New variable.
3441 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3442 array i386_frame_setup_insns of instructions that should be
3443 skipped inside the frame setup sequence.
3444
3445 2004-08-01 Andrew Cagney <cagney@gnu.org>
3446
3447 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3448 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3449 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3450 * stack.c (frame_info): Delete references to
3451 DEPRECATED_FRAME_INIT_SAVED_REGS and
3452 deprecated_get_frame_saved_regs.
3453 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3454 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3455 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3456 (frame_unwind_register_signed)
3457 (frame_unwind_register_unsigned)
3458 (frame_unwind_unsigned_register): Use register_size.
3459 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3460 (deprecated_frame_xmalloc_with_cleanup)
3461 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3462 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3463
3464 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3465 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3466 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3467 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3468
3469 * infcall.c (call_function_by_hand): Do not use
3470 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3471 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3472 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3473 DEPRECATED_STACK_ALIGN.
3474
3475 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3476
3477 Committed by Andrew Cagney.
3478 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3479
3480 2004-08-01 Andrew Cagney <cagney@gnu.org>
3481
3482 * mips-tdep.c (mips16_frame_cache)
3483 (mips16_frame_this_id, mips16_frame_prev_register)
3484 (mips16_frame_unwind, mips16_frame_sniffer)
3485 (mips16_frame_base_address, mips16_frame_base)
3486 (mips16_frame_base_sniffer, mips32_frame_cache)
3487 (mips32_frame_this_id, mips32_frame_prev_register)
3488 (mips32_frame_unwind, mips32_frame_sniffer)
3489 (mips32_frame_base_address, mips32_frame_base)
3490 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3491 separate heuristic mips16 and mips32 unwinders.
3492 (mips_stub_frame_cache, mips_stub_frame_this_id)
3493 (mips_stub_frame_prev_register)
3494 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3495 (mips_stub_frame_base_address, mips_stub_frame_base)
3496 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3497 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3498 match true mdebug frames.
3499 (non_heuristic_proc_desc): Add forward declaration.
3500
3501 2004-08-01 Andrew Cagney <cagney@gnu.org>
3502
3503 * config/mips/tm-irix6.h: Delete file.
3504 * config/mips/tm-irix5.h: Delete file.
3505 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3506 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3507
3508 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3509 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3510 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3511 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3512 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3513 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3514 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3515 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3516 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3517 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3518 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3519 (TARGET_SIGNAL_RAW_VALUES): Delete.
3520 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3521 Delete.
3522 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3523 (TARGET_HW_WATCH_LIMIT): Delete.
3524 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3525 * minimon.h: Delete file.
3526
3527 * trad-frame.c (trad_frame_get_this_base)
3528 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3529 functions.
3530 * trad-frame.h (trad_frame_set_this_base)
3531 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3532
3533 2004-07-31 Andrew Cagney <cagney@gnu.org>
3534
3535 * trad-frame.c (trad_frame_get_prev_register): Rename
3536 trad_frame_get_prev_register.
3537 * vax-tdep.c (vax_frame_prev_register): Update.
3538 * trad-frame.h: Update.
3539 * trad-frame.c (trad_frame_get_register): Update.
3540 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3541 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3542 Update.
3543 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3544 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3545 Update.
3546 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3547 Update.
3548 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3549 Update.
3550 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3551 Update.
3552 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3553 Update.
3554 * s390-tdep.c (s390_frame_prev_register)
3555 (s390_stub_frame_prev_register)
3556 (s390_sigtramp_frame_prev_register): Update.
3557 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3558 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3559 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3560 * m88k-tdep.c (m88k_frame_prev_register)
3561 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3562 * m32r-tdep.c (m32r_frame_prev_register): Update.
3563 * hppa-tdep.c (hppa_frame_prev_register_helper)
3564 * frv-tdep.c (frv_frame_prev_register): Update.
3565 * d10v-tdep.c (d10v_frame_prev_register): Update.
3566 * cris-tdep.c (cris_frame_prev_register): Update.
3567 * avr-tdep.c (avr_frame_prev_register): Update.
3568 * arm-tdep.c (arm_prologue_prev_register)
3569 (arm_sigtramp_prev_register): Update.
3570
3571 2004-07-31 Andrew Cagney <cagney@gnu.org>
3572
3573 * frame.h (legacy_saved_regs_unwind)
3574 (legacy_frame_chain_valid, legacy_frame_p)
3575 (enum frame_type): Delete UNKNOWN_FRAME.
3576 * dummy-frame.c (dummy_frame_this_id): Simplify.
3577 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3578 * frame.c (struct frame_info): Delete the field "type".
3579 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3580 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3581 (legacy_saved_regs_unwind, legacy_frame_p)
3582 (frame_type_from_pc): Delete.
3583 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3584 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3585
3586 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3587
3588 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3589 indentation.
3590
3591 * mips-nat.c: Remove file.
3592 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3593 (mips-nat.o): Remove dependency.
3594
3595 * infptrace.c: Update copyright year.
3596 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3597 explicitly setting the buffer to all zeroes.
3598
3599 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3600 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3601
3602 2004-07-30 Andrew Cagney <cagney@gnu.org>
3603
3604 * GDB 6.2 released from gdb_6_2-branch.
3605
3606 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3607
3608 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3609
3610 * exec.c (exec_file_attach):
3611 * nto-tdep.c (nto_find_and_open_solib):
3612 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3613 * solib.c (solib_open):
3614 * somsolib.c (som_solib_sizeof_symbol_table):
3615 * source.c (is_regular_file, openp, open_source_file):
3616 * symfile.c (symfile_bfd_open):
3617 * wince.c (upload_to_device): Differentiate between the search for
3618 binary and source files.
3619
3620 2004-07-30 Andrew Cagney <cagney@gnu.org>
3621
3622 * complaints.c (_initialize_complaints): Pass NULL to
3623 add_setshow_zinteger_cmd for help_doc.
3624 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3625
3626 2004-07-30 Andrew Cagney <cagney@gnu.org>
3627
3628 Fix PR i18n/761.
3629 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3630 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3631 $(PACKAGE).pot and update-po.
3632 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3633 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3634 (update-po): New rules.
3635 (localedir): Define using autoconf.
3636 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3637 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3638 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3639 * configure.in: Generate CATALOGS and LINGUAS from contents of
3640 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3641 * configure: Re-generate.
3642 * po/gdbtext: New file
3643
3644 2004-07-30 Jerome Guitton <guitton@gnat.com>
3645
3646 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3647 order.
3648
3649 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3650
3651 * dwarf2read.c (read_file_scope): Set producer if attribute
3652 present.
3653 (struct dwarf2_cu): Added new member producer.
3654
3655 2004-07-30 Jerome Guitton <guitton@gnat.com>
3656
3657 * inflow.c (kill_command): release file handles in BFD.
3658 * exec.c (exec_file_attach): Ditto.
3659 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3660
3661 2004-07-29 Andrew Cagney <cagney@gnu.org>
3662
3663 * PROBLEMS (mips-irix): Note that it is broken.
3664
3665 2004-07-29 Andrew Cagney <cagney@gnu.org>
3666
3667 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3668 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3669
3670 * config/xm-nbsd.h: Delete file.
3671 * config/arm/xm-nbsd.h: Delete file.
3672 * config/i386/xm-nbsd.h: Delete file.
3673 * config/ns32k/xm-nbsd.h: Delete file.
3674 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3675 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3676 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3677 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3678 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3679
3680 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3681 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3682 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3683 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3684 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3685 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3686
3687 * config/powerpc/xm-linux.h: Delete empty file.
3688 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3689 * config/powerpc/linux.mh (XM_FILE): Delete.
3690 * config/m68k/xm-linux.h: Delete empty file.
3691 * config/m68k/linux.mh (XM_FILE): Delete.
3692 * config/ia64/xm-linux.h: Delete empty file.
3693 * config/ia64/linux.mh (XM_FILE): Delete.
3694 * config/arm/xm-linux.h: Delete empty file.
3695 * config/arm/linux.mh (XM_FILE): Delete.
3696
3697 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3698 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3699 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3700 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3701 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3702 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3703 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3704 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3705
3706 * config/m68k/xm-m68k.h: Delete file.
3707 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3708 copyright.
3709 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3710 * config/pa/xm-linux.h: Delete empty file.
3711 * config/pa/linux.mh (XM_FILE): Delete.
3712 * config/i386/xm-i386.h: Delete empty file.
3713 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3714 "i386/xm-i386.h".
3715 * config/i386/obsdaout.mh (XM_FILE): Delete.
3716 * config/i386/obsd64.mh (XM_FILE): Delete.
3717 * config/i386/fbsd64.mh (XM_FILE): Delete.
3718 * config/i386/nto.mh (XM_FILE): Delete.
3719 * config/i386/obsd.mh (XM_FILE): Delete.
3720 * config/i386/linux64.mh (XM_FILE): Delete.
3721 * config/i386/linux.mh (XM_FILE): Delete.
3722 * config/i386/i386sol2.mh (XM_FILE): Delete.
3723 * config/i386/i386gnu.mh (XM_FILE): Delete.
3724 * config/i386/fbsd.mh (XM_FILE): Delete.
3725 * config/i386/nbsd64.mh (XM_FILE): Delete.
3726
3727 2004-07-29 Andrew Cagney <cagney@gnu.org>
3728
3729 * config/pa/xm-linux.h: Do not include "floatformat.h".
3730 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3731 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3732 * config/i386/xm-i386.h: Do not include "floatformat.h".
3733 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3734 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3735 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3736 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3737 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3738 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3739 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3740 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3741 * configure, config.in: Regenerate.
3742 * configure.host (gdb_host_float_format, gdb_host_double_format)
3743 (gdb_host_long_double_format): Set according to the host.
3744
3745 2004-07-29 Andrew Cagney <cagney@gnu.org>
3746
3747 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3748
3749 2004-07-28 Andrew Cagney <cagney@gnu.org>
3750
3751 * PROBLEMS: Mention threads/1650.
3752 * NEWS: Mention the NPTL fix.
3753
3754 2004-07-28 Andrew Cagney <cagney@gnu.org>
3755
3756 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3757 (add_setshow_cmd_full): Make static.
3758 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3759 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3760 * cli/cli-decode.c (add_setshow_filename_cmd)
3761 (add_setshow_string_cmd): New functions.
3762 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3763 * mips-tdep.c (_initialize_mips_tdep): Update.
3764 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3765 * cli/cli-logging.c (_initialize_cli_logging): Update.
3766 * complaints.c (_initialize_complaints): Update.
3767 * remote.c (_initialize_remote): Update.
3768
3769 2004-07-28 Andrew Cagney <cagney@gnu.org>
3770
3771 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3772 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3773 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3774 print parameters. Make string parameters constant.
3775 * command.h: Update. Update copyright.
3776 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3777 * observer.c (_initialize_observer): Ditto.
3778 * frame.c (_initialize_frame): Ditto.
3779 * complaints.c (_initialize_complaints): Ditto.
3780 * maint.c (_initialize_maint_cmds): Ditto.
3781 * target.c (initialize_targets): Ditto.
3782 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3783 * infcall.c (_initialize_infcall): Ditto.
3784 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3785 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3786 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3787 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3788 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3789
3790 2004-07-28 Andrew Cagney <cagney@gnu.org>
3791
3792 * gdbtypes.c (lookup_primitive_typename): Delete function.
3793 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3794 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3795 * gdbtypes.c (lookup_typename): Ditto.
3796 * f-exp.y (yylex): Ditto.
3797 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3798
3799 * scm-lang.c (c_builtin_types): Delete extern declaration.
3800 (scm_language_defn): Replace
3801 string_char_type and primitive_type_vector with
3802 la_language_arch_info.
3803 * jv-lang.c (java_language_defn): Replace
3804 string_char_type and primitive_type_vector with
3805 la_language_arch_info.
3806 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3807 c_builtin_types in comment.
3808 * c-lang.h (struct language_arch_info): Declare opaque.
3809 (c_language_arch_info): Declare.
3810 (c_builtin_types): Delete declaration.
3811 * c-lang.c (c_language_arch_info): Set string_char_type to
3812 builtin_char, not builtin_true_char. Make global.
3813 (c_builtin_types): Delete array.
3814 (asm_language_defn, minimal_language_defn): Replace
3815 string_char_type and primitive_type_vector with
3816 la_language_arch_info.
3817
3818 2004-07-28 Andrew Cagney <cagney@gnu.org>
3819
3820 * gdbtypes.h (struct builtin_type): Rename true_char to
3821 builtin_true_char.
3822 * gdbtypes.c (gdbtypes_post_init): Update.
3823 * c-lang.c (arch_info): New function.
3824 (enum c_primitive_types): New enum.
3825 (c_language_defn): Instead of string_char_type and
3826 primitive_type_vector set la_language_arch_info.
3827
3828 2004-07-28 Andrew Cagney <cagney@gnu.org>
3829
3830 * language.h (struct language_arch_info): Fix typo
3831 s/primative/primitive/.
3832 * gdbtypes.c (lookup_primitive_typename): Ditto.
3833 * language.c (language_lookup_primitive_type_by_name)
3834 (unknown_language_arch_info): Ditto.
3835
3836 2004-07-27 Andrew Cagney <cagney@gnu.org>
3837
3838 * defs.h (enum language): Add nr_languages.
3839 * language.h (struct language_arch_info): Define.
3840 (struct language_defn): Add la_language_arch_info.
3841 (language_lookup_primative_type_by_name): Declare.
3842 (language_string_char_type): Declare.
3843 * language.c (_initialize_language, language_gdbarch_post_init)
3844 (struct language_gdbarch, language_gdbarch_data): Implement
3845 per-architecture language information.
3846 (unknown_language_arch_info, language_string_char_type)
3847 (language_lookup_primative_type_by_name): New functions.
3848 (unknown_language_defn, auto_language_defn)
3849 (local_language_defn): Set la_language_arch_info to
3850 unknown_language_arch_info.
3851 (unknown_builtin_types): Delete.
3852 * gdbtypes.c (lookup_primitive_typename): Use
3853 language_lookup_primative_type_by_name.
3854 (create_string_type): Use language_string_char_type.
3855 * values.c (value_from_string): Use language_string_char_type.
3856 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3857 * p-lang.c (pascal_language_defn): Ditto.
3858 * m2-lang.c (m2_language_defn): Ditto.
3859 * jv-lang.c (java_language_defn): Ditto.
3860 * objc-lang.c (objc_language_defn): Ditto.
3861 * f-lang.c (f_language_defn): Ditto.
3862 * c-lang.c (c_language_defn, cplus_language_defn)
3863 (asm_language_defn, minimal_language_defn): Ditto.
3864
3865 2004-07-27 Andrew Cagney <cagney@gnu.org>
3866
3867 * gdbtypes.h (struct builtin_type): Declare.
3868 (builtin_type): Declare.
3869 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3870 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3871 (gdbtypes_post_init): New function.
3872 (builtin_type): New function.
3873
3874 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3875
3876 * remote-m32r-sdi.c: Fix breakpoint bug.
3877 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3878 recv_char_data, recv_long_data): New functions to replace communication
3879 sequences.
3880
3881 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3882
3883 Document PR threads/1650.
3884 * PROBLEMS (Threads): Document problem with many threads
3885
3886 2004-07-26 Andrew Cagney <cagney@gnu.org>
3887
3888 * gdb-mi.el: Move from here ...
3889 * mi/gdb-mi.el: ... to here.
3890
3891 2004-07-26 Andrew Cagney <cagney@gnu.org>
3892
3893 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3894 * main.c (captured_main): When in batch mode always detach.
3895
3896 2004-07-26 Andrew Cagney <cagney@gnu.org>
3897
3898 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3899 and h8300 as broken.
3900 * NEWS: END-OF-LIFE frame compatibility module.
3901 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3902 specific comments.
3903
3904 2004-07-26 Andrew Cagney <cagney@gnu.org>
3905
3906 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3907 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3908 * wince.c (_initialize_wince): Update.
3909 * win32-nat.c (_initialize_win32_nat): Update.
3910 * varobj.c (_initialize_varobj): Update.
3911 * valops.c (_initialize_valops): Update.
3912 * utils.c (initialize_utils, initialize_utils): Update.
3913 * tui/tui-win.c (_initialize_tui_win): Update.
3914 * top.c (init_main): Update.
3915 * symfile.c (_initialize_symfile): Update.
3916 * source.c (_initialize_source): Update.
3917 * somsolib.c (_initialize_som_solib): Update.
3918 * solib.c (_initialize_solib): Update.
3919 * solib-frv.c (_initialize_frv_solib): Update.
3920 * serial.c (_initialize_serial): Update.
3921 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3922 * remote.c (_initialize_remote, _initialize_remote): Update.
3923 * remote-vx.c (_initialize_vx): Update.
3924 * remote-utils.c (_initialize_sr_support): Update.
3925 * remote-sds.c (_initialize_remote_sds): Update.
3926 * remote-mips.c (_initialize_remote_mips): Update.
3927 * remote-e7000.c (_initialize_remote_e7000): Update.
3928 * proc-api.c (_initialize_proc_api): Update.
3929 * printcmd.c: Update.
3930 * parse.c (_initialize_parse): Update.
3931 * pa64solib.c (_initialize_pa64_solib): Update.
3932 * p-valprint.c (_initialize_pascal_valprint): Update.
3933 * monitor.c (_initialize_remote_monitors): Update.
3934 * mips-tdep.c (_initialize_mips_tdep): Update.
3935 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3936 * maint.c (_initialize_maint_cmds): Update.
3937 * lin-lwp.c (_initialize_lin_lwp): Update.
3938 * language.c (_initialize_language): Update.
3939 * kod.c (_initialize_kod): Update.
3940 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3941 * i386-tdep.c (_initialize_i386_tdep): Update.
3942 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3943 * gdbarch.sh: Update.
3944 * gdbarch.c: Re-generate.
3945 * gdb-events.sh: Update.
3946 * gdb-events.c: Re-generate.
3947 * frame.c (_initialize_frame): Update.
3948 * exec.c: Update.
3949 * demangle.c (_initialize_demangler): Update.
3950 * dcache.c (_initialize_dcache): Update.
3951 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3952 * cp-valprint.c (_initialize_cp_valprint): Update.
3953 * corefile.c (_initialize_core): Update.
3954 * command.h: Update.
3955 * cli/cli-decode.h: Update.
3956 * cli/cli-cmds.c (init_cli_cmds): Update.
3957 * charset.c (_initialize_charset): Update.
3958 * breakpoint.c (_initialize_breakpoint): Update.
3959 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3960 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3961 * aix-thread.c (_initialize_aix_thread): Update.
3962
3963 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3964
3965 Partial fix for PR backtrace/1718.
3966 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3967 that GCC migrates into the prolugue. Don't handle any
3968 instructions that clobber %ebx.
3969
3970 2004-07-23 Andrew Cagney <cagney@gnu.org>
3971
3972 Use regcache_raw_collect instead of regcache_collect.
3973 * regcache.h (regcache_collect): Delete declaration.
3974 * regcache.c (regcache_colect): Delete function.
3975 * win32-nat.c (do_child_store_inferior_registers): Update.
3976 * sol-thread.c (sol_thread_store_registers): Update.
3977 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3978 * rs6000-nat.c (store_register): Update.
3979 * remote.c (store_register_using_P, remote_store_registers): Update.
3980 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3981 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3982 (fill_vrregset, store_spe_registers, fill_gregset)
3983 (fill_gregset): Update.
3984 * nto-procfs.c (procfs_store_registers): Update.
3985 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3986 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3987 * m68klinux-nat.c (store_register, fill_gregset): Update.
3988 * m68k-tdep.c (fill_gregset): Update.
3989 * infptrace.c (store_register): Update.
3990 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3991 * i386-linux-nat.c (store_register, fill_gregset): Update.
3992 * hppa-linux-nat.c (fill_gregset): Update.
3993 * go32-nat.c (store_register): Update.
3994 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3995 (store_fp_regs): Update.
3996 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3997 (store_nwfpe_extended, store_fpregister, store_fpregs)
3998 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3999 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4000 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4001 (store_regs_user_thread, store_regs_kernel_thread): Update.
4002
4003 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4004
4005 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4006 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4007 encoding.
4008 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4009 member of `struct comp_unit'.
4010
4011 2004-07-23 Andrew Cagney <cagney@gnu.org>
4012
4013 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4014 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4015
4016 2004-07-23 Martin Hunt <hunt@redhat.com>
4017 Kevin Buettner <kevinb@redhat.com>
4018
4019 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4020 alignment was being added to the offset instead of multiplied.
4021
4022 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4023
4024 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4025 changed signal trampoline in OpenBSD 3.5-current.
4026
4027 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4028 <machine/pcb.h> and "bsd-kvm.h".
4029 (sparc64nbsd_supply_pcb): New function.
4030 (_initialize_sparc64nbsd_nat): Renamed from
4031 _initialize_sparcnbsd_nat. Enable libkvm interface.
4032 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4033 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4034 (LOADLIBES): New variable.
4035
4036 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4037
4038 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4039
4040 2004-07-21 Andrew Cagney <cagney@gnu.org>
4041
4042 Use regcache_raw_supply instead of supply_register.
4043 * regcache.h (supply_register): Delete declaration.
4044 * regcache.c (supply_register): Delete function.
4045 * wince.c (do_child_fetch_inferior_registers): Update.
4046 * win32-nat.c (do_child_fetch_inferior_registers)
4047 (fetch_elf_core_registers): Update.
4048 * v850ice.c (v850ice_fetch_registers): Update.
4049 * thread-db.c (thread_db_store_registers): Update.
4050 * sol-thread.c (sol_thread_store_registers): Update.
4051 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4052 * rs6000-nat.c (fetch_register): Update.
4053 * rom68k-rom.c (rom68k_supply_one_register): Update.
4054 * remote.c (remote_wait, remote_async_wait): Update.
4055 * remote-st.c (get_hex_regs): Update.
4056 * remote-sim.c (gdbsim_fetch_register): Update.
4057 * remote-sds.c (sds_fetch_registers): Update.
4058 * remote-rdp.c (remote_rdp_fetch_register): Update.
4059 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4060 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4061 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4062 * remote-hms.c (init_hms_cmds): Update.
4063 * remote-est.c (init_est_cmds): Update.
4064 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4065 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4066 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4067 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4068 (fetch_register, supply_vrregset, supply_vrregset)
4069 (fetch_spe_registers): Update.
4070 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4071 * monitor.c (monitor_supply_register): Update.
4072 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4073 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4074 (mipsnbsd_supply_fpreg): Update.
4075 * mips-nat.c (fetch_inferior_registers)
4076 (fetch_core_registers): Update.
4077 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4078 (supply_fpregset, mips64_supply_gregset)
4079 (mips64_supply_fpregset): Update.
4080 * m68klinux-nat.c (fetch_register, supply_gregset)
4081 (supply_fpregset): Update.
4082 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4083 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4084 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4085 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4086 * infptrace.c (fetch_register): Update.
4087 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4088 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4089 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4090 (gnu_fetch_registers, gnu_store_registers): Update.
4091 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4092 * i386-linux-nat.c (fetch_register, supply_gregset)
4093 (dummy_sse_values): Update.
4094 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4095 * hppah-nat.c (fetch_register): Update.
4096 * hppa-linux-nat.c (fetch_register, supply_gregset)
4097 (supply_fpregset): Update.
4098 * go32-nat.c (fetch_register): Update.
4099 * dve3900-rom.c (fetch_bitmapped_register)
4100 (_initialize_r3900_rom): Update.
4101 * cris-tdep.c (supply_gregset): Update.
4102 * abug-rom.c (init_abug_cmds): Update.
4103 * core-aout.c (fetch_core_registers): Update.
4104 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4105 (fetch_register, fetch_fp_register): Update.
4106 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4107 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4108 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4109 * alphanbsd-tdep.c (fetch_core_registers): Update.
4110 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4111 * alpha-nat.c (fetch_osf_core_registers)
4112 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4113 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4114 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4115
4116 2004-07-21 Andrew Cagney <cagney@gnu.org>
4117
4118 * PROBLEMS: Mention breakpoints/1702.
4119 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4120 that is known to work.
4121
4122 2004-07-21 Andrew Cagney <cagney@gnu.org>
4123
4124 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4125 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4126 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4127 (handle_inferior_event): Wrap call to deprecated
4128 IGNORE_HELPER_CALL in #ifdef.
4129 * config/mips/tm-nbsd.h: Update.
4130
4131 2004-07-20 Jim Blandy <jimb@redhat.com>
4132
4133 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4134 bfd_mach_ppc has no segment registers.
4135
4136 Include PowerPC SPR numbers for special-purpose registers.
4137 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4138 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4139 new member in initializer.
4140 (S, S4, SN4, S64): New macros for defining special-purpose
4141 registers.
4142 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4143 registers_403, registers_403GC, registers_505, registers_860,
4144 registers_601, registers_602, registers_603, registers_604,
4145 registers_750, registers_e500): Use them.
4146
4147 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4148 replace references with expression used to initialize variable.
4149
4150 2004-07-20 Andrew Cagney <cagney@gnu.org>
4151
4152 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4153 read_memory_nobpt.
4154 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4155 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4156 (s390_sigtramp_frame_sniffer): Update.
4157 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4158 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4159 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4160 (mips32_fetch_instruction): Update.
4161 * mcore-tdep.c (get_insn): Update.
4162 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4163 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4164 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4165 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4166 (i386_linux_rt_sigtramp_start): Update.
4167 * i386-linux-nat.c (child_resume): Update.
4168 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4169 * hppa-linux-tdep.c (insns_match_pattern): Update.
4170 * gdbcore.h: Update.
4171 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4172 * frame.c (safe_frame_unwind_memory): Update.
4173 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4174 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4175 * alpha-tdep.c (alpha_read_insn): Update.
4176
4177 2004-07-20 Andrew Cagney <cagney@gnu.org>
4178
4179 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4180 containing both bytes and mask. Add "frame_type".
4181 * tramp-frame.c (tramp_frame_start): Update.
4182 (tramp_frame_prepend_unwinder): Update.
4183 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4184 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4185 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4186 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4187
4188 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4189
4190 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4191 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4192 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4193 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4194
4195 2004-07-17 Andrew Cagney <cagney@gnu.org>
4196
4197 * NEWS, PROBLEMS: Update for 6.2.
4198
4199 * README: Update to 6.2.
4200
4201 * utils.c (xvasprintf): Call xstrvprintf.
4202
4203 * parse.c: Update copyright.
4204 (null_post_parser): Eliminate ARGSUSED.
4205
4206 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4207 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4208 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4209
4210 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4211 * ppc-linux-nat.c: Use "Linux kernel".
4212 * hppa-linux-tdep.c: Use GNU/Linux.
4213 * hppa-linux-nat.c: Use GNU/Linux.
4214 * dwarfread.c: Add [sic] to use of Linux.
4215
4216 * hppa-linux-nat.c: Do not include <string.h>.
4217 (supply_fpregset): Remove "register" attribute.
4218
4219 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4220
4221 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4222
4223 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4224 * configure, config.in: Regenerated.
4225
4226 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4227 "bsd-kvm.h".
4228 (vaxbsd_supply_pcb): New function.
4229 (_initialize_vaxbsd_nat): New prototype and function.
4230 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4231 solib-sunos.o.
4232 (LOADLIBES): New variable.
4233 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4234 (LOADLIBES): New variable.
4235 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4236 (LOADLIBES): New variable.
4237 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4238
4239 2004-07-16 Andrew Cagney <cagney@gnu.org>
4240
4241 * defs.h (event_loop_p): Replace variable declaration with macro,
4242 always 1.
4243 * main.c (captured_main): Delete options "-async" and "-noasync".
4244 (event_loop_p): Delete variable.
4245 * NEWS: Mention that "-async" and "-noasync" were removed.
4246
4247 2004-07-16 Andrew Cagney <cagney@gnu.org>
4248
4249 * remote-m32r-sdi.c: Re-indent.
4250
4251 2004-07-16 Jim Blandy <jimb@redhat.com>
4252
4253 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4254 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4255 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4256 missing MPC823 SPRs.
4257 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4258 incorrect. (This was corrected in GDB's register name tables on
4259 2004-07-14.)
4260
4261 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4262 should be "esasrr" ("ESA Save and Restore Register").
4263
4264 2004-07-16 Andrew Cagney <cagney@gnu.org>
4265
4266 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4267 calls, no longer applicable. Update comments and rename parameter
4268 "step_frame" to "return_frame".
4269
4270 2004-07-16 Andrew Cagney <cagney@gnu.org>
4271
4272 * frame.c (fprint_field): New function.
4273 (fprint_frame_id): Use fprint_field.
4274
4275 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4276
4277 * ada-lang.c (ada_language_defn): Remove commented out code.
4278
4279 2004-07-15 Jim Blandy <jimb@redhat.com>
4280
4281 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4282 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4283
4284 2004-07-14 Jim Blandy <jimb@redhat.com>
4285
4286 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4287
4288 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4289
4290 * ppc-tdep.h (ppc_num_srs): New enum constant.
4291
4292 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4293 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4294 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4295 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4296 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4297 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4298 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4299 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4300 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4301 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4302 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4303 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4304 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4305 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4306 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4307 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4308 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4309 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4310 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4311 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4312 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4313 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4314 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4315 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4316 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4317 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4318 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4319 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4320 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4321 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4322 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4323 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4324 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4325 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4326 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4327 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4328 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4329 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4330 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4331 special-purpose register numbers.
4332
4333 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4334 manual mentions 'md_twb', but many mention 'm_twb', and at that
4335 point in the register list.)
4336
4337 2004-07-14 Andrew Cagney <cagney@gnu.org>
4338
4339 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4340 instead of "internal-error".
4341
4342 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4343
4344 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4345 that was inserted inside a comment.
4346
4347 2004-07-10 Randolph Chung <tausq@debian.org>
4348
4349 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4350 function.
4351 (hppa_hpux_push_dummy_code): New function.
4352 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4353 Set find_global_pointer method.
4354
4355 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4356
4357 * NEWS: Mention BSD libkvm interface.
4358
4359 2004-07-10 Michael Snyder <msnyder@redhat.com>
4360
4361 * symfile.c (generic_load): Comment typo.
4362 * stack.c (get_selected_block): Ditto.
4363 * regcache.c (regcache_cooked_read): Ditto.
4364 * monitor.c (monitor_debug): Ditto.
4365 * mips-tdep.c (mips_read_pc): Ditto.
4366 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4367 * gdb_mbuild.sh: Ditto.
4368 * gdbarch.sh: Ditto.
4369 * gdbarch.h: Ditto.
4370
4371 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4372
4373 * ada-tasks.c: Remove file.
4374
4375 Remove ARI problems:
4376
4377 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4378 beginning of line.
4379
4380 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4381 Add comment.
4382 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4383 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4384 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4385 (UMIN_OF_SIZE): Remove.
4386 (max_of_type): New function to replace orphan macro in gdbtypes.h
4387 (min_of_type): Ditto.
4388 (discrete_type_high_bound): Use max_of_type.
4389 (discrete_type_low_bound): Use min_of_type.
4390 (possible_user_operator_p): Move operator to beginning of line.
4391 (ada_is_variant_part): Ditto.
4392 (ensure_lval): Rewrite to avoid deprecated operations.
4393 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4394 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4395 (ada_enum_name): Remove assignments in 'if' statements.
4396 (build_ada_types): Add gdbarch parameter.
4397 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4398 with gdbarch_data_register_post_init.
4399 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4400 add_show_from_set.
4401
4402 * ada-valprint.c (inspect_it): Remove declaration.
4403 (repeat_count_threshold): Remove declaration.
4404 (ada_print_floating): Remove assignments in 'if' statements.
4405 (print_str): Move operator to beginning of line.
4406
4407 2004-07-08 Jim Blandy <jimb@redhat.com>
4408
4409 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4410
4411 2004-07-08 Bob Rossi <bob@brasko.net>
4412
4413 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4414
4415 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4416
4417 * language.h (struct_language_defn): Add new function pointer:
4418 la_class_name_from_physname. Also add new prototype for
4419 language_class_name_from_physname.
4420 * language.c (language_class_name_from_physname): New function.
4421 (unk_lang_class_name): Ditto.
4422 (unknown_language_defn, auto_language_defn): Change
4423 to add unk_lang_class_name function pointer for
4424 la_class_name_from_physname.
4425 (local_language_defn): Ditto.
4426 * dwarf2read.c (guess_structure_name): Change to call
4427 language_class_name_from_physname.
4428 (determine_class_name): Ditto.
4429 * cp-support.c (class_name_from_physname): Renamed.
4430 (cp_class_name_from_physname): New name of function.
4431 * cp-support.h: Ditto.
4432 * c-lang.c (c_language_defn): Change to add NULL
4433 for class_name_from_physname function pointer.
4434 (cplus_language_defn): Change to add cp_class_name_from_physname.
4435 * jv-lang.c (java_class_name_physname): New function.
4436 (java_find_last_component): New static routine.
4437 (java_language_defn): Add java_class_name_from_physname pointer.
4438 * ada-lang.c (ada_language_defn): Change to add NULL
4439 for class_name_from_physname function pointer.
4440 * f-lang.c (f_language_defn): Ditto.
4441 * m2-lang.c (m2_language_defn): Ditto.
4442 * objc-lang.c (objc_language_defn): Ditto.
4443 * p-lang.c (pascal_language_defn): Ditto.
4444 * scm-lang.c (scm_language_defn): Ditto.
4445
4446 2004-07-06 Andrew Cagney <cagney@gnu.org>
4447
4448 Patch from Bart Robinson.
4449 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4450 (O_LARGEFILE): Define to 0, if not defined.
4451
4452 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4453
4454 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4455 <machine/pcb.h> and "bsd-kvm.h".
4456 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4457 (m68kbsd_supply_pcb): New function.
4458 (_initialize_m68kbsd_nat): New prototype and function.
4459 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4460 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4461 (LOADLIBES): New variable.
4462 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4463 (LOADLIBES): New variable.
4464
4465 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4466
4467 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4468
4469 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4470 <sys/proc.h>.
4471 (bsd_kvm_cmdlist): New variable.
4472 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4473 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4474 command and "kvm proc" command.
4475 * Makefile.in (bsd-kvm.o): Update dependencies.
4476
4477 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4478
4479 * osabi.c: Update copyright year.
4480 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4481 notes if EI_OSABI is set to ELFOSABI_HPUX.
4482
4483 2004-07-01 Michael Snyder <msnyder@redhat.com>
4484
4485 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4486 that seems to have gotten whacked out of line.
4487
4488 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4489
4490 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4491 code.
4492
4493 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4494
4495 * ada-lang.c (decode_packed_array): Minor change to comment.
4496 (ada_value_slice_ptr): New function.
4497 (ada_value_slice): New function.
4498 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4499 test. Don't know why it is there.
4500 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4501 to avoid dereferencing huge arrays from which one is slicing.
4502 (empty_array): Correct to return an array rather than
4503 a subrange value.
4504 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4505 on empty arrays (let'em use 'FIRST instead).
4506
4507 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4508
4509 Address complaints from gdb_ari.sh:
4510
4511 * ada-exp.y: Include gdb_string.h rather than string.h.
4512 (convert_char_literal): Reformat declaration.
4513 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4514 * ada-lex.l: Change use of free to xfree (the macro would do so
4515 anyway, but this is harmless).
4516 Include gdb_string.h rather than string.h.
4517 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4518
4519 * ada-lang.c (parse): Remove K&Rism in parameter list.
4520 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4521
4522 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4523
4524 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4525 dead code.
4526
4527 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4528
4529 * alphabsd-nat.c: Update copyright year.
4530 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4531
4532 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4533
4534 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4535 (i386_cygwin_in_solib_call_trampoline): New function.
4536 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4537 and skip_trampoline_code gdbarch methods.
4538
4539 2004-06-29 Jim Blandy <jimb@redhat.com>
4540
4541 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4542 name actually used in the dependency lists.
4543
4544 2004-06-29 Randolph Chung <tausq@debian.org>
4545
4546 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4547
4548 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4549
4550 * win32-nat.c (child_pid_to_exec_file): New function.
4551 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4552 functionality.
4553
4554 2004-06-28 Andrew Cagney <cagney@gnu.org>
4555
4556 * defs.h (xstrvprintf): Declare.
4557 * utils.c (xstrvprintf): New function.
4558 (internal_vproblem, xstrprintf, xasprintf)
4559 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4560 * serial.c (serial_printf): Ditto.
4561 * complaints.c (vcomplaint): Ditto.
4562
4563 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4564
4565 * infcmd.c (attach_command): Move call to target_terminal_inferior
4566 behind loading symbol table.
4567
4568 2004-06-28 Andrew Cagney <cagney@gnu.org>
4569
4570 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4571 change - add back extern deprecated_ui_loop_hook declaration.
4572
4573 2004-06-28 Andrew Cagney <cagney@gnu.org>
4574
4575 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4576 xstrprintf.
4577 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4578 (c_value_of_variable): Ditto.
4579 * utils.c (internal_vproblem): Ditto.
4580 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4581 * remote.c (add_packet_config_cmd): Ditto.
4582 * remote-rdp.c (rdp_set_command_line): Ditto.
4583 * regcache.c (regcache_dump): Ditto.
4584 * frv-tdep.c (new_variant, new_variant): Ditto.
4585 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4586 (fbsd_find_memory_regions): Ditto.
4587 * breakpoint.c (create_thread_event_breakpoint)
4588 (create_breakpoints): Ditto.
4589 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4590 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4591
4592 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4593
4594 * ada-lang.c: Re-indent file, with some massaging to help indent
4595 a bit when the result is otherwise really too ugly.
4596
4597 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4598
4599 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4600 code_addr_p and special_addr_p to 'unsigned int'.
4601
4602 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4603
4604 * i386v4-nat.c: Update copyright year and tweak comment.
4605 (regmap): Remove trailing comma.
4606 (supply_gregset): Rename local variable i to regnum. Call
4607 regcache_raw_supply instead of supply_register.
4608 (fill_gregset): Rename argument regno to regnum. Call
4609 regcache_raw_collect instead of regcache_collect.
4610
4611 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4612
4613 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4614 and special_addr_p.
4615 (frame_id_build, frame_id_build_special): Update comments.
4616 (frame_id_build_wild): New prototype.
4617 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4618 struct frame_id fields.
4619 (frame_id_build_wild): New function.
4620 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4621
4622 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4623
4624 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4625 hppabsd-tdep.c.
4626
4627 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4628
4629 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4630
4631 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4632
4633 * ada-lang.c: Re-indent file.
4634
4635 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4636
4637 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4638 (no_symtab_msg): Likewise.
4639
4640 2004-06-27 Andreas Schwab <schwab@suse.de>
4641
4642 * source.c: Fix whitespace.
4643
4644 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4645
4646 * configure.in: Include <sys/param.h> for td_pcb test.
4647 * configure: Regenerated.
4648
4649 * i386nbsd-nat.c: New file.
4650 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4651 i386obsd-nat.c and i386obsd-tdep.c.
4652 (i386nbsd-nat.o): New dependency.
4653 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4654 bsd-kvm.o.
4655 (LOADLIBES): New variable.
4656 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4657 bsd-kvm.o.
4658 (LOADLIBES): New variable.
4659
4660 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4661 (LOADLIBES): New variable.
4662
4663 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4664 fetching from BSD_KVM_PADDR. Correctly lookup address for
4665 "_thread0".
4666
4667 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4668 "bsd-kvm.h".
4669 (amd64fbsd_supply_pcb): New funcion.
4670 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4671
4672 2004-06-27 <david@streamline-computing.com>
4673
4674 Partial fix for PR cli/1056.
4675 * valarith.c: Check for zero in division and remainder
4676 evaluation.
4677
4678 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4679
4680 * i387-tdep.c: Remove excessive whitespace.
4681
4682 2004-06-26 Andrew Cagney <cagney@gnu.org>
4683
4684 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4685 * gdb-events.h, gdb-events.c: Re-generate.
4686 * tui/tui-hooks.c (tui_install_hooks): Update.
4687 (tui_remove_hooks): Update.
4688 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4689
4690 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4691
4692 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4693 (gregset_t, fpregset_t): Remove typedefs.
4694 (REG_OFFSET): Rename argument.
4695 (amd64bsd_r_reg_offset): Rename from reg_offset.
4696 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4697 Remove functions.
4698 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4699 of reg_offset.
4700 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4701
4702 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4703
4704 * vax-tdep.c: Tweak comment.
4705
4706 Add OpenBSD/hppa support.
4707 * NEWS (New native configurations): Mention OpenBSD/hppa.
4708 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4709 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4710 files.
4711 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4712 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4713 * configure.host: Add hppa*-*-openbsd*.
4714 * configure.tgt: Add hppa*-*-openbsd*.
4715
4716 2004-06-25 Andrew Cagney <cagney@gnu.org>
4717
4718 * defs.h (deprecated_ui_loop_hook): Deprecated.
4719 * wince.c (child_wait): Update.
4720 * win32-nat.c (child_wait): Update.
4721 * v850ice.c (v850ice_wait): Update.
4722 * top.c (deprecated_ui_loop_hook): Update.
4723 * serial.h: Update.
4724 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4725 (do_unix_readchar): Update.
4726 * ser-tcp.c (net_open): Update.
4727 * remote-sim.c (gdb_os_poll_quit): Update.
4728 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4729
4730 2004-06-24 Andrew Cagney <cagney@gnu.org>
4731
4732 * defs.h (deprecated_pre_add_symbol_hook)
4733 (deprecated_post_add_symbol_hook): Deprecated.
4734 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4735 (symbol_file_add_with_addrs_or_offsets): Update references.
4736
4737 2004-06-24 Andrew Cagney <cagney@gnu.org>
4738
4739 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4740 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4741 * wince.c (ui_loop_hook): Delete extern declaration.
4742 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4743 * v850ice.c (ui_loop_hook): Delete extern declaration..
4744 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4745 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4746 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4747 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4748 ui_loop_hook declaration.
4749
4750 2004-06-24 Andrew Cagney <cagney@gnu.org>
4751
4752 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4753 entry_func_highpc fields.
4754 * objfiles.c (init_entry_point_info): Do not clear
4755 entry_func_lowpc and entry_func_highpc.
4756 (objfile_relocate): Do not relocate entry_func_lowpc and
4757 entry_func_highpc.
4758 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4759 entry_func_highpc.
4760 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4761 entry_func_highpc.
4762 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4763 entry_func_lowpc and entry_func_highpc with call to
4764 inside_entry_func.
4765
4766 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4767
4768 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4769 quad-precision floating point arguments in registers.
4770
4771 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4772
4773 From Michael Mueller <m.mueller99@kay-mueller.de>:
4774 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4775 account.
4776
4777 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4778
4779 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4780 to -1.
4781 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4782 untriggered watchpoints to a separate if clause. Update function
4783 comment regarding STOPPED_BY_WATCHPOINT argument.
4784
4785 2004-06-22 Jim Blandy <jimb@redhat.com>
4786
4787 * gdbarch.sh: Doc fix.
4788
4789 2004-06-21 Martin Hunt <hunt@redhat.com>
4790 Kevin Buettner <kevinb@redhat.com>
4791
4792 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4793 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4794 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4795 to set_gdbarch_sp_regnum(). Use cooked register number.
4796 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4797
4798 2004-06-21 Andrew Cagney <cagney@gnu.org>
4799
4800 * gdbarch.sh: When the macro field is empty, do not generate a
4801 macro definition. When the macro field is "=", generate the macro
4802 name from the upper-case function name.
4803 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4804 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4805 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4806 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4807 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4808 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4809 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4810 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4811 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4812 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4813 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4814 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4815 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4816 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4817 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4818 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4819 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4820 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4821 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4822 (DEPRECATED_USE_STRUCT_CONVENTION)
4823 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4824 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4825 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4826 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4827 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4828 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4829 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4830 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4831 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4832 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4833 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4834 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4835 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4836 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4837 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4838 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4839 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4840 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4841
4842 2004-06-21 Andrew Cagney <cagney@gnu.org>
4843
4844 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4845 macro name, and the function rather than macro value. Only wrap
4846 macro print statements in #ifdef. Move format logic to where it
4847 is needed.
4848 * gdbarch.c: Re-generate.
4849
4850 * gdbarch.sh (read): Delete "print_p" and "description", add
4851 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4852 Delete references to print_p.
4853 (TARGET_ARCHITECTURE): Delete print predicate.
4854 * gdbarch.c: Re-generate.
4855
4856 * gdbarch.sh: Check that multi-arch methods do not provide a
4857 macro.
4858 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4859 (print_registers_info, print_float_info, print_vector_info)
4860 (adjust_breakpoint_address, remote_translate_xfer_address)
4861 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4862 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4863 name from the multi-arch definition.
4864
4865 2004-06-20 Andrew Cagney <cagney@gnu.org>
4866
4867 * gdbarch.sh: Sort by the function, instead of macro name.
4868 * gdbarch.c: Re-generate.
4869
4870 2004-06-20 Andrew Cagney <cagney@gnu.org>
4871
4872 * gdbarch.sh: Use the function, instead of macro name in
4873 errors and the log file.
4874 (return_value): Remove stray ":" in spec.
4875
4876 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4877 * gdbarch.h, gdbarch.c: Re-generate.
4878 * Makefile.in (arch-utils.o): Update dependencies.
4879 * values.c (using_struct_return): Move code calling
4880 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4881 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4882 to legacy_return_value, simplify.
4883 * infcmd.c (print_return_value): Move code calling
4884 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4885 to legacy_return_value, simplify.
4886 * infcall.c (call_function_by_hand): Move code calling
4887 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4888 * arch-utils.c: Update copyright. Include "gdbcore.h".
4889 (legacy_return_value): New function.
4890 * arch-utils.h: Update copyright.
4891 (legacy_return_value): Declare.
4892
4893 2004-06-20 Andrew Cagney <cagney@gnu.org>
4894
4895 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4896 * gdbarch.h, gdbarch.c: Re-generate.
4897 * values.c (using_struct_return): Update call.
4898 * mcore-tdep.c: Update comment.
4899 * infcall.c (call_function_by_hand): Update comment.
4900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4901 * arch-utils.h (always_use_struct_convention): Update.
4902 * v850-tdep.c (v850_gdbarch_init): Update.
4903 * sh64-tdep.c (sh64_gdbarch_init): Update.
4904 * sh-tdep.c (sh_gdbarch_init): Update.
4905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4906 * mips-tdep.c (mips_gdbarch_init): Update.
4907 * mcore-tdep.c (mcore_gdbarch_init): Update.
4908 * m32r-tdep.c (m32r_gdbarch_init): Update.
4909 * ia64-tdep.c (ia64_gdbarch_init): Update.
4910 * h8300-tdep.c (h8300_gdbarch_init): Update.
4911 * frv-tdep.c (frv_gdbarch_init): Update.
4912 * cris-tdep.c (cris_gdbarch_init): Update.
4913 * arm-tdep.c (arm_gdbarch_init): Update.
4914 * alpha-tdep.c (alpha_gdbarch_init): Update.
4915
4916 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4917
4918 * PROBLEMS: Add more specific information, and a work-around,
4919 for PR gdb/1458.
4920
4921 2004-06-18 Andrew Cagney <cagney@gnu.org>
4922
4923 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4924 * gdbarch.h, gdbarch.c: Re-generate.
4925 * ada-lang.c (ada_finish_decode_line_1): Update.
4926 * infrun.c (handle_inferior_event): Update.
4927 * infcall.c (find_function_addr): Update.
4928 * linespec.c (minsym_found): Update.
4929 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4930 Update.
4931 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4932 * cli/cli-cmds.c (disassemble_command): Update.
4933 * vax-tdep.c (vax_gdbarch_init): Update.
4934
4935 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4936
4937 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4938
4939 2004-06-17 Andrew Cagney <cagney@gnu.org>
4940
4941 GDB 6.1.1 released from the GDB 6.1 branch.
4942 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4943 * PROBLEMS: Ditto.
4944
4945 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4946
4947 PR gdb/1658
4948 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4949 operation as a uleb128. Found by Michael Coulter.
4950
4951 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4952
4953 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4954 make it non-static.
4955 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4956 to ada-lang.h; this is needed to be able to implement the kill command
4957 in multi-task mode.
4958 (task_ptid): Ditto.
4959 (task_entry): Ditto.
4960 (task_list): Ditto.
4961 (ada_build_task_list): Ditto.
4962
4963 * ada-lang.c: Conditionalize routines and data structures related
4964 to breakpoints, exceptions, completion, and symbol caching on
4965 GNAT_GDB, since these are not yet used in the submitted public sources.
4966 (ada_main_name): Editorial: Move definition out of exception-related
4967 code.
4968
4969 2004-06-15 Andrew Cagney <cagney@gnu.org>
4970
4971 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4972 deprecated_pc_in_call_dummy.
4973
4974 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4975
4976 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4977 bfd_get_section_size_before_reloc or _raw_size.
4978 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4979 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4980 (dwarf2_read_section): Likewise.
4981 * elfread.c (elf_locate_sections): Likewise.
4982 * gcore.c (derive_heap_segment): Likewise.
4983 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4984 * remote-e7000.c (e7000_load): Likewise.
4985 * remote-m32r-sdi.c (m32r_load): Likewise.
4986 * remote-mips.c (mips_load_srec): Likewise.
4987 (pmon_load_fast): Likewise.
4988 * remote.c (compare_sections_command): Likewise.
4989 * symfile.c (add_section_size_callback): Likewise.
4990 (load_section_callback): Likewise.
4991 (pc_in_unmapped_range): Likewise.
4992 (pc_in_mapped_range): Likewise.
4993 (sections_overlap): Likewise.
4994 (list_overlays_command): Likewise.
4995 (simple_overlay_update_1): Likewise.
4996 (simple_overlay_update): Likewise.
4997 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4998 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4999
5000 2004-06-14 Randolph Chung <tausq@debian.org>
5001
5002 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5003 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5004 static.
5005 (hppa_hpux_inferior_created): New function.
5006 (hppa_hpux_init_abi): Register observer.
5007 * symfile.c (hp_cxx_exception_support_initialized)
5008 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5009 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5010
5011 2004-06-14 Randolph Chung <tausq@debian.org>
5012
5013 * MAINTAINERS (Write After Approval): Alphabetize my entry
5014 correctly.
5015
5016 2004-06-14 Andrew Cagney <cagney@gnu.org>
5017
5018 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5019 testsuite maintainer.
5020
5021 2004-06-13 Andrew Cagney <cagney@gnu.org>
5022
5023 * infcmd.c (print_return_value): Fix logic, allow
5024 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5025
5026 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5027 defining any macros.
5028 * gdbarch.h: Re-generate.
5029
5030 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5031 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5032 * gdbarch.h: Re-generate.
5033
5034 * values.c (generic_use_struct_convention): Don't check gcc_p.
5035
5036 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5037 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5038 * gdbarch.h, gdbarch.c: Regenerate.
5039 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5040 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5042 deprecated_max_register_raw_size and
5043 deprecated_max_register_virtual_size.
5044 * v850-tdep.c (v850_gdbarch_init): Ditto.
5045 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5046 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5047 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5048 * cris-tdep.c (cris_gdbarch_init): Ditto.
5049
5050 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5051 * gdbarch.h, gdbarch.c: Re-generate.
5052 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5053 (m68hc11_use_struct_convention): Delete function.
5054 (m68hc11_extract_struct_value_address): Delete function.
5055 (m68hc11_return_value): New function.
5056 (m68hc11_gdbarch_init): Instead of store_return_value,
5057 extract_return_value, return_value_on_stack,
5058 deprecated_extract_struct_value_address and use_struct_convention,
5059 set return_value.
5060 * values.c (using_struct_return): Do not call
5061 RETURN_VALUE_ON_STACK.
5062 * arch-utils.h (generic_return_value_on_stack_not): Delete
5063 declaration.
5064 * arch-utils.c (generic_return_value_on_stack_not): Delete
5065 function.
5066
5067 2004-06-12 Andrew Cagney <cagney@gnu.org>
5068
5069 * values.c (register_value_being_returned): Delete function.
5070 * infcmd.c (legacy_return_value): Delete function.
5071 * infcall.c (call_function_by_hand): Inline
5072 "register_value_being_returned", simplify.
5073 * values.c (using_struct_return): Update comment, refer to
5074 print_return_value instead of register_value_being_returned.
5075 * infcmd.c (print_return_value): Inline calls to
5076 register_value_being_returned and legacy_return_value. Simplify.
5077
5078 2004-06-11 Randolph Chung <tausq@debian.org>
5079
5080 * somread.c (som_symtab_read): Exclude gcc local symbols.
5081
5082 2004-06-11 Randolph Chung <tausq@debian.org>
5083
5084 * infrun.c (handle_inferior_event): Handle the case when a
5085 trampoline ends up in the runtime resolver, and if the trampoline
5086 has no name. Rearrange the code so that all the trampoline
5087 processing happens before other step-out-of-range handling.
5088
5089 2004-06-11 Martin Hunt <hunt@redhat.com>
5090
5091 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5092 has no fpu.
5093
5094 2004-06-10 Andrew Cagney <cagney@gnu.org>
5095
5096 * blockframe.c (legacy_inside_entry_func): Delete.
5097 (legacy_frame_chain_valid): Inline call to
5098 legacy_inside_entry_func, simplify.
5099
5100 2004-06-10 Bob Rossi <bob@brasko.net>
5101
5102 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5103 * dwarf2read.c (partial_die_info): Add dirname field.
5104 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5105 (read_partial_die): Save away DW_AT_comp_dir.
5106 * defs.h (symtab_to_filename): Removed.
5107 * source.c (find_and_open_source): Added.
5108 (open_source_file): Just calls find_and_open_source.
5109 (symtab_to_filename): Removed.
5110 (symtab_to_fullname, psymtab_to_fullname): Added.
5111 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5112 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5113 symtab_to_filename.
5114 * symtab.h (partial_symtab): Add dirname field.
5115 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5116 (mi_cmd_file_list_exec_source_file): Call new function
5117 symtab_to_fullname to find fullname.
5118 (mi_cmd_file_list_exec_source_files): Added.
5119 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5120 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5121
5122 2004-06-10 Andrew Cagney <cagney@gnu.org>
5123
5124 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5125 to generic_use_struct_convention, the default value.
5126
5127 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5128 of abort.
5129
5130 * ns32k-tdep.c (ns32k_push_arguments): New function.
5131 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5132 * infcall.c (call_function_by_hand): Call error instead of
5133 legacy_push_arguments.
5134 * value.h (legacy_push_arguments): Delete declaration.
5135 * valops.c (legacy_push_arguments): Delete function.
5136 (value_push): Delete function.
5137
5138 2004-06-10 Brian Ford <ford@vss.fsi.com>
5139
5140 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5141 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5142 info.
5143 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5144
5145 2004-06-10 Andrew Cagney <cagney@gnu.org>
5146
5147 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5148 * gdbarch.h, gdbarch.c: Re-generate.
5149 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5150 parameters.
5151 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5152 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5153 deprecated_pc_in_call_dummy instead of
5154 DEPRECATED_PC_IN_CALL_DUMMY.
5155 (arm_skip_prologue): Ditto.
5156 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5157 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5158 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5159 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5160 Ditto.
5161 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5162 (sh64_init_extra_frame_info, sh64_get_saved_register)
5163 (sh64_pop_frame): Ditto.
5164 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5165 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5166 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5167 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5168 (h8300_pop_frame): Ditto.
5169 * blockframe.c (legacy_inside_entry_func)
5170 (legacy_frame_chain_valid): Ditto.
5171 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5172 to deprecated_pc_in_call_dummy.
5173
5174 2004-06-09 Andrew Cagney <cagney@gnu.org>
5175
5176 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5177 provide a default value.
5178 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5179 * gdbarch.h, gdbarch.c: Re-generate.
5180 * arch-utils.c (generic_convert_register_p): Rename
5181 legacy_convert_register_p
5182 (legacy_register_to_value, legacy_value_to_register): Delete
5183 functions.
5184 * arch-utils.h (generic_convert_register_p): Rename
5185 legacy_convert_register_p.
5186 (legacy_register_to_value, legacy_value_to_register): Delete
5187 declarations.
5188
5189 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5190 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5191 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5192 * gdbarch.h, gdbarch.c: Re-generate.
5193 * infcmd.c (default_print_registers_info): Simplify.
5194 * findvar.c (value_of_register): Simplify.
5195 * mi/mi-main.c (get_register): Simplify.
5196 * arch-utils.c (legacy_convert_register_p): Always return 0.
5197 (legacy_register_to_value, legacy_value_to_register): Always call
5198 internal_error.
5199
5200 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5201 #ifdef CLEAR_INSN_CACHE code.
5202 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5203 Delete #ifdef CLEAR_DEFERRED_STORES code.
5204
5205 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5206
5207 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5208 copyright.
5209 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5210
5211 * config/mips/mipsv4.mh: Delete file.
5212
5213 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5214 unreferenced macro.
5215 (hpread_adjust_stack_address): Delete declaration.
5216
5217 2004-06-08 Andrew Cagney <cagney@gnu.org>
5218
5219 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5220 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5221 PTRACE_ATTACH / PTRACE_DETACH available call error.
5222 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5223 * infttrace.c (update_thread_state_after_attach, attach, detach):
5224 Remove #ifdef wrappers.
5225 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5226 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5227 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5228 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5229 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5230 * config/nm-linux.h (ATTACH_DETACH): Delete.
5231 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5232 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5233 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5234 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5235 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5236
5237 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5238
5239 * configure.in: Set $configdir to the right OS specific value.
5240 Use value when setting $tcldir and $tkdir.
5241 * configure: Regenerate.
5242
5243 2004-06-06 Paul Brook <paul@codesourcery.com>
5244
5245 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5246 records.
5247
5248 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5249
5250 * ada-lang.c (lookup_symbol_in_language): New function to allow
5251 re-use of another language's symbol lookup code. (Placed here
5252 temporarily while Ada support is being integrated into the public
5253 tree).
5254 (restore_language): New auxiliary function for
5255 lookup_symbol_in_language.
5256 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5257 temporarily while Ada support is being integrated into the public
5258 tree).
5259
5260 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5261
5262 * Makefile.in (check//%): New.
5263
5264 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5265 (mn10300_store_return_value): Rewrite.
5266 (mn10300_type_align): New.
5267 (mn10300_use_struct_convention): Rewrite.
5268 (mn10300_return_value): New, using all of the above.
5269 (mn10300_pop_frame_regular): Add saved_regs_size.
5270 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5271
5272 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5273 regs if PC is on movm.
5274
5275 2004-06-07 Jim Blandy <jimb@redhat.com>
5276
5277 Add native Linux support for the PowerPC E500.
5278 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5279 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5280 all architectures except the E500.
5281 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5282 #definitions.
5283 (struct gdb_evrregset_t): New type.
5284 (have_ptrace_getsetevrregs): New variable.
5285 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5286 fetch_spe_registers): New functions.
5287 (fetch_register): Call fetch_spe_register as appropriate.
5288 Assert that we're only passed raw register numbers.
5289 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5290 Don't fetch gprs if they're pseudoregisters.
5291 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5292 store_spe_registers): New functions.
5293 (store_register): Call store_spe_register as appropriate.
5294 Assert that we're only passed raw register numbers.
5295 (store_ppc_registers): Call store_spe_registers as appropriate.
5296 Don't store gprs if they're pseudoregisters.
5297
5298 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5299
5300 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5301 struct if one exists, even if we are dealing with a zombie thread.
5302
5303 2004-06-07 Andrew Cagney <cagney@gnu.org>
5304
5305 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5306 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5307 Rename PC_REQUIRES_RUN_BEFORE_USE.
5308 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5309 #ifdef.
5310
5311 2004-06-07 Randolph Chung <tausq@debian.org>
5312
5313 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5314 unwinding after sp has been saved to the stack but before the end
5315 of the prologue, and after the fp has been modified but before it has
5316 been saved to the stack.
5317 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5318 Remove superfluous definitions.
5319 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5320
5321 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5322
5323 Committed by Randolph Chung.
5324 * hppa-linux-nat.c: Include the correct version of the header file
5325 depending on the kernel version.
5326
5327 2004-06-06 Randolph Chung <tausq@debian.org>
5328
5329 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5330 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5331
5332 2004-06-06 Randolph Chung <tausq@debian.org>
5333
5334 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5335 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5336 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5337 * hppa-tdep.c (hppa_symbol_address): New function definition.
5338 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5339
5340 2004-06-06 Randolph Chung <tausq@debian.org>
5341
5342 * hppa-tdep.h (struct value): Forward declaration.
5343 (gdbarch_tdep): Define tdep find_global_pointer method.
5344 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5345 associated with the function we are trying to call, and write it
5346 to the gp register.
5347 (hppa32_convert_from_funct_ptr_addr): New function.
5348 (hppa_find_global_pointer): New function.
5349 (hppa_gdbarch_init): Set default find_global_pointer method; set
5350 convert_from_func_ptr_addr method.
5351 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5352 (hppa_linux_init_abi): Set find_global_pointer method.
5353 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5354
5355 2004-06-06 Randolph Chung <tausq@debian.org>
5356
5357 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5358 to struct value *function.
5359 * gdbarch.c: Regenerate.
5360 * gdbarch.h: Likewise.
5361 * infcall.c (call_function_by_hand): Pass entire function value
5362 to push_dummy_call.
5363
5364 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5365 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5366 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5367 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5368 * arm-tdep.c (arm_push_dummy_call): Likewise.
5369 * avr-tdep.c (avr_push_dummy_call): Likewise.
5370 * cris-tdep.c (cris_push_dummy_call): Likewise.
5371 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5372 * frv-tdep.c (frv_push_dummy_call): Likewise.
5373 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5374 * hppa-tdep.c (hppa32_push_dummy_call)
5375 (hppa64_push_dummy_call): Likewise.
5376 * i386-tdep.c (i386_push_dummy_call): Likewise.
5377 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5378 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5379 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5380 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5381 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5382 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5383 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5384 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5385 (ppc64_sysv_abi_push_dummy_call): Likewise.
5386 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5387 (ppc64_sysv_abi_push_dummy_call): Likewise.
5388 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5389 * s390-tdep.c (s390_push_dummy_call): Likewise.
5390 * sh-tdep.c (sh_push_dummy_call_fpu)
5391 (sh_push_dummy_call_nofpu): Likewise.
5392 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5393 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5394 * vax-tdep.c (vax_push_dummy_call): Likewise.
5395
5396 2004-06-04 Jim Blandy <jimb@redhat.com>
5397
5398 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5399 gdbarch argument to register_size.
5400
5401 * rs6000-tdep.c (rs6000_store_return_value): Use
5402 regcache_cooked_write_part instead of
5403 deprecated_write_register_bytes.
5404 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5405 not gdbarch_deprecated_store_return_value.
5406
5407 * ppc-linux-nat.c (store_register, fetch_register): Remove
5408 incorrect assertions. Simplify and generalize handling of
5409 transfers whose sizes are not multiples of, or less than, sizeof
5410 (PTRACE_XFER_TYPE).
5411
5412 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5413
5414 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5415 as a new thread event.
5416 * thread-db.c (thread_get_info_callback): If the thread is a
5417 zombie, return TD_THR_ZOMBIE.
5418 (thread_from_lwp): If thread_get_info_callback returns
5419 TD_THR_ZOMBIE, check if the thread is still on the thread list
5420 and return a -1 ptid if not found.
5421 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5422 change the status to TARGET_WAITKIND_SPURIOUS.
5423
5424 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5425
5426 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5427 double values in little endian mode.
5428
5429 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5430
5431 Committed by Andrew Cagney.
5432 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5433 after last enum constant to avoid error from IBM C
5434 compiler.
5435
5436 2004-06-02 Jim Blandy <jimb@redhat.com>
5437
5438 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5439 to 'message', and make it local to the lone block that uses it.
5440
5441 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5442
5443 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5444
5445 * ada-exp.y: Update copyright notice.
5446 Include block.h.
5447
5448 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5449 SPECIAL_VARIABLE and unify the treatment of these cases.
5450
5451 (write_attribute_call0): Remove.
5452 (write_attribute_call1): Remove.
5453 (write_attribute_calln): Remove.
5454 (save_qualifier): Add missing semicolon.
5455
5456 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5457 temporarily disabled to allow compilation with FSF head version.
5458
5459 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5460 use individual operators (OP_*) for all attributes.
5461 (exp syntax): Use write_int.
5462 Handle STRING literals with OP_STRING.
5463 (variable syntax): Add limit parameter to calls to
5464 write_object_renaming.
5465
5466 (temp_parse_space): New definition to hold entities that need
5467 only live until the next call to ada_parse.
5468 (string_to_operator): Rename fields of ada_opname_table entries.
5469
5470 (write_var_from_sym): Record block.
5471 (write_var_from_name): Minor reformatting.
5472 Make sure saved name is properly encoded in the case of multiple
5473 matches, and set its language to Ada.
5474 Update comment.
5475 Modify to indicate unresolved name as symbol in the UNRESOLVED
5476 namespace, allocated in temp_parse_space.
5477 (write_int): New function.
5478
5479 (write_object_renaming): Add max_depth parameter to limit
5480 chains of object renamings.
5481 Handle case where root of renaming expression is itself a renaming.
5482 Use temp_parse_space for temporary name buffer.
5483 Handle renamings to dereferenced pointers (___XEXA suffices).
5484
5485 (ada_parse, yyerror, string_to_operator,
5486 write_var_from_sym, write_var_from_name, write_attribute_call0,
5487 write_attribute_call1, write_attribute_calln,
5488 write_object_renaming): Protoize.
5489
5490 (_initialize_ada_exp): New function.
5491
5492 * ada-lang.c: Update copyright notice.
5493 General terminology change to conform to GNAT compiler usage:
5494 mangle => encode, demangle => decode
5495 Include gdb_obstack.h.
5496 Include gdb_regex.h
5497 Include frame.h
5498 Include hashtab.h
5499 Include completer.h
5500 Include gdb_stat.h
5501 Include block.h
5502 Include infcall.h
5503
5504 (ADA_RETAIN_DOTS): Make sure this is defined.
5505 (TRUNCATION_TOWARDS_ZERO): Define.
5506 (struct string_vector): Define.
5507 (unresolved_names): Remove definition.
5508 (xnew_string_vector): New function.
5509 (string_vector_append): New function.
5510 (extract_string): Make static.
5511 (ada_unqualified_name): New function.
5512 (add_angle_brackets): New function.
5513 (function_name_from_pc): New function.
5514 (place_on_stack): Rename to ensure_lval.
5515
5516 (ensure_lval): Renamed from place_on_stack.
5517 Make identity on lvals.
5518 Update comment.
5519 (is_nonfunction): New interface.
5520 Only symbols in LOC_CONST class can be enumerals.
5521 (fill_in_ada_prototype): Remove; now independent of language.
5522 (add_defn_to_vec): Add obstack and symtab arguments.
5523 Use obstack to hold collected definitions.
5524 (num_defns_collected): New function.
5525 (defns_collected): New function.
5526 (ada_resolve_subexp): Rename to resolve_subexp.
5527 (resolve_subexp): Renamed from ada_resolve_subexp.
5528 (ada_op_name): Return non-const result.
5529 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5530 other purposes.
5531
5532 (to_fixed_array_type): Add declaration.
5533 (coerce_unspec_val_to_type): Remove offset parameter.
5534 (find_sal_from_funcs_and_line): New interface.
5535 (find_line_in_linetable): Ditto.
5536
5537 (all_sals_for_line): Rename to ada_sals_for_line and make
5538 global.
5539 Add new parameter. When set, do not ask the user to choose the
5540 instance, but use the first one found instead.
5541 Use given line number in returned sals.
5542 Fix comment.
5543 Skip the prologue if funfirstline is set.
5544 Correct for memory leak when 0 lines found.
5545
5546 (value_pos_atr): Use pos_atr.
5547 (pos_atr): New function.
5548 (standard_lookup): Add block parameter.
5549
5550 (makeTimeStart): Remove declaration and uses.
5551 (makeTimeStop): Remove declaration and uses.
5552
5553 (ada_completer_word_break_characters): Allow for VMS.
5554 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5555 (raise_sym_name): New constant.
5556 (raise_unhandled_sym_name): New constant.
5557 (raise_assert_sym_name): New constant.
5558 (process_raise_exception_name): New constant.
5559 (longest_exception_template): New constant.
5560 (warning_limit): New variable to limit warnings during expression
5561 evaluation.
5562 (warnings_issued): New variable to keep track of warnings issued.
5563 (known_runtime_file_name_patterns): New constant.
5564 (known_auxiliary_function_name_patterns): New constant.
5565 (symbol_list_obstack): New variable.
5566
5567 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5568 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5569 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5570 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5571 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5572 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5573 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5574 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5575 and strcmp.
5576
5577 (ada_get_field_index): New function.
5578 (lim_warning): New function.
5579 (ada_translate_error_message): New function.
5580 (MAX_OF_SIZE): New function.
5581 (MIN_OF_SIZE): New function.
5582 (UMAX_OF_SIZE): New function.
5583 (UMIN_OF_SIZE): New function.
5584 (discrete_type_high_bound): New function.
5585 (discrete_type_low_bound): New function.
5586 (base_type): New function.
5587 (do_command): Remove.
5588
5589 (ada_update_initial_language): Use language_ada, not language_unknown.
5590 (ada_encode): Renamed from ada_mangle.
5591 Obey ADA_RETAIN_DOTS.
5592 (ada_decode): Renamed from ada_demangle.
5593 Update coding conventions.
5594 (decoded_names_store): New hash table.
5595 (ada_decode_symbol): New function.
5596 (ada_la_decode): New function.
5597
5598 (modify_general_field): Correct computations of offset and bit
5599 position.
5600 (desc_base_type): Handle ref types, too.
5601 (ada_is_direct_array_type): New function.
5602
5603 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5604 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5605 (ada_is_bogus_array_descriptor,ada_type_of_array,
5606 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5607 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5608 ada_is_array_descriptor_type.
5609
5610 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5611 (ada_is_packed_array_type): Handle pointers or
5612 references to packed arrays as well.
5613 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5614 (decode_packed_array_type): Search for the packed array type
5615 symbol in the currently selected block and associated
5616 superblocks too.
5617 Use lookup_symbol again.
5618
5619 (decode_packed_array): Handle pointers and references.
5620 Update call to coerce_unspec_val_to_type.
5621 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5622 (ada_value_primitive_packed_val): Improve comment.
5623
5624 (ada_index_type): Substitute int type for "undefined".
5625 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5626 ada_array_langth, ada_is_string_type): Use renamed
5627 ada_is_simple_array_type.
5628 (empty_array): New function.
5629
5630 (ada_resolve): Rename to resolve.
5631 (resolve): Make static.
5632 Call renamed resolve_subexp.
5633 Update comment.
5634 (ada_resolve_subexp): Rename to resolve_subexp.
5635 (resolve_subexp): Update comment.
5636 Decomment disabled code.
5637 Add LOC_COMPUTED* cases.
5638 Modify to use temporary struct symbols (marked as being in
5639 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5640 OP_UNRESOLVED_VALUE.
5641 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5642 Add OP_STRING case.
5643 Remove OP_ARRAY.
5644 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5645 Use new ada_lookup_symbol_list interface.
5646 Use new ada_resolve_function interface.
5647 Remove OP_TYPE case.
5648
5649 (ada_args_match): Idiot proof against null actuals.
5650 Use intermediate variables to clarify.
5651 (ada_resolve_function): Update comment and interface.
5652 (mangled_ordered_before): Rename to encoded_ordered_before and
5653 update comment.
5654 (sort_choices): Update comment and interface.
5655 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5656 (user_select_syms): New interface.
5657 Use new sort_choices interface.
5658 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5659 (possible_user_operator_p): Idiot-proof against null values.
5660 (ada_simple_renamed_entity): Don't make cleanup; rely on
5661 caller to free result string.
5662 Remove const from return type.
5663 (make_array_descriptor): Rename uses of place_on_stack to
5664 ensure_lval.
5665 Make sure that arrays are on stack.
5666
5667 (HASH_SIZE): Define.
5668 (struct cache_entry): Define.
5669 (cache_space): Define.
5670 (cache): Define.
5671 (clear_ada_sym_cache): New function.
5672 (find_entry): New function.
5673 (lookup_cached_symbol): New function.
5674 (defn_vector_size): Define.
5675 (cache_symbol): New function.
5676 (defn_symbols): Remove.
5677
5678 (standard_lookup): Use lookup_symbol_in_language to get effect of
5679 C lookup.
5680 Cache results.
5681
5682 (symbol_completion_match): New function.
5683 (symbol_completion_add): New function.
5684 (ada_make_symbol_completion_list): New function.
5685
5686 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5687 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5688 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5689 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5690
5691 (ada_lookup_simple_minsym): New function.
5692 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5693
5694 (add_symbols_from_enclosing_procs): New interface.
5695 Conditionalize more helpfully.
5696 Don't bother if program isn't running.
5697 Use new interface to get_frame_block.
5698 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5699
5700 (remove_extra_symbols): New interface.
5701 (xget_renaming_scope): New function.
5702 (is_package_name): New function.
5703 (renaming_is_visible): New function.
5704 (remove_out_of_scope_renamings): New function.
5705
5706 (ada_lookup_symbol_list): New interface.
5707 Properly reinitialize the symbol list obstack.
5708 Don't call add_symbols_from_enclosing_procs if we start from a
5709 static or global block.
5710 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5711 add_symbols_from_enclosing_procs.
5712 Add symtab data to cached entries.
5713 Handle symbols prefixed with
5714 "standard__" specially; strip prefix and don't look in local symbols.
5715 Do not include out of scope renaming symbols in list of
5716 symbols returned.
5717 Add const to block parameter.
5718 Move check for non-local, non-global symbols earlier.
5719 Remove timing stuff.
5720 (ada_lookup_symbol): New interface.
5721 Find symtab as well.
5722 (ada_lookup_symbol_nonlocal): New function.
5723
5724 (is_name_suffix): Enhance suffix detection to recognize
5725 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5726 (is_dot_digits_suffix): New function.
5727 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5728
5729 (ada_add_block_symbols): New interface. Use obstack to return results
5730 in a vector of struct ada_symbol_infos. Add symtab argument.
5731 Use new interface to add_defn_to_vec.
5732 Remove calls to fill_in_ada_prototype.
5733 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5734
5735 (ada_finish_decode_line_1): Add const qualification to local to fix
5736 warning.
5737 Start looking in static block for functions to avoid attempts
5738 to search frame chain for up-level variables.
5739 Adapt to new ada_sals_for_line interface.
5740 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5741 Handle quoting of the function name inside the spec string.
5742 Skip prologue when funfirstline is set and update the
5743 function documentation to that effect.
5744
5745 (debug_print_lines, debug_print_block, debug_print_blocks,
5746 debug_print_symtab): Remove.
5747
5748 (ada_main_name): New function.
5749 (ada_exception_breakpoint_type): New function.
5750 (is_known_support_routine): New function.
5751 (ada_find_printable_frame): Renamed from find_printable_frame and made
5752 global.
5753 Remove level parameter.
5754 Use new interface to select_frame.
5755
5756 (begin_command): Remove.
5757 (ada_adjust_exception_stop): New function.
5758 (ada_print_exception_stop): New function.
5759 (exception_name_from_cond): New function.
5760 (ada_report_exception_break): Replace disabled code with
5761 conditionalization on GNAT_GDB.
5762 Get the exception name from the condition string.
5763 Remove and move functionality into new functions
5764 ada_print_exception_breakpoint_task and
5765 ada_print_exception_breakpoint_nontask.
5766 (error_breakpoint_runtime_sym_not_found): New function.
5767 (is_runtime_sym_defined): New function.
5768 (ada_breakpoint_rewrite): Uncomment suppressed code.
5769 Use symbolic error-message and runtime-symbol names.
5770 Surround runtime symbol names in quotes.
5771 Allow non-specific breakpoints on exceptions and assertions before
5772 program starts.
5773
5774 (ada_is_tagged_type): Add parameter.
5775 (ada_is_tag_type): New function.
5776 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5777 (ada_variant_discrim_type): Ditto.
5778 (value_tag_from_contents_and_address): New function.
5779 (type_from_tag): New function.
5780 (struct tag_args): New structure used to communicate with
5781 ada_tag_name_1.
5782 (ada_tag_name_1): New function.
5783 (ada_tag_name): New function.
5784
5785 (ada_scan_number): Update comment.
5786 (find_struct_field): New function.
5787 (ada_search_struct_field): Make static.
5788 (ada_value_struct_elt): New version that returns references when
5789 given pointers or references to structs.
5790 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5791 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5792 interface.
5793 (ada_value_ind): Use new ada_to_fixed_value interface.
5794 (ada_coerce_ref): Ditto.
5795 (field_offset): Remove.
5796
5797 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5798 (ada_find_renaming_symbol): New function.
5799 (ada_prefer_type): Prefer named types over unnamed ones.
5800 (variant_field_index): New function.
5801 (contains_variant_part): Removed: subsumed by variant_field_index.
5802 (ada_template_to_fixed_record_type): New function, mostly from
5803 template_to_fixed_record_type.
5804 (template_to_fixed_record_type):
5805 Do not scan the type fields beyond the last one; prevents a
5806 potential SEGV.
5807 Handle case where variant field is listed BEFORE discriminant it
5808 depends on.
5809 Fix calculation of record length when bit length is
5810 not evenly divisible by char length.
5811 Move code to ada_template_to_fixed_record_type and call it.
5812
5813 (template_to_static_fixed_type): Revise comment.
5814 Modify to work on ordinary record types as well as templates,
5815 so as to handle fields that use ___XVE or ___XVU encodings.
5816 (to_record_with_fixed_variant_part): Fill out comment.
5817 Initialize C++ stuff in right type.
5818 Allow case where DVAL is null.
5819 Handle case where variant field is not last.
5820 Fix typo concerning record length.
5821 (to_fixed_record_type): Decomment disabled code.
5822 (to_fixed_record_type): Use variant_field_index instead of
5823 contains_variant_part.
5824 (to_fixed_variant_branch_type): Ditto.
5825 (to_fixed_array_type): Decomment disabled code.
5826 (ada_to_fixed_type): Convert tagged types to the specific type.
5827 Deactivate the size-check for array types in order to avoid
5828 some false size alarms.
5829 (to_static_fixed_type): Decomment disabled code.
5830 Modify to call template_to_static_fixed_type
5831 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5832 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5833 Remove valaddr argument, as it is never really used.
5834 (ada_to_fixed_value): Change interface to act on single struct value*
5835 operand.
5836 (adjust_pc_past_prologue): New function.
5837 (ada_attribute_name): Modify to take enum exp_opcode argument.
5838
5839 (ada_enum_name): Recognize new homonym-distinguishing convention.
5840 Adjust local variable's type to remove compiler warning.
5841 Fix a small problem in the part that unqualifies the enumeration name.
5842 (ada_value_binop): New function.
5843 (ada_value_equal): New function.
5844
5845 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5846 Don't give error message when not doing normal evaluation
5847 and a tagged type doesn't seem to contain a structure member.
5848 Give error message for packed arrays.
5849 For indexing arrays, handle pointers to packed arrays correctly.
5850 Handle case of 'first and 'last attributes of bare integral type
5851 without encoded subtype info.
5852 Remove some unnecessary casts.
5853 Fix uninitialized value of type in computing 'first, 'last, or 'length
5854 of array object.
5855 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5856 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5857 calls.
5858 Attributes are now exp_opcode values.
5859 Correct treatment of 'modulus.
5860 Better error message for taking 'length of wrong kind of type;
5861 improve comment.
5862 Change EVAL_NORMAL to noside for consistency.
5863 Use ada_value_binop for DIV, MOD, REM.
5864 Make special case out of array of length 0, since an argument
5865 of 0 upsets some platforms' malloc.
5866 Use OP_STRING instead of OP_ARRAY.
5867 For slice, add check that we have an array type before extracting
5868 a slice out of it. Avoids a SEGV.
5869 When evaluating an array slice, if the array type is a reference to
5870 an aligner type, then replace the aligner type by the actual type.
5871 Decomment disabled code.
5872 Remove some dead code.
5873 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5874 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5875 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5876 and UNOP_MBR to UNOP_IN_RANGE.
5877 If an array type has a parallel ___XVE type, then use it.
5878 Turn arrays into pointers for lvalue arrays.
5879 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5880 bounds error and handle 0-length slices.
5881 Use lim_warning.
5882 When selecting fields, apply ada_to_fixed_value (because the fields
5883 might have ___XVU or ___XVE encodings even if not dynamic.)
5884 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5885 (ada_is_system_address_type): New function.
5886
5887 (get_var_value): Use new interface to ada_lookup_symbol_list.
5888 (get_int_var_value): New interface.
5889 (to_fixed_range_type): Allow unknown bound, with warning.
5890 (ada_is_modular_type): Decomment disabled code.
5891 (ADA_OPERATORS): New definition.
5892 (ada_operator_length): New function.
5893 (ada_expr_op_name): New function.
5894 (ada_forward_operator_length): New function.
5895 (ada_dump_subexp_body): New function.
5896 (ada_print_subexp): New function.
5897 (ada_exp_descriptor): New constant.
5898 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5899 (ada_language_defn): Add ada_exp_descriptor entry.
5900 Change ada_parse => parse.
5901 Add post-parser entry.
5902 Use ada-specific non-local symbol lookup.
5903 Don't use C-style arrays.
5904 String lower-bound is 1.
5905 Decomment disabled code.
5906 (parse): New function.
5907 New fields ada_translate_error_message, ada_lookup_symbol,
5908 ada_lookup_minimal_symbol.
5909
5910 * ada-lang.h: Update copyright dates.
5911 Replace the mangle/demangle terminology throughout by the
5912 more appropriate encode/decode one.
5913 Include breakpoint.h.
5914 Forward declare struct partial_symbol, struct block.
5915 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5916 (EXTRACT_ADDRESS): Remove.
5917 (EXTRACT_INT): Remove.
5918 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5919 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5920 (MAX_RENAMING_CHAIN_LENGTH): Define.
5921 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5922
5923 (enum task_states): Remove.
5924 ada_task_states: Remove.
5925 (fat_string): Remove.
5926 (struct entry_call): Remove.
5927 (struct task_fields): Remove.
5928 (struct task_entry): Remove.
5929
5930 (struct ada_symbol_info): Define.
5931 (enum ada_attribute): Remove.
5932 (enum ada_operator): Define.
5933
5934 (ada_get_field_index): Declare.
5935 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5936 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5937 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5938 (ada_lookup_symbol_list): New interface.
5939 (ada_decode_symbol): Declare.
5940 (ada_decode): Declare.
5941 (ada_lookup_symbol): New interface.
5942 (ada_update_initial_language): Declare.
5943 (ada_lookup_simple_minsym): Declare.
5944 (user_select_syms): New interface.
5945 (ada_sals_for_line): Declare.
5946 (ada_is_tagged_type): New interface.
5947 (ada_tag_name): Declare.
5948 (ada_lookup_struct_elt_type): Remove declaration.
5949 (ada_search_struct_field): Remove declaration.
5950 (ada_attribute_name): New interface.
5951 (ada_is_system_address_type): Declare.
5952 (ada_to_fixed_value): Remove declaration.
5953 (ada_template_to_fixed_record_type_1): Declare.
5954 (get_int_var_value): New interface.
5955 (ada_find_any_symbol): Declare.
5956 (ada_find_renaming_symbol): Declare.
5957 (ada_mangle): Rename to ada_encode.
5958 (ada_simple_renamed_entity): Remove const.
5959 (ada_main_name): Declare.
5960 (get_current_task): Rename to ada_get_current_task.
5961 (get_entry_number): Remove declaration.
5962 (ada_report_exception_break): Remove declaration.
5963 (ada_print_exception_breakpoint_nontask): Declare.
5964 (ada_print_exception_breakpoint_task): Declare.
5965 (ada_find_printable_frame): Declare.
5966
5967 * ada-lex.l: Update copyright notices.
5968 Use xmalloc and xfree instead of malloc and free.
5969 Use new interface to name_lookup.
5970 Use new interface to
5971 ada_mangle=>ada_encode.
5972 Redo handling of '$...' variable to parallel current treatment
5973 in c-exp.y.
5974 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5975 digit_to_int, strtoulst, processInt, processReal, processId,
5976 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5977 yywrap): Protoize.
5978
5979 (processInt): Use cast to remove harmless warning.
5980 (processReal): Modify to get rid of compiler warning on scan formats.
5981
5982 (processId): Replace xmalloc with obstack_alloc for name and remove
5983 call to ada_name_string_cleanup.
5984 Remove obsolete disabled code.
5985 (name_lookup): Ditto.
5986 New interface.
5987 Use obsavestring on temp_parse_space instead of savestring
5988 on name, and remove call to ada_name_string_cleanup.
5989 Free string returned from ada_simple_renamed_entity.
5990 Use new interface to ada_lookup_symbol_list.
5991 Decomment disabled code.
5992 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5993 not types.
5994 When a type name lookup succeeds as a result of
5995 lookup_primitive_typename, check for regular type entry that has not
5996 yet been read in.
5997 Limit length of chain of renamed symbols we are willing to follow.
5998 Do not break names beginning with "standard__" into segments.
5999 (block_lookup): Use new interface to ada_lookup_symbol_list.
6000
6001 * ada-typeprint.c: Update copyright notice.
6002 (demangled_type_name): Rename to decoded_type_name.
6003 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6004 (print_range_bound): Correct handling of negative
6005 bounds that make the index type looked unsigned under STABS.
6006 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6007 (print_range_type_named): Use the builtin int type if no type
6008 corresponding to the given type name could be found.
6009 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6010 Add some bullet-proofing.
6011 (print_variant_clauses): Allow for variant branches with ___XVU
6012 encodings that are not dynamic fields.
6013 Use new interface to ada_is_tagged_type.
6014 (print_record_type): Allow for fields with ___XVE encodings that
6015 are not dynamic fields.
6016 Use new interface to ada_is_tagged_type.
6017 (ada_print_type): ada_is_array_descriptor =>
6018 ada_is_array_descriptor_type.
6019
6020 * ada-valprint.c: Update copyright notice.
6021 Include gdb_string.h
6022 Include infcall.h
6023 (ui_memcpy): New function.
6024 (ada_print_floating): New function.
6025 (ada_print_str): Order arguments correctly.
6026 Correct handling of empty arrays and arrays of 0-length items.
6027 ada_is_array_descriptor => ada_is_array_descriptor_type
6028 Print values of type System.Address in hexadecimal format.
6029 Use ada_print_floating to print floating-point numbers in Ada format.
6030 Print class tag values with type names.
6031 No longer print the address of reference values. Avoids
6032 a potential confusion.
6033 (ada_value_print): Stop printing the object type for reference
6034 values, but preserve that behavior for access types. Avoids
6035 a potential confusion.
6036 Simplify one conditional expression, as the first part is now
6037 necessarily true.
6038 ada_is_array_descriptor => ada_is_array_descriptor_type
6039 Add check for arrays for null records, and print them by hand.
6040
6041 2004-06-01 Jim Blandy <jimb@redhat.com>
6042
6043 * ppc-tdep.h: Delete unused 'regoff' member.
6044 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6045
6046 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6047
6048 Fix PR symtab/1661.
6049 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6050 (hpread_read_struct_type): Likewise.
6051
6052 2004-06-01 Andrew Cagney <cagney@gnu.org>
6053
6054 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6055 instead of xasprintf.
6056 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6057 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6058 (mi_cmd_data_list_register_names)
6059 (mi_cmd_data_list_changed_registers)
6060 (mi_cmd_data_list_register_values)
6061 (get_register, mi_cmd_data_write_register_values)
6062 (mi_cmd_data_write_register_values)
6063 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6064 (mi_cmd_target_download, mi_cmd_target_select)
6065 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6066 (mi_execute_cli_command, mi_execute_async_cli_command)
6067 (mi_execute_async_cli_command): Ditto.
6068 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6069 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6070
6071 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6072 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6073 error_last_message instead of mi_error_last_message.
6074 * mi/mi-main.c (mi_error_last_message): Delete function.
6075
6076 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6077 "invalid number of columns" error. Delete redundant "out of
6078 memory" check.
6079
6080 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6081
6082 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6083 (gregset_t, fpregset_t): Remove typedefs.
6084 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6085 (REG_OFFSET): Rename argument.
6086 (i386bsd_r_reg_offset): Rename from reg_offset.
6087 (REG_ADDR): Remove macro.
6088 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6089 functions.
6090 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6091 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6092 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6093 instead of supply_gregset.
6094 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6095 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6096 instead of fill_gregset.
6097 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6098
6099 * i386bsd-nat.c: Don't include "gregset.h".
6100 (supply_gregset, fill_gregset): Make static.
6101 (supply_fpregset, fill_fpregset): Remove.
6102 * Makefile.in (i386bsd-nat.o): Update dependencies.
6103
6104 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6105
6106 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6107 "gdb_assert.h". Con't include "gregset.h".
6108 (fbsd_make_corefile_notes): Use regset-based core file support
6109 instead off fill_gregset and fill_fpregset.
6110 * Makefile.in (fbsd-proc.o): Update dependencies.
6111
6112 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6113 instructions.
6114 (m88k_frame_prev_register): Simplify code a bit.
6115
6116 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6117 (amd64_collect_fpregset): New function.
6118 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6119
6120 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6121
6122 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6123 (i386_collect_gregset): New function.
6124 (i386_supply_fpregset): Adjust comment.
6125 (i386_collect_fpregset): New function.
6126 (i386_regset_from_core_section): Use i386_collect_gregset and
6127 i386_collect_fpregset.
6128
6129 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6130 handle VALUEP being null.
6131
6132 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6133
6134 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6135
6136 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6137
6138 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6139 assembler in OpenBSD 3.5-current.
6140 (amd64obsd_sigcontext_addr): Likewise.
6141
6142 2004-05-28 Jim Blandy <jimb@redhat.com>
6143
6144 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6145 register set, so our regcache isn't declared "legacy" and our E500
6146 pseudoregister read and write functions aren't ignored.
6147 (rs6000_register_byte, rs6000_register_raw_size,
6148 rs6000_register_virtual_type, rs6000_register_convertible,
6149 rs6000_register_convert_to_virtual,
6150 rs6000_register_convert_to_raw): Deleted.
6151 (rs6000_register_type, rs6000_convert_register_p,
6152 rs6000_register_to_value, rs6000_value_to_register): New
6153 functions.
6154 (rs6000_gdbarch_init): Don't register
6155 gdbarch_deprecated_register_size,
6156 gdbarch_deprecated_register_bytes,
6157 gdbarch_deprecated_register_byte,
6158 gdbarch_deprecated_register_raw_size,
6159 gdbarch_deprecated_register_virtual_type,
6160 gdbarch_deprecated_register_convertible,
6161 gdbarch_deprecated_register_convert_to_virtual, or
6162 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6163 register gdbarch_register_type, gdbarch_convert_register_p,
6164 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6165
6166 2004-05-26 Jim Blandy <jimb@redhat.com>
6167
6168 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6169 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6170 functions, updated to match the register numberings used in GCC.
6171 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6172 rs6000_dwarf2_reg_to_regnum as register number conversions
6173 functions for STABS and Dwarf2.
6174
6175 2004-05-26 Randolph Chung <tausq@debian.org>
6176
6177 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6178 in header file.
6179
6180 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6181
6182 * NEWS: Document new "start" command.
6183
6184 2004-05-25 Randolph Chung <tausq@debian.org>
6185
6186 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6187 hppa-linux.
6188
6189 2004-05-25 Randolph Chung <tausq@debian.org>
6190
6191 * hppa-hpux-tdep.c (offsetof): Define.
6192 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6193 (hppa32_hpux_frame_base_before_sigtramp)
6194 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6195 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6196 (hppa64_hpux_frame_base_before_sigtramp)
6197 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6198 functions.
6199 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6200 (hppa_hpux_sigtramp_frame_unwind_cache)
6201 (hppa_hpux_sigtramp_frame_this_id)
6202 (hppa_hpux_sigtramp_frame_prev_register)
6203 (hppa_hpux_sigtramp_frame_unwind)
6204 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6205 (hppa_hpux_init_abi): Register sigtramp unwinder.
6206 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6207
6208 2004-05-25 Randolph Chung <tausq@debian.org>
6209
6210 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6211 and multiple stack unwinds.
6212 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6213
6214 2004-05-25 Andrew Cagney <cagney@gnu.org>
6215
6216 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6217 * symfile-mem.h: Delete file.
6218 * symfile-mem.c: Do not include "symfile-mem.h".
6219 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6220 "struct bfd_section". When an error do not bother returning NULL.
6221 (add_symbol_file_from_memory_command): Use "struct bfd" and
6222 "struct bfd_section".
6223 * Makefile.in (symfile_mem_h): Delete.
6224 (symfile-mem.o): Update dependencies.
6225
6226 2004-05-25 Nick Roberts <nickrob@gnu.org>
6227
6228 * gdb-mi.el: New file.
6229
6230 2004-05-25 Andrew Cagney <cagney@gnu.org>
6231
6232 * inftarg.c: Include "observer.h".
6233 (child_attach, child_create_inferior): Notify inferior_created.
6234 * corelow.c: Include "observer.h".
6235 (core_open): Notify inferior_created.
6236 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6237
6238 2004-05-25 Andrew Cagney <cagney@gnu.org>
6239
6240 * target.h (struct target_ops): Add from_tty to
6241 to_create_inferior.
6242 (target_create_inferior, find_default_create_inferior): Update.
6243 * infcmd.c (run_command): Update.
6244 * wince.c (child_create_inferior): Update.
6245 * win32-nat.c (child_create_inferior): Update.
6246 * uw-thread.c (uw_thread_create_inferior): Update.
6247 * thread-db.c (thread_db_create_inferior): Update.
6248 * target.c (debug_to_create_inferior)
6249 (find_default_create_inferior): Update.
6250 (maybe_kill_then_create_inferior): Update.
6251 * sol-thread.c (sol_thread_create_inferior): Update.
6252 * remote.c (extended_remote_async_create_inferior)
6253 (extended_remote_create_inferior): Update.
6254 * remote-vx.c (vx_create_inferior): Update.
6255 * remote-st.c (st2000_create_inferior): Update.
6256 * remote-sim.c (gdbsim_create_inferior): Update.
6257 * remote-sds.c (sds_create_inferior): Update.
6258 * remote-rdp.c (remote_rdp_create_inferior): Update.
6259 * remote-rdi.c (arm_rdi_create_inferior): Update.
6260 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6261 * remote-e7000.c (e7000_create_inferior): Update.
6262 * procfs.c (procfs_create_inferior): Update.
6263 * ocd.c (ocd_create_inferior): Update.
6264 * ocd.h (ocd_create_inferior): Update.
6265 * nto-procfs.c (procfs_create_inferior): Update.
6266 * monitor.c (monitor_create_inferior): Update.
6267 * lin-lwp.c (lin_lwp_create_inferior): Update.
6268 * inftarg.c (child_create_inferior): Update.
6269 * hpux-thread.c (hpux_thread_create_inferior): Update.
6270 * gnu-nat.c (gnu_create_inferior): Update.
6271
6272 2004-05-25 Andrew Cagney <cagney@gnu.com>
6273
6274 * MAINTAINERS: Update e-mail address.
6275
6276 2004-05-24 Randolph Chung <tausq@debian.org>
6277
6278 * thread.c (info_threads_command, thread_apply_all_command)
6279 (thread_apply_command, thread_command, do_captured_thread_select):
6280 Remove HPUXHPPA-specific code.
6281
6282 2004-05-24 Randolph Chung <tausq@debian.org>
6283
6284 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6285 unused symbols.
6286 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6287 references.
6288
6289 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6290
6291 * infcmd.c (kill_if_already_running): New function, extracted
6292 from run_command().
6293 (run_command): Replace extracted code by call to
6294 kill_if_already_running().
6295 (start_command): New function.
6296 (_initialize_infcmd): Add "start" command.
6297
6298 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6299
6300 Add OpenBSD/m88k support.
6301 * NEWS (New native configurations): Mention OpenBSD/m88k.
6302 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6303 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6304 * Makefile.in (m88k_tdep_h): New variable.
6305 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6306 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6307 * configure.host: Add m88*-*-openbsd*.
6308 * configure.tgt: Add m88*-*-openbsd*.
6309
6310 2004-05-24 Jim Blandy <jimb@redhat.com>
6311
6312 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6313 to approve changes.
6314
6315 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6316
6317 * symtab.c (fixup_section): Search section table when lookup by
6318 name fails.
6319
6320 2004-05-24 Randolph Chung <tausq@debian.org>
6321
6322 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6323 be "small_struct".
6324
6325 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6326
6327 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6328 register number in regcache_raw_collect call.
6329 (m68kbsd_collect_fpregset): Likewise.
6330 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6331
6332 * regset.h (struct regset): Add back `regset' member.
6333
6334 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6335
6336 * configure.in: Check for td_pcb in `struct thread'.
6337 * configure, config.in: Regenerated.
6338
6339 * dpx2-nat.c: Remove file.
6340 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6341 (dpx2-nat.o): Remove dependencies.
6342
6343 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6344 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6345 (amd64obsd_supply_pcb): New function.
6346 (_initialize_amd64obsd_nat): Enable libkvm interface.
6347 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6348 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6349 (LOADLIBES): New variable.
6350
6351 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6352 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6353 (sparc32nbsd_supply_pcb): New function.
6354 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6355 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6356 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6357 (LOADLIBES): New variable.
6358
6359 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6360
6361 * bsd-kvm.c, bsd-kvm.h: New files.
6362 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6363 "bsd-kvm.h".
6364 (i386fbsd_supply_pcb): New function.
6365 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6366 (i386fbsd-nat.o): Update dependencies.
6367 (bsd_kvm_h): New variable.
6368 (bsd-kvm.o): New dependency.
6369 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6370 (LOADLIBES): New variable.
6371
6372 * regset.c: Tweak comment.
6373 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6374 macro.
6375 * regset.h: Update copyright year.
6376 (struct regset): Remove `descr' member, add `gdbarch' member.
6377 (regset_alloc): Adjust prototype and comment.
6378 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6379 (i386_supply_fpregset): Likewise.
6380 (i386_regset_from_core_section): Update call to regset_alloc.
6381 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6382 REGSET->arch.
6383 (i386obsd_aout_regset_from_core_section): Update call to
6384 regset_alloc.
6385 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6386 REGSET->arch.
6387 (i386nbsd_aout_regset_from_core_section): Update call to
6388 regset_alloc.
6389 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6390 REGSET->arch.
6391 (amd64_regset_from_core_section): Update call to regset_alloc.
6392 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6393 REGSET->arch.
6394 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6395 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6396 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6397 (sparc32nbsd_init_abi): Update call to regset_alloc.
6398 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6399 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6400 (sparc64obsd_init_abi): Update call to regset_alloc.
6401 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6402 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6403 (sparc64nbsd_init_abi): Update call to regset_alloc.
6404 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6405 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6406 (sparc64fbsd_init_abi): Update call to regset_alloc.
6407
6408 2004-05-22 Jim Blandy <jimb@redhat.com>
6409
6410 * ppc-tdep.h (spe_register_p): New declaration.
6411 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6412 ppc_spefscr_regnum.
6413 * rs6000-tdep.c (spe_register_p): New function.
6414 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6415 spefscr.
6416 (rs6000_gdbarch_init): Initialize the new members of the tdep
6417 structure.
6418
6419 2004-05-21 Jim Blandy <jimb@redhat.com>
6420
6421 * ppc-linux-nat.c (fetch_register): Move code back to be next
6422 to the comment that describes it. (Moved code, instead of
6423 comment, for symmetry with store_register.)
6424
6425 Allocate regset structures in the gdbarch's obstack, not using
6426 xmalloc.
6427 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6428 Add 'arch' argument. Allocate the regset on arch's obstack, not
6429 using xmalloc.
6430 * regset.h (regset_alloc): Update declaration.
6431 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6432 gdbarch argument.
6433 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6434 * i386-tdep.c (i386_regset_from_core_section): Same.
6435 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6436 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6437 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6438 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6439 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6440 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6441
6442 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6443
6444 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6445
6446 2004-05-21 Jim Blandy <jimb@redhat.com>
6447
6448 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6449 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6450
6451 2004-05-20 Jim Blandy <jimb@redhat.com>
6452
6453 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6454
6455 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6456
6457 * regset.h: Make prototype const-correct.
6458 * regset.c (regset_xmalloc): Make const-correct.
6459
6460 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6461
6462 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6463 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6464 (symbol_search_name): Declare.
6465
6466 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6467 (iter_name_next_hashed): Ditto.
6468 (iter_name_next_linear): Ditto.
6469 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6470
6471 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6472 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6473 (symbol_search_name): New function.
6474
6475 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6476
6477 * minsyms.c (build_minimal_symbol_hash_tables): Change
6478 test for adding to demangled hash table to check for difference
6479 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6480
6481 2004-05-19 Jim Blandy <jimb@redhat.com>
6482
6483 Use a constructor function to create regset structures.
6484 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6485 (struct regset): Use supply_regset_ftype. Add new
6486 'collect_regset' member.
6487 (regset_xmalloc): New declaration.
6488 * regset.c: New file.
6489 * am64-tdep.c (amd64_regset_from_core_section): Use
6490 regset_xmalloc to construct regset structures.
6491 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6492 * i386-tdep.c (i386_regset_from_core_section): Same.
6493 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6494 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6495 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6496 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6497 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6498 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6499 * Makefile.in (COMMON_OBS): Add regset.o.
6500 (regset.o): New rule.
6501
6502 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6503
6504 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6505 and pthread_cond_wait.c.
6506
6507 2004-05-18 Jim Blandy <jimb@redhat.com>
6508
6509 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6510 before the mach-specific switch, and then let the individual cases
6511 override the defaults, rather than leaving them uninitialized
6512 until the switch and then setting them in each case.
6513
6514 2004-05-18 Randolph Chung <tausq@debian.org>
6515
6516 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6517 millicode functions.
6518
6519 2004-05-18 Randolph Chung <tausq@debian.org>
6520
6521 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6522 references to dld_flags_buffer consistent.
6523
6524 2004-05-18 Randolph Chung <tausq@debian.org>
6525
6526 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6527 it for unwinding the stack.
6528
6529 2004-05-18 Randolph Chung <tausq@debian.org>
6530
6531 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6532 Undefine these so we can overide them using gdbarch.
6533
6534 2004-05-18 Randolph Chung <tausq@debian.org>
6535
6536 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6537 handling for 64-bit HPUX (elf).
6538
6539 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6540
6541 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6542 constants.
6543 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6544 * ia64-tdep.c (examine_prologue): Likewise.
6545 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6546 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6547
6548 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6549
6550 * vax-tdep.c (vax_return_value): Implement
6551 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6552
6553 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6554
6555 * vax-tdep.c (vax_return_value): Fix typo.
6556
6557 2004-05-17 Andrew Cagney <cagney@redhat.com>
6558
6559 * MAINTAINERS: Mark Salter was also responsible for
6560 testsuite/config/
6561
6562 * NEWS: Mention signal fixes.
6563
6564 2004-05-17 Randolph Chung <tausq@debian.org>
6565
6566 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6567 check to see if we are unwinding an export stub. Export stubs clobber
6568 the %rp in the call path and stores the original rp in a stack slot.
6569
6570 2004-05-17 Jim Blandy <jimb@redhat.com>
6571
6572 * MAINTAINERS: Update address for J.T. Conklin.
6573
6574 2004-05-17 Randolph Chung <tausq@debian.org>
6575
6576 * hppa-tdep.c: Remove superfluous #include's.
6577 * Makefile.in (hppa-tdep.o): Update dependencies.
6578
6579 2004-05-17 Randolph Chung <tausq@debian.org>
6580
6581 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6582 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6583 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6584 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6585 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6586 Remove static function declarations.
6587
6588 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6589
6590 * alphabsd-nat.c: Update copyright year.
6591 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6592
6593 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6594 and M68K_A2_REGNUM.
6595
6596 * m68k-tdep.c (m68k_svr4_return_value): Implement
6597 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6598
6599 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6600
6601 * sol-thread.c Update copyright year. Fix various coding
6602 standards violations. Tweak a few comments.
6603 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6604 Delete prototypes.
6605
6606 2004-05-15 Randolph Chung <tausq@debian.org>
6607
6608 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6609 as pointer instead of array reference since HPUX compiler does
6610 not accept unsized array arguments.
6611 * somsolib.c (dld_flags_buffer): Use constant array size.
6612
6613 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6614
6615 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6616 offset with decimal offset.
6617 (amd64obsd_sigcontext_addr): Return correct address for entire
6618 signal trampoline.
6619
6620 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6621 instead of get_frame_base.
6622
6623 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6624 (fill_gregset): Use regcache_raw_collect.
6625
6626 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6627 ppcobsd-tdep.c.
6628
6629 * config/sparc/tm-nbsd64.h: Remove file.
6630 * config/tm-sunos.h: Remove file.
6631
6632 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6633
6634 * rs6000-tdep.c (store_param_on_stack_p): New function,
6635 an improved version of some code extracted from skip_prologue().
6636 (skip_prologue): Use store_param_on_stack_p() to detect
6637 instructions saving a parameter on the stack. Detect when r0
6638 is used to save a parameter.
6639 Do not mark "li rx, SIMM" instructions as part of the prologue,
6640 unless the following instruction is also part of the prologue.
6641
6642 2004-05-14 Andrew Cagney <cagney@redhat.com>
6643
6644 * infrun.c (handle_inferior_event): Simplify
6645 STEP_OVER_UNDEBUGGABLE.
6646
6647 * infrun.c (handle_step_into_function): Delete function.
6648 (handle_inferior_event): Inline calls to
6649 handle_step_into_function.
6650
6651 2004-05-14 Jerome Guitton <guitton@gnat.com>
6652
6653 * rs6000-nat.c: Fix a comment.
6654
6655 2004-05-12 David Anderson <davea@sgi.com>
6656
6657 Committed by Jim Blandy <jimb@redhat.com>:
6658 * regcache.c (struct regcache_descr): fix comment spelling.
6659
6660 2004-05-13 J. Brobecker <brobecker@gnat.com>
6661
6662 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6663 Fixes a link link failure.
6664
6665 2004-05-13 J. Brobecker <brobecker@gnat.com>
6666
6667 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6668 error that was causing the build to fail.
6669
6670 2004-05-13 J. Brobecker <brobecker@gnat.com>
6671
6672 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6673 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6674
6675 2004-05-13 Andrew Cagney <cagney@redhat.com>
6676
6677 * infrun.c (handle_inferior_event): Check for
6678 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6679 calls. Update comments.
6680
6681 2004-05-13 Jim Blandy <jimb@redhat.com>
6682
6683 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6684 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6685 (store_regs_user_thread, store_regs_kernel_thread): Use
6686 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6687 * ppc-linux-nat.c (fill_gregset): Same.
6688 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6689 (ppc_linux_sigtramp_cache): Same.
6690 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6691 (ppcnbsd_sigtramp_cache_init): Same.
6692 * rs6000-nat.c (fetch_core_registers): Same.
6693 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6694 (rs6000_frame_cache): Same.
6695
6696 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6697 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6698 of assuming that the gprs are numbered starting with zero.
6699 * ppc-linux-nat.c (fill_gregset): Same.
6700 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6701 * ppcnbsd-nat.c (getregs_supplies): Same.
6702 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6703 * rs6000-nat.c (fetch_core_registers): Same.
6704 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6705
6706 2004-05-07 Michael Snyder <msnyder@redhat.com>
6707
6708 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6709 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6710
6711 2004-05-13 Andrew Cagney <cagney@redhat.com>
6712
6713 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6714
6715 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6716
6717 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6718 base_address for shared libraries.
6719
6720 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6721
6722 * MAINTAINERS (write after approval): Add myself.
6723
6724 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6725
6726 * breakpoint.c (bpstat_stop_status): Add new argument
6727 STOPPED_BY_WATCHPOINT. Use it instead of testing
6728 target_stopped_data_address agaist 0 to check whether
6729 or not we stopped due to a hardware watchpoint.
6730 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6731 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6732 with new argument.
6733
6734 2004-05-12 Jim Blandy <jimb@redhat.com>
6735
6736 * configure.in: When checking whether we should use the -bbigtoc
6737 option, don't forget to restore the original value of LDFLAGS.
6738 * configure: Regenerated.
6739
6740 2004-05-12 Andrew Cagney <cagney@redhat.com>
6741
6742 * thread.c (load_infrun_state): Delete step_sp.
6743 * infrun.c (context_switch): Ditto.
6744 * inferior.h (step_sp): Ditto.
6745 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6746 * gdbthread.h (struct thread_info, save_infrun_state)
6747 (restore_infrun_state): Ditto.
6748
6749 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6750
6751 * MAINTAINERS (write after approval): Add myself.
6752
6753 2004-05-12 Andrew Cagney <cagney@redhat.com>
6754
6755 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6756 eliminate reference to step_sp.
6757 (struct execution_control_state, init_execution_control_state)
6758 (handle_inferior_event, keep_going): Delete update_step_sp and
6759 step_sp.
6760 * infcmd.c (step_sp): Note that variable is unused.
6761
6762 2004-05-11 Andrew Cagney <cagney@redhat.com>
6763
6764 * infrun.c (step_over_function): Delete function.
6765 (handle_step_into_function): Use insert_step_resume_breakpoint.
6766 (insert_step_resume_breakpoint): Fix assertion.
6767
6768 2004-05-11 Nick Roberts <nickrob@gnu.org>
6769
6770 * utils.c (defaulted_query): Just use the normal query input type
6771 when printing the annotations.
6772
6773 2004-05-11 Andrew Cagney <cagney@redhat.com>
6774
6775 * infrun.c (handle_inferior_event): Simplify code handling
6776 step-into or return-from a signal trampoline.
6777
6778 2004-05-11 Andrew Cagney <cagney@redhat.com>
6779
6780 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6781 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6782
6783 2004-05-10 Jim Blandy <jimb@redhat.com>
6784
6785 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6786 with a call to internal_error.
6787
6788 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6789 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6790 processor variant lacks those registers.
6791 (ppc_floating_point_unit_p): Change description to make it clear
6792 that this returns info about the ISA, not the ABI.
6793 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6794 return true or false by checking tdep->ppc_fp0_regnum and
6795 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6796 arch/mach switching done in rs6000_gdbarch_init; it's better to
6797 keep that logic there, and just check the results here.
6798 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6799 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6800 floating-point registers.
6801 (ppc_supply_fpregset, ppc_collect_fpregset)
6802 (rs6000_push_dummy_call, rs6000_extract_return_value)
6803 (rs6000_store_return_value): Assert that we have floating-point
6804 registers.
6805 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6806 (rs6000_frame_cache): Don't note the locations at which
6807 floating-point registers were saved if we have no fprs.
6808 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6809 registers.
6810 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6811 (store_regs_user_thread, store_regs_kernel_thread): Only call
6812 supply_fprs / fill_fprs if we actually have floating-point
6813 registers.
6814 (special_register_p): Check ppc_fpscr_regnum before matching
6815 against it.
6816 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6817 supply / collect fpscr if we don't have it.
6818 * ppc-bdm.c: #include "gdb_assert.h".
6819 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6820 have floating-point registers, since I can't test this code on
6821 FP-free systems to adapt it.
6822 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6823 fpscr and floating point register numbers if they don't exist.
6824 (fetch_register): Assert that we have floating-point registers
6825 before we reach the code that handles them.
6826 (store_register): Same. And use tdep instead of calling
6827 gdbarch_tdep again.
6828 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6829 don't have them.
6830 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6831 fprs and fpscr if we don't have them.
6832 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6833 don't have them.
6834 * ppcnbsd-nat.c: #include "gdb_assert.h".
6835 (getfpregs_supplies): Assert that we have floating-point registers.
6836 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6837 * ppcobsd-tdep.c: #include "gdb_assert.h".
6838 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6839 have floating-point registers.
6840 * rs6000-nat.c (regmap): Don't match against the fpscr and
6841 floating point register numbers if they don't exist.
6842 (fetch_inferior_registers, store_inferior_registers,
6843 fetch_core_registers): Only fetch / store / supply the
6844 floating-point registers and the fpscr if we have them.
6845 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6846 (ppcobsd-tdep.o): Update dependencies.
6847
6848 2004-05-10 Andrew Cagney <cagney@redhat.com>
6849
6850 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6851 (context_switch): Do not switch through_sigtramp_breakpoint.
6852 * gdbthread.h (save_infrun_state, load_infrun_state)
6853 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6854 and structure member.
6855 * thread.c (load_infrun_state, save_infrun_state): Update.
6856
6857 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6858
6859 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6860
6861 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6862
6863 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6864 throughout.
6865 * aclocal.m4: Regenerate.
6866
6867 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6868
6869 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6870
6871 2004-05-10 Andrew Cagney <cagney@redhat.com>
6872
6873 * infrun.c (check_sigtramp2): Delete function.
6874 (handle_inferior_event): When single stepping, and taking a
6875 signal, set a breakpoint at the signal return address. Delete
6876 redundant calls to check_sigtramp2.
6877 (insert_step_resume_breakpoint): New function.
6878 (through_sigtramp_breakpoint, handle_inferior_event)
6879 (follow_exec, wait_for_inferior, fetch_inferior_event)
6880 (currently_stepping, keep_going): Delete most uses of
6881 through_sigtramp_breakpoint, not that it should be deleted.
6882 (delete_breakpoint_current_contents): Delete function.
6883
6884 2004-05-10 Randolph Chung <tausq@debian.org>
6885
6886 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6887 target.
6888 * config/pa/tm-linux.h: New file.
6889
6890 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6891
6892 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6893 of prefixes. Don't print the prefix twice in the CLI.
6894
6895 2004-05-10 Jim Blandy <jimb@redhat.com>
6896
6897 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6898 collect all the gprs.
6899
6900 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6901 loop collecting gprs.
6902
6903 2004-05-09 Andrew Cagney <cagney@redhat.com>
6904
6905 * remote-vx.c (net_step): Delete step-range code.
6906 * remote.c (remote_resume, init_all_packet_configs)
6907 (set_remote_protocol_E_packet_cmd)
6908 (show_remote_protocol_E_packet_cmd)
6909 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6910 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6911 (show_remote_protocol_e_packet_cmd): Ditto.
6912
6913 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6914
6915 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6916
6917 * hppa-tdep.h: Update copyright year.
6918 (struct trad_frame_saved_reg): Add opaque declaration.
6919
6920 * amd64-tdep.c (amd64_return_value): Implement
6921 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6922
6923 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6924 (m68k_value_to_register): New functions.
6925 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6926 value_to_register.
6927
6928 * defs.h (enum return_value_convention): Add
6929 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6930 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6931 * infcmd.c (legacy_return_value): New function.
6932 (print_return_value): Rwerite to implement
6933 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6934 * values.c (using_struct_return): Check for inequality to
6935 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6936 RETURN_VALUE_STRUCT_CONVENTION.
6937 * i386-tdep.c (i386_return_value): Implement
6938 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6939
6940 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6941 include "symtab.h", "opcode/vax.h" and "inferior.h".
6942 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6943 to read_memory_unsigned_integer.
6944 (vax_gdbarch_init): Reorder.
6945 (_initialize_vax_tdep): Spell out prototype.
6946 * Makefile.in (vax-tdep.o): Update dependencies.
6947
6948 2004-05-08 Andrew Cagney <cagney@redhat.com>
6949
6950 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6951 * target.c (target_detach, target_disconnect): Ditto.
6952
6953 * infcall.c (call_function_by_hand): When no
6954 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6955 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6956 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6957 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6958 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6959
6960 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6961 * gdbarch.h, gdbarch.c: Re-generate.
6962 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6963 deprecated_fix_call_dummy.
6964 * v850-tdep.c (v850_gdbarch_init): Ditto.
6965 * infcall.c (call_function_by_hand): Do not call
6966 DEPRECATED_FIX_CALL_DUMMY.
6967
6968 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6969 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6970 * gdbarch.h, gdbarch.c: Re-generate.
6971 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6972 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6973 deprecated_sizeof_call_dummy_words.
6974 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6976 * v850-tdep.c (v850_gdbarch_init): Ditto.
6977 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6978 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6980 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6981 * arch-utils.h (legacy_call_dummy_words)
6982 (legacy_sizeof_call_dummy_words): Delete declarations.
6983 * arch-utils.c (legacy_call_dummy_words)
6984 (legacy_sizeof_call_dummy_words): Delete variables.
6985
6986 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6989 * infcall.c (call_function_by_hand): Eliminate call to
6990 DEPRECATED_PUSH_DUMMY_FRAME.
6991 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6992 push_dummy_frame.
6993 (ns32k_push_dummy_frame): Delete function.
6994
6995 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6996 deprecated_call_dummy_breakpoint_offset or
6997 deprecated_call_dummy_start_offset.
6998 * dummy-frame.c, arm-tdep.c: Update comments.
6999 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7000 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7001 * gdbarch.h, gdbarch.c: Re-generate.
7002
7003 * infcall.c (legacy_push_dummy_code): Delete function.
7004 (push_dummy_code): Delete call.
7005
7006 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7007 * gdbarch.h, gdbarch.c: Re-generate.
7008 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7009 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7010 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7011 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7012
7013 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7014 (struct frame_info): Delete opaque declaration.
7015 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7016 * frame.c (get_frame_type): Delete call.
7017
7018 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7019 pc_in_call_dummy.
7020 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7021 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7022
7023 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7024
7025 * alphanbsd-tdep.c: Include "gdb_string.h".
7026 * armnbsd-tdep.c: Update copyright year.
7027 Include "gdb_string.h".
7028 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7029 dependencies.
7030
7031 * delta68-nat.c: Remove file.
7032 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7033 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7034 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7035 (delta68-nat.o): Remove dependency.
7036
7037 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7038 function.
7039 (m68k_gdbarch_init): Don't set
7040 deprecated_frameless_function_invocation.
7041
7042 2004-05-07 Randolph Chung <tausq@debian.org>
7043
7044 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7045 read_memory_nobpt for code reading when doing frame unwinding.
7046 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7047
7048 2004-05-07 Randolph Chung <tausq@debian.org>
7049
7050 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7051 instead of sp, handle sigaltstack case.
7052 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7053 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7054 signal handler and not that of the caller.
7055 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7056 hppa_linux_sigtramp_find_sigcontext.
7057
7058 2004-05-07 Randolph Chung <tausq@debian.org>
7059
7060 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7061 hppa-linux-nat.c.
7062 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7063 * hppa-linux-nat.c (fetch_register, store_register): Define.
7064 (fetch_inferior_registers, store_inferior_registers): Define.
7065 (supply_gregset): Add comment and clean up some unneeded code.
7066 (fill_gregset): Add comment and fix so that it saves registers in
7067 the right place in the gregset.
7068 (fill_fpregset): Fix buffer overrun problem.
7069 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7070
7071 2004-05-07 Randolph Chung <tausq@debian.org>
7072
7073 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7074 do common handling of the pcoqt register.
7075 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7076 to use helper function.
7077 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7078 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7079 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7080 generic fallback unwinder when all else fails.
7081 (hppa_gdbarch_init): Add fallback sniffer.
7082 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7083 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7084 to use helper function.
7085
7086 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7087
7088 * config/djgpp/fnchange.lst: Add translation rules for
7089 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7090
7091 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7092
7093 * frame.c (get_prev_frame_1): Work around GCC bug.
7094 * frame.h: Add comment about GCC bug.
7095
7096 2004-05-07 Andrew Cagney <cagney@redhat.com>
7097
7098 * observer.c: Include "commands.h" and "gdbcmd.h".
7099 (observer_debug, _initialize_observer): Add the
7100 command "set/show debug observer".
7101 * observer.sh: When observer debugging, log notify calls.
7102 * Makefile.in (observer.o): Update dependencies.
7103
7104 2004-05-07 Jason Molenda (jmolenda@apple.com)
7105
7106 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7107
7108 2004-05-07 Jim Blandy <jimb@redhat.com>
7109
7110 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7111 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7112 to recognize gpr regnums, instead of assuming that
7113 tdep->ppc_fp0_regnum marks the end of the general-purpose
7114 registers.
7115
7116 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7117 the given architecture has floating-point registers.
7118
7119 2004-05-07 Andrew Cagney <cagney@redhat.com>
7120
7121 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7122 macro defined to 1.
7123 * gdbarch.h, gdbarch.c: Re-generate.
7124 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7125 deprecated_use_generic_dummy_frames.
7126
7127 2004-05-07 Brian Ford <ford@vss.fsi.com>
7128
7129 * NEWS: Mention Cygwin DWARF 2 support.
7130
7131 2004-05-07 Andrew Cagney <cagney@redhat.com>
7132
7133 * objfiles.h (struct entry_info): Delete unused fields
7134 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7135 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7136 * mipsread.c (mipscoff_symfile_read): Update.
7137 * mdebugread.c (parse_partial_symbols): Update.
7138 * dwarfread.c (read_file_scope): Update.
7139 * dwarf2read.c (read_file_scope): Update.
7140 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7141 * coffread.c (complete_symtab): Update.
7142
7143 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7144
7145 * infcall.c (_initialize_infcall): Fix typo.
7146
7147 2004-05-07 Andrew Cagney <cagney@redhat.com>
7148
7149 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7150 * command.h (add_setshow_zinteger_cmd): Declare.
7151
7152 2004-05-06 Randolph Chung <tausq@debian.org>
7153
7154 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7155 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7156 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7157 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7158 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7159 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7160 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7161 definitions ...
7162 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7163 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7164 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7165 (hppa64_hpux_frame_find_saved_regs_in_sig)
7166 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7167 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7168 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7169 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7170 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7171 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7172 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7173 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7174 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7175 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7176 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7177 (hppa32_register_type, hppa_cannot_store_register)
7178 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7179 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7180 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7181 * pa64solib.c (pa64_solib_have_load_event)
7182 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7183 (pa64_solib_unloaded_library_pathname): Likewise.
7184 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7185 (som_solib_library_pathname): Likewise.
7186
7187 2004-05-05 Jim Ingham <jingham@apple.com>
7188
7189 * breakpoint.c (create_breakpoints): Copy the ignore count and
7190 thread id over from the pended breakpoint to the actual
7191 breakpoint.
7192
7193 2004-05-05 Andrew Cagney <cagney@redhat.com>
7194
7195 * gdbarch.sh (PARM_BOUNDARY): Delete.
7196 gdbarch.h, gdbarch.c: Re-generate.
7197 * valops.c (PARM_BOUNDARY): Delete macro.
7198 (value_push): Delete PARM_BOUNDARY code.
7199 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7200
7201 2004-05-04 Jim Blandy <jimb@redhat.com>
7202
7203 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7204 Don't assume that the gprs, fprs, and UISA sprs are
7205 contiguous, start at register number zero, and end with fpscr.
7206 Instead, use the numbers from the tdep structure.
7207
7208 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7209 should no longer be used in code specific to the RS6000 and its
7210 derivatives.
7211 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7212 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7213 tdep->ppc_fp0_regnum.
7214 (ppc_supply_fpregset, ppc_collect_fpregset)
7215 (rs6000_push_dummy_call, rs6000_extract_return_value)
7216 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7217 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7218 FP0_REGNUM.
7219 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7220 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7221 Same.
7222 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7223 bdm_ppc_store_registers): Same.
7224 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7225 (store_register, fill_fpregset): Same.
7226 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7227 (ppc_linux_supply_fpregset): Same.
7228 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7229 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7230 Same.
7231 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7232 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7233 ppc64_sysv_abi_return_value): Same.
7234 * rs6000-nat.c (regmap, fetch_inferior_registers)
7235 (store_inferior_registers, fetch_core_registers): Same.
7236
7237 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7238
7239 * m68knbsd-nat.c: Remove file.
7240 * m68knbsd-tdep.c: Remove file.
7241 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7242 dependencies.
7243 * configure.host: Add m68k-*-netbsdelf*.
7244 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7245 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7246 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7247 (XM_FILE): Remove.
7248 * config/m68k/nbsdelf.mh: New file.
7249 * config/m68k/nbsd.mt: New file.
7250 * config/m68k/nbsdaout.mt: Remove file.
7251 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7252 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7253 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7254 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7255 (use_struct_convention): Remove prototype.
7256 (USE_STRUCT_CONVENTION): Remove define.
7257 * config/m68k/xm-nbsd.h: Remove file.
7258
7259 2004-05-04 Michael Snyder <msnyder@redhat.com>
7260
7261 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7262 reg_struct_return method (as gcc usually does for cross targets).
7263
7264 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7265
7266 Committed by Andrew Cagney.
7267 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7268 alignment padding when accessing ucontext struct members.
7269
7270 2004-05-04 Jim Blandy <jimb@redhat.com>
7271
7272 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7273 'ppc_gplast_regnum' member.
7274 (ppc_num_gprs): New enum constant.
7275 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7276 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7277 * rs6000-nat.c (regmap, fetch_inferior_registers,
7278 store_inferior_registers): Same.
7279 * rs6000-tdep.c (e500_pseudo_register_read)
7280 (e500_pseudo_register_write): Same.
7281 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7282
7283 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7284 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7285 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7286 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7287 FPLAST_REGNUM.
7288 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7289 Same.
7290 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7291 * rs6000-nat.c (regmap, fetch_inferior_registers)
7292 (store_inferior_registers): Same.
7293
7294 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7295 with FPLAST_REGNUM.
7296
7297 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7298
7299 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7300 failure detected by recent versions of GCC.
7301 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7302 to be consistent with the usage in dwarf2_create_include_psymtab.
7303
7304 2004-05-03 Michael Snyder <msnyder@redhat.com>
7305
7306 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7307 (heuristic_proc_start): Whitespace cleanup.
7308
7309 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7310
7311 * sun3-nat.c: Remove file.
7312 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7313 dependencies.
7314 (ALLDEPFILES): Remove sun3-nat.c.
7315 (sun3-nat.o): Remove dependencies.
7316
7317 * i386-interix-nat.c, i386-interix-tdep.c,
7318 config/i386/nm-interix.h, config/i386/interix.mh,
7319 config/i386/interix.mt: Remove files.
7320 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7321 dependencies.
7322
7323 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7324
7325 * m68k-tdep.h (struct gdbarch_tdep): Add member
7326 struct_value_regnum.
7327 (m68k_svr4_init_abi): New prototype.
7328 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7329 different calling conventions.
7330 (m68k_extract_return_value): Remove code dealing with single-field
7331 structs.
7332 (m68k_store_return_value): Remove code dealing with single-field
7333 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7334 (m68k_extract_struct_value_address): Remove function.
7335 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7336 (m68k_reg_struct_return_p, m68k_return_value)
7337 (m68k_svr4_return_value): New functions.
7338 (m68k_use_struct_convention): Remove function.
7339 (m68k_push_dummy_call): Use new struct_value_regnum member of
7340 `struct gdbarch_tdep' instead of hardcoded register number to
7341 store STRUCT_ADDR.
7342 (m68k_svr4_init_abi): New function.
7343 (m68k_gdbarch_init): Don't set extract_return_value,
7344 store_return_values, deprecated_extract_struct_value_address and
7345 use_struct_convention. Set return_value instead. Initialize new
7346 struct_value_regnum member of `struct gdbarch_tdep'.
7347 * m68klinux-tdep.c: Update copyright year.
7348 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7349 (m68k_linux_extract_struct_value_address): Remove function.
7350 (m68k_linux_init_abi): Don't set extract_return_value,
7351 store_return_values, deprecated_extract_struct_value_address and
7352 use_struct_convention. Call m68k_svr4_init_abi but override the
7353 new struct_value_regnum member of `struct gdbarch_tdep'.
7354 * Makefile.in (m68k-tdep.o): Update dependencies.
7355
7356 2004-05-03 J. Brobecker <brobecker@gnat.com>
7357
7358 * dwarf2read.c (line_header): Add new included_p field in
7359 field file_names.
7360 (partial_die_info): New field has_stmt_list. New field line_offset.
7361 (dwarf2_create_include_psymtab): New function.
7362 (dwarf2_build_include_psymtabs): New function.
7363 (add_file_name): Add forward declaration. Initialize new field.
7364 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7365 to be able to determine the list of files included by the
7366 given unit, and build their associated psymtabs.
7367 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7368 files as well.
7369 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7370 (read_file_scope): Update call to dwarf_decode_lines.
7371 (read_partial_die): Handle DW_AT_stmt_list attributes.
7372
7373 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7374
7375 Unfix PR gdb/1626.
7376 * configure.in: Revert special case for osf5.*.
7377 * configure: Regenerate.
7378
7379 2004-05-02 Jim Blandy <jimb@redhat.com>
7380
7381 Move the symbol-file-from-memory functions into their own file.
7382 * symfile-mem.c, symfile-mem.h: New files.
7383 * symfile.c (symbol_file_add_from_bfd): New function.
7384 (symbol_file_add): Call symbol_file_add_from_bfd.
7385 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7386 Moved to symfile-mem.c.
7387 (_initialize_symfile): Move definition of
7388 add-symbol-file-from-memory command to symfile-mem.c.
7389 * symfile.h (symbol_file_add_from_bfd): New declaration.
7390 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7391 * config/powerpc/linux.mt (TDEPFILES): Same.
7392 * Makefile.in (SFILES): Add symfile-mem.c.
7393 (symfile_mem_h): New variable.
7394 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7395 (symfile-mem.o): New rule.
7396
7397 2004-05-01 Andrew Cagney <cagney@redhat.com>
7398
7399 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7400 frame_find_by_id instead of frame_relative_level.
7401 (do_enable_breakpoint): Ditto.
7402 * thread.c: Update copyright.
7403 (info_threads_command): Ditto, simplify.
7404
7405 * frame.c (deprecated_generic_get_saved_register): Delete
7406 function, moved to "xstormy16-tdep.c".
7407 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7408 deprecated_generic_get_saved_register from "frame.c".
7409 (xstormy16_frame_saved_register): Call
7410 xstormy16_get_saved_register.
7411 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7412 static.
7413 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7414 * frame.h (deprecated_generic_get_saved_register): Delete.
7415
7416 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7417
7418 * dwarfread.c: Update documentation on the state of dwarf-1.
7419
7420 2004-05-01 Andrew Cagney <cagney@redhat.com>
7421
7422 * stack.c (select_frame_command): Delete call to
7423 frame_relative_level.
7424 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7425 Delete #if0 code.
7426 (frame_info): Do not print FRAMELESS.
7427 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7428 (catch_info): Delete #if0 code.
7429
7430 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7431 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7432 of frame_relative_level.
7433 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7434 to SENTINEL_FRAME.
7435 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7436 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7437 frame_relative_level.
7438
7439 * frame.h (deprecated_set_frame_type): Delete declaration.
7440 * frame.c (deprecated_set_frame_type): Delete function, update
7441 comments.
7442
7443 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7444 * gdbarch.h, gdbarch.c: Re-generate.
7445 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7446 (shnbsd_pc_in_sigtramp): Delete.
7447 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7448 pc_in_sigtramp.
7449 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7450 pc_in_sigtramp.
7451 * frame.h: Update comments.
7452 * ppc-linux-tdep.c: Update comments.
7453 * breakpoint.c (bpstat_what): Update comments.
7454
7455 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7456 m68klinux-tdep.o's dependencies, were previously added to
7457 m68klinux-nat.o.
7458
7459 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7460 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7461 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7462 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7463 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7464
7465 * Makefile.in (m68klinux-nat.o): Update dependencies.
7466 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7467 (m68k_linux_sigtramp_frame_cache)
7468 (m68k_linux_sigtramp_frame_this_id)
7469 (m68k_linux_sigtramp_frame_prev_register)
7470 (m68k_linux_sigtramp_frame_unwind)
7471 (m68k_linux_sigtramp_frame_sniffer)
7472 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7473 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7474 names, use trad-frame.h.
7475 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7476 (struct m68k_sigtramp_info): Delete.
7477 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7478 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7479 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7480 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7481 "m68klinux-tdep.c".
7482
7483 * infrun.c (check_sigtramp2): Delete check for
7484 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7485
7486 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7487
7488 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7489
7490 2004-05-01 Andrew Cagney <cagney@redhat.com>
7491
7492 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7493 (frv_linux_sigtramp_frame_cache)
7494 (frv_linux_sigtramp_frame_this_id)
7495 (frv_linux_sigtramp_frame_prev_register)
7496 (frv_linux_sigtramp_frame_unwind)
7497 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7498 include "linux" in function and variable names, directly call
7499 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7500 the latest trad-frame code.
7501 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7502 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7503 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7504 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7505 * frv-tdep.c (frv_sigtramp_frame_cache)
7506 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7507 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7508 frv-linux-tdep.c.
7509 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7510 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7511 (frv_set_sigcontext_reg_addr): Delete function.
7512
7513 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7514 (DEPRECATED_SIGTRAMP_END): Delete.
7515 * gdbarch.h, gdbarch.c: Re-generate.
7516 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7517 * config/vax/tm-vaxbsd.h: Update copyright.
7518 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7519 (DEPRECATED_IN_SIGTRAMP): Define.
7520 * config/m68k/tm-nbsd.h: Update copyright.
7521 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7522 (DEPRECATED_IN_SIGTRAMP): Define.
7523
7524 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7525
7526 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7527 encondings. Fixes PR gdb/1628.
7528
7529 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7530 DW_CFA_restore state without a matching DW_CFA_remember_state
7531 instead of aborting. Fixes PR backtrace/1589.
7532
7533 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7534
7535 * MAINTAINERS: Add self as AIX maintainer.
7536 Update my e-mail address in write-after-approval section.
7537
7538 2004-04-30 Andrew Cagney <cagney@redhat.com>
7539
7540 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7541 (legacy_get_prev_frame): Ditto.
7542
7543 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7544 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7545 * mipsread.c (sigtramp_address): Delete extern variable.
7546 (mipscoff_new_init): Delete reference.
7547 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7548 (fixup_sigtramp): Delete function.
7549 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7550 (fixup_sigtramp): Delete declarations.
7551
7552 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7553 deprecated_pc_in_sigtramp.
7554 (ppcnbsd_pc_in_sigtramp): Delete function.
7555
7556 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7557
7558 * config/m68k/nm-nbsd.h: Tweak comments.
7559 * config/m68k/nm-nbsdaout.h: Likewise.
7560
7561 2004-04-30 Andrew Cagney <cagney@redhat.com>
7562
7563 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7564 legacy_pc_in_sigtramp.
7565 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7566
7567 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7568
7569 Add OpenBSD/m68k support.
7570 * NEWS (New native configurations): Mention OpenBSD/m68k.
7571 * m68kbsd-tdep.c: New file.
7572 * m68kbsd-nat.c: New file.
7573 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7574 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7575 * configure.host: Add m68k-*-openbsd.
7576 * configure.tgt: Add m68k-*-openbsd.
7577 * config/m68k/tm-obsd.h: New file.
7578 * config/m68k/obsd.mt: New file.
7579 * config/m68k/obsd.mh: New file.
7580 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7581 m68kbsd-tdep.c.
7582
7583 2004-04-30 Andrew Cagney <cagney@redhat.com>
7584
7585 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7586 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7587
7588 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7589
7590 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7591 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7592
7593 2004-04-30 Brian Ford <ford@vss.fsi.com>
7594
7595 Revert 2004-04-16 change.
7596 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7597 (i386_coff_init_abi): Remove.
7598 * i386-tdep.h (i386_coff_init_abi): Remove.
7599 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7600
7601 2004-04-30 Andrew Cagney <cagney@redhat.com>
7602
7603 * blockframe.c (find_pc_partial_function): Delete use of
7604 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7605 DEPRECATED_SIGTRAMP_END.
7606
7607 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7608 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7609 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7610 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7611 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7612
7613 * defs.h (deprecated_inside_entry_file): Delete declaration.
7614 * blockframe.c (deprecated_inside_entry_file): Delete function.
7615 (legacy_frame_chain_valid): Delete call.
7616 * sh64-tdep.c (sh64_frame_chain): Delete call.
7617 * objfiles.h: Update comments.
7618 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7619 call.
7620 * frame.c (get_prev_frame): Delete call, update comments.
7621
7622 2004-04-30 Brian Ford <ford@vss.fsi.com>
7623
7624 * MAINTAINERS (Write After Approval): Add myself.
7625
7626 2004-04-30 Andrew Cagney <cagney@redhat.com>
7627
7628 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7629 * gdbarch.h, gdbarch.c: Re-generate.
7630 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7631 code.
7632
7633 2004-04-30 Andrew Cagney <cagney@redhat.com>
7634
7635 * gdb-events.sh (selected_thread_changed)
7636 (selected_frame_level_changed, target_changed): Delete.
7637 * gdb-events.h, gdb-events.c: Re-generate.
7638 * valops.c (value_assign): Update.
7639 * stack.c (select_frame_command, up_silently_base)
7640 (down_silently_base): Update.
7641
7642 2004-04-29 Andrew Cagney <cagney@redhat.com>
7643
7644 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7645 registers correctly.
7646 (print_gp_register_row, mips32_heuristic_proc_desc)
7647 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7648 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7649 references to mips_isa_regsize.
7650
7651 2004-04-29 Andrew Cagney <cagney@redhat.com>
7652
7653 * mips-tdep.c (struct gdbarch_tdep): Delete
7654 mips_fp_register_double.
7655 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7656 mips_abi_regsize.
7657 (mips_gdbarch_init): Do not set mips_fp_register_double.
7658 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7659
7660 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7661
7662 Committed by Andrew Cagney.
7663 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7664 function calls.
7665
7666 2004-04-29 Andrew Cagney <cagney@redhat.com>
7667
7668 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7669 gdbarch, use mips_abi, update callers.
7670 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7671 mips_abi_regsize, update callers.
7672 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7673 mips_default_abi_regsize.
7674 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7675 mips_default_abi_regsize.
7676
7677 2004-04-29 Andrew Cagney <cagney@redhat.com>
7678
7679 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7680 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7681 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7682 mips_default_abi_regsize.
7683 (mips_isa_regsize): Rename mips_regisze.
7684 * mipsnbsd-tdep.c: Update.
7685 * mips-linux-tdep.c: Update.
7686 * irix5-nat.c: Update.
7687 * mips-tdep.h (mips_isa_regsize): Update.
7688
7689 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7690 Delete all disabled code.
7691 * gdb-events.h, gdb-events.c: Re-generate.
7692
7693 2004-04-19 Jerome Guitton <guitton@gnat.com>
7694 Mark Kettenis <kettenis@gnu.org>
7695
7696 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7697 the function begins with a branch instruction.
7698
7699 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7700
7701 * i386-tdep.c: Fix spelling mistakes.
7702
7703 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7704 Andrew Cagney <cagney@redhat.com>
7705
7706 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7707 <sys/proc.h>.
7708 * acconfig.h: Provide default _KMEMUSER value.
7709 * config.in, configure: Re-generate.
7710 * NEWS: Mention fix.
7711
7712 2004-04-24 Randolph Chung <tausq@debian.org>
7713
7714 * configure.host (hppa*-*-linux*): New target.
7715 * configure.tgt (hppa*-*-linux*): Likewise.
7716 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7717 gdbarch_init_osabi() call earlier so that osabi-specific frame
7718 unwinders can be registered first.
7719 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7720 hppa-linux-nat.c.
7721 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7722 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7723 * config/pa/linux.mh: New file.
7724 * config/pa/linux.mt: New file.
7725 * config/pa/nm-linux.h: New file.
7726 * config/pa/xm-linux.h: New file.
7727 * hppa-linux-nat.c: New file.
7728 * hppa-linux-tdep.c: New file.
7729
7730 2004-04-28 Randolph Chung <tausq@debian.org>
7731
7732 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7733 return values.
7734 (hppa32_push_dummy_call): Fix small struct and floating point argument
7735 passing, and make sure the stack frame is properly aligned.
7736
7737 2004-04-28 Andrew Cagney <cagney@redhat.com>
7738
7739 * stack.c (print_stack_frame): Fix description.
7740
7741 * NEWS: Mention gdb/gdbserver/configure execute permission
7742 changed. PR server/519.
7743
7744 2004-04-28 Andrew Cagney <cagney@redhat.com>
7745
7746 * stack.c (print_stack_frame_stub): Delete declaration.
7747 (struct print_stack_frame_args, print_stack_frame)
7748 (print_frame_info, print_frame): Replace "source" with print what.
7749 Replace "print" with "print_level". Replace "args" with
7750 "print_args".
7751 * frame.h (show_and_print_stack_frame, print_stack_frame)
7752 (print_frame_info): Update declarations.
7753 * stack.c (select_and_print_frame, frame_command)
7754 (current_frame_command, up_command, down_command): Update calls -
7755 use get_selected_frame, pass "enum print_what" for source, do not
7756 call frame_relative_level.
7757 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7758 * remote-rdp.c (remote_rdp_open): Ditto.
7759 * remote-mips.c (common_open): Ditto.
7760 * remote-e7000.c (e7000_start_remote): Ditto.
7761 * ocd.c (ocd_start_remote): Ditto.
7762 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7763 * infrun.c (normal_stop): Ditto.
7764 * inflow.c (kill_command): Ditto.
7765 * infcmd.c (finish_command): Ditto.
7766 * corelow.c (core_open): Ditto.
7767 * tracepoint.c (finish_tfind_command): Ditto.
7768 * thread.c (info_threads_command, info_threads_command)
7769 (restore_current_thread, do_captured_thread_select): Ditto.
7770 * ada-tasks.c (task_command): Ditto.
7771
7772 2004-04-26 Orjan Friberg <orjanf@axis.com>
7773
7774 * frame.c: Include "observer.h".
7775 (frame_observer_target_changed): New function.
7776 (_initialize_frame): Attach target_changed observer.
7777 * regcache.c: Include "observer.h".
7778 (regcache_observer_target_changed): New function.
7779 (_initialize_regcache): Attach target_changed observer.
7780 * valops.c: Include "observer.h".
7781 (value_assign): Notify target_changed event when modifying register.
7782 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7783
7784 2004-04-26 Orjan Friberg <orjanf@axis.com>
7785
7786 From Paul Koning <pkoning@equallogic.com>:
7787 * breakpoint.c (free_valchain): New function.
7788 (insert_bp_location, delete_breakpoint): Use free_valchain.
7789 (remove_breakpoint): Do not remove the valchain.
7790 (bpstat_stop_status): If not stopped by watchpoint, skip
7791 watchpoints when generating stop status list.
7792 * infrun.c (handle_inferior_event): Make
7793 stepped_after_stopped_by_watchpoint a global variable.
7794 * remote.c (remote_stopped_data_address): Return watch data
7795 address rather than zero if stepped_after_stopped_by_watchpoint is
7796 set.
7797
7798 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7799
7800 Fix PR gdb/1626.
7801 * configure.in: Check for curses after termcap.
7802 On osf5.*, do not check for ncurses.
7803 * configure: Regenerate.
7804
7805 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7806
7807 * ppcobsd-nat.c: Include "ppc-tdep.h".
7808 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7809
7810 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7811 Fixes PR tdep/1623 and PR tdep/1624.
7812
7813 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7814
7815 * xmodem.h, xmodem.c: Remove files.
7816 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7817
7818 2004-04-23 Randolph Chung <tausq@debian.org>
7819
7820 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7821 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7822 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7823 for handling stackless frames.
7824 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7825
7826 2004-04-23 Randolph Chung <tausq@debian.org>
7827
7828 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7829 starts at a pc before the frame is created.
7830
7831 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7832
7833 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7834
7835 2004-04-23 Jerome Guitton <guitton@gnat.com>
7836
7837 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7838 use convert_typed_floating to get the appropriate format.
7839
7840 2004-04-22 Randolph Chung <tausq@debian.org>
7841
7842 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7843 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7844 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7845 (hppa_sign_extend): Add prototype.
7846 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7847 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7848 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7849 hppa targets will also use these functions.
7850 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7851 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7852 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7853 (hppa_gdbarch_init): Remove gdbarch setting of
7854 skip_trampoline_code, in_solib_call_trampoline and
7855 in_solib_return_trampoline.
7856 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7857 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7858 hppa_in_solib_call_trampoline.
7859 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7860 Moved from hppa-tdep.c.
7861 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7862 in_solib_call_trampoline and in_solib_return_trampoline.
7863
7864 2004-04-22 Randolph Chung <tausq@debian.org>
7865
7866 * hppa-tdep.c (hppa_debug): New variable.
7867 (find_unwind_entry, hppa_frame_cache): Add debug output.
7868 (_initialize_hppa_tdep): Add command to set debug flag.
7869
7870 2004-04-22 Andrew Cagney <cagney@redhat.com>
7871
7872 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7873 "trad-frame.h".
7874 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7875 signal trampoline unwinder.
7876 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7877
7878 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7879
7880 Add OpenBSD/powerpc support.
7881 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7882 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7883 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7884 (ppc_collect_fpregset): New prototypes.
7885 * ppcobsd-nat.c: New file.
7886 * ppcobsd-tdep.c: New file.
7887 * ppcobsd-tdep.h: New file.
7888 * rs6000-tdep.c: Include "regset.h".
7889 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7890 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7891 New functions.
7892 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7893 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7894 (rs6000-tdep.o): Update dependencies.
7895 * configure.host: Add powerpc-*-openbsd.
7896 * configure.tgt: Add powerpc-*-openbsd.
7897 * config/powerpc/obsd.mh: New file.
7898 * config/powerpc/nm-obsd.h: New file.
7899 * config/powerpc/obsd.mt: New file.
7900
7901 2004-04-22 Andrew Cagney <cagney@redhat.com>
7902
7903 * frame.h (show_frame_info): Delete declaration.
7904
7905 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7906 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7907 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7908 * frv-tdep.c (frv_frame_this_id): Ditto.
7909 * avr-tdep.c (avr_frame_this_id): Ditto.
7910
7911 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7912
7913 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7914
7915 2004-04-22 Jim Blandy <jimb@redhat.com>
7916
7917 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7918 register number zero.
7919
7920 2004-04-21 Michael Snyder <msnyder@redhat.com>
7921
7922 * mips-tdep.c (heuristic_proc_start):
7923 Warning() already prefixes "Warning: ".
7924
7925 2004-04-21 Andrew Cagney <cagney@redhat.com>
7926
7927 * annotate.h (deprecated_annotate_starting_hook)
7928 (deprecated_annotate_stopped_hook)
7929 (deprecated_annotate_exited_hook)
7930 (deprecated_annotate_signal_hook)
7931 (deprecated_annotate_signalled_hook): Deprecate.
7932 * tracepoint.h (deprecated_create_tracepoint_hook)
7933 (deprecated_delete_tracepoint_hook)
7934 (deprecated_modify_tracepoint_hook)
7935 (deprecated_trace_find_hook)
7936 (deprecated_trace_start_stop_hook): Deprecate.
7937 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7938 * remote.h (deprecated_target_resume_hook)
7939 (deprecated_target_wait_loop_hook): Deprecate.
7940 * gdbcore.h (deprecated_exec_file_display_hook)
7941 (deprecated_file_changed_hook): Deprecate.
7942 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7943 * defs.h (deprecated_modify_breakpoint_hook)
7944 (deprecated_command_loop_hook, deprecated_show_load_progress)
7945 (deprecated_print_frame_info_listing_hook)
7946 (deprecated_query_hook, deprecated_warning_hook)
7947 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7948 (deprecated_delete_breakpoint_hook)
7949 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7950 (deprecated_readline_begin_hook, deprecated_readline_hook)
7951 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7952 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7953 (deprecated_context_hook, deprecated_target_wait_hook)
7954 (deprecated_attach_hook, deprecated_detach_hook)
7955 (deprecated_call_command_hook, deprecated_set_hook)
7956 (deprecated_error_hook, deprecated_error_begin_hook)
7957 (deprecated_ui_load_progress_hook): Deprecate.
7958 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7959 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7960 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7961 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7962 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7963 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7964 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7965 * annotate.c, aix-thread.c: Update.
7966
7967 2004-04-21 Andrew Cagney <cagney@redhat.com>
7968
7969 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7970 * vaxnbsd-tdep.c: Include "gdb_string.h".
7971
7972 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7973 (add_symbol_file_from_memory_command): #if 0 function body, call
7974 error instead.
7975
7976 2004-04-21 Andrew Cagney <cagney@redhat.com>
7977
7978 * gdbcore.h: Update copyright.
7979 (deprecated_add_core_fns): Rename add_core_fns.
7980 * win32-nat.c (_initialize_core_win32): Update.
7981 * sun3-nat.c (_initialize_core_sun3): Update.
7982 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7983 * rs6000-nat.c (_initialize_core_rs6000): Update.
7984 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7985 * nto-tdep.c (_initialize_nto_tdep): Update.
7986 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7987 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7988 * mips-nat.c (_initialize_core_mips): Update.
7989 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7990 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7991 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7992 * lynx-nat.c (_initialize_core_lynx): Update.
7993 * irix5-nat.c (_initialize_core_irix5): Update.
7994 * i386-interix-nat.c (_initialize_core_interix): Update.
7995 * cris-tdep.c (_initialize_cris_tdep): Update.
7996 * corelow.c (deprecated_add_core_fns): Update.
7997 * core-regset.c (_initialize_core_regset): Update.
7998 * core-aout.c (_initialize_core_aout): Update.
7999 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8000 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8001 * alpha-nat.c (_initialize_core_alpha): Update.
8002
8003 2004-04-21 Jim Blandy <jimb@redhat.com>
8004
8005 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8006
8007 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8008
8009 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8010 Delete.
8011 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8012 (read_attribute_value): Update calls to dwarf_alloc_block.
8013 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8014 dwarf2_tmp_obstack.
8015 (psymtab_to_symtab_1): Likewise. Clean up using
8016 free_stack_comp_unit.
8017 (add_to_cu_func_list): Use the comp_unit_obstack.
8018
8019 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8020
8021 * dwarf2read.c (dwarf2_flag_true_p): New function.
8022 (die_is_declaration): Use the function above. Add some comments.
8023
8024 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8025
8026 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8027 architecture when registering sparcnbsd_core_osabi_sniffer.
8028 Adjust comment.
8029
8030 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8031
8032 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8033 return value.
8034
8035 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8036 * i386-tdep.c: Correct register numbering scheme comments
8037 throughout.
8038 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8039 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8040 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8041 (i386_gdb_arch_init): Likewise.
8042
8043 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8044 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8045 ppcnbsd-tdep.o.
8046
8047 * m68k-tdep.h: Tweak comments.
8048 * m68k-tdep.c: Tweak comment.
8049
8050 2004-04-17 Randolph Chung <tausq@debian.org>
8051
8052 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8053 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8054 (hppa_hpux_som_init_abi): Set is_elf to 0.
8055 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8056 * hppa-tdep.c (low_text_segment_address): Remove global.
8057 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8058 section offset to calculate segment address.
8059 (internalize_unwinds): Define low_text_segment_address as local and
8060 pass to record_text_segment_lowaddr for ELF targets.
8061 (hppa_gdbarch_init): Zero fill tdep structure.
8062 (hppa_dump_tdep): Print tdep structure.
8063 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8064
8065 2004-04-17 Randolph Chung <tausq@debian.org>
8066
8067 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8068 (hppa_gdbarch_init): Set pseudo_register_read.
8069 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8070 * regcache.c (supply_register): Remove check for
8071 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8072
8073 2004-04-17 Randolph Chung <tausq@debian.org>
8074
8075 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8076 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8077 (hpread_adjust_stack_address): Move to hpread.c.
8078 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8079 obj_private_struct): Move from tm-hppa.h.
8080 * hpread.c (hppa-tdep.h): Include.
8081 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8082 (hpread_read_function_type, hpread_read_doc_function_type)
8083 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8084 directly.
8085 * pa64solib.c (hppa-tdep.h): Include.
8086 * somsolib.c (hppa-tdep.h): Include.
8087 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8088 inferior_status): Remove unused forward declarations.
8089 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8090 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8091 obj_private_struct): Move to hppa-tdep.h.
8092 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8093
8094 2004-04-17 Randolph Chung <tausq@debian.org>
8095
8096 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8097 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8098 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8099 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8100 Remove forward declaration and make static.
8101 (hppa_reg_struct_has_addr): Remove.
8102
8103 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8104
8105 * observer.sh: Move comments in sed command to first column.
8106
8107 2004-04-16 Jason Molenda (jmolenda@apple.com)
8108
8109 * frame.c: Minor typeo corrections in comments.
8110
8111 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8112
8113 * observer.c (observer_test_first_notification_function): Update
8114 function profile.
8115 (observer_test_second_notification_function): Likewise.
8116 (observer_test_third_notification_function): Likewise.
8117
8118 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8119
8120 From Brian Ford <ford@vss.fsi.com>:
8121 * i386-tdep.c (i386_coff_init_abi): New function.
8122 * i386-tdep.h (i386_coff_init_abi): New prototype.
8123 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8124 register number translation functions for DWARF and DWARF 2.
8125
8126 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8127
8128 * dwarf2read.c: Back out my previous change, it was incorrect.
8129
8130 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8131
8132 * dwarf2read.c: Include "hashtab.h".
8133 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8134 has_namespace_info.
8135 (struct partial_die_info): Add comments. Use bitfields to reduce
8136 memory footprint. Add scope, scope_set, has_specification,
8137 spec_offset, die_parent, die_child, and die_sibling.
8138 (peek_die_abbrev): Add prototype.
8139 (partial_read_comp_unit_head): New function, broken out from
8140 dwarf2_build_psymtabs_hard.
8141 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8142 Use partial_read_comp_unit_head. Initialize the CU and
8143 comp_unit_obstack. Update calls to read_partial_die and
8144 scan_partial_symbols. Use free_stack_comp_unit and
8145 load_partial_dies.
8146 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8147 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8148 Update calls to helper functions. Remove NAMESPACE argument.
8149 Update comments.
8150 (partial_die_parent_scope, partial_die_full_name): New functions.
8151 (add_partial_symbol): Remove namespace argument. Update call to
8152 pdi_needs_namespace. Use partial_die_full_name. Handle
8153 DW_TAG_namespace. Check has_namespace_info flag.
8154 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8155 tag. Handle namespaces.
8156 (add_partial_namespace, add_partial_enumeration): Simplify.
8157 (guess_structure_name): New function, derived from
8158 add_partial_structure.
8159 (add_partial_structure): Remove.
8160 (determine_class_name): Update comment.
8161 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8162 (is_type_tag_for_partial, load_partial_dies): New functions.
8163 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8164 Record specifications instead of following them immediately.
8165 (find_partial_die_in_comp_unit, find_partial_die)
8166 (fixup_partial_die, free_stack_comp_unit)
8167 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8168 (partial_die_hash, partial_die_eq): New functions.
8169 * Makefile.in (hashtab_h): Define.
8170 (dwarf2read.o): Update dependencies.
8171 (observer_inc, observer_h): Move to the correct section.
8172
8173 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8174
8175 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8176 (die_is_declaration): Use the function above. Add comment.
8177
8178 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8179
8180 * dwarf2read.c (read_structure_scope): Identify stub types
8181 using die_is_declaration() only.
8182
8183 2004-04-15 Roland McGrath <roland@redhat.com>
8184
8185 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8186 argument instead of NAME.
8187 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8188 in call to symbol_file_add_with_addrs_or_offsets.
8189 (build_addr_info): New function, helper for ...
8190 (symbol_file_add_from_memory): New function.
8191 (add_symbol_file_from_memory_command): New function using that.
8192 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8193 (pre_add_symbol_hook): Add const to argument type.
8194 * symfile.h (symbol_file_add_from_memory): Declare it.
8195
8196 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8197
8198 * NEWS (New native configurations): Mention OpenBSD/vax.
8199 * configure.host: Add vax-*-openbsd*.
8200 * config/vax/obsd.mh: New file.
8201 * config/vax/nm-obsd.h: New file.
8202
8203 * vax-tdep.c: Include "regset.h".
8204 (vax_supply_gregset): New function.
8205 (vax_gregset): New variable.
8206 (vax_regset_from_core_section): New function.
8207 (vax_gdbarch_init): Set regset_from_core_section.
8208 * Makefile.in (vax-tdep.o): Update dependencies.
8209
8210 2004-04-15 Andrew Cagney <cagney@redhat.com>
8211
8212 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8213 (observer_normal_stop_notification_stub)
8214 (observer_attach_normal_stop, observer_detach_normal_stop):
8215 Delete, replaced by #include "observer.inc".
8216 * infrun.c (normal_stop): Pass "stop_bpstat" to
8217 observer_notify_normal_stop.
8218 * Makefile.in (observer_inc): Define.
8219 (observer.o): Update dependencies.
8220 (observer.h, observer.inc): New rules.
8221 * observer.h: Delete file.
8222 * observer.sh: New file.
8223
8224 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8225
8226 * vax-tdep.c (vax_frame_cache): Fix typo.
8227
8228 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8229
8230 * NEWS (New native configurations): Mention NetBSD/vax.
8231 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8232 * config/vax/nbsdelf.mh: New file.
8233 * config/vax/nbsdaout.mh: New file.
8234 * config/vax/nm-nbsd.h: New file.
8235 * config/vax/nm-nbsdaout.h: New file.
8236
8237 * vaxnbsd-tdep.c: New file.
8238 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8239 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8240 * config/vax/nbsd.mt: New file.
8241 * config/vax/tm-nbsd.h: New file.
8242
8243 * Makefile.in (vaxbsd-nat.o): New dependency.
8244
8245 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8246 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8247 struct_addr arguments. Don't push return value address.
8248 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8249 arguments to vax_store_arguments. Store return value address in
8250 R1.
8251 (vax_store_struct_return, vax_extract_return_value)
8252 (vax_store_return_value): Remove functions.
8253 (vax_return_value): New function.
8254 (vax_gdbarch_init): Set return value. Don't set
8255 deprecated_store_struct_return, deprecated_extract_struct_return
8256 and deprecated_store_return_value.
8257
8258 2004-04-14 Andreas Schwab <schwab@suse.de>
8259
8260 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8261 value buffer.
8262 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8263
8264 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8265
8266 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8267 (vax_unwind_dummy_id): New functions.
8268 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8269 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8270 variables.
8271 (vax_fix_call_dummy): Remove function.
8272 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8273 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8274 call_dummy_location, deprecated_call_dummy_words,
8275 deprecated_sizeof_call_dummy_words,
8276 deprecated_call_dummy_breakpoint_offset,
8277 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8278 and deprecated_dummy_write_sp.
8279
8280 2004-04-13 David Carlton <carlton@kealia.com>
8281
8282 * MAINTAINERS: Move myself to "paper trail" section.
8283
8284 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8285
8286 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8287 "trad-frame.h".
8288 (vax_frame_init_saved_regs): Remove function.
8289 (vax_sigtramp_saved_pc): Remove function.
8290 (vax_frame_saved_pc): Remove function.
8291 (vax_frame_args_address): Remove function.
8292 (vax_frame_num_args): Rewrite.
8293 (vax_frame_chain): Remove function.
8294 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8295 VAX_FP_REGNUM.
8296 (vax_pop_frame): Likewise.
8297 (vax_saved_pc_after_call): Remove function.
8298 (struct vax_frame_cache): New structure.
8299 (vax_frame_cache): New function.
8300 (vax_frame_this_id): New function.
8301 (vax_frame_prev_register): New function.
8302 (vax_frame_unwind): New variable.
8303 (vax_frame_sniffer): New function.
8304 (vax_frame_base_address): New function.
8305 (vax_frame_args_address): New function.
8306 (vax_frame_base): New variable.
8307 (vax_unwind_pc): New function.
8308 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8309 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8310 deprecated_frame_chain, deprecated_frame_saved_pc,
8311 deprecated_frame_args_address and
8312 deprecated_frame_init_saved_regs.
8313 * Makefile.in (vax-tdep.o): Update dependencies.
8314
8315 * vaxbsd-nat.c: New file.
8316
8317 * vax-tdep.h: Update copyright year. Adjust comments.
8318 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8319 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8320 (vax_regnum): New enum. Replacing...
8321 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8322 (VAX_PS_REGNUM): ... these removed macros.
8323 * vax-tdep.c (vax_register_name): Remove prototype.
8324 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8325 (vax_register_byte, vax_register_raw_size,
8326 vax_register_virtual_size, vax_register_virtual_type): Remove
8327 functions.
8328 (vax_register_type): New function.
8329 (vax_breakpoint_from_pc): Reorganize.
8330 (vax_gdbarch_init): Set register_type. Don't set
8331 deprecated_register_size, deprecated_register_bytes,
8332 deprecated_register_byte, deprecated_register_raw_size,
8333 deprecated_max_register_raw_size,
8334 deprecated_register_virtual_size,
8335 deprecated_max_register_virtual_size and
8336 deprecated_register_virtual_type. Add comment on stack direction.
8337
8338 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8339
8340 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8341 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8342 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8343
8344 2004-04-10 Randolph Chung <tausq@debian.org>
8345
8346 * MAINTAINERS (write after approval): Add myself.
8347
8348 2004-04-07 Randolph Chung <tausq@debian.org>
8349
8350 * hppa-tdep.c (hppa_inner_than): Remove.
8351 (is_pa_2): Remove unused static variable.
8352 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8353
8354 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8355
8356 * language.h (language_defn): Add new la_post_parser field.
8357 * parser-defs.h (null_post_parser): New declaration (default for
8358 la_post_parser).
8359
8360 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8361 insert call to that function.
8362 (parse_exp_in_context): New function, including code formerly in
8363 parse_exp_1. Calls language-dependent post-parser after
8364 prefixification.
8365 (parse_expression_in_context): New exported function.
8366 (null_post_parser): New definition.
8367 * expression.h (parse_expression_in_context): Add declaration.
8368
8369 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8370 * c-lang.c (c_language_defn): Ditto.
8371 (cplus_language_defn): Ditto.
8372 (asm_language_defn): Ditto.
8373 (minimal_language_defn): Ditto.
8374 * f-lang.c (f_language_defn): Ditto.
8375 * jv-lang.c (java_language_defn): Ditto.
8376 * language.c (unknown_language_defn): Ditto.
8377 (auto_language_defn): Ditto.
8378 (local_language_defn): Ditto.
8379 * m2-lang.c (m2_language_defn): Ditto.
8380 * scm-lang.c (scm_language_defn): Ditto.
8381 * obj-lang.c (objc_language_defn): Ditto.
8382
8383 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8384
8385 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8386 (amd64nbsd_mcontext_addr): New function.
8387 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8388 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8389 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8390
8391 * corelow.c (core_xfer_partial): Fix coding standards violation.
8392 Add support for TARGET_OBJECT_WCOOKIE.
8393
8394 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8395 deprecated_pc_in_sigtramp.
8396 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8397 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8398 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8399 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8400 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8401 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8402 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8403
8404 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8405 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8406 Fix typo.
8407
8408 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8409 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8410 (amd64_collect_fxsave): Likewise.
8411
8412 * i386-sol2-tdep.c: Include "gdb_string.h".
8413 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8414 name.
8415 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8416
8417 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8418
8419 * i386-sol2-tdep.c: Include "solib-svr4.h".
8420 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8421 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8422 * config/i386/tm-i386sol2.h: Include :solib.h".
8423 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8424 solib-svr4.o and solib-legacy.o.
8425 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8426 solib-svr4.o.
8427
8428 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8429
8430 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8431 whether a register is supplied by PTRACE_GETFPREGS.
8432 (store_inferior_registers): Likewise.
8433 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8434 whether a register is supplied by PT_GETFPREGS.
8435 (store_inferior_registers): Likewise.
8436
8437 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8438 * config/i386/linux64.mt (TDEPFILES): Likewise.
8439
8440 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8441
8442 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8443 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8444 the program counter is in the range specified by `struct
8445 gdbarch_tdep'.
8446 * amd64-linux-tdep.c: Include "symtab.h".
8447 (amd64_linux_pc_in_sigtramp): Remove function.
8448 (amd64_linux_sigtramp_p): New function.
8449 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8450 deprecated_pc_in_sigtramp.
8451 * amd64nbsd-tdep.c: Include "symtab.h".
8452 (amd64nbsd_sigtramp_p): New function.
8453 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8454 deprecated_pc_in_sigtramp.
8455 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8456 few comments.
8457 (amd64obsd_pc_in_sigtramp): Remove function.
8458 (amd64obsd_sigtramp_p): New function.
8459 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8460 deprecated_pc_in_sigtramp.
8461 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8462 (i386bsd_pc_ins_sigtramp): Remove prototype.
8463 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8464 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8465 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8466 the program counter is in the range specified by `struct
8467 gdbarch_tdep'.
8468 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8469 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8470 (i386_go32_pc_in_sigtramp): Remove function.
8471 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8472 Initialize TDEP->sigtramp_p.
8473 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8474 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8475 deprecated_pc_in_sigtramp.
8476 * i386-linux-tdep.c: Adjust comments.
8477 (i386_linux_pc_in_sigtramp): Remove function.
8478 (i386_linux_sigtramp_p): New function.
8479 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8480 deprecated_pc_in_sigtramp.
8481 * i386-nto-tdep.c: Update copyright year.
8482 (i386nto_pc_in_sigtramp): Remove function.
8483 (i386nto_sigtramp_p): New function.
8484 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8485 SP_REGNUM.
8486 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8487 deprecated_pc_in_sigtramp.
8488 * i386-sol2-tdep.c: Update copyright year.
8489 (i386_sol2_pc_in_sigtramp): Remove function.
8490 (i386_sol2_sigtramp_p): New function.
8491 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8492 deprecated_pc_in_sigtramp.
8493 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8494 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8495 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8496 deprecated_sigtramp_start and deprecated_sigtramp_end.
8497 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8498 (i386nbsd_pc_in_sigtramp): Remove function.
8499 (i386nbsd_sigtramp_p): New function.
8500 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8501 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8502 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8503 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8504 (i386obsd_pc_in_sigtramp): Remove function.
8505 (i386obsd_sigtramp_p): New function.
8506 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8507 functions.
8508 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8509 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8510 TDEP->sigtramp_p.
8511 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8512 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8513 dependencies.
8514
8515 * config/i386/i386aout.mt: Remove file.
8516
8517 * configure.tgt: Remove i[34567]86-*-go32*,
8518 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8519 and i[34567]86-*-isc*. Set gdb_target to i386 for
8520 i[34567]86-*-netware* and i[34567]86-*-*.
8521 * config/i386/i386.mt: New file.
8522 * config/i386/embed.mt: Remove file.
8523 * config/i386/go32.mt: Remove file.
8524 * config/i386/i386nw.mt: Remove file.
8525 * config/i386/i386v.mt: Remove file.
8526 * config/i386/tm-go32.h: Remove file.
8527
8528 * tui/tui-hooks.c: Include "readline/readline.h" after
8529 "gdb_curses.h" instead of before.
8530 * tui/tui-io.c: Likewise.
8531
8532 * tui/tui.c: Fix typo in comment.
8533
8534 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8535
8536 2004-04-08 Andrew Cagney <cagney@redhat.com>
8537
8538 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8539 (deprecated_exception_support_initialized): Declare.
8540 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8541 (initialize_hp_cxx_exception_support)
8542 (child_enable_exception_callback): Update.
8543 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8544 (deprecated_exception_support_initialized): Rename
8545 deprecated_exception_catchpoints_are_fragile and
8546 deprecated_exception_support_initialized.
8547 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8548
8549 * symtab.c (deprecated_hp_som_som_object_present): Rename
8550 hp_som_som_object_present.
8551 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8552 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8553 Update. Delete extern declaration.
8554 * valops.c (hp_som_som_object_present): Ditto.
8555 * parse.c (deprecated_hp_som_som_object_present)
8556 (parse_nested_classes_for_hpacc): Ditto.
8557 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8558 * hppa-hpux-tdep.c (hp_som_som_object_present)
8559 (initialize_hp_cxx_exception_support): Ditto.
8560 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8561 * cp-valprint.c (hp_som_som_object_present)
8562 (cp_print_class_method): Ditto.
8563 * c-typeprint.c (hp_som_som_object_present):
8564 (c_type_print_base): Ditto.
8565 * c-exp.y (hp_som_som_object_present): Ditto.
8566
8567 2004-04-08 Andrew Cagney <cagney@redhat.com>
8568
8569 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8570 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8571 (frame_unwind_find_by_frame): Re-implement the unwind code so
8572 that it can both prepend and append sniffers. Replace
8573 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8574 * tramp-frame.c (tramp_frame_append): Use
8575 frame_unwind_prepend_unwinder.
8576 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8577 frame_unwind_register_unwinder.
8578 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8579 tramp_frame_append.
8580 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8581 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8582 (mips_linux_init_abi): Update.
8583
8584 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8585
8586 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8587 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8588 file support.
8589
8590 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8591
8592 * ia64-tdep.c (elf.h): Don't include.
8593 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8594
8595 2004-04-07 Jason Molenda (jmolenda@apple.com)
8596
8597 * frame.h: Typeo corrections in comments.
8598
8599 2004-04-07 Jim Blandy <jimb@redhat.com>
8600
8601 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8602 %esp and %ebp
8603
8604 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8605
8606 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8607 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8608 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8609 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8610 and solib-legacy.o.
8611 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8612 solib-svr4.o.
8613 * config/sparc/tm-sol2.h: Update copyright year. Include
8614 "solib.h".
8615
8616 * sparc-sol2-tdep.c: Update copyright year. Include
8617 "solib-svr4.h".
8618 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8619 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8620 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8621 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8622 dependencies.
8623
8624 2004-04-06 Andrew Cagney <cagney@redhat.com>
8625
8626 * infttrace.c: Include "infttrace.h".
8627 * infttrace.h: Include "target.h".
8628 * Makefile.in (infttrace_h): Update.
8629 (infttrace.o): Update.
8630
8631 2004-04-06 Andrew Cagney <cagney@redhat.com>
8632
8633 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8634 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8635 move extern declarations from here ...
8636 * infttrace.h: ... to here.
8637 * Makefile.in (hppah-nat.o): Update dependencies.
8638
8639 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8640 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8641 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8642 (hppa_breakpoint_from_pc): Delete.
8643
8644 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8645
8646 2004-04-05 Andrew Cagney <cagney@redhat.com>
8647
8648 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8649 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8650 <sys/file.h>.
8651
8652 2004-04-06 Randolph Chung <tausq@debian.org>
8653
8654 Committed by Andrew Cagney (mechanical change).
8655 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8656 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8657 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8658 child_enable_exception_callback, current_ex_event,
8659 null_symtab_and_line, child_get_current_exception_event,
8660 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8661 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8662 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8663 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8664 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8665 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8666 Move hpux-specific definitions ...
8667 * hppa-hpux-tdep.c: ... to here.
8668
8669 2004-04-05 Andrew Cagney <cagney@redhat.com>
8670
8671 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8672 skip_prologue_using_sal.
8673
8674 2004-04-05 Andrew Cagney <cagney@redhat.com>
8675
8676 * config/i386/tm-i386.h: Delete file.
8677 * config/i386/tm-vxworks.h: Update copyright, do not include
8678 "tm-i386.h".
8679 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8680 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8681 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8682 * config/i386/ncr3000.mt (TM_FILE): Delete.
8683 * config/i386/interix.mt (TM_FILE): Delete.
8684 * config/i386/i386v.mt (TM_FILE): Delete.
8685 * config/i386/i386nw.mt (TM_FILE): Delete.
8686 * config/i386/i386gnu.mt (TM_FILE): Delete.
8687 * config/i386/i386aout.mt (TM_FILE): Delete.
8688 * config/i386/embed.mt (TM_FILE): Delete.
8689
8690 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8691
8692 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8693 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8694 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8695 (accg7_regnum): New constants.
8696 (last_spr_regnum, last_pseudo_regnum): Update.
8697 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8698 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8699 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8700 for accg registers.
8701 (frv_register_sim_regno): Update spr_map[].
8702
8703 2004-04-04 Andrew Cagney <cagney@redhat.com>
8704
8705 * config/mips/xm-riscos.h: Delete.
8706 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8707 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8708 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8709 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8710 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8711 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8712 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8713 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8714 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8715 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8716 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8717 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8718 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8719 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8720 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8721 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8722 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8723 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8724 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8725 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8726 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8727 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8728 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8729 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8730 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8731 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8732
8733 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8734 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8735 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8736 * configure.host: Remove m680[01]0-sun-sunos3*,
8737 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8738 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8739 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8740 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8741 mips-*-riscos*.
8742 * NEWS: Mention removed systems.
8743
8744 2004-04-04 Andrew Cagney <cagney@redhat.com>
8745
8746 GDB 6.1 release created from 6.1 branch.
8747
8748 2004-04-04 Andrew Cagney <cagney@redhat.com>
8749
8750 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8751 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8752 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8753
8754 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8755 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8756 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8757
8758 2004-04-03 Jim Blandy <jimb@redhat.com>
8759
8760 * MAINTAINERS: Chris Faylor has changed employers; add him to
8761 "paper trail" section, and update his E-mail address.
8762
8763 2004-04-03 Andrew Cagney <cagney@redhat.com>
8764
8765 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8766 generic dummy frames.
8767 * dummy-frame.c: Update copyright.
8768 (dummy_frame_sniffer): Delete check for generic dummy frames.
8769
8770 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8771 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8772 (REG_PARM_STACK_SPACE): Delete.
8773 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8774 Inline reference to REG_PARM_STACK_SPACE.
8775
8776 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8777 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8778 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8779 (FRAME_BASE_BEFORE_SIGTRAMP)
8780 (hppa32_hpux_frame_base_before_sigtramp)
8781 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8782 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8783 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8784 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8785 (FRAME_BASE_BEFORE_SIGTRAMP)
8786 (hppa64_hpux_frame_base_before_sigtramp)
8787 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8788
8789 2004-04-03 Andrew Cagney <cagney@redhat.com>
8790
8791 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8792
8793 2004-04-02 Andrew Cagney <cagney@redhat.com>
8794
8795 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8796 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8797 * dummy-frame.h: Delete out-of-date comments.
8798 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8799 * gdbarch.h, gdbarch.c: Re-generate.
8800
8801 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8802
8803 Committed by Andrew Cagney <cagney@redhat.com>.
8804 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8805 into account an instruction saving a register if we have already
8806 seen an earlier instruction saving that same register.
8807
8808 2004-04-02 Andrew Cagney <cagney@redhat.com>
8809
8810 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8811 * gdbarch.h, gdbarch.c: Re-generate.
8812 * frame.c (legacy_get_prev_frame): Delete references to
8813 DEPRECATED_INIT_FRAME_PC_FIRST.
8814
8815 * infrun.c (pc_in_sigtramp): Delete function.
8816 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8817 get_frame_type.
8818
8819 2004-04-02 Andrew Cagney <cagney@redhat.com>
8820
8821 * infrun.c (handle_step_into_function): Delete code conditional on
8822 legacy_frame_p.
8823 (handle_inferior_event, step_over_function): Ditto.
8824
8825 2004-04-02 Andrew Cagney <cagney@redhat.com>
8826
8827 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8828 "previous frame inner to this frame" test.
8829
8830 2004-04-02 Andrew Cagney <cagney@redhat.com>
8831
8832 * frame.c (safe_frame_unwind_memory): New function.
8833 * frame.h (safe_frame_unwind_memory): Declare. Update description
8834 of /safe_/ methods.
8835 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8836 "next_frame". Use safe_frame_unwind_memory.
8837 (tramp_frame_sniffer): Update call to tramp_frame_start.
8838
8839 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8840
8841 * dwarf2read.c (dwarf2_objfile_data_key): New.
8842 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8843 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8844 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8845 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8846 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8847 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8848 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8849 Remove variables.
8850 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8851 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8852 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8853 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8854 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8855 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8856 Remove macros.
8857 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8858 data.
8859 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8860 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8861 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8862 (read_partial_die, read_full_die, read_indirect_string)
8863 (dwarf_decode_line_header, dwarf_decode_macros)
8864 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8865 Update uses of removed variables.
8866 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8867 of removed macros.
8868 (_initialize_dwarf2_read): New function.
8869 * symfile.h (dwarf2_has_info): Update prototype.
8870 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8871 * elfread.c (elf_symfile_read): Likewise.
8872
8873 2004-04-01 Jim Blandy <jimb@redhat.com>
8874
8875 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8876 function for register numbers on all the rs6000-derived targets.
8877 (rs6000_gdbarch_init): Don't register a separate
8878 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8879 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8880 variants.
8881
8882 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8883 numbering.
8884
8885 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8886
8887 * valarith.c: Update copyright notice.
8888 (value_add): Handle range types.
8889 (value_sub): Ditto.
8890 (value_equal): Ditto.
8891 (value_less): Ditto.
8892 (value_neg): Ditto.
8893 (value_complement): Ditto.
8894 (value_binop): Simplify slightly by using is_integral_type and
8895 eliminiating unnecessary COERCE_ENUMs.
8896
8897 2004-03-31 Andrew Cagney <cagney@redhat.com>
8898
8899 * frame.h (frame_unwind_id): Declare.
8900 * frame.c (frame_unwind_id): New function.
8901 (get_prev_frame_1): New function.
8902 (frame_debug_got_null_frame): New function.
8903 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8904 code proper to prev_frame, update description.
8905 * infrun.c (step_over_function): Use frame_unwind_id.
8906
8907 2004-04-31 J. Brobecker <brobecker@gnat.com>
8908
8909 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8910 (hppa64_push_dummy_call): Likewise.
8911
8912 2004-03-30 Jim Blandy <jimb@redhat.com>
8913
8914 From Ulrich Weigand:
8915 * utils.c (query): Do not use a va_list variable multiple times.
8916
8917 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * Makefile.in (linux_nat_h): Update dependencies.
8920 * configure.in: Check for <gnu/libc-version.h>.
8921 * configure: Regenerate.
8922 * config.in: Regenerate.
8923 * linux-nat.h: Include "target.h". Add waitstatus field to
8924 struct lwp_info.
8925 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8926 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8927 to.
8928 (lin_lwp_handle_extended): New function. Handle clone events.
8929 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8930 thread exit events.
8931 (child_wait): Handle clone events.
8932 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8933 * linux-nat.c (linux_enable_event_reporting): Turn on
8934 PTRACE_O_TRACECLONE.
8935 (linux_handle_extended_wait): Handle clone events.
8936 * thread-db.c: Include <gnu/libc-version.h>.
8937 (struct private_thread_info): Add dying flag.
8938 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8939 higher.
8940 (attach_thread): Update comments. Handle dying threads.
8941 (detach_thread): Set the dying flag.
8942 (check_event): Always call attach_thread.
8943
8944 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * mips-tdep.c (mips_pdr_data): New.
8947 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8948 (_initialize_mips_tdep): Initialize mips_pdr_data.
8949
8950 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8951
8952 * minsyms.c (install_minimal_symbols): Move dropping leading
8953 char from linkage name from here...
8954 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8955 test for "__gnu_compiled*" symbols.
8956
8957 2004-03-28 Jim Blandy <jimb@redhat.com>
8958
8959 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8960 registers to temp register r0 and byte stores as prologue
8961 instructions.
8962
8963 2004-03-28 Andrew Cagney <cagney@redhat.com>
8964
8965 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8966 arm*-*-*.
8967
8968 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8969
8970 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8971 and switch the layout to force a display of register window.
8972
8973 2004-02-26 J. Brobecker <brobecker@gnat.com>
8974
8975 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8976 of the INTEGER class.
8977
8978 2004-03-26 Jim Blandy <jimb@redhat.com>
8979
8980 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8981 bytes long on PPC GNU/Linux.
8982
8983 2004-03-26 David Carlton <carlton@kealia.com>
8984
8985 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8986
8987 2004-03-25 Andrew Cagney <cagney@redhat.com>
8988
8989 * PROBLEMS: Add general section titles, remove references to
8990 specific releases.
8991
8992 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8995 INT_REGISTER_SIZE.
8996 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8997 FP_REGISTER_VIRTUAL_SIZE.
8998 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8999 of DEPRECATED_REGISTER_RAW_SIZE.
9000 (arm_register_type): Add gdbarch argument.
9001 (arm_register_raw_size, arm_register_virtual_size): Delete.
9002 (arm_register_byte, arm_extract_return_value)
9003 (arm_store_return_value, arm_get_longjmp_target): Update references
9004 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9005 (arm_gdbarch_init): Likewise. Don't set
9006 deprecated_register_raw_size, deprecated_register_virtual_size,
9007 deprecated_max_register_raw_size,
9008 deprecated_max_register_virtual_size, or
9009 deprecated_max_register_virtual_type. Do set register_type.
9010 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9011 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9012 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9013 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9014 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9015 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9016 INT_REGISTER_SIZE.
9017 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9018 (remote_rdp_store_register): Likewise.
9019
9020 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9023 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9024 to after osabi initialization.
9025 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9026 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9027 functions.
9028 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9029 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9030 variables.
9031 (mips_linux_init_abi): Append signal trampoline unwinders.
9032
9033 2004-03-24 Andrew Cagney <cagney@redhat.com>
9034
9035 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9036 * tramp-frame.c: Include "gdb_assert.h".
9037 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9038 correct sizeof.
9039 (tramp_frame_append): Validate the tramp frame's instructions.
9040 * Makefile.in (tramp-frame.o): Update dependencies.
9041
9042 2004-03-23 Andrew Cagney <cagney@redhat.com>
9043
9044 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9045
9046 2004-03-23 Andrew Cagney <cagney@redhat.com>
9047
9048 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9049 Nasser as past testsuite/lib/ (and other) maintainers.
9050
9051 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * infcmd.c (attach_command): Reread symbols if we already have
9054 an exec file.
9055
9056 2004-03-23 Andrew Cagney <cagney@redhat.com>
9057
9058 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9059
9060 2004-03-23 Andrew Cagney <cagney@redhat.com>
9061
9062 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9063 * gdbarch.h, gdbarch.c: Re-generate.
9064 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9065 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9066 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9067 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9068 (DEPRECATED_SIGTRAMP_START): Update.
9069 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9070 (DEPRECATED_SIGTRAMP_START): Update.
9071 * blockframe.c (find_pc_sect_partial_function): Update.
9072 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9073
9074 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9075
9076 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9077 if necessary.
9078
9079 2004-03-23 Andrew Cagney <cagney@redhat.com>
9080
9081 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9082 predicate, deprecate.
9083 * gdbarch.h, gdbarch.c: Re-generate.
9084 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9085 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9086 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9087 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9088 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9089 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9090 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9091 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9092 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9093 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9094 * blockframe.c (find_pc_partial_function): Update.
9095 * breakpoint.c (bpstat_what): Update.
9096 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9097 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9098 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9099 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9100 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9101 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9102 * i386-nto-tdep.c (i386nto_init_abi): Update.
9103 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9104 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9105 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9106 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9107 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9108 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9109 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9110 * infrun.c (pc_in_sigtramp): Update.
9111 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9112 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9113 * mips-tdep.c (mips_gdbarch_init): Update.
9114 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9115 * ppc-linux-tdep.c: Update comment.
9116 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9117 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9118 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9119 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9120 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9121 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9122 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9123 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9124 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9125 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9126
9127 2004-03-23 Andrew Cagney <cagney@redhat.com>
9128
9129 * tramp-frame.h, tramp-frame.h: New files.
9130 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9131 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9132
9133 * Makefile.in: Update all dependencies.
9134
9135 2004-03-23 Andrew Cagney <cagney@redhat.com>
9136
9137 * Makefile.in (trad_frame_h): Add $(frame_h).
9138 * trad-frame.h: Update copyright. Include "frame.h".
9139 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9140 (trad_frame_set_id, trad_frame_get_id): Declare.
9141 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9142 * trad-frame.c: Update copyright.
9143 (struct trad_frame_cache): Define.
9144 (trad_frame_cache_zalloc): New function.
9145 (trad_frame_set_id, trad_frame_get_id): New functions.
9146 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9147
9148 2004-03-22 Andrew Cagney <cagney@redhat.com>
9149
9150 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9151 s390_pltstub_unwind_cache.
9152 (s390_stub_frame_unwind_cache): Rename
9153 s390_pltstub_frame_unwind_cache.
9154 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9155 (s390_stub_frame_prev_register): Rename
9156 s390_pltstub_frame_prev_register.
9157 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9158 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9159
9160 From Ulrich Weigand:
9161 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9162 pointer calls like PLT calls.
9163
9164 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9167 PC rather than the partial function start address. Use the start
9168 address to sanity check the found PDR.
9169
9170 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9171
9172 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9173 linux_handle_extended_wait.
9174
9175 2004-03-22 Andrew Cagney <cagney@redhat.com>
9176
9177 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9178 function.
9179
9180 * frame.h (generic_pop_current_frame): Delete declaration.
9181 (deprecate_pop_dummy_frame): Deprecate
9182 generic_pop_dummy_frame.
9183 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9184 (generic_pop_current_frame): Delete function.
9185 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9186 generic_pop_current_frame.
9187 * v850-tdep.c (v850_pop_frame): Update.
9188 * mcore-tdep.c (mcore_pop_frame): Update.
9189 * sh64-tdep.c (sh64_pop_frame): Update.
9190 * h8300-tdep.c (h8300_pop_frame): Update.
9191
9192 2004-03-22 Andrew Cagney <cagney@redhat.com>
9193
9194 * frame.h (deprecated_pc_in_call_dummy): Rename
9195 generic_pc_in_call_dummy.
9196 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9197 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9198 generic_pc_in_call_dummy.
9199 (pc_in_dummy_frame): Make static.
9200 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9201 * gdbarch.h, gdbarch.c: Re-generate.
9202 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9203 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9204 (legacy_get_prev_frame): Ditto.
9205 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9206 comment.
9207
9208 2004-03-21 Andrew Cagney <cagney@redhat.com>
9209
9210 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9211 declaration and out-of-date comment.
9212 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9213 Delete function.
9214 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9215 deprecated_pc_in_call_dummy.
9216
9217 * infrun.c (handle_inferior_event): For non legacy frames, use the
9218 frame ID and frame type to identify a signal trampoline. Update
9219 comments.
9220
9221 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9222
9223 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9224 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9225
9226 2004-03-21 Andrew Cagney <cagney@redhat.com>
9227
9228 * frame-unwind.h: Update copyright.
9229 (struct frame_data): Add opaque declaration.
9230 (frame_sniffer_ftype): Declare.
9231 (struct frame_unwind): Add "unwind_data" and "sniffer".
9232 (frame_unwind_register_unwinder): Declare.
9233 (frame_unwind_find_by_frame): Add parameter "this_cache".
9234 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9235 (legacy_get_prev_frame, legacy_get_prev_frame)
9236 (get_frame_type): Pass the prologue_cache to
9237 frame_unwind_find_by_frame.
9238 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9239 "unwinder".
9240 (frame_unwind_register_unwinder): New function.
9241 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9242
9243 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9244
9245 * bcache.c (print_percentage): Use floating point to avoid
9246 incorrect results when portion*100 overflows.
9247
9248 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9249
9250 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9251 (ppc_linux_init_extra_frame_info)
9252 (ppc_linux_frameless_function_invocation)
9253 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9254 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9255 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9256 (rs6000_frame_chain): Delete declarations.
9257 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9258 (ppc_linux_init_extra_frame_info)
9259 (ppc_linux_frameless_function_invocation)
9260 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9261 (ppc_linux_init_abi): Remove registration of above deleted functions.
9262 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9263 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9264 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9265 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9266 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9267 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9268 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9269 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9270 frame management for all OSABIs.
9271
9272 2004-03-19 Andrew Cagney <cagney@redhat.com>
9273
9274 Committed by Kevin Buettner <kevinb@redhat.com>.
9275
9276 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9277 Update copyright.
9278 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9279 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9280 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9281 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9282 unwinders. #ifdef legacy frame code.
9283 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9284 "frame-base.h".
9285 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9286 (struct rs6000_frame_cache, rs6000_frame_cache)
9287 (rs6000_frame_this_id, rs6000_frame_prev_register)
9288 (rs6000_frame_sniffer, rs6000_frame_unwind)
9289 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9290 (rs6000_frame_base): Implement a traditional frame unwinder.
9291 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9292 frame unwinder.
9293
9294 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9295
9296 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9297 breakpoint address for watchpoints or the catch eventpoints.
9298 Add new paramter ``bptype''. Adjust all callers.
9299
9300 2004-03-19 Andrew Cagney <cagney@redhat.com>
9301
9302 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9303
9304 * PROBLEMS: Delete note that ARM does not use frame code, problem
9305 fixed.
9306
9307 2004-03-18 Andrew Cagney <cagney@redhat.com>
9308
9309 * stack.c (return_command): Delete code wrapped in #ifdef
9310 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9311
9312 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9313
9314 2004-03-18 Andrew Cagney <cagney@redhat.com>
9315
9316 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9317 DEPRECATED_IN_SIGTRAMP.
9318 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9319 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9320 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9321 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9322 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9323 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9324 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9325 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9326 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9327 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9328
9329 2004-03-18 Andrew Cagney <cagney@redhat.com>
9330
9331 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9332 (struct frame_base_table_entry): Define.
9333 (struct frame_base_table): Re-implement as a linked list.
9334 (frame_base_init): Re-implement.
9335 (frame_base_table): Delete function.
9336 (append_predicate): Delete function.
9337 (frame_base_append_sniffer): Update.
9338 (frame_base_set_default): Update.
9339 (frame_base_find_by_frame): Update.
9340 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9341 * Makefile.in (frame-base.o): Update dependencies.
9342
9343 2004-03-17 Andrew Cagney <cagney@redhat.com>
9344
9345 * frame.c (legacy_get_prev_frame): Pass correct frame to
9346 frame_unwind_find_by_frame.
9347
9348 2004-03-17 David Carlton <carlton@kealia.com>
9349
9350 * NEWS: Mention C++ nested types and namespaces
9351
9352 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9353
9354 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9355 and "Regressions since gdb 5.3.". Add known regressions since
9356 gdb 6.0.
9357
9358 2004-03-16 David Carlton <carlton@kealia.com>
9359
9360 * dwarf2read.c (process_structure_scope): Process children even
9361 when we're a declaration.
9362
9363 2004-03-16 Andrew Cagney <cagney@redhat.com>
9364
9365 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9366 * blockframe.c (find_pc_partial_function)
9367 (find_pc_sect_partial_function): Merge into a single
9368 find_pc_partial_function.
9369
9370 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9371
9372 * i386bsd-nat.c: s/regno/regnum/g.
9373 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9374 FP0_REGNUM.
9375 (store_inferior_registers): Likewise.
9376
9377 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9378
9379 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9380 of i387_fill_fsave.
9381 (store_inferior_registers): Call i387_collect_fsave and
9382 i387_collect_fxsave instead of i387_fill_fsave and
9383 i387_fill_fxsave.
9384
9385 2004-03-15 Andrew Cagney <cagney@redhat.com>
9386
9387 * Makefile.in (frame-unwind.o): Update dependencies.
9388 * frame-unwind.c: Include "gdb_obstack.h".
9389 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9390 parameter.
9391 (append_predicate): Delete function.
9392 (struct frame_unwind_table_entry): New structure.
9393 (struct frame_unwind_table): Replace "sniffer" with "head" and
9394 "tail".
9395 (frame_unwind_append_sniffer): Update.
9396 (frame_unwind_find_by_frame): Update.
9397 (_initialize_frame_unwind): Registe frame_unwind_init using
9398 gdbarch_data_register_pre_init.
9399
9400 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9401
9402 * i386bsd-nat.c: Update copyright year.
9403 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9404 define unconditionally.
9405
9406 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9407
9408 * i387-tdep.h (i387_collect_fsave): New prototype.
9409 * i387-tdep.c (i387_collect_fsave): New function containing most
9410 of the code from i387_fill_fsave.
9411 (i387_fill_fsave): Call i387_collect_fsave.
9412
9413 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9414
9415 * i386-linux-tdep.c: Update copyright year.
9416 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9417 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9418 svr4_ilp32_link_map_offsets instead of
9419 i386_linux_svr4_fetch_link_map_offsets.
9420
9421 2004-03-15 David Carlton <carlton@kealia.com>
9422
9423 Fix for PR c++/1553:
9424 * dwarf2read.c (read_structure_type): Determine type name by
9425 calling determine_class_name.
9426 (determine_class_name): New.
9427 (determine_prefix): Look at TYPE_TAG_NAME and call
9428 determine_class_name when appropriate.
9429 (determine_prefix_aux, class_name): Delete.
9430 (read_namespace): Set die->type.
9431
9432 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9433
9434 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9435 unused macro definition. The definition in target.h (or perhaps
9436 elsewhere) takes precedence.
9437
9438 2004-03-15 Andrew Cagney <cagney@redhat.com>
9439
9440 * ppc-tdep.h: Update copyright.
9441 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9442 function signatures to match "regsets.h".
9443 * ppc-linux-tdep.c: Include "regset.h".
9444 (ELF_GREGSET_SIZE): Delete.
9445 (right_supply_register): New function.
9446 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9447 using right_supply_register.
9448 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9449 functions.
9450 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9451 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9452 (_initialize_ppc_linux_tdep): Do not register
9453 ppc_linux_regset_core_fns.
9454 (ppc_linux_regset_from_core_section): Replace
9455 fetch_core_registers.
9456 (ppc_linux_regset_core_fns): Delete.
9457 * ppc-linux-nat.c: (right_fill_reg): New function.
9458 (supply_gregset): Update call to ppc_linux_supply_gregset.
9459 (fill_gregset): Clear the register set, use right_fill_reg.
9460 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9461 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9462
9463 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9464 unsigned.
9465
9466 2004-03-15 Andrew Cagney <cagney@redhat.com>
9467
9468 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9469 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9470 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9471 and register_gdbarch_data.
9472 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9473 (struct gdbarch_data): Replace "init" by "pre_init" and
9474 "post_init".
9475 * gdbarch.h, gdbarch.c: Re-generate.
9476 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9477 with"obstack", use OBSTACK_ZALLOC.
9478 (dwarf2_frame_ops): Delete.
9479 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9480 (dwarf2_frame_init_reg): Use gdbarch_data.
9481 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9482 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9483 (_initialize_svr4_solib): Update.
9484 * user-regs.c (_initialize_user_regs): Update.
9485 * reggroups.c (_initialize_reggroup): Update.
9486 * regcache.c (_initialize_regcache): Update.
9487 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9488 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9489 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9490 * frame-unwind.c (_initialize_frame_unwind): Update.
9491 * frame-base.c (_initialize_frame_base): Update.
9492 * user-regs.c (user_reg_add): Update.
9493 * reggroups.c (reggroup_add): Update.
9494 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9495 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9496 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9497 * frame-base.c (frame_base_table): Update.
9498 * remote.c (_initialize_remote): Update.
9499 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9500
9501 2004-03-15 Andrew Cagney <cagney@redhat.com>
9502
9503 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9504
9505 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9506
9507 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9508 * frv-linux-tdep.c: New file.
9509 * frv-tdep.c (struct gdbarch_tdep): Add new field
9510 ``sigcontext_reg_addr''.
9511 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9512 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9513 (frv_sigramp_frame_sniffer): New functions.
9514 (frv_sigtramp_frame_unwind): New static global.
9515 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9516 sniffers.
9517 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9518 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9519
9520 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9521
9522 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9523 but not via a call to error(), when unable to read memory.
9524
9525 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9526
9527 * frv-tdep.c (frv_call_dummy_words): Delete.
9528 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9529
9530 2004-03-15 Andrew Cagney <cagney@redhat.com>
9531
9532 * infrun.c (handle_step_into_function, step_over_function): Only
9533 update and use STEP_FRAME_ID when the system is using legacy
9534 frames. Update comments.
9535
9536 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9537
9538 * amd64-linux-tdep.h: Remove file.
9539 * amd64-linux-tdep.c: Don't include "inferior.h" and
9540 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9541 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9542 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9543 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9544 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9545 macros.
9546 (user_to_gdb_regmap): Remove variable.
9547 (amd64_linux_gregset_reg_offset): New variable.
9548 (amd64_core_fns): Remove variable.
9549 (fetch_core_registers): Remove function.
9550 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9551 functions.
9552 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9553 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9554 * Makefile.in (amd64_linux_tdep_h): Remove.
9555 (amd64-linux-nat.o): Update dependencies.
9556 (amd64-linux-tdep.o): Update dependencies.
9557
9558 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9559 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9560 functions.
9561 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9562
9563 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9564 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9565
9566 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * dwarf2read.c (read_structure_type): Rename from
9569 read_structure_scope. Don't create a symbol or call process_die.
9570 Return immediately if die->type is set. Call read_type_die before
9571 dwarf2_add_member_fn.
9572 (process_structure_scope): New function.
9573 (read_enumeration_type, process_enumeration_scope): New functions,
9574 broken out from read_enumeration. Don't create the enumeration
9575 type if it has already been created.
9576 (read_enumeration): Removed.
9577 (process_die): Call read_structure_type, process_structure_scope,
9578 read_enumeration_type, and process_enumeration_scope. Just call
9579 new_symbol for base and subrange types. Add a comment about other
9580 type dies.
9581 (read_type_die): Call read_enumeration_type.
9582 (add_partial_structure, new_symbol): Update comments.
9583
9584 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9585
9586 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9587
9588 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9589
9590 * tui/tui-win.h (tui_get_cmd_list): Declare.
9591 * tui/tui-win.c (tui_command): New function.
9592 (tui_get_cmd_list): New function.
9593 (_initialize_tui_win): Moved initialization of tui command in
9594 tui_get_cmd_list.
9595
9596 * tui/tui-data.c (init_content_element): Setup new data members.
9597 (init_win_info): Likewise.
9598 (free_content_elements): Free it.
9599 * tui/tui-data.h (struct tui_data_element): Store the register
9600 content to print.
9601 (struct tui_data_info): Keep the current register group.
9602
9603 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9604
9605 * tui/tui-regs.h (tui_show_registers): Update prototype.
9606 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9607 (tui_resize_all): No need to calculate anything for register window.
9608 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9609 (tui_set_register_element, tui_set_general_regs_content): Remove.
9610 (tui_set_special_regs_content): Remove.
9611 (tui_set_general_and_special_regs_content): Remove.
9612 (tui_set_float_regs_content): Remove.
9613 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9614 (tui_set_regs_content): Remove.
9615 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9616 (tui_v_show_registers_command_support): Remove.
9617 (tui_show_registers): Use a reggroup to specify the registers to show.
9618 (tui_show_register_group): New function.
9619 (tui_display_registers_from): Compute the layout of register window
9620 and refresh with new API; be sure to delete old register windows.
9621 (tui_check_register_values): Update to use tui_get_register and
9622 tui_display_data.
9623 (tui_display_register): Just refresh the register window part.
9624 (tui_register_format): Format registers and save in tui_data_element.
9625 (tui_get_register): New to combine tui_reg_value_has_changed and
9626 tui_get_register_raw_value; fix to use the new gdb API.
9627 (tui_show_float_command): Renamed tui_reg_float_command.
9628 (tui_show_general_command): Renamed tui_reg_general_command.
9629 (tui_show_special_command): Renamed tui_reg_system_command.
9630 (_initialize_tui_regs): Remove unused commands.
9631
9632 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9633
9634 * NEWS (New native configurations): Mention OpenBSD/amd64.
9635
9636 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9637 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9638 Remove defines.
9639 * config/i386/nm-fbsd64.h: Likewise.
9640 * config/i386/nm-obsd.h: Likewise.
9641 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9642 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9643
9644 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9645
9646 * frv-tdep.c (set_variant_scratch_registers): New function.
9647 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9648 New constants.
9649
9650 From Richard Sandiford <rsandifo@redhat.com>:
9651 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9652
9653 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9654
9655 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9656 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9657 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9658 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9659 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9660 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9661 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9662 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9663 definitions from frv-tdep.c to frv-tdep.h.
9664
9665 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9666
9667 Add shared library support for FR-V FDPIC ABI:
9668 * Makefile.in (solib-frv.o): Add dependencies.
9669 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9670 New functions.
9671 (frv_push_dummy_call): Add support for FDPIC ABI.
9672 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9673 for FDPIC ABI.
9674 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9675 (frv_fdpic_find_canonical_descriptor): Declare.
9676 * solib-frv.c: New file.
9677 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9678 * config/frv/tm-frv.h (solib.h): Include.
9679
9680 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9681
9682 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9683 (frv-tdep.o): Update dependencies.
9684 * frv-tdep.h: New file.
9685 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9686 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9687 constants.
9688 (struct gdbarch_tdep): Add new member ``frv_abi''.
9689 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9690 functions.
9691 (new_variant): Set ``frv_abi'' field.
9692 (gdb_arch_init): Detect FDPIC executables.
9693
9694 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9695
9696 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9697 wrapper.
9698
9699 2004-03-11 Andrew Cagney <cagney@redhat.com>
9700
9701 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9702
9703 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9704
9705 * solist.h (master_so_list): New function.
9706 * solib.c (master_so_list): Likewise.
9707 * solib-svr4.c (enable_break): Iterate over so_list entries
9708 obtained from master list instead of entries obtained directly
9709 via svr4_current_sos().
9710
9711 2004-03-10 Ben Elliston <bje@gnu.org>
9712
9713 * MAINTAINERS: Update my mail address.
9714
9715 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9716
9717 * remote-m32r-sdi.c: Support hardware watchpoint.
9718
9719 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * user-regs.c: Update copyright years.
9722 (struct user_regs): Rename to gdb_user_regs.
9723 (append_user_reg, builtin_user_regs, user_regs_init)
9724 (user_reg_add, user_reg_map_name_to_regnum)
9725 (usernum_to_user_reg): Update.
9726
9727 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9728
9729 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9730 (skip_children): New functions.
9731 (locate_pdi_sibling): Call skip_children.
9732
9733 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9734
9735 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9736 * gdbtypes.c (check_typedef): Update comments.
9737
9738 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9741 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9742 pointer. Update comment about comp_unit_head.
9743 (struct abbrev_info): Shorten two int flags.
9744 (dwarf_alloc_abbrev): Take a CU argument.
9745 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9746 each time through the loop. Update cleanup argument.
9747 (psymtab_to_symtab_1): Update cleanup call.
9748 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9749 abbrev_obstack.
9750 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9751 Just call obstack_free and clear the pointer.
9752
9753 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9754
9755 * infrun.c (handle_inferior_event): Remove short-circuit code for
9756 events in a different thread.
9757
9758 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9761 print the whole transfer.
9762 (initialize_targets): Update description of "set debug target".
9763
9764 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9765
9766 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9767
9768 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9769
9770 * MAINTAINERS (write after approval): Add myself.
9771
9772 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9773
9774 * sh-tdep.c (sh_print_registers_info): Use for loop.
9775 Don't skip multiple registers when a float register is encountered.
9776
9777 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9778
9779 Fix PR tdep/1291.
9780 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9781 to official SH documentation.
9782
9783 2004-03-07 Andrew Cagney <cagney@redhat.com>
9784
9785 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9786 unused function.
9787
9788 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9791 (arm_get_next_pc): Handle BX and BLX.
9792
9793 2004-03-07 Andrew Cagney <cagney@redhat.com>
9794
9795 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9796 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9797 HPPA_SP_REGNUM.
9798 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9799 (hppa_target_read_fp): Delete.
9800 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9801 register_virtual_size, max_register_raw_size,
9802 max_register_virtual_size, register_byte, register_size,
9803 target_read_fp, fp_regnum, and register_bytes. Set register_type
9804 instead of register_virtual_type.
9805 (hppa32_register_type, hppa64_register_type): Replace
9806 hppa32_register_virtual_type and hppa64_register_virtual_type.
9807 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9808 (HPPA_FP_REGNUM): Define.
9809
9810 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9811
9812 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9813 (pa_do_registers_info): Delete.
9814 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9815 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9816 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9817
9818 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9819 GDB_TARGET_IS_HPPA code.
9820 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9821 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9822 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9823 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9824 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9825 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9826 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9827 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9828 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9829 (hppa_frameless_function_invocation, hppa64_store_return_value)
9830 (hppa_store_struct_return, hppa64_extract_return_value)
9831 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9832 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9833 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9834 (find_proc_framesize, deposit_21, restore_pc_queue)
9835 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9836 (rp_saved, pc_in_linker_stub): Delete.
9837
9838 Unconditionally enable 64-bit frame and ABI code.
9839 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9840 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9841 push_dummy_frame, fix_call_dummy, push_arguments,
9842 call_dummy_location, extract_return_value, use_struct_convention,
9843 store_return_value, store_struct_return, saved_pc_after_call,
9844 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9845 frame_chain, frame_chain_valid, frameless_function_invocation,
9846 frame_saved_pc, and pop_frame.
9847
9848 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9849 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9850 (hppa_gdbarch_init): Do not set PC_REGNUM.
9851
9852 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9853
9854 * config/alpha/tm-fbsd.h: Remove file.
9855 * config/alpha/fbsd.mt: Tweak comment.
9856 (TM_FILE): Set to tm-alpha.h.
9857
9858 2004-03-05 Andrew Cagney <cagney@redhat.com>
9859
9860 * infrun.c (step_over_function): When non-legacy code, and no
9861 step_frame_id, use the unwinder to get the caller's frame ID.
9862
9863 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9864
9865 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9866 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9867 bfd_arch_unknown. Adjust comment.
9868
9869 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9870 * i386obsd-tdep.c: Correct spelling in comment.
9871 * i386nbsd-tdep.c: Correct spelling in comment.
9872 * sparc-tdep.c: Correct spelling in comments.
9873
9874 2004-03-05 David Carlton <carlton@kealia.com>
9875
9876 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9877 bug.
9878
9879 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9880
9881 * sparc-tdep.c: Fix typo in comment.
9882
9883 2004-03-04 J. Brobecker <brobecker@gnat.com>
9884
9885 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9886
9887 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * dwarf2read.c: Add comment describing memory lifetimes.
9890 (struct dwarf2_pinfo): Update comment.
9891 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9892 (read_enumeration, new_symbol): Don't use obsavestring.
9893
9894 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9895
9896 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9897 instead of amd64_fill_fxsave.
9898 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9899 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9900
9901 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9902 Reorganize code a bit.
9903
9904 2004-03-04 Orjan Friberg <orjanf@axis.com>
9905
9906 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9907 when the frame pointer is pushed. Don't set the frame pointer's
9908 address on the stack unless it's actually located there.
9909 Set the SRP's address on the stack correctly when the PC is still in
9910 the prologue.
9911 (cris_return_value): New function.
9912 (cris_gdbarch_init): Clear deprecated store_return_value,
9913 extract_return_value.
9914
9915 2004-03-02 Jim Blandy <jimb@redhat.com>
9916
9917 * stabsread.c (reg_value_complaint): The maximum register number
9918 is one less than the number of registers.
9919
9920 2004-03-02 Andrew Cagney <cagney@redhat.com>
9921
9922 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9923 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9924 trailing comma and redundant assignment of I386_ST0_REGNUM.
9925 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9926 32-bit segment registers.
9927
9928 2004-03-01 Andrew Cagney <cagney@redhat.com>
9929
9930 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9931 use frame_relative_level and get_next_frame.
9932
9933 2004-02-29 Andrew Cagney <cagney@redhat.com>
9934
9935 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9936 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9937 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9938 Delete macro.
9939
9940 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9941
9942 * inflow.c (terminal_inferior): Don't give up the terminal if we
9943 previously couldn't get the inferior's terminal state.
9944
9945 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9948 PC_REGNUM.
9949
9950 2004-02-28 Andrew Cagney <cagney@redhat.com>
9951
9952 * NEWS: Refer to GDB 6.1.
9953 * README: Refer to GDB 6.1.
9954 * PROBLEMS: Refer to GDB 6.1.
9955
9956 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9957
9958 * thread-db.c (disable_thread_signals): Remove unused function.
9959
9960 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9961
9962 * amd64-nat.c: Include "gdb_string.h".
9963 (amd64_collect_native_gregset): Zero-extend the 32-bit
9964 general-purpose registers and %eip.
9965
9966 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9967 * amd64-tdep.c (amd64_collect_fxsave): New function.
9968 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9969
9970 * i387-tdep.h: Update copyright year.
9971 (i387_collect_fxsave): New prototype.
9972 * i387-tdep.c: Update copyright year.
9973 (i387_collect_fxsave): New function containing most of the code
9974 from i387_fill_fxsave.
9975 (i387_fill_fxsave): Call i387_collect_fxsave.
9976
9977 2004-02-28 Andrew Cagney <cagney@redhat.com>
9978
9979 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9980 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9981
9982 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9983
9984 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9985
9986 2004-02-28 Andrew Cagney <cagney@redhat.com>
9987
9988 * utils.c: Use "", instead of <>, to include readline.
9989 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9990 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9991 * source.c, solib.c, exec.c, event-top.c: Ditto.
9992 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9993 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9994 * Makefile.in: Update all dependencies.
9995 (readline_tilde_h, readline_history_h): Define.
9996 (readline_headers): Delete.
9997
9998 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9999
10000 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10001 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10002 "config/i386/tm-lx64.h".
10003
10004 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10005 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10006 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10007
10008 2004-02-28 Andrew Cagney <cagney@redhat.com>
10009
10010 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10011
10012 * breakpoint.c (_initialize_breakpoint): Use
10013 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10014 Add help to show command.
10015
10016 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10017
10018 * i386-nat.c: Reformat to be closer to coding standards.
10019 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10020 `retval'. Make variables `align' and `size' local to while-loop.
10021 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10022 (_initialize_i386_nat): New prototype.
10023
10024 * tui/tui.c: Include <readline/readline.h> instead of
10025 "readline/readline.h". Include it after <term.h> and
10026 "gdb_curses.h".
10027
10028 2004-02-27 Andrew Cagney <cagney@redhat.com>
10029
10030 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10031 the new frame unwind code.
10032 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10033 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10034 PCOQ_HEAD_REGNUM.
10035
10036 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10037 "return_value" and "push_dummy_call".
10038 (hppa32_use_struct_convention): Delete unused function.
10039 (hppa32_store_return_value): Delete unused function.
10040 (hppa32_extract_return_value): Delete unused function.
10041 (hppa32_stack_align): Delete function.
10042
10043 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10044
10045 * coffread.c (enter_linenos): Don't let rawptr reference memory
10046 outside linetab[]'s limits.
10047
10048 2004-02-27 Andrew Cagney <cagney@redhat.com>
10049
10050 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10051 inferior stack space - the stack needs to grow upwards.
10052 (hppa32_frame_align): New function.
10053 (hppa64_frame_align): Replace hppa_frame_align.
10054 (hppa_gdbarch_init): Update.
10055
10056 2004-02-26 Orjan Friberg <orjanf@axis.com>
10057
10058 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10059 (dwarf2-frame.h): Include.
10060 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10061 Remove static variables related to ABI setting.
10062 (struct gdbarch_tdep): Remove cris_abi member.
10063 (struct frame_extra_info): Remove.
10064 (cris_unwind_cache, stack_item): New structs.
10065 (cris_frame_unwind, cris_frame_base): New variables.
10066 (push_stack_item, pop_stack_item)
10067 (cris_frame_unwind_cache, cris_frame_this_id)
10068 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10069 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10070 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10071 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10072 (cris_reg_struct_has_addr): New functions.
10073 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10074 (cris_frame_saved_pc, cris_saved_pc_after_call,
10075 (cris_store_struct_return, cris_frameless_function_invocation)
10076 (cris_pop_frame, cris_skip_prologue_main)
10077 (cris_abi_original_store_return_value)
10078 (cris_abi_v2_store_return_value)
10079 (cris_abi_original_extract_return_value)
10080 (cris_abi_v2_extract_return_value)
10081 (cris_abi_original_reg_struct_has_addr)
10082 (cris_abi_v2_reg_struct_has_addr)
10083 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10084 (cris_push_return_address, cris_abi_update): Remove.
10085 (_initialize_cris_tdep): Remove ABI command.
10086 (cris_dump_tdep): Ditto.
10087 (cris_gdbarch_init): Remove ABI command.
10088 Set store_return_value, extract_return_value, push_dummy_code,
10089 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10090 frame_unwind_append_sniffer, frame_base_set_default.
10091 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10092 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10093 sizeof_call_dummy_words, get_saved_register, push_return_address,
10094 pop_frame, store_struct_return, frame_init_saved_regs,
10095 init_extra_frame_info, frameless_function_invocation, frame_chain,
10096 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10097 dummy_write_sp.
10098
10099 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10100
10101 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10102 * valprint.c (print_hex_chars): Change from static to external.
10103 (print_char_chars): New function.
10104 * printcmd.c (print_scalar_formatted): For integer and enum types
10105 that are longer than LONGEST, perform processing via appropriate
10106 print_*_chars routines.
10107
10108 2004-02-26 Andrew Cagney <cagney@redhat.com>
10109
10110 * Makefile.in: Update dependencies.
10111 Changes from Ulrich Weigand,
10112 * s390-tdep.c: Include "dwarf2-frame.h".
10113 (s390_dwarf2_frame_init_reg): New function.
10114 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10115 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10116
10117 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10118
10119 * breakpoint.c (pending_break_support): New setting variable.
10120 (break_command_1): Account for pending_break_support setting
10121 when creating pending breakpoints.
10122 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10123 (_initialize_breakpoint): Add "set breakpoint pending" and
10124 "show breakpoint pending" commands.
10125
10126 2004-02-26 Andrew Cagney <cagney@redhat.com>
10127
10128 Fix PR i18n/1570.
10129 * charset.c (backslashable, backslashed, represented): Remove 'e'
10130 from list of escaped characters, not part of ISO-C.
10131
10132 2004-02-25 J. Brobecker <brobecker@gnat.com>
10133
10134 From Peter Schauer <schauer@pdf.de>:
10135 * tui/tui.c: Move system header includes after local includes.
10136 Fixes a build failure on solaris systems.
10137
10138 2004-02-25 J. Brobecker <brobecker@gnat.com>
10139
10140 * configure.in: Refine the previous change.
10141 * configure: Regenerate.
10142
10143 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10144
10145 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10146 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10147 "amd64-tdep.h" instead of "x86-64-tdep.h".
10148 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10149 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10150 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10151 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10152 and "x86-64-tdep.c".
10153 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10154 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10155 and "x86-64-tdep.c".
10156 * amd64bsd-nat.c: Update copyright year.
10157 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10158 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10159 "x86-64-tdep.h".
10160 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10161 "x86-64-tdep.h".
10162 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10163 "x86-64-tdep.h".
10164 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10165 "x86-64-tdep.h".
10166 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10167 "x86-64-tdep.h".
10168 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10169 "x86-64-tdep.h".
10170 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10171 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10172 * Makefile.in (amd64_linux_tdep_h): Renamed from
10173 x86_64_linux_tdep_h.
10174 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10175 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10176 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10177 (amd64obsd-tdep.o): Update dependencies.
10178 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10179 dependencies.
10180 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10181 dependencies.
10182 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10183 amd64-linux-nat.c amd64-linux-tdep.c.
10184 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10185 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10186 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10187 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10188 amd64-tdep.o and amd64-linux-tdep.o.
10189 (TM_FILE): Set to tm-linux64.h.
10190 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10191 (NAT_FILE): Set to nm-linux64.h.
10192 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10193 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10194 amd64-tdep.o.
10195 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10196 amd64-tdep.o.
10197 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10198 amd64-tdep.o.
10199
10200 2004-02-25 Roland McGrath <roland@redhat.com>
10201
10202 * remote.c (remote_protocol_qPart_auxv): New variable.
10203 (init_all_packet_configs): Initialize it.
10204 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10205 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10206 (show_remote_cmd): Call it.
10207 (_initialize_remote): Initialize commands.
10208 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10209 service TARGET_OBJECT_AUXV requests.
10210
10211 2004-02-25 J. Brobecker <brobecker@gnat.com>
10212
10213 * configure.in: Make sure that the wborder function is available.
10214 Otherwise, search for it in the cur_colr library.
10215 * configure: Regenerate.
10216
10217 2004-02-25 Andrew Cagney <cagney@redhat.com>
10218
10219 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10220
10221 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10222
10223 * config/i386/tm-x86-64linux.h: Tweak comments.
10224
10225 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10226
10227 * MAINTAINERS: Add self to write-after-approval list.
10228
10229 2004-02-25 Andrew Cagney <cagney@redhat.com>
10230
10231 PR cli/1566. Problem found, and fix suggested by David Allan.
10232 * cli/cli-script.c (execute_control_command): Unconditionally
10233 install a cleanup. Default "ret" to "invalid_control". Use
10234 "break" instead of "return" to escape from the switch.
10235
10236 2004-02-24 J. Brobecker <brobecker@gnat.com>
10237
10238 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10239 with the lines macro defined in term.h on AiX.
10240 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10241 a collision with the label_width macro defined in term.h on AiX.
10242
10243 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10244
10245 Committed by Kevin Buettner <kevinb@redhat.com>.
10246
10247 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10248 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10249 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10250 instead of ia64_write_pc().
10251 * ia64-linux-tdep.c (regcache.h): Include.
10252 (ia64_linux_write_pc): New function.
10253
10254 2004-02-23 Roland McGrath <roland@redhat.com>
10255
10256 * auxv.c (info_auxv_command): Fix typos in error messages.
10257
10258 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10259
10260 * x86-64-tdep.h: Tweak comment.
10261 (enum amd64_regnum): New.
10262 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10263 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10264 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10265 (X86_64_XMM1_REGNUM): Removed.
10266 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10267 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10268 prototypes for renamed functions.
10269 * x86-64-tdep.c: Fix typo.
10270 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10271 register numbers.
10272 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10273 Use constants from `enum amd64_regnum' for register numbers.
10274 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10275 (amd64_analyze_prologue, amd64_frame_cache,
10276 amd64_sigtramp_frame_cache): Use constants from `enum
10277 amd64_regnum' for register numbers.
10278 (amd64_supply_fpregset): Adjust for renamed functions.
10279 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10280 `enum amd64_regnum' for register numbers.
10281 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10282 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10283 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10284 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10285 (amd64_linux_fill_gregset): Adjust for renamed macros.
10286 (fetch_core_registers): Adjust for renamed functions.
10287 (amd64_linux_init_abi): Adjust for renamed functions.
10288 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10289 renamed functions.
10290 * amd64-nat.c: Adjust for renamed macros.
10291 * amd64bsd-nat.c (fetch_inferior_registers)
10292 (store_inferior_registers): Use constants from `enum amd64_regnum'
10293 for register numbers. Adjust for renamed variables.
10294 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10295 renamed variables.
10296 (_initialize_amd64fbsd_nat): Use constants from `enum
10297 amd64_regnum' for register numbers.
10298 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10299 `enum amd64_regnum' for register numbers.
10300 (amd64fbsd_init_abi): Adjust for renamed functions.
10301 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10302 `enum amd64_regnum' for register numbers.
10303 (amd64nbsd_init_abi): Adjust for renamed functions.
10304 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10305 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10306 `enum amd64_regnum' for register numbers.
10307 (amd64obsd_init_abi): Adjust for renamed functions.
10308 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10309
10310 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10311
10312 * breakpoint.c (print_one_breakpoint): Do not output spaces
10313 after printing <PENDING> for a pending breakpoint.
10314
10315 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10316
10317 * printcmd.c (print_scalar_formatted): Initialize val_long
10318 to remove compiler warning message.
10319
10320 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10321
10322 * defs.h (nquery, yquery): New prototypes.
10323 * breakpoint.c (break_command_1): Use new nquery interface.
10324 * utils.c (defaulted_query, nquery, yquery): New functions.
10325
10326 2004-02-23 Andrew Cagney <cagney@redhat.com>
10327
10328 * hppa-tdep.c (hppa_frame_align): New function.
10329 (hppa32_push_dummy_call): New function.
10330 (hppa64_push_dummy_call): New function.
10331 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10332 disabled.
10333
10334 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10335 FIX_CALL_DUMMY when push_dummy_call is available.
10336 (call_function_by_hand, push_dummy_code): Ditto.
10337
10338 2004-02-22 Andrew Cagney <cagney@redhat.com>
10339
10340 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10341 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10342 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10343 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10344 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10345 call_dummy_location to ON_STACK.
10346
10347 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10348
10349 * x86-64-linux-tdep.c: Tweak comment.
10350 (amd64_linux_supply_gregset): Renamed from
10351 x86_64_linux_supply_gresget.
10352 (amd64_linux_fill_gregset): Renamed from
10353 x86_64_linux_fill_gregset.
10354 (fetch_core_registers): Adjust for renamed functions.
10355 (amd64_core_fns): Renamed from x86_64_core_fns.
10356 (amd64_linux_sigtramp_start): Renamed from
10357 x86_64_linux_sigtramp_start.
10358 (amd64_linux_pc_in_sigtramp): Renamed from
10359 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10360 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10361 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10362 (amd64_linux_sigcontext_addr): Renamed from
10363 x86_64_linux_sigcontext_addr.
10364 (amd64_linux_sc_reg_offset): Renamed from
10365 x86_64_linux_sc_reg_offset.
10366 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10367 Adjust for renamed functions and variables.
10368 (_initialize_amd64_linux_tdep): Renamed from
10369 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10370 variables.
10371 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10372 Adjust for renamed functions.
10373
10374 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10375 from x86_64_linux_gregset64_reg_offset.
10376 (amd64_linux_gregset32_reg_offset): Rename from
10377 x86_64_linux_gregset64_reg_offset.
10378 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10379 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10380 (amd64_linux_dr_set_control): Renamed from
10381 x86_64_linux_dr_set_control. Adjust for renamed functions.
10382 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10383 Adjust for renamed functions.
10384 (amd64_linux_dr_reset_addr): Renamed from
10385 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10386 (amd64_linux_dr_get_status): Renamed from
10387 x86_64_linux_dr_get_status. Adjust for renamed functions.
10388 (_initialize_amd64_linux_nat): Renamed from
10389 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10390 functions.
10391 * config/i386/nm-x86-64linux.h: Update copyright year.
10392 Adjust for renamed functions.
10393
10394 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10395 amd64fbsd_sigtramp_start.
10396 (amd64fbsd_sigtramp_end_addr): Renamed from
10397 amd64fbsd_sigtramp_end.
10398 (amd64fbsd_init_abi): Adjust for renamed variables.
10399 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10400 variables.
10401 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10402 amd64fbsd_sigtramp_start.
10403 (amd64fbsd_sigtramp_end_addr): Renamed from
10404 amd64fbsd_sigtramp_end.
10405
10406 2004-02-22 Andrew Cagney <cagney@redhat.com>
10407
10408 * hppa-tdep.c (hppa32_return_value): New function.
10409 (hppa64_return_value): New function.
10410 (hppa_gdbarch_init): Set return_value; keep disabled.
10411
10412 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10413 struct-return and inferior function call methods.
10414
10415 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10416 "frame-base.h".
10417 (struct hppa_frame_cache): Define.
10418 (hppa_frame_cache, hppa_frame_this_id): New functions.
10419 (hppa_frame_prev_register): New function.
10420 (hppa_frame_unwind, hppa_frame_base): New variables.
10421 (hppa_frame_unwind_sniffer): New function.
10422 (hppa_frame_base_address, hppa_unwind_pc): New function.
10423 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10424 sniffer, and frame base sniffer; keep disabled.
10425 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10426 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10427
10428 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10429 to predicates for "seriously old code".
10430
10431 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10432 runtime if(0).
10433
10434 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10435 unsigned.
10436 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10437
10438 * config/pa/tm-hppa.h: Update copyright.
10439 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10440 (deprecated_init_frame_pc_default): Delete declaration.
10441 (hppa_frame_init_saved_regs): Delete declaration.
10442 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10443 * hppa-tdep.c: Include "arch-utils.h".
10444 (hppa_gdbarch_init): Set deprecated init_frame_pc
10445 and deprecated frame_init_saved_regs.
10446 (hppa_frame_init_saved_regs): Make static.
10447
10448 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10449
10450 Remove old 386BSD support.
10451 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10452 * configure.host: Remove i[34567]86-*-bsd*.
10453 * configure.tgt: Remove i[34567]86-*-bsd*.
10454 * i386b-nat.c: Removed.
10455 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10456 (i386b-nat.o): Remove dependencies.
10457
10458 * config/i386/i386bsd.mh: Removed.
10459 * config/i386/i386bsd.mt: Removed.
10460 * config/i386/nm-i386bsd.h: Removed.
10461 * config/i386/tm-i386bsd.h: Removed.
10462 * config/i386/xm-i386bsd.h: Removed.
10463
10464 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10465
10466 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10467 (amd64fbsd_init_abi): Set link map offsets.
10468 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10469 (amd64nbsd_init_abi): Set link map offsets.
10470 * amd64obsd-tdep.c: Include "solib-svr4.h".
10471 (amd64obsd_init_abi): Set link map offsets.
10472 * i386fbsd-tdep.c: Include "solib-svr4.h".
10473 (i386fbsd_init_abi): Set link map offsets.
10474 * i386nbsd-tdep.c: Include "solib-svr4.h".
10475 (i386nbsdelf_init_abi): Set link map offsets.
10476 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10477 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10478 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10479 solib-legacy.o and core-aout.o. Reformat.
10480 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10481 solib-svr4.o, solib-legacy.o. Reformat.
10482 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10483 * config/i386/nbsdelf.mh: Reformat.
10484 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10485 solib-svr4.o, solib-legacy.o and corelow.o.
10486 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10487 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10488 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10489 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10490 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10491 (TM_FILE): Set to tm-fbsd.h.
10492 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10493 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10494 solib-svr4.o.
10495 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10496 solib-svr4.o.
10497 (TM_FILE): Set to nm-nbsd.h.
10498 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10499 Simplify shared library support. Don't include "elf/common.h".
10500 (SVR4_SHARED_LIBS): Don't define.
10501 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10502 "solib.h".
10503 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10504 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10505 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10506 Don't include "i386/tm-i386.h". Include "solib.h".
10507 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10508 Don't include "i386/tm-i386.h".
10509 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10510 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10511 Include "i386/xm-i386.h".
10512 (HOST_LONG_DOUBLE_FORMAT): Remove.
10513
10514 Fix OpenBSD/i386 sigtramp recognition.
10515 * i386-tdep.h: Update copyright year.
10516 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10517 (i386bsd_sigtramp_end): New prototypes.
10518 (i386fbsd_sigtramp_start_addr): Renamed from
10519 i386fbsd_sigtramp_start.
10520 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10521 (i386obsd_sigtramp_start_addr): Renamed from
10522 i386obsd_sigtramp_start.
10523 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10524 * i386bsd-tdep.c: Update copyright year.
10525 (i386bsd_pc_in_sigtramp): Make public.
10526 * i386fbsd-nat.c: Update copyright year.
10527 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10528 * i386fbsd-tdep.c: Update copyright year.
10529 (i386fbsd_sigtramp_start_addr): Renamed from
10530 i386fbsd_sigtramp_start.
10531 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10532 (i386fbsdaout_init_abi): Adjust for renamed variables.
10533 * i386obsd-nat.c: Update copyright year.
10534 (_initialize_i386obsd_nat): Adjust for renamed variables.
10535 * i386obsd-tdep.c: Include "target.h".
10536 (i386obsd_page_size): New variable.
10537 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10538 (i386obsd_sigtramp_end): New functions.
10539 (i386obsd_sigtramp_start_addr): Renamed from
10540 i386obsd_sigtramp_start.
10541 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10542 (i386obsd_init_abi): Adjust for renamed variables. Set
10543 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10544 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10545
10546 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10547 trampoline change in OpenBSD kernel.
10548
10549 * amd64-nat.c: Update copyright year.
10550 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10551 architecture from REGCACHE.
10552
10553 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10554 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10555
10556 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10557
10558 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10559 i[34567]86-*-openbsd3.[0-3].
10560 * config/i386/obsdaout.mh: New file.
10561
10562 * config/i386/obsd.mh (MH_FLAGS): Remove.
10563
10564 Fix PR build/1549.
10565 * i386obsd-tdep.c: Update copyright years. Include
10566 "solib-svr4.h".
10567 (i386obsd_init_abi): Don't set regset_from_core_section here.
10568 (i386obsd_aout_init_abi): New function. Set
10569 regset_from_core_section here.
10570 (i386obsd_elf_init_abi): New function.
10571 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10572 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10573 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10574 (TM_FILE): Set to tm-nbsd.h.
10575
10576 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10577 solib-sunos.o.
10578
10579 * solib-svr4.h: Update copyright year.
10580 (svr4_ilp32_fetch_link_map_offsets)
10581 (svr4_lp64_fetch_link_map_offsets): New prototype.
10582 * solib-svr4.c: Update copyright year.
10583 (svr4_ilp32_fetch_link_map_offsets)
10584 (svr4_lp64_fetch_link_map_offsets): New function.
10585
10586 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10589 to the partial symbol table.
10590
10591 2004-02-20 J. brobecker <brobecker@gnat.com>
10592
10593 * PROBLEMS: Add description of problem documented under gdb/1560.
10594
10595 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10596
10597 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10598 comments.
10599 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10600 functions.
10601 (amd64obsd_init_abi): Reorder initializations. Use
10602 amd64obsd_r_reg_offset to initialize the general-purpose register
10603 set details. Set regset_from_core_section.
10604 (_initialize_amd64obsd_tdep): Rename from
10605 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10606 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10607 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10608
10609 * NEWS (New native configurations): Mention OpenBSD/alpha.
10610 * configure.tgt: Add alpha*-*-openbsd*.
10611 * configure.host: Add alpha*-*-openbsd*.
10612 * alphanbsd-tdep.c: Update copyright year.
10613 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10614
10615 2004-02-20 Andrew Cagney <cagney@redhat.com>
10616
10617 Fix PR tdep/1372.
10618 * configure.tgt: Delete target "none-*-*".
10619 * configure.host: Delete host "none-*-*".
10620 * config/none/none.mh: Delete file.
10621 * config/none/none.mt: Delete file.
10622 * config/none/xm-none.h: Delete file.
10623 * config/none/tm-none.h: Delete file.
10624 * config/none/nm-none.h: Delete file.
10625
10626 2004-02-19 Fred Fish <fnf@redhat.com>
10627
10628 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10629 cache->uses_fp prior to setting it.
10630
10631 2004-02-19 Fred Fish <fnf@redhat.com>
10632
10633 Fix for PR breakpoint/1558.
10634 * sh-tdep.c (IS_JSR): New macro.
10635 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10636
10637 2004-02-19 Jim Blandy <jimb@redhat.com>
10638
10639 * findvar.c (value_from_register): Doc fix.
10640
10641 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10642
10643 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10644 type being greater than sizeof of host's LONGEST. Always use
10645 unpack_long() unless format 'f' chosen.
10646
10647 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10648
10649 Committed by Elena Zannoni <ezannoni@redhat.com>
10650
10651 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10652 contains a symbol wich is the best, non-exact match for the given
10653 pc. Update comments.
10654
10655 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10656
10657 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10658 macro, which was part of the now removed Mach 3 port.
10659 * utils.c (request_quit): Ditto.
10660
10661 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10662
10663 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10664 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10665
10666 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10667
10668 Committed by Mark Kettenis <kettenis@gnu.org>.
10669
10670 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10671 Define.
10672
10673 2004-02-18 Andrew Cagney <cagney@redhat.com>
10674
10675 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10676 CONFIG_INSTALL and CONFIG_UNINSTALL.
10677 * configure: Re-generate.
10678 * interps.h (INTERP_TUI): Define.
10679 * Makefile.in: Update dependencies.
10680 (TUI): New macro.
10681 (tui-main.o): Specify dependencies.
10682 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10683 * tui/tui-main.c: New file.
10684
10685 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10686
10687 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10688 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10689 dependencies.
10690 * configure.host: Add x86_64-*-openbsd*.
10691 * configure.tgt: Add x86_64-*-openbsd*.
10692 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10693
10694 * tui/tui.c: Don't include <malloc.h>.
10695
10696 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10697 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10698 amd64nbsd-tdep.c.
10699
10700 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10701 static. Remove extraneous whitespace.
10702 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10703 static.
10704
10705 2004-02-17 Jim Blandy <jimb@redhat.com>
10706
10707 * findvar.c (value_from_register): Doc fix.
10708
10709 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10710
10711 Committed by Jim Blandy <jimb@redhat.com>.
10712
10713 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10714 CORE_ADDR as type for selectors. Correct types for GNU run time
10715 message lookup function to use double indirection.
10716 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10717 * objc-lang.h (lookup_child_selector): Adapt prototype.
10718
10719 * s390-nat.c (SUBOFF): New macro.
10720 (supply_gregset, fill_gregset): Use it to handle debugging
10721 of 32-bit exectuables running under a 64-bit kernel.
10722 * s390-tdep.c: Include "solib-svr4.h".
10723 (s390_svr4_fetch_link_map_offset): New function.
10724 (s390x_svr_fetch_link_map_offset): Likewise.
10725 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10726 * Makefile.in (s390-tdep.o): Update dependencies.
10727
10728 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10729 "frame-unwind.h".
10730 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10731 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10732 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10733 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10734 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10735 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10736 S390_SIGNAL_FRAMESIZE,
10737 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10738 (struct frame_extra_info): Remove.
10739 (s390_memset_extra_info): Remove.
10740 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10741 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10742 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10743 (is_rse): Renamed to ...
10744 (is_rsy): ... this. Support long displacements.
10745 (is_rxe): Renamed to ...
10746 (is_rxy): ... this. Support long displacements.
10747 (compute_x_addr): Support long displacements.
10748 (struct s390_prologue_data): New data type.
10749 (s390_on_stack): Change API to use struct s390_prologue_data.
10750 (s390_store): Reimplement.
10751 (s390_load): New function.
10752 (s390_get_signal_frame_info): Remove.
10753 (s390_get_frame_info): Remove, replace by ...
10754 (s390_analyze_prolog): ... this new function.
10755 (s390_check_function_end): Remove.
10756 (s390_function_start): Remove.
10757 (s390_frameless_function_invokation): Remove.
10758 (s390_is_sigreturn): Remove.
10759 (s390_init_frame_pc_first): Remove.
10760 (s390_init_frame_extra_info): Remove.
10761 (s390_frame_init_saved_regs): Remove.
10762 (s390_frame_saved_pc_nofix): Remove.
10763 (s390_frame_saved_pc): Remove.
10764 (s390_frame_chain): Remove.
10765 (s390_fp_regnum, s390_read_fp): Remove.
10766 (s390_pop_frame_regular, s390_pop_frame): Remove.
10767 (s390_saved_pc_after_call): Remove.
10768 (s390_skip_prologue): Reimplement.
10769 (s390_in_function_epilogue_p): Support long displacements.
10770 (struct s390_unwind_cache): New data structure.
10771 (s390_frame_unwind_cache): New function.
10772 (s390_prologue_frame_unwind_cache): Likewise.
10773 (s390_backchain_frame_unwind_cache): Likewise.
10774 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10775 (s390_frame_unwind): Define.
10776 (s390_frame_sniffer): New function.
10777 (struct s390_pltstub_unwind_cache): New data structure.
10778 (s390_pltstub_frame_unwind_cache): New function.
10779 (s390_pltstub_frame_this_id): Likewise.
10780 (s390_pltstub_frame_prev_register): Likewise.
10781 (s390_pltstub_frame_unwind): Define.
10782 (s390_pltstub_frame_sniffer): New function.
10783 (struct s390_sigtramp_unwind_cache): New data structure.
10784 (s390_sigtramp_frame_unwind_cache): New function.
10785 (s390_sigtramp_frame_this_id): Likewise.
10786 (s390_sigtramp_frame_prev_register): Likewise.
10787 (s390_sigtramp_frame_unwind): Define.
10788 (s390_sigtramp_frame_sniffer): New function.
10789 (s390_frame_base_address, s390_local_base_address): New functions.
10790 (s390_frame_base): Define.
10791 (s390_unwind_pc, s390_unwind_sp): New function.
10792 (s390_push_dummy_call): Use new frame base location.
10793 (s390_unwind_dummy_id): Likewise.
10794 (s390_gdbarch_init): Remove calls to:
10795 set_gdbarch_frameless_function_invocation,
10796 set_gdbarch_deprecated_init_frame_pc,
10797 set_gdbarch_deprecated_frame_chain,
10798 set_gdbarch_deprecated_frame_init_saved_regs,
10799 set_gdbarch_deprecated_pop_frame,
10800 set_gdbarch_deprecated_init_extra_frame_info,
10801 set_gdbarch_deprecated_init_frame_pc_first,
10802 set_gdbarch_deprecated_target_read_fp,
10803 set_gdbarch_deprecated_frame_saved_pc,
10804 set_gdbarch_deprecated_saved_pc_after_call,
10805 set_gdbarch_deprecated_fp_regnum.
10806 Add calls to:
10807 set_gdbarch_in_solib_call_trampoline,
10808 frame_unwind_append_sniffer,
10809 frame_base_set_default,
10810 set_gdbarch_unwind_pc,
10811 set_gdbarch_unwind_sp.
10812 * Makefile.in (s390-tdep.o): Update dependencies.
10813
10814 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10815 (S390_STACK_FRAME_OVERHEAD): Remove.
10816 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10817 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10818 (s390_promote_integer_argument): Remove.
10819 (s390_cannot_extract_struct_value_address): Remove.
10820 (s390_use_struct_convention, s390_store_struct_return): Remove.
10821 (s390_extract_return_value, s390_store_return_value): Remove.
10822 (s390_return_value_convention, s390_return_value): New functions.
10823 (is_float_singleton): Handle typedefs.
10824 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10825 Remove, replace by ...
10826 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10827 s390_function_arg_integer): ... these new functions.
10828 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10829 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10830 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10831 Fill in tdep->abi.
10832 Remove calls to:
10833 set_gdbarch_deprecated_store_struct_return,
10834 set_gdbarch_deprecated_extract_return_value,
10835 set_gdbarch_deprecated_store_return_value,
10836 set_gdbarch_use_struct_convention,
10837 set_gdbarch_extract_struct_value_address,
10838 set_gdbarch_deprecated_pc_in_call_dummy,
10839 set_gdbarch_deprecated_push_arguments,
10840 set_gdbarch_deprecated_save_dummy_frame_tos,
10841 set_gdbarch_deprecated_push_return_address,
10842 set_gdbarch_deprecated_sizeof_call_dummy_words,
10843 set_gdbarch_deprecated_call_dummy_words,
10844 set_gdbarch_deprecated_dummy_write_sp.
10845 Add calls to:
10846 set_gdbarch_push_dummy_call,
10847 set_gdbarch_unwind_dummy_id,
10848 set_gdbarch_return_value.
10849
10850 * config/s390/nm-linux.h: Update comments.
10851 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10852 (STOPPED_BY_WATCHPOINT): Redefine.
10853 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10854 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10855 (s390_stopped_by_watchpoint): Likewise.
10856 (watch_area_cnt): Remove.
10857 * s390-nat.c: Update comments.
10858 (watch_area): Remove typedef.
10859 Global replace watch_area by struct watch_area.
10860 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10861 (s390_stopped_by_watchpoint): Remove pid argument,
10862 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10863 (s390_fix_watch_points): Remove pid argument,
10864 use s390_inferior_tid. Recompute area spanned by watchpoints.
10865 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10866 argument. Reimplement.
10867
10868 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10869 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10870 (FETCH_INFERIOR_REGISTERS): Define.
10871 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10872 core-regset.o.
10873 * config/s390/s390x.mt: Remove.
10874 * config/s390/tm-s390.h: Remove.
10875 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10876 (TARGET_ELF64): Remove.
10877 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10878 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10879 s390*-*-* case; always set gdb_target to s390.
10880 * regformats/reg-s390.dat: Remove control registers.
10881 * regformats/reg-s390x.dat: Likewise.
10882 * s390-tdep.h: New file.
10883 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10884 Include "inferior.h" and "s390-tdep.h".
10885 Remove private definition of offsetof.
10886 (s390_register_u_addr): Remove.
10887 (regmap_gregset, regmap_fpregset): Define.
10888 (supply_gregset, fill_gregset): Reimplement.
10889 (supply_fpregset, fill_fpregset): Likewise.
10890 (s390_inferior_tid): New function.
10891 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10892 (fetch_inferior_registers, store_inferior_registers): Likewise.
10893 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10894 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10895 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10896 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10897 (struct gdbarch_tdep): Define.
10898 (struct s390_register_info): Define.
10899 (s390_register_info): New variable.
10900 (s390_register_name): Reimplement.
10901 (s390_register_type): New function.
10902 (s390_register_raw_size, s390x_register_raw_size): Remove.
10903 (s390_cannot_fetch_register): Remove.
10904 (s390_register_byte): Remove.
10905 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10906 (s390_dwarf_regmap): New variable.
10907 (s390_dwarf_reg_to_regnum): New function.
10908 (s390_stab_reg_to_regnum): Remove.
10909 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10910 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10911 (s390_convert_register_p): Likewise.
10912 (s390_register_to_value, s390_value_to_register): Likewise.
10913 (s390_register_reggroup_p): Likewise.
10914 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10915 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10916 (s390_supply_regset, s390_regset_from_core_section): New functions.
10917 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10918 (S390_FPR_SIZE): Likewise.
10919 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10920 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10921 (S390_NUM_GPRS): Move here from tm-s390.h.
10922 (S390_NUM_FPRS): Likewise.
10923 (s390_in_function_epilogue_p): New function.
10924 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10925 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10926 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10927 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10928 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10929 Remove calls to:
10930 set_gdbarch_deprecated_max_register_raw_size,
10931 set_gdbarch_deprecated_max_register_virtual_size,
10932 set_gdbarch_deprecated_register_byte,
10933 set_gdbarch_cannot_fetch_register,
10934 set_gdbarch_cannot_store_register,
10935 set_gdbarch_deprecated_register_size,
10936 set_gdbarch_deprecated_register_raw_size,
10937 set_gdbarch_deprecated_register_virtual_size,
10938 set_gdbarch_deprecated_register_virtual_type,
10939 set_gdbarch_deprecated_register_bytes.
10940 Add calls to:
10941 set_gdbarch_num_pseudo_regs,
10942 set_gdbarch_register_type,
10943 set_gdbarch_convert_register_p,
10944 set_gdbarch_register_to_value,
10945 set_gdbarch_value_to_register,
10946 set_gdbarch_register_reggroup_p,
10947 set_gdbarch_regset_from_core_section,
10948 set_gdbarch_pseudo_register_read,
10949 set_gdbarch_pseudo_register_write,
10950 set_gdbarch_in_function_epilogue_p.
10951 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10952 (s390_tdep_h): New variable.
10953
10954 2004-02-17 Jim Blandy <jimb@redhat.com>
10955
10956 * findvar.c (value_from_register): If the type has no length, just
10957 return an acceptable value --- don't report an internal error.
10958
10959 * stabsread.c (read_type): If we find any type numbers that are
10960 forward references, complain if the references aren't resolved by
10961 the time we're finished reading.
10962 (cleanup_undefined_types): Make error message more appropriate for
10963 a complaint.
10964
10965 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10966
10967 * Makefile.in (defs_h): Remove dependency on progress_h.
10968 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10969 progress.h.
10970 * main.c (captured_main): Delete use of START_PROGRESS and
10971 END_PROGRESS.
10972
10973 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10974
10975 * objfiles.c (terminate_minimal_symbol_table): Add back
10976 initialization of MSYMBOL_TYPE.
10977
10978 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10979
10980 Committed by Andrew Cagney.
10981 * Makefile.in (ia64_tdep_h): New macro.
10982 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10983 (ia64-tdep.o): Likewise.
10984 * ia64-tdep.h: New file.
10985 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10986 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10987 (ia64_aix_sigcontext_register_address): Likewise.
10988 (ia64_linux_getunwind_table): Delete declaration.
10989 * ia64-linux-tdep.c: Likewise.
10990
10991 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10992
10993 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10994 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10995 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10996
10997 2004-02-17 Andrew Cagney <cagney@redhat.com>
10998
10999 * symtab.c (skip_prologue_using_sal): New function.
11000 * symtab.h (skip_prologue_using_sal): Declare.
11001 * frv-tdep.c: Include "symtab.h".
11002 (skip_prologue_using_sal): Delete function.
11003 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11004 * rs6000-tdep.c (refine_prologue_limit): Mention
11005 skip_prologue_using_sal.
11006 * ia64-tdep.c (refine_prologue_limit): Ditto.
11007 * Makefile.in: Update dependencies.
11008
11009 2004-02-16 Andrew Cagney <cagney@redhat.com>
11010
11011 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11012 START_INFERIOR_TRAPS_EXPECTED.
11013 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11014 START_INFERIOR_TRAPS_EXPECTED.
11015 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11016 Delete macro.
11017 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11018 macro, moved to "nm-osf.h". Update copyright.
11019 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11020 update copyright.
11021
11022 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11023 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11024 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11025 frameless_look_for_prologue.
11026 * frame.h (legacy_frameless_look_for_prologue): Rename
11027 frameless_look_for_prologue.
11028 * gdbarch.h, gdbarch.c: Re-generate.
11029 * sh64-tdep.c (sh64_gdbarch_init): Update.
11030 * sh-tdep.c (sh_gdbarch_init): Update.
11031 * s390-tdep.c (s390_gdbarch_init): Update.
11032 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11033 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11034 * m68k-tdep.c (m68k_gdbarch_init): Update.
11035 (delta68_frame_args_address): Update.
11036 * m32r-tdep.c (m32r_gdbarch_init): Update.
11037 * hppa-tdep.c (hppa_gdbarch_init): Update.
11038 * h8300-tdep.c (h8300_gdbarch_init): Update.
11039 * frv-tdep.c (frv_gdbarch_init): Update.
11040 (frv_frameless_function_invocation): Update.
11041 * cris-tdep.c (cris_gdbarch_init): Update.
11042 (cris_frameless_function_invocation): Update.
11043 * avr-tdep.c (avr_gdbarch_init): Update.
11044 * arm-tdep.c (arm_gdbarch_init): Update.
11045 * stack.c (frame_info): Update, call predicate.
11046 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11047 * frame.c (legacy_get_prev_frame): Update, call predicate..
11048 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11049 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11050 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11051 invocation.
11052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11053 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11054 * vax-tdep.c (vax_gdbarch_init): Ditto.
11055
11056 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11057 function.
11058
11059 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11060
11061 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11062 initializations.
11063
11064 2004-02-16 Andrew Cagney <cagney@redhat.com>
11065
11066 * tui/tui-windata.c: Include "gdb_string.h".
11067 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11068 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11069 * Makefile.in: Update dependencies.
11070
11071 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11074 * infrun.c: Include "gdb_assert.h".
11075 (singlestep_ptid, saved_singlestep_ptid)
11076 (stepping_past_singlestep_breakpoint): New variables.
11077 (resume): Set singlestep_ptid. Check for singlestep thread
11078 hop.
11079 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11080 (handle_inferior_event): Handle singlestep thread hop.
11081
11082 2004-02-16 Andrew Cagney <cagney@redhat.com>
11083
11084 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11085 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11086 (dwarf2_frame_init_reg): Ditto.
11087
11088 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11089 suggested by Joshua Neuheisel
11090
11091 * configure.in: Always check for curses, including pdcurses.
11092 Warn, instead of error, when no curses are found. Enable TUI when
11093 curses is available.
11094 * configure: Re-generate.
11095
11096 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11097
11098 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11099 sh_sh4_register_convert_to_virtual.
11100 (sh_register_convert_to_raw): Rename from
11101 sh_sh4_register_convert_to_raw.
11102 (sh_pseudo_register_read): Accomodate above name change.
11103 (sh_pseudo_register_write): Ditto.
11104
11105 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11106
11107 * sh-tdep.c (sh_generic_register_name): Remove.
11108 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11109
11110 2004-02-15 Andrew Cagney <cagney@redhat.com>
11111
11112 * configure.in (build_warnings): Add -Wunused-function.
11113 * configure: Re-generate.
11114
11115 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11116 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11117
11118 * procfs.c (procfs_init_inferior): Assume that
11119 START_INFERIOR_TRAPS_EXPECTED is defined.
11120 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11121 * config/ns32k/tm-nbsd.h: Delete file,
11122 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11123
11124 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11125 * config/vax/tm-vax.h: Delete file.
11126
11127 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11128 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11129 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11130 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11131 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11132 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11133 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11134
11135 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11136
11137 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11138 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11139 (struct dwarf2_frame_ops): New.
11140 (dwarf2_frame_default_init_reg): New function, based on
11141 dwarf2_frame_init_reg.
11142 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11143 (dwarf2_frame_init_reg): Call architecture-specific function.
11144 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11145 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11146 instead of dwarf2_frame_data.
11147 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11148 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11149
11150 2004-02-15 Andrew Cagney <cagney@redhat.com>
11151
11152 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11153 register_gdbarch_swap.
11154 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11155 * f-lang.c (_initialize_f_language): Update, use
11156 DEPRECATED_REGISTER_GDBARCH_SWAP.
11157 * remote.c (_initialize_remote): Ditto.
11158 * regcache.c (_initialize_regcache): Ditto.
11159 * parse.c (_initialize_parse): Ditto.
11160 * infrun.c (_initialize_infrun): Ditto.
11161 * mi/mi-main.c (_initialize_mi_main): Ditto.
11162 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11163
11164 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11165 poking .cacheable directly.
11166 * symfile.c (symfile_bfd_open): Ditto.
11167
11168 * Makefile.in: Update all dependencies.
11169
11170 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11171 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11172 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11173 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11174 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11175
11176 2004-02-14 Andrew Cagney <cagney@redhat.com>
11177
11178 * arch-utils.c (legacy_convert_register_p): Check
11179 DEPRECATED_REGISTER_CONVERTIBLE_P.
11180 * findvar.c (value_of_register): Ditto.
11181
11182 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11183 * gdbarch.h, gdbarch.c: Re-generate.
11184 * arch-utils.c (deprecated_register_convertible_not): Delete.
11185 * arch-utils.h (deprecated_register_convertible_not): Delete.
11186 * mi/mi-main.c (get_register): Update. Update copyright.
11187 * infcmd.c (default_print_registers_info): Update.
11188
11189 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11190 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11191 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11192 * gdbarch.h, gdbarch.c: Re-generate.
11193 * frame.c (deprecated_get_next_frame_hack): Delete function.
11194 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11195 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11196 Update.
11197 * infcall.c (call_function_by_hand): Update.
11198
11199 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11200
11201 * symfile.c (init_entry_point_info, entry_point_address): Move
11202 from here...
11203 * objfiles.c (init_entry_point_info, entry_point_address):..to
11204 here.
11205 * symfile.h (init_entry_point_info, entry_point_address): Remove
11206 prototypes.
11207 * objfiles.h (init_entry_point_info, entry_point_address):Add
11208 prototypes.
11209 * cris-tdep.c: Remove include of symfile.h. Add include of
11210 objfiles.h.
11211 * infcall.c: Ditto.
11212 * mcore-tdep.c: Ditto.
11213 * mn10300-tdep.c: Ditto.
11214 * sh64-tdep.c: Ditto.
11215 * v850-tdep.c: Ditto.
11216 * arm-tdep.c: Remove include of symfile.h.
11217 * blockframe.c: Ditto.
11218 * coffread.c: Ditto.
11219 * dbxread.c: Ditto.
11220 * dwarf2read.c: Ditto.
11221 * dwarfread.c: Ditto.
11222 * frv-tdep.c: Ditto.
11223 * ia64-tdep.c: Ditto.
11224 * mdebugread.c: Ditto.
11225 * mipsread.c: Ditto.
11226 * rs6000-tdep.c: Ditto.
11227 * s390-tdep.c: Ditto.
11228 * sh-tdep.c: Ditto.
11229 * xstormy16-tdep.c: Ditto.
11230 * gdbarch.sh: Remove include of symfile.h.
11231 * gdbarch.c: Regenerate.
11232 * solib-irix.c (enable_break): Use entry_point_address().
11233 Add comment about include file.
11234 * xcoffread.c: Add comment about include file.
11235 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11236 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11237 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11238 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11239 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11240
11241 2004-02-13 Andrew Cagney <cagney@redhat.com>
11242
11243 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11244 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11245 copyright.
11246 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11247
11248 2004-02-12 Fred Fish <fnf@redhat.com>
11249
11250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11251 set_gdbarch_store_return_value.
11252
11253 2004-02-12 Andrew Cagney <cagney@redhat.com>
11254
11255 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11256 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11257 (interrupt_query): Ditto.
11258 (ofunc): Delete unused variable.
11259 * cris-tdep.c (cris_abi): Delete unused function.
11260 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11261 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11262 (cris_get_asr_quick_shift_steps): Ditto.
11263 (cris_skip_prologue_frameless_p): Ditto.
11264 * arm-tdep.c (arm_push_return_address): Delete unused function.
11265 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11266 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11267 * s390-tdep.c (s390_function_start): Delete unused function.
11268
11269 2004-02-12 Andrew Cagney <cagney@redhat.com>
11270
11271 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11272 gdbarch.h, gdbarch.c: Re-generate.
11273 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11274 to generic_prologue_frameless_p.
11275 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11276 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11277
11278 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11279
11280 * mips-linux-tdep.c: Include "frame.h".
11281 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11282 (mips_linux_skip_resolver): New functions.
11283 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11284 and set_gdbarch_in_solib_call_trampoline.
11285 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11286 to after set_gdbarch_in_solib_return_trampoline. Only set the
11287 solib hooks to mips16 functions if the OS ABI is unknown.
11288 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11289 including "config/tm-linux.h".
11290 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11291 * Makefile.in (mips-linux-tdep.o): Update.
11292
11293 2004-02-11 David Carlton <carlton@kealia.com>
11294
11295 * linespec.c (decode_compound): Only look for a class symbol when
11296 considering all but the rightmost component.
11297
11298 2004-02-11 Andrew Cagney <cagney@redhat.com>
11299
11300 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11301 abi code are are separatly grouped.
11302
11303 2004-02-11 Andrew Cagney <cagney@redhat.com>
11304
11305 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11306 * gdbarch.h, gdbarch.c: Re-generate.
11307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11308 * v850-tdep.c (v850_gdbarch_init): Update.
11309 * sh64-tdep.c (sh64_gdbarch_init): Update.
11310 * sh-tdep.c (sh_gdbarch_init): Update.
11311 * s390-tdep.c (s390_gdbarch_init): Update.
11312 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11313 * mips-tdep.c (mips_gdbarch_init): Update.
11314 * mcore-tdep.c (mcore_gdbarch_init): Update.
11315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11316 * m32r-tdep.c (m32r_gdbarch_init): Update.
11317 * ia64-tdep.c (ia64_gdbarch_init): Update.
11318 * hppa-tdep.c (hppa_gdbarch_init): Update.
11319 * h8300-tdep.c (h8300_gdbarch_init): Update.
11320 * frv-tdep.c (frv_gdbarch_init): Update.
11321 * d10v-tdep.c (d10v_gdbarch_init): Update.
11322 * cris-tdep.c (cris_gdbarch_init): Update.
11323 * avr-tdep.c (avr_gdbarch_init): Update.
11324 * arm-tdep.c (arm_gdbarch_init): Update.
11325 * alpha-tdep.c (alpha_gdbarch_init): Update.
11326
11327 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11328
11329 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11330 comma.
11331 (sh_sh4al_dsp_register_name): Ditto.
11332
11333 2004-02-10 Andrew Cagney <cagney@redhat.com>
11334
11335 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11336 (mips_init_frame_pc_first): Delete function.
11337 (mips_frame_saved_pc): Delete function.
11338 (mips_frame_chain): Delete function.
11339 (mips_init_extra_frame_info): Delete function.
11340 (mips_xfer_register): Delete unused variable "reg".
11341 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11342 (mips_n32n64_return_value): Delete unused variable "reg".
11343 (mips_n32n64_return_value): Delete unused variable "pos".
11344 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11345 (mips_o32_return_value): Delete unused variable "pos".
11346 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11347 (mips_print_fp_register): Delete unused variable "namelen"
11348 (mips_print_fp_register): Delete unused variable "flt2"
11349 (get_frame_pointer): Delete function.
11350 (cached_proc_desc): Delete static variable.
11351 (mips_pop_frame): Delete function.
11352 (mips_find_saved_regs): Delete function.
11353 (mips_get_saved_register): Delete function.
11354 (mips_saved_pc_after_call): Delete function.
11355 (SIGFRAME_BASE): Delete macro.
11356 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11357 (SIGFRAME_PC_OFF): Delete macro.
11358 (SIGFRAME_REGSAVE_OFF): Delete macro.
11359 (mips_dump_tdep): Do not print deleted macro definitions.
11360
11361 2004-02-10 Andrew Cagney <cagney@redhat.com>
11362
11363 * Makefile.in (SFILES): Remove explictly listed tui files.
11364 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11365
11366 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11367
11368 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11369 to use paddr functions to format ia64 addresses and long values.
11370 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11371 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11372 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11373 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11374 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11375
11376 2004-02-10 Andrew Cagney <cagney@redhat.com>
11377
11378 * defs.h: Do not include "tui.h".
11379 * gdb_curses.h: New file.
11380 * tui/tui-hooks.h: New file.
11381 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11382 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11383 (tui_initialize_io): Delete declaration.
11384 (tui_initialize_readline: Delete redundant declaration.
11385 (struct tui_point): Delete definition.
11386 * tui/tui-data.h (struct tui_point): Define.
11387 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11388 * utils.c: Include "tui/tui.h".
11389 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11390 * printcmd.c [TUI]: Include "tui/tui.h".
11391 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11392 * tui/tui-command.c: Include "gdb_curses.h".
11393 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11394 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11395 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11396 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11397 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11398 * Makefile.in: Update all dependencies.
11399 (tui_hooks_h, gdb_curses_h): Define.
11400 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11401
11402 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11403
11404 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11405 auxf2. Add comments about some other rarely used fields.
11406
11407 2004-02-10 Andrew Cagney <cagney@redhat.com>
11408
11409 * Makefile.in (init.c): Fix script removing duplicates. Problem
11410 reported by Peter Schauer.
11411
11412 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11413
11414 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11415 obstack_specify_allocation.
11416 * objfiles.c (allocate_objfile): Ditto.
11417 * solib-sunos.c (solib_add_common_symbols)
11418 (allocate_rt_common_objfile): Ditto.
11419 * symfile.c (reread_symbols): Ditto.
11420 * gdb_obstack.h: Add comment.
11421
11422 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11423
11424 * linespec.c (decode_line_1, locate_first_half)
11425 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11426 commented out code.
11427
11428 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11429
11430 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11431 obstack_free.
11432
11433 2004-02-09 Andrew Cagney <cagney@redhat.com>
11434
11435 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11436 fails, try find_pc_section. Fix PR c++/1267.
11437 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11438 instead of find_pc_mapped_section.
11439 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11440 not default to the section containing PC. Fix PR symtab/1519.
11441
11442 2004-02-09 Andrew Cagney <cagney@redhat.com>
11443
11444 * Makefile.in (mips-tdep.o): Update dependencies.
11445 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11446 "trad-frame.h".
11447 (mips_unwind_pc): Return the pseudo PC register.
11448 (mips_unwind_dummy_id): New function.
11449 (mips16_fetch_instruction): New function.
11450 (mips32_fetch_instruction): New function.
11451 (struct mips_frame_cache): Define.
11452 (mips_mdebug_frame_cache): New function.
11453 (mips_mdebug_frame_this_id): New function.
11454 (mips_mdebug_frame_prev_register): New function.
11455 (mips_mdebug_frame_unwind): Define.
11456 (mips_mdebug_frame_sniffer): New function.
11457 (mips_mdebug_frame_base_address): New function.
11458 (mips_mdebug_frame_base): Define.
11459 (mips_mdebug_frame_base_sniffer): New function.
11460 (mips_gdbarch_init): Append unwind and base sniffers. Set
11461 unwind_dummy_id.
11462
11463 2004-02-08 Andrew Cagney <cagney@redhat.com>
11464
11465 * frame.c: Print both the register number and name.
11466
11467 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11468 and a sed into a single sed. Make .c and .o patterns more robust.
11469 (OBS): Delete.
11470 (INIT_FILES): Replace OBS with COMMON_OBS.
11471 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11472
11473 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11474
11475 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11476 the PT_WCOOKIE request.
11477
11478 2004-02-08 Andrew Cagney <cagney@redhat.com>
11479
11480 * mips-tdep.c (mips_unwind_pc): New function.
11481 (mips_gdbarch_init): Set mips_unwind_pc.
11482
11483 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11484 (get_frame_id): Allow the UNKNOWN_FRAME.
11485 (frame_register_unwind, get_frame_type): Ditto.
11486
11487 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11488 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11489 unwind_dummy_id indicates a legacy frame.
11490
11491 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11492 * configure: Re-generate.
11493
11494 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11495 methods.
11496
11497 2004-02-08 Andrew Cagney <cagney@redhat.com>
11498
11499 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11500 makefile macro.
11501 * configure: Re-generate.
11502 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11503 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11504 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11505 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11506 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11507 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11508 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11509 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11510 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11511 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11512
11513 2004-02-07 Andrew Cagney <cagney@redhat.com>
11514
11515 * Makefile.in: Update all dependencies.
11516
11517 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11518 * configure: Re-generate.
11519 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11520 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11521 (COMMON_OBS): Add "main.o" and "annotate.o".
11522 (ANNOTATE_OBS): Delete.
11523 (OBS): Remove ANNOTATE_OBS.
11524 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11525 CONFIG_INITS.
11526 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11527 against CONFIG_OBS and "main.o".
11528 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11529 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11530
11531 * tui/tui-command.c: Include "gdb_string.h", delete register
11532 attribute, use ISO-C function signatures.
11533 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11534 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11535 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11536 * tui/tui.c: Ditto.
11537
11538 * tui/tui-command.c: Change variable and function names to lower
11539 case.
11540 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11541 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11542 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11543 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11544 * tui/tui-winsource.c, tui/tui.c: Ditto.
11545
11546 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11547
11548 * buildsym.c (free_pending_blocks, finish_block)
11549 (record_pending_block, make_blockvector, end_symtab): Replace
11550 symbol_obstack with objfile_obstack.
11551 * coffread.c (process_coff_symbol, coff_read_struct_type)
11552 (coff_read_enum_type): Ditto.
11553 * cp-namespace.c (initialize_namespace_symtab)
11554 (check_one_possible_namespace_symbol): Ditto.
11555 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11556 (dwarf2_symbol_mark_computed): Ditto.
11557 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11558 * elfread.c (elf_symtab_read): Ditto.
11559 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11560 (hpread_read_enum_type, hpread_read_function_type)
11561 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11562 Ditto.
11563 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11564 (java_link_class_type): Ditto.
11565 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11566 (new_symbol): Ditto.
11567 * minsyms.c (install_minimal_symbols): Ditto.
11568 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11569 (terminate_minimal_symbol_table): Replace symbol_obstack with
11570 objfile_obstack.
11571 (free_objfile): Remove freeing of symbol_obstack.
11572 * objfiles.h: Remove symbol_obstack field.
11573 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11574 objfile_obstack.
11575 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11576 symbol_obstack.
11577 (solib_add_common_symbols): Replace symbol_obstack with
11578 objfile_obstack.
11579 * somsolib.c (som_solib_add): Ditto.
11580 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11581 (common_block_start, common_block_end): Ditto.
11582 * symfile.c (reread_symbols): Remove freeing and init of
11583 symbol_obstack.
11584 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11585 * symfile.h: Update comment.
11586 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11587 stats printing.
11588 * symtab.c (symbol_set_names): Replace symbol_obstack with
11589 objfile_obstack.
11590 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11591 Update comments.
11592 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11593 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11594 objfile_obstack.
11595
11596 2004-02-07 Andrew Cagney <cagney@redhat.com>
11597
11598 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11599 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11600 fields and variables.
11601 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11602 (m_beInvisible): Delete macro.
11603 * tui/tui-data.h: Fix case case fields and variables.
11604 (m_genWinPtrIsNull): Delete macro.
11605 (tui_win_list): Rename winList.
11606 (TUI_SRC_WIN): Rename srcWin.
11607 (TUI_DISASM_WIN): Rename disassemWin.
11608 (TUI_DATA_WIN): Rename dataWin.
11609 (TUI_CMD_WIN): Rename cmdWin.
11610 (m_genWinPtrNotNull): Delete macro.
11611 (m_winPtrIsNull): Delete macro.
11612 (m_winPtrNotNull): Delete macro.
11613 (tui_win_is_source_type): Replace m_winIsSourceType
11614 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11615 (tui_win_has_locator): Replace m_hasLocator.
11616 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11617 m_setWinHighlightOff.
11618 * tui/tui-data.c: Update references.
11619 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11620 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11621 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11622 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11623 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11624 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11625 * tui/tui-winsource.c, tui/tui.c: Ditto.
11626
11627 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11628
11629 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11630 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11631 StackGhost.
11632
11633 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11634 variable `i6' to `i7'.
11635 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11636
11637 2004-02-07 Andrew Cagney <cagney@redhat.com>
11638
11639 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11640 (TuiPoint, TuiPointPtr): Ditto.
11641 (TuiStatus, TuiStatusPtr): Ditto.
11642 (TuiWinType, TuiWinTypePtr): Ditto.
11643 (struct tui_point): Rename _TuiPoint.
11644 (tui_get_low_disassembly_address): Rename
11645 tuiGetLowDisassemblyAddress.
11646 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11647 (tuiFree): Delete declaration.
11648 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11649 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11650 * tui/tui.c (tuiFree): Delete function.
11651 * cli/cli-cmds.c (disassemble_command): Update references.
11652 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11653 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11654 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11655 * tui/tui-winsource.c: Ditto.
11656
11657 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11658
11659 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11660 coffstab_build_psymtabs, elfstab_build_psymtabs)
11661 (stabsect_build_psymtabs): Replace psymbol_obstack with
11662 objfile_obstack.
11663 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11664 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11665 Ditto.
11666 * dwarfread.c (scan_compilation_units): Ditto.
11667 * elfread.c (elfstab_offset_sections): Ditto.
11668 * hppa-tdep.c (read_unwind_info): Ditto.
11669 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11670 (hpread_end_psymtab): Ditto.
11671 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11672 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11673 Ditto.
11674 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11675 * objfiles.c (add_to_objfile_sections)
11676 (build_objfile_section_table): Ditto.
11677 (allocate_objfile): Remove init of psymbol_obstack.
11678 (free_objfile): Remove freeing of psymbol_obstack.
11679 * objfiles.h (struct objfile): Remove field
11680 psymbol_obstack. Update comments.
11681 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11682 psymbol_obstack with objfile_obstack.
11683 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11684 psymbol_obstack.
11685 * somread.c (som_symfile_offsets, init_import_symbols)
11686 (init_export_symbols): Replace psymbol_obstack with
11687 objfile_obstack.
11688 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11689 * symfile.c (default_symfile_offsets, syms_from_objfile)
11690 (reread_symbols): Remove freeing and init of psymbol_obstack.
11691 (cashier_psymtab): Update comment.
11692 * symmisc.c (print_objfile_statistics): Don't report stats for
11693 psymbol obstack.
11694 * symtab.h (struct general_symbol_info, struct partial_symtab):
11695 Update comments.
11696 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11697 (xcoff_symfile_offsets): Replace psymbol_obstack with
11698 objfile_obstack.
11699
11700 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11701
11702 * objfiles.h (struct objfile): Add objfile_obstack field.
11703 Remove type_obstack field.
11704
11705 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11706 read_structure_scope read_enumeration, new_symbol): Replace
11707 type_obstack with objfile_obstack.
11708 * dwarfread.c (struct_type, enum_type): Ditto.
11709 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11710 (lookup_fundamental_type): Ditto.
11711 * gdbtypes.h (TYPE_ALLOC): Ditto.
11712 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11713 (hpread_read_doc_function_type, hpread_read_struct_type)
11714 (fix_static_member_physnames, hpread_read_array_type)
11715 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11716 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11717 (java_link_class_type): Ditto.
11718 * mdebugread.c (parse_type): Ditto.
11719 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11720 * solib-sunos.c (solib_add_common_symbols): Ditto.
11721 * stabsread.c (define_symbol, read_type, read_member_functions,
11722 read_cpp_abbrev, read_one_struct_field): Ditto.
11723 * symfile.c (reread_symbols): Ditto.
11724 * symmisc.c (print_objfile_statistics): Ditto.
11725
11726 2004-02-07 Andrew Cagney <cagney@redhat.com>
11727
11728 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11729 (tui_exec_info_content): Rename TuiExecInfoContent.
11730 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11731 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11732 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11733 (TuiList, TuiListPtr): Ditto.
11734 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11735 (TuiDataType, TuiDataTypePtr): Ditto.
11736 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11737 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11738 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11739 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11740 (TuiDataElement, TuiDataElementPtr): Ditto.
11741 (TuiWinElement, TuiWinElementPtr): Ditto.
11742 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11743 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11744 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11745 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11746 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11747 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11748 * tui/tui-command.c, tui/tui-data.c: Update references.
11749 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11750 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11751 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11752 * tui/tui-winsource.c, tui/tui.c: Ditto.
11753
11754 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11755
11756 * dwarf2-frame.h: Update copyright.
11757 (enum dwarf2_frame_reg_rule): New.
11758 (struct dwarf2_frame_state_reg): New.
11759 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11760 * dwarf2-frame.c: Update copyright.
11761 (enum dwarf2_reg_rule): Remove.
11762 (struct dwarf2_frame_state): Remove defenition of `struct
11763 dwarf2_frame_state_reg'.
11764 (read_reg): Call get_frame_arch to get the architecture instead of
11765 using CURRENT_GDBARCH.
11766 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11767 DWARF2_FRAME_.
11768 (dwarf2_frame_init_reg): New function.
11769 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11770 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11771 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11772 tags with DWARF2_FRAME_.
11773 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11774 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11775 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11776
11777 2004-02-06 Andrew Cagney <cagney@redhat.com>
11778
11779 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11780 (enum tui_data_type): Rename _TuiDataType.
11781 (struct tui_layout_def): Rename _TuiLayoutDef.
11782 (struct tui_source_element): Rename _TuiSourceElement.
11783 (struct tui_data_element): Rename _TuiDataElement.
11784 (struct tui_command_element): Rename _TuiCommandElement.
11785 (struct tui_locator_element): Rename _TuiLocatorElement.
11786 (union tui_which_element): Define.
11787 (struct tui_win_element): Rename _TuiWinElement.
11788 (struct tui_data_info): Rename _TuiDataInfo.
11789 (struct tui_source_info): Rename _TuiSourceInfo.
11790 (struct tui_command_info): Rename _TuiCommandInfo.
11791 (tui_initialize_static_data): Rename initializeStaticData.
11792 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11793 (tui_alloc_win_info): Rename allocWinInfo.
11794 (tui_init_generic_part): Rename initGenericPart.
11795 (tui_init_win_info): Rename initWinInfo.
11796 (tui_alloc_content): Rename allocContent.
11797 (tui_add_content_elements): Rename addContentElements.
11798 (tui_init_content_element): Rename initContentElement.
11799 (tui_free_window): Rename freeWindow.
11800 (tui_free_win_content): Rename freeWinContent.
11801 (tui_free_data_content): Rename freeDataContent.
11802 (tui_free_all_source_wins_content): Rename
11803 freeAllSourceWinsContent.
11804 (tui_del_window): Rename tuiDelWindow.
11805 (tui_del_data_windows): Rename tuiDelDataWindows.
11806 (tui_partial_win_by_name): Rename partialWinByName.
11807 (tui_win_name): Rename winName.
11808 (tui_current_layout): Rename currentLayout.
11809 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11810 (tui_term_height): Rename termHeight.
11811 (tui_set_term_height_to): Rename setTermHeightTo.
11812 (tui_term_width): Rename termWidth.
11813 (tui_set_term_width_to): Rename setTermWidthTo.
11814 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11815 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11816 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11817 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11818 (tui_source_windows): Rename sourceWindows.
11819 (tui_clear_source_windows): Rename clearSourceWindows.
11820 (tui_clear_source_windows_detail): Rename
11821 clearSourceWindowsDetail.
11822 (tui_clear_win_detail): Rename clearWinDetail.
11823 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11824 (tui_default_tab_len): Rename tuiDefaultTabLen.
11825 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11826 (tui_win_with_focus): Rename tuiWinWithFocus.
11827 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11828 (tui_layout_def): Rename tuiLayoutDef.
11829 (tui_win_resized): Rename tuiWinResized.
11830 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11831 (tui_next_win): Rename tuiNextWin.
11832 (tui_prev_win): Rename tuiPrevWin.
11833 (tui_add_to_source_windows): Rename addToSourceWindows.
11834 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11835 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11836 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11837 * tui/tui.c, tui/tui-data.c: Ditto.
11838 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11839 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11840
11841 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11842 (struct symtab): Declare.
11843 (tui_set_source_content): Rename tuiSetSourceContent.
11844 (tui_show_symtab_source): Rename tuiShowSource.
11845 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11846 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11847 * tui/tui-source.c: Update copyright. Update references.
11848 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11849 * tui/tui-stack.c: Update references.
11850
11851 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11852 (struct tui_win_info): Declare.
11853 (tui_scroll_forward): Rename tuiScrollForward.
11854 (tui_scroll_backward): Rename tuiScrollBackward.
11855 (tui_scroll_left): Rename tuiScrollLeft.
11856 (tui_scroll_right): Rename tuiScrollRight.
11857 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11858 (tui_resize_all): Rename tuiResizeAll.
11859 (tui_refresh_all_win): Rename tuiRefreshAll.
11860 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11861 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11862 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11863 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11864
11865 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11866 (tui_erase_data_content): Rename tuiEraseDataContent.
11867 (tui_display_all_data): Rename tuiDisplayAllData.
11868 (tui_check_data_values): Rename tuiCheckDataValues.
11869 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11870 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11871 (tui_first_data_element_no_in_line): Rename
11872 tuiFirstDataElementNoInLine.
11873 (tui_delete_data_content_windows): Rename
11874 tuiDeleteDataContentWindows.
11875 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11876 (tui_display_data_from): Rename tuiDisplayDataFrom.
11877 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11878 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11879 * tui/tui-win.c, tui/tui-regs.c: Update references.
11880 * tui/tui-layout.c, tui/tui.c: Update references.
11881
11882 * tui/tui-wingeneral.h: Update copyright.
11883 (m_allBeVisible): Delete macro.
11884 (m_allBeInvisible): Delete macro.
11885 (struct tui_gen_win_info): Declare.
11886 (struct tui_win_info): Declare.
11887 (tui_unhighlight_win): Rename unhighlightWin.
11888 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11889 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11890 (tui_make_window): Rename makeWindow.
11891 (tui_copy_win): Rename copyWin.
11892 (tui_box_win): Rename boxWin.
11893 (tui_highlight_win): Rename highlightWin.
11894 (tui_check_and_display_highlight_if_needed): Rename
11895 checkAndDisplayHighlightIfNeeded.
11896 (tui_refresh_all): Rename refreshAll.
11897 (tui_delete_win): Rename tuiDelwin.
11898 (tui_refresh_win): Rename tuiRefreshWin.
11899 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11900 (tui_make_visible, tui_make_invisible): New functions.
11901 (tui_make_all_visible, tui_make_all_invisible): New functions.
11902 (make_all_visible): Rename makeAllVisible.
11903 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11904 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11905 * tui/tui-windata.c, tui/tui-win.c: Update references.
11906 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11907 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11908
11909 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11910
11911 * proc-api.c (write_with_trace): Initialize local variable to
11912 silence compiler warning.
11913
11914 2004-02-06 Andrew Cagney <cagney@redhat.com>
11915
11916 * tui/tui-source.h: Do not include "defs.h".
11917 (struct tui_win_info): Declare.
11918 (tui_set_source_content_nil): Declare.
11919 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11920 (union tui_line_or_address): Rename _TuiLineOrAddress.
11921 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11922 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11923 (tui_update_source_window_as_is): Rename
11924 tuiUpdateSourceWindowAsIs.
11925 (tui_update_source_windows_with_addr): Rename
11926 tuiUpdateSourceWindowsWithAddr.
11927 (tui_update_source_windows_with_line): Rename
11928 tuiUpdateSourceWindowsWithLine.
11929 (tui_clear_source_content): Rename tuiClearSourceContent.
11930 (tui_erase_source_content): Rename tuiEraseSourceContent.
11931 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11932 (tui_show_source_content): Rename tuiShowSourceContent.
11933 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11934 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11935 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11936 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11937 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11938 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11939 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11940 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11941 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11942 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11943 (struct tui_win_info): Declare.
11944 * tui/tui-stack.c: Update references.
11945 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11946 * tui/tui-win.c, tui/tui-source.c: Ditto.
11947 * tui/tui.c, tui/tui-disasm.c: Ditto.
11948
11949 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11950
11951 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11952 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11953
11954 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11955
11956 * infrun.c (handle_inferior_event): Allow for breakpoint
11957 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11958 and SIGEMT. Update comments.
11959 * NEWS (Revised SPARC target): Mention support for non-executable
11960 stack.
11961
11962 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11963
11964 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11965 * inftarg.c: Update copyright year.
11966 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11967 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11968 (sparc_xfer_wcookie): New function.
11969 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11970 * Makefile.in (sparc-nat.o): Update dependencies.
11971 * config/sparc/nm-nbsd.h: Include "target.h".
11972 (NATIVE_XFER_WCOOKIE): New define.
11973 (sparc_xfer_wcookie): New prototype.
11974
11975 2004-02-04 Andrew Cagney <cagney@redhat.com>
11976
11977 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11978 SYSCALL_TRAP function.
11979 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11980
11981 2004-02-04 Andrew Cagney <cagney@redhat.com>
11982 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * objfiles.h: Delete comments refering to inside_entry_func and
11985 DEPRECATED_FRAME_CHAIN_VALID.
11986 * defs.h (inside_entry_func): Update prototype..
11987 * blockframe.c (inside_entry_func): Rename to
11988 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11989 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11990
11991 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11992
11993 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11994 outside of #ifdef SOLIB_ADD region.
11995 (do_restore_lang_radix_cleanup): Ditto.
11996 (resolve_pending_breakpoint): Ditto.
11997
11998 2004-02-03 Andrew Cagney <cagney@redhat.com>
11999
12000 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12001 (process_note_abi_tag_sections): Delete unused function.
12002 (ia64_read_fp): Delete unused function.
12003 (gdbarch_extract_struct_value_address): Delete declaration.
12004
12005 2004-02-02 Andrew Cagney <cagney@redhat.com>
12006
12007 * vax-tdep.c (vax_frame_chain): Delete call to
12008 deprecated_inside_entry_file.
12009 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12010
12011 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12012
12013 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12014 column that's "empty" or "same value" when eliminating REG_RA
12015 rules.
12016
12017 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12018
12019 * NEWS: Add information about new pending breakpoint support.
12020
12021 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12022
12023 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12024 and pending fields for pending breakpoint support.
12025 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12026 (condition_command): Only parse condition if not a pending
12027 breakpoint.
12028 (print_one_breakpoint): Add support for pending breakpoints.
12029 (describe_other_breakpoints): Add checks to verify we are not
12030 dealing with pending breakpoints.
12031 (check_duplicates): Don't check pending breakpoints.
12032 (set_raw_breakpoint): Initialize pending flag.
12033 (do_restore_lang_radix_cleanup): New cleanup routine.
12034 (resolve_pending_breakpoint): New function.
12035 (re_enable_breakpoints_in_shlibs): Try and resolve any
12036 pending breakpoints via resolve_pending_breakpoint.
12037 (mention): Add pending breakpoint support.
12038 (parse_breakpoint_sals): Add new parameter to pass to
12039 decode_line_1 to indicate silent errors when files or functions
12040 are not found. Change all callers.
12041 (do_captured_parse_breakpoint): New function.
12042 (break_command_1): Change prototype to return an rc value and to
12043 take an optional pending breakpoint pointer. Support creating
12044 a pending breakpoint if a "not found" form of error occurs when
12045 parsing the breakpoint. Also support resolving an existing pending
12046 breakpoint and be silent if the resolution fails.
12047 (create_breakpoints): Change prototype to take pending breakpoint
12048 pointer. When resolving a pending breakpoint, use the new pointer
12049 to provide a conditional or commands added by the end-user.
12050 (delete_breakpoint): Add appropriate check for pending.
12051 (breakpoint_re_set_one): Ditto.
12052 (do_enable_breakpoint): Ditto.
12053
12054 2004-02-02 David Carlton <carlton@kealia.com>
12055
12056 * valops.c (enum oload_classification): New.
12057 (find_overload_match): Break implementation into separate
12058 functions; delete #if 0'd code; look for symbols within
12059 namespaces.
12060 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12061 (find_oload_champ,oload_method_static,classify_oload_match): New.
12062 * cp-support.h: Add declaration for cp_func_name; update
12063 declaration for make_symbol_overload_list.
12064 * cp-support.c (cp_func_name): New.
12065 (overload_list_add_symbol): Fix comment, use
12066 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12067 (make_symbol_overload_list): Take a function name and a namespace
12068 instead of a symbol; change implementation.
12069 (make_symbol_overload_list_using): New.
12070 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12071
12072 2004-02-02 Fred Fish <fnf@redhat.com>
12073
12074 * main.c (gdb_stdtarg): Move definition to group with other
12075 gdb_stdtarg definitions and update copyright years.
12076 * remote-sim.c (gdb_os_write_stderr): Write output to
12077 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12078 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12079 gdb_stderr stream and update copyright years.
12080
12081 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12082
12083 * Makefile.in (mips-linux-nat.o): Update dependencies.
12084 * mips-linux-nat.c: Include mips-tdep.h.
12085
12086 2004-02-01 Roland McGrath <roland@redhat.com>
12087
12088 * sol-thread.c (sol_thread_xfer_partial): New function.
12089 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12090 (init_sol_core_ops): Likewise.
12091
12092 * procfs.c (procfs_xfer_partial): New function.
12093 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12094 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12095
12096 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12097 procfs_xfer_auxv function.
12098
12099 * procfs.c (procfs_make_note_section): If we can read
12100 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12101 * linux-proc.c (linux_make_note_section): Likewise.
12102
12103 * auxv.h: New file.
12104 * auxv.c: New file.
12105 * Makefile.in (auxv_h): New variable.
12106 (COMMON_OBS): Add auxv.o here.
12107 (auxv.o): New target.
12108
12109 * corelow.c (core_xfer_partial): New function.
12110 (init_core_ops): Use it for core_ops.to_xfer_partial.
12111
12112 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12113 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12114 macro if that is defined.
12115
12116 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12117
12118 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12119 and check the specified thread for each breakpoint.
12120 * breakpoint.h (bpstat_stop_status): Update prototype.
12121 * infrun.c (handle_inferior_event): Update calls to
12122 bpstat_stop_status.
12123
12124 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * Makefile.in (cli-cmds.o): Add $(readline_h).
12127
12128 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12129
12130 * cli/cli-cmds.c: Include readline.h.
12131 (complete_command): Pass the start of the last word to
12132 complete_line.
12133
12134 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12137 argument, and change first argument to a CORE_ADDR.
12138 * breakpoint.h (bpstat_stop_status): Update prototype.
12139 * infrun.c (adjust_pc_after_break): Add a new comment.
12140 (handle_inferior_event): Update calls to bpstat_stop_status.
12141
12142 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12143
12144 * breakpoint.h: Update copyright years.
12145
12146 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12149 (bpstat_stop_status): Don't decrement PC.
12150 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12151 prototype.
12152 * infrun.c (adjust_pc_after_break): New function.
12153 (handle_inferior_event): Call it, early. Remove later references
12154 to DECR_PC_AFTER_BREAK.
12155 (normal_stop): Add commentary.
12156
12157 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12158
12159 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12160 2004-01-27 double-free fix.
12161
12162 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12163
12164 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12165 (sparc32_frame_prev_register): Handle StackGhost.
12166 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12167
12168 2004-01-29 Roland McGrath <roland@redhat.com>
12169
12170 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12171 * configure: Regenerated.
12172
12173 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12174 * Makefile.in (procfs.o): Add dep.
12175
12176 2004-01-28 Andrew Cagney <cagney@redhat.com>
12177
12178 * tui/tui-stack.h: Update copyright.
12179 (struct frame_info): Add opaque declaration.
12180 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12181 (tui_show_locator_content): Rename tuiShowLocatorContent.
12182 (tui_show_frame_info): Rename tuiShowFrameInfo.
12183 * tui/tui-stack.c: Update copyright. Update references.
12184 * tui/tui-winsource.c: Update references.
12185 * tui/tui-win.c: Update references.
12186 * tui/tui-layout.c: Update references.
12187 * tui/tui-hooks.c: Update copyright, update references.
12188 * tui/tui.c: Update copyright, update references.
12189 * tui/tui-disasm.c: Update references.
12190
12191 2004-01-28 David Carlton <carlton@kealia.com>
12192
12193 * dwarf2read.c (add_partial_structure): Use demangled name if
12194 namespace equals "".
12195
12196 2004-01-27 Jim Blandy <jimb@redhat.com>
12197
12198 Clean up misapplied patch:
12199 * dwarf2read.c (determine_prefix): Change one of the two forward
12200 declarations for 'determine_prefix_aux' to a declaration for this.
12201 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12202 argument to 'die_specification'.
12203
12204 * dwarf2read.c (read_func_scope): Re-indent comment.
12205
12206 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12207
12208 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12209 b->exp to NULL after freeing so that error during re-parsing or
12210 evaluation of expressions associated with breakpoint don't
12211 eventually lead to re-freeing of storage.
12212 Committed by Andrew Cagney.
12213
12214 2004-01-27 Andrew Cagney <cagney@redhat.com>
12215
12216 * source.c (ambiguous_line_spec): Delete undefined declaration.
12217 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12218 (m32r_set_server_address, m32r_set_download_path): Ditto.
12219 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12220
12221 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12222
12223 * dwarf2read.c: Update calls to changed and renamed functions, and
12224 references to moved variables.
12225
12226 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12227 language, language_defn, list_in_scope, and ftypes members.
12228 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12229 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12230 (baseaddr): Remove globals.
12231
12232 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12233 (set_cu_language, die_is_declaration, die_specification)
12234 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12235 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12236 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12237 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12238
12239 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12240 cu.list_in_scope. Don't initialize cu_header_offset.
12241 (add_partial_symbol): Add local baseaddr.
12242 (psymtab_to_symtab_1): Add local baseaddr. Use
12243 objfile->section_offsets for consistency. Don't initialize
12244 cu_header_offset; do initialize cu.header.offset and
12245 cu.list_in_scope.
12246 (read_file_scope, read_func_scope, read_lexical_block_scope)
12247 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12248
12249 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12250
12251 * PROBLEMS: Add gdb/1516.
12252
12253 2003-12-29 Robert Millan <robertmh@gnu.org>
12254
12255 Patch committed by Andrw Cagney.
12256 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12257 * configure.tgt: Match knetbsd*-gnu.
12258
12259 2004-01-26 Andrew Cagney <cagney@redhat.com>
12260
12261 * breakpoint.c (catch_command_1): Delete #ifdef code.
12262 (catch_fork_command_1): Delete #ifdef wrapper.
12263 (catch_exec_command_1): Ditto.
12264 (catch_load_command_1): Ditto.
12265 (catch_unload_command_1): Ditto.
12266
12267 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12268 (catch_breakpoint): Delete #if0ed function.
12269 (disable_catch_breakpoint): Ditto.
12270 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12271 (disable_catch, enable_catch, delete_catch): Ditto.
12272
12273 2004-01-26 Andrew Cagney <cagney@redhat.com>
12274
12275 * remote.c (echo_check, quit_flag): Delete variables.
12276 (cisco_kernel_mode): Delete variable.
12277 (minitelnet_return, tty_input, escape_count): Delete variables.
12278 (remote_cisco_mode): Delete variable.
12279 (remote_cisco_open, remote_cisco_close): Delete function.
12280 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12281 (init_remote_cisco_ops): Delete function.
12282 (_initialize_remote): Do not install "remote cisco" code.
12283 (read_frame): Delete cisco specific code.
12284 (remote_info_process): Delete function.
12285 (remote_wait): Delete cisco specific code.
12286 (remote_cisco_section_offsets): Delete function.
12287 (remote_cisco_objfile_relocate): Delete function.
12288 (remote_async_wait): Delete cisco specific code.
12289 (minitelnet, readtty, readsocket): Delete function.
12290
12291 2004-01-26 Andrew Cagney <cagney@redhat.com>
12292
12293 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12294 comments mentioning extract_returned_value_address.
12295 * infcmd.c (print_return_value): Update. Add comments on
12296 extract_returned_value_address.
12297 * stack.c (return_command): Add comments on
12298 extract_returned_value_address.
12299 * values.c: Update comment.
12300 * m32r-tdep.c: Update comment.
12301 * sparc-tdep.c: Update comment.
12302 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12304 * sh64-tdep.c (sh64_gdbarch_init): Update.
12305 * sh-tdep.c (sh_gdbarch_init): Update.
12306 * s390-tdep.c (s390_gdbarch_init): Update.
12307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12308 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12309 * m68k-tdep.c (m68k_gdbarch_init): Update.
12310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12311 * m32r-tdep.c (m32r_gdbarch_init): Update.
12312 * ia64-tdep.c (ia64_gdbarch_init): Update.
12313 * h8300-tdep.c (h8300_gdbarch_init): Update.
12314 * frv-tdep.c (frv_gdbarch_init): Update.
12315 * arm-tdep.c (arm_gdbarch_init): Update.
12316 * alpha-tdep.c (alpha_gdbarch_init): Update.
12317
12318 2004-01-26 Andrew Cagney <cagney@redhat.com>
12319
12320 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12321 SYMBOL_LOCATION_FUNCS
12322 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12323 "struct symbol_ops".
12324 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12325 type to "struct symbol_ops".
12326 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12327 (struct symbol): Replace ".aux_value.loc.funcs" and
12328 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12329 (SYMBOL_OBJFILE): Delete macro.
12330 (SYMBOL_LOCATION_FUNCS): Delete macro.
12331 (SYMBOL_LOCATION_BATON): Update.
12332 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12333 intead of SYMBOL_LOCATION_FUNCS.
12334 * ax-gdb.c (gen_var_ref): Ditto.
12335 * printcmd.c (address_info): Ditto.
12336 * findvar.c (read_var_value): Ditto.
12337 (symbol_read_needs_frame): Ditto.
12338
12339 2004-01-26 Andrew Cagney <cagney@redhat.com>
12340
12341 * dwarf2read.c (read_func_scope): Document frame-base hack.
12342
12343 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12344
12345 * infcmd.c (print_return_value): Plug memory leak; delete
12346 ui_stream object. Rename argument `structure_return' to
12347 `struct_return'.
12348
12349 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12350
12351 * infcmd.c (print_return_value): Wrap long lines.
12352 (finish_command_continuation, finish_command): Remove unused
12353 variable `funcaddr'. Fix some coding-standards problems.
12354
12355 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12356 SECT_SIZE is large enough, not whether it's exactly the right size.
12357 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12358 TDEP->fpregset to zero.
12359
12360 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12361 floating-point registers for traditional NetBSD core files.
12362 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12363 TDEP->sizeof_fpregset here.
12364
12365 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12366
12367 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12368 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12369 function with code split out from
12370 sparc32nbsd_sigcontext_frame_cache.
12371 (sparc32nbsd_sigcontext_frame_cache): Use
12372 sparc32nbsd_sigcontext_saved_regs.
12373 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12374 OpenBSD.
12375 * sparcobsd-tdep.c: New file.
12376 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12377 (sparcobsd-tdep.o): New dependency.
12378 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12379 * config/sparc/obsd.mt: New file.
12380
12381 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12382 TDEP->fpregset to be initialized to enable core file register
12383 sets.
12384
12385 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12386
12387 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12388 Add opaque declarations.
12389 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12390 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12391 function with code split out from
12392 sparc64nbsd_sigcontext_frame_cache.
12393 (sparc64nbsd_sigcontext_frame_cache): Use
12394 sparc64nbsd_sigcontext_saved_regs.
12395 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12396 OpenBSD.
12397 * sparc64obsd-tdep.c: New file.
12398 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12399 (sparc64obsd-tdep.o): New dependency.
12400 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12401 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12402 * config/sparc/obsd64.mt: New file.
12403
12404 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12405 read the instruction at PC.
12406
12407 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12408 value of GDB_OSABI_DEFAULT.
12409 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12410 instead of GDB_OSABI_NETBSD_AOUT.
12411
12412 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12413
12414 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12415 copyright.
12416
12417 2004-01-23 Andrew Cagney <cagney@redhat.com>
12418
12419 * printcmd.c (display_command): Replace tui_set_display call with
12420 tui_set_layout_for_display_command.
12421 * tui/tui.h (enum tui_win_type): Define.
12422 (tui_set_layout): Delete declaration.
12423 (tui_set_layout_for_display_command): Rename set_tui_layout.
12424 * tui/tui-data.h (enum tui_layout_type): Define.
12425 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12426 "tui.h".
12427 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12428 (tui_default_win_height): Rename tuiDefaultWinHeight.
12429 (tui_default_win_viewport_height): Rename
12430 tuiDefaultWinViewportHeight.
12431 (tui_set_layout): RenametuiSetLayout.
12432 * tui/tui-layout.c: Update references.
12433 * tui/tui.c: Update references.
12434 * tui/tui-disasm.c: Update references.
12435
12436 2004-01-23 David Carlton <carlton@kealia.com>
12437
12438 Partial workaround for PR c++/1511:
12439 * cp-namespace.c: Include frame.h.
12440 (cp_lookup_transparent_type): New
12441 (cp_lookup_transparent_type_loop): New.
12442 * cp-support.h: Declare cp_lookup_transparent_type.
12443 * symtab.c (basic_lookup_transparent_type): Renamed from
12444 lookup_transparent_type.
12445 (lookup_transparent_type): Replace old body by a call to
12446 current_language->la_lookup_transparent_type.
12447 * symtab.h: Update copyright. Declare
12448 basic_lookup_transparent_type.
12449 * language.h: Update copyright.
12450 (struct language_defn): Add la_lookup_transparent_type.
12451 * language.c: Update copyright.
12452 (unknown_language_defn): Add basic_lookup_transparent_type.
12453 (auto_language_defn): Add basic_lookup_transparent_type.
12454 (local_language_defn): Add basic_lookup_transparent_type.
12455 * ada-lang.c: Update copyright.
12456 (ada_language_defn): Add basic_lookup_transparent_type.
12457 * c-lang.c: Update copyright.
12458 (c_language_defn): Add basic_lookup_transparent_type.
12459 (cplus_language_defn): Add basic_lookup_transparent_type.
12460 (asm_language_defn): Add basic_lookup_transparent_type.
12461 (minimal_language_defn): Add basic_lookup_transparent_type.
12462 * f-lang.c: Update copyright.
12463 (f_language_defn): Add basic_lookup_transparent_type.
12464 * jv-lang.c: Update copyright.
12465 (java_language_defn): Add basic_lookup_transparent_type.
12466 * m2-lang.c: Update copyright.
12467 (m2_language_defn): Add basic_lookup_transparent_type.
12468 * objc-lang.c: Update copyright.
12469 (objc_language_defn): Add basic_lookup_transparent_type.
12470 * p-lang.c: Update copyright.
12471 (p_language_defn): Add basic_lookup_transparent_type.
12472 * scm-lang.c: Update copyright.
12473 (scm_language_defn): Add basic_lookup_transparent_type.
12474 * Makefile.in (cp-namespace.o): Depend on frame.h.
12475
12476 2004-01-23 David Carlton <carlton@kealia.com>
12477
12478 Patch for PR c++/1520:
12479 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12480 properly if we have a specification die.
12481 (determine_prefix_aux): Rename from determine_prefix.
12482 (determine_prefix): Like the old determine_prefix, but never
12483 returns NULL.
12484
12485 2004-01-23 Theodore A. Roth <troth@openavr.org>
12486
12487 * avr-tdep.c: Update copyright.
12488 (avr_iaddr_p): Delete unused function.
12489 (avr_saddr_p): Delete unused function.
12490
12491 2004-01-23 David Carlton <carlton@kealia.com>
12492
12493 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12494 Fix for PR symtab/1534.
12495
12496 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12497
12498 * NEWS (New native configurations): Mention OpenBSD/sparc and
12499 OpenBSD/sparc64.
12500 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12501 * configure.host: Likewise.
12502 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12503 handler for OpenBSD.
12504 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12505
12506 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12507
12508 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12509 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12510
12511 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12512 * cli/cli-cmds.c (shell_escape): Likewise.
12513
12514 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12515 OpenBSD .note.openbsd.ident sections.
12516
12517 2004-01-22 David Carlton <carlton@kealia.com>
12518
12519 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12520 get_scope_pc_bounds.
12521 (read_file_scope): Ditto.
12522 (get_scope_pc_bounds): New function, produced by extracting code
12523 from the above two functions, consolidating it, and adding support
12524 for DW_TAG_namespace.
12525
12526 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12527
12528 * osabi.c (MAX_NOTESZ): New define.
12529 (check_note): New function.
12530 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12531 check_note.
12532
12533 2004-01-21 Roland McGrath <roland@redhat.com>
12534
12535 * MAINTAINERS (write after approval): Add myself.
12536
12537 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12538
12539 * utils.c (init_page_info): Move declarations of `rows' and
12540 `cols' before the __GO32__-specific code. Move the closing brace
12541 outside the #ifdef __GO32__..#endif block.
12542 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12543
12544 2004-01-21 Paul Brook <paul@codesourcery.com>
12545
12546 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12547 BPSTAT_WHAT_CHECK_SHLIBS.
12548
12549 2004-01-21 Paul Brook <paul@codesourcery.com>
12550
12551 * MAINTAINERS: Add myself to write-after-approval.
12552
12553 2004-01-20 Andrew Cagney <cagney@redhat.com>
12554
12555 * ax-gdb.c (print_axs_value): Delete unused function.
12556 * jv-lang.c (java_lookup_type): Delete unused function.
12557 * cli/cli-dump.c (dump_filetype): Delete unused function.
12558 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12559 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12560 (mips_getstring): Delete unused function.
12561 (pmon_insert_breakpoint): Delete #if0ed function.
12562 (PMON_MAX_BP): Delete #if0ed MACRO.
12563 (mips_pmon_bp_info): Delete #if0ed variable.
12564 (pmon_remove_breakpoint): Delete #if0ed function.
12565 * monitor.c (monitor_write_even_block): Delete unused function.
12566 (monitor_write_memory_block): Delete #if0ed code.
12567 * dink32-rom.c (dink32_load): Delete unused function.
12568 (_initialize_dink32_rom): Delete #if0ed code.
12569 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12570
12571 * tui/tui-command.c: Update references.
12572 * tui/tui-io.c: Update references.
12573 * tui/tui-command.h: Update copyright.
12574 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12575
12576 * source.c (ambiguous_line_spec): Delete never-defined function.
12577 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12578 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12579 * cli/cli-cmds.c (validate_comname): Ditto.
12580
12581 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12582 "tui-data.h".
12583 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12584 (tui_show_disassem): Rename tuiShowDisassem.
12585 (tui_show_disassem_and_update_source): Rename
12586 tuiVerticalDisassemScroll.
12587 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12588 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12589 * tui/tui.h: Update copyright.
12590 (enum tui_status): Define.
12591 * tui/tui-data.h (enum tui_scroll_direction): Define.
12592 * tui/tui-disasm.c: Update copyright. Update references.
12593 * tui/tui-winsource.c: Update copyright. Update references.
12594 * tui/tui-win.c: Update references.
12595 * tui/tui-layout.c: Update references.
12596
12597 2004-01-20 Andrew Cagney <cagney@redhat.com>
12598
12599 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12600 sym2 to start of block.
12601
12602 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12603
12604 * MAINTAINERS: Delete mmalloc.
12605 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12606 * NEWS: Mention removal of --with-malloc.
12607 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12608 * config.in: Regenerate.
12609 * configure: Regenerate.
12610 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12611 USE_MMALLOC, MMCHECK_FORCE.
12612 * gdbinit.in: Remove mmalloc.
12613 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12614 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12615 * config/i386/go32.mh: Likewise.
12616 * config/i386/interix.mh: Likewise.
12617 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12618
12619 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12620
12621 * linespec.c (decode_variable, symtab_from_filename): Call
12622 error_silent with error message instead of throwing an exception
12623 directly.
12624 * defs.h (error_silent, error_output_message): Add prototypes.
12625 (catch_exceptions_with_msg): Ditto.
12626 * utils.c (error_silent, error_output_message): New functions.
12627 * top.c (catch_exceptions_with_msg): New function.
12628
12629 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12630
12631 * mi/mi-cmds.h (enum print_values): Add definition.
12632
12633 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12634 type and value for simple data types and just the name and type
12635 for complex ones, if required.
12636
12637 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12638 children, if required.
12639
12640 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12641
12642 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12643 unused declarations.
12644
12645 2004-01-19 Andrew Cagney <cagney@redhat.com>
12646
12647 * top.h (mapped_symbol_files): Delete declaration.
12648 * main.c (captured_main): Delete option "m" and "mapped".
12649 * objfiles.c (mapped_symbol_files): Delete variable.
12650 * symfile.c (symbol_file_command): Delete mmap code.
12651 (symbol_file_add_with_addrs_or_offsets): Ditto.
12652 (add_symbol_file_command, reread_separate_symbols): Ditto.
12653 * objfiles.h (OBJF_MAPPED): Delete.
12654 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12655 (free_objfile) [USE_MMALLOC]: Ditto.
12656 (open_existing_mapped_file): Delete function.
12657 (open_mapped_file): Delete function.
12658 (map_to_file): Delete function.
12659
12660 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12661
12662 * infrun.c (step_into_function): Account for possible breakpoint
12663 adjustment when computing ``stop_func_start''.
12664
12665 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12666
12667 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12668 the region size against the size of a pointer, not the size of
12669 a register as given by DEPRECATED_REGISTER_SIZE.
12670
12671 2004-01-19 Andrew Cagney <cagney@redhat.com>
12672
12673 * tui/tui-regs.h: Include "tui-data.h".
12674 (tuiFirstRegElementNoInLine): Delete declaration.
12675 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12676 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12677 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12678 (tui_calculate_regs_column_count): Rename
12679 tuiCalculateRegsColumnCount.
12680 (tui_check_register_values): Rename tuiCheckRegisterValues.
12681 (tui_show_registers): Rename tuiShowRegisters.
12682 (tui_display_registers_from_line): Rename
12683 tuiDisplayRegistersFromLine.
12684 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12685 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12686 (tui_first_reg_element_no_inline): Rename
12687 tuiFirstRegElementNoInLine.
12688 * tui/tui-data.h: Update copyright.
12689 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12690 * tui/tui-windata.c: Update copyright, update references.
12691 * tui/tui-regs.c: Update copyright, update references.
12692 * tui/tui-win.c: Update copyright, update references.
12693 * tui/tui-layout.c: Update copyright, update references.
12694
12695 2004-01-18 Andrew Cagney <cagney@redhat.com>
12696
12697 * tui/tui-io.c: Update copyright.
12698 (key_is_end_sequence, key_is_backspace): New functions.
12699 (key_is_command_char, key_is_start_sequence): New function.
12700 (tui_getc): Update references.
12701 * tui/tui-io.h: Update copyright.
12702 (m_tuiStartNewLine): Delete macro.
12703 (m_isBackspace, m_isDeleteChar): Delete macros.
12704 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12705 (m_isNextPage, m_isPrevPage): Delete macros.
12706 (m_isLeftArrow, m_isRightArrow): Delete macros.
12707 (m_isXdbStyleCommandChar): Delete macro.
12708 (key_is_start_sequence): Declare, replace m_isStartSequence.
12709 (key_is_end_sequence): Declare, replace m_isEndSequence.
12710 (key_is_backspace): Declare ,replace m_isBackspace.
12711 (key_is_command_char): Declare, replace m_isCommandChar.
12712 * tui/tui-command.c: Update copyright.
12713 (tuiDispatchCtrlChar): Update references.
12714
12715 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12716 tuiSourceWin.h.
12717
12718 * tui/tui-command.c: Rename tui/tuiCommand.c.
12719 * tui/tui-command.h: Rename tui/tuiCommand.h.
12720 * tui/tui-data.c: Rename tui/tuiData.c.
12721 * tui/tui-data.h: Rename tui/tuiData.h.
12722 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12723 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12724 * tui/tui-io.c: Rename tui/tuiIO.c.
12725 * tui/tui-io.h: Rename tui/tuiIO.h.
12726 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12727 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12728 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12729 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12730 * tui/tui-source.c: Rename tui/tuiSource.c.
12731 * tui/tui-source.h: Rename tui/tuiSource.h.
12732 * tui/tui-stack.c: Rename tui/tuiStack.c.
12733 * tui/tui-stack.h: Rename tui/tuiStack.h.
12734 * tui/tui-win.c: Rename tui/tuiWin.c.
12735 * tui/tui-win.h: Rename tui/tuiWin.h.
12736 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12737 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12738 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12739 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12740 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12741 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12742 * tui/tui-file.c: Update includes.
12743 * tui/tui-hooks.c: Update includes.
12744 * tui/tui-interp.c: Update includes.
12745 * tui/tui.c: Update includes.
12746 * Makefile.in: Update all tui/ dependencies.
12747 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12748
12749 * Makefile.in: Update copyright. Update dependencies.
12750
12751 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12752 problem.
12753
12754 2004-01-18 Andrew Cagney <cagney@redhat.com>
12755
12756 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12757 instead of register_gdbarch_init.
12758
12759 * remote-sds.c (tohex): Delete unused function. Update copyright.
12760 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12761 * v850-tdep.c (v850_register_virtual_size): Ditto.
12762 * target.c (normal_target_post_startup_inferior): Ditto.
12763 * source.c (ambiguous_line_spec): Ditto.
12764 * remote.c (adapt_remote_get_threadinfo): Ditto.
12765 * mi/mi-out.c (out_field_fmt): Ditto.
12766 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12767 (output_control_change_notification): Ditto.
12768 * m68k-tdep.c (m68k_register_byte): Ditto.
12769 (m68k_remote_breakpoint_from_pc): Ditto.
12770 * ui-out.c (init_ui_out_state): Delete unused declaration.
12771 * stabsread.c (search_value): Ditto.
12772 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12773 * maint.c (print_section_table): Ditto.
12774 * infrun.c (set_follow_fork_mode_command): Ditto.
12775
12776 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12777
12778 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12779 DW_CFA_def_cfa_exporession. Add support for
12780 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12781 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12782
12783 2004-01-18 Andrew Cagney <cagney@redhat.com>
12784
12785 * ocd.c: Update copyright.
12786 (bdm_read_register_command): Delete unused function.
12787 (_initialize_remote_ocd): Delete commented out reference.
12788 (get_quoted_char, reset_packet): Delete #if0ed function.
12789 (output_packet, put_quoted_char): Delete #if0ed function.
12790 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12791 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12792 (BDM_BREAKPOINT): Delete #if0ed macro.
12793 (remote_timeout): Delete #if0ed variable.
12794
12795 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12796
12797 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12798 (core-sol2.o): Remove dependency.
12799 * core-sol2.c: Remove file.
12800
12801 2004-01-17 Andrew Cagney <cagney@redhat.com>
12802
12803 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12804 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12805 enums.
12806
12807 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12808
12809 * remote.c: Update copyright years.
12810
12811 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12812
12813 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12814
12815 2004-01-17 Andrew Cagney <cagney@redhat.com>
12816
12817 * mdebugread.c: Update copyright.
12818 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12819 (parse_type, parse_procedure): Ditto.
12820 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12821
12822 * cris-tdep.c (cris_store_struct_return): Put back accidently
12823 deleted function.
12824
12825 * gdbarch.sh: Update copyright year.
12826 * gdbarch.h, gdbarch.c: Re-generate.
12827
12828 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12829
12830 Suggested by George Anzinger.
12831 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12832 correct stack offset. Include unknown opcode numbers in the error
12833 message.
12834
12835 2004-01-17 Andrew Cagney <cagney@redhat.com>
12836
12837 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12838 extract_struct_value_address, i386 does not set it.
12839 * sparc64-tdep.c (sparc64_init_abi): Do not set
12840 extract_struct_value_address, never called.
12841 (sparc64_extract_struct_value_address): Delete function.
12842 * m68hc11-tdep.c: Update copyright.
12843 (m68hc11_gdbarch_init): Delete redundant assignment of
12844 extract_struct_value_address.
12845 * i386-tdep.c: Update copyright.
12846 (i386_gdbarch_init): Do not set extract_struct_value_address,
12847 never called.
12848 (i386_extract_struct_value_address): Delete function.
12849 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12850 extract_struct_value_address, never called.
12851 (sparc32_extract_struct_value_address): #if 0 function. Add
12852 comments explaining its future.
12853
12854 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12855
12856 * arm-tdep.c (arm_write_pc): New function.
12857 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12858
12859 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12860
12861 * breakpoint.c (must_shift_inst_regs): Delete.
12862 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12863 and SHIFT_INST_REGS.
12864 * infcmd.c (step_1, step_1_continuation): Delete references to
12865 SHIFT_INST_REGS.
12866 * infrun.c (keep_going): Likewise.
12867 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12868 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12869
12870 2004-01-17 Andrew Cagney <cagney@redhat.com>
12871
12872 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12873 * gdbarch.h, gdbarch.c: Re-generate.
12874 * infcmd.c (print_return_value): Delete reference to
12875 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12876
12877 * cris-tdep.c (cris_gdbarch_init): Do not set
12878 deprecated_extract_struct_value_address.
12879
12880 * xstormy16-tdep.c: Update copyright.
12881 (xstormy16_extract_struct_value_address): Update to current
12882 extract struct value address interface.
12883 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12884 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12885 current extract struct value address interface.
12886 (sh64_gdbarch_init): Set extract_struct_value_address.
12887
12888 * cris-tdep.c: Update copyright.
12889 (cris_extract_struct_value_address): Delete function.
12890 (struct_return_address): Delete variable.
12891 (cris_store_struct_return): Do not set struct_return_address.
12892
12893 * mcore-tdep.c: Update copyright.
12894 (mcore_extract_struct_value_address): Delete function. Update
12895 comments.
12896 (mcore_gdbarch_init): Update.
12897 * mn10300-tdep.c: Update copyright.
12898 (mn10300_extract_struct_value_address): Delete function.
12899 (mn10300_gdbarch_init): Update.
12900 * v850-tdep.c: Update copyright.
12901 (v850_extract_struct_value_address): Delete.
12902 (v850_gdbarch_init): Update.
12903 * ns32k-tdep.c: Update copyright.
12904 (ns32k_extract_struct_value_address): Delete.
12905 (ns32k_gdbarch_init): Update.
12906 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12907 (hppa_gdbarch_init): Update.
12908 * vax-tdep.c: Update copyright.
12909 (vax_extract_struct_value_address): Delete.
12910 (vax_gdbarch_init): Update.
12911
12912 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12913 * gdbarch.h, gdbarch.c: Re-generate.
12914 * procfs.c (procfs_fetch_registers): Delete reference to
12915 DEPRECATED_NPC_REGNUM.
12916 (procfs_store_registers): Ditto.
12917 * regcache.c (generic_target_write_pc): Simplify.
12918 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12919
12920 * core-sol2.c (fetch_core_registers): Replace
12921 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12922
12923 * hppa-tdep.c: Update copyright year.
12924 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12925 NPC_REGNUM.
12926 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12927
12928 * mips-tdep.c (mips_write_pc): New function.
12929 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12930 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12931 (mips_find_saved_regs, mips_software_single_step: Ditto.
12932 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12933 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12934
12935 2004-01-17 Andrew Cagney <cagney@redhat.com>
12936
12937 * mips-tdep.c: Re-indent. Group functions by ABI.
12938
12939 2004-01-17 Andrew Cagney <cagney@redhat.com>
12940
12941 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12942 * gdbarch.c: Re-generate.
12943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12944 DECR_PC_AFTER_BREAK to zero.
12945 * vax-tdep.c (vax_gdbarch_init): Ditto.
12946 * v850-tdep.c (v850_gdbarch_init): Ditto.
12947 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12948 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12949 * sh-tdep.c (sh_gdbarch_init): Ditto.
12950 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12951 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12952 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12953 * mips-tdep.c (mips_gdbarch_init): Ditto.
12954 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12956 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12957 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12958 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12959 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12960 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12961 * frv-tdep.c (frv_gdbarch_init): Ditto.
12962 * cris-tdep.c (cris_gdbarch_init): Ditto.
12963 * avr-tdep.c (avr_gdbarch_init): Ditto.
12964 * arm-tdep.c (arm_gdbarch_init): Ditto.
12965 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12966
12967 2004-01-17 J. Brobecker <brobecker@gnat.com>
12968
12969 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12970 Delete, no longer used.
12971 (read_subrange_type): New function, mostly extracted from
12972 read_array_type().
12973 (read_array_type): Replace extracted code by call to
12974 read_subrange_type().
12975 (dwarf2_get_attr_constant_value): New function.
12976 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12977 (add_partial_symbol): Likewise.
12978 (process_die): Likewise.
12979 (new_symbol): Likewise.
12980 (read_type_die): Likewise.
12981
12982 2004-01-16 Andrew Cagney <cagney@redhat.com>
12983
12984 * symfile.c: Update copyright year.
12985 (compare_symbols): Delete unused function.
12986 * stabsread.c: Update copyright year.
12987 (lrs_general_complaint): Delete unused function.
12988 (ref_search_value): Ditto.
12989 (get_substring): Delete declaration.
12990 * sh64-tdep.c: Update copyright year.
12991 (sh64_get_gdb_regnum): Delete unused function.
12992 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12993 Delete unused function.
12994
12995 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12996
12997 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12998 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12999
13000 2004-01-16 Andrew Cagney <cagney@redhat.com>
13001
13002 Changes from Peter Schauer.
13003 * rs6000-tdep.c: Update copyright year.
13004 (rs6000_push_dummy_call): Update the stack pointer before
13005 accessing the corresponding stack region.
13006 * rs6000-nat.c: Update copyright year.
13007 (set_host_arch): Set "info.abfd" to "exec_bfd".
13008
13009 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13010
13011 * blockframe.c: Update copyright year.
13012 (inside_entry_func): Don't treat a zero PC specially.
13013
13014 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13015
13016 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13017 variable.
13018 (gcore_create_callback): Ditto. Skip any memory segment that has
13019 no permissions set.
13020
13021 2004-01-14 David Carlton <carlton@kealia.com>
13022
13023 Change symbols for C++ nested types to contain the fully qualified
13024 name, if possible. (At least in the DWARF-2 case.) Partial fix
13025 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13026 c++/895.
13027 * c-exp.y (qualified_type): Handle types nested within classes.
13028 * cp-namespace.c: Update comments.
13029 (cp_set_block_scope): Delete #if 0.
13030 (cp_lookup_nested_type): Handle types nested within classes.
13031 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13032 when appropriate.
13033 (add_partial_symbol): Add the name of the enclosing namespace to
13034 types.
13035 (pdi_needs_namespace): New.
13036 (add_partial_namespace): Tweak comment.
13037 (add_partial_structure): New.
13038 (psymtab_to_symtab_1): Initialize processing_current_prefix
13039 here...
13040 (process_die): instead of here.
13041 (read_structure_scope): Try to figure out the name of the class or
13042 namespace that the structure might be defined within.
13043 (read_enumeration): Generate fully-qualified names, if possible.
13044 (read_namespace): Don't set name to NULL.
13045 (die_specification): New.
13046 (new_symbol): Generate fully-qualified names for types.
13047 (read_type_die): Determine appropriate prefix.
13048 (determine_prefix): New.
13049 (typename_concat): New.
13050 (class_name): New.
13051 * valops.c (value_aggregate_elt): Pass NOSIDE to
13052 value_struct_elt_for_reference.
13053 (value_struct_elt_for_reference): Make static, add NOSIDE
13054 parameter, call value_maybe_namespace_elt as a last resort.
13055 (value_namespace_elt): Break out code into
13056 value_maybe_namespace_elt.
13057 (value_maybe_namespace_elt): New.
13058
13059 2004-01-12 Andrew Cagney <cagney@redhat.com>
13060
13061 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13062 cooked floating-point registers.
13063 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13064 and value_to_register.
13065
13066 2004-01-13 Andrew Cagney <cagney@redhat.com>
13067
13068 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13069 * gdbarch.c: Re-generate.
13070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13071 FUNCTION_START_OFFSET.
13072 * v850-tdep.c (v850_gdbarch_init): Ditto.
13073 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13074 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13075 * sh-tdep.c (sh_gdbarch_init): Ditto.
13076 * s390-tdep.c (s390_gdbarch_init): Ditto.
13077 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13078 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13079 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13080 * mips-tdep.c (mips_gdbarch_init): Ditto.
13081 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13082 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13084 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13085 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13086 * i386-tdep.c (i386_gdbarch_init): Ditto.
13087 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13089 * frv-tdep.c (frv_gdbarch_init): Ditto.
13090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13091 * cris-tdep.c (cris_gdbarch_init): Ditto.
13092 * avr-tdep.c (avr_gdbarch_init): Ditto.
13093 * arm-tdep.c (arm_gdbarch_init): Ditto.
13094 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13095
13096 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13097
13098 * infrun.c (follow_fork_mode_ask): Remove.
13099 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13100 (follow_fork): Simplify and remove internal error for
13101 follow_fork_mode_ask.
13102 (_initialize_infrun): Update "set follow-fork-mode" help text.
13103
13104 2004-01-13 Andrew Cagney <cagney@redhat.com>
13105
13106 * configure.in: Update copyright year.
13107 (build_warnings): Add -Wunused-label.
13108 * configure: Re-generate.
13109
13110 2004-01-12 Andrew Cagney <cagney@redhat.com>
13111
13112 * exec.h (exec_ops): Make "extern".
13113
13114 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13115 the function is void.
13116 (mips_pseudo_register_write): Ditto.
13117
13118 2004-01-12 Andrew Cagney <cagney@redhat.com>
13119
13120 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13121 call. Never defined.
13122 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13123 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13124 (struct sparc_gregset, struct regcache): Ditto.
13125 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13126
13127 2004-01-12 Andrew Cagney <cagney@redhat.com>
13128
13129 * mi/ChangeLog: Delete file. Renamed to ...
13130 * mi/ChangeLog-1999-2003: New file.
13131 * tui/ChangeLog: Delete file. Renamed to ...
13132 * tui/ChangeLog-1998-2003: New file.
13133
13134 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13135
13136 * sparc64nbsd-tdep.c: Include "regset.h".
13137 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13138 Remove variables.
13139 (fetch_core_registers): Remove function.
13140 (sparc64nbsd_core_fns): Remove variable.
13141 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13142 functions.
13143 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13144 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13145 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13146
13147 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13148 sparc_extract_struct_value_address.
13149 (sparc32_gdbarch_init): Set extract_struct_value_address.
13150 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13151 function.
13152 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13153 return_value_on_stack.
13154
13155 * NEWS: Mention that %cs and %ss have been added to the AMD64
13156 configurations
13157
13158 * frame.c: Update copyright year.
13159 (get_prev_frame): Improve comment.
13160
13161 * sparc64fbsd-tdep.c: Include "regset.h".
13162 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13163 Remove variables.
13164 (fetch_core_registers): Remove function.
13165 (sparc64fbsd_core_fns): Remove variable.
13166 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13167 functions.
13168 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13169 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13170 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13171
13172 * sparcnbsd-tdep.c: Include "regset.h".
13173 (fetch_core_registers): Remove function.
13174 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13175 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13176 functions.
13177 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13178 TDEP->fpregset.
13179 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13180
13181 * sparc-tdep.h (struct regset): Provide opaque declaration.
13182 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13183 fpregset and sizeof_fpregset members.
13184 * sparc-tdep.c (struct regset): Provide opaque declaration.
13185 (sparc_regset_from_core_section): New function.
13186 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13187 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13188 Set regset_from_core_section when appropriate.
13189
13190 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13191
13192 * x86-64-tdep.c (amd64_non_pod_p): New function.
13193 (amd64_classify_aggregate): Return class memory for non-POD
13194 C++ structure types.
13195
13196 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13197 argument. Use it to reserve a register if necessary.
13198 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13199 amd64_push_arguments.
13200
13201 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13202
13203 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13204 register numbers in comments.
13205 * x86-64-tdep.h: Update copyright year.
13206 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13207 Adjust for addition of %cs and %ss.
13208 * amd64fbsd-nat.c: Update copyright year.
13209 (reg_offset): Add register offsets for %cs and %ss.
13210 * amd64fbsd-tdep.c: Update copyright year.
13211 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13212 (amd64fbsd_sc_reg_offset): Likewise.
13213 * x86-64-linux-nat.c: Update copyright year.
13214 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13215 and %ss.
13216 * amd64nbsd-nat.c: Update copyright year.
13217 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13218 * amd64nbsd-tdep.c: Update copyright year.
13219 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13220 * x86-64-linux-tdep.c: Update copyright year.
13221 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13222 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13223 * regformats/reg-x86-64.dat: Add %cs and %ss.
13224
13225 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13226 variables to prevent long lines. Update comments to reflect
13227 reality.
13228
13229 2004-01-09 David Carlton <carlton@kealia.com>
13230
13231 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13232 * dwarf2read.c (read_namespace): Pull out name-generating code
13233 into namespace_name. Rename previous_namespace to previous_prefix
13234 and processing_current_namespace to processing_current_prefix..
13235 (namespace_name): New function.
13236 (add_partial_symbol): Substitute uses of pdi->name with
13237 actual_name.
13238 * cp-support.h: Rename processing_current_namespace to
13239 processing_current_prefix.
13240 Update copyright year.
13241 * cp-namespace.c: Rename processing_current_namespace to
13242 processing_current_prefix.
13243 Update copyright year.
13244
13245 2004-01-09 Andrew Cagney <cagney@redhat.com>
13246
13247 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13248
13249 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13250
13251 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13252 complaining.
13253 (process_one_symbol): Deal with N_PATCH stabs.
13254
13255 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13256
13257 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13258 ifdeffed code.
13259 Update copyright year.
13260
13261 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13262
13263 * config/pa/tm-hppa.h: Update extern declarations for
13264 hppa32_hpux_frame_saved_pc_in_sigtramp,
13265 hppa32_hpux_frame_base_before_sigtramp, and
13266 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13267
13268 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13269
13270 * config/pa/tm-hppah.h: Update copyright years.
13271
13272 2004-01-08 Andrew Cagney <cagney@redhat.com>
13273
13274 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13275 (mips_o32_reg_struct_has_addr): Delete function.
13276 (mips_gdbarch_init): Update.
13277 (mips_extract_struct_value_address): Delete function.
13278
13279 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13280
13281 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13282 reality.
13283
13284 2004-01-07 Andrew Cagney <cagney@redhat.com>
13285
13286 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13287 architecture's elf flags (when available).
13288
13289 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13290 FPU to the start, check the MIPS FPU when looking for an old
13291 architecture.
13292 (set_mipsfpu_single_command): Update the architecture.
13293 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13294
13295 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13296 (mips_mask_address_p): Add "tdep" parameter.
13297 (show_mask_address, mips_addr_bits_remove): Update.
13298 (mips_dump_tdep): Update.
13299 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13300 (MIPS_STACK_ARGSIZE): Delete macro.
13301 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13302 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13303 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13304 (mips_dump_tdep): Update.
13305 (MIPS_SAVED_REGSIZE): Delete macro.
13306 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13307 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13308 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13309 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13310 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13311 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13312 (mips_pop_frame, return_value_location): Update.
13313 (mips_n32n64_return_value, mips_dump_tdep): Update.
13314
13315 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13316 MIPS ABI.
13317
13318 * mips-tdep.c: Update copyright.
13319 (mips_gdbarch_init): Merge two code blocks handling the register
13320 name and number layout.
13321
13322 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13323
13324 * tracepoint.c (validate_actionline): Fix segv at EOF
13325
13326 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13327
13328 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13329 properly for static fields.
13330
13331 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13332 Jason Molenda <jmolenda@apple.com>
13333
13334 * disasm.c: Update copyright to include 2004.
13335 (do_mixed_source_and_assembly): For uiout asm list
13336 and tuple cleanups, initialize to null_cleanup instead of
13337 NULL and do so prior to loop. Only reset when we close off
13338 the tuple/list. Move check for whether to close off the
13339 asm tuple/list to after dump_insns call where it will be run
13340 on each loop iteration.
13341
13342 2004-01-05 Andrew Cagney <cagney@redhat.com>
13343
13344 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13345 should be a switch case and not a label.
13346 * mips-tdep.c (mips32_next_pc): Delete unused labels
13347 "greater_equal_branch" and "less_zero_branch".
13348 * jv-valprint.c (java_print_value_fields): Delete unused label
13349 "flush_it".
13350
13351 * target.c (unpush_target): Only close a target that is in the
13352 target stack.
13353
13354 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13355
13356 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13357 address from [sp + 64] instead of %o2.
13358
13359 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13360 fixes PR backtrace/1476.
13361
13362 2004-01-05 Andrew Cagney <cagney@redhat.com>
13363
13364 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13365 move to start of file.
13366 * i386-tdep.h (struct regcache): Add opaque declaration.
13367 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13368 declaration.
13369 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13370 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13371 * win32-nat.c (fake_create_process): Use ISO C style definition.
13372 * stabsread.c (define_symbol): Delete #ifndef
13373 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13374 stabs_argument_has_addr call, macro never defined.
13375
13376 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13377
13378 * op50-rom.c: Delete.
13379 * w89k-rom.c: Delete.
13380 * Makefile.in: Remove references.
13381
13382 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13383
13384 * x86-64-tdep.c: Update copyright year.
13385 (struct amd64_register_info): Rename from x86_64_register_info.
13386 (amd64_register_info): Rename from x86_64_register_info.
13387 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13388 (amd64_register_name): Rename from x86_64_register_name.
13389 (amd64_register_type): Rename from x86_64_register_type.
13390 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13391 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13392 (amd64_dwarf_reg_to_regnum): Rename from
13393 x86_64_dwarf_reg_to_regnum.
13394 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13395 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13396 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13397 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13398 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13399 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13400 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13401 (amd64_frame_cache): Rename from x86_64_frame_cache.
13402 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13403 (amd64_frame_prev_register): Rename from
13404 x86_64_frame_prev_register.
13405 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13406 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13407 (amd64_sigtramp_frame_cache): Rename from
13408 x86_64_sigtramp_frame_cache.
13409 (amd64_sigtramp_frame_prev_register): Rename from
13410 x86_64_sigtramp_frame_prev_register.
13411 (amd64_sigtramp_frame_unwind): Rename from
13412 x86_64_sigtramp_frame_unwind.
13413 (amd64_sigtramp_frame_sniffer): Rename from
13414 x86_64_sigtramp_frame_sniffer.
13415 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13416 (amd64_frame_base): Rename from x86_64_frame_base.
13417 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13418 (amd64_frame_align): Rename from x86_64_frame_align.
13419 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13420 (amd64_regset_from_core_section): Rename from
13421 x86_64_regset_from_core_section.
13422 (x86_64_init_abi): Update comments.
13423
13424 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13425
13426 * MAINTAINERS (write after approval): Add myself.
13427
13428 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13429
13430 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13431 `float' arguments.
13432
13433 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13434
13435 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13436 such that it mentions a specific version of GCC that exhibits this
13437 bug.
13438
13439 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13440
13441 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13442 structure that has a single `float' member, store it in %f1 in
13443 addition to %f0.
13444
13445 * sparc-sol2-nat.c: Add missing '\'.
13446
13447 * sparc-tdep.c (sparc32_return_value): New function.
13448 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13449 Remove functions.
13450 (sparc32_gdbarch_init): Set return_value, don't set
13451 extract_return_value, store_return_value, use_struct_convention
13452 and return_value_on_stack.
13453
13454 * sparc-sol2-nat.c: Add missing ')'.
13455
13456 2004-01-03 J. Brobecker <brobecker@gnat.com>
13457
13458 * infrun.c (handle_step_into_function): New function.
13459 (handle_inferior_event): Extract out some code into the new
13460 function above.
13461
13462 2004-01-03 J. Brobecker <brobecker@gnat.com>
13463
13464 * infrun.c (handle_inferior_event): Move the declaration of
13465 real_stop_pc inside the if blocks where it is used.
13466
13467 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13468
13469 * sparc64-tdep.c (sparc64_16_byte_align_p)
13470 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13471 Use check_typedef to get subtypes of structures and unions.
13472 (sparc64_store_return_value): Fix calculation of the appropriate
13473 offset into VALBUF when storing a structure or union.
13474 (sparc64_return_value): New function.
13475 (sparc64_use_struct_convention): Remove function.
13476 (sparc64_init_abi): Set return_value, don't set
13477 extract_return_value, store_return_value and
13478 use_struct_convention.
13479
13480 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13481
13482 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13483 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13484 gdb/config/alpha/xm-alphaosf.h,
13485 gdb/config/powerpc/tm-ppcle-eabi.h,
13486 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13487 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13488 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13489 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13490 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13491 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13492 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13493 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13494 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13495 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13496 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13497 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13498 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13499 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13500 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13501 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13502 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13503 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13504 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13505 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13506 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13507 Remove lines for .cvsignore files.
13508
13509 2004-01-03 J. Brobecker <brobecker@gnat.com>
13510
13511 * infrun.c: Back out the previous change.
13512
13513 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13514
13515 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13516 sparc-*-sunos4* to the list of REMOVED configurations.
13517
13518 * configure.tgt: Add back sparc-*-vxworks*.
13519 * remote-vxsparc.c: Remove all includes except for "defs.h",
13520 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13521 Include "sparc-tdep.h".
13522 (SPARC_R_G1): New define.
13523 (vxsparc_gregset): New variable.
13524 (ext_format_sparc): Remove extern declaration.
13525 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13526 sparc32_supply_fpregset.
13527 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13528 sparc_collect_rwindow and sparc32_collect_fpregset.
13529 * config/sparc/tm-vxworks.h: New file, based on recently removed
13530 tm-vxsparc.h.
13531 * config/sparc/vxworks.mt: New file, based on recently removed
13532 vxworks.mt.
13533
13534 2004-01-03 J. Brobecker <brobecker@gnat.com>
13535
13536 * infrun.c (handle_step_into_function): New function.
13537 (handle_inferior_event): Extract out some code into the new
13538 function above.
13539
13540 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13541
13542 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13543 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13544 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13545 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13546 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13547 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13548 (sparc_nat_h): New variable.
13549 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13550 (tm-sun4os4.h): Remove dependency.
13551 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13552 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13553 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13554 sparc-tdep.o): Update dependencies.
13555 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13556 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13557 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13558 dependencies.
13559 * configure.host: Remove existing sparc-*-lynxos*,
13560 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13561 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13562 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13563 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13564 triplets.
13565 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13566 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13567 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13568 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13569 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13570 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13571 sparc64-*-solaris2* and sparc64-*-* triplets.
13572 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13573 "symtab.h" and "objfiles.h".
13574 (BIAS): Remove define.
13575 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13576 (X_DISP19): Remove macros.
13577 (sparc_fetch_instruction): Remove function.
13578 (struct gdbarch_tdep): Remove definition.
13579 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13580 (sparc_breakpoint_from_pc): Remove function.
13581 (struct sparc64_frame_cache): Remove definition.
13582 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13583 sparc64_unwind_pc): Remove functions.
13584 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13585 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13586 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13587 (sparc64_frame_cache): Change return type to `struct
13588 sparc_frame_cache *'. Simply call sparc_frame_cache.
13589 (sparc64_frame_this_id, sparc64_frame_prev_register,
13590 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13591 instead of `struct sparc64_frame_cache.
13592 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13593 sparc_analyze_control_transfer, sparc_software_single_step,
13594 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13595 _initialize_sparc64_tdep): Remove functions.
13596 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13597 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13598 macros.
13599 (sparc64_supply_gregset, sparc64_collect_gregset,
13600 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13601 (sparc64_init_abi): New function.
13602 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13603 inclusion guard. Include "sparc-tdep.h".
13604 (BIAS): Define.
13605 (r_tstate_offset, r_fprs_offset): New defines.
13606 (enum sparc_regnum): Remove defenition.
13607 (enum sparc64_regnum): Reformat.
13608 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13609 (sparc64_init_abi, sparc64_supply_gregset,
13610 sparc64_collect_gregset, sparc64_supply_fpregset,
13611 sparc64_collect_fpregset): New prototypes.
13612 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13613 Add extern declarations.
13614 (sparc64_sol2_init_abi): New prototype.
13615 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13616 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13617 prototypes.
13618 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13619 "sparnbsd-nat.h".
13620 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13621 functions.
13622 (_initialize_sparc64fbsd_nat): Remove initialization of
13623 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13624 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13625 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13626 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13627 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13628 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13629 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13630 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13631 (sparc64fbsd_r_y_offset): Remove variables.
13632 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13633 Make static and const.
13634 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13635 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13636 functions.
13637 (sparc64fbsd_gregset): New variable.
13638 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13639 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13640 and sparc64_supply_fpregset.
13641 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13642 (sparc64fbsd_sigtramp_frame_this_id)
13643 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13644 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13645 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13646 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13647 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13648 * sparcnbsd-tdep.c: Update copyright year. Include
13649 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13650 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13651 "value.h" and "sparcnbsd-tdep.h".
13652 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13653 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13654 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13655 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13656 defines.
13657 (sparcnbsd_gregset): New variable.
13658 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13659 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13660 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13661 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13662 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13663 variables.
13664 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13665 (sparc32nbsd_sigcontext_frame_this_id)
13666 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13667 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13668 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13669 (sparcnbsd_get_longjmp_target_32,
13670 sparcnbsd_get_longjmp_target_64): Remove functions.
13671 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13672 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13673 sparcnbsd_init_elf): Remove.
13674 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13675 (sparcnbsd_elf_init_abi): New functions.
13676 (_initialize_sparcnbsd_tdep): New prototype.
13677 (_initialize_sparnbsd_tdep): Update.
13678 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13679 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13680 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13681 * config/sparc/linux.mh: Update comment.
13682 (XM_FILE, HOST_IPC): Remove variables.
13683 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13684 sparc-linux-nat.o.
13685 * config/sparc/linux.mt: Update comment.
13686 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13687 * config/sparc/nbsd.mt: Reformat.
13688 * config/sparc/nbsd64.mh: Update comment.
13689 (NATDEPFILES): Add sparc-nat.o.
13690 * config/sparc/nbsd64.mt: Update comment.
13691 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13692 (TM_FILE): Set to tm-nbsd.h.
13693 * config/sparc/nbsdelf.mh: Update comment.
13694 (NATDEPFILES): Add sparc-nat.o.
13695 (XM_FILE): Delete.
13696 * config/sparc/nbsdaout.mh: Update comment.
13697 (NATDEPFILES): Add sparc-nat.o
13698 (XM_FILE): Delete.
13699 * config/sparc/nm-linux.h: Update copyright year. Don't include
13700 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13701 inclusion.
13702 (KERNEL_U_SIZE): Remove define.
13703 (kernel_u_size): Remove prototype.
13704 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13705 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13706 "regcache.h".
13707 (CHILD_PREPARE_TO_STORE): Remove define.
13708 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13709 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13710 sparcnbsd-nat.c: Rewrite files.
13711 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13712 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13713 sparcnbsd-tdep.h: Remove files.
13714 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13715 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13716 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13717 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13718 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13719 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13720 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13721 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13722 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13723 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13724 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13725 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13726 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13727 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13728 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13729 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13730 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13731 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13732 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13733
13734 2004-01-02 Andrew Cagney <cagney@redhat.com>
13735
13736 From 2003-12-18 Kazuhiro Inaoka:
13737 * configure.host: Add m32r-linux target.
13738
13739 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13740
13741 * top.c (print_gdb_version): Update year to 2004.
13742
13743 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13744
13745 * MAINTAINERS: Add myself to the write-after-approval category.
13746
13747 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13748
13749 From Bernardo Innocenti <bernie@develer.com>:
13750 * configure.tgt: Add uClinux target.
13751
13752 2004-01-02 Andrew Cagney <cagney@redhat.com>
13753
13754 * utils.c (do_my_cleanups): Make static, add forward declaration.
13755 * defs.h (do_my_cleanups): Delete declaration.
13756
13757 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13758
13759 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13760 bfd/ChangeLog-0203.
13761
13762 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13763
13764 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13765 in <machine/reg.h>.
13766 * configure, config.in: Regenerate.
13767
13768 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13769 tui/ChangeLog-1998-2003.
13770 \f
13771 Local Variables:
13772 mode: change-log
13773 left-margin: 8
13774 fill-column: 74
13775 version-control: never
13776 End:
This page took 0.32129 seconds and 4 git commands to generate.