2004-11-05 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f059bf6f
AC
12004-11-05 Andrew Cagney <cagney@gnu.org>
2
3 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
4 CFI and the init_reg method leave the register unspecified.
5 Include the register name in the "Incomplete CFI data" complaint.
6 Supress leading zeros in the address.
7
1234d960
MK
82004-11-05 Mark Kettenis <kettenis@gnu.org>
9
10 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
11 skipping a personality routine in a CIE augmentation.
12
d75e3c94
JJ
132004-11-05 Jeff Johnston <jjohnstn@redhat.com>
14
15 * defs.h (fatal, vfatal): New function prototypes.
16 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
17 via catch_errors.
18 (backtrace_command): Change to call backtrace_command_stub via
19 catch_errors instead of calling backtrace_command_1 directly.
20 (backtrace_full_command): Ditto.
21 * utils.c (error_stream_1): New static function.
22 (verror): Change to call error_stream_1 instead of error_stream.
23 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
24 (vfatal, fatal): New functions.
25
98f276a0
AC
262004-11-05 Andrew Cagney <cagney@gnu.org>
27
28 * stack.c (parse_frame_specification_1): Clear selected_frame_p
29 when not using selected frame.
30
f724bf08
MK
312004-11-05 Mark Kettenis <kettenis@jive.nl>
32
33 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
34 personality routine in a CIE augmentation.
35
c789492a
FL
362004-11-05 Felix Lee <felix+log1@specifixinc.com>
37
38 * stack.c (set_current_sal_from_frame): New function.
39 (print_args_stub): Use it.
40 (print_frame_info): Don't set sal here.
41
a81b10ae
MK
422004-11-04 Mark Kettenis <kettenis@gnu.org>
43
44 * dwarf2-frame.c (read_encoded_value): Change type of third
45 argument to `unsigned char *'. Add support for LEB128 encodings.
46
ad766c0a
JB
472004-11-04 Jim Blandy <jimb@redhat.com>
48
49 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
50 prevent cross-objfile references.
51 (make_cv_type): Doc fix. Don't create cross-objfile references,
52 even for stub types.
53 (replace_type): Add assertion to prevent cross-objfile references.
54 (check_typedef): Never resolve a stub type by copying over a type
55 from another file.
56
c46b0409 572004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 58
c46b0409
KI
59 * Makefile.in (m32r-tdep.o): Update dependencies.
60 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
61 ABI-specific overrides.
62
9f0b0322 632004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 64
9f0b0322
KI
65 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
66 unnecessary parallel execution bit.
67 (m32r_memory_remove_breakpoint): Ditto.
68 (m32r_breakpoint_from_pc): Update.
69
d5c27f81
RC
702004-11-03 Randolph Chung <tausq@debian.org>
71
72 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 73 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
74 (hppa_frame_this_id): Likewise.
75
4577593c
AC
762004-11-03 Andrew Cagney <cagney@gnu.org>
77
78 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
79 packet, obsolete configurations, end-of-life deprecated_registers.
80
b04de778
MK
812004-11-02 Mark Kettenis <kettenis@gnu.org>
82
83 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
84 encodings as well as unsigned encodings.
85
9f2feefc
AC
862004-11-02 Andrew Cagney <cagney@gnu.org>
87
88 * value.h (COERCE_VARYING_ARRAY): Delete.
89 * valops.c (value_cast, value_slice): Delete use.
90 * valarith.c (value_subscript, value_concat): Delete use.
91
117ea3cf
PH
922004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
93
94 * NEWS: GDB understands GNAT Ada.
95
0bbc026e
JM
962004-11-01 Joseph S. Myers <joseph@codesourcery.com>
97
98 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
99 (amd64-sol2-tdep.o): Add dependencies.
100 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
101 config/i386/sol2-64.mt: New files.
102 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
103 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
104 (supply_gregset): Correct order of arguments to
105 amd64_supply_native_gregset.
106 (fill_gregset): Correct order of arguments to
107 amd64_collect_native_gregset.
108 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
109 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
110 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
111 for definition of NEW_PROC_API.
112 * configure: Regenerate.
113
3d38a0a5
JM
1142004-11-01 Joseph S. Myers <joseph@codesourcery.com>
115
116 * MAINTAINERS (Write After Approval): Add myself.
117
f81cd1cf
AC
1182004-11-01 Andrew Cagney <cagney@gnu.org>
119
120 * configure.tgt: Mark d10v-*-* as obsolete.
121 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
122
f4e88c8e
PH
1232004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
124
125 * values.c (modify_field): Correct handling of bit-fields that
126 don't fit in 32 bits. Use unsigned operations throughout and
127 simplify the code a bit. Document preconditions.
128
84674fe1
AC
1292004-10-31 Andrew Cagney <cagney@gnu.org>
130
96693b3a
AC
131 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
132 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
133 (in_plt_section): Delete.
134
6f296f8f
AC
135 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
136 (mips_gdbarch_init): Do not set same.
137
618501c0
AC
138 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
139 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
140
b22e8f02
AC
141 * gdbarch.sh (in_solib_call_trampoline): Delete.
142 * gdbarch.h, gdbarch.c: Re-generate.
143
84674fe1
AC
144 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
145 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
146 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
147 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
148 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
149
c6d1029f
MK
1502004-10-31 Mark Kettenis <kettenis@gnu.org>
151
152 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
153 (mipsnbsd_fetch_inferior_registers): Rename from
154 fetch_inferior_registers. Make static.
155 (mipsnbsd_store_inferior_registers): Rename from
156 store_inferior_registers. Make static.
157 (_initialize_mipsnbsd_nat): New function and prototype.
158 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
159 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
160 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
161 inf-ptrace.o.
162
bd9ca83f
AC
1632004-10-31 Andrew Cagney <cagney@gnu.org>
164
19d718a3
AC
165 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
166 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
167 delete corresponding unused function.
168 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
169 in_solib_call_trampoline.
170 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
171 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
172 * config/mips/tm-nbsd.h: Ditto.
173 * config/arm/tm-linux.h: Ditto.
174 * config/mips/tm-linux.h: Ditto.
175
e8ce19c0
AC
176 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
177 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
178 in_solib_call_trampoline, delete corresponding unused function.
179 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
180 (vaxnbsd_aout_init_abi): Ditto.
181 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
182 (sparc32nbsd_aout_init_abi): Ditto.
183 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
184 (ppc_linux_init_abi): Ditto.
185 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
186 (ns32knbsd_init_abi_aout): Ditto.
187 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
188 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
189 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
190 (m68kbsd_aout_init_abi): Ditto.
191 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
192 (i386_cygwin_init_abi): Ditto.
193 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
194 (i386bsd_init_abi): Ditto.
195
af380d61
AC
196 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
197 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
198 isn't used by this architecture.
199 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
200 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
201 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
202 * s390-tdep.c (s390_gdbarch_init): Ditto.
203 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
204 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
205 * i386-tdep.c (i386_svr4_init_abi): Ditto.
206 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
207 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
208 * amd64-tdep.c (amd64_init_abi): Ditto.
209
0528d9f7
AC
210 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
211 in_solib_call_trampoline to its default value of
212 generic_in_solib_call_trampoline.
213 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
214 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
215 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
216 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
217 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
218 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
219
f9f9eacb
AC
220 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
221
a4ffd1e7
AC
222 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
223
82e34d2f
AC
224 * config/mips/tm-mips.h: Delete file.
225 * remote-mips.c: Delete tm-mips.h from comment.
226 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
227 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
228 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
229 * config/mips/tm-linux.h: Don't include tm-mips.h.
230 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
231 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
232 * config/mips/tm-wince.h: Don't include.
233
75dec9cf
AC
234 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
235 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
236 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
237 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
238
bd9ca83f
AC
239 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
240 * mdebugread.c (ecoff_relocate_efi): Delete function.
241 * objfiles.c (objfile_relocate): Delete #ifdef
242 MDEBUG_EFI_SYMBOL_NAME code.
243
3352ef37
AC
2442004-10-31 Orjan Friberg <organ.friberg@axis.com>
245 Andrew Cagney <cagney@gnu.org>
246
247 * gdbarch.sh (single_step_through_delay): Add.
248 * gdbarch.h, gdbarch.c: Re-generate.
249 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
250 (mips_step_skips_delay): Delete.
251 * mips-tdep.c (mips_single_step_through_delay): Replace
252 mips_step_skips_delay.
253 (mips_gdbarch_init): Set single_step_through_delay.
254 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
255
2440b685
MK
2562004-10-31 Mark Kettenis <kettenis@gnu.org>
257
258 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
259 from TRAMP_FRAME frame type.
260
56a2fed5
AC
2612004-10-31 Andrew Cagney <cagney@gnu.org>
262
9b792b1d
AC
263 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
264
0a5e8d98
AC
265 * mips-tdep.c (mips_ignore_helper): Delete.
266 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
267 * infrun.c (handle_inferior_event): Delete #ifdef
268 DEPRECATED_IGNORE_HELPER_CALL code.
269
56a2fed5
AC
270 * config/mips/tm-mips.h (RA_REGNUM): Delete.
271
f69c55b2
MK
2722004-10-31 Mark Kettenis <kettenis@gnu.org>
273
274 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
275 (fill_fpregset): Do not compile for 64-bit systems.
276 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
277 * Makefile.in (i386-sol2-nat.o): Update dependencies.
278 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
279
d37cca3d
AC
2802004-10-30 Andrew Cagney <cagney@gnu.org>
281
36b8628e
AC
282 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
283 (struct mdebug_extra_func_info): Define.
284 * config/alpha/tm-alpha.h: Delete same.
285 * config/mips/tm-mips.h: Delete same.
286 * mdebugread.c: Delete same.
287 * Makefile.in: Update dependencies.
288 * mips-mdebug-tdep.c: Include "mdebugread.h".
289
5b123146
AC
290 * objfiles.c: Include "mdebugread.h".
291 * mdebugread.c: Include "mdebugread.h".
292 (ecoff_relocate_cfi): Delete.
293 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
294 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
295 * mdebugread.h (ecoff_relocate_efi): New file.
296 * Makefile.in: Update dependencies.
297
b9c3a7de
AC
298 * mips-tdep.c (struct frame_extra_info): Delete.
299 (temp_proc_desc): Delete.
300
f92761ec
AC
301 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
302 MIPS_EFI_SYMBOL_NAME.
303 (mips_extra_func_info_t, mips_extra_func_info): Delete.
304 (struct mdebug_extra_func_info): Replace struct
305 alpha_extra_func_info and alpha_extra_func_info_t.
306 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
307 MIPS_EFI_SYMBOL_NAME.
308 (struct mdebug_extra_func_info): Replace struct
309 alpha_extra_func_info and alpha_extra_func_info_t.
310 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
311 * mdebugread.c, alpha-mdebug-tdep.c:
312
0bb57b31
AC
313 Suggested by Mark Kettenis.
314 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
315 fields frame_adjust and high_addr.
316 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
317 (non_heuristic_proc_desc): Delete references.
318
a5c9623c
AC
319 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
320 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
321 * mips-tdep.c: Update.
322
607fc93c
AC
323 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
324 (MIPS_LAST_EMBED_REGNUM): Add.
325 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
326 (LAST_EMBED_REGNUM): Delete.
327 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
328
24e05951
AC
329 * config/mips/tm-mips.h (PS_REGNUM): Delete.
330 * mips-tdep.h (MIPS_PS_REGNUM): Add.
331 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
332 * mips-linux-nat.c: Update.
333
613e114f
AC
334 * mips-tdep.h: Add comments on registers.
335 (MIPS_UNUSED_REGNUM): Define.
336 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
337 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
338 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
339 * mips-linux-nat.c, remote-mips.c: Update.
340
d37cca3d
AC
341 * config/mips/tm-mips.h (t_insn): Delete.
342 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
343 Replace t_insn with ULONGEST.
344
ceb41096
MK
3452004-10-30 Mark Kettenis <kettenis@gnu.org>
346
d1180b0f
MK
347 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
348 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
349 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
350 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
351 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
352 (mipsnbsd_core_osabi_sniffer): New function.
353 (mipsnbsd_init_abi): Set regset_from_core_section.
354 (_initialize_mipsnbsd_tdep): Remove calls to
355 deprecated_add_core_fns.
356 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
357 (mipsnbsd_regset_from_core_section): New functions.
358 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
359 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
360
ceb41096
MK
361 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
362 Remove optimization for DEPRECATED_FP_REGNUM.
363
ec4045ea
AC
3642004-10-30 Andrew Cagney <cagney@gnu.org>
365
cd65c8f6
AC
366 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
367 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
368 (alpha_setup_arbitrary_frame): Delete.
369 * mips-tdep.c (setup_arbitrary_frame): Delete.
370 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
371 (setup_arbitrary_frame): Delete.
372 * stack.c (parse_frame_specification_1): When specified, call
373 create_new_frame with two parameters. Delete #ifdef
374 SETUP_ARBITRARY_FRAME.
375
95ac2dcf
AC
376 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
377 (MIPS_INSTLEN): Delete.
378 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
379 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
380 * remote-mips.c, mips-tdep.c: Update.
381
1a8da44d
AC
382 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
383 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
384 * mips-tdep.c (mips_mdebug_frame_cache)
385 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
386 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
387 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
388 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
389 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
390 (mips_gdbarch_init): Do not append mdebug sniffers.
391 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
392 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
393 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
394 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
395 * Makefile.in: Update dependencies.
396
e6bc2e8a
AC
397 * mips-tdep.h (mips_abi_regsize): Declare.
398 * mips-tdep.c (mips_abi_regsize): Make non-static.
399
ec4045ea
AC
400 * mips-tdep.c (gdb_print_insn_mips): Simplify.
401 (make_mips16_addr): Delete.
e6bc2e8a 402
6b16acab
MK
4032004-10-30 Mark Kettenis <kettenis@gnu.org>
404
405 * i386-sol2-nat.c: New file.
406 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
407 i386-sol2-tdep.c.
408 (i386-sol2-nat.o): Update dependencies.
409 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
410 i386-sol2-nat.o.
411
8b622e6a
AC
4122004-10-30 Andrew Cagney <cagney@gnu.org>
413
414 Total breakage identified by Joel Brobecker.
415 * mips-tdep.c (after_prologue): Delete.
416 (mips_skip_prologue): Use skip_prologue_using_sal.
417 (heuristic_proc_desc): Delete, unused.
418
772cf8be
MK
4192004-10-30 Mark Kettenis <kettenis@gnu.org>
420
421 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
422 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
423 Cleanup coding style.
424
9c8fdbfa
AC
4252004-10-30 Andrew Cagney <cagney@gnu.org>
426
0fe7e7c8
AC
427 * mips-tdep.h (mips_pc_is_mips16): Declare.
428 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
429 non-static. Update calls.
430
1b295c3d
AC
431 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
432 * command.h (add_setshow_enum_cmd): Declare.
433 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
434
6bcadd06
AC
435 * mips-tdep.c (_initialize_mips_tdep): Use
436 add_setshow_zinteger_cmd.
437
9c8fdbfa
AC
438 * mips-tdep.c (mips_eabi_extract_return_value)
439 (mips_o64_extract_return_value, mips_o64_store_return_value)
440 (return_value_location, mips_eabi_reg_struct_has_addr)
441 (mips_eabi_use_struct_convention)
442 (mips_eabi_store_return_value): Delete.
443 (mips_eabi_store_return_value): New function.
444 (mips_eabi_return_value): New function.
445 (mips_gdbarch_init): For O64 and EABI, delete
446 extract_return_value, store_return_value, use_struct_convention
447 and reg_struct_has_addr, add return_value.
448
1d93fe1a
AC
449 * mips-tdep.c (read_signed_register): Use
450 regcache_cooked_read_signed.
451
303d2914
MK
4522004-10-30 Mark Kettenis <kettenis@gnu.org>
453
454 * mipsread.c: Cleanup coding style.
455 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
456 (mipscoff_symfile_finish): Remove prototypes.
457
4582004-10-29 Mark Kettenis <kettenis@gnu.org>
459
460 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
461 (mips_mdebug_frame_cache, mips16_scan_prologue)
462 (mips32_scan_prologue, mips_stub_frame_cache)
463 (heuristic_proc_start, heuristic_proc_desc)
464 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
465 (mips_n32n64_return_value, mips_o32_push_dummy_call)
466 (mips_o32_return_value, mips_o64_push_dummy_call)
467 (mips_step_skips_delay, mips_skip_trampoline_code)
468 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
469 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
470 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
471 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
472 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
473 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
474 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
475 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
476 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
477 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
478 ZERO_REGNUM.
479 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
480 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
481 ZERO_REGNUM.
482 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
483 A0_REGNUM.
484 * mipsnbsd-nat.c: Include "mips-tdep.h".
485 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
486 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
487
1c8831c5
AC
4882004-10-29 Andrew Cagney <cagney@gnu.org>
489
490 * stack.c (parse_frame_specification_1): New function based on
491 parse_frame_specification. Add message and selected_frame_p
492 paramters. Truely always return non-NULL.
493 (parse_frame_specification): Call parse_frame_specification_1.
494 (frame_info): Update. Eliminate target_has_stack check.
495 (select_frame_command): Update.
496
b04f3ab4
AC
4972004-10-29 Andrew Cagney <cagney@gnu.org>
498
499 * frame.h (get_selected_frame): Add message parameter.
500 * frame.c (get_selected_frame): Add and use message parameter.
501 * stack.c (current_frame_command, return_command, locals_info)
502 (catch_info, args_info, up_silently_base, down_silently_base): Use
503 get_selected_frame with an explicit message.
504 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
505 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
506 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
507 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
508 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
509 * breakpoint.c: Update.
510
5112004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
512
513 * trad-frame.c (trad_frame_get_prev_register): Use
514 frame_unwind_register instead of frame_register_unwind, do not
515 recurse the register's location.
516 * xstormy16-tdep.c (xstormy16_frame_prev_register):
517 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
518 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
519 * sh-tdep.c (sh_frame_prev_register): Ditto.
520 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
521 * i386-tdep.c (i386_frame_prev_register): Ditto.
522 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
523 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
524
7a952542
MK
5252004-10-28 Mark Kettenis <kettenis@jive.nl>
526
c18c06be
MK
527 * proc-events.c: Fix several coding-style issues. Consistently
528 use #ifdef instead of #if defined().
529 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
530 ARRAY_SIZE.
531 (_initialize_proc_events): New prototype.
532
7a952542
MK
533 * proc-why.c: Fix several coding-style issues.
534 (proc_prettyfprint_why): Use ARRAY_SIZE.
535
fcad0fa4
JB
5362004-10-27 Jim Blandy <jimb@redhat.com>
537
538 * remote.c (fetch_register_using_p): Construct 'p' packet in a
539 manner independent of the host byte order.
540
c163184f
MK
5412004-10-27 Mark Kettenis <kettenis@gnu.org>
542
543 * mips-tdep.c (id_delayed): Remove prototype.
544
9c46b6f0
MK
5452004-10-26 Mark Kettenis <kettenis@gnu.org>
546
547 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
548 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
549 to enum with register numbers.
550 (enum mips_insn_size): New enum.
551
0d0266c6
AC
5522004-10-26 Andrew Cagney <cagney@gnu.org>
553
e7d6a6d2
AC
554 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
555 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
556 (mips_gdbarch_init): Update.
557 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
558
c5115f39
AC
559 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
560 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
561 IN_SOLIB_RETURN_TRAMPOLINE.
562 * mips-tdep.c (mips_dump_tdep): Do not print
563 IN_SOLIB_RETURN_TRAMPOLINE.
564 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
565 (mips_gdbarch_init): Update.
566
0d0266c6
AC
567 * mips-tdep.h (mips_software_single_step): Move to here ...
568 * config/mips/tm-mips.h: ... from here.
569 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
570 (SOFTWARE_SINGLE_STEP): Delete.
571 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
572
156a53ca
AC
5732004-10-25 Andrew Cagney <cagney@gnu.org>
574
575 * NEWS: Add Changes since GDB 6.3 section.
576
f27cf670
AS
5772004-10-23 Andreas Schwab <schwab@suse.de>
578
156a53ca
AC
579 * ada-lang.c (grow_vect): Return the new array instead of
580 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
581 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
582
121d8485
UW
5832004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
584
585 * s390-tdep.c (enum pv_boolean): Remove.
586 (pv_is_array_ref): Remove.
587 (s390_on_stack): Remove.
588 (S390_NUM_SPILL_SLOTS): Remove.
589 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
590 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
591 (s390_store): Track all stores of orginal incoming registers to the
592 stack constant offsets relative to the CFA, instead of only tracking
593 stores into specific spill slots.
594 (s390_load): Likewise.
595 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
596 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
597 defined as call-saved by the ABI.
598 (s390_push_dummy_call): Use bottom of dummy call argument save area
599 as return value, not the top. Do not store to the called function's
600 register save area.
601 (s390_unwind_dummy_id): Adapt accordingly.
602
0a6ddd08
AC
6032004-10-23 Andrew Cagney <cagney@gnu.org>
604
605 * objfiles.h (struct objfile): Rename obj_private to
606 deprecated_obj_private, sym_private to deprecated_sym_private, and
607 sym_stab_info to deprecated_sym_stab_info.
608 * gdb-stabs.h: Update.
609 * elfread.c: Update.
610 * dbxread.c: Update.
611 * coffread.c: Update.
612 * xcoffread.c: Update.
613 * symfile.c: Update.
614 * somread.c: Update.
615 * nlmread.c: Update.
616 * mdebugread.c: Update.
617 * hpread.c: Update.
618 * coffread.c: Update.
619
abc08782
MK
6202004-10-23 Mark Kettenis <kettenis@gnu.org>
621
622 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
623 * configure.host: Add mips64*-*-openbsd*.
624 * configure.tgt: Add mips64*-*-openbsd*.
625 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
626 mips64obsd-tdep.c.
627 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
628 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
629
fc062ac6
JB
6302004-10-21 Joel Brobecker <brobecker@gnat.com>
631
632 * symtab.c (symbol_search_name): Minor reformatting.
633
5bccb4d1
JB
6342004-10-20 Joel Brobecker <brobecker@gnat.com>
635
636 * symtab.h: Fix typo in comment.
637
a738430d
MK
6382004-10-19 Mark Kettenis <kettenis@gnu.org>
639
640 * dwarf2read.c (struct comp_unit_head): Fix coding style.
641 (dwarf_decode_line_header): Likewise.
642
f2cb65ca
MC
6432004-10-19 Michael Chastain <mec.gnu@mindspring.com>
644
645 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
646
09e55376
AC
6472004-10-19 Andrew Cagney <cagney@gnu.org>
648
649 GDB 6.3 branch created.
650 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
651
bc5f45f8
JB
6522004-10-15 Joel Brobecker <brobecker@gnat.com>
653
654 * dwarf2read.c (set_cu_language): Set language to Ada for
655 DW_LANG_Ada83 and DW_LANG_Ada95.
656
2941da8c
MC
6572004-10-15 Michael Chastain <mec.gnu@mindspring.com>
658
659 From Andreas Schwab <schwab@suse.de>:
660 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
661 for xmalloc and xrealloc.
662
34a17005
AC
6632004-10-15 Andrew Cagney <cagney@gnu.org>
664
665 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
666 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
667 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
668 Update dependencies.
669
714e53ab
PH
6702004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
671
672 * ada-lang.c (ada_lookup_symbol): Correct comment.
673 (ada_evaluate_subexp): Change error message for
674 OP_FUNCALL case so as not to indicate an internal error.
675
6762004-10-15 Joel Brobecker <brobecker@gnat.com>
677
678 Committed by Paul Hilfinger.
679 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
680 type sizes in XVE/XVU types, and emit a warning when that happens,
681 instead of rounding up the size of the resulting type.
682 Some minor reformatting.
683 (ada_is_aligner_type): Do not consider a type as an aligner type
684 if there is a corresponding XVS type as well.
685 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
686 have several levels of pointer indirection to the array.
687
6882004-10-15 Jerome Guitton <guitton@gnat.com>
689
690 Committed by Paul Hilfinger.
691 * ada-lang.c (check_size): New function.
692 (coerce_unspec_val_to_type): call check_size to make sure
693 that the object size is reasonable.
694 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
695 Implements the case when we get a reference when we evaluate
696 the expression of one of the bounds of the slice.
697 (ada_value_struct_elt): when a packed array field is
698 a reference, use ada_coerce_ref to dereference it; use
699 ada_value_ind only if it is a pointer.
700
29639122
JB
7012004-10-15 Joel Brobecker <brobecker@gnat.com>
702
703 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
704 a bit to avoid the necessity of an advance declaration. Remove
705 declaration.
706 (set_reg_offset): Move implemenation up.
707 (mips16_get_imm): Likewise.
708 (mips16_scan_prologue): Likewise.
709 (reset_saved_regs): Likewise.
710 (mips32_scan_prologue): Likewise.
711
a65bbe44
JB
7122004-10-14 Joel Brobecker <brobecker@gnat.com>
713
714 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
715 Remove sp as a parameter, compute it internally instead. Move
716 prologue scanning limit from heuristic_proc_desc to here.
717 (mips16_scan_prologue): Likewise.
718 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
719 by call to mips16_scan_prologue.
720 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
721 by call to mips32_scan_prologue.
722 (heuristic_proc_desc): Remove code that's no longer necessary.
723 Update calls to mips16_scan_prologue and mips32_scan_prologue.
724 (mips_skip_prologue): Update calls to mips16_scan_prologue
725 and mips32_scan_prologue.
726
1c645fec
JB
7272004-10-14 Joel Brobecker <brobecker@gnat.com>
728
729 * mips-tdep.c (mips16_scan_prologue): Merge code from
730 mips16_skip_prologue. Now return the address of the first
731 instruction past the function prologue.
732 (mips16_skip_prologue): Remove, no longer necessary.
733 (mips_skip_prologue): Replace call to mips16_skip_prologue
734 by call to mips16_scan_prologue.
735
98b4dd94
JB
7362004-10-14 Joel Brobecker <brobecker@gnat.com>
737
738 * mips-tdep.c (mips32_scan_prologue): Merge code from
739 mips32_skip_prologue. Now return the address of the first
740 instruction past the function prologue.
741 (mips32_skip_prologue): Remove. No longer necessary.
742 (mips16_skip_prologue): Add parameter end_pc instead of
743 computing it.
744 (mips_skip_prologue): Compute the upper limit for the
745 prologue scanning. Update call to mips16_skip_prologue.
746 Replace call to mips32_skip_prologue by call to
747 mips32_scan_prologue.
748
ad4c72d2
MK
7492004-10-14 Mark Kettenis <kettenis@gnu.org>
750
dfaf8edb
MK
751 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
752 NetBSD system call stubs that store %rp in the ERP slot of the
753 stack frame.
754
3e3a28f1
MK
755 * source.c: Always define O_BINARY to 0 if not defined already.
756 (openp): Unconditionally use O_BINARY.
757
ad4c72d2
MK
758 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
759 * event-top.c (gdb_readline2): Likewise.
760
52bd1401
OF
7612004-10-14 Orjan Friberg <orjanf@axis.com>
762
763 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
764 deprecated_add_core_fns which was removed by mistake.
765
e0e25c6c
KB
7662004-10-13 Kevin Buettner <kevinb@redhat.com>
767
768 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
769 references to deprecated_registers[] with equivalent code.
770
9f335945
KB
7712004-10-13 Kevin Buettner <kevinb@redhat.com>
772
773 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
774 ``deprecated_registers'' with equivalent code. Use gdb_assert()
775 instead of explicit test and print statement.
776
06c2338d
MK
7772004-10-12 Mark Kettenis <kettenis@gnu.org>
778
1b9445c2
MK
779 * sparc-nat.c: Include "inf-ptrace.h".
780 (sparc_target): New function.
781 * sparc-nat.h: Update copyright year.
782 (sparc_target): New prototype.
783 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
784 (_initialize_sparcnbsd_nat): Construct and add target vector.
785 * sparc64nbsd-nat.c: Include "target.h".
786 (_initialize_sparc64nbsd_nat): Construct and add target vector.
787 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
788 Update dependencies.
789 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
790 inftarg.o, add inf-ptrace.o.
791 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
792 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
793 (NAT_FILE): Set to nm-bsd.h.
794 (LOADLIBES): New variable.
795 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
796 infarg.o, add inf-ptrace.o.
797 * config/sparc/nm-nbsdaout.h: Remove file.
798 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
799 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
800 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
801
06c2338d
MK
802 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
803 "fopen-same.h". Update comment.
804
3303a276
MK
8052004-10-11 Mark Kettenis <kettenis@gnu.org>
806
807 * i386gnu-nat.c: Include "gdb_string.h".
808 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
809 registers when the floating-point state isn't initialized.
810 * Makefile.in (i386gnu-nat.o): Update dependencies.
811
04c663e3
DA
8122004-10-11 David Anderson <davea@sgi.com>
813
814 * regcache.c (regcache_raw_read): Comment was missing "to".
815 Extraneous ' removed.
816 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
817 comment now describes use.
818
a5f6c8f5
OF
8192004-10-11 Orjan Friberg <orjanf@axis.com>
820
821 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
822 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
823 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
824 (cris_sigtramp_frame_sniffer): New functions.
825 (cris_gdbarch_init): Hook in signal trampoline unwinder.
826 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
827 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
828 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
829 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
830 command.
831 (cris_version_update): Remove, replace with ...
832 (set_cris_version): New function.
833 (struct gdbarch_tdep, cris_mode, cris_mode_update)
834 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
835 (_initialize_cris_tdep): Remove CRIS mode command.
836 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
837 cris-fpless-backtrace command.
838 (cris_scan_prologue): Fix prologue scanning limit.
839 (cris_register_type): Update to reflect actual registers.
840 (cris_register_bytes_ok) Remove.
841 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
842 Remove set_gdbarch_deprecated_register_size,
843 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
844
77109804
AC
8452004-10-10 Andrew Cagney <cagney@gnu.org>
846
847 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
848 comment.
849
25652d4f
JB
8502004-10-10 Joel Brobecker <brobecker@gnat.com>
851
852 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
853
1e05a7bf
JB
8542004-10-10 Joel Brobecker <brobecker@gnat.com>
855
856 * mips-tdep.c (mips16_scan_prologue): Renames
857 mips16_heuristic_proc_desc. Update comment.
858 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
859 (heuristic_proc_desc): Update calls to the 2 functions above.
860
c68a4142
JB
8612004-10-10 Joel Brobecker <brobecker@gnat.com>
862
863 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
864 Update comments. Also immediately return empty cache when the start
865 address of our function could not be found.
866 (mips_insn32_frame_cache): Likewise.
867
0fce0821
JB
8682004-10-10 Joel Brobecker <brobecker@gnat.com>
869
870 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
871 (mips_insn16_frame_cache): Pass frame cache in call to
872 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
873 Remove code that became redundant as a consequence.
874 (mips32_heuristic_proc_desc): No longer compute a fake
875 procedure descriptor. Compute the full frame cache instead.
876 Some minor comment reformatting.
877
b672553e
JB
8782004-10-10 Jim Blandy <jimb@redhat.com>
879
880 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
881 reader, tracing bytecode stuff): Remove self.
882
9cc52bde
MK
8832004-10-10 Mark Kettenis <kettenis@gnu.org>
884
cc9784b6
MK
885 * sparc64-linux-tdep.c: Update copyright year. Don't include
886 "solib-svr4.h".
887 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
888 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
889 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
890
ee8aef23
MK
891 * sparc-linux-tdep.c: Update copyright year.
892 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
893 to struct frame_info *. Use safe_frame_unwind_memory instead of
894 deprecated_read_memory_nobpt.
895 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
896 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
897 changed signature of sparc_linux_sigtramp_start.
898 (sparc32_linux_pc_in_sigtramp): Remove function.
899 (sparc32_linux_sigtramp_p): New function.
900 (sparc32_linux_sigtramp_frame_sniffer): Use
901 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
902
bc73f8cc
MK
903 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
904 Remove function.
905 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
906
a2249542
MK
907 * ada-lang.c (lim_warning): Re-implement as a varargs function.
908 (decode_packed_array_type, value_subscript_packed)
909 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
910 argument in call to lim_warning.
911
9cc52bde
MK
912 * configure.in: Really disable the TUI if an enhanced curses
913 library isn't found.
914 * configure: Regenerate.
915
151fc45b
MK
9162004-10-09 Mark Kettenis <kettenis@gnu.org>
917
918 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
919 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
920 * config/i386/nm-nbsdaout.h: Remove file.
921 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
922 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
923 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
924 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
925 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
926 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
927 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
928 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
929 (ldd, ld_un, ld_2): Remove defines.
930 * config/i386/nm-obsd.h: Likewise.
931
375c0479
PH
9322004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
933
934 * ada-lex.l: Remove useless rule whose right-context clause
935 causes unreferenced static function warning for yyrealloc.
936 (ada_flex_use): Remove the artificial reference to yyrealloc.
937
c8e73a31
AC
9382004-10-08 Andrew Cagney <cagney@gnu.org>
939
940 * target.h (struct target_ops): Rename to_xfer_memory to
941 deprecated_xfer_memory.
942 * target.c: Update.
943 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
944 * wince.c: Update.
945 * win32-nat.c: Update.
946 * v850ice.c: Update.
947 * uw-thread.c: Update.
948 * thread-db.c: Update.
949 * sol-thread.c: Update.
950 * remote.c: Update.
951 * remote-vx.c: Update.
952 * remote-st.c: Update.
953 * remote-sim.c: Update.
954 * remote-sds.c: Update.
955 * remote-rdp.c: Update.
956 * remote-rdi.c: Update.
957 * remote-mips.c: Update.
958 * remote-m32r-sdi.c: Update.
959 * remote-e7000.c: Update.
960 * procfs.c: Update.
961 * ppc-bdm.c: Update.
962 * nto-procfs.c: Update.
963 * monitor.c: Update.
964 * linux-nat.c: Update.
965 * inftarg.c: Update.
966 * hpux-thread.c: Update.
967 * go32-nat.c: Update.
968 * gnu-nat.c: Update.
969 * exec.c: Update.
970 * corelow.c: Update.
971 * bsd-kvm.c: Update.
972 * aix-thread.c: Update.
973
aa869812
AC
9742004-10-08 Andrew Cagney <cagney@gnu.org>
975
976 * target.c (debug_target): Move to near start of file.
977 (target_stopped_data_address_p): Re-org logic, add casts.
978
8dcef9cf
MK
9792004-10-02 Mark Kettenis <kettenis@gnu.org>
980
981 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
982 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
983 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
984 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
985 New defines.
986
4aa7a7f5
JJ
9872004-10-08 Jeff Johnston <jjohnstn@redhat.com>
988
989 * target.h (to_stopped_data_address): Change prototype to
990 take a CORE_ADDR pointer and return an int.
991 * target.c (update_current_target): Change to_stopped_data_address
992 to match new prototype.
993 (debug_to_stopped_data_address): Change appropriately.
994 * breakpoint.c (bpstat_stop_status): Change call to
995 target_stopped_data_address to use new prototype.
996 * frv-tdep.c (frv_have_stopped_data_address): New function.
997 (frv_stopped_data_address): Change to new prototype and
998 functionality.
999 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1000 prototype and functionality.
1001 (ia64_stopped_by_watchpoint): New function.
1002 * i386-nat.c (i386_stopped_data_address): Change to new
1003 prototype and functionality.
1004 (i386_stopped_by_watchpoint): New function.
1005 * remote.c (remote_stopped_data_address): Change to new prototype
1006 and functionality.
1007 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1008 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1009 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1010 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1011 new i386_stopped_by_watchpoint function.
1012 (i386_stopped_by_watchpoint): New prototype.
1013 (i386_stoppped_data_address): Change to new prototype.
1014 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1015 new ia64_stopped_by_watchpoint function.
1016 (ia64_stopped_by_watchpoint): New prototype.
1017 (ia64_stopped_data_address): Ditto.
1018
61ee279c
PH
10192004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1020
1021 * ada-typeprint.c (ada_print_type): Use int_string for printing
1022 modulus of modular type.
1023 * ada-lang.h (ada_modulus): Change return type to unsigned.
1024 * ada-lang.c (ada_language_arch_info): Correct type of
1025 string_char_type.
1026 (ada_modulus): Return unsigned result.
1027 (ada_lookup_symbol): Remove user disambiguation and modify comment
1028 accordingly.
1029
10302004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1031
1032 Committed by Paul Hilfinger.
1033 * ada-lang.c (decode_packed_array): On big-endian targets,
1034 left-justify the value if it comes with a modular type.
1035
10362004-10-08 Joel Brobecker <brobecker@gnat.com>
1037
1038 Committed by Paul Hilfinger.
1039 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1040 (is_name_suffix): Add support for "___JM" suffixes.
1041 (ada_check_typedef): Renames ada_completed_type.
1042 Update all users of CHECK_TYPEDEF, check_typedef, and
1043 ada_complete_type to call ada_check_typedef.
1044 * ada-typeprint.c: Likewise.
1045 * ada-valprint.c: Likewise.
1046
b6c25a56
CV
10472004-10-08 Corinna Vinschen <vinschen@redhat.com>
1048
1049 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1050
83ca6a46
NR
10512004-10-08 Nick Roberts <nickrob@snap.net.nz>
1052
1053 * MAINTAINERS: Update e-mail address.
1054
1fd8cd20
DJ
10552004-10-07 Daniel Jacobowitz <dan@debian.org>
1056
1057 From Maciej W. Rozycki <macro@mips.com>:
1058 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1059 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1060
cea15572
KI
10612004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1062
1063 * m32r-tdep.c (decode_prologue): Support functions written
1064 in assembler language. Recognize trap instructions as the
1065 end of prologue.
1066 (m32r_frame_unwind_cache): Ditto.
1067 (m32r_skip_prologue): Extend search limit. Quit analyzing
1068 prologue if pc's location is not readable.
1069
23485554
PH
10702004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1071
1072 * Makefile.in (.l.c): Do conversions of names of alloc and free
1073 functions that are done for .y.c files, plus special one
1074 for yy_flex_realloc. Also, correct missing-file tests here.
1075 * ada-lex.l (malloc, free): Remove macros.
1076 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1077 xrealloc.
1078 (ada_flex_use): Dummy definition to remove warnings about unused
1079 functions.
1080 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1081 to suppress warning.
1082
c0409442
CV
10832004-10-06 Corinna Vinschen <vinschen@redhat.com>
1084
1085 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1086 RETURN_VALUE.
1087 (sh_return_value_fpu): Ditto for CPUs with FPU.
1088 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1089 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1090 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1091 RETURN_VALUE functions.
1092
9bed62d7
CV
10932004-10-06 Corinna Vinschen <vinschen@redhat.com>
1094
1095 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1096 (sh_pseudo_register_write): Ditto.
1097
03131d99
CV
10982004-10-06 Corinna Vinschen <vinschen@redhat.com>
1099
1100 * sh-tdep.c (IS_MACL_STS): New define.
1101 (IS_MOVI20): Ditto.
1102 (IS_MACL_LDS): Ditto.
1103 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1104 instructions in prologue.
1105 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1106 instructions in epilogue.
1107
da962468
CV
11082004-10-06 Corinna Vinschen <vinschen@redhat.com>
1109
1110 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1111 (sh_sh_register_name): Add eight empty register names.
1112 (sh_sh3_register_name): Ditto.
1113 (sh_sh3e_register_name): Ditto.
1114 (sh_sh2e_register_name): Ditto.
1115 (sh_sh2a_register_name): New function, defining SH2A register set.
1116 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1117 in nofpu case.
1118 (sh_sh_dsp_register_name): Add eight empty register names.
1119 (sh_sh3_dsp_register_name): Ditto.
1120 (sh_sh4_register_name): Ditto.
1121 (sh_sh4_nofpu_register_name): Ditto.
1122 (sh_sh4al_dsp_register_name): Ditto.
1123 (sh2a_show_regs): New function.
1124 (sh2a_nofpu_show_regs): New function.
1125 (sh_sh2a_register_type): New function.
1126 (do_bank_register_info): New function.
1127 (sh_print_pseudo_register): Call do_bank_register_info.
1128 Call sh_print_pseudo_register for valid "bank" register.
1129 (sh_sh2a_register_sim_regno): New function.
1130 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1131 Increment pseudo register count by one for all sh variants with
1132 pseudo registers to accomodate pseudo bank register.
1133 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1134 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1135 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1136 Increment pseudo register numbers.
1137
1326e61b
CV
11382004-10-06 Corinna Vinschen <vinschen@redhat.com>
1139
1140 * dwarf2read.c (read_subroutine_type): Call make_function_type
1141 instead of lookup_function_type.
1142
146c42e3
JB
11432004-10-05 Jim Blandy <jimb@redhat.com>
1144
1145 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1146 (Previous change missed some uses.)
1147
1df84f13
AC
11482004-10-05 Andrew Cagney <cagney@gnu.org>
1149
1150 * target.h (deprecated_child_ops): Rename child_ops.
1151 * wince.c: Update copyright. Rename child_ops.
1152 * win32-nat.c: Rename child_ops.
1153 * target.c: Rename child_ops.
1154 * rs6000-nat.c: Rename child_ops.
1155 * linux-nat.c: Rename child_ops.
1156 * infttrace.c: Rename child_ops.
1157 * inftarg.c: Rename child_ops.
1158 * infptrace.c: Rename child_ops.
1159 * hppah-nat.c: Update copyright. Rename child_ops.
1160 * hpux-thread.c: Update copyright. Rename child_ops.
1161
21e3b9b9
DJ
11622004-10-05 Daniel Jacobowitz <dan@debian.org>
1163
1164 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1165
de83afe7
AC
11662004-10-05 Andrew Cagney <cagney@gnu.org>
1167
1168 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1169
10b3939b
DJ
11702004-10-05 Daniel Jacobowitz <dan@debian.org>
1171
1172 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1173 (die_ref_table): Remove.
1174 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1175 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1176 the usage of this type.
1177 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1178 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1179 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1180 (dwarf2_create_include_psymtab): Update comment.
1181 (find_partial_die): Remove third argument. Remove unreachable call
1182 to error ().
1183 (dwarf2_find_containing_comp_unit): Update comments. Change one
1184 assertion to an error. Remove an unreachable error.
1185 (dwarf2_find_comp_unit): Update comments.
1186 (type_at_offset): Remove dead code.
1187 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1188 (store_in_ref_table): Add CU argument.
1189 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1190 inter-compilation-unit references.
1191 (load_full_comp_unit, process_full_comp_unit): New functions, based
1192 on psymtab_to_symtab_1.
1193 (psymtab_to_symtab_1): Use them.
1194 (dwarf2_add_dependence): New function.
1195 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1196 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1197 (partial_die_parent_scope, guess_structure_name): Update for changes
1198 to find_partial_die.
1199 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1200 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1201 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1202 (read_die_and_children): Update call to store_in_ref_table.
1203 (do_free_die_list_cleanup): Remove.
1204 (fixup_partial_die): Update for changes to find_partial_die.
1205 (read_full_die): Handle queueing absolute references.
1206 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1207 (dwarf2_attr, die_specification, die_type)
1208 (die_containing_type, dwarf2_extension): Update calls to
1209 follow_die_ref.
1210 (dump_die): Update DW_FORM_ref* handling.
1211 (dwarf2_get_ref_die_offset): Likewise.
1212 (free_one_comp_unit): Release the dies list.
1213 (dwarf2_mark_helper): New function.
1214 (dwarf2_mark): Use it.
1215
998bdd68
MK
12162004-10-05 Mark Kettenis <kettenis@jive.nl>
1217
1218 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1219 when writing to memory.
1220
14588880
KI
12212004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1222
1223 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1224 (m32r_extract_struct_value_address): Delete function.
1225 (m32r_return_value): New function.
1226 (m32r_gdbarch_init): Instead of store_return_value,
1227 extract_return_value, deprecated_extract_struct_value_address
1228 and deprecated_use_struct_convention, set return_value.
1229
dd5e6932
DJ
12302004-10-03 Daniel Jacobowitz <dan@debian.org>
1231
1232 * dwarf2read.c (read_subrange_type): Add comment for variable
1233 sized arrays.
1234
7dc1ef8d
PH
12352004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1236
1237 * Makefile.in (.l.c): Modify rule for compatibility with recent
1238 versions of flex, and remove most command-line options.
1239 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1240 options.
1241
1f8173e6
PH
12422004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1243
1244 Turn on initial Ada support (mainly expression evaluation).
1245
1246 * Makefile.in (SFILES): Remove ada-tasks.c.
1247 (HFILES_NO_SRCDIR): Add ada-lang.h.
1248 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1249 (YYOBJ): Add ada-exp.o.
1250 (rule .l.c): Generalize to not mention ada.
1251 * symtab.c: Include ada-lang.h.
1252 (symbol_natural_name, symbol_demangled_name)
1253 (symbol_search_name): Add Ada case.
1254
cb85a953
AC
12552004-10-01 Andrew Cagney <cagney@gnu.org>
1256
3f3db248
AC
1257 * Makefile.in (COMMON_OBS): Add inf-child.o.
1258 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1259 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1260 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1261 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1262 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1263 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1264 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1265 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1266 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1267 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1268 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1269 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1270 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1271
cb85a953
AC
1272 * target.c (xfer_using_stratum): Change return type to LONGEST.
1273 On each iteration offset, readbuf and writebuf.
1274 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1275 partial_length, and read/modify/write predicate, update comments.
1276 Pass buffer.word to ptrace write.
1277
963a6417
PH
12782004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1279
1280 * symfile.c (init_filename_language_table): Add extensions for
1281 Ada.
1282 * defs.h (enum language): Add language_ada.
1283 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1284 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1285 (add_symbols_from_enclosing_procs): Make a no-op for now.
1286 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1287 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1288 (find_line_in_linetable, find_next_line_in_linetable)
1289 (read_all_symtabs, is_plausible_func_for_line)
1290 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1291 (is_runtime_sym_defined, check_size): Remove declaration.
1292 (function_name_from_pc, ada_translate_error_message)
1293 (ada_lookup_minimal_symbol): Remove definition.
1294 (ada_add_block_symbols): Remove useless label.
1295 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1296 useless declaration.
1297 (ada_is_exception_sym): Likewise.
1298
9b32d526
KI
12992004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1300
1301 Add m32r-linux support.
1302 * configure.tgt: Add m32r*-*-linux*.
1303 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1304 and m32r-linux-tdep.c.
1305 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1306 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1307 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1308 m32r-linux-tdep.c.
1309 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1310 config/m32r/linux.mh, config/m32r/linux.mt,
1311 config/m32r/nm-linux.h: New files.
1312
2de118d3
JB
13132004-09-30 Joel Brobecker <brobecker@gnat.com>
1314
1315 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1316 (mips32_fetch_instruction): Remove, unused.
1317
a9fe69d1
JB
13182004-09-30 Joel Brobecker <brobecker@gnat.com>
1319
1320 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1321 conditions that will always be true.
1322
bc8ffc12
MK
13232004-09-30 Mark Kettenis <kettenis@gnu.org>
1324
ba0cd111
MK
1325 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1326 (vaxbsd_fetch_inferior_registers): Rename from
1327 fetch_inferior_registers. Make static.
1328 (vaxbsd_store_inferior_registers): Rename from
1329 store_inferior_registers. Make static.
1330 (_initialize_vaxbsd_nat): Construct and add target vector.
1331 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1332 inftarg.o. Add inf-child.o and inf-ptrace.o.
1333 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1334 inftarg.o. Add inf-child.o and inf-ptrace.o.
1335 (NAT_FILE): Remove.
1336 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1337 inftarg.o. Add inf-child.o and inf-ptrace.o.
1338 (NAT_FILE): Remove.
1339 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1340
bc8ffc12
MK
1341 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1342 (m88kbsd_fetch_inferior_registers): Rename from
1343 fetch_inferior_registers. Make static.
1344 (m88kbsd_store_inferior_registers): Rename from
1345 store_inferior_registers. Make static.
1346 (_initialize_m88kbsd_nat): New prototype and function.
1347 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1348 inftarg.o. Add inf-child.o and inf-ptrace.o.
1349 (NAT_FILE): Remove.
1350 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1351
27394598
AC
13522004-09-30 Andrew Cagney <cagney@gnu.org>
1353
1354 * target.c (target_xfer_partial): New function.
1355 (target_read_memory_partial, target_write_memory_partial)
1356 (default_xfer_partial, target_read_partial, target_write_partial)
1357 (xfer_using_stratum): Use.
1358 (debug_to_xfer_partial): Delete function.
1359 (setup_target_debug): Do not override to_xfer_partial.
1360
74a4fe32
MK
13612004-09-30 Mark Kettenis <kettenis@chello.nl>
1362
1363 * fork-child.c: Update copyright year. Fix coding style.
1364
982526a1
MK
13652004-09-29 Mark Kettenis <kettenis@gnu.org>
1366
1367 * defs.h (msavestring, mstrsave): Remove prototypes.
1368 * utils.c (msavestring, mstrsave): Remove functions.
1369 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1370 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1371 of mstrsave.
1372 * source.c (find_and_open_source): Use xstrdup instead of
1373 mstrsave.
1374
b8eb5af0
AC
13752004-09-30 Andrew Cagney <cagney@gnu.org>
1376
0779438d
AC
1377 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1378 (inf_ptrace_xfer_memory): Delete.
1379 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1380 (target_read_memory, target_write_memory): Use xfer_using_stratum
1381 when target_xfer_partial_p.
1382 (debug_target): Move to start of file.
1383 (target_read_memory_partial, target_write_memory_partial): Use
1384 to_xfer_partial when target_xfer_partial_p.
1385
f929a579
AC
1386 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1387 inf_ptrace_xfer_memory with equivalent code.
1388 * inftarg.c (child_xfer_partial): When performing a write, pass
1389 writebuf to child_xfer_memory.
1390
b8eb5af0
AC
1391 * target.c (target_read_string): Use target_read_memory instead of
1392 target_xfer_memory.
1393
ee21b650
AC
13942004-09-29 Andrew Cagney <cagney@gnu.org>
1395
d3e05d0d
AC
1396 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1397 the address of status.
1398
ee21b650
AC
1399 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1400 (kill_inferior): Inline ptrace_wait call.
1401 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1402 * inftarg.c (child_wait): Inline ptrace_wait call.
1403
a182eed6
AC
1404 * target.h (struct target_ops): Delete field to_post_wait.
1405 (target_post_wait): Delete macro.
1406 (child_post_wait): Delete declaration.
1407 * target.c (update_current_target, update_current_target)
1408 (debug_to_post_wait, setup_target_debug): Delete functions and
1409 references.
1410 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1411 * inftarg.c (child_post_wait): Delete.
1412 (init_child_ops): Do not set to_post_wait.
1413 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1414 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1415 * inf-child.c (inf_child_post_wait): Delete.
1416 (inf_child_target): Do not set to_post_wait.
1417 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1418 (inf_ptrace_target): Do not set to_post_wait.
1419
ba0c540b
AC
1420 * wince.c (child_ops): Delete.
1421 * win32-nat.c (child_ops): Delete.
1422
81977402
AC
1423 * inftarg.c (inftarg_set_find_memory_regions)
1424 (inftarg_set_make_corefile_notes): Delete functions.
1425 (_initialize_linux_nat): Inline calls.
1426
5ac10fd1
AC
1427 * target.h (child_ops): Declare.
1428 * inftarg.c (child_ops): Move from here ...
1429 * target.c (child_ops): ... to here.
1430 * wince.c (child_ops): Delete extern declaration.
1431 * win32-nat.c (child_ops): Delete extern declaration.
1432 * linux-nat.c (child_ops): Delete extern declaration.
1433 * hpux-thread.c (child_ops): Delete extern declaration.
1434
663408c2 14352004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1436
1437 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1438
0dad8a66
MK
14392004-09-28 Mark Kettenis <kettenis@gnu.org>
1440
1441 * configure.in: Only set host_makefile_frag when building a native
1442 debugger.
1443 * configure: Regenerate.
e8d74ed3
MK
1444
1445 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1446 for OpenBSD ELF.
1447
dba24537
AC
14482004-09-28 Andrew Cagney <cagney@gnu.org>
1449
e979516b
AC
1450 Problem identified by Paul Hilfinger.
1451 * Makefile.in (ada_lex_c): Define.
1452 (ada-lex.o): Delete rule.
1453
dba24537
AC
1454 * linux-proc.c: Delete file.
1455 * Makefile.in: Update.
1456 * config/sparc/linux64.mh (NATDEPFILES):
1457 * config/sparc/linux.mh (NATDEPFILES): Update.
1458 * config/s390/s390.mh (NATDEPFILES): Update.
1459 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1460 * config/powerpc/linux.mh (NATDEPFILES): Update.
1461 * config/pa/linux.mh (NATDEPFILES): Update.
1462 * config/mips/linux.mh (NATDEPFILES): Update.
1463 * config/m68k/linux.mh (NATDEPFILES): Update.
1464 * config/ia64/linux.mh (NATDEPFILES): Update.
1465 * config/i386/linux64.mh (NATDEPFILES): Update.
1466 * config/i386/linux.mh (NATDEPFILES): Update.
1467 * config/arm/linux.mh (NATDEPFILES): Update.
1468 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1469 * linux-nat.c: Update copyright. Include <sys/param.h>,
1470 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1471 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1472 (O_LARGEFILE): Possibly define.
1473 (_initialize_linux_nat, linux_proc_pending_signals)
1474 (add_line_to_sigset, linux_proc_xfer_memory)
1475 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1476 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1477 (struct linux_corefile_thread_data)
1478 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1479 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1480
d6b0e80f
AC
14812004-09-16 Andrew Cagney <cagney@gnu.org>
1482
1483 * lin-lwp.c: Delete file.
1484 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1485 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1486 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1487 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1488 (linux_nat_attach, detach_callback, linux_nat_detach)
1489 (resume_callback, resume_clear_callback, linux_nat_resume)
1490 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1491 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1492 (status_callback, running_callback, count_events_callback)
1493 (select_singlestep_lwp_callback, select_event_lwp_callback)
1494 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1495 (child_wait, stop_and_resume_callback, linux_nat_wait)
1496 (kill_callback, kill_wait_callback, linux_nat_kill)
1497 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1498 (linux_nat_xfer_memory, linux_nat_thread_alive)
1499 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1500 (_initialize_linux_nat): New functions.
1501 * Makefile.in: Update all dependencies.
1502 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1503 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1504 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1505 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1506 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1507 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1508 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1509 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1510 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1511 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1512 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1513 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1514 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1515
5a174d79
MK
15162004-09-27 Mark Kettenis <kettenis@gnu.org>
1517
2f604c28
MK
1518 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1519 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1520
5a174d79
MK
1521 * configure.in: Don't comment out NATDEPFILES in the generated
1522 Makefile if NAT_FILE is unset.
1523 * configure: Regenerate.
1524
b2ed1746
AC
15252004-09-27 Andrew Cagney <cagney@gnu.org>
1526
44cbf7b5
AC
1527 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1528 (insert_step_resume_breakpoint): Delete.
1529 (insert_step_resume_breakpoint_at_frame): New function.
1530 (insert_step_resume_breakpoint_at_sal): New function.
1531 (handle_inferior_event, step_into_function)
1532 (insert_step_resume_breakpoint): Simplify by using same.
1533
b2ed1746
AC
1534 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1535
3691b3be
MK
15362004-09-26 Mark Kettenis <kettenis@gnu.org>
1537
36f391e8
MK
1538 * fbsd-proc.c: Remove file.
1539 * Makefile.in (fbsd-proc.o): Remove dependency.
1540
771e236c
MK
1541 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1542 code together.
1543
3691b3be
MK
1544 * config/i386/nm-fbsd64.h: Remove file.
1545 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1546
6a5c78a3
MK
15472004-09-26 Mark Kettenis <kettenis@gnu.org>
1548
1549 * amd64-nat.h: Update copyright year.
1550 (amd64bsd_target): New prototype.
1551 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1552 (amd64bsd_target): New function.
1553 (amd64bsd_fetch_inferior_registers): Rename from
1554 fetch_inferior_registers. Make static.
1555 (amd64bsd_store_inferior_registers): Rename from
1556 store_inferior_registers. Make static.
1557 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1558 (_initialize_amd64fbsd_nat): Construct and add target vector.
1559 * amd64nbsd-nat.o: Include "target.h".
1560 (_initialize_amd64nbsd_nat): Construct and add target vector.
1561 * amd64obsd-nat.c: Include "target.h".
1562 (_initialize_amd64obsd_nat): Construct and add target vector.
1563 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1564 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1565 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1566 fbsd-nat.o.
1567 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1568 Remove infptrace.o and inftarg.o. Add inf-child.o and
1569 inf-ptrace.o.
1570 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1571 (amd64obsd-nat.o): Update dependencies.
1572
27acbe61
MK
15732004-09-25 Mark Kettenis <kettenis@gnu.org>
1574
509a5e7d
MK
1575 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1576 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1577 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1578 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1579 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1580
6e1e94ea
MK
1581 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1582 Inline attach call.
1583 (inf_ptrace_detach): Inline detach call.
1584
8b9cf735
MK
1585 * configure.in: Check for waddstr instead of mvwaddstr when
1586 searching for curses library. Check for wborder.
1587 * configure, config.in: Regenerate.
1588 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1589 available.
1590
27acbe61
MK
1591 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1592
b96ec7ac
AC
15932004-09-24 Robert Picco <Robert.Picco@hp.com>
1594
1595 Committed by Andrew Cagney.
1596 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1597 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1598 configuration.
1599 (fetch_register_using_p): Implement 'p' packet. Based on code by
1600 Fernando Nasser.
1601 (remote_fetch_registers): Call fetch_register_using_p.
1602 (init_all_packet_configs, show_remote_cmd)
1603 (_initialize_remote): Add p-packet.
1604
62ece330
MK
16052004-09-24 Mark Kettenis <kettenis@gnu.org>
1606
1607 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1608 instead of call_ptrace. Call wait directly instead of
1609 ptrace_wait.
1610 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1611 (inf_ptrace_wait): Inline ptrace_wait call.
1612
00937274
PH
16132004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1614
1615 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1616 rolled back instead.
1617
3f2c7a45
PH
16182004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1619
1620 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1621 the new argument order.
1622
b6fcb393
CV
16232004-09-23 Corinna Vinschen <vinschen@redhat.com>
1624
1625 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1626 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1627 (struct gdbarch_tdep): Remove.
1628 (struct xstormy16_frame_cache): New frame cache structure.
1629 (xstormy16_register_byte, xstormy16_register_raw_size)
1630 (xstormy16_reg_virtual_type, xstormy16_register_type)
1631 (xstormy16_push_arguments, xstormy16_push_return_address)
1632 (xstormy16_pop_frame, xstormy16_store_struct_return)
1633 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1634 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1635 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1636 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1637 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1638 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1639 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1640 (xstormy16_extract_return_value, xstormy16_store_return_value):
1641 Regcachify. Drop useless struct convention handling.
1642 (xstormy16_register_type, xstormy16_return_value)
1643 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1644 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1645 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1646 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1647 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1648 (xstormy16_unwind_dummy_id) : New functions.
1649 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1650 of xstormy16_scan_prologue.
1651 (xstormy16_frame_unwind): New frame_unwind structure.
1652 (xstormy16_frame_base): New frame_base structure.
1653 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1654 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1655
1285b746
MK
16562004-09-22 Mark Kettenis <kettenis@gnu.org>
1657
1658 * language.c (language_gdbarch_post_init): Fix off-by one error.
1659
1c379e20
DJ
16602004-09-21 Daniel Jacobowitz <dan@debian.org>
1661
1662 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1663 (struct dwarf2_offset_and_type): New.
1664 (set_die_type, reset_die_and_siblings_types, get_die_type)
1665 (offset_and_type_hash, offset_and_type_eq): New functions.
1666 (read_structure_type, read_enumeration_type, read_array_type)
1667 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1668 (read_tag_reference_type, read_tag_const_type)
1669 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1670 (read_typedef, read_base_type, read_subrange_type): Use
1671 set_die_type.
1672
ae038cb0
DJ
16732004-09-20 Daniel Jacobowitz <dan@debian.org>
1674
1675 * Makefile.in (dwarf2read.o): Update dependencies.
1676 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1677 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1678 and read_in_chain.
1679 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1680 mark, and has_form_ref_addr.
1681 (struct dwarf2_per_cu_data): New.
1682 (dwarf2_max_cache_age): New.
1683 (dwarf2_build_psymtabs_hard): Free cached compilation units
1684 after loading. Create and manage the list of compilation units.
1685 Remove unnecessary NULL initialization. Fix indentation.
1686 (psymtab_to_symtab_1): Initialize all of CU.
1687 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1688 (find_partial_die): Use dwarf2_find_containing_comp_unit
1689 and load_comp_unit.
1690 (free_stack_comp_unit): Update comments. Clear the per-cu
1691 pointer. Handle aging.
1692 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1693 (age_cached_comp_units, free_one_cached_comp_unit)
1694 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1695 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1696 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1697 (show_dwarf2_cmd): New.
1698 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1699 and "maint show dwarf2 max-cache-age".
1700 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1701 externs.
1702 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1703 global.
1704
987504bb
JJ
17052004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1706
1707 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1708 and dwarf2_cu struct pointer as arguments. Change function to use
1709 obstack if provided and use dwarf2_cu to determine language-specific
1710 separator.
1711 (partial_die_parent_scope): Change comment to include java. Use
1712 new version of typename_concat instead of obconcat.
1713 (partial_die_full_name): Use typename_concat.
1714 (read_namespace): Ditto.
1715 (read_enumeration_type): Use typename_concat instead of obconcat.
1716 (new_symbol): Ditto.
1717 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1718 (guess_structure_name): Ditto.
1719 (read_subroutine_type): Ditto.
1720 (read_structure_type): Ditto.
1721 (is_vtable_name): Add Java support.
1722 (determine_class_name): Switch to new typename_concat call.
1723 (determine_prefix): Switch to new typename_concat call.
1724 * jv-exp.y (FuncStart): New pattern.
1725 (MethodInvocation): Add support for simple function calls. Change
1726 warning message for other forms of inferior call currently not
1727 supported.
1728 * valarith.c (value_subscript): Treat an array with upper-bound
1729 of -1 as unknown size.
1730
d9c8471e
DJ
17312004-09-20 Daniel Jacobowitz <dan@debian.org>
1732
1733 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1734 (lookup_partial_symtab): Use symtab_to_fullname.
1735
d73f140a
JB
17362004-09-19 Jim Blandy <jimb@redhat.com>
1737
1738 * minsyms.c (lookup_minimal_symbol): Doc fix.
1739
adbef1f0
AC
17402004-09-20 Andrew Cagney <cagney@gnu.org>
1741
1742 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1743 CHILD_RESUME.
1744 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1745 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1746 KILL_INFERIOR.
1747 * infptrace.c: Update.
1748
d092d1a2
DJ
17492004-09-19 Daniel Jacobowitz <dan@debian.org>
1750
1751 * symtab.c (output_source_filename): Mark first argument as const.
1752 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1753 for "info sources" output.
1754
86d9e1d7
MK
17552004-09-20 Mark Kettenis <kettenis@gnu.org>
1756
1757 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1758 <machine/vmparam.h>.
1759 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1760 (register_u_addr): Remove prototype.
1761
9a6c8ef4
MK
17622004-09-19 Mark Kettenis <kettenis@gnu.org>
1763
9692934b
MK
1764 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1765 (i386bsd_fetch_inferior_registers): Rename from
1766 fetch_inferior_registers. Make static.
1767 (i386bsd_store_inferior_registers): Rename from
1768 store_inferior_registers. Make static.
1769 (i386bsd_target): New function.
1770 * i386bsd-nat.h: New file.
1771 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1772 "i386bsd-nat.h".
1773 (i386fbsd_resume): Rename from child_resume. Make static.
1774 (_initialize_i386fbsd_nat): Construct and add target vector.
1775 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1776 (_initialize_i386nbsd_nat): Construct and add target vector.
1777 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1778 Remove defines.
1779 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1780 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1781 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1782 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1783 (LOADLIBES): New variable.
1784 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1785 inf-ptrace.o. Remove inftarg.o.
1786 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1787 inf-ptrace.o. Remove inftarg.o.
1788 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1789 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1790 (LOADLIBES): New variable.
1791 * Makefile.in (i386bsd_nat_h): New variable.
1792 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1793 dependencies.
1794
3510d1f2
MK
1795 * sparc64nbsd-tdep.c: Include "objfiles.h".
1796 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1797 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1798 svr4_lp64_fetch_link_map_offsets.
1799 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1800 "nbsd-tdep.h".
1801 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1802 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1803 svr4_lp64_fetch_link_map_offsets.
1804 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1805 dependencies.
1806
578c1c03
MK
1807 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1808 * fbsd-nat.h: New file.
1809 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1810 (fbsd_nat_h): New variable.
1811 (fbsd-nat.o): New dependency.
1812
7a7b73b7
MK
1813 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1814 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1815
9a6c8ef4
MK
1816 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1817 comment.
1818
72d5681a
PH
18192004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1820
1821 * ada-exp.y (type_int): New function to add layer of abstraction
1822 around references to expression types.
1823 (type_long): Ditto.
1824 (type_long_long): Ditto.
1825 (type_float): Ditto.
1826 (type_double): Ditto.
1827 (type_long_double): Ditto.
1828 (type_char): Ditto.
1829 (type_system_address): Ditto.
1830 (simple_exp): Use type_* functions in place of builtin_*
1831 variables.
1832 (exp): Ditto.
1833 (write_var_from_name): Ditto.
1834 (write_object_renaming): Ditto.
1835 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1836 declaration.
1837 (build_ada_types): Remove, replacing with...
1838 (ada_language_arch_info): New function to initialize primitive
1839 type vector in language_arch_info.
1840 (ada_array_length): Remove use of builtin_type_ada_int.
1841 (value_pos_atr): Ditto.
1842 (ada_evaluate_subexp): Ditto.
1843 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1844 builtin_type_ada_long_long, builtin_type_ada_char,
1845 builtin_type_ada_float, builtin_type_ada_double,
1846 builtin_type_ada_long_double, builtin_type_ada_natural,
1847 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1848 (ada_builtin_types): Remove.
1849 (ada_language_defn): Remove entries for la_builtin_type_vector and
1850 string_char_type and use ada_language_arch_info.
1851 (_initialize_ada_language): Do type-vector initialization along
1852 the lines of c-lang.c.
1853 (ada_create_fundamental_type): Break up line.
1854 (ada_dump_symtab): Remove unused function.
1855 (enum ada_primitive_types): Define.
1856 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1857 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1858 builtin_type_ada_float, builtin_type_ada_double,
1859 builtin_type_ada_long_double, builtin_type_ada_natural,
1860 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1861 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1862 (processInt): Ditto.
1863 (processReal): Ditto.
1864 (name_lookup): Ditto.
1865 * ada-typeprint.c (print_range): Use builtin_type_int, not
1866 builtin_type_ada_int.
1867
4f0be353
MK
18682004-09-18 Mark Kettenis <kettenis@gnu.org>
1869
30b0e2d8
MK
1870 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1871
4f0be353
MK
1872 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1873 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1874 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1875 * configure.in: Improve checks for curses library by checking for
1876 mvwaddstr instead of initscr. Drop HP curses in favour of
1877 standard curses on HP-UX.
1878 * configure: Regenerated.
1879
72d5681a 18802004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1881
1882 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1883 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1884 Minor formatting changes.
1885 (empty_array): Slight rewrite for formatting.
1886 (emit_char,parse,ada_language_defn,build_ada_types,
1887 ada_is_exception_sym, _initialize_ada_language): Move
1888 definitions around.
1889 (ada_dump_symtab): Remove unused definition.
1890 (ada_maybe_exception_partial_symbol): Remove unused definition.
1891
1c8c7407
AC
18922004-09-16 Andrew Cagney <cagney@gnu.org>
1893
7681f339
AC
1894 * inf-child.c: Include "gdb_string.h".
1895 (inf_child_core_file_to_sym_file): Delete.
1896 (inf_child_target): Set to_fetch_registers and to_store_registers.
1897 * inf-ptrace.c: Include "gdb_string.h".
1898 * Makefile.in: Update all dependencies.
1899
1c8c7407
AC
1900 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1901 problem.
1902
65596487
JB
19032004-09-14 Joel Brobecker <brobecker@gnat.com>
1904
1905 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1906 call to heuristic_proc_desc. Remove code that became redundant
1907 as a consequence.
1908 (read_next_frame_reg): Remove special case for SP_REGNUM.
1909 (set_reg_offset): Fix small typo.
1910 (reset_saved_regs): New procedure.
1911 (mips32_heuristic_proc_desc): No longer compute a fake
1912 procedure descriptor. Compute the full frame cache instead.
1913 Some minor comment reformatting.
1914
95575b2e
AC
19152004-09-14 Andrew Cagney <cagney@gnu.org>
1916
f200c492
AC
1917 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1918 maintainer.
1919
95575b2e
AC
1920 * thread-db.c (thread_db_new_objfile): Assume that there is a
1921 child process.
1922
69657671
JB
19232004-09-13 Jim Blandy <jimb@redhat.com>
1924
1925 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1926 so that its storage isn't referenced after its lifetime ends.
1927
6c4182dd
JB
1928 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1929 and never assigned to. Delete it, and the 'if (use_buffer)'
1930 clauses. Delete 'raw_buffer', since it is now unused.
1931
ee31a58d
AC
19322004-09-13 Andrew Cagney <cagney@gnu.org>
1933
2c0fc042
AC
1934 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1935 * configure: Re-generate.
1936 * nlm/Makefile.in (TAGS): Update.
1937 * Makefile.in (TAGS): Update.
1938 * config/vax/nbsd.mt (TM_FILE): Update.
1939 * config/sparc/vxworks.mt (TM_FILE): Update.
1940 * config/sparc/sol2.mt (TM_FILE): Update.
1941 * config/sparc/sol2-64.mt (TM_FILE): Update.
1942 * config/sparc/obsd64.mt (TM_FILE): Update.
1943 * config/sparc/obsd.mt (TM_FILE): Update.
1944 * config/sparc/nbsd64.mt (TM_FILE): Update.
1945 * config/sparc/nbsd.mt (TM_FILE): Update.
1946 * config/sparc/linux64.mt (TM_FILE): Update.
1947 * config/sparc/linux.mt (TM_FILE): Update.
1948 * config/sparc/fbsd.mt (TM_FILE): Update.
1949 * config/sh/wince.mt (TM_FILE): Update.
1950 * config/sh/nbsd.mt (TM_FILE): Update.
1951 * config/sh/linux.mt (TM_FILE): Update.
1952 * config/sh/embed.mt (TM_FILE): Update.
1953 * config/s390/s390.mt (TM_FILE): Update.
1954 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1955 * config/rs6000/rs6000.mt (TM_FILE): Update.
1956 * config/rs6000/aix4.mt (TM_FILE): Update.
1957 * config/powerpc/vxworks.mt (TM_FILE): Update.
1958 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1959 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1960 * config/powerpc/obsd.mt (TM_FILE): Update.
1961 * config/powerpc/nbsd.mt (TM_FILE): Update.
1962 * config/powerpc/linux.mt (TM_FILE): Update.
1963 * config/powerpc/aix.mt (TM_FILE): Update.
1964 * config/pa/obsd.mt (TM_FILE): Update.
1965 * config/pa/linux.mt (TM_FILE): Update.
1966 * config/pa/hppahpux.mt (TM_FILE): Update.
1967 * config/pa/hppa64.mt (TM_FILE): Update.
1968 * config/pa/hppa.mt (TM_FILE): Update.
1969 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1970 * config/mips/wince.mt (TM_FILE): Update.
1971 * config/mips/vxmips.mt (TM_FILE): Update.
1972 * config/mips/nbsd.mt (TM_FILE): Update.
1973 * config/mips/linux.mt (TM_FILE): Update.
1974 * config/mips/irix6.mt (TM_FILE): Update.
1975 * config/mips/irix5.mt (TM_FILE): Update.
1976 * config/mips/embed.mt (TM_FILE): Update.
1977 * config/m68k/vxworks68.mt (TM_FILE): Update.
1978 * config/m68k/st2000.mt (TM_FILE): Update.
1979 * config/m68k/os68k.mt (TM_FILE): Update.
1980 * config/m68k/obsd.mt (TM_FILE): Update.
1981 * config/m68k/nbsd.mt (TM_FILE): Update.
1982 * config/m68k/monitor.mt (TM_FILE): Update.
1983 * config/m68k/linux.mt (TM_FILE): Update.
1984 * config/m68k/cisco.mt (TM_FILE): Update.
1985 * config/ia64/linux.mt (TM_FILE): Update.
1986 * config/ia64/aix.mt (TM_FILE): Update.
1987 * config/ia64/ia64.mt (TM_FILE): Update.
1988 * config/i386/vxworks.mt (TM_FILE): Update.
1989 * config/i386/obsd64.mt (TM_FILE): Update.
1990 * config/i386/obsd.mt (TM_FILE): Update.
1991 * config/i386/nto.mt (TM_FILE): Update.
1992 * config/i386/nbsd64.mt (TM_FILE): Update.
1993 * config/i386/nbsd.mt (TM_FILE): Update.
1994 * config/i386/linux64.mt (TM_FILE): Update.
1995 * config/i386/linux.mt (TM_FILE): Update.
1996 * config/i386/i386sol2.mt (TM_FILE): Update.
1997 * config/i386/i386lynx.mt (TM_FILE): Update.
1998 * config/i386/fbsd64.mt (TM_FILE): Update.
1999 * config/i386/fbsd.mt (TM_FILE): Update.
2000 * config/i386/cygwin.mt (TM_FILE): Update.
2001 * config/h8300/h8300.mt (TM_FILE): Update.
2002 * config/frv/frv.mt (TM_FILE): Update.
2003 * config/cris/cris.mt (TM_FILE): Update.
2004 * config/arm/wince.mt (TM_FILE): Update.
2005 * config/arm/nbsd.mt (TM_FILE): Update.
2006 * config/arm/linux.mt (TM_FILE): Update.
2007 * config/arm/embed.mt (TM_FILE): Update.
2008 * config/alpha/nbsd.mt (TM_FILE): Update.
2009 * config/alpha/fbsd.mt (TM_FILE): Update.
2010 * config/alpha/alpha.mt (TM_FILE): Update.
2011 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2012 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2013
362646f5
AC
2014 Eliminate event_loop_p, always has the value 1.
2015 * defs.h (event_loop_p): Delete macro.
2016 * breakpoint.c (until_break_command): Simplify.
2017 * utils.c (prompt_for_continue): Simplify.
2018 * tracepoint.c (read_actions): Simplify.
2019 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2020 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2021 (set_prompt, init_main): Simplify.
2022 (init_signals, disconnect): Delete, unused.
2023 * remote.c (remote_async_resume)
2024 (extended_remote_async_create_inferior): Simplify.
2025 * mi/mi-interp.c (mi_input): Delete, unused.
2026 (mi_interpreter_resume, mi_command_loop): Simplify.
2027 * interps.c (current_interp_command_loop): Simplify.
2028 * infrun.c (proceed): Simplify.
2029 * infcmd.c (run_command, continue_command, step_1, jump_command)
2030 (until_command, advance_command, finish_command)
2031 (interrupt_target_command): Simplify.
2032 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2033
ee31a58d
AC
2034 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2035 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2036 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2037 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2038 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2039 * mips-tdep.c (mips_dump_tdep): Do not print same.
2040
b7ffc4a8
AC
20412004-09-12 Andrew Cagney <cagney@gnu.org>
2042
2bfb72ee
AC
2043 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2044 const.
2045 * Makefile.in (valprint.o): Delete explict rule.
2046
4f17c3c1
AC
2047 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2048 reported by Dave Anderson.
2049
f810308b
AC
2050 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2051
b7ffc4a8
AC
2052 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2053
28b41c52
AC
20542004-09-12 Salvador E. Tropea <set@users.sf.net>
2055 Andrew Cagney <cagney@gnu.org>
2056
2057 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2058 (mi_cmd_data_list_register_values)
2059 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2060 the register number computation.
2061
5bf970f9
AC
20622004-09-12 Andrew Cagney <cagney@gnu.org>
2063
2064 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2065 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2066 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2067 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2068 target.
2069 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2070 inf-ptrace.o and inf-child.o.
2071 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2072 * Makefile.in: Update dependencies.
2073
0759e0bf
AC
20742004-09-11 Andrew Cagney <cagney@gnu.org>
2075
2076 * language.c (hex_string, hex_string_custom): Move from here ...
2077 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2078 (CELLSIZE): Increase to 50.
2079 * language.h (hex_string, hex_string_custom): Move from here ...
2080 * defs.h: ... to here.
2081 * Makefile.in: Update all dependencies.
2082
bb599908
PH
20832004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2084
2085 * language.c (local_hex_format_custom): Remove.
2086 (local_hex_string): Rename to hex_string, use C format, and move to
2087 utils.c
2088 (local_hex_string_custom): Rename to hex_string_custom and change
2089 interface. Now uses C format. Move to utils.c
2090 (local_octal_format_custom): Remove.
2091 (local_decimal_format_custom): Remove.
2092 (unknown_language_defn): Remove language-specific number
2093 formatting entries.
2094 (auto_language_defn): Ditto.
2095 (local_language_defn): Ditto.
2096 * language.h (struct language_format_info): Delete declaration.
2097 (struct language_defn): Remove language_format_info fields
2098 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2099 (local_binary_format): Remove macro.
2100 (local_binary_format_prefix): Remove macro.
2101 (local_binary_format_specifier): Remove macro.
2102 (local_binary_format_suffix): Remove macro.
2103 (local_octal_format): Remove macro.
2104 (local_octal_format_prefix): Remove macro.
2105 (local_octal_format_specifier): Remove macro.
2106 (local_octal_format_suffix): Remove macro.
2107 (local_decimal_format): Remove macro.
2108 (local_decimal_format_prefix): Remove macro.
2109 (local_decimal_format_specifier): Remove macro.
2110 (local_decimal_format_suffix): Remove macro.
2111 (local_hex_format): Remove macro.
2112 (local_hex_format_prefix): Remove macro.
2113 (local_hex_format_specifier): Remove macro.
2114 (local_hex_format_suffix): Remove macro.
2115 (local_decimal_format_custom): Remove.
2116 (local_octal_format_custom): Remove.
2117 (local_hex_format_custom): Remove.
2118 (local_hex_string): Rename to hex_string and move to defs.h.
2119 (local_hex_string_custom): Rename to hex_string_custom, change
2120 interface, and move to defs.h.
2121 * utils.c: (int_string): New function.
2122 (hex_string): New function (from language.c).
2123 (hex_string_custom): New function (from language.c).
2124 (octal2str): New function.
2125 (decimal2str): Add width parameter.
2126 (paddr_u): Use new decimal2str interface.
2127 (paddr_d): Ditto.
2128 * defs.h (hex_string): Declare.
2129 (hex_string_custom): Declare.
2130 (int_string): Declare.
2131 * printcmd.c (print_scalar_formatted): Remove localized binary
2132 formatting.
2133 * valprint.c (print_longest): Use int_string.
2134 (print_floating): Use C hex format.
2135 (print_hex_chars): Ditto.
2136 (print_binary_chars): Remove language-specific formatting.
2137 (print_octal_chars): Use C octal format.
2138 (print_decimal_chars): Delocalize format.
2139 (print_decimal): Remove.
2140 * ada-lang.c (ada_language_defn): Remove language-specific number
2141 formatting entries.
2142 * p-lang.c (pascal_language_defn): Ditto.
2143 * c-lang.c (c_language_defn): Ditto.
2144 (cplus_language_defn): Ditto.
2145 (asm_language_defn): Ditto.
2146 (minimal_language_defn): Ditto.
2147 * f-lang.c (f_language_defn): Ditto.
2148 * jv-lang.c (java_language_defn): Ditto.
2149 * m2-lang.c (m2_language_defn): Ditto.
2150 * scm-lang.c (scm_language_defn): Ditto.
2151 * objc-lang.c (objc_language_defn): Ditto.
2152 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2153 new interface.
2154 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2155 * ui-out.c (ui_out_field_core_addr): Ditto.
2156 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2157 * exec.c (print_section_info): Ditto.
2158 * i387-tdep.c (print_i387_status_word): Ditto.
2159 (print_i387_control_word): Ditto.
2160 (i387_print_float_info): Ditto.
2161 * maint.c (maint_print_section_info): Ditto.
2162 * solib.c (info_sharedlibrary_command): Ditto.
2163 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2164 * symtab.c (print_msymbol_info): Ditto.
2165 * tracepoint.c (tracepoints_info): Ditto.
2166 * solib-frv.c (lm_base): Ditto.
2167 (frv_current_sos): Ditto.
2168 (enable_break2): Ditto.
2169 (enable_break): Ditto.
2170 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2171 (process_one_symbol): Ditto.
2172 * infcmd.c (program_info): Ditto.
2173 * mdebugread.c (parse_partial_symbols): Ditto.
2174 * symfile.c (add_symbol_file_command): Ditto.
2175 * cli/cli-cmds.c (edit_command): Ditto.
2176 (list_command): Ditto.
2177 * infcall.c (call_function_by_hand): Ditto.
2178 * remote-vx.c (vx_run_files_info): Ditto.
2179 (vx_wait): Ditto.
2180 (vx_attach): Ditto.
2181 (vx_detach): Ditto.
2182 (vx_kill): Ditto.
2183 * aix-thread.c (pdc_symbol_addrs): Ditto.
2184 (pdc_read_regs): Ditto.
2185 (pdc_write_regs): Ditto.
2186 (pdc_read_data): Ditto.
2187 (pdc_write_data): Ditto.
2188 * d10v-tdep.c (display_trace): Ditto.
2189 * rs6000-nat.c (find_toc_address): Ditto.
2190 * aix-thread.c: Don't include language.h.
2191 * buildsym.c: Ditto.
2192 * dbxread.c: Ditto.
2193 * mdebugread.c: Ditto.
2194 * rs6000-nat.c: Ditto.
2195 * buildsym.c (make_blockvector): Use renamed hex_string.
2196
33f2d567
JM
21972004-09-10 Jason Molenda (jmolenda@apple.com)
2198
2199 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2200 chars after 'if' or 'while' commands in user-defined commands.
2201
7b90c3f9
JB
22022004-09-08 Jim Blandy <jimb@redhat.com>
2203
2204 Fix bug reported and analyzed by Olivier Crete:
2205 * symfile.c (copy_section_addr_info): New function.
2206 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2207 original set of address arguments, instead of handwritten code
2208 that uses one length to allocate and a different length to
2209 initialize. Use make_cleanup_free_section_addr_info.
2210 * symfile.h (copy_section_addr_info): New declaration.
2211 * utils.c: #include "symfile.h".
2212 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2213 New functions.
2214 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2215 * Makefile.in (utils.o): Update dependencies.
2216
b26a6851
AC
22172004-09-08 Andrew Cagney <cagney@gnu.org>
2218
2219 * thread-db.c (keep_thread_db): Delete.
2220 (thread_db_new_objfile, thread_db_create_inferior)
2221 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2222
be24b061
MK
22232004-09-08 Mark Kettenis <kettenis@gnu.org>
2224
f6792ef4
MK
2225 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2226 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2227 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2228 (i386_frameless_signal_p): Remove prototype.
2229 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2230 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2231 I386_SSE_NUM_REGS.
2232 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2233 instead of FP0_REGNUM.
2234 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2235 of FP0_REGNUM and FPC_REGNUM.
2236
eeefdaa7
MK
2237 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2238 (sunos_solib_create_inferior_hook): Don't call
2239 sunos_relocate_main_executable.
2240
be24b061
MK
2241 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2242 solib_svr4_fetch_link_map_offsets to
2243 svr4_ilp32_fetch_link_map_offsets.
2244 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2245 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2246 svr4_ilp32_fetch_link_map_offsets.
2247 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2248
7c679d16
JB
22492004-09-07 Jim Blandy <jimb@redhat.com>
2250
2251 * frame.h (frame_register): Doc fix.
2252
1f04aa62
AC
22532004-09-07 Andrew Cagney <cagney@gnu.org>
2254
2255 * vx-share/wait.h: Delete #ifdef USG.
2256 * utils.c (request_quit): Ditto.
2257 * tui/tui.c (tui_reset): Ditto.
2258 * remote.c: Ditto.
2259 * remote-sds.c: Ditto.
2260 * remote-rdi.c: Ditto.
2261 * mdebugread.c: Ditto.
2262 * m68klinux-nat.c: Ditto.
2263 * infttrace.c: Ditto.
2264 * infptrace.c: Ditto.
2265 * i386v-nat.c: Ditto.
2266 * exec.c: Ditto.
2267 * dbxread.c: Ditto.
2268 * core-aout.c: Ditto.
2269
90edbfbc
JB
22702004-09-05 Joel Brobecker <brobecker@gnat.com>
2271
2272 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2273 heuristic_proc_desc.
2274 (mips_insn32_frame_cache): Likewise.
2275
01f4bf2b
JB
22762004-09-04 Joel Brobecker <brobecker@gnat.com>
2277
2278 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2279 left behind by error.
2280
8511a048
JB
22812004-09-04 Joel Brobecker <brobecker@gnat.com>
2282
2283 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2284 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2285
649dfe9f
JB
22862004-09-04 Joel Brobecker <brobecker@gnat.com>
2287
2288 * config/rs6000/xm-aix4.h: Remove this file.
2289 * config/rs6000/aix4.mh (XM_FILE): Delete.
2290
6e50f889
JB
22912004-09-04 Joel Brobecker <brobecker@gnat.com>
2292
2293 * config/rs6000/xm-rs6000.h: Remove this file.
2294 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2295
b8c4aece
AC
22962004-09-03 Andrew Cagney <cagney@gnu.org>
2297
fb603883
AC
2298 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2299 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2300 only use.
2301
c9343fd1
AC
2302 * mips-tdep.c (temp_saved_regs): Delete.
2303 (set_reg_offset): Replace saved_regs parameter with this_cache.
2304 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2305 (mips32_heuristic_proc_desc): Add this_cache parameter.
2306 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2307 (after_prologue): Pass a NULL this_cache.
2308
9733cfe1
AC
2309 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2310 non-kernel trap prologues.
2311
0d5febcc
AC
2312 * mips-tdep.c (find_proc_desc): Delete function.
2313 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2314 simplify.
2315 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2316 mips_insn32_frame_cache.
2317
9733cfe1 2318 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2319 Simplify as NEXT_FRAME is NULL.
2320 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2321
177f84a3
AC
2322 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2323 local variable.
2324 (mips_skip_prologue): Update.
2325
465f7520
AC
2326 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2327 "cur_frame" parameter.
177f84a3
AC
2328 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2329 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2330
e38b8658
AC
2331 * config/vax/nm-obsd.h: Delete file.
2332 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2333 * config/vax/nm-nbsd.h: Delete file.
2334 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2335 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2336 * config/sh/nm-nbsd.h: Delete file.
2337 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2338 * config/rs6000/nm-rs6000ly.h: Delete file.
2339 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2340 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2341 * config/powerpc/nm-obsd.h: Delete file.
2342 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2343 * config/powerpc/nm-nbsd.h: Delete file.
2344 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2345 * config/pa/nm-obsd.h: Delete file.
2346 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2347 * config/mips/nm-nbsd.h: Delete file.
2348 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2349 * config/m88k/nm-obsd.h: Delete file.
2350 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2351 * config/m68k/nm-nbsd.h: Delete file.
2352 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2353 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2354 * config/i386/nm-nbsd.h: Delete file.
2355 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2356 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2357 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2358 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2359 * config/i386/nm-i386lynx.h: Delete file.
2360 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2361 * config/arm/nm-nbsd.h: Delete file.
2362 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2363 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2364
be1ed680
AC
2365 * config/i386/tm-fbsd.h: Delete file.
2366 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2367 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2368
4b392b26
AC
2369 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2370 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2371 * config/rs6000/aix4.mt (TM_FILE): Set to
2372 config/rs6000/tm-rs6000.h.
2373 * config/powerpc/tm-ppc-aix.h: Delete file.
2374 * config/powerpc/aix.mt (TM_FILE): Set to
2375 config/rs6000/tm-rs6000.h.
2376 * config/m68k/tm-linux.h: Delete file.
2377 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2378 * config/i386/tm-linux64.h: Delete file.
2379 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2380 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2381
f3219c75
AC
2382 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2383 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2384 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2385 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2386 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2387 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2388 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2389 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2390 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2391
b8c4aece
AC
2392 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2393 gdb_host_cpu.
2394
8ac2e020
JB
23952004-09-02 Joel Brobecker <brobecker@gnat.com>
2396
2397 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2398 Minor reformatting. Some code factoring.
2399
c185a355
AC
24002004-09-02 Andrew Cagney <cagney@gnu.org>
2401
63f22f0d
AC
2402 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2403 * config/vax/tm-nbsd.h: Delete file.
2404 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2405 * config/sparc/tm-vxworks.h: Delete file.
2406 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2407 * config/sparc/tm-nbsd.h: Delete file.
2408 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2409 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2410 * config/sparc/tm-linux.h: Delete file.
2411 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2412 * config/s390/tm-linux.h: Delete file.
2413 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2414 * config/pa/tm-bsd.h: Delete file.
2415 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2416 * config/m68k/tm-obsd.h: Delete file.
2417 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2418 * config/m68k/tm-nbsd.h: Delete file.
2419 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2420 * config/i386/tm-vxworks.h: Delete file.
2421 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2422 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2423 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2424 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2425 * config/i386/tm-nbsd.h: Delete file.
2426 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2427 * config/i386/tm-i386lynx.h: Delete file.
2428 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2429 * config/cris/tm-cris.h: Delete file.
2430
0f475e27
AC
2431 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2432 * configure: Re-generate.
2433 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2434 * config/arm/tm-nbsd.h: Delete file.
2435
458ed000
AC
2436 * config/powerpc/tm-ppcle-sim.h: Delete.
2437 * config/powerpc/tm-ppcle-eabi.h: Delete.
2438 * config/powerpc/tm-nbsd.h: Delete.
2439 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2440 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2441 tm-ppcle-eabi.h.
2442
f14375f3
AC
2443 * config/i386/nto.mh (NAT_FILE): Delete.
2444 * config/i386/nm-nto.h: Delete.
2445
c34d127c
AC
2446 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2447 * config/m68k/tm-os68k.h: Ditto.
2448 * config/m68k/tm-monitor.h: Ditto.
2449 * config/m68k/tm-cisco.h: Ditto.
2450 * config/m68k/st2000.mt (TM_FILE): Delete.
2451 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2452 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2453 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2454 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2455
f7f0fe03
AC
2456 * config/m68k/tm-st2000.h: Delete.
2457 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2458 * config/sparc/fbsd.mt (TM_FILE): Delete.
2459 * config/sparc/tm-fbsd.h: Delete.
2460
a2558533
AC
2461 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2462 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2463 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2464
b78960be
AC
2465 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2466 GDB_TM_FILE and GDB_XM_FILE.
2467 * gdbarch.c: Re-generate.
2468 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2469 quotes in macro definition.
2470 * configure.in: Re-generate.
2471
4d60522e
AC
2472 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2473 validating architecture methods.
2474 * gdbarch.c: Re-generate.
2475
5010d38b
AC
2476 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2477 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2478 GDB_MULTI_ARCH_PARTIAL.
2479 * gdbarch.h: Re-generate.
2480
c185a355
AC
2481 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2482 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2483 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2484 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2485 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2486 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2487 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2488 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2489 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2490 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2491 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2492 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2493
14aaa6ab
AC
24942004-09-01 Andrew Cagney <cagney@gnu.org>
2495
2496 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2497 and main_func_highpc.
2498 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2499 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2500 * nlmread.c (nlm_symfile_read): Update.
2501
a343eb3c
JB
25022004-09-01 Joel Brobecker <brobecker@gnat.com>
2503
2504 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2505 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2506 (find_proc_desc): Remove dead code.
2507
4fbbbd07
JB
25082004-09-01 Joel Brobecker <brobecker@gnat.com>
2509
2510 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2511
84acb35a
JJ
25122004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2513
2514 * observer.sh: Add struct so_list declaration.
2515 * Makefile.in: Add dependencies on observer.h for solib.c and
2516 breakpoint.c.
2517 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2518 function.
2519 (_initialize_breakpoint): Register
2520 disable_breakpoints_in_unloaded_shlib as an observer of the
2521 "solib unloaded" observation event.
2522 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2523 call decode_line_1 so unfound breakpoint errors are silent.
2524 * solib.c (update_solib_list): When a solib is discovered to have
2525 been unloaded by the program, notify all observers of the
2526 "solib unloaded" observation event.
2527
c8cd9f6c
AC
25282004-09-01 Andrew Cagney <cagney@gnu.org>
2529
2530 * frame.c: Include "objfiles.h".
2531 (inside_main_func): New function.
2532 (get_prev_frame): Use new inside_main_func.
2533 * Makefile.in (frame.o): Update dependencies.
2534 * defs.h (inside_main_func): Delete declaration.
2535 * blockframe.c (inside_main_func): Delete function.
2536
1168df01
JB
25372004-08-31 Jim Blandy <jimb@redhat.com>
2538
2539 * dwarf2read.c (is_vtable_name): New function, based on logic from
2540 read_structure_type, but passing the correct length to strncmp,
2541 and using 'sizeof' instead of 'strlen'.
2542 (read_structure_type): Call it.
2543
f14f9744
JB
25442004-08-31 Joel Brobecker <brobecker@gnat.com>
2545
2546 * config/powerpc/aix.mh: Add comment.
2547
386d4518
PG
25482004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2549
2550 * MAINTAINERS: Add self to Write-After-Approval.
2551
7d97d5e2
MI
25522004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2553
2554 * MAINTAINERS: Add self to Write-After-Approval.
2555
68f53502
AC
25562004-08-30 Andrew Cagney <cagney@gnu.org>
2557
2558 Fix PR breakpoints/1757.
2559 * infrun.c (struct execution_control_state): Replace
2560 remove_breakpoints_on_following_step with
2561 step_after_step_resume_breakpoint.
2562 (init_execution_control_state): Update.
2563 (handle_inferior_event): For signals, when stepping off a
2564 breakpoint, set step_after_step_resume_breakpoint. When
2565 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2566 (keep_going): Delete code handling
2567 remove_breakpoints_on_following_step.
2568
7ca2d3a3
DL
25692004-08-29 David Lecomber <david@streamline-computing.com>
2570
2571 Fix PR gdb/648
2572 * language.h (enum array_ordering): New enum.
2573 * language.h (struct language_defn): New la_array_ordering
2574 attribute.
2575 * language.c (unknown_language_defn, auto_language_defn)
2576 (local_language_defn): Ditto.
2577 * ada-lang.c (ada_language_defn): Ditto.
2578 * c-lang.c (c_language_defn, cplus_language_defn)
2579 (asm_language_defn, minimal_language_defn): Ditto.
2580 * f-lang.c (f_language_defn): Ditto.
2581 * jv-lang.c (java_language_defn): Ditto.
2582 * m2-lang.c (f_language_defn): Ditto.
2583 * objc-lang.c (objc_language_defn): Ditto.
2584 * p-lang.c (pascal_language_defn): Ditto.
2585 * scm-lang.c (scm_language_defn): Ditto.
2586 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2587 oriented large to small in type structure.
2588 * dwarf2read.c (read_array_order): New function.
2589 (read_array_type): Use read_array_order to check row/column
2590 major ordering.
2591
e354df01
NW
25922004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2593
2594 * target.c (target_resize_to_sections): Check
2595 current_target.to_sections for an old value when updating.
2596
9185ddce
JB
25972004-08-27 Joel Brobecker <brobecker@gnat.com>
2598
2599 * procfs.c (dbx_link_bpt_addr): New static global variable.
2600 (dbx_link_shadow_contents): New static global variable.
2601 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2602 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2603 if we just hit it.
2604 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2605 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2606 from run to run.
2607 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2608 after the inferior has been forked.
2609 (remove_dbx_link_breakpoint): New function.
2610 (dbx_link_addr): New function.
2611 (insert_dbx_link_bpt_in_file): New function.
2612 (insert_dbx_link_bpt_in_region): New function.
2613 (insert_dbx_link_breakpoint): New function.
2614 (proc_trace_syscalls_1): New function, extracted from
2615 proc_trace_syscalls.
2616 (proc_trace_syscalls): Replace extract code by call to
2617 proc_trace_syscalls_1.
2618 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2619 is no longer valid.
2620
e6742ace
JB
26212004-08-25 Jim Blandy <jimb@redhat.com>
2622
2623 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2624
8fb3e588
AC
26252004-08-25 Andrew Cagney <cagney@gnu.org>
2626
629a41ee
AC
2627 * infrun.c (struct execution_control_state): Delete field
2628 "stepping_through_sigtramp".
2629 (init_execution_control_state): Do not set same.
2630 (context_switch): Do not pass same to save_infrun_state and
2631 load_infrun_state.
2632 * gdbthread.h (struct thread_info): Delete field
2633 stepping_through_sigtramp.
2634 (save_infrun_state, load_infrun_state): Delete parameter
2635 stepping_through_sigtramp.
2636 * thread.c (load_infrun_state, save_infrun_state): Update.
2637
8fb3e588
AC
2638 * infrun.c: Re-indent. Move expression operators to the beginning
2639 of the line. Remove long disabled #if 0 code.
2640
49c54768
AC
26412004-08-24 Andrew Cagney <cagney@gnu.org>
2642
2643 * doublest.h (floatformat_ieee_quad): Rename
2644 floatformat_ia64_quad.
2645 * doublest.c (floatformat_ieee_quad): Rename
2646 floatformat_ia64_quad.
2647 (_initialize_doublest): Update.
2648
5ca2e327
JB
26492004-08-24 Jim Blandy <jimb@redhat.com>
2650
87808bd6
JB
2651 * dwarf2expr.h (struct dwarf_expr_context): New members
2652 'num_pieces' and 'pieces', for returning the result of an
2653 expression that uses DW_OP_piece.
2654 (struct dwarf_expr_piece): New struct type.
2655 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2656 pieces.
2657 (free_dwarf_expr_context): Free pieces, if any.
2658 (add_piece): New function.
2659 (execute_stack_op): Implement DW_OP_piece.
2660 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2661 expression is a list of pieces, print an error message.
2662 (dwarf2_loc_desc_needs_frame): If the expression yields
2663 pieces, and any piece is in a register, then we need a frame.
2664
5ca2e327
JB
2665 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2666 the stack until we've decided what sort of result the evaluation
2667 has produced. Use separate variables, with more specific names.
2668
2afeb6b8
RE
26692004-08-23 Richard Earnshaw <rearnsha@arm.com>
2670
2671 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2672 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2673 (arm_netbsd_init_abi_common): Register them.
2674
5885ab49
MK
26752004-08-22 Mark Kettenis <kettenis@gnu.org>
2676
fda820a6
MK
2677 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2678
1c5bf419
MK
2679 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2680 safe_frame_unwind_memory instead of target_read_memory.
2681
8cbba7c8
MK
2682 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2683 Reorder includes.
2684 (fetch_register, store_register): Remove prototypes.
2685 (child_resume): Reorganize code and comments such that it is
2686 grouped a bit more logically.
2687 (attach): Explicitly compare errno against 0.
2688 (detach): Likewise. Use perror_with_name instead of
2689 print_sys_errmsg.
2690 * Makefile.in (infptrace.o): Update dependencies.
2691
c5fa4245
MK
2692 * ia64-linux-nat.c: Update copyright year.
2693 (fetch_debug_register, store_debug_register)
2694 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2695 PTRACE_TYPE_ARG3.
2696 * config/ia64/nm-linux.h: Update copyright year.
2697 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2698
387c058c
MK
2699 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2700 from CORE_ADDR to struct frame_info *. Use
2701 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2702 (amd64_linux_sigtramp_p): Adjust for changed signature of
2703 and64_linux_sigtramp_start
2704
277215a6
MK
2705 * gdb_ptrace.h: GNU/Linux.
2706
25f6178e
MK
2707 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2708 Remove defines.
2709
652fc137
MK
2710 * infptrace.c: Include "gdb_assert.h".
2711 (PTRACE_XFER_TYPE): Remove define.
2712 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2713 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2714 Tweak comment.
2715 (fetch_inferior_registers, store_inferior_registers): Remove
2716 redundant culry braces. Tweak comment. s/regno/regnum.
2717 * Makefile.in (infptrace.o): Update dependencies.
2718
5885ab49
MK
2719 * configure.in: Change test for return type of ptrace to default
2720 to `long' instead of `int'.
2721 * configure: Regenerate.
2722
11003ae3
MK
27232004-08-21 Mark Kettenis <kettenis@gnu.org>
2724
6b95110c
MK
2725 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2726
bcb3dc3d
MK
2727 * configure.in: Check for ttrace function.
2728 * configure, config.in: Regenerate.
2729
11003ae3
MK
2730 * gdb_ptrace.h: New file.
2731 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2732 <sys/ptrace.h>.
2733 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2734 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2735 (attach): Don't define PT_ATTACH.
2736 (detach): Don't define PT_DETACH.
2737 * Makefile.in (gdb_ptrace_h): New variable.
2738 (infptrace.o): Update dependencies.
2739
f8707cac
MK
27402004-08-16 Mark Kettenis <kettenis@gnu.org>
2741
2742 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2743 instead of `int' if not already defined.
2744 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2745 PTRACE_TYPE_ARG3.
2746 * infptrace.c (call_ptrace): Revert change that replaced
2747 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2748
655c5466
MK
27492004-08-15 Mark Kettenis <kettenis@gnu.org>
2750
156e5ba7
MK
2751 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2752 Remove defines.
2753
de9a9e51
MK
2754 * linux-nat.c (kill_inferior): Add missing third and fourth
2755 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2756
88800403
MK
2757 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2758 PTRACE_TYPE_RET.
2759
849a1d7c
MK
2760 * proc-why.c (proc_prettyfprint_why): Fix format string.
2761
61ad16d1
MK
2762 * solib-osf.c (osf_current_sos): Remove unsused label.
2763
a6ed5501
MK
2764 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2765 curses headers.
2766 * configure, config.in: Regenerate.
2767 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2768 <ncurses/ncurses.h>.
2769
016ddeca
MK
2770 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2771 * config/nm-nbsd.h: Update copyright year.
2772 (PTRACE_ARG3_TYPE): Remove define.
2773
49ec097f
MK
2774 * sparc-nat.c (fetch_inferior_registers)
2775 (store_inferior_registers, sparc_xfer_wcookie):
2776 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2777
9f8e0089
MK
2778 * alphabsd-nat.c (fetch_inferior_registers):
2779 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2780 PTRACE_TYPE_ARG3.
2781 * amd64bsd-nat.c (fetch_inferior_registers)
2782 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2783 PTRACE_TYPE_ARG3.
2784 * armnbsd-nat.c: Update copyright year.
2785 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2786 (store_register, store_regs, store_fp_register, store_fp_regs):
2787 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2788 * hppabsd-nat.c (fetch_inferior_registers)
2789 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2790 PTRACE_TYPE_ARG3.
2791 * i386bsd-nat.c (fetch_inferior_registers)
2792 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2793 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2794 * m68kbsd-nat.c (fetch_inferior_registers)
2795 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2796 PTRACE_TYPE_ARG3.
2797 * m88kbsd-nat.c (fetch_inferior_registers)
2798 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2799 PTRACE_TYPE_ARG3.
2800 * mipsnbsd-nat.c: Update copyright year.
2801 (fetch_inferior_registers, store_inferior_registers):
2802 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2803 * ns32knbsd-nat.c: Update copyright year.
2804 (fetch_inferior_registers, store_inferior_registers):
2805 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2806 * ppcnbsd-nat.c (fetch_inferior_registers):
2807 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2808 PTRACE_TYPE_ARG3.
2809 * ppcobsd-nat.c (fetch_inferior_registers):
2810 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2811 PTRACE_TYPE_ARG3.
2812 * shnbsd-nat.c: Update copyright year.
2813 (fetch_inferior_registers, store_inferior_registers):
2814 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2815 * vaxbsd-nat.c (fetch_inferior_registers)
2816 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2817 PTRACE_TYPE_ARG3.
2818
655c5466
MK
2819 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2820 PTRACE_TYPE_ARG3.
2821 * infptrace.c (call_ptrace, child_resume, attach, detach)
2822 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2823 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2824 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2825 PTRACE_TYPE_ARG3.
2826
c40d0d10
MK
28272004-08-14 Mark Kettenis <kettenis@gnu.org>
2828
5cb0ff31
MK
2829 * defs.h: Remove out-of-date comment.
2830 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2831 [!GETENV_PROVIDED] (getenv): Remove prototype.
2832
5f0f34cb
MK
2833 * standalone.c: Remove file.
2834 * Makefile.in (standalone.o): Remove dependency.
2835
7532965f
MK
2836 * i386-linux-nat.c (dummy_sse_values): Remove function and
2837 prototype.
2838 (i386_linux_dr_get): Fix typo in comment.
2839 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2840
1bdc6c53
MK
2841 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2842
c40d0d10
MK
2843 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2844 from declaration.
2845 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2846 from definition.
2847
64218d3e
MK
28482004-08-13 Mark Kettenis <kettenis@gnu.org>
2849
2850 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2851 parenthesis in definition.
2852 * configure: Regenerated.
2853
926c94e7
MC
28542004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2855
2856 * PROBLEMS: Mention build/1411.
2857
69489883
NN
28582004-08-09 Robert Millan <robertmh@gnu.org>
2859
2860 Committed by Nathanael Nerode.
2861 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2862 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2863
ebb7c577
AC
28642004-08-12 Andrew Cagney <cagney@gnu.org>
2865
2866 * NEWS: Mention fixes in GDB 6.2.1.
2867 * PROBLEMS: Remove mention of mips-irix.
2868
232d697c
JB
28692004-08-11 Joel Brobecker <brobecker@gnat.com>
2870
2871 * config/powerpc/xm-aix.h: Delete.
2872 * config/powerpc/aix.mh (MH_FILE): Remove.
2873 * config/powerpc/aix432.mh (MH_FILE): Remove.
2874
72f4e82b
JB
28752004-08-11 Joel Brobecker <brobecker@gnat.com>
2876
2877 * config/powerpc/aix.mh: Remove obsolete comment.
2878 * config/powerpc/aix432.mh: Likewise.
2879
0687ccb2
JB
28802004-08-11 Joel Brobecker <brobecker@gnat.com>
2881
2882 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2883
dbf3ada7
JB
28842004-08-11 Joel Brobecker <brobecker@gnat.com>
2885
e08e1886
JB
2886 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2887 this file is now empty.
2888 * config/xm-aix4.h: Remove, this file is no longer included
2889 anywhere.
2890
28912004-08-11 Joel Brobecker <brobecker@gnat.com>
2892
2893 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2894 that file is now empty.
dbf3ada7
JB
2895 (termdef): Remove prototype, function no longer used.
2896
4c525ef6
JB
28972004-08-11 Joel Brobecker <brobecker@gnat.com>
2898
2899 * doc/gdbint.texinfo (Host Definition): Remove documentation
2900 for USE_O_NOCTTY, no longer used.
2901 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2902 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2903
82e0b968
JB
29042004-08-11 Joel Brobecker <brobecker@gnat.com>
2905
2906 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2907 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2908 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2909
f2acbe1c
MK
29102004-08-11 Mark Kettenis <kettenis@gnu.org>
2911
daa98270
MK
2912 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2913 instead of FIVE_ARG_PTRACE.
2914
f2acbe1c
MK
2915 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2916 (new_tty): Use O_NOCTTY unconditionally.
2917
cc377e6b
MK
29182004-08-10 Mark Kettenis <kettenis@gnu.org>
2919
2920 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2921 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2922 fflush on stdout.
2923
3bcc18fa
JB
29242004-08-10 Joel Brobecker <brobecker@gnat.com>
2925
2926 * xcoff_symfile_finish: Replace last call to xmfree by call
2927 to xfree.
2928
7936743b
AC
29292004-08-10 Andrew Cagney <cagney@gnu.org>
2930
cc503c8a
AC
2931 * main.c (captured_main): Delete call to init_malloc.
2932 * defs.h (init_malloc): Delete declaration.
2933 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2934 (init_malloc): Delete functions.
2935
2dc74dc1
AC
2936 * defs.h (xmfree): Delete.
2937 * utils.c (xmfree): Delete function.
2938 (xfree): Inline calls to xmfree and mfree.
2939 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2940 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2941 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2942 * somread.c (som_symfile_finish): Ditto.
2943 * objfiles.c (allocate_objfile, free_objfile):
2944 * nlmread.c (nlm_symfile_finish): Ditto.
2945 * hpread.c (hpread_symfile_finish): Ditto.
2946 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2947 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2948 * coffread.c (coff_symfile_finish): Ditto.
2949
aa2ee5f6
AC
2950 * defs.h (xmcalloc): Delete declaration.
2951 * utils.c (xmcalloc): Delete.
2952 (xcalloc): Inline calls to xmcalloc and mcalloc.
2953 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2954 xcalloc and xfree.
2955 * symtab.c (create_demangled_names_hash): Ditto.
2956
0efffb96
AC
2957 * defs.h (xmrealloc): Delete.
2958 * utils.c (xmrealloc): Delete.
2959 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2960 * symmisc.c (extend_psymbol_list): Use xrealloc.
2961 * source.c (find_source_lines): Ditto.
2962 * hpread.c (hpread_lookup_type): Ditto.
2963 * dbxread.c (add_bincl_to_list): Ditto.
2964
7936743b
AC
2965 * utils.c (xmmalloc): Delete.
2966 (xmalloc): Inline xmmalloc and mmalloc calls.
2967 (msavestring): Use xmalloc.
2968 * defs.h (xmmalloc): Delete declaration.
2969 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2970 xmmalloc.
2971 * symmisc.c (extend_psymbol_list): Ditto.
2972 * symfile.c (init_psymbol_list): Ditto.
2973 * source.c (find_source_lines): Ditto.
2974 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2975 * elfread.c (elf_symtab_read): Ditto.
2976 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2977 * coffread.c (coff_symfile_init): Ditto.
2978
252ab814
DC
29792004-08-10 David Carlton <carlton@bactrian.org>
2980
2981 * MAINTAINERS: Remove David Carlton from c++ testsuite
2982 maintainers.
2983
8f5ba92b
JG
29842004-08-10 Jerome Guitton <guitton@gnat.com>
2985
2986 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2987 print a line feed before the prompt.
2988
21749010
MK
29892004-08-10 Mark Kettenis <kettenis@gnu.org>
2990
2991 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2992
1f011ce2
JB
29932004-08-09 Joel Brobecker <brobecker@gnat.com>
2994
2995 General cleanup of the AIX xm include file:
2996 * config/xm-aix4.h (fd_set): Remove undefine.
2997 Remove include of <sys/select.h>.
2998 (HAVE_TERMIO): Remove define.
2999 (USG): Likewise.
3000 (NULL): Remove redefine.
3001 (alloca): Remove #pragma.
3002 (vfork): Remove define.
3003 (termdef): Remove.
3004 (SIGWINCH_HANDLER): Remove.
3005 (SIGWINCH_HANDLER_BODY): Remove.
3006
cf4e7692
MK
30072004-08-09 Mark Kettenis <kettenis@gnu.org>
3008
3009 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3010 GDB_OSABI_OPENBSD_ELF.
3011
ac5754fa
MK
30122004-08-07 Robert Millan <robertmh@gnu.org>
3013
3014 * bsd-kvm.c: Check for nlist.h before including it.
3015
086ec9eb
MK
30162004-08-09 Mark Kettenis <kettenis@gnu.org>
3017
bbe06c74
MK
3018 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3019 sigcontext' offset consistency checks for ancient BSD.
3020
3aa7b3b3
MK
3021 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3022
086ec9eb
MK
3023 * configure.in: Check for <sys/types.h>. Check return and
3024 argument types of ptrace.
3025 * configure, config.in: Regenerate.
3026
09991fa0
JB
30272004-08-09 Jim Blandy <jimb@redhat.com>
3028
3029 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3030 rs6000_register_sim_regno): Doc fixes.
3031
fed7ba43
JB
30322004-08-08 Joel Brobecker <brobecker@gnat.com>
3033
3034 * mips-tdep.c: Include "floatformat.h".
3035 (n32n64_floatformat_always_valid): New function.
3036 (floatformat_n32n64_long_double_big): New constant.
3037 (mips_gdbarch_init): Set size and format of long double
3038 for N32 and N64 ABIs.
3039 * Makefile.in (mips-tdep.o): Update dependencies.
3040
456fcf94
AC
30412004-08-08 Andrew Cagney <cagney@gnu.org>
3042
2f9b146e
AC
3043 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3044 print. Improve script's error messages.
3045 * gdbarch.h: Re-generate.
3046
456fcf94
AC
3047 * gdbarch.sh (pformat): New function.
3048 (float_format, double_format, long_double_format): List with bit
3049 members. Use pformat when printing.
3050 * gdbarch.c, gdbarch.h: Re-generate.
3051
69e9e646
NW
30522004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3053
3054 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3055 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3056 (ppcnbsd_supply_pcb): New function.
3057 (_initialize_ppcnbsd_nat): New prototype and function.
3058 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3059 (LOADLIBES): New variable.
3060 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3061
5ef2d0aa
AC
30622004-08-08 Andrew Cagney <cagney@gnu.org>
3063
3064 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3065 (builtin_type_ieee_double, builtin_type_ia64_quad)
3066 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3067 BE/LE floating-point types.
3068 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3069 (builtin_type_ieee_double, builtin_type_ia64_quad)
3070 (builtin_type_ia64_spill): Declare.
3071 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3072 (floatformat_ieee_double, floatformat_arm_ext)
3073 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3074 of LE/BE floatformats.
3075 * doublest.h: (struct floatformat, floatformat_ieee_single)
3076 (floatformat_ieee_double, floatformat_arm_ext)
3077 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3078
5c7f2947
MK
30792004-08-08 Mark Kettenis <kettenis@gnu.org>
3080
ecac404d
MK
3081 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3082
9b8607ce
MK
3083 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3084 instead of regcache_raw_supply when storing the registers.
3085
f6052080
MK
3086 * i386gnu-nat.c: Update copyright year.
3087 (gnu_store_registers): Don't use deprecated_registers and
3088 deprecated_registers_valid. Use regcache_valid_p and
3089 regcache_raw_supply instead.
3090
17777823
MK
3091 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3092 frame_pc_unwind.
3093
5240ceac
MK
3094 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3095 variables. Incapitalized "process".
3096
5c7f2947
MK
3097 * configure.in: Add cursesX to the list of possible curses libs.
3098 Add cursesX.h to the list of possible curses headers.
3099 * configure, config.in: Regenerate.
3100
da7d81e3
NW
31012004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3102
3103 * configure.in: Test for struct lwp in <sys/lwp.h>.
3104 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3105 the offset of l_addr in struct lwp.
3106
7f245d65
NW
31072004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3108
3109 * bsd-kvm.c: Include "gdbcore.h"
3110 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3111
47b3f456
AC
31122004-08-07 Andrew Cagney <cagney@gnu.org>
3113
70bd8e24
AC
3114 * gdbtypes.c (build_flt, build_complex): New functions.
3115 (gdbtypes_post_init): Use.
3116
9b0dea39
AC
3117 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3118
5cf7abac
AC
3119 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3120 through to builtin_type_uint128.
3121
64d2b26d
AC
3122 * c-exp.y: Use builtin_type function to obtain builtin types.
3123
7ad6570d
AC
3124 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3125 builtin_uint128.
3126 * gdbtypes.c (gdbtypes_post_init): Update.
3127 (build_gdbtypes): Move initialization of builtin_type_int0
3128 through to builtin_type_uint128 from here ...
3129 (_initialize_gdbtypes): ... to here.
3130 * d10v-tdep.c (d10v_register_type): Update.
3131
47b3f456
AC
3132 * doublest.c: Update copyright.
3133 (floatformat_from_length): Call error when floatformat is NULL.
3134 (extract_floating_by_length): Remove NULL fmt check.
3135 (store_floating_by_length): Ditto.
3136
0a8146bf
AC
31372004-08-07 Andrew Cagney <cagney@gnu.org>
3138
3139 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3140 that the register is valid.
3141
c0ccb908
MK
31422004-08-05 Mark Kettenis <kettenis@chello.nl>
3143
8e6bed05
MK
3144 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3145 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3146 struct frame_info *. Use safe_frame_unwind_memory instead of
3147 deprecated_read_memory_nobpt.
3148 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3149 changed signature of i386_linux_sigtramp_start and
3150 i386_linux_rt_sigtramp_start.
3151
24f9f5e3
MK
3152 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3153 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3154 instead of deprecated_read_memory_nobpt.
3155 (i386nbsd_sigtramp_p): Adjust for changed signature of
3156 i386nbsd_sigtramp_offset.
3157
c822af0c
MK
3158 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3159 safe_frame_unwind_memory instead of target_read_memory.
3160
c0ccb908
MK
3161 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3162 !NO_SYS_FILE.
3163 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3164 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3165 (_initialize_kernel_u_addr): Remove prototype and function.
3166 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3167 !NO_SYS_FILE.
3168 * xcoffread.c: Likewise.
3169
b9e1c0d6
MK
31702004-08-06 Mark Kettenis <kettenis@gnu.org>
3171
3172 * vax-nat.c: New file.
3173 * vaxbsd-nat.c: Tweak comment.
3174 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3175 vaxnbsd-tdep.c.
3176 (vax-nat.o): New dependency.
3177 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3178 (vax-*-ultrix2*): Remove.
3179 * config/vax/vax.mh: New file.
3180 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3181 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3182 (vax_register_u_addr): New prototype.
3183 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3184 * config/vax/vaxult2.mh: Remove file.
3185 * config/vax/vaxult.mh: Remove file.
3186 * config/vax/vaxbsd.mh: Remove file.
3187 * config/vax/vax.mt (TM_FILE): Remove.
3188 * config/vax/tm-vaxbsd.h: Remove file.
3189
9ad7bec7
JB
31902004-08-06 Joel Brobecker <brobecker@gnat.com>
3191
3192 * aix-thread.c (get_signaled_thread): New function.
3193 (iter_trap): Delete, no longer used.
3194 (iter_tid): New function.
3195 (pd_update): Find the thread that received the SIGTRAP signal
3196 by first locating the kernel thread, and then finding its
3197 associated thread.
3198
bf0d233d
UW
31992004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3200
3201 * lin-lwp.c (child_wait): Continue inferior after processing
3202 PTRACE_EVENT_CLONE event.
3203
d0f853e1
NN
32042004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3205
3206 * MAINTAINERS: Add self to Write-After-Approval.
3207
ab14aeb0
JJ
32082004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3209
3210 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3211 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3212
9c8dbfa9
AC
32132004-08-05 Andrew Cagney <cagney@gnu.org>
3214
c8f3ca46
AC
3215 * config/xm-sysv4.h: Delete file.
3216 * config/mips/xm-irix5.h: Delete file.
3217 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3218 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3219 * config/ia64/xm-aix.h: Delete file.
3220 * config/ia64/aix.mh (XM_FILE): Delete.
3221 * config/pa/xm-hppah.h: Delete file.
3222 * config/pa/hpux11w.mh (XM_FILE): Delete.
3223 * config/pa/hpux11.mh (XM_FILE): Delete.
3224 * config/pa/hpux1020.mh (XM_FILE): Delete.
3225 * config/pa/hppahpux.mh (XM_FILE): Delete.
3226
5f7daaff
AC
3227 * config/alpha/xm-alphalinux.h: Delete file.
3228 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3229 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3230 * config/alpha/xm-alphaosf.h: Delete file.
3231 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3232 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3233 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3234 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3235
69babf95
AC
3236 * config/i386/xm-i386v.h: Delete file.
3237 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3238 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3239 * config/i386/xm-i386sco.h: Delete file.
3240 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3241 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3242 * config/i386/xm-i386v4.h: Delete file.
3243 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3244 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3245 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3246 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3247
6f009c8a
AC
3248 * config/vax/xm-vax.h: Delete file.
3249 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3250 * config/vax/xm-vaxult2.h: Delete file.
3251 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3252 * config/vax/vaxult2.mh (XM_FILE): Delete.
3253 * config/vax/xm-vaxult.h: Delete file.
3254 * config/vax/vaxult.mh (XM_FILE): Delete.
3255 * config/vax/xm-vaxbsd.h: Delete file.
3256 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3257
9c8dbfa9
AC
3258 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3259 * gdbarch.h, gdbarch.c: Re-generate.
3260 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3261 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3262 * frame.h: Delete deprecated_read_fp from comments.
3263 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3264 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3265
84367a3e
MK
32662004-08-04 Mark Kettenis <kettenis@gnu.org>
3267
9c8e3411
MK
3268 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3269 trampoline in OpenBSD 3.5-current.
3270
b87bc0d8
MK
3271 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3272 SSE registers.
3273
84367a3e
MK
3274 * Makefile.in: Remove embedded page breaks.
3275
a44bddec
JB
32762004-08-04 Jim Blandy <jimb@redhat.com>
3277
7ab3286f
JB
3278 * regcache.c (regcache_raw_read): Assert that, after calling
3279 target_fetch_registers, the register we're reading is cached.
3280
a44bddec
JB
3281 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3282 a call to 'internal_error', with a more helpful error message.
3283 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3284 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3285
35124113
AC
32862004-08-04 Andrew Cagney <cagney@gnu.org>
3287
3288 * Makefile.in: Update dependencies.
3289
9f643768
JB
32902004-08-04 Jim Blandy <jimb@redhat.com>
3291
6ced10dd
JB
3292 Change the layout of the PowerPC E500 raw register cache to allow
3293 the lower 32-bit halves of the GPRS to be their own raw registers,
3294 not pseudoregisters.
3295 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3296 add ppc_ev0_upper_regnum flag.
3297 * rs6000-tdep.c: #include "reggroups.h".
3298 (spe_register_p): Recognize the ev upper half registers as SPE
3299 registers.
3300 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3301 registers.
3302 (e500_move_ev_register): New function.
3303 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3304 vector registers are the pseudo-registers now, formed by splicing
3305 together the gprs and the upper-half registers.
3306 (e500_register_reggroup_p): New function.
3307 (P): Macro deleted.
3308 (P8, A4): New macro.
3309 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3310 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3311 macros.
3312 (registers_e500): Rearrange register set so that the raw register
3313 set contains 32-bit GPRs and upper-half registers, and the SPE
3314 vector registers become pseudo-registers.
3315 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3316 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3317 register numbers are now the same for the E500 as they are for
3318 other PowerPC variants. Register e500_register_reggroup_p as the
3319 register group function for the E500.
3320 * Makefile.in (rs6000-tdep.o): Update dependencies.
3321
3322 Adapt PPC E500 native support to the new raw regcache layout.
3323 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3324 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3325 (fetch_spe_register, store_spe_register): Handle fetching/storing
3326 all the SPE registers at once, if regno == -1. These now take
3327 over the job of fetch_spe_registers and store_spe_registers.
3328 (fetch_spe_registers, store_spe_registers): Deleted.
3329 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3330 unconditionally; they're always raw. Fetch/store SPE upper half
3331 registers, if present, instead of ev registers.
3332 (fetch_register, store_register): Remove sanity checks: gprs are
3333 never pseudo-registers now, so we never need to even mention any
3334 registers that are ever pseudoregisters.
3335
9f643768
JB
3336 Use a fixed register numbering when communicating with the PowerPC
3337 simulator.
3338 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3339 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3340 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3341 New functions.
3342 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3343 init_sim_regno_table.
3344 * Makefile.in (gdb_sim_ppc_h): New variable.
3345 (rs6000-tdep.o): Update dependencies.
3346
1e2279c8
AC
33472004-08-02 Andrew Cagney <cagney@gnu.org>
3348
1d94326f
AC
3349 * cris-tdep.c (cris_register_size): Restore function, still used
3350 locally.
3351
331ae7ed
AC
3352 * gdbarch.sh (deprecated_target_read_fp)
3353 (deprecated_frame_locals_address, deprecated_frame_args_address)
3354 (deprecated_frame_chain_valid, deprecated_frame_chain)
3355 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3356 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3357 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3358 * gdbarch.h, gdbarch.c: Re-generate.
3359 * regcache.c (deprecated_read_fp): Do not call
3360 DEPRECATED_TARGET_READ_FP_P.
3361 * infcmd.c (default_print_registers_info): Do not call
3362 DEPRECATED_DO_REGISTERS_INFO.
3363 * frame-base.c (default_frame_locals_address): Do not call
3364 DEPRECATED_FRAME_LOCALS_ADDRESS.
3365 (default_frame_args_address): Do not call
3366 DEPRECATED_FRAME_ARGS_ADDRESS.
3367
1e2279c8
AC
3368 * gdbarch.sh (deprecated_register_raw_size)
3369 (deprecated_register_virtual_size:int): Delete.
3370 * gdbarch.h, gdbarch.c: Re-generate.
3371 * cris-tdep.c (cris_register_size): Delete.
3372 (cris_gdbarch_init): Update.
3373 * alpha-tdep.c (alpha_register_raw_size)
3374 (alpha_register_virtual_size): Delete.
3375 (alpha_gdbarch_init): Update.
3376
a90c06b4
AC
3377 * gdbarch.sh (deprecated_register_virtual_type)
3378 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3379 (deprecated_dummy_write_sp): Delete.
3380 * gdbarch.h, gdbarch.c: Re-generate.
3381
f42accbe
AC
3382 * gdbarch.sh (deprecated_register_bytes): Delete.
3383 * gdbarch.h, gdbarch.c: Re-generate.
3384 * regcache.c (deprecated_register_bytes): New function.
3385 * regcache.h (deprecated_register_bytes): Declare.
3386 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3387 * v850-tdep.c (v850_gdbarch_init): Update.
3388 * sh64-tdep.c (sh64_gdbarch_init): Update.
3389 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3390 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3391 * mcore-tdep.c (mcore_gdbarch_init): Update.
3392 * cris-tdep.c (cris_gdbarch_init): Update.
3393 * arm-tdep.c (arm_gdbarch_init): Update.
3394 * remote.c (init_remote_state): Update.
3395 * remote-vx.c (vx_prepare_to_store): Update.
3396 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3397 * irix5-nat.c (fetch_core_registers): Update.
3398 * cris-tdep.c (cris_register_bytes_ok): Update.
3399 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3400
45c9dd44
AC
3401 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3402 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3403 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3404 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3405 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3406 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3407 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3408 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3409 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3410 with mips_insn16 and mips_insn32.
3411
3acba339
AC
3412 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3413 * rs6000-tdep.c (rs6000_push_dummy_call)
3414 (rs6000_extract_return_value): Use register_size.
3415 * xstormy16-tdep.c (xstormy16_get_saved_register)
3416 (xstormy16_extract_return_value): Ditto.
3417 * valops.c (value_assign): Ditto.
3418 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3419 * v850-tdep.c (v850_extract_return_value): Ditto.
3420 * tracepoint.c (collect_symbol): Ditto.
3421 * target.c (debug_print_register): Ditto.
3422 * stack.c (frame_info): Ditto.
3423 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3424 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3425 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3426 (store_register_using_P): Ditto.
3427 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3428 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3429 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3430 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3431 * regcache.c (deprecated_read_register_bytes)
3432 (deprecated_write_register_bytes, read_register)
3433 (write_register): Ditto.
3434 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3435 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3436 * monitor.c (monitor_supply_register, monitor_fetch_register)
3437 (monitor_store_register): Ditto.
3438 * mn10300-tdep.c (mn10300_pop_frame_regular)
3439 (mn10300_print_register): Ditto.
3440 * mipsv4-nat.c (fill_fpregset): Ditto.
3441 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3442 (mips64_fill_fpregset): Ditto.
3443 * mi/mi-main.c (register_changed_p, get_register)
3444 (mi_cmd_data_write_register_values): Ditto.
3445 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3446 * irix5-nat.c (fill_gregset, fetch_core_registers):
3447 * infrun.c (write_inferior_status_register): Ditto.
3448 * infptrace.c (fetch_register, store_register): Ditto.
3449 * infcmd.c (default_print_registers_info): Ditto.
3450 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3451 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3452 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3453 * hpux-thread.c (hpux_thread_fetch_registers)
3454 (hpux_thread_store_registers): Ditto.
3455 * hppah-nat.c (store_inferior_registers, fetch_register):
3456 * findvar.c (value_from_register): Ditto.
3457 * dve3900-rom.c (fetch_bitmapped_register):
3458 * cris-tdep.c (cris_gdbarch_init): Ditto.
3459 * alpha-tdep.h: Ditto.
3460 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3461
01e1877c
AC
3462 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3463 DEPRECATED_REGISTER_RAW_SIZE from comments.
3464 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3465 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3466 DEPRECATED_REGISTER_RAW_SIZE.
3467 * findvar.c (value_of_register): Simplify by assuming that the
3468 registers raw and virtual sizes are identical.
3469 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3470 comment.
3471 * arch-utils.c (generic_register_size): Simplify by assuming
3472 register_type.
3473
73f458fb
AC
3474 * regcache.c (legacy_read_register_gen, real_register)
3475 (legacy_write_register_gen): Delete, not used.
3476
336a3131
AC
3477 * regcache.c (struct regcache_descr): Delete legacy_p.
3478 (init_legacy_regcache_descr): Delete function.
3479 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3480 Do not use deprecated register functions.
3481 (regcache_raw_read, deprecated_write_register_gen):
3482 (deprecated_read_register_gen, regcache_raw_write): Delete code
3483 predicated on legacy_p.
3484 (register_size): Delete check against register raw size.
3485
c1d546cd
AC
3486 * cris-tdep.c (cris_register_type): Replace
3487 cris_register_virtual_type.
3488 (cris_gdbarch_init): Update, set register_type.
3489
48c2c0a6
AC
3490 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3491 * gdbarch.h, gdbarch.c: Re-generate.
3492 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3493 (arm_gdbarch_init) Do not set frameless function invocation.
3494 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3495 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3496 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3497 (frv_gdbarch_init): Do not set frameless function invocation.
3498 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3499 * sh-tdep.c (sh_gdbarch_init): Ditto.
3500 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3501 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3502 * avr-tdep.c (avr_gdbarch_init): Ditto.
3503
474093a6
AC
3504 * blockframe.c (legacy_frame_chain_valid): Delete function.
3505
3c109c8b
AC
3506 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3507 and pc. Update comments.
3508 (pc_in_dummy_frame): Delete function.
3509 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3510 use the "id".
3511 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3512 call_hi, top and pc, use the id.
3513 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3514
96860204
AC
3515 * dummy-frame.c: Include "gdb_string.h".
3516 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3517 (generic_save_dummy_frame_tos): Delete.
3518 (dummy_frame_push): New function, replaces above.
3519 * dummy-frame.h: Update copyright.
3520 (dummy_frame_push): Declare.
3521 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3522 (generic_save_call_dummy_addr): Delete declarations.
3523 * infcall.c: Include "dummy-frame.h".
3524 (call_function_by_hand): Add locals caller_regcache,
3525 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3526 with call to frame_save_as_regcache plus cleanup. Delete calls to
3527 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3528 Move clear_proceed_status to just before the resume, add call to
3529 dummy_frame_push (discard cleanup).
3530 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3531 (dummy-frame.o): Add $(gdb_string_h).
3532
d67ec5db
AC
35332004-08-01 Andrew Cagney <cagney@gnu.org>
3534
3535 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3536 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3537 * dummy-frame.c (find_dummy_frame): Delete.
3538 (struct dummy_frame_cache, dummy_frame_sniffer)
3539 (dummy_frame_prev_register, dummy_frame_this_id)
3540 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3541 frame unwinder using a dummy_frame_cache.
3542
a81dcb05
AC
35432004-08-01 Andrew Cagney <cagney@gnu.org>
3544
3545 * frame.h (frame_save_as_regcache): Declare.
3546 * frame.c (frame_save_as_regcache): New function.
3547 (do_frame_read_register): Replace do_frame_unwind_register.
3548 (frame_pop): Use frame_save_as_regcache.
3549 * dummy-frame.c (generic_push_dummy_frame): Use
3550 frame_save_as_regcache.
3551
aa495d11
JB
35522004-08-01 Joel Brobecker <brobecker@gnat.com>
3553
3554 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3555 file as included until we record the first line in the linetable.
3556
ff65ac78
AC
35572004-08-01 Andrew Cagney <cagney@gnu.org>
3558
3559 * frame.h (deprecated_pop_dummy_frame)
3560 (deprecated_read_register_dummy)
3561 (deprecated_generic_find_dummy_frame): Delete.
3562 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3563 (deprecated_read_register_dummy)
3564 (deprecated_find_dummy_frame_regcache)
3565 (discard_innermost_dummy)
3566 (deprecated_pop_dummy_frame): Delete.
3567 (dummy_frame_this_id): Simplify.
3568 (struct dummy_frame): Delete "fp" and "sp".
3569 (find_dummy_frame): Simplify.
3570 (generic_push_dummy_frame): Do not set "fp" or "sp".
3571 (fprint_dummy_frames): Do not print "fp" and "sp"
3572
37bdc87e
MK
35732004-08-01 Mark Kettenis <kettenis@gnu.org>
3574
3575 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3576 (struct i386_insn): New structure.
3577 (i386_match_insn): New function.
3578 (i386_frame_setup_skip_insns): New variable.
3579 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3580 array i386_frame_setup_insns of instructions that should be
3581 skipped inside the frame setup sequence.
3582
8241eaa6
AC
35832004-08-01 Andrew Cagney <cagney@gnu.org>
3584
5bc602c7
AC
3585 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3586 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3587 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3588 * stack.c (frame_info): Delete references to
3589 DEPRECATED_FRAME_INIT_SAVED_REGS and
3590 deprecated_get_frame_saved_regs.
3591 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3592 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3593 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3594 (frame_unwind_register_signed)
3595 (frame_unwind_register_unsigned)
3596 (frame_unwind_unsigned_register): Use register_size.
3597 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3598 (deprecated_frame_xmalloc_with_cleanup)
3599 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3600 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3601
03d363a1
AC
3602 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3603 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3604 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3605 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3606
8241eaa6
AC
3607 * infcall.c (call_function_by_hand): Do not use
3608 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3609 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3610 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3611 DEPRECATED_STACK_ALIGN.
3612
f00df8b7
AC
36132004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3614
3615 Committed by Andrew Cagney.
3616 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3617
eec63939
AC
36182004-08-01 Andrew Cagney <cagney@gnu.org>
3619
3620 * mips-tdep.c (mips16_frame_cache)
3621 (mips16_frame_this_id, mips16_frame_prev_register)
3622 (mips16_frame_unwind, mips16_frame_sniffer)
3623 (mips16_frame_base_address, mips16_frame_base)
3624 (mips16_frame_base_sniffer, mips32_frame_cache)
3625 (mips32_frame_this_id, mips32_frame_prev_register)
3626 (mips32_frame_unwind, mips32_frame_sniffer)
3627 (mips32_frame_base_address, mips32_frame_base)
3628 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3629 separate heuristic mips16 and mips32 unwinders.
3630 (mips_stub_frame_cache, mips_stub_frame_this_id)
3631 (mips_stub_frame_prev_register)
3632 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3633 (mips_stub_frame_base_address, mips_stub_frame_base)
3634 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3635 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3636 match true mdebug frames.
3637 (non_heuristic_proc_desc): Add forward declaration.
3638
e66299b3
AC
36392004-08-01 Andrew Cagney <cagney@gnu.org>
3640
83cbbf3e
AC
3641 * config/mips/tm-irix6.h: Delete file.
3642 * config/mips/tm-irix5.h: Delete file.
3643 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3644 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3645
22d41b37
AC
3646 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3647 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3648 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3649 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3650 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3651 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3652 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3653 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3654 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3655 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3656 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3657 (TARGET_SIGNAL_RAW_VALUES): Delete.
3658 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3659 Delete.
3660 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3661 (TARGET_HW_WATCH_LIMIT): Delete.
3662 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3663 * minimon.h: Delete file.
3664
e66299b3
AC
3665 * trad-frame.c (trad_frame_get_this_base)
3666 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3667 functions.
3668 * trad-frame.h (trad_frame_set_this_base)
3669 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3670
1f67027d
AC
36712004-07-31 Andrew Cagney <cagney@gnu.org>
3672
3673 * trad-frame.c (trad_frame_get_prev_register): Rename
3674 trad_frame_get_prev_register.
3675 * vax-tdep.c (vax_frame_prev_register): Update.
3676 * trad-frame.h: Update.
3677 * trad-frame.c (trad_frame_get_register): Update.
3678 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3679 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3680 Update.
3681 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3682 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3683 Update.
3684 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3685 Update.
3686 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3687 Update.
3688 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3689 Update.
3690 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3691 Update.
3692 * s390-tdep.c (s390_frame_prev_register)
3693 (s390_stub_frame_prev_register)
3694 (s390_sigtramp_frame_prev_register): Update.
3695 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3696 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3697 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3698 * m88k-tdep.c (m88k_frame_prev_register)
3699 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3700 * m32r-tdep.c (m32r_frame_prev_register): Update.
3701 * hppa-tdep.c (hppa_frame_prev_register_helper)
3702 * frv-tdep.c (frv_frame_prev_register): Update.
3703 * d10v-tdep.c (d10v_frame_prev_register): Update.
3704 * cris-tdep.c (cris_frame_prev_register): Update.
3705 * avr-tdep.c (avr_frame_prev_register): Update.
3706 * arm-tdep.c (arm_prologue_prev_register)
3707 (arm_sigtramp_prev_register): Update.
3708
c1bf6f65
AC
37092004-07-31 Andrew Cagney <cagney@gnu.org>
3710
3711 * frame.h (legacy_saved_regs_unwind)
3712 (legacy_frame_chain_valid, legacy_frame_p)
3713 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3714 * dummy-frame.c (dummy_frame_this_id): Simplify.
3715 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3716 * frame.c (struct frame_info): Delete the field "type".
3717 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3718 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3719 (legacy_saved_regs_unwind, legacy_frame_p)
3720 (frame_type_from_pc): Delete.
3721 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3722 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3723
dc856692
MK
37242004-07-31 Mark Kettenis <kettenis@gnu.org>
3725
5a5effe1
MK
3726 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3727 indentation.
3728
d4fd50a6
MK
3729 * mips-nat.c: Remove file.
3730 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3731 (mips-nat.o): Remove dependency.
3732
2689df5a
MK
3733 * infptrace.c: Update copyright year.
3734 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3735 explicitly setting the buffer to all zeroes.
3736
dc856692
MK
3737 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3738 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3739
763910e0
AC
37402004-07-30 Andrew Cagney <cagney@gnu.org>
3741
3742 * GDB 6.2 released from gdb_6_2-branch.
3743
0b66e38c
EZ
37442004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3745
3746 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3747
3748 * exec.c (exec_file_attach):
3749 * nto-tdep.c (nto_find_and_open_solib):
3750 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3751 * solib.c (solib_open):
3752 * somsolib.c (som_solib_sizeof_symbol_table):
3753 * source.c (is_regular_file, openp, open_source_file):
3754 * symfile.c (symfile_bfd_open):
3755 * wince.c (upload_to_device): Differentiate between the search for
3756 binary and source files.
3757
be7d7357
AC
37582004-07-30 Andrew Cagney <cagney@gnu.org>
3759
3760 * complaints.c (_initialize_complaints): Pass NULL to
3761 add_setshow_zinteger_cmd for help_doc.
3762 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3763
ddc9cd0f
AC
37642004-07-30 Andrew Cagney <cagney@gnu.org>
3765
3766 Fix PR i18n/761.
3767 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3768 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3769 $(PACKAGE).pot and update-po.
3770 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3771 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3772 (update-po): New rules.
3773 (localedir): Define using autoconf.
3774 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3775 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3776 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3777 * configure.in: Generate CATALOGS and LINGUAS from contents of
3778 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3779 * configure: Re-generate.
3780 * po/gdbtext: New file
3781
e92f3704
JG
37822004-07-30 Jerome Guitton <guitton@gnat.com>
3783
3784 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3785 order.
3786
b0f35d58
DL
37872004-07-30 David Lecomber <dsl@sources.redhat.com>
3788
3789 * dwarf2read.c (read_file_scope): Set producer if attribute
3790 present.
3791 (struct dwarf2_cu): Added new member producer.
3792
ce7d4522
JG
37932004-07-30 Jerome Guitton <guitton@gnat.com>
3794
3795 * inflow.c (kill_command): release file handles in BFD.
3796 * exec.c (exec_file_attach): Ditto.
3797 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3798
05ee07c7
AC
37992004-07-29 Andrew Cagney <cagney@gnu.org>
3800
3801 * PROBLEMS (mips-irix): Note that it is broken.
3802
62eceb47
AC
38032004-07-29 Andrew Cagney <cagney@gnu.org>
3804
e57b8d41
AC
3805 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3806 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3807
d334389b
AC
3808 * config/xm-nbsd.h: Delete file.
3809 * config/arm/xm-nbsd.h: Delete file.
3810 * config/i386/xm-nbsd.h: Delete file.
3811 * config/ns32k/xm-nbsd.h: Delete file.
3812 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3813 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3814 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3815 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3816 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3817
e910f676
AC
3818 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3819 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3820 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3821 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3822 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3823 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3824
6fa856b9
AC
3825 * config/powerpc/xm-linux.h: Delete empty file.
3826 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3827 * config/powerpc/linux.mh (XM_FILE): Delete.
3828 * config/m68k/xm-linux.h: Delete empty file.
3829 * config/m68k/linux.mh (XM_FILE): Delete.
3830 * config/ia64/xm-linux.h: Delete empty file.
3831 * config/ia64/linux.mh (XM_FILE): Delete.
3832 * config/arm/xm-linux.h: Delete empty file.
3833 * config/arm/linux.mh (XM_FILE): Delete.
3834
471ae5ae
AC
3835 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3836 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3837 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3838 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3839 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3840 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3841 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3842 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3843
62eceb47
AC
3844 * config/m68k/xm-m68k.h: Delete file.
3845 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3846 copyright.
3847 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3848 * config/pa/xm-linux.h: Delete empty file.
3849 * config/pa/linux.mh (XM_FILE): Delete.
3850 * config/i386/xm-i386.h: Delete empty file.
3851 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3852 "i386/xm-i386.h".
3853 * config/i386/obsdaout.mh (XM_FILE): Delete.
3854 * config/i386/obsd64.mh (XM_FILE): Delete.
3855 * config/i386/fbsd64.mh (XM_FILE): Delete.
3856 * config/i386/nto.mh (XM_FILE): Delete.
3857 * config/i386/obsd.mh (XM_FILE): Delete.
3858 * config/i386/linux64.mh (XM_FILE): Delete.
3859 * config/i386/linux.mh (XM_FILE): Delete.
3860 * config/i386/i386sol2.mh (XM_FILE): Delete.
3861 * config/i386/i386gnu.mh (XM_FILE): Delete.
3862 * config/i386/fbsd.mh (XM_FILE): Delete.
3863 * config/i386/nbsd64.mh (XM_FILE): Delete.
3864
c35f4ffc
AC
38652004-07-29 Andrew Cagney <cagney@gnu.org>
3866
3867 * config/pa/xm-linux.h: Do not include "floatformat.h".
3868 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3869 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3870 * config/i386/xm-i386.h: Do not include "floatformat.h".
3871 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3872 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3873 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3874 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3875 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3876 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3877 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3878 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3879 * configure, config.in: Regenerate.
3880 * configure.host (gdb_host_float_format, gdb_host_double_format)
3881 (gdb_host_long_double_format): Set according to the host.
3882
624a44a3
AC
38832004-07-29 Andrew Cagney <cagney@gnu.org>
3884
3885 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3886
0dea2468
AC
38872004-07-28 Andrew Cagney <cagney@gnu.org>
3888
3889 * PROBLEMS: Mention threads/1650.
3890 * NEWS: Mention the NPTL fix.
3891
b3f42336
AC
38922004-07-28 Andrew Cagney <cagney@gnu.org>
3893
3894 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3895 (add_setshow_cmd_full): Make static.
3896 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3897 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3898 * cli/cli-decode.c (add_setshow_filename_cmd)
3899 (add_setshow_string_cmd): New functions.
3900 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3901 * mips-tdep.c (_initialize_mips_tdep): Update.
3902 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3903 * cli/cli-logging.c (_initialize_cli_logging): Update.
3904 * complaints.c (_initialize_complaints): Update.
3905 * remote.c (_initialize_remote): Update.
3906
3b64bf98
AC
39072004-07-28 Andrew Cagney <cagney@gnu.org>
3908
3909 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3910 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3911 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3912 print parameters. Make string parameters constant.
3913 * command.h: Update. Update copyright.
3914 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3915 * observer.c (_initialize_observer): Ditto.
3916 * frame.c (_initialize_frame): Ditto.
3917 * complaints.c (_initialize_complaints): Ditto.
3918 * maint.c (_initialize_maint_cmds): Ditto.
3919 * target.c (initialize_targets): Ditto.
3920 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3921 * infcall.c (_initialize_infcall): Ditto.
3922 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3923 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3924 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3925 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3926 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3927
e9667a65
AC
39282004-07-28 Andrew Cagney <cagney@gnu.org>
3929
54a5b07d
AC
3930 * gdbtypes.c (lookup_primitive_typename): Delete function.
3931 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3932 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3933 * gdbtypes.c (lookup_typename): Ditto.
3934 * f-exp.y (yylex): Ditto.
3935 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3936
e9667a65
AC
3937 * scm-lang.c (c_builtin_types): Delete extern declaration.
3938 (scm_language_defn): Replace
3939 string_char_type and primitive_type_vector with
3940 la_language_arch_info.
3941 * jv-lang.c (java_language_defn): Replace
3942 string_char_type and primitive_type_vector with
3943 la_language_arch_info.
3944 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3945 c_builtin_types in comment.
3946 * c-lang.h (struct language_arch_info): Declare opaque.
3947 (c_language_arch_info): Declare.
3948 (c_builtin_types): Delete declaration.
3949 * c-lang.c (c_language_arch_info): Set string_char_type to
3950 builtin_char, not builtin_true_char. Make global.
3951 (c_builtin_types): Delete array.
3952 (asm_language_defn, minimal_language_defn): Replace
3953 string_char_type and primitive_type_vector with
3954 la_language_arch_info.
3955
685419e2
AC
39562004-07-28 Andrew Cagney <cagney@gnu.org>
3957
3958 * gdbtypes.h (struct builtin_type): Rename true_char to
3959 builtin_true_char.
3960 * gdbtypes.c (gdbtypes_post_init): Update.
3961 * c-lang.c (arch_info): New function.
3962 (enum c_primitive_types): New enum.
3963 (c_language_defn): Instead of string_char_type and
3964 primitive_type_vector set la_language_arch_info.
3965
5a44ea29
AC
39662004-07-28 Andrew Cagney <cagney@gnu.org>
3967
3968 * language.h (struct language_arch_info): Fix typo
3969 s/primative/primitive/.
3970 * gdbtypes.c (lookup_primitive_typename): Ditto.
3971 * language.c (language_lookup_primitive_type_by_name)
3972 (unknown_language_arch_info): Ditto.
3973
f290d38e
AC
39742004-07-27 Andrew Cagney <cagney@gnu.org>
3975
3976 * defs.h (enum language): Add nr_languages.
3977 * language.h (struct language_arch_info): Define.
3978 (struct language_defn): Add la_language_arch_info.
3979 (language_lookup_primative_type_by_name): Declare.
3980 (language_string_char_type): Declare.
3981 * language.c (_initialize_language, language_gdbarch_post_init)
3982 (struct language_gdbarch, language_gdbarch_data): Implement
3983 per-architecture language information.
3984 (unknown_language_arch_info, language_string_char_type)
3985 (language_lookup_primative_type_by_name): New functions.
3986 (unknown_language_defn, auto_language_defn)
3987 (local_language_defn): Set la_language_arch_info to
3988 unknown_language_arch_info.
3989 (unknown_builtin_types): Delete.
3990 * gdbtypes.c (lookup_primitive_typename): Use
3991 language_lookup_primative_type_by_name.
3992 (create_string_type): Use language_string_char_type.
3993 * values.c (value_from_string): Use language_string_char_type.
3994 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3995 * p-lang.c (pascal_language_defn): Ditto.
3996 * m2-lang.c (m2_language_defn): Ditto.
3997 * jv-lang.c (java_language_defn): Ditto.
3998 * objc-lang.c (objc_language_defn): Ditto.
3999 * f-lang.c (f_language_defn): Ditto.
4000 * c-lang.c (c_language_defn, cplus_language_defn)
4001 (asm_language_defn, minimal_language_defn): Ditto.
4002
000177f0
AC
40032004-07-27 Andrew Cagney <cagney@gnu.org>
4004
4005 * gdbtypes.h (struct builtin_type): Declare.
4006 (builtin_type): Declare.
4007 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4008 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4009 (gdbtypes_post_init): New function.
4010 (builtin_type): New function.
4011
e22f895c
KI
40122004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4013
4014 * remote-m32r-sdi.c: Fix breakpoint bug.
4015 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4016 recv_char_data, recv_long_data): New functions to replace communication
4017 sequences.
4018
536517dd
MC
40192004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4020
4021 Document PR threads/1650.
4022 * PROBLEMS (Threads): Document problem with many threads
4023
a0a44d18
AC
40242004-07-26 Andrew Cagney <cagney@gnu.org>
4025
4026 * gdb-mi.el: Move from here ...
4027 * mi/gdb-mi.el: ... to here.
4028
7ac4ac06
AC
40292004-07-26 Andrew Cagney <cagney@gnu.org>
4030
4031 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4032 * main.c (captured_main): When in batch mode always detach.
4033
a1b461bf
AC
40342004-07-26 Andrew Cagney <cagney@gnu.org>
4035
4036 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4037 and h8300 as broken.
4038 * NEWS: END-OF-LIFE frame compatibility module.
4039 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4040 specific comments.
4041
cb1a6d5f
AC
40422004-07-26 Andrew Cagney <cagney@gnu.org>
4043
4044 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4045 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4046 * wince.c (_initialize_wince): Update.
4047 * win32-nat.c (_initialize_win32_nat): Update.
4048 * varobj.c (_initialize_varobj): Update.
4049 * valops.c (_initialize_valops): Update.
4050 * utils.c (initialize_utils, initialize_utils): Update.
4051 * tui/tui-win.c (_initialize_tui_win): Update.
4052 * top.c (init_main): Update.
4053 * symfile.c (_initialize_symfile): Update.
4054 * source.c (_initialize_source): Update.
4055 * somsolib.c (_initialize_som_solib): Update.
4056 * solib.c (_initialize_solib): Update.
4057 * solib-frv.c (_initialize_frv_solib): Update.
4058 * serial.c (_initialize_serial): Update.
4059 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4060 * remote.c (_initialize_remote, _initialize_remote): Update.
4061 * remote-vx.c (_initialize_vx): Update.
4062 * remote-utils.c (_initialize_sr_support): Update.
4063 * remote-sds.c (_initialize_remote_sds): Update.
4064 * remote-mips.c (_initialize_remote_mips): Update.
4065 * remote-e7000.c (_initialize_remote_e7000): Update.
4066 * proc-api.c (_initialize_proc_api): Update.
4067 * printcmd.c: Update.
4068 * parse.c (_initialize_parse): Update.
4069 * pa64solib.c (_initialize_pa64_solib): Update.
4070 * p-valprint.c (_initialize_pascal_valprint): Update.
4071 * monitor.c (_initialize_remote_monitors): Update.
4072 * mips-tdep.c (_initialize_mips_tdep): Update.
4073 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4074 * maint.c (_initialize_maint_cmds): Update.
4075 * lin-lwp.c (_initialize_lin_lwp): Update.
4076 * language.c (_initialize_language): Update.
4077 * kod.c (_initialize_kod): Update.
4078 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4079 * i386-tdep.c (_initialize_i386_tdep): Update.
4080 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4081 * gdbarch.sh: Update.
4082 * gdbarch.c: Re-generate.
4083 * gdb-events.sh: Update.
4084 * gdb-events.c: Re-generate.
4085 * frame.c (_initialize_frame): Update.
4086 * exec.c: Update.
4087 * demangle.c (_initialize_demangler): Update.
4088 * dcache.c (_initialize_dcache): Update.
4089 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4090 * cp-valprint.c (_initialize_cp_valprint): Update.
4091 * corefile.c (_initialize_core): Update.
4092 * command.h: Update.
4093 * cli/cli-decode.h: Update.
4094 * cli/cli-cmds.c (init_cli_cmds): Update.
4095 * charset.c (_initialize_charset): Update.
4096 * breakpoint.c (_initialize_breakpoint): Update.
4097 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4098 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4099 * aix-thread.c (_initialize_aix_thread): Update.
4100
b4632131
MK
41012004-07-24 Mark Kettenis <kettenis@gnu.org>
4102
4103 Partial fix for PR backtrace/1718.
4104 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4105 that GCC migrates into the prolugue. Don't handle any
4106 instructions that clobber %ebx.
4107
822c9732
AC
41082004-07-23 Andrew Cagney <cagney@gnu.org>
4109
4110 Use regcache_raw_collect instead of regcache_collect.
4111 * regcache.h (regcache_collect): Delete declaration.
4112 * regcache.c (regcache_colect): Delete function.
4113 * win32-nat.c (do_child_store_inferior_registers): Update.
4114 * sol-thread.c (sol_thread_store_registers): Update.
4115 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4116 * rs6000-nat.c (store_register): Update.
4117 * remote.c (store_register_using_P, remote_store_registers): Update.
4118 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4119 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4120 (fill_vrregset, store_spe_registers, fill_gregset)
4121 (fill_gregset): Update.
4122 * nto-procfs.c (procfs_store_registers): Update.
4123 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4124 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4125 * m68klinux-nat.c (store_register, fill_gregset): Update.
4126 * m68k-tdep.c (fill_gregset): Update.
4127 * infptrace.c (store_register): Update.
4128 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4129 * i386-linux-nat.c (store_register, fill_gregset): Update.
4130 * hppa-linux-nat.c (fill_gregset): Update.
4131 * go32-nat.c (store_register): Update.
4132 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4133 (store_fp_regs): Update.
4134 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4135 (store_nwfpe_extended, store_fpregister, store_fpregs)
4136 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4137 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4138 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4139 (store_regs_user_thread, store_regs_kernel_thread): Update.
4140
32b05c07
MK
41412004-07-24 Mark Kettenis <kettenis@gnu.org>
4142
4143 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4144 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4145 encoding.
4146 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4147 member of `struct comp_unit'.
4148
8567c30f
AC
41492004-07-23 Andrew Cagney <cagney@gnu.org>
4150
4151 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4152 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4153
f6da8dd8
MH
41542004-07-23 Martin Hunt <hunt@redhat.com>
4155 Kevin Buettner <kevinb@redhat.com>
4156
4157 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4158 alignment was being added to the offset instead of multiplied.
4159
bd921882
MK
41602004-07-23 Mark Kettenis <kettenis@gnu.org>
4161
24f033e8
MK
4162 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4163 changed signal trampoline in OpenBSD 3.5-current.
4164
90f3cecd
MK
4165 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4166 <machine/pcb.h> and "bsd-kvm.h".
4167 (sparc64nbsd_supply_pcb): New function.
4168 (_initialize_sparc64nbsd_nat): Renamed from
4169 _initialize_sparcnbsd_nat. Enable libkvm interface.
4170 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4171 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4172 (LOADLIBES): New variable.
4173
a4954a62
MK
4174 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4175
bd921882
MK
4176 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4177
23a6d369
AC
41782004-07-21 Andrew Cagney <cagney@gnu.org>
4179
4180 Use regcache_raw_supply instead of supply_register.
4181 * regcache.h (supply_register): Delete declaration.
4182 * regcache.c (supply_register): Delete function.
4183 * wince.c (do_child_fetch_inferior_registers): Update.
4184 * win32-nat.c (do_child_fetch_inferior_registers)
4185 (fetch_elf_core_registers): Update.
4186 * v850ice.c (v850ice_fetch_registers): Update.
4187 * thread-db.c (thread_db_store_registers): Update.
4188 * sol-thread.c (sol_thread_store_registers): Update.
4189 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4190 * rs6000-nat.c (fetch_register): Update.
4191 * rom68k-rom.c (rom68k_supply_one_register): Update.
4192 * remote.c (remote_wait, remote_async_wait): Update.
4193 * remote-st.c (get_hex_regs): Update.
4194 * remote-sim.c (gdbsim_fetch_register): Update.
4195 * remote-sds.c (sds_fetch_registers): Update.
4196 * remote-rdp.c (remote_rdp_fetch_register): Update.
4197 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4198 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4199 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4200 * remote-hms.c (init_hms_cmds): Update.
4201 * remote-est.c (init_est_cmds): Update.
4202 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4203 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4204 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4205 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4206 (fetch_register, supply_vrregset, supply_vrregset)
4207 (fetch_spe_registers): Update.
4208 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4209 * monitor.c (monitor_supply_register): Update.
4210 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4211 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4212 (mipsnbsd_supply_fpreg): Update.
4213 * mips-nat.c (fetch_inferior_registers)
4214 (fetch_core_registers): Update.
4215 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4216 (supply_fpregset, mips64_supply_gregset)
4217 (mips64_supply_fpregset): Update.
4218 * m68klinux-nat.c (fetch_register, supply_gregset)
4219 (supply_fpregset): Update.
4220 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4221 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4222 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4223 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4224 * infptrace.c (fetch_register): Update.
4225 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4226 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4227 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4228 (gnu_fetch_registers, gnu_store_registers): Update.
4229 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4230 * i386-linux-nat.c (fetch_register, supply_gregset)
4231 (dummy_sse_values): Update.
4232 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4233 * hppah-nat.c (fetch_register): Update.
4234 * hppa-linux-nat.c (fetch_register, supply_gregset)
4235 (supply_fpregset): Update.
4236 * go32-nat.c (fetch_register): Update.
4237 * dve3900-rom.c (fetch_bitmapped_register)
4238 (_initialize_r3900_rom): Update.
4239 * cris-tdep.c (supply_gregset): Update.
4240 * abug-rom.c (init_abug_cmds): Update.
4241 * core-aout.c (fetch_core_registers): Update.
4242 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4243 (fetch_register, fetch_fp_register): Update.
4244 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4245 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4246 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4247 * alphanbsd-tdep.c (fetch_core_registers): Update.
4248 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4249 * alpha-nat.c (fetch_osf_core_registers)
4250 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4251 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4252 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4253
73cc75f3
AC
42542004-07-21 Andrew Cagney <cagney@gnu.org>
4255
4256 * PROBLEMS: Mention breakpoints/1702.
4257 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4258 that is known to work.
4259
a53c66de
AC
42602004-07-21 Andrew Cagney <cagney@gnu.org>
4261
4262 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4263 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4264 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4265 (handle_inferior_event): Wrap call to deprecated
4266 IGNORE_HELPER_CALL in #ifdef.
4267 * config/mips/tm-nbsd.h: Update.
4268
708ff411
JB
42692004-07-20 Jim Blandy <jimb@redhat.com>
4270
412b3060
JB
4271 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4272 bfd_mach_ppc has no segment registers.
4273
13ac140c
JB
4274 Include PowerPC SPR numbers for special-purpose registers.
4275 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4276 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4277 new member in initializer.
4278 (S, S4, SN4, S64): New macros for defining special-purpose
4279 registers.
4280 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4281 registers_403, registers_403GC, registers_505, registers_860,
4282 registers_601, registers_602, registers_603, registers_604,
4283 registers_750, registers_e500): Use them.
4284
708ff411
JB
4285 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4286 replace references with expression used to initialize variable.
4287
1f602b35
AC
42882004-07-20 Andrew Cagney <cagney@gnu.org>
4289
4290 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4291 read_memory_nobpt.
4292 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4293 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4294 (s390_sigtramp_frame_sniffer): Update.
4295 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4296 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4297 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4298 (mips32_fetch_instruction): Update.
4299 * mcore-tdep.c (get_insn): Update.
4300 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4301 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4302 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4303 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4304 (i386_linux_rt_sigtramp_start): Update.
4305 * i386-linux-nat.c (child_resume): Update.
4306 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4307 * hppa-linux-tdep.c (insns_match_pattern): Update.
4308 * gdbcore.h: Update.
4309 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4310 * frame.c (safe_frame_unwind_memory): Update.
4311 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4312 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4313 * alpha-tdep.c (alpha_read_insn): Update.
4314
2cd8546d
AC
43152004-07-20 Andrew Cagney <cagney@gnu.org>
4316
4317 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4318 containing both bytes and mask. Add "frame_type".
4319 * tramp-frame.c (tramp_frame_start): Update.
4320 (tramp_frame_prepend_unwinder): Update.
4321 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4322 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4323 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4324 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4325
f928dd62
EZ
43262004-07-19 Eli Zaretskii <eliz@gnu.org>
4327
4328 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4329 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4330 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4331 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4332
d5c560f7
AC
43332004-07-17 Andrew Cagney <cagney@gnu.org>
4334
860660cb
AC
4335 * NEWS, PROBLEMS: Update for 6.2.
4336
8c266f54
AC
4337 * README: Update to 6.2.
4338
a552edd9
AC
4339 * utils.c (xvasprintf): Call xstrvprintf.
4340
c4a172b5
AC
4341 * parse.c: Update copyright.
4342 (null_post_parser): Eliminate ARGSUSED.
4343
da745b36
AC
4344 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4345 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4346 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4347
9cbc6ef0
AC
4348 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4349 * ppc-linux-nat.c: Use "Linux kernel".
4350 * hppa-linux-tdep.c: Use GNU/Linux.
4351 * hppa-linux-nat.c: Use GNU/Linux.
4352 * dwarfread.c: Add [sic] to use of Linux.
4353
1b89295f
AC
4354 * hppa-linux-nat.c: Do not include <string.h>.
4355 (supply_fpregset): Remove "register" attribute.
4356
d5c560f7
AC
4357 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4358
7ddd7709
MK
43592004-07-17 Mark Kettenis <kettenis@gnu.org>
4360
b1d19a62
MK
4361 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4362 * configure, config.in: Regenerated.
4363
7ddd7709
MK
4364 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4365 "bsd-kvm.h".
4366 (vaxbsd_supply_pcb): New function.
4367 (_initialize_vaxbsd_nat): New prototype and function.
4368 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4369 solib-sunos.o.
4370 (LOADLIBES): New variable.
4371 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4372 (LOADLIBES): New variable.
4373 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4374 (LOADLIBES): New variable.
4375 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4376
2c07db7a
AC
43772004-07-16 Andrew Cagney <cagney@gnu.org>
4378
4379 * defs.h (event_loop_p): Replace variable declaration with macro,
4380 always 1.
4381 * main.c (captured_main): Delete options "-async" and "-noasync".
4382 (event_loop_p): Delete variable.
4383 * NEWS: Mention that "-async" and "-noasync" were removed.
4384
717eb1cf
AC
43852004-07-16 Andrew Cagney <cagney@gnu.org>
4386
4387 * remote-m32r-sdi.c: Re-indent.
4388
c101bc14
JB
43892004-07-16 Jim Blandy <jimb@redhat.com>
4390
5109a438
JB
4391 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4392 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4393 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4394 missing MPC823 SPRs.
4395 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4396 incorrect. (This was corrected in GDB's register name tables on
4397 2004-07-14.)
4398
c101bc14
JB
4399 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4400 should be "esasrr" ("ESA Save and Restore Register").
4401
7ce450bd
AC
44022004-07-16 Andrew Cagney <cagney@gnu.org>
4403
4404 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4405 calls, no longer applicable. Update comments and rename parameter
4406 "step_frame" to "return_frame".
4407
ca73dd9d
AC
44082004-07-16 Andrew Cagney <cagney@gnu.org>
4409
4410 * frame.c (fprint_field): New function.
4411 (fprint_frame_id): Use fprint_field.
4412
31941f6d
JB
44132004-07-15 Joel Brobecker <brobecker@gnat.com>
4414
4415 * ada-lang.c (ada_language_defn): Remove commented out code.
4416
f86a7158
JB
44172004-07-15 Jim Blandy <jimb@redhat.com>
4418
4419 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4420 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4421
c24791ec
JB
44222004-07-14 Jim Blandy <jimb@redhat.com>
4423
29bb1356
JB
4424 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4425
cc98b5cc
JB
4426 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4427
8f088af7
JB
4428 * ppc-tdep.h (ppc_num_srs): New enum constant.
4429
0ea0ec5f
JB
4430 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4431 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4432 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4433 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4434 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4435 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4436 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4437 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4438 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4439 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4440 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4441 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4442 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4443 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4444 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4445 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4446 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4447 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4448 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4449 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4450 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4451 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4452 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4453 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4454 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4455 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4456 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4457 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4458 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4459 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4460 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4461 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4462 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4463 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4464 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4465 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4466 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4467 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4468 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4469 special-purpose register numbers.
4470
c24791ec
JB
4471 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4472 manual mentions 'md_twb', but many mention 'm_twb', and at that
4473 point in the register list.)
4474
d833db3b
AC
44752004-07-14 Andrew Cagney <cagney@gnu.org>
4476
4477 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4478 instead of "internal-error".
4479
080228b2
JB
44802004-07-10 Joel Brobecker <brobecker@gnat.com>
4481
4482 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4483 that was inserted inside a comment.
4484
c268433a
RC
44852004-07-10 Randolph Chung <tausq@debian.org>
4486
4487 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4488 function.
4489 (hppa_hpux_push_dummy_code): New function.
4490 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4491 Set find_global_pointer method.
4492
71009278
MK
44932004-07-10 Mark Kettenis <kettenis@gnu.org>
4494
4495 * NEWS: Mention BSD libkvm interface.
4496
b2fa5097
MS
44972004-07-10 Michael Snyder <msnyder@redhat.com>
4498
4499 * symfile.c (generic_load): Comment typo.
4500 * stack.c (get_selected_block): Ditto.
4501 * regcache.c (regcache_cooked_read): Ditto.
4502 * monitor.c (monitor_debug): Ditto.
4503 * mips-tdep.c (mips_read_pc): Ditto.
4504 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4505 * gdb_mbuild.sh: Ditto.
4506 * gdbarch.sh: Ditto.
4507 * gdbarch.h: Ditto.
4508
c3e5cd34
PH
45092004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4510
8a2225b2
PH
4511 * ada-tasks.c: Remove file.
4512
c3e5cd34
PH
4513 Remove ARI problems:
4514
4515 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4516 beginning of line.
4517
4518 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4519 Add comment.
4520 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4521 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4522 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4523 (UMIN_OF_SIZE): Remove.
4524 (max_of_type): New function to replace orphan macro in gdbtypes.h
4525 (min_of_type): Ditto.
4526 (discrete_type_high_bound): Use max_of_type.
4527 (discrete_type_low_bound): Use min_of_type.
4528 (possible_user_operator_p): Move operator to beginning of line.
4529 (ada_is_variant_part): Ditto.
4530 (ensure_lval): Rewrite to avoid deprecated operations.
4531 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4532 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4533 (ada_enum_name): Remove assignments in 'if' statements.
4534 (build_ada_types): Add gdbarch parameter.
4535 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4536 with gdbarch_data_register_post_init.
4537 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4538 add_show_from_set.
4539
4540 * ada-valprint.c (inspect_it): Remove declaration.
4541 (repeat_count_threshold): Remove declaration.
4542 (ada_print_floating): Remove assignments in 'if' statements.
4543 (print_str): Move operator to beginning of line.
4544
61ce229a
JB
45452004-07-08 Jim Blandy <jimb@redhat.com>
4546
4547 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4548
09bcec80
BR
45492004-07-08 Bob Rossi <bob@brasko.net>
4550
4551 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4552
31c27f77
JJ
45532004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4554
4555 * language.h (struct_language_defn): Add new function pointer:
4556 la_class_name_from_physname. Also add new prototype for
4557 language_class_name_from_physname.
4558 * language.c (language_class_name_from_physname): New function.
4559 (unk_lang_class_name): Ditto.
4560 (unknown_language_defn, auto_language_defn): Change
4561 to add unk_lang_class_name function pointer for
4562 la_class_name_from_physname.
4563 (local_language_defn): Ditto.
4564 * dwarf2read.c (guess_structure_name): Change to call
4565 language_class_name_from_physname.
4566 (determine_class_name): Ditto.
4567 * cp-support.c (class_name_from_physname): Renamed.
4568 (cp_class_name_from_physname): New name of function.
4569 * cp-support.h: Ditto.
4570 * c-lang.c (c_language_defn): Change to add NULL
4571 for class_name_from_physname function pointer.
4572 (cplus_language_defn): Change to add cp_class_name_from_physname.
4573 * jv-lang.c (java_class_name_physname): New function.
4574 (java_find_last_component): New static routine.
4575 (java_language_defn): Add java_class_name_from_physname pointer.
4576 * ada-lang.c (ada_language_defn): Change to add NULL
4577 for class_name_from_physname function pointer.
4578 * f-lang.c (f_language_defn): Ditto.
4579 * m2-lang.c (m2_language_defn): Ditto.
4580 * objc-lang.c (objc_language_defn): Ditto.
4581 * p-lang.c (pascal_language_defn): Ditto.
4582 * scm-lang.c (scm_language_defn): Ditto.
4583
ee28ca0f
AC
45842004-07-06 Andrew Cagney <cagney@gnu.org>
4585
4586 Patch from Bart Robinson.
4587 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4588 (O_LARGEFILE): Define to 0, if not defined.
4589
fdb1bf9d
MK
45902004-07-03 Mark Kettenis <kettenis@gnu.org>
4591
cb162ff6
MK
4592 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4593 <machine/pcb.h> and "bsd-kvm.h".
4594 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4595 (m68kbsd_supply_pcb): New function.
4596 (_initialize_m68kbsd_nat): New prototype and function.
4597 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4598 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4599 (LOADLIBES): New variable.
4600 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4601 (LOADLIBES): New variable.
4602
fdb1bf9d
MK
4603 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4604
963c4174
MK
46052004-07-03 Mark Kettenis <kettenis@gnu.org>
4606
4607 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4608 <sys/proc.h>.
4609 (bsd_kvm_cmdlist): New variable.
4610 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4611 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4612 command and "kvm proc" command.
4613 * Makefile.in (bsd-kvm.o): Update dependencies.
4614
533f1d8f
MK
46152004-07-02 Mark Kettenis <kettenis@gnu.org>
4616
4617 * osabi.c: Update copyright year.
4618 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4619 notes if EI_OSABI is set to ELFOSABI_HPUX.
4620
6780dcde
MS
46212004-07-01 Michael Snyder <msnyder@redhat.com>
4622
4623 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4624 that seems to have gotten whacked out of line.
4625
67bebe79
MK
46262004-07-01 Mark Kettenis <kettenis@gnu.org>
4627
4628 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4629 code.
4630
0b5d8877
PH
46312004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4632
4633 * ada-lang.c (decode_packed_array): Minor change to comment.
4634 (ada_value_slice_ptr): New function.
4635 (ada_value_slice): New function.
4636 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4637 test. Don't know why it is there.
4638 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4639 to avoid dereferencing huge arrays from which one is slicing.
4640 (empty_array): Correct to return an array rather than
4641 a subrange value.
4642 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4643 on empty arrays (let'em use 'FIRST instead).
4644
19c1ef65
PH
46452004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4646
4647 Address complaints from gdb_ari.sh:
4648
4649 * ada-exp.y: Include gdb_string.h rather than string.h.
4650 (convert_char_literal): Reformat declaration.
4651 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4652 * ada-lex.l: Change use of free to xfree (the macro would do so
4653 anyway, but this is harmless).
4654 Include gdb_string.h rather than string.h.
4655 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4656
4657 * ada-lang.c (parse): Remove K&Rism in parameter list.
4658 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4659
d81cbc94
MK
46602004-06-30 Mark Kettenis <kettenis@gnu.org>
4661
4662 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4663 dead code.
4664
07681759
MK
46652004-06-30 Mark Kettenis <kettenis@gnu.org>
4666
4667 * alphabsd-nat.c: Update copyright year.
4668 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4669
f7948b5f
JB
46702004-06-29 Joel Brobecker <brobecker@gnat.com>
4671
6e0cdd28 4672 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4673 (i386_cygwin_in_solib_call_trampoline): New function.
4674 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4675 and skip_trampoline_code gdbarch methods.
4676
8f113c9a
JB
46772004-06-29 Jim Blandy <jimb@redhat.com>
4678
4679 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4680 name actually used in the dependency lists.
4681
97dc871c
RC
46822004-06-29 Randolph Chung <tausq@debian.org>
4683
4684 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4685
47216e51
CV
46862004-06-29 Corinna Vinschen <vinschen@redhat.com>
4687
4688 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4689 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4690 functionality.
4691
e623b504
AC
46922004-06-28 Andrew Cagney <cagney@gnu.org>
4693
4694 * defs.h (xstrvprintf): Declare.
4695 * utils.c (xstrvprintf): New function.
4696 (internal_vproblem, xstrprintf, xasprintf)
4697 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4698 * serial.c (serial_printf): Ditto.
4699 * complaints.c (vcomplaint): Ditto.
4700
79acc9b3
CV
47012004-06-29 Corinna Vinschen <vinschen@redhat.com>
4702
4703 * infcmd.c (attach_command): Move call to target_terminal_inferior
4704 behind loading symbol table.
4705
1daf35d9
AC
47062004-06-28 Andrew Cagney <cagney@gnu.org>
4707
4708 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4709 change - add back extern deprecated_ui_loop_hook declaration.
4710
b435e160
AC
47112004-06-28 Andrew Cagney <cagney@gnu.org>
4712
4713 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4714 xstrprintf.
4715 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4716 (c_value_of_variable): Ditto.
4717 * utils.c (internal_vproblem): Ditto.
4718 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4719 * remote.c (add_packet_config_cmd): Ditto.
4720 * remote-rdp.c (rdp_set_command_line): Ditto.
4721 * regcache.c (regcache_dump): Ditto.
4722 * frv-tdep.c (new_variant, new_variant): Ditto.
4723 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4724 (fbsd_find_memory_regions): Ditto.
4725 * breakpoint.c (create_thread_event_breakpoint)
4726 (create_breakpoints): Ditto.
4727 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4728 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4729
06d5cf63
JB
47302004-06-28 Joel Brobecker <brobecker@gnat.com>
4731
4732 * ada-lang.c: Re-indent file, with some massaging to help indent
4733 a bit when the result is otherwise really too ugly.
4734
35809fad
UW
47352004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4736
4737 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4738 code_addr_p and special_addr_p to 'unsigned int'.
4739
40e20472
MK
47402004-06-27 Mark Kettenis <kettenis@gnu.org>
4741
4742 * i386v4-nat.c: Update copyright year and tweak comment.
4743 (regmap): Remove trailing comma.
4744 (supply_gregset): Rename local variable i to regnum. Call
4745 regcache_raw_supply instead of supply_register.
4746 (fill_gregset): Rename argument regno to regnum. Call
4747 regcache_raw_collect instead of regcache_collect.
4748
12b0b6de
UW
47492004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4750
4751 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4752 and special_addr_p.
4753 (frame_id_build, frame_id_build_special): Update comments.
4754 (frame_id_build_wild): New prototype.
4755 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4756 struct frame_id fields.
4757 (frame_id_build_wild): New function.
4758 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4759
47b42a3e
MK
47602004-06-27 Mark Kettenis <kettenis@gnu.org>
4761
4762 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4763 hppabsd-tdep.c.
4764
1265e4aa
JB
47652004-06-27 Joel Brobecker <brobecker@gnat.com>
4766
4767 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4768
76a01679
JB
47692004-06-27 Joel Brobecker <brobecker@gnat.com>
4770
4771 * ada-lang.c: Re-indent file.
4772
7aca490a
JB
47732004-06-27 Joel Brobecker <brobecker@gnat.com>
4774
4775 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4776 (no_symtab_msg): Likewise.
4777
5e987968
AS
47782004-06-27 Andreas Schwab <schwab@suse.de>
4779
4780 * source.c: Fix whitespace.
4781
315c4276
MK
47822004-06-27 Mark Kettenis <kettenis@gnu.org>
4783
d15be926
MK
4784 * configure.in: Include <sys/param.h> for td_pcb test.
4785 * configure: Regenerated.
4786
9062529b
MK
4787 * i386nbsd-nat.c: New file.
4788 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4789 i386obsd-nat.c and i386obsd-tdep.c.
4790 (i386nbsd-nat.o): New dependency.
4791 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4792 bsd-kvm.o.
4793 (LOADLIBES): New variable.
4794 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4795 bsd-kvm.o.
4796 (LOADLIBES): New variable.
4797
8010310e
MK
4798 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4799 (LOADLIBES): New variable.
4800
efe1d7b9
MK
4801 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4802 fetching from BSD_KVM_PADDR. Correctly lookup address for
4803 "_thread0".
4804
315c4276
MK
4805 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4806 "bsd-kvm.h".
4807 (amd64fbsd_supply_pcb): New funcion.
4808 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4809
399cfac6
DL
48102004-06-27 <david@streamline-computing.com>
4811
4812 Partial fix for PR cli/1056.
4813 * valarith.c: Check for zero in division and remainder
4814 evaluation.
4815
6235f9c8
MK
48162004-06-27 Mark Kettenis <kettenis@gnu.org>
4817
4818 * i387-tdep.c: Remove excessive whitespace.
4819
2726dafc
AC
48202004-06-26 Andrew Cagney <cagney@gnu.org>
4821
4822 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4823 * gdb-events.h, gdb-events.c: Re-generate.
4824 * tui/tui-hooks.c (tui_install_hooks): Update.
4825 (tui_remove_hooks): Update.
4826 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4827
0e56aeaf
MK
48282004-06-26 Mark Kettenis <kettenis@gnu.org>
4829
cb461069
MK
4830 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4831 (gregset_t, fpregset_t): Remove typedefs.
4832 (REG_OFFSET): Rename argument.
4833 (amd64bsd_r_reg_offset): Rename from reg_offset.
4834 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4835 Remove functions.
4836 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4837 of reg_offset.
4838 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4839
ecba89de
MK
4840 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4841
4cd80476
MK
4842 * vax-tdep.c: Tweak comment.
4843
0e56aeaf
MK
4844 Add OpenBSD/hppa support.
4845 * NEWS (New native configurations): Mention OpenBSD/hppa.
4846 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4847 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4848 files.
4849 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4850 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4851 * configure.host: Add hppa*-*-openbsd*.
4852 * configure.tgt: Add hppa*-*-openbsd*.
4853
98bbd631
AC
48542004-06-25 Andrew Cagney <cagney@gnu.org>
4855
4856 * defs.h (deprecated_ui_loop_hook): Deprecated.
4857 * wince.c (child_wait): Update.
4858 * win32-nat.c (child_wait): Update.
4859 * v850ice.c (v850ice_wait): Update.
4860 * top.c (deprecated_ui_loop_hook): Update.
4861 * serial.h: Update.
4862 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4863 (do_unix_readchar): Update.
4864 * ser-tcp.c (net_open): Update.
4865 * remote-sim.c (gdb_os_poll_quit): Update.
4866 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4867
769d7dc4
AC
48682004-06-24 Andrew Cagney <cagney@gnu.org>
4869
4870 * defs.h (deprecated_pre_add_symbol_hook)
4871 (deprecated_post_add_symbol_hook): Deprecated.
4872 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4873 (symbol_file_add_with_addrs_or_offsets): Update references.
4874
11c949aa
AC
48752004-06-24 Andrew Cagney <cagney@gnu.org>
4876
4877 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4878 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4879 * wince.c (ui_loop_hook): Delete extern declaration.
4880 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4881 * v850ice.c (ui_loop_hook): Delete extern declaration..
4882 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4883 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4884 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4885 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4886 ui_loop_hook declaration.
4887
eedc19af
AC
48882004-06-24 Andrew Cagney <cagney@gnu.org>
4889
4890 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4891 entry_func_highpc fields.
4892 * objfiles.c (init_entry_point_info): Do not clear
4893 entry_func_lowpc and entry_func_highpc.
4894 (objfile_relocate): Do not relocate entry_func_lowpc and
4895 entry_func_highpc.
4896 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4897 entry_func_highpc.
4898 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4899 entry_func_highpc.
4900 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4901 entry_func_lowpc and entry_func_highpc with call to
4902 inside_entry_func.
4903
d47079be
MK
49042004-06-24 Mark Kettenis <kettenis@gnu.org>
4905
4906 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4907 quad-precision floating point arguments in registers.
4908
2107e348
MK
49092004-06-24 Mark Kettenis <kettenis@gnu.org>
4910
4911 From Michael Mueller <m.mueller99@kay-mueller.de>:
4912 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4913 account.
4914
46587c42
JJ
49152004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4916
4917 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4918 to -1.
4919 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4920 untriggered watchpoints to a separate if clause. Update function
4921 comment regarding STOPPED_BY_WATCHPOINT argument.
4922
226f5cf4
JB
49232004-06-22 Jim Blandy <jimb@redhat.com>
4924
4925 * gdbarch.sh: Doc fix.
4926
f10683bb
MH
49272004-06-21 Martin Hunt <hunt@redhat.com>
4928 Kevin Buettner <kevinb@redhat.com>
4929
4930 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4931 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4932 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4933 to set_gdbarch_sp_regnum(). Use cooked register number.
4934 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4935
412d5987
AC
49362004-06-21 Andrew Cagney <cagney@gnu.org>
4937
4938 * gdbarch.sh: When the macro field is empty, do not generate a
4939 macro definition. When the macro field is "=", generate the macro
4940 name from the upper-case function name.
4941 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4942 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4943 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4944 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4945 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4946 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4947 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4948 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4949 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4950 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4951 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4952 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4953 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4954 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4955 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4956 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4957 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4958 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4959 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4960 (DEPRECATED_USE_STRUCT_CONVENTION)
4961 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4962 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4963 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4964 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4965 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4966 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4967 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4968 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4969 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4970 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4971 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4972 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4973 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4974 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4975 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4976 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4977 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4978 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4979
68908a3e
AC
49802004-06-21 Andrew Cagney <cagney@gnu.org>
4981
48f7351b
AC
4982 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4983 macro name, and the function rather than macro value. Only wrap
4984 macro print statements in #ifdef. Move format logic to where it
4985 is needed.
4986 * gdbarch.c: Re-generate.
4987
283354d8
AC
4988 * gdbarch.sh (read): Delete "print_p" and "description", add
4989 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4990 Delete references to print_p.
4991 (TARGET_ARCHITECTURE): Delete print predicate.
4992 * gdbarch.c: Re-generate.
4993
68908a3e
AC
4994 * gdbarch.sh: Check that multi-arch methods do not provide a
4995 macro.
4996 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4997 (print_registers_info, print_float_info, print_vector_info)
4998 (adjust_breakpoint_address, remote_translate_xfer_address)
4999 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5000 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5001 name from the multi-arch definition.
5002
a2428dbe
AC
50032004-06-20 Andrew Cagney <cagney@gnu.org>
5004
5005 * gdbarch.sh: Sort by the function, instead of macro name.
5006 * gdbarch.c: Re-generate.
5007
750eb019
AC
50082004-06-20 Andrew Cagney <cagney@gnu.org>
5009
66d659b1
AC
5010 * gdbarch.sh: Use the function, instead of macro name in
5011 errors and the log file.
5012 (return_value): Remove stray ":" in spec.
5013
750eb019
AC
5014 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5015 * gdbarch.h, gdbarch.c: Re-generate.
5016 * Makefile.in (arch-utils.o): Update dependencies.
5017 * values.c (using_struct_return): Move code calling
5018 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5019 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5020 to legacy_return_value, simplify.
5021 * infcmd.c (print_return_value): Move code calling
5022 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5023 to legacy_return_value, simplify.
5024 * infcall.c (call_function_by_hand): Move code calling
5025 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5026 * arch-utils.c: Update copyright. Include "gdbcore.h".
5027 (legacy_return_value): New function.
5028 * arch-utils.h: Update copyright.
5029 (legacy_return_value): Declare.
5030
b5622e8d
AC
50312004-06-20 Andrew Cagney <cagney@gnu.org>
5032
5033 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5034 * gdbarch.h, gdbarch.c: Re-generate.
5035 * values.c (using_struct_return): Update call.
5036 * mcore-tdep.c: Update comment.
5037 * infcall.c (call_function_by_hand): Update comment.
5038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5039 * arch-utils.h (always_use_struct_convention): Update.
5040 * v850-tdep.c (v850_gdbarch_init): Update.
5041 * sh64-tdep.c (sh64_gdbarch_init): Update.
5042 * sh-tdep.c (sh_gdbarch_init): Update.
5043 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5044 * mips-tdep.c (mips_gdbarch_init): Update.
5045 * mcore-tdep.c (mcore_gdbarch_init): Update.
5046 * m32r-tdep.c (m32r_gdbarch_init): Update.
5047 * ia64-tdep.c (ia64_gdbarch_init): Update.
5048 * h8300-tdep.c (h8300_gdbarch_init): Update.
5049 * frv-tdep.c (frv_gdbarch_init): Update.
5050 * cris-tdep.c (cris_gdbarch_init): Update.
5051 * arm-tdep.c (arm_gdbarch_init): Update.
5052 * alpha-tdep.c (alpha_gdbarch_init): Update.
5053
5191de37
MC
50542004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5055
5056 * PROBLEMS: Add more specific information, and a work-around,
5057 for PR gdb/1458.
5058
782263ab
AC
50592004-06-18 Andrew Cagney <cagney@gnu.org>
5060
5061 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5062 * gdbarch.h, gdbarch.c: Re-generate.
5063 * ada-lang.c (ada_finish_decode_line_1): Update.
5064 * infrun.c (handle_inferior_event): Update.
5065 * infcall.c (find_function_addr): Update.
5066 * linespec.c (minsym_found): Update.
5067 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5068 Update.
5069 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5070 * cli/cli-cmds.c (disassemble_command): Update.
5071 * vax-tdep.c (vax_gdbarch_init): Update.
5072
2f305df1
MK
50732004-06-18 Mark Kettenis <kettenis@gnu.org>
5074
5075 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5076
e5fe55f7
AC
50772004-06-17 Andrew Cagney <cagney@gnu.org>
5078
5079 GDB 6.1.1 released from the GDB 6.1 branch.
5080 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5081 * PROBLEMS: Ditto.
5082
473b7be6
DJ
50832004-06-16 Daniel Jacobowitz <dan@debian.org>
5084
5085 PR gdb/1658
5086 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5087 operation as a uleb128. Found by Michael Coulter.
5088
96d887e8
PH
50892004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5090
5091 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5092 make it non-static.
5093 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5094 to ada-lang.h; this is needed to be able to implement the kill command
5095 in multi-task mode.
5096 (task_ptid): Ditto.
5097 (task_entry): Ditto.
5098 (task_list): Ditto.
5099 (ada_build_task_list): Ditto.
5100
5101 * ada-lang.c: Conditionalize routines and data structures related
5102 to breakpoints, exceptions, completion, and symbol caching on
5103 GNAT_GDB, since these are not yet used in the submitted public sources.
5104 (ada_main_name): Editorial: Move definition out of exception-related
5105 code.
5106
31eef181
AC
51072004-06-15 Andrew Cagney <cagney@gnu.org>
5108
5109 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5110 deprecated_pc_in_call_dummy.
5111
2c500098
AM
51122004-06-15 Alan Modra <amodra@bigpond.net.au>
5113
5114 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5115 bfd_get_section_size_before_reloc or _raw_size.
5116 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5117 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5118 (dwarf2_read_section): Likewise.
5119 * elfread.c (elf_locate_sections): Likewise.
5120 * gcore.c (derive_heap_segment): Likewise.
5121 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5122 * remote-e7000.c (e7000_load): Likewise.
5123 * remote-m32r-sdi.c (m32r_load): Likewise.
5124 * remote-mips.c (mips_load_srec): Likewise.
5125 (pmon_load_fast): Likewise.
5126 * remote.c (compare_sections_command): Likewise.
5127 * symfile.c (add_section_size_callback): Likewise.
5128 (load_section_callback): Likewise.
5129 (pc_in_unmapped_range): Likewise.
5130 (pc_in_mapped_range): Likewise.
5131 (sections_overlap): Likewise.
5132 (list_overlays_command): Likewise.
5133 (simple_overlay_update_1): Likewise.
5134 (simple_overlay_update): Likewise.
5135 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5136 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5137
90f943f1
RC
51382004-06-14 Randolph Chung <tausq@debian.org>
5139
5140 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5141 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5142 static.
5143 (hppa_hpux_inferior_created): New function.
5144 (hppa_hpux_init_abi): Register observer.
5145 * symfile.c (hp_cxx_exception_support_initialized)
5146 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5147 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5148
700c15aa
RC
51492004-06-14 Randolph Chung <tausq@debian.org>
5150
3973a7d3
AC
5151 * MAINTAINERS (Write After Approval): Alphabetize my entry
5152 correctly.
700c15aa 5153
cea4838c
AC
51542004-06-14 Andrew Cagney <cagney@gnu.org>
5155
5156 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5157 testsuite maintainer.
5158
97092415
AC
51592004-06-13 Andrew Cagney <cagney@gnu.org>
5160
e8c3165b
AC
5161 * infcmd.c (print_return_value): Fix logic, allow
5162 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5163
bceabdd8
AC
5164 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5165 defining any macros.
5166 * gdbarch.h: Re-generate.
5167
57010b1c
AC
5168 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5169 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5170 * gdbarch.h: Re-generate.
5171
bc87dfa0
AC
5172 * values.c (generic_use_struct_convention): Don't check gcc_p.
5173
15ac804d
AC
5174 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5175 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5176 * gdbarch.h, gdbarch.c: Regenerate.
5177 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5178 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5180 deprecated_max_register_raw_size and
5181 deprecated_max_register_virtual_size.
5182 * v850-tdep.c (v850_gdbarch_init): Ditto.
5183 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5184 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5186 * cris-tdep.c (cris_gdbarch_init): Ditto.
5187
97092415
AC
5188 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5189 * gdbarch.h, gdbarch.c: Re-generate.
5190 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5191 (m68hc11_use_struct_convention): Delete function.
5192 (m68hc11_extract_struct_value_address): Delete function.
5193 (m68hc11_return_value): New function.
5194 (m68hc11_gdbarch_init): Instead of store_return_value,
5195 extract_return_value, return_value_on_stack,
5196 deprecated_extract_struct_value_address and use_struct_convention,
5197 set return_value.
5198 * values.c (using_struct_return): Do not call
5199 RETURN_VALUE_ON_STACK.
5200 * arch-utils.h (generic_return_value_on_stack_not): Delete
5201 declaration.
5202 * arch-utils.c (generic_return_value_on_stack_not): Delete
5203 function.
5204
44e5158b
AC
52052004-06-12 Andrew Cagney <cagney@gnu.org>
5206
5207 * values.c (register_value_being_returned): Delete function.
5208 * infcmd.c (legacy_return_value): Delete function.
5209 * infcall.c (call_function_by_hand): Inline
5210 "register_value_being_returned", simplify.
5211 * values.c (using_struct_return): Update comment, refer to
5212 print_return_value instead of register_value_being_returned.
5213 * infcmd.c (print_return_value): Inline calls to
5214 register_value_being_returned and legacy_return_value. Simplify.
5215
b887c273
RC
52162004-06-11 Randolph Chung <tausq@debian.org>
5217
5218 * somread.c (som_symtab_read): Exclude gcc local symbols.
5219
1b2bfbb9
RC
52202004-06-11 Randolph Chung <tausq@debian.org>
5221
3973a7d3
AC
5222 * infrun.c (handle_inferior_event): Handle the case when a
5223 trampoline ends up in the runtime resolver, and if the trampoline
5224 has no name. Rearrange the code so that all the trampoline
5225 processing happens before other step-out-of-range handling.
1b2bfbb9 5226
a9d61c86
MH
52272004-06-11 Martin Hunt <hunt@redhat.com>
5228
5229 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5230 has no fpu.
5231
2c87cf5a
AC
52322004-06-10 Andrew Cagney <cagney@gnu.org>
5233
5234 * blockframe.c (legacy_inside_entry_func): Delete.
5235 (legacy_frame_chain_valid): Inline call to
5236 legacy_inside_entry_func, simplify.
5237
0b67b468 52382004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5239
5240 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5241 * dwarf2read.c (partial_die_info): Add dirname field.
5242 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5243 (read_partial_die): Save away DW_AT_comp_dir.
5244 * defs.h (symtab_to_filename): Removed.
5245 * source.c (find_and_open_source): Added.
57c22c6c 5246 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5247 (symtab_to_filename): Removed.
5248 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5249 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5250 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5251 symtab_to_filename.
5252 * symtab.h (partial_symtab): Add dirname field.
5253 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5254 (mi_cmd_file_list_exec_source_file): Call new function
5255 symtab_to_fullname to find fullname.
57c22c6c 5256 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5257 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5258 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5259
9a1dd1ad
AC
52602004-06-10 Andrew Cagney <cagney@gnu.org>
5261
239ae8c7
AC
5262 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5263 to generic_use_struct_convention, the default value.
5264
fc720350
AC
5265 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5266 of abort.
5267
9a1dd1ad
AC
5268 * ns32k-tdep.c (ns32k_push_arguments): New function.
5269 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5270 * infcall.c (call_function_by_hand): Call error instead of
5271 legacy_push_arguments.
5272 * value.h (legacy_push_arguments): Delete declaration.
5273 * valops.c (legacy_push_arguments): Delete function.
5274 (value_push): Delete function.
5275
fea25152
BF
52762004-06-10 Brian Ford <ford@vss.fsi.com>
5277
5278 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5279 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5280 info.
5281 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5282
30a4a8e0
AC
52832004-06-10 Andrew Cagney <cagney@gnu.org>
5284
5285 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5286 * gdbarch.h, gdbarch.c: Re-generate.
5287 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5288 parameters.
5289 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5290 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5291 deprecated_pc_in_call_dummy instead of
5292 DEPRECATED_PC_IN_CALL_DUMMY.
5293 (arm_skip_prologue): Ditto.
5294 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5295 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5296 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5297 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5298 Ditto.
5299 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5300 (sh64_init_extra_frame_info, sh64_get_saved_register)
5301 (sh64_pop_frame): Ditto.
5302 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5303 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5304 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5305 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5306 (h8300_pop_frame): Ditto.
5307 * blockframe.c (legacy_inside_entry_func)
5308 (legacy_frame_chain_valid): Ditto.
5309 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5310 to deprecated_pc_in_call_dummy.
5311
81cfbe54
AC
53122004-06-09 Andrew Cagney <cagney@gnu.org>
5313
a1f4a1b6
AC
5314 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5315 provide a default value.
5316 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5317 * gdbarch.h, gdbarch.c: Re-generate.
5318 * arch-utils.c (generic_convert_register_p): Rename
5319 legacy_convert_register_p
5320 (legacy_register_to_value, legacy_value_to_register): Delete
5321 functions.
5322 * arch-utils.h (generic_convert_register_p): Rename
5323 legacy_convert_register_p.
5324 (legacy_register_to_value, legacy_value_to_register): Delete
5325 declarations.
5326
9730f241
AC
5327 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5328 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5329 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5330 * gdbarch.h, gdbarch.c: Re-generate.
5331 * infcmd.c (default_print_registers_info): Simplify.
5332 * findvar.c (value_of_register): Simplify.
5333 * mi/mi-main.c (get_register): Simplify.
5334 * arch-utils.c (legacy_convert_register_p): Always return 0.
5335 (legacy_register_to_value, legacy_value_to_register): Always call
5336 internal_error.
5337
8a1bf479
AC
5338 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5339 #ifdef CLEAR_INSN_CACHE code.
5340 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5341 Delete #ifdef CLEAR_DEFERRED_STORES code.
5342
4b38d6f1
AC
5343 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5344
2d62ecc7
AC
5345 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5346 copyright.
5347 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5348
be4f7469
AC
5349 * config/mips/mipsv4.mh: Delete file.
5350
81cfbe54
AC
5351 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5352 unreferenced macro.
5353 (hpread_adjust_stack_address): Delete declaration.
5354
d966f0cb
AC
53552004-06-08 Andrew Cagney <cagney@gnu.org>
5356
5357 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5358 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5359 PTRACE_ATTACH / PTRACE_DETACH available call error.
5360 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5361 * infttrace.c (update_thread_state_after_attach, attach, detach):
5362 Remove #ifdef wrappers.
5363 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5364 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5365 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5366 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5367 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5368 * config/nm-linux.h (ATTACH_DETACH): Delete.
5369 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5370 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5371 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5372 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5373 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5374
d91670b9
CV
53752004-06-08 Corinna Vinschen <vinschen@redhat.com>
5376
5377 * configure.in: Set $configdir to the right OS specific value.
5378 Use value when setting $tcldir and $tkdir.
5379 * configure: Regenerate.
5380
28ba0b33
PB
53812004-06-06 Paul Brook <paul@codesourcery.com>
5382
5383 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5384 records.
5385
f26caa11
PH
53862004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5387
5388 * ada-lang.c (lookup_symbol_in_language): New function to allow
5389 re-use of another language's symbol lookup code. (Placed here
5390 temporarily while Ada support is being integrated into the public
5391 tree).
5392 (restore_language): New auxiliary function for
5393 lookup_symbol_in_language.
5394 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5395 temporarily while Ada support is being integrated into the public
5396 tree).
5397
d560a54b
AO
53982004-06-08 Alexandre Oliva <aoliva@redhat.com>
5399
e75d110c
AO
5400 * Makefile.in (check//%): New.
5401
d560a54b
AO
5402 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5403 (mn10300_store_return_value): Rewrite.
5404 (mn10300_type_align): New.
5405 (mn10300_use_struct_convention): Rewrite.
5406 (mn10300_return_value): New, using all of the above.
5407 (mn10300_pop_frame_regular): Add saved_regs_size.
5408 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5409
a72fbdb7
AO
5410 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5411 regs if PC is on movm.
5412
01904826
JB
54132004-06-07 Jim Blandy <jimb@redhat.com>
5414
5415 Add native Linux support for the PowerPC E500.
5416 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5417 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5418 all architectures except the E500.
5419 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5420 #definitions.
5421 (struct gdb_evrregset_t): New type.
5422 (have_ptrace_getsetevrregs): New variable.
5423 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5424 fetch_spe_registers): New functions.
5425 (fetch_register): Call fetch_spe_register as appropriate.
5426 Assert that we're only passed raw register numbers.
5427 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5428 Don't fetch gprs if they're pseudoregisters.
5429 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5430 store_spe_registers): New functions.
5431 (store_register): Call store_spe_register as appropriate.
5432 Assert that we're only passed raw register numbers.
5433 (store_ppc_registers): Call store_spe_registers as appropriate.
5434 Don't store gprs if they're pseudoregisters.
5435
f90ef764
JJ
54362004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5437
5438 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5439 struct if one exists, even if we are dealing with a zombie thread.
5440
45b75230
AC
54412004-06-07 Andrew Cagney <cagney@gnu.org>
5442
5443 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5444 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5445 Rename PC_REQUIRES_RUN_BEFORE_USE.
5446 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5447 #ifdef.
5448
1658da49
RC
54492004-06-07 Randolph Chung <tausq@debian.org>
5450
5451 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5452 unwinding after sp has been saved to the stack but before the end
5453 of the prologue, and after the fp has been modified but before it has
5454 been saved to the stack.
5455 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5456 Remove superfluous definitions.
5457 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5458
9a727a3c
RC
54592004-06-07 Guy Martin <gmsoft@gentoo.org>
5460
5461 Committed by Randolph Chung.
5462 * hppa-linux-nat.c: Include the correct version of the header file
5463 depending on the kernel version.
5464
9e500012
RC
54652004-06-06 Randolph Chung <tausq@debian.org>
5466
5467 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5468 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5469
3388d7ff
RC
54702004-06-06 Randolph Chung <tausq@debian.org>
5471
5472 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5473 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5474 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5475 * hppa-tdep.c (hppa_symbol_address): New function definition.
5476 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5477
d49771ef
RC
54782004-06-06 Randolph Chung <tausq@debian.org>
5479
5480 * hppa-tdep.h (struct value): Forward declaration.
5481 (gdbarch_tdep): Define tdep find_global_pointer method.
5482 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5483 associated with the function we are trying to call, and write it
5484 to the gp register.
5485 (hppa32_convert_from_funct_ptr_addr): New function.
5486 (hppa_find_global_pointer): New function.
5487 (hppa_gdbarch_init): Set default find_global_pointer method; set
5488 convert_from_func_ptr_addr method.
5489 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5490 (hppa_linux_init_abi): Set find_global_pointer method.
5491 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5492
7d9b040b
RC
54932004-06-06 Randolph Chung <tausq@debian.org>
5494
5495 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5496 to struct value *function.
5497 * gdbarch.c: Regenerate.
5498 * gdbarch.h: Likewise.
5499 * infcall.c (call_function_by_hand): Pass entire function value
5500 to push_dummy_call.
5501
5502 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5503 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5504 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5505 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5506 * arm-tdep.c (arm_push_dummy_call): Likewise.
5507 * avr-tdep.c (avr_push_dummy_call): Likewise.
5508 * cris-tdep.c (cris_push_dummy_call): Likewise.
5509 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5510 * frv-tdep.c (frv_push_dummy_call): Likewise.
5511 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5512 * hppa-tdep.c (hppa32_push_dummy_call)
5513 (hppa64_push_dummy_call): Likewise.
5514 * i386-tdep.c (i386_push_dummy_call): Likewise.
5515 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5516 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5517 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5518 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5519 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5520 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5521 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5522 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5523 (ppc64_sysv_abi_push_dummy_call): Likewise.
5524 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5525 (ppc64_sysv_abi_push_dummy_call): Likewise.
5526 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5527 * s390-tdep.c (s390_push_dummy_call): Likewise.
5528 * sh-tdep.c (sh_push_dummy_call_fpu)
5529 (sh_push_dummy_call_nofpu): Likewise.
5530 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5531 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5532 * vax-tdep.c (vax_push_dummy_call): Likewise.
5533
4a19ea35
JB
55342004-06-04 Jim Blandy <jimb@redhat.com>
5535
8327ccee
JB
5536 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5537 gdbarch argument to register_size.
5538
a3c001ce
JB
5539 * rs6000-tdep.c (rs6000_store_return_value): Use
5540 regcache_cooked_write_part instead of
5541 deprecated_write_register_bytes.
5542 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5543 not gdbarch_deprecated_store_return_value.
5544
4a19ea35
JB
5545 * ppc-linux-nat.c (store_register, fetch_register): Remove
5546 incorrect assertions. Simplify and generalize handling of
5547 transfers whose sizes are not multiples of, or less than, sizeof
5548 (PTRACE_XFER_TYPE).
5549
b9b5d7ea
JJ
55502004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5551
5552 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5553 as a new thread event.
720c7d64 5554 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5555 zombie, return TD_THR_ZOMBIE.
720c7d64 5556 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5557 TD_THR_ZOMBIE, check if the thread is still on the thread list
5558 and return a -1 ptid if not found.
5559 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5560 change the status to TARGET_WAITKIND_SPURIOUS.
5561
c8a3b559
CV
55622004-06-03 Corinna Vinschen <vinschen@redhat.com>
5563
5564 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5565 double values in little endian mode.
5566
20605361
AC
55672004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5568
5569 Committed by Andrew Cagney.
5570 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5571 after last enum constant to avoid error from IBM C
5572 compiler.
5573
bc97b3ba
JB
55742004-06-02 Jim Blandy <jimb@redhat.com>
5575
5576 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5577 to 'message', and make it local to the lone block that uses it.
5578
1da28ab0
JB
5579 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5580
4c4b4cd2
PH
55812004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5582
8a2225b2
PH
5583 * ada-exp.y: Update copyright notice.
5584 Include block.h.
5585
5586 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5587 SPECIAL_VARIABLE and unify the treatment of these cases.
5588
5589 (write_attribute_call0): Remove.
5590 (write_attribute_call1): Remove.
5591 (write_attribute_calln): Remove.
5592 (save_qualifier): Add missing semicolon.
5593
5594 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5595 temporarily disabled to allow compilation with FSF head version.
5596
5597 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5598 use individual operators (OP_*) for all attributes.
5599 (exp syntax): Use write_int.
5600 Handle STRING literals with OP_STRING.
5601 (variable syntax): Add limit parameter to calls to
5602 write_object_renaming.
5603
5604 (temp_parse_space): New definition to hold entities that need
5605 only live until the next call to ada_parse.
5606 (string_to_operator): Rename fields of ada_opname_table entries.
5607
5608 (write_var_from_sym): Record block.
5609 (write_var_from_name): Minor reformatting.
5610 Make sure saved name is properly encoded in the case of multiple
5611 matches, and set its language to Ada.
5612 Update comment.
5613 Modify to indicate unresolved name as symbol in the UNRESOLVED
5614 namespace, allocated in temp_parse_space.
5615 (write_int): New function.
5616
5617 (write_object_renaming): Add max_depth parameter to limit
5618 chains of object renamings.
5619 Handle case where root of renaming expression is itself a renaming.
5620 Use temp_parse_space for temporary name buffer.
5621 Handle renamings to dereferenced pointers (___XEXA suffices).
5622
5623 (ada_parse, yyerror, string_to_operator,
5624 write_var_from_sym, write_var_from_name, write_attribute_call0,
5625 write_attribute_call1, write_attribute_calln,
5626 write_object_renaming): Protoize.
5627
5628 (_initialize_ada_exp): New function.
5629
5630 * ada-lang.c: Update copyright notice.
5631 General terminology change to conform to GNAT compiler usage:
5632 mangle => encode, demangle => decode
5633 Include gdb_obstack.h.
5634 Include gdb_regex.h
5635 Include frame.h
5636 Include hashtab.h
5637 Include completer.h
5638 Include gdb_stat.h
5639 Include block.h
5640 Include infcall.h
5641
5642 (ADA_RETAIN_DOTS): Make sure this is defined.
5643 (TRUNCATION_TOWARDS_ZERO): Define.
5644 (struct string_vector): Define.
5645 (unresolved_names): Remove definition.
5646 (xnew_string_vector): New function.
5647 (string_vector_append): New function.
5648 (extract_string): Make static.
5649 (ada_unqualified_name): New function.
5650 (add_angle_brackets): New function.
5651 (function_name_from_pc): New function.
5652 (place_on_stack): Rename to ensure_lval.
5653
5654 (ensure_lval): Renamed from place_on_stack.
5655 Make identity on lvals.
5656 Update comment.
5657 (is_nonfunction): New interface.
5658 Only symbols in LOC_CONST class can be enumerals.
5659 (fill_in_ada_prototype): Remove; now independent of language.
5660 (add_defn_to_vec): Add obstack and symtab arguments.
5661 Use obstack to hold collected definitions.
5662 (num_defns_collected): New function.
5663 (defns_collected): New function.
5664 (ada_resolve_subexp): Rename to resolve_subexp.
5665 (resolve_subexp): Renamed from ada_resolve_subexp.
5666 (ada_op_name): Return non-const result.
5667 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5668 other purposes.
5669
5670 (to_fixed_array_type): Add declaration.
5671 (coerce_unspec_val_to_type): Remove offset parameter.
5672 (find_sal_from_funcs_and_line): New interface.
5673 (find_line_in_linetable): Ditto.
5674
5675 (all_sals_for_line): Rename to ada_sals_for_line and make
5676 global.
5677 Add new parameter. When set, do not ask the user to choose the
5678 instance, but use the first one found instead.
5679 Use given line number in returned sals.
5680 Fix comment.
5681 Skip the prologue if funfirstline is set.
5682 Correct for memory leak when 0 lines found.
5683
5684 (value_pos_atr): Use pos_atr.
5685 (pos_atr): New function.
5686 (standard_lookup): Add block parameter.
5687
5688 (makeTimeStart): Remove declaration and uses.
5689 (makeTimeStop): Remove declaration and uses.
5690
5691 (ada_completer_word_break_characters): Allow for VMS.
5692 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5693 (raise_sym_name): New constant.
5694 (raise_unhandled_sym_name): New constant.
5695 (raise_assert_sym_name): New constant.
5696 (process_raise_exception_name): New constant.
5697 (longest_exception_template): New constant.
5698 (warning_limit): New variable to limit warnings during expression
5699 evaluation.
5700 (warnings_issued): New variable to keep track of warnings issued.
5701 (known_runtime_file_name_patterns): New constant.
5702 (known_auxiliary_function_name_patterns): New constant.
5703 (symbol_list_obstack): New variable.
5704
5705 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5706 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5707 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5708 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5709 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5710 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5711 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5712 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5713 and strcmp.
5714
5715 (ada_get_field_index): New function.
5716 (lim_warning): New function.
5717 (ada_translate_error_message): New function.
5718 (MAX_OF_SIZE): New function.
5719 (MIN_OF_SIZE): New function.
5720 (UMAX_OF_SIZE): New function.
5721 (UMIN_OF_SIZE): New function.
5722 (discrete_type_high_bound): New function.
5723 (discrete_type_low_bound): New function.
5724 (base_type): New function.
5725 (do_command): Remove.
5726
5727 (ada_update_initial_language): Use language_ada, not language_unknown.
5728 (ada_encode): Renamed from ada_mangle.
5729 Obey ADA_RETAIN_DOTS.
5730 (ada_decode): Renamed from ada_demangle.
5731 Update coding conventions.
5732 (decoded_names_store): New hash table.
5733 (ada_decode_symbol): New function.
5734 (ada_la_decode): New function.
5735
5736 (modify_general_field): Correct computations of offset and bit
5737 position.
5738 (desc_base_type): Handle ref types, too.
5739 (ada_is_direct_array_type): New function.
5740
5741 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5742 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5743 (ada_is_bogus_array_descriptor,ada_type_of_array,
5744 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5745 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5746 ada_is_array_descriptor_type.
5747
5748 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5749 (ada_is_packed_array_type): Handle pointers or
5750 references to packed arrays as well.
5751 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5752 (decode_packed_array_type): Search for the packed array type
5753 symbol in the currently selected block and associated
5754 superblocks too.
5755 Use lookup_symbol again.
5756
5757 (decode_packed_array): Handle pointers and references.
5758 Update call to coerce_unspec_val_to_type.
5759 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5760 (ada_value_primitive_packed_val): Improve comment.
5761
5762 (ada_index_type): Substitute int type for "undefined".
5763 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5764 ada_array_langth, ada_is_string_type): Use renamed
5765 ada_is_simple_array_type.
5766 (empty_array): New function.
5767
5768 (ada_resolve): Rename to resolve.
5769 (resolve): Make static.
5770 Call renamed resolve_subexp.
5771 Update comment.
5772 (ada_resolve_subexp): Rename to resolve_subexp.
5773 (resolve_subexp): Update comment.
5774 Decomment disabled code.
5775 Add LOC_COMPUTED* cases.
5776 Modify to use temporary struct symbols (marked as being in
5777 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5778 OP_UNRESOLVED_VALUE.
5779 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5780 Add OP_STRING case.
5781 Remove OP_ARRAY.
5782 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5783 Use new ada_lookup_symbol_list interface.
5784 Use new ada_resolve_function interface.
5785 Remove OP_TYPE case.
5786
5787 (ada_args_match): Idiot proof against null actuals.
5788 Use intermediate variables to clarify.
5789 (ada_resolve_function): Update comment and interface.
5790 (mangled_ordered_before): Rename to encoded_ordered_before and
5791 update comment.
5792 (sort_choices): Update comment and interface.
5793 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5794 (user_select_syms): New interface.
5795 Use new sort_choices interface.
5796 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5797 (possible_user_operator_p): Idiot-proof against null values.
5798 (ada_simple_renamed_entity): Don't make cleanup; rely on
5799 caller to free result string.
5800 Remove const from return type.
5801 (make_array_descriptor): Rename uses of place_on_stack to
5802 ensure_lval.
5803 Make sure that arrays are on stack.
5804
5805 (HASH_SIZE): Define.
5806 (struct cache_entry): Define.
5807 (cache_space): Define.
5808 (cache): Define.
5809 (clear_ada_sym_cache): New function.
5810 (find_entry): New function.
5811 (lookup_cached_symbol): New function.
5812 (defn_vector_size): Define.
5813 (cache_symbol): New function.
5814 (defn_symbols): Remove.
5815
5816 (standard_lookup): Use lookup_symbol_in_language to get effect of
5817 C lookup.
5818 Cache results.
5819
5820 (symbol_completion_match): New function.
5821 (symbol_completion_add): New function.
5822 (ada_make_symbol_completion_list): New function.
5823
5824 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5825 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5826 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5827 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5828
5829 (ada_lookup_simple_minsym): New function.
5830 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5831
5832 (add_symbols_from_enclosing_procs): New interface.
5833 Conditionalize more helpfully.
5834 Don't bother if program isn't running.
5835 Use new interface to get_frame_block.
5836 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5837
5838 (remove_extra_symbols): New interface.
5839 (xget_renaming_scope): New function.
5840 (is_package_name): New function.
5841 (renaming_is_visible): New function.
5842 (remove_out_of_scope_renamings): New function.
5843
5844 (ada_lookup_symbol_list): New interface.
5845 Properly reinitialize the symbol list obstack.
5846 Don't call add_symbols_from_enclosing_procs if we start from a
5847 static or global block.
5848 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5849 add_symbols_from_enclosing_procs.
5850 Add symtab data to cached entries.
5851 Handle symbols prefixed with
5852 "standard__" specially; strip prefix and don't look in local symbols.
5853 Do not include out of scope renaming symbols in list of
5854 symbols returned.
5855 Add const to block parameter.
5856 Move check for non-local, non-global symbols earlier.
5857 Remove timing stuff.
5858 (ada_lookup_symbol): New interface.
5859 Find symtab as well.
5860 (ada_lookup_symbol_nonlocal): New function.
5861
5862 (is_name_suffix): Enhance suffix detection to recognize
5863 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5864 (is_dot_digits_suffix): New function.
5865 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5866
5867 (ada_add_block_symbols): New interface. Use obstack to return results
5868 in a vector of struct ada_symbol_infos. Add symtab argument.
5869 Use new interface to add_defn_to_vec.
5870 Remove calls to fill_in_ada_prototype.
5871 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5872
5873 (ada_finish_decode_line_1): Add const qualification to local to fix
5874 warning.
5875 Start looking in static block for functions to avoid attempts
5876 to search frame chain for up-level variables.
5877 Adapt to new ada_sals_for_line interface.
5878 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5879 Handle quoting of the function name inside the spec string.
5880 Skip prologue when funfirstline is set and update the
5881 function documentation to that effect.
5882
5883 (debug_print_lines, debug_print_block, debug_print_blocks,
5884 debug_print_symtab): Remove.
5885
5886 (ada_main_name): New function.
5887 (ada_exception_breakpoint_type): New function.
5888 (is_known_support_routine): New function.
5889 (ada_find_printable_frame): Renamed from find_printable_frame and made
5890 global.
5891 Remove level parameter.
5892 Use new interface to select_frame.
5893
5894 (begin_command): Remove.
5895 (ada_adjust_exception_stop): New function.
5896 (ada_print_exception_stop): New function.
5897 (exception_name_from_cond): New function.
5898 (ada_report_exception_break): Replace disabled code with
5899 conditionalization on GNAT_GDB.
5900 Get the exception name from the condition string.
5901 Remove and move functionality into new functions
5902 ada_print_exception_breakpoint_task and
5903 ada_print_exception_breakpoint_nontask.
5904 (error_breakpoint_runtime_sym_not_found): New function.
5905 (is_runtime_sym_defined): New function.
5906 (ada_breakpoint_rewrite): Uncomment suppressed code.
5907 Use symbolic error-message and runtime-symbol names.
5908 Surround runtime symbol names in quotes.
5909 Allow non-specific breakpoints on exceptions and assertions before
5910 program starts.
5911
5912 (ada_is_tagged_type): Add parameter.
5913 (ada_is_tag_type): New function.
5914 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5915 (ada_variant_discrim_type): Ditto.
5916 (value_tag_from_contents_and_address): New function.
5917 (type_from_tag): New function.
5918 (struct tag_args): New structure used to communicate with
5919 ada_tag_name_1.
5920 (ada_tag_name_1): New function.
5921 (ada_tag_name): New function.
5922
5923 (ada_scan_number): Update comment.
5924 (find_struct_field): New function.
5925 (ada_search_struct_field): Make static.
5926 (ada_value_struct_elt): New version that returns references when
5927 given pointers or references to structs.
5928 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5929 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5930 interface.
5931 (ada_value_ind): Use new ada_to_fixed_value interface.
5932 (ada_coerce_ref): Ditto.
5933 (field_offset): Remove.
5934
5935 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5936 (ada_find_renaming_symbol): New function.
5937 (ada_prefer_type): Prefer named types over unnamed ones.
5938 (variant_field_index): New function.
5939 (contains_variant_part): Removed: subsumed by variant_field_index.
5940 (ada_template_to_fixed_record_type): New function, mostly from
5941 template_to_fixed_record_type.
5942 (template_to_fixed_record_type):
5943 Do not scan the type fields beyond the last one; prevents a
5944 potential SEGV.
5945 Handle case where variant field is listed BEFORE discriminant it
5946 depends on.
5947 Fix calculation of record length when bit length is
5948 not evenly divisible by char length.
5949 Move code to ada_template_to_fixed_record_type and call it.
5950
5951 (template_to_static_fixed_type): Revise comment.
5952 Modify to work on ordinary record types as well as templates,
5953 so as to handle fields that use ___XVE or ___XVU encodings.
5954 (to_record_with_fixed_variant_part): Fill out comment.
5955 Initialize C++ stuff in right type.
5956 Allow case where DVAL is null.
5957 Handle case where variant field is not last.
5958 Fix typo concerning record length.
5959 (to_fixed_record_type): Decomment disabled code.
5960 (to_fixed_record_type): Use variant_field_index instead of
5961 contains_variant_part.
5962 (to_fixed_variant_branch_type): Ditto.
5963 (to_fixed_array_type): Decomment disabled code.
5964 (ada_to_fixed_type): Convert tagged types to the specific type.
5965 Deactivate the size-check for array types in order to avoid
5966 some false size alarms.
5967 (to_static_fixed_type): Decomment disabled code.
5968 Modify to call template_to_static_fixed_type
5969 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5970 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5971 Remove valaddr argument, as it is never really used.
5972 (ada_to_fixed_value): Change interface to act on single struct value*
5973 operand.
5974 (adjust_pc_past_prologue): New function.
5975 (ada_attribute_name): Modify to take enum exp_opcode argument.
5976
5977 (ada_enum_name): Recognize new homonym-distinguishing convention.
5978 Adjust local variable's type to remove compiler warning.
5979 Fix a small problem in the part that unqualifies the enumeration name.
5980 (ada_value_binop): New function.
5981 (ada_value_equal): New function.
5982
5983 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5984 Don't give error message when not doing normal evaluation
5985 and a tagged type doesn't seem to contain a structure member.
5986 Give error message for packed arrays.
5987 For indexing arrays, handle pointers to packed arrays correctly.
5988 Handle case of 'first and 'last attributes of bare integral type
5989 without encoded subtype info.
5990 Remove some unnecessary casts.
5991 Fix uninitialized value of type in computing 'first, 'last, or 'length
5992 of array object.
5993 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5994 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5995 calls.
5996 Attributes are now exp_opcode values.
5997 Correct treatment of 'modulus.
5998 Better error message for taking 'length of wrong kind of type;
5999 improve comment.
6000 Change EVAL_NORMAL to noside for consistency.
6001 Use ada_value_binop for DIV, MOD, REM.
6002 Make special case out of array of length 0, since an argument
6003 of 0 upsets some platforms' malloc.
6004 Use OP_STRING instead of OP_ARRAY.
6005 For slice, add check that we have an array type before extracting
6006 a slice out of it. Avoids a SEGV.
6007 When evaluating an array slice, if the array type is a reference to
6008 an aligner type, then replace the aligner type by the actual type.
6009 Decomment disabled code.
6010 Remove some dead code.
6011 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6012 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6013 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6014 and UNOP_MBR to UNOP_IN_RANGE.
6015 If an array type has a parallel ___XVE type, then use it.
6016 Turn arrays into pointers for lvalue arrays.
6017 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6018 bounds error and handle 0-length slices.
6019 Use lim_warning.
6020 When selecting fields, apply ada_to_fixed_value (because the fields
6021 might have ___XVU or ___XVE encodings even if not dynamic.)
6022 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6023 (ada_is_system_address_type): New function.
6024
6025 (get_var_value): Use new interface to ada_lookup_symbol_list.
6026 (get_int_var_value): New interface.
6027 (to_fixed_range_type): Allow unknown bound, with warning.
6028 (ada_is_modular_type): Decomment disabled code.
6029 (ADA_OPERATORS): New definition.
6030 (ada_operator_length): New function.
6031 (ada_expr_op_name): New function.
6032 (ada_forward_operator_length): New function.
6033 (ada_dump_subexp_body): New function.
6034 (ada_print_subexp): New function.
6035 (ada_exp_descriptor): New constant.
6036 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6037 (ada_language_defn): Add ada_exp_descriptor entry.
6038 Change ada_parse => parse.
6039 Add post-parser entry.
6040 Use ada-specific non-local symbol lookup.
6041 Don't use C-style arrays.
6042 String lower-bound is 1.
6043 Decomment disabled code.
6044 (parse): New function.
6045 New fields ada_translate_error_message, ada_lookup_symbol,
6046 ada_lookup_minimal_symbol.
6047
6048 * ada-lang.h: Update copyright dates.
6049 Replace the mangle/demangle terminology throughout by the
6050 more appropriate encode/decode one.
6051 Include breakpoint.h.
6052 Forward declare struct partial_symbol, struct block.
6053 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6054 (EXTRACT_ADDRESS): Remove.
6055 (EXTRACT_INT): Remove.
6056 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6057 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6058 (MAX_RENAMING_CHAIN_LENGTH): Define.
6059 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6060
6061 (enum task_states): Remove.
6062 ada_task_states: Remove.
6063 (fat_string): Remove.
6064 (struct entry_call): Remove.
6065 (struct task_fields): Remove.
6066 (struct task_entry): Remove.
6067
6068 (struct ada_symbol_info): Define.
6069 (enum ada_attribute): Remove.
6070 (enum ada_operator): Define.
6071
6072 (ada_get_field_index): Declare.
6073 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6074 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6075 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6076 (ada_lookup_symbol_list): New interface.
6077 (ada_decode_symbol): Declare.
6078 (ada_decode): Declare.
6079 (ada_lookup_symbol): New interface.
6080 (ada_update_initial_language): Declare.
6081 (ada_lookup_simple_minsym): Declare.
6082 (user_select_syms): New interface.
6083 (ada_sals_for_line): Declare.
6084 (ada_is_tagged_type): New interface.
6085 (ada_tag_name): Declare.
6086 (ada_lookup_struct_elt_type): Remove declaration.
6087 (ada_search_struct_field): Remove declaration.
6088 (ada_attribute_name): New interface.
6089 (ada_is_system_address_type): Declare.
6090 (ada_to_fixed_value): Remove declaration.
6091 (ada_template_to_fixed_record_type_1): Declare.
6092 (get_int_var_value): New interface.
6093 (ada_find_any_symbol): Declare.
6094 (ada_find_renaming_symbol): Declare.
6095 (ada_mangle): Rename to ada_encode.
6096 (ada_simple_renamed_entity): Remove const.
6097 (ada_main_name): Declare.
6098 (get_current_task): Rename to ada_get_current_task.
6099 (get_entry_number): Remove declaration.
6100 (ada_report_exception_break): Remove declaration.
6101 (ada_print_exception_breakpoint_nontask): Declare.
6102 (ada_print_exception_breakpoint_task): Declare.
6103 (ada_find_printable_frame): Declare.
6104
6105 * ada-lex.l: Update copyright notices.
6106 Use xmalloc and xfree instead of malloc and free.
6107 Use new interface to name_lookup.
6108 Use new interface to
6109 ada_mangle=>ada_encode.
6110 Redo handling of '$...' variable to parallel current treatment
6111 in c-exp.y.
6112 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6113 digit_to_int, strtoulst, processInt, processReal, processId,
6114 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6115 yywrap): Protoize.
6116
6117 (processInt): Use cast to remove harmless warning.
6118 (processReal): Modify to get rid of compiler warning on scan formats.
6119
6120 (processId): Replace xmalloc with obstack_alloc for name and remove
6121 call to ada_name_string_cleanup.
6122 Remove obsolete disabled code.
6123 (name_lookup): Ditto.
6124 New interface.
6125 Use obsavestring on temp_parse_space instead of savestring
6126 on name, and remove call to ada_name_string_cleanup.
6127 Free string returned from ada_simple_renamed_entity.
6128 Use new interface to ada_lookup_symbol_list.
6129 Decomment disabled code.
6130 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6131 not types.
6132 When a type name lookup succeeds as a result of
6133 lookup_primitive_typename, check for regular type entry that has not
6134 yet been read in.
6135 Limit length of chain of renamed symbols we are willing to follow.
6136 Do not break names beginning with "standard__" into segments.
6137 (block_lookup): Use new interface to ada_lookup_symbol_list.
6138
6139 * ada-typeprint.c: Update copyright notice.
6140 (demangled_type_name): Rename to decoded_type_name.
6141 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6142 (print_range_bound): Correct handling of negative
6143 bounds that make the index type looked unsigned under STABS.
6144 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6145 (print_range_type_named): Use the builtin int type if no type
6146 corresponding to the given type name could be found.
6147 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6148 Add some bullet-proofing.
6149 (print_variant_clauses): Allow for variant branches with ___XVU
6150 encodings that are not dynamic fields.
6151 Use new interface to ada_is_tagged_type.
6152 (print_record_type): Allow for fields with ___XVE encodings that
6153 are not dynamic fields.
6154 Use new interface to ada_is_tagged_type.
6155 (ada_print_type): ada_is_array_descriptor =>
6156 ada_is_array_descriptor_type.
6157
6158 * ada-valprint.c: Update copyright notice.
6159 Include gdb_string.h
6160 Include infcall.h
6161 (ui_memcpy): New function.
6162 (ada_print_floating): New function.
6163 (ada_print_str): Order arguments correctly.
6164 Correct handling of empty arrays and arrays of 0-length items.
6165 ada_is_array_descriptor => ada_is_array_descriptor_type
6166 Print values of type System.Address in hexadecimal format.
6167 Use ada_print_floating to print floating-point numbers in Ada format.
6168 Print class tag values with type names.
6169 No longer print the address of reference values. Avoids
6170 a potential confusion.
6171 (ada_value_print): Stop printing the object type for reference
6172 values, but preserve that behavior for access types. Avoids
6173 a potential confusion.
6174 Simplify one conditional expression, as the first part is now
6175 necessarily true.
6176 ada_is_array_descriptor => ada_is_array_descriptor_type
6177 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6178
f65f91b5
JB
61792004-06-01 Jim Blandy <jimb@redhat.com>
6180
6181 * ppc-tdep.h: Delete unused 'regoff' member.
6182 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6183
d4687fa0
MC
61842004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6185
6186 Fix PR symtab/1661.
6187 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6188 (hpread_read_struct_type): Likewise.
6189
de169ec9
AC
61902004-06-01 Andrew Cagney <cagney@gnu.org>
6191
c6902d46
AC
6192 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6193 instead of xasprintf.
6194 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6195 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6196 (mi_cmd_data_list_register_names)
6197 (mi_cmd_data_list_changed_registers)
6198 (mi_cmd_data_list_register_values)
6199 (get_register, mi_cmd_data_write_register_values)
6200 (mi_cmd_data_write_register_values)
6201 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6202 (mi_cmd_target_download, mi_cmd_target_select)
6203 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6204 (mi_execute_cli_command, mi_execute_async_cli_command)
6205 (mi_execute_async_cli_command): Ditto.
6206 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6207 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6208
6085fc2d
AC
6209 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6210 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6211 error_last_message instead of mi_error_last_message.
6212 * mi/mi-main.c (mi_error_last_message): Delete function.
6213
de169ec9
AC
6214 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6215 "invalid number of columns" error. Delete redundant "out of
6216 memory" check.
6217
1fc7d519
MK
62182004-05-31 Mark Kettenis <kettenis@gnu.org>
6219
6cfb2041
MK
6220 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6221 (gregset_t, fpregset_t): Remove typedefs.
6222 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6223 (REG_OFFSET): Rename argument.
6224 (i386bsd_r_reg_offset): Rename from reg_offset.
6225 (REG_ADDR): Remove macro.
6226 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6227 functions.
6228 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6229 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6230 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6231 instead of supply_gregset.
6232 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6233 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6234 instead of fill_gregset.
6235 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6236
1fc7d519
MK
6237 * i386bsd-nat.c: Don't include "gregset.h".
6238 (supply_gregset, fill_gregset): Make static.
6239 (supply_fpregset, fill_fpregset): Remove.
6240 * Makefile.in (i386bsd-nat.o): Update dependencies.
6241
2c34abbe
MK
62422004-05-30 Mark Kettenis <kettenis@gnu.org>
6243
448724fb
MK
6244 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6245 "gdb_assert.h". Con't include "gregset.h".
6246 (fbsd_make_corefile_notes): Use regset-based core file support
6247 instead off fill_gregset and fill_fpregset.
6248 * Makefile.in (fbsd-proc.o): Update dependencies.
6249
5ca8ca7c
MK
6250 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6251 instructions.
6252 (m88k_frame_prev_register): Simplify code a bit.
6253
593adc23
MK
6254 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6255 (amd64_collect_fpregset): New function.
6256 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6257
8d1b517b
MK
6258 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6259
7fdafb5a
MK
6260 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6261 (i386_collect_gregset): New function.
6262 (i386_supply_fpregset): Adjust comment.
6263 (i386_collect_fpregset): New function.
6264 (i386_regset_from_core_section): Use i386_collect_gregset and
6265 i386_collect_fpregset.
6266
8693c419
MK
6267 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6268 handle VALUEP being null.
6269
2c34abbe
MK
6270 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6271
45d134d8
MK
62722004-05-29 Mark Kettenis <kettenis@gnu.org>
6273
1698f4e7
MK
6274 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6275
45d134d8
MK
6276 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6277 assembler in OpenBSD 3.5-current.
6278 (amd64obsd_sigcontext_addr): Likewise.
6279
691d145a
JB
62802004-05-28 Jim Blandy <jimb@redhat.com>
6281
6282 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6283 register set, so our regcache isn't declared "legacy" and our E500
6284 pseudoregister read and write functions aren't ignored.
6285 (rs6000_register_byte, rs6000_register_raw_size,
6286 rs6000_register_virtual_type, rs6000_register_convertible,
6287 rs6000_register_convert_to_virtual,
6288 rs6000_register_convert_to_raw): Deleted.
6289 (rs6000_register_type, rs6000_convert_register_p,
6290 rs6000_register_to_value, rs6000_value_to_register): New
6291 functions.
6292 (rs6000_gdbarch_init): Don't register
6293 gdbarch_deprecated_register_size,
6294 gdbarch_deprecated_register_bytes,
6295 gdbarch_deprecated_register_byte,
6296 gdbarch_deprecated_register_raw_size,
6297 gdbarch_deprecated_register_virtual_type,
6298 gdbarch_deprecated_register_convertible,
6299 gdbarch_deprecated_register_convert_to_virtual, or
6300 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6301 register gdbarch_register_type, gdbarch_convert_register_p,
6302 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6303
18ed0c4e
JB
63042004-05-26 Jim Blandy <jimb@redhat.com>
6305
6306 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6307 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6308 functions, updated to match the register numberings used in GCC.
6309 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6310 rs6000_dwarf2_reg_to_regnum as register number conversions
6311 functions for STABS and Dwarf2.
6312
779af9e3
RC
63132004-05-26 Randolph Chung <tausq@debian.org>
6314
6315 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6316 in header file.
6317
c23968a2
JB
63182004-05-25 Joel Brobecker <brobecker@gnat.com>
6319
6320 * NEWS: Document new "start" command.
6321
3a7d1c27
RC
63222004-05-25 Randolph Chung <tausq@debian.org>
6323
6324 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6325 hppa-linux.
6326
43613416
RC
63272004-05-25 Randolph Chung <tausq@debian.org>
6328
6329 * hppa-hpux-tdep.c (offsetof): Define.
6330 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6331 (hppa32_hpux_frame_base_before_sigtramp)
6332 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6333 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6334 (hppa64_hpux_frame_base_before_sigtramp)
6335 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6336 functions.
6337 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6338 (hppa_hpux_sigtramp_frame_unwind_cache)
6339 (hppa_hpux_sigtramp_frame_this_id)
6340 (hppa_hpux_sigtramp_frame_prev_register)
6341 (hppa_hpux_sigtramp_frame_unwind)
6342 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6343 (hppa_hpux_init_abi): Register sigtramp unwinder.
6344 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6345
6d1be3f1
RC
63462004-05-25 Randolph Chung <tausq@debian.org>
6347
6348 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6349 and multiple stack unwinds.
6350 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6351
97c34f65
AC
63522004-05-25 Andrew Cagney <cagney@gnu.org>
6353
6354 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6355 * symfile-mem.h: Delete file.
6356 * symfile-mem.c: Do not include "symfile-mem.h".
6357 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6358 "struct bfd_section". When an error do not bother returning NULL.
6359 (add_symbol_file_from_memory_command): Use "struct bfd" and
6360 "struct bfd_section".
6361 * Makefile.in (symfile_mem_h): Delete.
6362 (symfile-mem.o): Update dependencies.
6363
e23cbd82
NR
63642004-05-25 Nick Roberts <nickrob@gnu.org>
6365
6366 * gdb-mi.el: New file.
6367
20d2ca3e
AC
63682004-05-25 Andrew Cagney <cagney@gnu.org>
6369
6370 * inftarg.c: Include "observer.h".
6371 (child_attach, child_create_inferior): Notify inferior_created.
6372 * corelow.c: Include "observer.h".
6373 (core_open): Notify inferior_created.
6374 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6375
c27cda74
AC
63762004-05-25 Andrew Cagney <cagney@gnu.org>
6377
6378 * target.h (struct target_ops): Add from_tty to
6379 to_create_inferior.
6380 (target_create_inferior, find_default_create_inferior): Update.
6381 * infcmd.c (run_command): Update.
6382 * wince.c (child_create_inferior): Update.
6383 * win32-nat.c (child_create_inferior): Update.
6384 * uw-thread.c (uw_thread_create_inferior): Update.
6385 * thread-db.c (thread_db_create_inferior): Update.
6386 * target.c (debug_to_create_inferior)
6387 (find_default_create_inferior): Update.
6388 (maybe_kill_then_create_inferior): Update.
6389 * sol-thread.c (sol_thread_create_inferior): Update.
6390 * remote.c (extended_remote_async_create_inferior)
6391 (extended_remote_create_inferior): Update.
6392 * remote-vx.c (vx_create_inferior): Update.
6393 * remote-st.c (st2000_create_inferior): Update.
6394 * remote-sim.c (gdbsim_create_inferior): Update.
6395 * remote-sds.c (sds_create_inferior): Update.
6396 * remote-rdp.c (remote_rdp_create_inferior): Update.
6397 * remote-rdi.c (arm_rdi_create_inferior): Update.
6398 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6399 * remote-e7000.c (e7000_create_inferior): Update.
6400 * procfs.c (procfs_create_inferior): Update.
6401 * ocd.c (ocd_create_inferior): Update.
6402 * ocd.h (ocd_create_inferior): Update.
6403 * nto-procfs.c (procfs_create_inferior): Update.
6404 * monitor.c (monitor_create_inferior): Update.
6405 * lin-lwp.c (lin_lwp_create_inferior): Update.
6406 * inftarg.c (child_create_inferior): Update.
6407 * hpux-thread.c (hpux_thread_create_inferior): Update.
6408 * gnu-nat.c (gnu_create_inferior): Update.
6409
1db2a798
AC
64102004-05-25 Andrew Cagney <cagney@gnu.com>
6411
6412 * MAINTAINERS: Update e-mail address.
6413
007d08bb
RC
64142004-05-24 Randolph Chung <tausq@debian.org>
6415
6416 * thread.c (info_threads_command, thread_apply_all_command)
6417 (thread_apply_command, thread_command, do_captured_thread_select):
6418 Remove HPUXHPPA-specific code.
6419
69e7b95e
RC
64202004-05-24 Randolph Chung <tausq@debian.org>
6421
6422 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6423 unused symbols.
6424 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6425 references.
6426
a4d5f2e0
JB
64272004-05-24 Joel Brobecker <brobecker@gnat.com>
6428
6429 * infcmd.c (kill_if_already_running): New function, extracted
6430 from run_command().
6431 (run_command): Replace extracted code by call to
6432 kill_if_already_running().
6433 (start_command): New function.
6434 (_initialize_infcmd): Add "start" command.
6435
bf2ca189
MK
64362004-05-24 Mark Kettenis <kettenis@gnu.org>
6437
6438 Add OpenBSD/m88k support.
6439 * NEWS (New native configurations): Mention OpenBSD/m88k.
6440 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6441 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6442 * Makefile.in (m88k_tdep_h): New variable.
6443 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6444 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6445 * configure.host: Add m88*-*-openbsd*.
6446 * configure.tgt: Add m88*-*-openbsd*.
6447
80fadb11
JB
64482004-05-24 Jim Blandy <jimb@redhat.com>
6449
6450 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6451 to approve changes.
6452
19e2d14b
KB
64532004-05-24 Kevin Buettner <kevinb@redhat.com>
6454
6455 * symtab.c (fixup_section): Search section table when lookup by
6456 name fails.
6457
1b07b470
RC
64582004-05-24 Randolph Chung <tausq@debian.org>
6459
6460 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6461 be "small_struct".
6462
368702b1
MK
64632004-05-24 Mark Kettenis <kettenis@gnu.org>
6464
5df97fde
MK
6465 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6466 register number in regcache_raw_collect call.
6467 (m68kbsd_collect_fpregset): Likewise.
6468 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6469
368702b1
MK
6470 * regset.h (struct regset): Add back `regset' member.
6471
a770d4ec
MK
64722004-05-23 Mark Kettenis <kettenis@gnu.org>
6473
70f9f479
MK
6474 * configure.in: Check for td_pcb in `struct thread'.
6475 * configure, config.in: Regenerated.
6476
2e16d79e
MK
6477 * dpx2-nat.c: Remove file.
6478 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6479 (dpx2-nat.o): Remove dependencies.
6480
492cf391
MK
6481 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6482 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6483 (amd64obsd_supply_pcb): New function.
6484 (_initialize_amd64obsd_nat): Enable libkvm interface.
6485 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6486 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6487 (LOADLIBES): New variable.
6488
a770d4ec
MK
6489 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6490 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6491 (sparc32nbsd_supply_pcb): New function.
6492 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6493 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6494 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6495 (LOADLIBES): New variable.
6496
9ea75c57
MK
64972004-05-22 Mark Kettenis <kettenis@gnu.org>
6498
2e0c3539
MK
6499 * bsd-kvm.c, bsd-kvm.h: New files.
6500 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6501 "bsd-kvm.h".
6502 (i386fbsd_supply_pcb): New function.
6503 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6504 (i386fbsd-nat.o): Update dependencies.
6505 (bsd_kvm_h): New variable.
6506 (bsd-kvm.o): New dependency.
6507 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6508 (LOADLIBES): New variable.
6509
9ea75c57
MK
6510 * regset.c: Tweak comment.
6511 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6512 macro.
6513 * regset.h: Update copyright year.
6514 (struct regset): Remove `descr' member, add `gdbarch' member.
6515 (regset_alloc): Adjust prototype and comment.
6516 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6517 (i386_supply_fpregset): Likewise.
6518 (i386_regset_from_core_section): Update call to regset_alloc.
6519 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6520 REGSET->arch.
6521 (i386obsd_aout_regset_from_core_section): Update call to
6522 regset_alloc.
6523 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6524 REGSET->arch.
6525 (i386nbsd_aout_regset_from_core_section): Update call to
6526 regset_alloc.
6527 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6528 REGSET->arch.
6529 (amd64_regset_from_core_section): Update call to regset_alloc.
6530 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6531 REGSET->arch.
6532 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6533 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6534 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6535 (sparc32nbsd_init_abi): Update call to regset_alloc.
6536 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6537 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6538 (sparc64obsd_init_abi): Update call to regset_alloc.
6539 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6540 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6541 (sparc64nbsd_init_abi): Update call to regset_alloc.
6542 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6543 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6544 (sparc64fbsd_init_abi): Update call to regset_alloc.
6545
867e2dc5
JB
65462004-05-22 Jim Blandy <jimb@redhat.com>
6547
6548 * ppc-tdep.h (spe_register_p): New declaration.
6549 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6550 ppc_spefscr_regnum.
6551 * rs6000-tdep.c (spe_register_p): New function.
6552 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6553 spefscr.
6554 (rs6000_gdbarch_init): Initialize the new members of the tdep
6555 structure.
6556
617a4cba
JB
65572004-05-21 Jim Blandy <jimb@redhat.com>
6558
0397dee1
JB
6559 * ppc-linux-nat.c (fetch_register): Move code back to be next
6560 to the comment that describes it. (Moved code, instead of
6561 comment, for symmetry with store_register.)
6562
617a4cba
JB
6563 Allocate regset structures in the gdbarch's obstack, not using
6564 xmalloc.
6565 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6566 Add 'arch' argument. Allocate the regset on arch's obstack, not
6567 using xmalloc.
6568 * regset.h (regset_alloc): Update declaration.
6569 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6570 gdbarch argument.
6571 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6572 * i386-tdep.c (i386_regset_from_core_section): Same.
6573 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6574 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6575 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6576 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6577 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6578 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6579
9aa3914d
JB
65802004-05-21 Joel Brobecker <brobecker@gnat.com>
6581
6582 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6583
99c87dab
JB
65842004-05-21 Jim Blandy <jimb@redhat.com>
6585
6586 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6587 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6588
c2b6b4aa
JB
65892004-05-20 Jim Blandy <jimb@redhat.com>
6590
6591 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6592
144529d0
MK
65932004-05-20 Mark Kettenis <kettenis@gnu.org>
6594
6595 * regset.h: Make prototype const-correct.
6596 * regset.c (regset_xmalloc): Make const-correct.
6597
4725b721
PH
65982004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6599
6600 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6601 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6602 (symbol_search_name): Declare.
6603
6604 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6605 (iter_name_next_hashed): Ditto.
6606 (iter_name_next_linear): Ditto.
6607 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6608
6609 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6610 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6611 (symbol_search_name): New function.
6612
6613 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6614
6615 * minsyms.c (build_minimal_symbol_hash_tables): Change
6616 test for adding to demangled hash table to check for difference
6617 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6618
be07a590
JB
66192004-05-19 Jim Blandy <jimb@redhat.com>
6620
6621 Use a constructor function to create regset structures.
6622 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6623 (struct regset): Use supply_regset_ftype. Add new
6624 'collect_regset' member.
6625 (regset_xmalloc): New declaration.
6626 * regset.c: New file.
6627 * am64-tdep.c (amd64_regset_from_core_section): Use
6628 regset_xmalloc to construct regset structures.
6629 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6630 * i386-tdep.c (i386_regset_from_core_section): Same.
6631 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6632 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6633 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6634 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6635 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6636 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6637 * Makefile.in (COMMON_OBS): Add regset.o.
6638 (regset.o): New rule.
6639
604368f5
JB
66402004-05-19 Joel Brobecker <brobecker@gnat.com>
6641
6642 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6643 and pthread_cond_wait.c.
6644
82d69f8b
JB
66452004-05-18 Jim Blandy <jimb@redhat.com>
6646
6647 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6648 before the mach-specific switch, and then let the individual cases
6649 override the defaults, rather than leaving them uninitialized
6650 until the switch and then setting them in each case.
6651
5859efe5
RC
66522004-05-18 Randolph Chung <tausq@debian.org>
6653
6654 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6655 millicode functions.
6656
9ca80cf8
RC
66572004-05-18 Randolph Chung <tausq@debian.org>
6658
6659 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6660 references to dld_flags_buffer consistent.
6661
ed70ba00
RC
66622004-05-18 Randolph Chung <tausq@debian.org>
6663
6664 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6665 it for unwinding the stack.
6666
63100632
RC
66672004-05-18 Randolph Chung <tausq@debian.org>
6668
6669 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6670 Undefine these so we can overide them using gdbarch.
6671
090ccbb7
RC
66722004-05-18 Randolph Chung <tausq@debian.org>
6673
6674 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6675 handling for 64-bit HPUX (elf).
6676
594706e6
DJ
66772004-05-18 Daniel Jacobowitz <dan@debian.org>
6678
6679 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6680 constants.
6681 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6682 * ia64-tdep.c (examine_prologue): Likewise.
6683 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6684 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6685
e5483145
MK
66862004-05-18 Mark Kettenis <kettenis@gnu.org>
6687
6688 * vax-tdep.c (vax_return_value): Implement
6689 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6690
caed1a45
MK
66912004-05-17 Mark Kettenis <kettenis@gnu.org>
6692
6693 * vax-tdep.c (vax_return_value): Fix typo.
6694
3c0b7db2
AC
66952004-05-17 Andrew Cagney <cagney@redhat.com>
6696
5aae53e5
AC
6697 * MAINTAINERS: Mark Salter was also responsible for
6698 testsuite/config/
6699
3c0b7db2
AC
6700 * NEWS: Mention signal fixes.
6701
22b0923d
RC
67022004-05-17 Randolph Chung <tausq@debian.org>
6703
6704 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6705 check to see if we are unwinding an export stub. Export stubs clobber
6706 the %rp in the call path and stores the original rp in a stack slot.
6707
22f2b2f3
JB
67082004-05-17 Jim Blandy <jimb@redhat.com>
6709
6710 * MAINTAINERS: Update address for J.T. Conklin.
6711
cea96d64
RC
67122004-05-17 Randolph Chung <tausq@debian.org>
6713
6714 * hppa-tdep.c: Remove superfluous #include's.
6715 * Makefile.in (hppa-tdep.o): Update dependencies.
6716
f08f6a4a
RC
67172004-05-17 Randolph Chung <tausq@debian.org>
6718
6719 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6720 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6721 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6722 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6723 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6724 Remove static function declarations.
6725
51da707a
MK
67262004-05-17 Mark Kettenis <kettenis@gnu.org>
6727
caed1a45
MK
6728 * alphabsd-nat.c: Update copyright year.
6729 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6730
c0c2b0db
MK
6731 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6732 and M68K_A2_REGNUM.
6733
51da707a
MK
6734 * m68k-tdep.c (m68k_svr4_return_value): Implement
6735 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6736
8d027a04
MK
67372004-05-16 Mark Kettenis <kettenis@gnu.org>
6738
6739 * sol-thread.c Update copyright year. Fix various coding
6740 standards violations. Tweak a few comments.
6741 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6742 Delete prototypes.
6743
0d99fdb9
RC
67442004-05-15 Randolph Chung <tausq@debian.org>
6745
6746 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6747 as pointer instead of array reference since HPUX compiler does
6748 not accept unsized array arguments.
6749 * somsolib.c (dld_flags_buffer): Use constant array size.
6750
f7e3843a
MK
67512004-05-15 Mark Kettenis <kettenis@gnu.org>
6752
0fe85704
MK
6753 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6754 offset with decimal offset.
6755 (amd64obsd_sigcontext_addr): Return correct address for entire
6756 signal trampoline.
6757
a54f9a00
MK
6758 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6759 instead of get_frame_base.
6760
feae6502
MK
6761 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6762 (fill_gregset): Use regcache_raw_collect.
6763
0382d099
MK
6764 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6765 ppcobsd-tdep.c.
6766
f7e3843a
MK
6767 * config/sparc/tm-nbsd64.h: Remove file.
6768 * config/tm-sunos.h: Remove file.
6769
773df3e5
JB
67702004-05-15 Joel Brobecker <brobecker@gnat.com>
6771
6772 * rs6000-tdep.c (store_param_on_stack_p): New function,
6773 an improved version of some code extracted from skip_prologue().
6774 (skip_prologue): Use store_param_on_stack_p() to detect
6775 instructions saving a parameter on the stack. Detect when r0
6776 is used to save a parameter.
6777 Do not mark "li rx, SIMM" instructions as part of the prologue,
6778 unless the following instruction is also part of the prologue.
6779
95918acb
AC
67802004-05-14 Andrew Cagney <cagney@redhat.com>
6781
06f32659
AC
6782 * infrun.c (handle_inferior_event): Simplify
6783 STEP_OVER_UNDEBUGGABLE.
6784
95918acb
AC
6785 * infrun.c (handle_step_into_function): Delete function.
6786 (handle_inferior_event): Inline calls to
6787 handle_step_into_function.
6788
40711ff1 67892004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6790
6791 * rs6000-nat.c: Fix a comment.
6792
02f60eae
JB
67932004-05-12 David Anderson <davea@sgi.com>
6794
6795 Committed by Jim Blandy <jimb@redhat.com>:
6796 * regcache.c (struct regcache_descr): fix comment spelling.
6797
552e377b
JB
67982004-05-13 J. Brobecker <brobecker@gnat.com>
6799
6800 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6801 Fixes a link link failure.
6802
349766b2
JB
68032004-05-13 J. Brobecker <brobecker@gnat.com>
6804
6805 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6806 error that was causing the build to fail.
6807
0d4d5484
JB
68082004-05-13 J. Brobecker <brobecker@gnat.com>
6809
6810 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6811 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6812
0b30808c
AC
68132004-05-13 Andrew Cagney <cagney@redhat.com>
6814
6815 * infrun.c (handle_inferior_event): Check for
6816 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6817 calls. Update comments.
6818
cdf2c5f5
JB
68192004-05-13 Jim Blandy <jimb@redhat.com>
6820
063715bf
JB
6821 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6822 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6823 (store_regs_user_thread, store_regs_kernel_thread): Use
6824 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6825 * ppc-linux-nat.c (fill_gregset): Same.
6826 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6827 (ppc_linux_sigtramp_cache): Same.
6828 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6829 (ppcnbsd_sigtramp_cache_init): Same.
6830 * rs6000-nat.c (fetch_core_registers): Same.
6831 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6832 (rs6000_frame_cache): Same.
6833
cdf2c5f5
JB
6834 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6835 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6836 of assuming that the gprs are numbered starting with zero.
6837 * ppc-linux-nat.c (fill_gregset): Same.
6838 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6839 * ppcnbsd-nat.c (getregs_supplies): Same.
6840 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6841 * rs6000-nat.c (fetch_core_registers): Same.
6842 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6843
450bd37b
MS
68442004-05-07 Michael Snyder <msnyder@redhat.com>
6845
6846 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6847 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6848
4a72a2a6
AC
68492004-05-13 Andrew Cagney <cagney@redhat.com>
6850
6851 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6852
8edfa926
BM
68532004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6854
6855 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6856 base_address for shared libraries.
6857
723e0e3d
BM
68582004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6859
6860 * MAINTAINERS (write after approval): Add myself.
6861
00d4360e
UW
68622004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6863
6864 * breakpoint.c (bpstat_stop_status): Add new argument
6865 STOPPED_BY_WATCHPOINT. Use it instead of testing
6866 target_stopped_data_address agaist 0 to check whether
6867 or not we stopped due to a hardware watchpoint.
6868 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6869 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6870 with new argument.
6871
ec76baa5
JB
68722004-05-12 Jim Blandy <jimb@redhat.com>
6873
6874 * configure.in: When checking whether we should use the -bbigtoc
6875 option, don't forget to restore the original value of LDFLAGS.
6876 * configure: Regenerated.
6877
f2c9ca08
AC
68782004-05-12 Andrew Cagney <cagney@redhat.com>
6879
6880 * thread.c (load_infrun_state): Delete step_sp.
6881 * infrun.c (context_switch): Ditto.
6882 * inferior.h (step_sp): Ditto.
6883 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6884 * gdbthread.h (struct thread_info, save_infrun_state)
6885 (restore_infrun_state): Ditto.
6886
090ddb2a
UW
68872004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6888
6889 * MAINTAINERS (write after approval): Add myself.
6890
8aad930b
AC
68912004-05-12 Andrew Cagney <cagney@redhat.com>
6892
6893 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6894 eliminate reference to step_sp.
6895 (struct execution_control_state, init_execution_control_state)
6896 (handle_inferior_event, keep_going): Delete update_step_sp and
6897 step_sp.
6898 * infcmd.c (step_sp): Note that variable is unused.
6899
922d5ae0
AC
69002004-05-11 Andrew Cagney <cagney@redhat.com>
6901
6902 * infrun.c (step_over_function): Delete function.
6903 (handle_step_into_function): Use insert_step_resume_breakpoint.
6904 (insert_step_resume_breakpoint): Fix assertion.
6905
017c5ca5
NR
69062004-05-11 Nick Roberts <nickrob@gnu.org>
6907
6908 * utils.c (defaulted_query): Just use the normal query input type
6909 when printing the annotations.
6910
42edda50
AC
69112004-05-11 Andrew Cagney <cagney@redhat.com>
6912
6913 * infrun.c (handle_inferior_event): Simplify code handling
6914 step-into or return-from a signal trampoline.
6915
d28b44a7
AC
69162004-05-11 Andrew Cagney <cagney@redhat.com>
6917
6918 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6919 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6920
383f0f5b
JB
69212004-05-10 Jim Blandy <jimb@redhat.com>
6922
d0b57c3a
JB
6923 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6924 with a call to internal_error.
6925
383f0f5b
JB
6926 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6927 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6928 processor variant lacks those registers.
6929 (ppc_floating_point_unit_p): Change description to make it clear
6930 that this returns info about the ISA, not the ABI.
6931 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6932 return true or false by checking tdep->ppc_fp0_regnum and
6933 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6934 arch/mach switching done in rs6000_gdbarch_init; it's better to
6935 keep that logic there, and just check the results here.
6936 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6937 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6938 floating-point registers.
6939 (ppc_supply_fpregset, ppc_collect_fpregset)
6940 (rs6000_push_dummy_call, rs6000_extract_return_value)
6941 (rs6000_store_return_value): Assert that we have floating-point
6942 registers.
6943 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6944 (rs6000_frame_cache): Don't note the locations at which
6945 floating-point registers were saved if we have no fprs.
6946 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6947 registers.
6948 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6949 (store_regs_user_thread, store_regs_kernel_thread): Only call
6950 supply_fprs / fill_fprs if we actually have floating-point
6951 registers.
6952 (special_register_p): Check ppc_fpscr_regnum before matching
6953 against it.
6954 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6955 supply / collect fpscr if we don't have it.
6956 * ppc-bdm.c: #include "gdb_assert.h".
6957 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6958 have floating-point registers, since I can't test this code on
6959 FP-free systems to adapt it.
6960 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6961 fpscr and floating point register numbers if they don't exist.
6962 (fetch_register): Assert that we have floating-point registers
6963 before we reach the code that handles them.
6964 (store_register): Same. And use tdep instead of calling
6965 gdbarch_tdep again.
6966 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6967 don't have them.
6968 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6969 fprs and fpscr if we don't have them.
6970 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6971 don't have them.
6972 * ppcnbsd-nat.c: #include "gdb_assert.h".
6973 (getfpregs_supplies): Assert that we have floating-point registers.
6974 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6975 * ppcobsd-tdep.c: #include "gdb_assert.h".
6976 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6977 have floating-point registers.
6978 * rs6000-nat.c (regmap): Don't match against the fpscr and
6979 floating point register numbers if they don't exist.
6980 (fetch_inferior_registers, store_inferior_registers,
6981 fetch_core_registers): Only fetch / store / supply the
6982 floating-point registers and the fpscr if we have them.
6983 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6984 (ppcobsd-tdep.o): Update dependencies.
6985
15960608
AC
69862004-05-10 Andrew Cagney <cagney@redhat.com>
6987
6988 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6989 (context_switch): Do not switch through_sigtramp_breakpoint.
6990 * gdbthread.h (save_infrun_state, load_infrun_state)
6991 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6992 and structure member.
6993 * thread.c (load_infrun_state, save_infrun_state): Update.
6994
5ab5aa0f
MK
69952004-05-10 Mark Kettenis <kettenis@gnu.org>
6996
6997 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6998
da78b0e7
DJ
69992004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7000
7001 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7002 throughout.
7003 * aclocal.m4: Regenerate.
7004
cca0d3b0
NW
70052004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7006
7007 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7008
d303a6c7
AC
70092004-05-10 Andrew Cagney <cagney@redhat.com>
7010
7011 * infrun.c (check_sigtramp2): Delete function.
7012 (handle_inferior_event): When single stepping, and taking a
7013 signal, set a breakpoint at the signal return address. Delete
7014 redundant calls to check_sigtramp2.
7015 (insert_step_resume_breakpoint): New function.
7016 (through_sigtramp_breakpoint, handle_inferior_event)
7017 (follow_exec, wait_for_inferior, fetch_inferior_event)
7018 (currently_stepping, keep_going): Delete most uses of
7019 through_sigtramp_breakpoint, not that it should be deleted.
7020 (delete_breakpoint_current_contents): Delete function.
7021
03f4cc20
RC
70222004-05-10 Randolph Chung <tausq@debian.org>
7023
7024 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7025 target.
7026 * config/pa/tm-linux.h: New file.
7027
37fc812e
DJ
70282004-05-10 Daniel Jacobowitz <drow@mvista.com>
7029
7030 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7031 of prefixes. Don't print the prefix twice in the CLI.
7032
26c0b942
JB
70332004-05-10 Jim Blandy <jimb@redhat.com>
7034
2e56e9c1
JB
7035 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7036 collect all the gprs.
7037
26c0b942
JB
7038 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7039 loop collecting gprs.
7040
dc497459
AC
70412004-05-09 Andrew Cagney <cagney@redhat.com>
7042
7043 * remote-vx.c (net_step): Delete step-range code.
7044 * remote.c (remote_resume, init_all_packet_configs)
7045 (set_remote_protocol_E_packet_cmd)
7046 (show_remote_protocol_E_packet_cmd)
7047 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7048 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7049 (show_remote_protocol_e_packet_cmd): Ditto.
7050
0543f387
MK
70512004-05-09 Mark Kettenis <kettenis@gnu.org>
7052
c481d1ca
MK
7053 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7054
f626a069
MK
7055 * hppa-tdep.h: Update copyright year.
7056 (struct trad_frame_saved_reg): Add opaque declaration.
7057
6fa57a7d
MK
7058 * amd64-tdep.c (amd64_return_value): Implement
7059 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7060
e47577ab
MK
7061 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7062 (m68k_value_to_register): New functions.
7063 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7064 value_to_register.
7065
31db7b6c
MK
7066 * defs.h (enum return_value_convention): Add
7067 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7068 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7069 * infcmd.c (legacy_return_value): New function.
7070 (print_return_value): Rwerite to implement
7071 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7072 * values.c (using_struct_return): Check for inequality to
7073 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7074 RETURN_VALUE_STRUCT_CONVENTION.
7075 * i386-tdep.c (i386_return_value): Implement
7076 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7077
0543f387
MK
7078 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7079 include "symtab.h", "opcode/vax.h" and "inferior.h".
7080 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7081 to read_memory_unsigned_integer.
7082 (vax_gdbarch_init): Reorder.
7083 (_initialize_vax_tdep): Spell out prototype.
7084 * Makefile.in (vax-tdep.o): Update dependencies.
7085
0c93b7b6
AC
70862004-05-08 Andrew Cagney <cagney@redhat.com>
7087
e6b55ae2
AC
7088 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7089 * target.c (target_detach, target_disconnect): Ditto.
7090
1ac839b8
AC
7091 * infcall.c (call_function_by_hand): When no
7092 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7093 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7094 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7096 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7097
28954179
AC
7098 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7099 * gdbarch.h, gdbarch.c: Re-generate.
7100 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7101 deprecated_fix_call_dummy.
7102 * v850-tdep.c (v850_gdbarch_init): Ditto.
7103 * infcall.c (call_function_by_hand): Do not call
7104 DEPRECATED_FIX_CALL_DUMMY.
7105
434b87dd
AC
7106 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7107 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7108 * gdbarch.h, gdbarch.c: Re-generate.
7109 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7110 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7111 deprecated_sizeof_call_dummy_words.
7112 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7114 * v850-tdep.c (v850_gdbarch_init): Ditto.
7115 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7116 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7119 * arch-utils.h (legacy_call_dummy_words)
7120 (legacy_sizeof_call_dummy_words): Delete declarations.
7121 * arch-utils.c (legacy_call_dummy_words)
7122 (legacy_sizeof_call_dummy_words): Delete variables.
7123
58d28df8
AC
7124 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7125 * gdbarch.h, gdbarch.c: Re-generate.
7126 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7127 * infcall.c (call_function_by_hand): Eliminate call to
7128 DEPRECATED_PUSH_DUMMY_FRAME.
7129 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7130 push_dummy_frame.
7131 (ns32k_push_dummy_frame): Delete function.
7132
e4a2df64
AC
7133 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7134 deprecated_call_dummy_breakpoint_offset or
7135 deprecated_call_dummy_start_offset.
7136 * dummy-frame.c, arm-tdep.c: Update comments.
7137 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7138 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7139 * gdbarch.h, gdbarch.c: Re-generate.
7140
d3712828
AC
7141 * infcall.c (legacy_push_dummy_code): Delete function.
7142 (push_dummy_code): Delete call.
7143
7a882905
AC
7144 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7145 * gdbarch.h, gdbarch.c: Re-generate.
7146 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7147 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7148 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7149 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7150
0ec5872b
AC
7151 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7152 (struct frame_info): Delete opaque declaration.
7153 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7154 * frame.c (get_frame_type): Delete call.
7155
0c93b7b6
AC
7156 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7157 pc_in_call_dummy.
7158 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7159 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7160
75536971
MK
71612004-05-08 Mark Kettenis <kettenis@gnu.org>
7162
527ca6bb
MK
7163 * alphanbsd-tdep.c: Include "gdb_string.h".
7164 * armnbsd-tdep.c: Update copyright year.
7165 Include "gdb_string.h".
7166 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7167 dependencies.
7168
d39fdc61
MK
7169 * delta68-nat.c: Remove file.
7170 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7171 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7172 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7173 (delta68-nat.o): Remove dependency.
7174
75536971
MK
7175 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7176 function.
7177 (m68k_gdbarch_init): Don't set
7178 deprecated_frameless_function_invocation.
7179
f4ca1d1f
RC
71802004-05-07 Randolph Chung <tausq@debian.org>
7181
7182 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7183 read_memory_nobpt for code reading when doing frame unwinding.
7184 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7185
2f0e8c7a
RC
71862004-05-07 Randolph Chung <tausq@debian.org>
7187
7188 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7189 instead of sp, handle sigaltstack case.
7190 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7191 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7192 signal handler and not that of the caller.
7193 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7194 hppa_linux_sigtramp_find_sigcontext.
7195
959464ff
RC
71962004-05-07 Randolph Chung <tausq@debian.org>
7197
7198 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7199 hppa-linux-nat.c.
7200 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7201 * hppa-linux-nat.c (fetch_register, store_register): Define.
7202 (fetch_inferior_registers, store_inferior_registers): Define.
7203 (supply_gregset): Add comment and clean up some unneeded code.
7204 (fill_gregset): Add comment and fix so that it saves registers in
7205 the right place in the gregset.
7206 (fill_fpregset): Fix buffer overrun problem.
7207 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7208
0da28f8a
RC
72092004-05-07 Randolph Chung <tausq@debian.org>
7210
7211 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7212 do common handling of the pcoqt register.
7213 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7214 to use helper function.
7215 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7216 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7217 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7218 generic fallback unwinder when all else fails.
7219 (hppa_gdbarch_init): Add fallback sniffer.
7220 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7221 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7222 to use helper function.
7223
b9ec757a
JB
72242004-05-08 Joel Brobecker <brobecker@gnat.com>
7225
7226 * config/djgpp/fnchange.lst: Add translation rules for
7227 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7228
756e95f1
MK
72292004-05-08 Mark Kettenis <kettenis@gnu.org>
7230
7231 * frame.c (get_prev_frame_1): Work around GCC bug.
7232 * frame.h: Add comment about GCC bug.
7233
2b4855ab
AC
72342004-05-07 Andrew Cagney <cagney@redhat.com>
7235
7236 * observer.c: Include "commands.h" and "gdbcmd.h".
7237 (observer_debug, _initialize_observer): Add the
7238 command "set/show debug observer".
7239 * observer.sh: When observer debugging, log notify calls.
7240 * Makefile.in (observer.o): Update dependencies.
7241
ba3e8e46
JM
72422004-05-07 Jason Molenda (jmolenda@apple.com)
7243
7244 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7245
16796152
JB
72462004-05-07 Jim Blandy <jimb@redhat.com>
7247
daf6dc85
JB
7248 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7249 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7250 to recognize gpr regnums, instead of assuming that
7251 tdep->ppc_fp0_regnum marks the end of the general-purpose
7252 registers.
7253
16796152
JB
7254 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7255 the given architecture has floating-point registers.
7256
c69b8bfc
AC
72572004-05-07 Andrew Cagney <cagney@redhat.com>
7258
7259 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7260 macro defined to 1.
7261 * gdbarch.h, gdbarch.c: Re-generate.
7262 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7263 deprecated_use_generic_dummy_frames.
7264
7243600a
BF
72652004-05-07 Brian Ford <ford@vss.fsi.com>
7266
7267 * NEWS: Mention Cygwin DWARF 2 support.
7268
73c1e0a1
AC
72692004-05-07 Andrew Cagney <cagney@redhat.com>
7270
7271 * objfiles.h (struct entry_info): Delete unused fields
7272 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7273 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7274 * mipsread.c (mipscoff_symfile_read): Update.
7275 * mdebugread.c (parse_partial_symbols): Update.
7276 * dwarfread.c (read_file_scope): Update.
7277 * dwarf2read.c (read_file_scope): Update.
7278 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7279 * coffread.c (complete_symtab): Update.
7280
1d3056ac
MK
72812004-05-07 Mark Kettenis <kettenis@gnu.org>
7282
7283 * infcall.c (_initialize_infcall): Fix typo.
7284
15170568
AC
72852004-05-07 Andrew Cagney <cagney@redhat.com>
7286
7287 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7288 * command.h (add_setshow_zinteger_cmd): Declare.
7289
34f75cc1
RC
72902004-05-06 Randolph Chung <tausq@debian.org>
7291
7292 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7293 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7294 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7295 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7296 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7297 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7298 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7299 definitions ...
7300 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7301 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7302 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7303 (hppa64_hpux_frame_find_saved_regs_in_sig)
7304 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7305 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7306 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7307 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7308 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7309 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7310 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7311 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7312 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7313 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7314 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7315 (hppa32_register_type, hppa_cannot_store_register)
7316 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7317 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7318 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7319 * pa64solib.c (pa64_solib_have_load_event)
7320 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7321 (pa64_solib_unloaded_library_pathname): Likewise.
7322 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7323 (som_solib_library_pathname): Likewise.
7324
0a5e7efe
JI
73252004-05-05 Jim Ingham <jingham@apple.com>
7326
7327 * breakpoint.c (create_breakpoints): Copy the ignore count and
7328 thread id over from the pended breakpoint to the actual
7329 breakpoint.
7330
10a4b113
AC
73312004-05-05 Andrew Cagney <cagney@redhat.com>
7332
7333 * gdbarch.sh (PARM_BOUNDARY): Delete.
7334 gdbarch.h, gdbarch.c: Re-generate.
7335 * valops.c (PARM_BOUNDARY): Delete macro.
7336 (value_push): Delete PARM_BOUNDARY code.
7337 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7338
366f009f
JB
73392004-05-04 Jim Blandy <jimb@redhat.com>
7340
32b99774
JB
7341 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7342 Don't assume that the gprs, fprs, and UISA sprs are
7343 contiguous, start at register number zero, and end with fpscr.
7344 Instead, use the numbers from the tdep structure.
7345
366f009f
JB
7346 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7347 should no longer be used in code specific to the RS6000 and its
7348 derivatives.
7349 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7350 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7351 tdep->ppc_fp0_regnum.
7352 (ppc_supply_fpregset, ppc_collect_fpregset)
7353 (rs6000_push_dummy_call, rs6000_extract_return_value)
7354 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7355 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7356 FP0_REGNUM.
7357 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7358 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7359 Same.
7360 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7361 bdm_ppc_store_registers): Same.
7362 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7363 (store_register, fill_fpregset): Same.
7364 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7365 (ppc_linux_supply_fpregset): Same.
7366 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7367 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7368 Same.
7369 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7370 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7371 ppc64_sysv_abi_return_value): Same.
7372 * rs6000-nat.c (regmap, fetch_inferior_registers)
7373 (store_inferior_registers, fetch_core_registers): Same.
7374
827f338d
MK
73752004-05-01 Mark Kettenis <kettenis@gnu.org>
7376
7377 * m68knbsd-nat.c: Remove file.
7378 * m68knbsd-tdep.c: Remove file.
7379 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7380 dependencies.
7381 * configure.host: Add m68k-*-netbsdelf*.
7382 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7383 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7384 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7385 (XM_FILE): Remove.
7386 * config/m68k/nbsdelf.mh: New file.
7387 * config/m68k/nbsd.mt: New file.
7388 * config/m68k/nbsdaout.mt: Remove file.
7389 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7390 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7391 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7392 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7393 (use_struct_convention): Remove prototype.
7394 (USE_STRUCT_CONVENTION): Remove define.
7395 * config/m68k/xm-nbsd.h: Remove file.
7396
66894781
MS
73972004-05-04 Michael Snyder <msnyder@redhat.com>
7398
7399 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7400 reg_struct_return method (as gcc usually does for cross targets).
7401
f0f63663
AC
74022004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7403
7404 Committed by Andrew Cagney.
7405 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7406 alignment padding when accessing ucontext struct members.
7407
edf61169
JB
74082004-05-04 Jim Blandy <jimb@redhat.com>
7409
8bf659e8
JB
7410 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7411 'ppc_gplast_regnum' member.
7412 (ppc_num_gprs): New enum constant.
7413 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7414 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7415 * rs6000-nat.c (regmap, fetch_inferior_registers,
7416 store_inferior_registers): Same.
7417 * rs6000-tdep.c (e500_pseudo_register_read)
7418 (e500_pseudo_register_write): Same.
7419 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7420
b967e06f
JB
7421 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7422 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7423 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7424 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7425 FPLAST_REGNUM.
7426 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7427 Same.
7428 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7429 * rs6000-nat.c (regmap, fetch_inferior_registers)
7430 (store_inferior_registers): Same.
7431
edf61169
JB
7432 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7433 with FPLAST_REGNUM.
7434
58a9656e
JB
74352004-05-03 Joel Brobecker <brobecker@gnat.com>
7436
7437 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7438 failure detected by recent versions of GCC.
7439 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7440 to be consistent with the usage in dwarf2_create_include_psymtab.
7441
dc305454
MS
74422004-05-03 Michael Snyder <msnyder@redhat.com>
7443
7444 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7445 (heuristic_proc_start): Whitespace cleanup.
7446
29972665
MK
74472004-05-04 Mark Kettenis <kettenis@gnu.org>
7448
6b57680d
MK
7449 * sun3-nat.c: Remove file.
7450 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7451 dependencies.
7452 (ALLDEPFILES): Remove sun3-nat.c.
7453 (sun3-nat.o): Remove dependencies.
7454
29972665
MK
7455 * i386-interix-nat.c, i386-interix-tdep.c,
7456 config/i386/nm-interix.h, config/i386/interix.mh,
7457 config/i386/interix.mt: Remove files.
7458 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7459 dependencies.
7460
f595cb19
MK
74612004-05-03 Mark Kettenis <kettenis@gnu.org>
7462
7463 * m68k-tdep.h (struct gdbarch_tdep): Add member
7464 struct_value_regnum.
7465 (m68k_svr4_init_abi): New prototype.
7466 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7467 different calling conventions.
7468 (m68k_extract_return_value): Remove code dealing with single-field
7469 structs.
7470 (m68k_store_return_value): Remove code dealing with single-field
7471 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7472 (m68k_extract_struct_value_address): Remove function.
7473 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7474 (m68k_reg_struct_return_p, m68k_return_value)
7475 (m68k_svr4_return_value): New functions.
7476 (m68k_use_struct_convention): Remove function.
7477 (m68k_push_dummy_call): Use new struct_value_regnum member of
7478 `struct gdbarch_tdep' instead of hardcoded register number to
7479 store STRUCT_ADDR.
7480 (m68k_svr4_init_abi): New function.
7481 (m68k_gdbarch_init): Don't set extract_return_value,
7482 store_return_values, deprecated_extract_struct_value_address and
7483 use_struct_convention. Set return_value instead. Initialize new
7484 struct_value_regnum member of `struct gdbarch_tdep'.
7485 * m68klinux-tdep.c: Update copyright year.
7486 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7487 (m68k_linux_extract_struct_value_address): Remove function.
7488 (m68k_linux_init_abi): Don't set extract_return_value,
7489 store_return_values, deprecated_extract_struct_value_address and
7490 use_struct_convention. Call m68k_svr4_init_abi but override the
7491 new struct_value_regnum member of `struct gdbarch_tdep'.
7492 * Makefile.in (m68k-tdep.o): Update dependencies.
7493
aaa75496
JB
74942004-05-03 J. Brobecker <brobecker@gnat.com>
7495
7496 * dwarf2read.c (line_header): Add new included_p field in
7497 field file_names.
7498 (partial_die_info): New field has_stmt_list. New field line_offset.
7499 (dwarf2_create_include_psymtab): New function.
7500 (dwarf2_build_include_psymtabs): New function.
7501 (add_file_name): Add forward declaration. Initialize new field.
7502 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7503 to be able to determine the list of files included by the
7504 given unit, and build their associated psymtabs.
7505 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7506 files as well.
7507 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7508 (read_file_scope): Update call to dwarf_decode_lines.
7509 (read_partial_die): Handle DW_AT_stmt_list attributes.
7510
c848556f
MC
75112004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7512
7513 Unfix PR gdb/1626.
7514 * configure.in: Revert special case for osf5.*.
7515 * configure: Regenerate.
7516
eb4556d7
JB
75172004-05-02 Jim Blandy <jimb@redhat.com>
7518
7519 Move the symbol-file-from-memory functions into their own file.
7520 * symfile-mem.c, symfile-mem.h: New files.
7521 * symfile.c (symbol_file_add_from_bfd): New function.
7522 (symbol_file_add): Call symbol_file_add_from_bfd.
7523 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7524 Moved to symfile-mem.c.
7525 (_initialize_symfile): Move definition of
7526 add-symbol-file-from-memory command to symfile-mem.c.
7527 * symfile.h (symbol_file_add_from_bfd): New declaration.
7528 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7529 * config/powerpc/linux.mt (TDEPFILES): Same.
7530 * Makefile.in (SFILES): Add symfile-mem.c.
7531 (symfile_mem_h): New variable.
7532 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7533 (symfile-mem.o): New rule.
7534
80bb239e
AC
75352004-05-01 Andrew Cagney <cagney@redhat.com>
7536
7789d0fa
AC
7537 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7538 frame_find_by_id instead of frame_relative_level.
7539 (do_enable_breakpoint): Ditto.
7540 * thread.c: Update copyright.
7541 (info_threads_command): Ditto, simplify.
7542
80bb239e
AC
7543 * frame.c (deprecated_generic_get_saved_register): Delete
7544 function, moved to "xstormy16-tdep.c".
7545 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7546 deprecated_generic_get_saved_register from "frame.c".
7547 (xstormy16_frame_saved_register): Call
7548 xstormy16_get_saved_register.
7549 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7550 static.
7551 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7552 * frame.h (deprecated_generic_get_saved_register): Delete.
7553
b2a871dd
MC
75542004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7555
7556 * dwarfread.c: Update documentation on the state of dwarf-1.
7557
0e100dab
AC
75582004-05-01 Andrew Cagney <cagney@redhat.com>
7559
acd8056e
AC
7560 * stack.c (select_frame_command): Delete call to
7561 frame_relative_level.
7562 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7563 Delete #if0 code.
7564 (frame_info): Do not print FRAMELESS.
7565 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7566 (catch_info): Delete #if0 code.
7567
0e100dab
AC
7568 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7569 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7570 of frame_relative_level.
7571 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7572 to SENTINEL_FRAME.
7573 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7574 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7575 frame_relative_level.
7576
55699d59
AC
7577 * frame.h (deprecated_set_frame_type): Delete declaration.
7578 * frame.c (deprecated_set_frame_type): Delete function, update
7579 comments.
7580
fcf70625
AC
7581 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7582 * gdbarch.h, gdbarch.c: Re-generate.
7583 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7584 (shnbsd_pc_in_sigtramp): Delete.
7585 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7586 pc_in_sigtramp.
7587 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7588 pc_in_sigtramp.
7589 * frame.h: Update comments.
7590 * ppc-linux-tdep.c: Update comments.
7591 * breakpoint.c (bpstat_what): Update comments.
7592
ac5eccb7
AC
7593 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7594 m68klinux-tdep.o's dependencies, were previously added to
7595 m68klinux-nat.o.
7596
f2524b93
AC
7597 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7598 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7599 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7600 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7601 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7602
17e20bce
AC
7603 * Makefile.in (m68klinux-nat.o): Update dependencies.
7604 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7605 (m68k_linux_sigtramp_frame_cache)
7606 (m68k_linux_sigtramp_frame_this_id)
7607 (m68k_linux_sigtramp_frame_prev_register)
7608 (m68k_linux_sigtramp_frame_unwind)
7609 (m68k_linux_sigtramp_frame_sniffer)
7610 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7611 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7612 names, use trad-frame.h.
7613 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7614 (struct m68k_sigtramp_info): Delete.
7615 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7616 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7617 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7618 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7619 "m68klinux-tdep.c".
7620
c8864fa2
AC
7621 * infrun.c (check_sigtramp2): Delete check for
7622 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7623
511dd2cd
MK
76242004-05-01 Mark Kettenis <kettenis@gnu.org>
7625
7626 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7627
8c6b0e06
AC
76282004-05-01 Andrew Cagney <cagney@redhat.com>
7629
9df0bb3f
AC
7630 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7631 (frv_linux_sigtramp_frame_cache)
7632 (frv_linux_sigtramp_frame_this_id)
7633 (frv_linux_sigtramp_frame_prev_register)
7634 (frv_linux_sigtramp_frame_unwind)
7635 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7636 include "linux" in function and variable names, directly call
7637 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7638 the latest trad-frame code.
7639 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7640 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7641 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7642 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7643 * frv-tdep.c (frv_sigtramp_frame_cache)
7644 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7645 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7646 frv-linux-tdep.c.
7647 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7648 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7649 (frv_set_sigcontext_reg_addr): Delete function.
7650
8c6b0e06
AC
7651 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7652 (DEPRECATED_SIGTRAMP_END): Delete.
7653 * gdbarch.h, gdbarch.c: Re-generate.
7654 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7655 * config/vax/tm-vaxbsd.h: Update copyright.
7656 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7657 (DEPRECATED_IN_SIGTRAMP): Define.
7658 * config/m68k/tm-nbsd.h: Update copyright.
7659 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7660 (DEPRECATED_IN_SIGTRAMP): Define.
7661
50ea7769
MK
76622004-05-01 Mark Kettenis <kettenis@gnu.org>
7663
03ac2a74
MK
7664 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7665 encondings. Fixes PR gdb/1628.
7666
50ea7769
MK
7667 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7668 DW_CFA_restore state without a matching DW_CFA_remember_state
7669 instead of aborting. Fixes PR backtrace/1589.
7670
9a5d7be1
JB
76712004-04-30 Joel Brobecker <brobecker@gnat.com>
7672
7673 * MAINTAINERS: Add self as AIX maintainer.
7674 Update my e-mail address in write-after-approval section.
7675
2593d1cd
AC
76762004-04-30 Andrew Cagney <cagney@redhat.com>
7677
ce12bbf9
AC
7678 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7679 (legacy_get_prev_frame): Ditto.
7680
36710c63
AC
7681 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7682 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7683 * mipsread.c (sigtramp_address): Delete extern variable.
7684 (mipscoff_new_init): Delete reference.
7685 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7686 (fixup_sigtramp): Delete function.
7687 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7688 (fixup_sigtramp): Delete declarations.
7689
2593d1cd
AC
7690 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7691 deprecated_pc_in_sigtramp.
7692 (ppcnbsd_pc_in_sigtramp): Delete function.
7693
2a25f91c
MK
76942004-05-01 Mark Kettenis <kettenis@gnu.org>
7695
7696 * config/m68k/nm-nbsd.h: Tweak comments.
7697 * config/m68k/nm-nbsdaout.h: Likewise.
7698
0b281939
AC
76992004-04-30 Andrew Cagney <cagney@redhat.com>
7700
7701 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7702 legacy_pc_in_sigtramp.
7703 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7704
8f2d3ea0
MK
77052004-05-01 Mark Kettenis <kettenis@gnu.org>
7706
7707 Add OpenBSD/m68k support.
7708 * NEWS (New native configurations): Mention OpenBSD/m68k.
7709 * m68kbsd-tdep.c: New file.
7710 * m68kbsd-nat.c: New file.
7711 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7712 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7713 * configure.host: Add m68k-*-openbsd.
7714 * configure.tgt: Add m68k-*-openbsd.
7715 * config/m68k/tm-obsd.h: New file.
7716 * config/m68k/obsd.mt: New file.
7717 * config/m68k/obsd.mh: New file.
7718 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7719 m68kbsd-tdep.c.
7720
c40f49a4
AC
77212004-04-30 Andrew Cagney <cagney@redhat.com>
7722
7723 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7724 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7725
e81554cd
MK
77262004-04-30 Mark Kettenis <kettenis@gnu.org>
7727
7728 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7729 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7730
d4dc1a91
BF
77312004-04-30 Brian Ford <ford@vss.fsi.com>
7732
7733 Revert 2004-04-16 change.
7734 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7735 (i386_coff_init_abi): Remove.
7736 * i386-tdep.h (i386_coff_init_abi): Remove.
7737 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7738
2f72f850
AC
77392004-04-30 Andrew Cagney <cagney@redhat.com>
7740
e492f9d6
AC
7741 * blockframe.c (find_pc_partial_function): Delete use of
7742 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7743 DEPRECATED_SIGTRAMP_END.
7744
7b7adad0
AC
7745 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7746 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7747 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7748 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7749 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7750
2f72f850
AC
7751 * defs.h (deprecated_inside_entry_file): Delete declaration.
7752 * blockframe.c (deprecated_inside_entry_file): Delete function.
7753 (legacy_frame_chain_valid): Delete call.
7754 * sh64-tdep.c (sh64_frame_chain): Delete call.
7755 * objfiles.h: Update comments.
7756 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7757 call.
7758 * frame.c (get_prev_frame): Delete call, update comments.
7759
283f90a7
BF
77602004-04-30 Brian Ford <ford@vss.fsi.com>
7761
7762 * MAINTAINERS (Write After Approval): Add myself.
7763
8ee56bcf
AC
77642004-04-30 Andrew Cagney <cagney@redhat.com>
7765
7766 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7767 * gdbarch.h, gdbarch.c: Re-generate.
7768 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7769 code.
7770
ee27e1b6
AC
77712004-04-30 Andrew Cagney <cagney@redhat.com>
7772
7773 * gdb-events.sh (selected_thread_changed)
7774 (selected_frame_level_changed, target_changed): Delete.
7775 * gdb-events.h, gdb-events.c: Re-generate.
7776 * valops.c (value_assign): Update.
7777 * stack.c (select_frame_command, up_silently_base)
7778 (down_silently_base): Update.
7779
d5ac5a39
AC
77802004-04-29 Andrew Cagney <cagney@redhat.com>
7781
7782 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7783 registers correctly.
7784 (print_gp_register_row, mips32_heuristic_proc_desc)
7785 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7786 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7787 references to mips_isa_regsize.
7788
ceae6e75
AC
77892004-04-29 Andrew Cagney <cagney@redhat.com>
7790
7791 * mips-tdep.c (struct gdbarch_tdep): Delete
7792 mips_fp_register_double.
7793 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7794 mips_abi_regsize.
7795 (mips_gdbarch_init): Do not set mips_fp_register_double.
7796 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7797
a587af0b
AC
77982004-04-29 Joel Brobecker <brobecker@gnat.com>
7799
7800 Committed by Andrew Cagney.
7801 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7802 function calls.
7803
13326b4e
AC
78042004-04-29 Andrew Cagney <cagney@redhat.com>
7805
7806 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7807 gdbarch, use mips_abi, update callers.
7808 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7809 mips_abi_regsize, update callers.
7810 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7811 mips_default_abi_regsize.
7812 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7813 mips_default_abi_regsize.
7814
711cc5cd
AC
78152004-04-29 Andrew Cagney <cagney@redhat.com>
7816
1b13c4f6
AC
7817 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7818 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7819 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7820 mips_default_abi_regsize.
7821 (mips_isa_regsize): Rename mips_regisze.
7822 * mipsnbsd-tdep.c: Update.
7823 * mips-linux-tdep.c: Update.
7824 * irix5-nat.c: Update.
7825 * mips-tdep.h (mips_isa_regsize): Update.
7826
711cc5cd
AC
7827 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7828 Delete all disabled code.
7829 * gdb-events.h, gdb-events.c: Re-generate.
7830
e63bbc88
MK
78312004-04-19 Jerome Guitton <guitton@gnat.com>
7832 Mark Kettenis <kettenis@gnu.org>
7833
7834 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7835 the function begins with a branch instruction.
7836
fd35795f
MK
78372004-04-29 Mark Kettenis <kettenis@gnu.org>
7838
7839 * i386-tdep.c: Fix spelling mistakes.
7840
c960c18f
AC
78412004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7842 Andrew Cagney <cagney@redhat.com>
7843
7844 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7845 <sys/proc.h>.
7846 * acconfig.h: Provide default _KMEMUSER value.
7847 * config.in, configure: Re-generate.
7848 * NEWS: Mention fix.
7849
50306a9d
RC
78502004-04-24 Randolph Chung <tausq@debian.org>
7851
7852 * configure.host (hppa*-*-linux*): New target.
7853 * configure.tgt (hppa*-*-linux*): Likewise.
7854 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7855 gdbarch_init_osabi() call earlier so that osabi-specific frame
7856 unwinders can be registered first.
7857 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7858 hppa-linux-nat.c.
7859 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7860 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7861 * config/pa/linux.mh: New file.
7862 * config/pa/linux.mt: New file.
7863 * config/pa/nm-linux.h: New file.
7864 * config/pa/xm-linux.h: New file.
7865 * hppa-linux-nat.c: New file.
7866 * hppa-linux-tdep.c: New file.
7867
2a6228ef
RC
78682004-04-28 Randolph Chung <tausq@debian.org>
7869
7870 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7871 return values.
7872 (hppa32_push_dummy_call): Fix small struct and floating point argument
7873 passing, and make sure the stack frame is properly aligned.
7874
82c10df6
AC
78752004-04-28 Andrew Cagney <cagney@redhat.com>
7876
d762c46a
AC
7877 * stack.c (print_stack_frame): Fix description.
7878
82c10df6
AC
7879 * NEWS: Mention gdb/gdbserver/configure execute permission
7880 changed. PR server/519.
7881
0faf0076
AC
78822004-04-28 Andrew Cagney <cagney@redhat.com>
7883
7884 * stack.c (print_stack_frame_stub): Delete declaration.
7885 (struct print_stack_frame_args, print_stack_frame)
7886 (print_frame_info, print_frame): Replace "source" with print what.
7887 Replace "print" with "print_level". Replace "args" with
7888 "print_args".
7889 * frame.h (show_and_print_stack_frame, print_stack_frame)
7890 (print_frame_info): Update declarations.
7891 * stack.c (select_and_print_frame, frame_command)
7892 (current_frame_command, up_command, down_command): Update calls -
7893 use get_selected_frame, pass "enum print_what" for source, do not
7894 call frame_relative_level.
7895 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7896 * remote-rdp.c (remote_rdp_open): Ditto.
7897 * remote-mips.c (common_open): Ditto.
7898 * remote-e7000.c (e7000_start_remote): Ditto.
7899 * ocd.c (ocd_start_remote): Ditto.
7900 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7901 * infrun.c (normal_stop): Ditto.
7902 * inflow.c (kill_command): Ditto.
7903 * infcmd.c (finish_command): Ditto.
7904 * corelow.c (core_open): Ditto.
7905 * tracepoint.c (finish_tfind_command): Ditto.
7906 * thread.c (info_threads_command, info_threads_command)
7907 (restore_current_thread, do_captured_thread_select): Ditto.
7908 * ada-tasks.c (task_command): Ditto.
7909
f4c5303c
OF
79102004-04-26 Orjan Friberg <orjanf@axis.com>
7911
7912 * frame.c: Include "observer.h".
7913 (frame_observer_target_changed): New function.
7914 (_initialize_frame): Attach target_changed observer.
7915 * regcache.c: Include "observer.h".
7916 (regcache_observer_target_changed): New function.
7917 (_initialize_regcache): Attach target_changed observer.
7918 * valops.c: Include "observer.h".
7919 (value_assign): Notify target_changed event when modifying register.
7920 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7921
7270d8f2
OF
79222004-04-26 Orjan Friberg <orjanf@axis.com>
7923
7924 From Paul Koning <pkoning@equallogic.com>:
7925 * breakpoint.c (free_valchain): New function.
7926 (insert_bp_location, delete_breakpoint): Use free_valchain.
7927 (remove_breakpoint): Do not remove the valchain.
7928 (bpstat_stop_status): If not stopped by watchpoint, skip
7929 watchpoints when generating stop status list.
7930 * infrun.c (handle_inferior_event): Make
7931 stepped_after_stopped_by_watchpoint a global variable.
7932 * remote.c (remote_stopped_data_address): Return watch data
7933 address rather than zero if stepped_after_stopped_by_watchpoint is
7934 set.
7935
02d62932
MC
79362004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7937
7938 Fix PR gdb/1626.
7939 * configure.in: Check for curses after termcap.
7940 On osf5.*, do not check for ncurses.
7941 * configure: Regenerate.
7942
3e9a183c
MK
79432004-04-25 Mark Kettenis <kettenis@gnu.org>
7944
c79ac407
MK
7945 * ppcobsd-nat.c: Include "ppc-tdep.h".
7946 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7947
3e9a183c
MK
7948 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7949 Fixes PR tdep/1623 and PR tdep/1624.
7950
38cc9c28
MC
79512004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7952
7953 * xmodem.h, xmodem.c: Remove files.
7954 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7955
7f07c5b6
RC
79562004-04-23 Randolph Chung <tausq@debian.org>
7957
7958 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7959 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7960 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7961 for handling stackless frames.
7962 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7963
9f7194c3
RC
79642004-04-23 Randolph Chung <tausq@debian.org>
7965
7966 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7967 starts at a pc before the frame is created.
7968
dcff6009
JB
79692004-04-23 Joel Brobecker <brobecker@gnat.com>
7970
7971 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7972
40711ff1 79732004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7974
7975 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7976 use convert_typed_floating to get the appropriate format.
7977
abc485a1
RC
79782004-04-22 Randolph Chung <tausq@debian.org>
7979
7980 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7981 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7982 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7983 (hppa_sign_extend): Add prototype.
7984 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7985 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7986 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7987 hppa targets will also use these functions.
7988 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7989 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7990 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7991 (hppa_gdbarch_init): Remove gdbarch setting of
7992 skip_trampoline_code, in_solib_call_trampoline and
7993 in_solib_return_trampoline.
7994 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7995 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7996 hppa_in_solib_call_trampoline.
7997 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7998 Moved from hppa-tdep.c.
7999 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8000 in_solib_call_trampoline and in_solib_return_trampoline.
8001
369aa520
RC
80022004-04-22 Randolph Chung <tausq@debian.org>
8003
8004 * hppa-tdep.c (hppa_debug): New variable.
8005 (find_unwind_entry, hppa_frame_cache): Add debug output.
8006 (_initialize_hppa_tdep): Add command to set debug flag.
8007
476be15e
AC
80082004-04-22 Andrew Cagney <cagney@redhat.com>
8009
8010 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8011 "trad-frame.h".
8012 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8013 signal trampoline unwinder.
8014 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8015
d195bc9f
MK
80162004-04-22 Mark Kettenis <kettenis@gnu.org>
8017
8018 Add OpenBSD/powerpc support.
8019 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8020 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8021 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8022 (ppc_collect_fpregset): New prototypes.
8023 * ppcobsd-nat.c: New file.
8024 * ppcobsd-tdep.c: New file.
8025 * ppcobsd-tdep.h: New file.
8026 * rs6000-tdep.c: Include "regset.h".
8027 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8028 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8029 New functions.
8030 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8031 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8032 (rs6000-tdep.o): Update dependencies.
8033 * configure.host: Add powerpc-*-openbsd.
8034 * configure.tgt: Add powerpc-*-openbsd.
8035 * config/powerpc/obsd.mh: New file.
8036 * config/powerpc/nm-obsd.h: New file.
8037 * config/powerpc/obsd.mt: New file.
8038
6f14cc33
AC
80392004-04-22 Andrew Cagney <cagney@redhat.com>
8040
fcf29e5f
AC
8041 * frame.h (show_frame_info): Delete declaration.
8042
6f14cc33
AC
8043 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8044 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8045 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8046 * frv-tdep.c (frv_frame_this_id): Ditto.
8047 * avr-tdep.c (avr_frame_this_id): Ditto.
8048
e5786a5c
EZ
80492004-04-22 Elena Zannoni <ezannoni@redhat.com>
8050
8051 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8052
26e75e5c
JB
80532004-04-22 Jim Blandy <jimb@redhat.com>
8054
8055 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8056 register number zero.
8057
d8d65dd3
MS
80582004-04-21 Michael Snyder <msnyder@redhat.com>
8059
8060 * mips-tdep.c (heuristic_proc_start):
8061 Warning() already prefixes "Warning: ".
8062
9a4105ab
AC
80632004-04-21 Andrew Cagney <cagney@redhat.com>
8064
8065 * annotate.h (deprecated_annotate_starting_hook)
8066 (deprecated_annotate_stopped_hook)
8067 (deprecated_annotate_exited_hook)
8068 (deprecated_annotate_signal_hook)
8069 (deprecated_annotate_signalled_hook): Deprecate.
8070 * tracepoint.h (deprecated_create_tracepoint_hook)
8071 (deprecated_delete_tracepoint_hook)
8072 (deprecated_modify_tracepoint_hook)
8073 (deprecated_trace_find_hook)
8074 (deprecated_trace_start_stop_hook): Deprecate.
8075 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8076 * remote.h (deprecated_target_resume_hook)
8077 (deprecated_target_wait_loop_hook): Deprecate.
8078 * gdbcore.h (deprecated_exec_file_display_hook)
8079 (deprecated_file_changed_hook): Deprecate.
8080 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8081 * defs.h (deprecated_modify_breakpoint_hook)
8082 (deprecated_command_loop_hook, deprecated_show_load_progress)
8083 (deprecated_print_frame_info_listing_hook)
8084 (deprecated_query_hook, deprecated_warning_hook)
8085 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8086 (deprecated_delete_breakpoint_hook)
8087 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8088 (deprecated_readline_begin_hook, deprecated_readline_hook)
8089 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8090 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8091 (deprecated_context_hook, deprecated_target_wait_hook)
8092 (deprecated_attach_hook, deprecated_detach_hook)
8093 (deprecated_call_command_hook, deprecated_set_hook)
8094 (deprecated_error_hook, deprecated_error_begin_hook)
8095 (deprecated_ui_load_progress_hook): Deprecate.
8096 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8097 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8098 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8099 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8100 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8101 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8102 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8103 * annotate.c, aix-thread.c: Update.
8104
62cf13cc
AC
81052004-04-21 Andrew Cagney <cagney@redhat.com>
8106
b2e31a62
AC
8107 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8108 * vaxnbsd-tdep.c: Include "gdb_string.h".
8109
62cf13cc
AC
8110 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8111 (add_symbol_file_from_memory_command): #if 0 function body, call
8112 error instead.
8113
00e32a35
AC
81142004-04-21 Andrew Cagney <cagney@redhat.com>
8115
8116 * gdbcore.h: Update copyright.
8117 (deprecated_add_core_fns): Rename add_core_fns.
8118 * win32-nat.c (_initialize_core_win32): Update.
8119 * sun3-nat.c (_initialize_core_sun3): Update.
8120 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8121 * rs6000-nat.c (_initialize_core_rs6000): Update.
8122 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8123 * nto-tdep.c (_initialize_nto_tdep): Update.
8124 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8125 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8126 * mips-nat.c (_initialize_core_mips): Update.
8127 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8128 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8129 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8130 * lynx-nat.c (_initialize_core_lynx): Update.
8131 * irix5-nat.c (_initialize_core_irix5): Update.
8132 * i386-interix-nat.c (_initialize_core_interix): Update.
8133 * cris-tdep.c (_initialize_cris_tdep): Update.
8134 * corelow.c (deprecated_add_core_fns): Update.
8135 * core-regset.c (_initialize_core_regset): Update.
8136 * core-aout.c (_initialize_core_aout): Update.
8137 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8138 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8139 * alpha-nat.c (_initialize_core_alpha): Update.
8140
13c7b1ca
JB
81412004-04-21 Jim Blandy <jimb@redhat.com>
8142
8143 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8144
7b5a2f43
DJ
81452004-04-19 Daniel Jacobowitz <drow@mvista.com>
8146
8147 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8148 Delete.
8149 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8150 (read_attribute_value): Update calls to dwarf_alloc_block.
8151 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8152 dwarf2_tmp_obstack.
8153 (psymtab_to_symtab_1): Likewise. Clean up using
8154 free_stack_comp_unit.
8155 (add_to_cu_func_list): Use the comp_unit_obstack.
8156
05cf31d1
JB
81572004-04-19 Joel Brobecker <brobecker@gnat.com>
8158
8159 * dwarf2read.c (dwarf2_flag_true_p): New function.
8160 (die_is_declaration): Use the function above. Add some comments.
8161
adf93a2f
MK
81622004-04-19 Mark Kettenis <kettenis@gnu.org>
8163
8164 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8165 architecture when registering sparcnbsd_core_osabi_sniffer.
8166 Adjust comment.
8167
748894bf
MK
81682004-04-18 Mark Kettenis <kettenis@gnu.org>
8169
f622ad42
MK
8170 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8171 return value.
8172
c4fc7f1b
MK
8173 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8174 * i386-tdep.c: Correct register numbering scheme comments
8175 throughout.
8176 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8177 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8178 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8179 (i386_gdb_arch_init): Likewise.
8180
b4ead1bd
MK
8181 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8182 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8183 ppcnbsd-tdep.o.
8184
748894bf
MK
8185 * m68k-tdep.h: Tweak comments.
8186 * m68k-tdep.c: Tweak comment.
8187
fdd72f95
RC
81882004-04-17 Randolph Chung <tausq@debian.org>
8189
8190 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8191 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8192 (hppa_hpux_som_init_abi): Set is_elf to 0.
8193 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8194 * hppa-tdep.c (low_text_segment_address): Remove global.
8195 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8196 section offset to calculate segment address.
8197 (internalize_unwinds): Define low_text_segment_address as local and
8198 pass to record_text_segment_lowaddr for ELF targets.
8199 (hppa_gdbarch_init): Zero fill tdep structure.
8200 (hppa_dump_tdep): Print tdep structure.
8201 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8202
0f8d9d59
RC
82032004-04-17 Randolph Chung <tausq@debian.org>
8204
8205 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8206 (hppa_gdbarch_init): Set pseudo_register_read.
8207 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8208 * regcache.c (supply_register): Remove check for
8209 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8210
7c46b9fb
RC
82112004-04-17 Randolph Chung <tausq@debian.org>
8212
8213 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8214 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8215 (hpread_adjust_stack_address): Move to hpread.c.
8216 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8217 obj_private_struct): Move from tm-hppa.h.
8218 * hpread.c (hppa-tdep.h): Include.
8219 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8220 (hpread_read_function_type, hpread_read_doc_function_type)
8221 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8222 directly.
8223 * pa64solib.c (hppa-tdep.h): Include.
8224 * somsolib.c (hppa-tdep.h): Include.
8225 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8226 inferior_status): Remove unused forward declarations.
8227 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8228 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8229 obj_private_struct): Move to hppa-tdep.h.
8230 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8231
8d153463
RC
82322004-04-17 Randolph Chung <tausq@debian.org>
8233
8234 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8235 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8236 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8237 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8238 Remove forward declaration and make static.
8239 (hppa_reg_struct_has_addr): Remove.
8240
350c2e5b
JB
82412004-04-16 Joel Brobecker <brobecker@gnat.com>
8242
8243 * observer.sh: Move comments in sed command to first column.
8244
bbde78fa
JM
82452004-04-16 Jason Molenda (jmolenda@apple.com)
8246
8247 * frame.c: Minor typeo corrections in comments.
8248
e0270fd9
JB
82492004-04-16 Joel Brobecker <brobecker@gnat.com>
8250
8251 * observer.c (observer_test_first_notification_function): Update
8252 function profile.
8253 (observer_test_second_notification_function): Likewise.
8254 (observer_test_third_notification_function): Likewise.
8255
3d049254
MK
82562004-04-16 Mark Kettenis <kettenis@gnu.org>
8257
8258 From Brian Ford <ford@vss.fsi.com>:
8259 * i386-tdep.c (i386_coff_init_abi): New function.
8260 * i386-tdep.h (i386_coff_init_abi): New prototype.
8261 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8262 register number translation functions for DWARF and DWARF 2.
8263
7867684d
JB
82642004-04-16 Joel Brobecker <brobecker@gnat.com>
8265
8266 * dwarf2read.c: Back out my previous change, it was incorrect.
8267
72bf9492
DJ
82682004-04-16 Daniel Jacobowitz <drow@mvista.com>
8269
8270 * dwarf2read.c: Include "hashtab.h".
8271 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8272 has_namespace_info.
8273 (struct partial_die_info): Add comments. Use bitfields to reduce
8274 memory footprint. Add scope, scope_set, has_specification,
8275 spec_offset, die_parent, die_child, and die_sibling.
8276 (peek_die_abbrev): Add prototype.
8277 (partial_read_comp_unit_head): New function, broken out from
8278 dwarf2_build_psymtabs_hard.
8279 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8280 Use partial_read_comp_unit_head. Initialize the CU and
8281 comp_unit_obstack. Update calls to read_partial_die and
8282 scan_partial_symbols. Use free_stack_comp_unit and
8283 load_partial_dies.
8284 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8285 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8286 Update calls to helper functions. Remove NAMESPACE argument.
8287 Update comments.
8288 (partial_die_parent_scope, partial_die_full_name): New functions.
8289 (add_partial_symbol): Remove namespace argument. Update call to
8290 pdi_needs_namespace. Use partial_die_full_name. Handle
8291 DW_TAG_namespace. Check has_namespace_info flag.
8292 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8293 tag. Handle namespaces.
8294 (add_partial_namespace, add_partial_enumeration): Simplify.
8295 (guess_structure_name): New function, derived from
8296 add_partial_structure.
8297 (add_partial_structure): Remove.
8298 (determine_class_name): Update comment.
8299 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8300 (is_type_tag_for_partial, load_partial_dies): New functions.
8301 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8302 Record specifications instead of following them immediately.
8303 (find_partial_die_in_comp_unit, find_partial_die)
8304 (fixup_partial_die, free_stack_comp_unit)
8305 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8306 (partial_die_hash, partial_die_eq): New functions.
8307 * Makefile.in (hashtab_h): Define.
8308 (dwarf2read.o): Update dependencies.
8309 (observer_inc, observer_h): Move to the correct section.
8310
fdc860a3
JB
83112004-04-15 Joel Brobecker <brobecker@gnat.com>
8312
8313 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8314 (die_is_declaration): Use the function above. Add comment.
8315
dc718098
JB
83162004-04-15 Joel Brobecker <brobecker@gnat.com>
8317
8318 * dwarf2read.c (read_structure_scope): Identify stub types
8319 using die_is_declaration() only.
8320
8718a420
RM
83212004-04-15 Roland McGrath <roland@redhat.com>
8322
8323 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8324 argument instead of NAME.
8325 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8326 in call to symbol_file_add_with_addrs_or_offsets.
8327 (build_addr_info): New function, helper for ...
8328 (symbol_file_add_from_memory): New function.
8329 (add_symbol_file_from_memory_command): New function using that.
8330 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8331 (pre_add_symbol_hook): Add const to argument type.
8332 * symfile.h (symbol_file_add_from_memory): Declare it.
8333
8b910bab
MK
83342004-04-15 Mark Kettenis <kettenis@gnu.org>
8335
9f076e7a
MK
8336 * NEWS (New native configurations): Mention OpenBSD/vax.
8337 * configure.host: Add vax-*-openbsd*.
8338 * config/vax/obsd.mh: New file.
8339 * config/vax/nm-obsd.h: New file.
8340
8b910bab
MK
8341 * vax-tdep.c: Include "regset.h".
8342 (vax_supply_gregset): New function.
8343 (vax_gregset): New variable.
8344 (vax_regset_from_core_section): New function.
8345 (vax_gdbarch_init): Set regset_from_core_section.
8346 * Makefile.in (vax-tdep.o): Update dependencies.
8347
7a464420
AC
83482004-04-15 Andrew Cagney <cagney@redhat.com>
8349
8350 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8351 (observer_normal_stop_notification_stub)
8352 (observer_attach_normal_stop, observer_detach_normal_stop):
8353 Delete, replaced by #include "observer.inc".
8354 * infrun.c (normal_stop): Pass "stop_bpstat" to
8355 observer_notify_normal_stop.
8356 * Makefile.in (observer_inc): Define.
8357 (observer.o): Update dependencies.
8358 (observer.h, observer.inc): New rules.
8359 * observer.h: Delete file.
8360 * observer.sh: New file.
8361
e36ad527
MK
83622004-04-15 Mark Kettenis <kettenis@gnu.org>
8363
8364 * vax-tdep.c (vax_frame_cache): Fix typo.
8365
67b441e1
MK
83662004-04-14 Mark Kettenis <kettenis@gnu.org>
8367
6f606e1c
MK
8368 * NEWS (New native configurations): Mention NetBSD/vax.
8369 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8370 * config/vax/nbsdelf.mh: New file.
8371 * config/vax/nbsdaout.mh: New file.
8372 * config/vax/nm-nbsd.h: New file.
8373 * config/vax/nm-nbsdaout.h: New file.
8374
9c5519a5
MK
8375 * vaxnbsd-tdep.c: New file.
8376 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8377 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8378 * config/vax/nbsd.mt: New file.
8379 * config/vax/tm-nbsd.h: New file.
8380
4844a614
MK
8381 * Makefile.in (vaxbsd-nat.o): New dependency.
8382
67b441e1
MK
8383 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8384 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8385 struct_addr arguments. Don't push return value address.
8386 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8387 arguments to vax_store_arguments. Store return value address in
8388 R1.
8389 (vax_store_struct_return, vax_extract_return_value)
8390 (vax_store_return_value): Remove functions.
8391 (vax_return_value): New function.
8392 (vax_gdbarch_init): Set return value. Don't set
8393 deprecated_store_struct_return, deprecated_extract_struct_return
8394 and deprecated_store_return_value.
8395
6672f2ae
AS
83962004-04-14 Andreas Schwab <schwab@suse.de>
8397
8398 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8399 value buffer.
8400 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8401
7346c184
MK
84022004-04-14 Mark Kettenis <kettenis@gnu.org>
8403
8404 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8405 (vax_unwind_dummy_id): New functions.
8406 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8407 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8408 variables.
8409 (vax_fix_call_dummy): Remove function.
8410 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8411 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8412 call_dummy_location, deprecated_call_dummy_words,
8413 deprecated_sizeof_call_dummy_words,
8414 deprecated_call_dummy_breakpoint_offset,
8415 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8416 and deprecated_dummy_write_sp.
8417
58e23df4
DC
84182004-04-13 David Carlton <carlton@kealia.com>
8419
8420 * MAINTAINERS: Move myself to "paper trail" section.
8421
5e6b39ff
MK
84222004-04-12 Mark Kettenis <kettenis@gnu.org>
8423
7def7fef
MK
8424 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8425 "trad-frame.h".
8426 (vax_frame_init_saved_regs): Remove function.
8427 (vax_sigtramp_saved_pc): Remove function.
8428 (vax_frame_saved_pc): Remove function.
8429 (vax_frame_args_address): Remove function.
8430 (vax_frame_num_args): Rewrite.
8431 (vax_frame_chain): Remove function.
8432 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8433 VAX_FP_REGNUM.
8434 (vax_pop_frame): Likewise.
8435 (vax_saved_pc_after_call): Remove function.
8436 (struct vax_frame_cache): New structure.
8437 (vax_frame_cache): New function.
8438 (vax_frame_this_id): New function.
8439 (vax_frame_prev_register): New function.
8440 (vax_frame_unwind): New variable.
8441 (vax_frame_sniffer): New function.
8442 (vax_frame_base_address): New function.
8443 (vax_frame_args_address): New function.
8444 (vax_frame_base): New variable.
8445 (vax_unwind_pc): New function.
8446 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8447 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8448 deprecated_frame_chain, deprecated_frame_saved_pc,
8449 deprecated_frame_args_address and
8450 deprecated_frame_init_saved_regs.
8451 * Makefile.in (vax-tdep.o): Update dependencies.
8452
53284fc1
MK
8453 * vaxbsd-nat.c: New file.
8454
5e6b39ff
MK
8455 * vax-tdep.h: Update copyright year. Adjust comments.
8456 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8457 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8458 (vax_regnum): New enum. Replacing...
8459 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8460 (VAX_PS_REGNUM): ... these removed macros.
8461 * vax-tdep.c (vax_register_name): Remove prototype.
8462 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8463 (vax_register_byte, vax_register_raw_size,
8464 vax_register_virtual_size, vax_register_virtual_type): Remove
8465 functions.
8466 (vax_register_type): New function.
8467 (vax_breakpoint_from_pc): Reorganize.
8468 (vax_gdbarch_init): Set register_type. Don't set
8469 deprecated_register_size, deprecated_register_bytes,
8470 deprecated_register_byte, deprecated_register_raw_size,
8471 deprecated_max_register_raw_size,
8472 deprecated_register_virtual_size,
8473 deprecated_max_register_virtual_size and
8474 deprecated_register_virtual_type. Add comment on stack direction.
8475
e9c71e9f
MK
84762004-04-11 Mark Kettenis <kettenis@gnu.org>
8477
8478 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8479 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8480 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8481
d46f1176 84822004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8483
d46f1176
RC
8484 * MAINTAINERS (write after approval): Add myself.
8485
a2a84a72
RC
84862004-04-07 Randolph Chung <tausq@debian.org>
8487
8488 * hppa-tdep.c (hppa_inner_than): Remove.
8489 (is_pa_2): Remove unused static variable.
8718a420 8490 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8491
e85c3284
PH
84922004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8493
8494 * language.h (language_defn): Add new la_post_parser field.
8495 * parser-defs.h (null_post_parser): New declaration (default for
8496 la_post_parser).
8718a420 8497
e85c3284
PH
8498 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8499 insert call to that function.
8500 (parse_exp_in_context): New function, including code formerly in
8718a420 8501 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8502 prefixification.
8503 (parse_expression_in_context): New exported function.
8504 (null_post_parser): New definition.
8505 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8506
e85c3284
PH
8507 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8508 * c-lang.c (c_language_defn): Ditto.
8509 (cplus_language_defn): Ditto.
8510 (asm_language_defn): Ditto.
8511 (minimal_language_defn): Ditto.
8512 * f-lang.c (f_language_defn): Ditto.
8513 * jv-lang.c (java_language_defn): Ditto.
8514 * language.c (unknown_language_defn): Ditto.
8515 (auto_language_defn): Ditto.
8516 (local_language_defn): Ditto.
8517 * m2-lang.c (m2_language_defn): Ditto.
8518 * scm-lang.c (scm_language_defn): Ditto.
8519 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8520
d9f8c85b
MK
85212004-04-10 Mark Kettenis <kettenis@gnu.org>
8522
fa34704a
MK
8523 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8524 (amd64nbsd_mcontext_addr): New function.
8525 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8526 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8527 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8528
403e1656
MK
8529 * corelow.c (core_xfer_partial): Fix coding standards violation.
8530 Add support for TARGET_OBJECT_WCOOKIE.
8531
a57e5a95
MK
8532 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8533 deprecated_pc_in_sigtramp.
8534 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8535 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8536 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8537 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8538 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8539 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8540 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8541
377d9ebd
MK
8542 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8543 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8544 Fix typo.
8545
f0ef85a5
MK
8546 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8547 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8548 (amd64_collect_fxsave): Likewise.
8549
d9f8c85b
MK
8550 * i386-sol2-tdep.c: Include "gdb_string.h".
8551 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8552 name.
8553 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8554
75f501b5
MK
85552004-04-10 Mark Kettenis <kettenis@gnu.org>
8556
8557 * i386-sol2-tdep.c: Include "solib-svr4.h".
8558 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8559 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8560 * config/i386/tm-i386sol2.h: Include :solib.h".
8561 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8562 solib-svr4.o and solib-legacy.o.
8563 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8564 solib-svr4.o.
8565
b31bc724
MK
85662004-04-09 Mark Kettenis <kettenis@gnu.org>
8567
18bbbd9e
MK
8568 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8569 whether a register is supplied by PTRACE_GETFPREGS.
8570 (store_inferior_registers): Likewise.
8571 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8572 whether a register is supplied by PT_GETFPREGS.
8573 (store_inferior_registers): Likewise.
8574
3c30bf1b
MK
8575 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8576 * config/i386/linux64.mt (TDEPFILES): Likewise.
8577
a4194092
MK
8578 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8579
911bc6ee
MK
8580 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8581 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8582 the program counter is in the range specified by `struct
8583 gdbarch_tdep'.
8584 * amd64-linux-tdep.c: Include "symtab.h".
8585 (amd64_linux_pc_in_sigtramp): Remove function.
8586 (amd64_linux_sigtramp_p): New function.
8587 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8588 deprecated_pc_in_sigtramp.
8589 * amd64nbsd-tdep.c: Include "symtab.h".
8590 (amd64nbsd_sigtramp_p): New function.
8591 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8592 deprecated_pc_in_sigtramp.
8593 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8594 few comments.
8595 (amd64obsd_pc_in_sigtramp): Remove function.
8596 (amd64obsd_sigtramp_p): New function.
8597 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8598 deprecated_pc_in_sigtramp.
8599 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8600 (i386bsd_pc_ins_sigtramp): Remove prototype.
8601 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8602 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8603 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8604 the program counter is in the range specified by `struct
8605 gdbarch_tdep'.
8606 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8607 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8608 (i386_go32_pc_in_sigtramp): Remove function.
8609 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8610 Initialize TDEP->sigtramp_p.
8611 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8612 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8613 deprecated_pc_in_sigtramp.
8614 * i386-linux-tdep.c: Adjust comments.
8615 (i386_linux_pc_in_sigtramp): Remove function.
8616 (i386_linux_sigtramp_p): New function.
8617 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8618 deprecated_pc_in_sigtramp.
8619 * i386-nto-tdep.c: Update copyright year.
8620 (i386nto_pc_in_sigtramp): Remove function.
8621 (i386nto_sigtramp_p): New function.
8622 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8623 SP_REGNUM.
8624 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8625 deprecated_pc_in_sigtramp.
8626 * i386-sol2-tdep.c: Update copyright year.
8627 (i386_sol2_pc_in_sigtramp): Remove function.
8628 (i386_sol2_sigtramp_p): New function.
8629 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8630 deprecated_pc_in_sigtramp.
8631 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8632 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8633 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8634 deprecated_sigtramp_start and deprecated_sigtramp_end.
8635 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8636 (i386nbsd_pc_in_sigtramp): Remove function.
8637 (i386nbsd_sigtramp_p): New function.
8638 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8639 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8640 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8641 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8642 (i386obsd_pc_in_sigtramp): Remove function.
8643 (i386obsd_sigtramp_p): New function.
8644 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8645 functions.
8646 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8647 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8648 TDEP->sigtramp_p.
8649 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8650 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8651 dependencies.
8652
e083e6ec
MK
8653 * config/i386/i386aout.mt: Remove file.
8654
bd153b94
MK
8655 * configure.tgt: Remove i[34567]86-*-go32*,
8656 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8657 and i[34567]86-*-isc*. Set gdb_target to i386 for
8658 i[34567]86-*-netware* and i[34567]86-*-*.
8659 * config/i386/i386.mt: New file.
8660 * config/i386/embed.mt: Remove file.
8661 * config/i386/go32.mt: Remove file.
8662 * config/i386/i386nw.mt: Remove file.
8663 * config/i386/i386v.mt: Remove file.
8664 * config/i386/tm-go32.h: Remove file.
8665
4a1bcc8c
MK
8666 * tui/tui-hooks.c: Include "readline/readline.h" after
8667 "gdb_curses.h" instead of before.
8668 * tui/tui-io.c: Likewise.
8669
f9a79064
MK
8670 * tui/tui.c: Fix typo in comment.
8671
b31bc724
MK
8672 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8673
f83f82bc
AC
86742004-04-08 Andrew Cagney <cagney@redhat.com>
8675
8676 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8677 (deprecated_exception_support_initialized): Declare.
8718a420 8678 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8679 (initialize_hp_cxx_exception_support)
8680 (child_enable_exception_callback): Update.
8681 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8682 (deprecated_exception_support_initialized): Rename
8683 deprecated_exception_catchpoints_are_fragile and
8684 deprecated_exception_support_initialized.
8685 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8686
8687 * symtab.c (deprecated_hp_som_som_object_present): Rename
8688 hp_som_som_object_present.
8689 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8690 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8691 Update. Delete extern declaration.
8692 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8693 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8694 (parse_nested_classes_for_hpacc): Ditto.
8695 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8696 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8697 (initialize_hp_cxx_exception_support): Ditto.
8698 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8699 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8700 (cp_print_class_method): Ditto.
8718a420 8701 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8702 (c_type_print_base): Ditto.
8703 * c-exp.y (hp_som_som_object_present): Ditto.
8704
fb2be677
AC
87052004-04-08 Andrew Cagney <cagney@redhat.com>
8706
8707 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8708 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8709 (frame_unwind_find_by_frame): Re-implement the unwind code so
8710 that it can both prepend and append sniffers. Replace
8711 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8712 * tramp-frame.c (tramp_frame_append): Use
8713 frame_unwind_prepend_unwinder.
8714 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8715 frame_unwind_register_unwinder.
8716 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8717 tramp_frame_append.
8718 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8719 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8720 (mips_linux_init_abi): Update.
8721
67faf007
KB
87222004-04-08 Kevin Buettner <kevinb@redhat.com>
8723
8724 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8725 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8726 file support.
8727
8973ff21
KB
87282004-04-07 Kevin Buettner <kevinb@redhat.com>
8729
8730 * ia64-tdep.c (elf.h): Don't include.
8731 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8732
4a0e2f88
JM
87332004-04-07 Jason Molenda (jmolenda@apple.com)
8734
8735 * frame.h: Typeo corrections in comments.
8736
9872ad24
JB
87372004-04-07 Jim Blandy <jimb@redhat.com>
8738
8739 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8740 %esp and %ebp
8741
70b216c8
MK
87422004-04-07 Mark Kettenis <kettenis@gnu.org>
8743
11d5789c
MK
8744 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8745 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8746 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8747 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8748 and solib-legacy.o.
8749 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8750 solib-svr4.o.
8751 * config/sparc/tm-sol2.h: Update copyright year. Include
8752 "solib.h".
8753
70b216c8
MK
8754 * sparc-sol2-tdep.c: Update copyright year. Include
8755 "solib-svr4.h".
8756 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8757 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8758 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8759 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8760 dependencies.
8761
6339dc9e
AC
87622004-04-06 Andrew Cagney <cagney@redhat.com>
8763
8764 * infttrace.c: Include "infttrace.h".
8765 * infttrace.h: Include "target.h".
8766 * Makefile.in (infttrace_h): Update.
8767 (infttrace.o): Update.
8718a420 8768
93449403
AC
87692004-04-06 Andrew Cagney <cagney@redhat.com>
8770
6d518969
AC
8771 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8772 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8773 move extern declarations from here ...
8774 * infttrace.h: ... to here.
8775 * Makefile.in (hppah-nat.o): Update dependencies.
8776
85f4f2d8
AC
8777 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8778 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8779 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8780 (hppa_breakpoint_from_pc): Delete.
8781
93449403
AC
8782 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8783
71456ec6
AC
87842004-04-05 Andrew Cagney <cagney@redhat.com>
8785
8786 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8787 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8788 <sys/file.h>.
8718a420 8789
4c02c60c
AC
87902004-04-06 Randolph Chung <tausq@debian.org>
8791
8792 Committed by Andrew Cagney (mechanical change).
8793 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8794 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8795 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8796 child_enable_exception_callback, current_ex_event,
8797 null_symtab_and_line, child_get_current_exception_event,
8798 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8799 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8800 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8801 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8802 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8803 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8804 Move hpux-specific definitions ...
8805 * hppa-hpux-tdep.c: ... to here.
8806
3a515653
AC
88072004-04-05 Andrew Cagney <cagney@redhat.com>
8808
8809 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8810 skip_prologue_using_sal.
8811
c1730d02
AC
88122004-04-05 Andrew Cagney <cagney@redhat.com>
8813
8814 * config/i386/tm-i386.h: Delete file.
8815 * config/i386/tm-vxworks.h: Update copyright, do not include
8816 "tm-i386.h".
8817 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8818 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8819 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8820 * config/i386/ncr3000.mt (TM_FILE): Delete.
8821 * config/i386/interix.mt (TM_FILE): Delete.
8822 * config/i386/i386v.mt (TM_FILE): Delete.
8823 * config/i386/i386nw.mt (TM_FILE): Delete.
8824 * config/i386/i386gnu.mt (TM_FILE): Delete.
8825 * config/i386/i386aout.mt (TM_FILE): Delete.
8826 * config/i386/embed.mt (TM_FILE): Delete.
8827
8b67aa36
KB
88282004-04-05 Kevin Buettner <kevinb@redhat.com>
8829
8830 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8831 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8832 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8833 (accg7_regnum): New constants.
8834 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8835 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8836 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8837 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8838 for accg registers.
8839 (frv_register_sim_regno): Update spr_map[].
8840
3c7012f5
AC
88412004-04-04 Andrew Cagney <cagney@redhat.com>
8842
8843 * config/mips/xm-riscos.h: Delete.
8844 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8845 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8846 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8847 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8848 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8849 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8850 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8851 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8852 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8853 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8854 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8855 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8856 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8857 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8858 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8859 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8860 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8861 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8862 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8863 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8864 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8865 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8866 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8867 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8868 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8869 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8870
3c7012f5
AC
8871 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8872 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8873 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8874 * configure.host: Remove m680[01]0-sun-sunos3*,
8875 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8876 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8877 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8878 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8879 mips-*-riscos*.
8880 * NEWS: Mention removed systems.
8881
99d16a21
AC
88822004-04-04 Andrew Cagney <cagney@redhat.com>
8883
8884 GDB 6.1 release created from 6.1 branch.
8885
6cdf9d98
AC
88862004-04-04 Andrew Cagney <cagney@redhat.com>
8887
98d346c3
AC
8888 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8889 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8890 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8891
6cdf9d98
AC
8892 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8893 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8894 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8895
859a326d
JB
88962004-04-03 Jim Blandy <jimb@redhat.com>
8897
8898 * MAINTAINERS: Chris Faylor has changed employers; add him to
8899 "paper trail" section, and update his E-mail address.
8900
b87178c3
AC
89012004-04-03 Andrew Cagney <cagney@redhat.com>
8902
4ea2acf0
AC
8903 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8904 generic dummy frames.
8905 * dummy-frame.c: Update copyright.
8906 (dummy_frame_sniffer): Delete check for generic dummy frames.
8907
d0bd2d18 8908 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8909 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8910 (REG_PARM_STACK_SPACE): Delete.
8911 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8912 Inline reference to REG_PARM_STACK_SPACE.
8913
b87178c3
AC
8914 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8915 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8916 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8917 (FRAME_BASE_BEFORE_SIGTRAMP)
8918 (hppa32_hpux_frame_base_before_sigtramp)
8919 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8920 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8921 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8922 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8923 (FRAME_BASE_BEFORE_SIGTRAMP)
8924 (hppa64_hpux_frame_base_before_sigtramp)
8925 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8926
43e2e1a0
AC
89272004-04-03 Andrew Cagney <cagney@redhat.com>
8928
8929 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8930
ddc135a4
AC
89312004-04-02 Andrew Cagney <cagney@redhat.com>
8932
8933 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8934 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8935 * dummy-frame.h: Delete out-of-date comments.
8936 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8937 * gdbarch.h, gdbarch.c: Re-generate.
8938
d15bfd3a 89392004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8940
d15bfd3a
AC
8941 Committed by Andrew Cagney <cagney@redhat.com>.
8942 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8943 into account an instruction saving a register if we have already
8944 seen an earlier instruction saving that same register.
8945
f04ceafa
AC
89462004-04-02 Andrew Cagney <cagney@redhat.com>
8947
08be3abd
AC
8948 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8949 * gdbarch.h, gdbarch.c: Re-generate.
8950 * frame.c (legacy_get_prev_frame): Delete references to
8951 DEPRECATED_INIT_FRAME_PC_FIRST.
8952
f04ceafa
AC
8953 * infrun.c (pc_in_sigtramp): Delete function.
8954 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8955 get_frame_type.
8956
08e69816
AC
89572004-04-02 Andrew Cagney <cagney@redhat.com>
8958
8959 * infrun.c (handle_step_into_function): Delete code conditional on
8960 legacy_frame_p.
8961 (handle_inferior_event, step_over_function): Ditto.
8962
adb54772
AC
89632004-04-02 Andrew Cagney <cagney@redhat.com>
8964
8965 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8966 "previous frame inner to this frame" test.
8967
304396fb
AC
89682004-04-02 Andrew Cagney <cagney@redhat.com>
8969
8970 * frame.c (safe_frame_unwind_memory): New function.
8971 * frame.h (safe_frame_unwind_memory): Declare. Update description
8972 of /safe_/ methods.
8973 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8974 "next_frame". Use safe_frame_unwind_memory.
8975 (tramp_frame_sniffer): Update call to tramp_frame_start.
8976
6502dd73
DJ
89772004-04-01 Daniel Jacobowitz <drow@mvista.com>
8978
8979 * dwarf2read.c (dwarf2_objfile_data_key): New.
8980 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8981 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8982 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8983 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8984 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8985 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8986 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8987 Remove variables.
8988 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8989 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8990 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8991 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8992 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8993 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8994 Remove macros.
8995 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8996 data.
8997 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8998 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8999 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9000 (read_partial_die, read_full_die, read_indirect_string)
9001 (dwarf_decode_line_header, dwarf_decode_macros)
9002 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9003 Update uses of removed variables.
9004 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9005 of removed macros.
9006 (_initialize_dwarf2_read): New function.
9007 * symfile.h (dwarf2_has_info): Update prototype.
9008 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9009 * elfread.c (elf_symfile_read): Likewise.
9010
408752b0
JB
90112004-04-01 Jim Blandy <jimb@redhat.com>
9012
9f744501
JB
9013 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9014 function for register numbers on all the rs6000-derived targets.
9015 (rs6000_gdbarch_init): Don't register a separate
9016 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9017 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9018 variants.
9019
408752b0
JB
9020 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9021 numbering.
9022
2de41bce
PH
90232004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9024
9025 * valarith.c: Update copyright notice.
9026 (value_add): Handle range types.
9027 (value_sub): Ditto.
9028 (value_equal): Ditto.
9029 (value_less): Ditto.
9030 (value_neg): Ditto.
9031 (value_complement): Ditto.
8718a420 9032 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9033 eliminiating unnecessary COERCE_ENUMs.
8718a420 9034
5613d8d3
AC
90352004-03-31 Andrew Cagney <cagney@redhat.com>
9036
9037 * frame.h (frame_unwind_id): Declare.
9038 * frame.c (frame_unwind_id): New function.
9039 (get_prev_frame_1): New function.
9040 (frame_debug_got_null_frame): New function.
9041 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9042 code proper to prev_frame, update description.
9043 * infrun.c (step_over_function): Use frame_unwind_id.
9044
c4557624
JB
90452004-04-31 J. Brobecker <brobecker@gnat.com>
9046
9047 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9048 (hppa64_push_dummy_call): Likewise.
9049
3e6bb910
JB
90502004-03-30 Jim Blandy <jimb@redhat.com>
9051
9052 From Ulrich Weigand:
9053 * utils.c (query): Do not use a va_list variable multiple times.
9054
a2f23071
DJ
90552004-03-29 Daniel Jacobowitz <drow@mvista.com>
9056
9057 * Makefile.in (linux_nat_h): Update dependencies.
9058 * configure.in: Check for <gnu/libc-version.h>.
9059 * configure: Regenerate.
9060 * config.in: Regenerate.
9061 * linux-nat.h: Include "target.h". Add waitstatus field to
9062 struct lwp_info.
9063 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9064 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9065 to.
9066 (lin_lwp_handle_extended): New function. Handle clone events.
9067 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9068 thread exit events.
9069 (child_wait): Handle clone events.
9070 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9071 * linux-nat.c (linux_enable_event_reporting): Turn on
9072 PTRACE_O_TRACECLONE.
9073 (linux_handle_extended_wait): Handle clone events.
9074 * thread-db.c: Include <gnu/libc-version.h>.
9075 (struct private_thread_info): Add dying flag.
9076 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9077 higher.
9078 (attach_thread): Update comments. Handle dying threads.
9079 (detach_thread): Set the dying flag.
9080 (check_event): Always call attach_thread.
9081
8d5f9dcb
DJ
90822004-03-29 Daniel Jacobowitz <drow@mvista.com>
9083
9084 * mips-tdep.c (mips_pdr_data): New.
9085 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9086 (_initialize_mips_tdep): Initialize mips_pdr_data.
9087
66337bb1
CV
90882004-03-29 Corinna Vinschen <vinschen@redhat.com>
9089
9090 * minsyms.c (install_minimal_symbols): Move dropping leading
9091 char from linkage name from here...
9092 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9093 test for "__gnu_compiled*" symbols.
9094
e802b915
JB
90952004-03-28 Jim Blandy <jimb@redhat.com>
9096
9097 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9098 registers to temp register r0 and byte stores as prologue
9099 instructions.
9100
72b56458
AC
91012004-03-28 Andrew Cagney <cagney@redhat.com>
9102
9103 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9104 arm*-*-*.
9105
0bfbda3b
SC
91062004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9107
9108 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9109 and switch the layout to force a display of register window.
9110
5a7225ed
JB
91112004-02-26 J. Brobecker <brobecker@gnat.com>
9112
9113 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9114 of the INTEGER class.
9115
81a07a45
JB
91162004-03-26 Jim Blandy <jimb@redhat.com>
9117
9118 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9119 bytes long on PPC GNU/Linux.
9120
8c691c7a
DC
91212004-03-26 David Carlton <carlton@kealia.com>
9122
9123 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9124
103a0089
AC
91252004-03-25 Andrew Cagney <cagney@redhat.com>
9126
9127 * PROBLEMS: Add general section titles, remove references to
9128 specific releases.
9129
7a5ea0d4
DJ
91302004-03-25 Daniel Jacobowitz <drow@mvista.com>
9131
9132 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9133 INT_REGISTER_SIZE.
9134 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9135 FP_REGISTER_VIRTUAL_SIZE.
9136 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9137 of DEPRECATED_REGISTER_RAW_SIZE.
9138 (arm_register_type): Add gdbarch argument.
9139 (arm_register_raw_size, arm_register_virtual_size): Delete.
9140 (arm_register_byte, arm_extract_return_value)
9141 (arm_store_return_value, arm_get_longjmp_target): Update references
9142 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9143 (arm_gdbarch_init): Likewise. Don't set
9144 deprecated_register_raw_size, deprecated_register_virtual_size,
9145 deprecated_max_register_raw_size,
9146 deprecated_max_register_virtual_size, or
9147 deprecated_max_register_virtual_type. Do set register_type.
9148 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9149 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9150 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9151 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9152 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9153 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9154 INT_REGISTER_SIZE.
9155 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9156 (remote_rdp_store_register): Likewise.
9157
5792a79b
DJ
91582004-03-24 Daniel Jacobowitz <drow@mvista.com>
9159
9160 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9161 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9162 to after osabi initialization.
9163 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9164 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9165 functions.
9166 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9167 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9168 variables.
9169 (mips_linux_init_abi): Append signal trampoline unwinders.
9170
1196bfda
AC
91712004-03-24 Andrew Cagney <cagney@redhat.com>
9172
9173 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9174 * tramp-frame.c: Include "gdb_assert.h".
9175 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9176 correct sizeof.
9177 (tramp_frame_append): Validate the tramp frame's instructions.
9178 * Makefile.in (tramp-frame.o): Update dependencies.
9179
4be282b4
AC
91802004-03-23 Andrew Cagney <cagney@redhat.com>
9181
9182 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9183
69aec09b
AC
91842004-03-23 Andrew Cagney <cagney@redhat.com>
9185
9186 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9187 Nasser as past testsuite/lib/ (and other) maintainers.
9188
63ed89b4
DJ
91892004-03-23 Daniel Jacobowitz <drow@mvista.com>
9190
9191 * infcmd.c (attach_command): Reread symbols if we already have
9192 an exec file.
9193
f3b36427
AC
91942004-03-23 Andrew Cagney <cagney@redhat.com>
9195
9196 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9197
aa2a3f87
AC
91982004-03-23 Andrew Cagney <cagney@redhat.com>
9199
9200 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9201 * gdbarch.h, gdbarch.c: Re-generate.
9202 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9203 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9204 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9205 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9206 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9207 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9208 (DEPRECATED_SIGTRAMP_START): Update.
9209 * blockframe.c (find_pc_sect_partial_function): Update.
9210 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9211
00cac895
DJ
92122004-03-23 Daniel Jacobowitz <drow@mvista.com>
9213
9214 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9215 if necessary.
9216
f561f026
AC
92172004-03-23 Andrew Cagney <cagney@redhat.com>
9218
9219 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9220 predicate, deprecate.
9221 * gdbarch.h, gdbarch.c: Re-generate.
9222 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9223 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9224 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9225 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9226 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9227 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9228 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9229 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9230 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9231 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9232 * blockframe.c (find_pc_partial_function): Update.
9233 * breakpoint.c (bpstat_what): Update.
9234 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9235 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9236 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9237 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9238 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9239 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9240 * i386-nto-tdep.c (i386nto_init_abi): Update.
9241 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9242 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9243 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9244 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9245 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9246 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9247 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9248 * infrun.c (pc_in_sigtramp): Update.
9249 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9250 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9251 * mips-tdep.c (mips_gdbarch_init): Update.
9252 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9253 * ppc-linux-tdep.c: Update comment.
9254 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9255 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9256 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9257 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9258 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9259 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9260 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9261 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9262 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9263 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9264
8050c72f
AC
92652004-03-23 Andrew Cagney <cagney@redhat.com>
9266
d2259dd3
AC
9267 * tramp-frame.h, tramp-frame.h: New files.
9268 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9269 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9270
8050c72f
AC
9271 * Makefile.in: Update all dependencies.
9272
0db9b4b7
AC
92732004-03-23 Andrew Cagney <cagney@redhat.com>
9274
9275 * Makefile.in (trad_frame_h): Add $(frame_h).
9276 * trad-frame.h: Update copyright. Include "frame.h".
9277 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9278 (trad_frame_set_id, trad_frame_get_id): Declare.
9279 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9280 * trad-frame.c: Update copyright.
9281 (struct trad_frame_cache): Define.
9282 (trad_frame_cache_zalloc): New function.
9283 (trad_frame_set_id, trad_frame_get_id): New functions.
9284 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9285
8e645ae7
AC
92862004-03-22 Andrew Cagney <cagney@redhat.com>
9287
9288 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9289 s390_pltstub_unwind_cache.
9290 (s390_stub_frame_unwind_cache): Rename
9291 s390_pltstub_frame_unwind_cache.
9292 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9293 (s390_stub_frame_prev_register): Rename
9294 s390_pltstub_frame_prev_register.
9295 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9296 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9297
9298 From Ulrich Weigand:
9299 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9300 pointer calls like PLT calls.
9301
34fcf120
DJ
93022004-03-22 Daniel Jacobowitz <drow@mvista.com>
9303
9304 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9305 PC rather than the partial function start address. Use the start
9306 address to sanity check the found PDR.
9307
5b917078
DJ
93082004-03-22 Daniel Jacobowitz <drow@mvista.com>
9309
9310 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9311 linux_handle_extended_wait.
9312
8adf9e78
AC
93132004-03-22 Andrew Cagney <cagney@redhat.com>
9314
c3122434
AC
9315 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9316 function.
9317
8adf9e78
AC
9318 * frame.h (generic_pop_current_frame): Delete declaration.
9319 (deprecate_pop_dummy_frame): Deprecate
9320 generic_pop_dummy_frame.
9321 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9322 (generic_pop_current_frame): Delete function.
9323 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9324 generic_pop_current_frame.
9325 * v850-tdep.c (v850_pop_frame): Update.
9326 * mcore-tdep.c (mcore_pop_frame): Update.
9327 * sh64-tdep.c (sh64_pop_frame): Update.
9328 * h8300-tdep.c (h8300_pop_frame): Update.
9329
90ba813f
AC
93302004-03-22 Andrew Cagney <cagney@redhat.com>
9331
9332 * frame.h (deprecated_pc_in_call_dummy): Rename
9333 generic_pc_in_call_dummy.
9334 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9335 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9336 generic_pc_in_call_dummy.
9337 (pc_in_dummy_frame): Make static.
9338 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9339 * gdbarch.h, gdbarch.c: Re-generate.
9340 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9341 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9342 (legacy_get_prev_frame): Ditto.
9343 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9344 comment.
8718a420 9345
ca4bb888
AC
93462004-03-21 Andrew Cagney <cagney@redhat.com>
9347
244675f9
AC
9348 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9349 declaration and out-of-date comment.
9350 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9351 Delete function.
9352 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9353 deprecated_pc_in_call_dummy.
9354
ca4bb888
AC
9355 * infrun.c (handle_inferior_event): For non legacy frames, use the
9356 frame ID and frame type to identify a signal trampoline. Update
9357 comments.
9358
1777c7b4
NW
93592004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9360
9361 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9362 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9363
82417da5
AC
93642004-03-21 Andrew Cagney <cagney@redhat.com>
9365
9366 * frame-unwind.h: Update copyright.
9367 (struct frame_data): Add opaque declaration.
9368 (frame_sniffer_ftype): Declare.
9369 (struct frame_unwind): Add "unwind_data" and "sniffer".
9370 (frame_unwind_register_unwinder): Declare.
9371 (frame_unwind_find_by_frame): Add parameter "this_cache".
9372 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9373 (legacy_get_prev_frame, legacy_get_prev_frame)
9374 (get_frame_type): Pass the prologue_cache to
9375 frame_unwind_find_by_frame.
9376 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9377 "unwinder".
9378 (frame_unwind_register_unwinder): New function.
9379 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9380
b2ba182e
PH
93812004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9382
9383 * bcache.c (print_percentage): Use floating point to avoid
9384 incorrect results when portion*100 overflows.
9385
81332287
KB
93862004-03-19 Kevin Buettner <kevinb@redhat.com>
9387
9388 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9389 (ppc_linux_init_extra_frame_info)
9390 (ppc_linux_frameless_function_invocation)
9391 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9392 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9393 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9394 (rs6000_frame_chain): Delete declarations.
9395 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9396 (ppc_linux_init_extra_frame_info)
9397 (ppc_linux_frameless_function_invocation)
9398 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9399 (ppc_linux_init_abi): Remove registration of above deleted functions.
9400 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9401 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9402 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9403 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9404 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9405 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9406 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9407 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9408 frame management for all OSABIs.
9409
61a65099
KB
94102004-03-19 Andrew Cagney <cagney@redhat.com>
9411
9412 Committed by Kevin Buettner <kevinb@redhat.com>.
9413
9414 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9415 Update copyright.
9416 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9417 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9418 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9419 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9420 unwinders. #ifdef legacy frame code.
9421 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9422 "frame-base.h".
9423 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9424 (struct rs6000_frame_cache, rs6000_frame_cache)
9425 (rs6000_frame_this_id, rs6000_frame_prev_register)
9426 (rs6000_frame_sniffer, rs6000_frame_unwind)
9427 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9428 (rs6000_frame_base): Implement a traditional frame unwinder.
9429 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9430 frame unwinder.
9431
88f7da05
KB
94322004-03-19 Kevin Buettner <kevinb@redhat.com>
9433
9434 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9435 breakpoint address for watchpoints or the catch eventpoints.
9436 Add new paramter ``bptype''. Adjust all callers.
9437
f826dce1
AC
94382004-03-19 Andrew Cagney <cagney@redhat.com>
9439
33cb8b0f
AC
9440 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9441
f826dce1
AC
9442 * PROBLEMS: Delete note that ARM does not use frame code, problem
9443 fixed.
9444
43b1ab88
AC
94452004-03-18 Andrew Cagney <cagney@redhat.com>
9446
292ab034
AC
9447 * stack.c (return_command): Delete code wrapped in #ifdef
9448 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9449
43b1ab88
AC
9450 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9451
dbfe4626
AC
94522004-03-18 Andrew Cagney <cagney@redhat.com>
9453
9454 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9455 DEPRECATED_IN_SIGTRAMP.
9456 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9457 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9458 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9459 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9460 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9461 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9462 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9463 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9464 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9465 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9466
0cad6aec
AC
94672004-03-18 Andrew Cagney <cagney@redhat.com>
9468
9469 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9470 (struct frame_base_table_entry): Define.
9471 (struct frame_base_table): Re-implement as a linked list.
9472 (frame_base_init): Re-implement.
9473 (frame_base_table): Delete function.
9474 (append_predicate): Delete function.
9475 (frame_base_append_sniffer): Update.
9476 (frame_base_set_default): Update.
9477 (frame_base_find_by_frame): Update.
9478 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9479 * Makefile.in (frame-base.o): Update dependencies.
9480
9982c2e7
AC
94812004-03-17 Andrew Cagney <cagney@redhat.com>
9482
9483 * frame.c (legacy_get_prev_frame): Pass correct frame to
9484 frame_unwind_find_by_frame.
9485
8dfe8985
DC
94862004-03-17 David Carlton <carlton@kealia.com>
9487
9488 * NEWS: Mention C++ nested types and namespaces
9489
ed47347a
MC
94902004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9491
9492 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9493 and "Regressions since gdb 5.3.". Add known regressions since
9494 gdb 6.0.
9495
90aeadfc
DC
94962004-03-16 David Carlton <carlton@kealia.com>
9497
9498 * dwarf2read.c (process_structure_scope): Process children even
9499 when we're a declaration.
9500
73912b9b
AC
95012004-03-16 Andrew Cagney <cagney@redhat.com>
9502
9503 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9504 * blockframe.c (find_pc_partial_function)
9505 (find_pc_sect_partial_function): Merge into a single
9506 find_pc_partial_function.
9507
283accbc
MK
95082004-03-16 Mark Kettenis <kettenis@gnu.org>
9509
9510 * i386bsd-nat.c: s/regno/regnum/g.
9511 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9512 FP0_REGNUM.
9513 (store_inferior_registers): Likewise.
9514
f5b1afdf
MK
95152004-03-16 Mark Kettenis <kettenis@gnu.org>
9516
9517 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9518 of i387_fill_fsave.
9519 (store_inferior_registers): Call i387_collect_fsave and
9520 i387_collect_fxsave instead of i387_fill_fsave and
9521 i387_fill_fxsave.
9522
41fe5eb3
AC
95232004-03-15 Andrew Cagney <cagney@redhat.com>
9524
9525 * Makefile.in (frame-unwind.o): Update dependencies.
9526 * frame-unwind.c: Include "gdb_obstack.h".
9527 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9528 parameter.
9529 (append_predicate): Delete function.
9530 (struct frame_unwind_table_entry): New structure.
9531 (struct frame_unwind_table): Replace "sniffer" with "head" and
9532 "tail".
9533 (frame_unwind_append_sniffer): Update.
9534 (frame_unwind_find_by_frame): Update.
9535 (_initialize_frame_unwind): Registe frame_unwind_init using
9536 gdbarch_data_register_pre_init.
9537
3f63813d
MK
95382004-03-15 Mark Kettenis <kettenis@gnu.org>
9539
9540 * i386bsd-nat.c: Update copyright year.
9541 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9542 define unconditionally.
9543
3248c325 95442004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9545
9546 * i387-tdep.h (i387_collect_fsave): New prototype.
9547 * i387-tdep.c (i387_collect_fsave): New function containing most
9548 of the code from i387_fill_fsave.
3248c325 9549 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9550
871fbe6a
MK
95512004-03-15 Mark Kettenis <kettenis@gnu.org>
9552
9553 * i386-linux-tdep.c: Update copyright year.
9554 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9555 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9556 svr4_ilp32_link_map_offsets instead of
9557 i386_linux_svr4_fetch_link_map_offsets.
9558
8176b9b8
DC
95592004-03-15 David Carlton <carlton@kealia.com>
9560
9561 Fix for PR c++/1553:
9562 * dwarf2read.c (read_structure_type): Determine type name by
9563 calling determine_class_name.
9564 (determine_class_name): New.
9565 (determine_prefix): Look at TYPE_TAG_NAME and call
9566 determine_class_name when appropriate.
9567 (determine_prefix_aux, class_name): Delete.
9d58e29d 9568 (read_namespace): Set die->type.
8176b9b8 9569
fe8bf7d7
KB
95702004-03-15 Kevin Buettner <kevinb@redhat.com>
9571
9572 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9573 unused macro definition. The definition in target.h (or perhaps
9574 elsewhere) takes precedence.
9575
ed6edd9b
AC
95762004-03-15 Andrew Cagney <cagney@redhat.com>
9577
f9be684a
AC
9578 * ppc-tdep.h: Update copyright.
9579 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9580 function signatures to match "regsets.h".
9581 * ppc-linux-tdep.c: Include "regset.h".
9582 (ELF_GREGSET_SIZE): Delete.
9583 (right_supply_register): New function.
9584 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9585 using right_supply_register.
9586 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9587 functions.
9588 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9589 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9590 (_initialize_ppc_linux_tdep): Do not register
9591 ppc_linux_regset_core_fns.
9592 (ppc_linux_regset_from_core_section): Replace
9593 fetch_core_registers.
9594 (ppc_linux_regset_core_fns): Delete.
9595 * ppc-linux-nat.c: (right_fill_reg): New function.
9596 (supply_gregset): Update call to ppc_linux_supply_gregset.
9597 (fill_gregset): Clear the register set, use right_fill_reg.
9598 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9599 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9600
ed6edd9b
AC
9601 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9602 unsigned.
9603
030f20e1
AC
96042004-03-15 Andrew Cagney <cagney@redhat.com>
9605
9606 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9607 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9608 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9609 and register_gdbarch_data.
9610 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9611 (struct gdbarch_data): Replace "init" by "pre_init" and
9612 "post_init".
9613 * gdbarch.h, gdbarch.c: Re-generate.
9614 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9615 with"obstack", use OBSTACK_ZALLOC.
9616 (dwarf2_frame_ops): Delete.
9617 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9618 (dwarf2_frame_init_reg): Use gdbarch_data.
9619 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9620 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9621 (_initialize_svr4_solib): Update.
9622 * user-regs.c (_initialize_user_regs): Update.
9623 * reggroups.c (_initialize_reggroup): Update.
9624 * regcache.c (_initialize_regcache): Update.
9625 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9626 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9627 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9628 * frame-unwind.c (_initialize_frame_unwind): Update.
9629 * frame-base.c (_initialize_frame_base): Update.
9630 * user-regs.c (user_reg_add): Update.
9631 * reggroups.c (reggroup_add): Update.
9632 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9633 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9634 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9635 * frame-base.c (frame_base_table): Update.
9636 * remote.c (_initialize_remote): Update.
9637 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9638
3111a3fc
AC
96392004-03-15 Andrew Cagney <cagney@redhat.com>
9640
9641 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9642
5ecb7103
KB
96432004-03-15 Kevin Buettner <kevinb@redhat.com>
9644
9645 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9646 * frv-linux-tdep.c: New file.
9647 * frv-tdep.c (struct gdbarch_tdep): Add new field
9648 ``sigcontext_reg_addr''.
9649 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9650 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9651 (frv_sigramp_frame_sniffer): New functions.
9652 (frv_sigtramp_frame_unwind): New static global.
9653 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9654 sniffers.
9655 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9656 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9657
1ccda5e9
KB
96582004-03-15 Kevin Buettner <kevinb@redhat.com>
9659
9660 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9661 but not via a call to error(), when unable to read memory.
9662
b375a0a5
KB
96632004-03-15 Kevin Buettner <kevinb@redhat.com>
9664
9665 * frv-tdep.c (frv_call_dummy_words): Delete.
9666 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9667
4fdf6121
AC
96682004-03-15 Andrew Cagney <cagney@redhat.com>
9669
9670 * infrun.c (handle_step_into_function, step_over_function): Only
9671 update and use STEP_FRAME_ID when the system is using legacy
9672 frames. Update comments.
9673
34021503
MK
96742004-03-14 Mark Kettenis <kettenis@gnu.org>
9675
187e21d1
MK
9676 * amd64-linux-tdep.h: Remove file.
9677 * amd64-linux-tdep.c: Don't include "inferior.h" and
9678 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9679 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9680 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9681 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9682 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9683 macros.
9684 (user_to_gdb_regmap): Remove variable.
9685 (amd64_linux_gregset_reg_offset): New variable.
9686 (amd64_core_fns): Remove variable.
9687 (fetch_core_registers): Remove function.
9688 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9689 functions.
9690 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9691 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9692 * Makefile.in (amd64_linux_tdep_h): Remove.
9693 (amd64-linux-nat.o): Update dependencies.
9694 (amd64-linux-tdep.o): Update dependencies.
9695
99679982
MK
9696 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9697 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9698 functions.
9699 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9700
34021503
MK
9701 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9702 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9703
134d01f1
DJ
97042004-03-14 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * dwarf2read.c (read_structure_type): Rename from
8718a420 9707 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9708 Return immediately if die->type is set. Call read_type_die before
9709 dwarf2_add_member_fn.
9710 (process_structure_scope): New function.
9711 (read_enumeration_type, process_enumeration_scope): New functions,
9712 broken out from read_enumeration. Don't create the enumeration
9713 type if it has already been created.
9714 (read_enumeration): Removed.
9715 (process_die): Call read_structure_type, process_structure_scope,
9716 read_enumeration_type, and process_enumeration_scope. Just call
9717 new_symbol for base and subrange types. Add a comment about other
9718 type dies.
9719 (read_type_die): Call read_enumeration_type.
9720 (add_partial_structure, new_symbol): Update comments.
9721
65760afb
SC
97222004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9723
9724 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9725
10f59415
SC
97262004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9727
9728 * tui/tui-win.h (tui_get_cmd_list): Declare.
9729 * tui/tui-win.c (tui_command): New function.
9730 (tui_get_cmd_list): New function.
9731 (_initialize_tui_win): Moved initialization of tui command in
9732 tui_get_cmd_list.
9733
9734 * tui/tui-data.c (init_content_element): Setup new data members.
9735 (init_win_info): Likewise.
9736 (free_content_elements): Free it.
9737 * tui/tui-data.h (struct tui_data_element): Store the register
9738 content to print.
9739 (struct tui_data_info): Keep the current register group.
9740
9741 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9742
9743 * tui/tui-regs.h (tui_show_registers): Update prototype.
9744 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9745 (tui_resize_all): No need to calculate anything for register window.
9746 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9747 (tui_set_register_element, tui_set_general_regs_content): Remove.
9748 (tui_set_special_regs_content): Remove.
9749 (tui_set_general_and_special_regs_content): Remove.
9750 (tui_set_float_regs_content): Remove.
9751 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9752 (tui_set_regs_content): Remove.
9753 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9754 (tui_v_show_registers_command_support): Remove.
9755 (tui_show_registers): Use a reggroup to specify the registers to show.
9756 (tui_show_register_group): New function.
9757 (tui_display_registers_from): Compute the layout of register window
9758 and refresh with new API; be sure to delete old register windows.
9759 (tui_check_register_values): Update to use tui_get_register and
9760 tui_display_data.
9761 (tui_display_register): Just refresh the register window part.
9762 (tui_register_format): Format registers and save in tui_data_element.
9763 (tui_get_register): New to combine tui_reg_value_has_changed and
9764 tui_get_register_raw_value; fix to use the new gdb API.
9765 (tui_show_float_command): Renamed tui_reg_float_command.
9766 (tui_show_general_command): Renamed tui_reg_general_command.
9767 (tui_show_special_command): Renamed tui_reg_system_command.
9768 (_initialize_tui_regs): Remove unused commands.
9769
c3364ea4
MK
97702004-03-13 Mark Kettenis <kettenis@gnu.org>
9771
27d1e716
MK
9772 * NEWS (New native configurations): Mention OpenBSD/amd64.
9773
c3364ea4
MK
9774 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9775 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9776 Remove defines.
9777 * config/i386/nm-fbsd64.h: Likewise.
9778 * config/i386/nm-obsd.h: Likewise.
9779 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9780 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9781
b2d6d697
KB
97822004-03-12 Kevin Buettner <kevinb@redhat.com>
9783
9784 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9785 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9786 New constants.
9787
76e43199
KB
9788 From Richard Sandiford <rsandifo@redhat.com>:
9789 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9790
34ce532e
KB
97912004-03-12 Kevin Buettner <kevinb@redhat.com>
9792
9793 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9794 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9795 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9796 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9797 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9798 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9799 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9800 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9801 definitions from frv-tdep.c to frv-tdep.h.
9802
c4d10515
KB
98032004-03-12 Kevin Buettner <kevinb@redhat.com>
9804
9805 Add shared library support for FR-V FDPIC ABI:
9806 * Makefile.in (solib-frv.o): Add dependencies.
9807 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9808 New functions.
9809 (frv_push_dummy_call): Add support for FDPIC ABI.
9810 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9811 for FDPIC ABI.
9812 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9813 (frv_fdpic_find_canonical_descriptor): Declare.
9814 * solib-frv.c: New file.
9815 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9816 * config/frv/tm-frv.h (solib.h): Include.
9817
ed1bd989
KB
98182004-03-12 Kevin Buettner <kevinb@redhat.com>
9819
9820 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9821 (frv-tdep.o): Update dependencies.
9822 * frv-tdep.h: New file.
9823 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9824 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9825 constants.
9826 (struct gdbarch_tdep): Add new member ``frv_abi''.
9827 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9828 functions.
9829 (new_variant): Set ``frv_abi'' field.
9830 (gdb_arch_init): Detect FDPIC executables.
9831
82b38f72
MK
98322004-03-12 Mark Kettenis <kettenis@gnu.org>
9833
9834 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9835 wrapper.
9836
db1ea9ba
AC
98372004-03-11 Andrew Cagney <cagney@redhat.com>
9838
9839 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9840
f8766ec1
KB
98412004-03-11 Kevin Buettner <kevinb@redhat.com>
9842
9843 * solist.h (master_so_list): New function.
9844 * solib.c (master_so_list): Likewise.
9845 * solib-svr4.c (enable_break): Iterate over so_list entries
9846 obtained from master list instead of entries obtained directly
9847 via svr4_current_sos().
9848
523f6a27
BE
98492004-03-10 Ben Elliston <bje@gnu.org>
9850
9851 * MAINTAINERS: Update my mail address.
9852
37814c18
KI
98532004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9854
9855 * remote-m32r-sdi.c: Support hardware watchpoint.
9856
8b9740d8
DJ
98572004-03-09 Daniel Jacobowitz <drow@mvista.com>
9858
9859 * user-regs.c: Update copyright years.
9860 (struct user_regs): Rename to gdb_user_regs.
9861 (append_user_reg, builtin_user_regs, user_regs_init)
9862 (user_reg_add, user_reg_map_name_to_regnum)
9863 (usernum_to_user_reg): Update.
9864
4bb7a0a7
DJ
98652004-03-09 Daniel Jacobowitz <drow@mvista.com>
9866
9867 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9868 (skip_children): New functions.
9869 (locate_pdi_sibling): Call skip_children.
9870
44e1a9eb
DJ
98712004-03-09 Daniel Jacobowitz <drow@mvista.com>
9872
9873 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9874 * gdbtypes.c (check_typedef): Update comments.
9875
f3dd6933
DJ
98762004-03-09 Daniel Jacobowitz <drow@mvista.com>
9877
9878 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9879 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9880 pointer. Update comment about comp_unit_head.
9881 (struct abbrev_info): Shorten two int flags.
9882 (dwarf_alloc_abbrev): Take a CU argument.
9883 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9884 each time through the loop. Update cleanup argument.
9885 (psymtab_to_symtab_1): Update cleanup call.
9886 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9887 abbrev_obstack.
9888 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9889 Just call obstack_free and clear the pointer.
9890
b40c7d58
DJ
98912004-03-09 Daniel Jacobowitz <drow@mvista.com>
9892
9893 * infrun.c (handle_inferior_event): Remove short-circuit code for
9894 events in a different thread.
9895
333dabeb
DJ
98962004-03-09 Daniel Jacobowitz <drow@mvista.com>
9897
9898 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9899 print the whole transfer.
9900 (initialize_targets): Update description of "set debug target".
9901
aa17d93e
DJ
99022004-03-09 Daniel Jacobowitz <drow@mvista.com>
9903
9904 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9905
0b71f08f
NW
99062004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9907
9908 * MAINTAINERS (write after approval): Add myself.
9909
3930f270
CV
99102004-03-08 Corinna Vinschen <vinschen@redhat.com>
9911
9912 * sh-tdep.c (sh_print_registers_info): Use for loop.
9913 Don't skip multiple registers when a float register is encountered.
9914
a2b4a96c
CV
99152004-03-08 Corinna Vinschen <vinschen@redhat.com>
9916
9917 Fix PR tdep/1291.
9918 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9919 to official SH documentation.
9920
f15a4bc0
AC
99212004-03-07 Andrew Cagney <cagney@redhat.com>
9922
9923 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9924 unused function.
9925
9498281f
DJ
99262004-03-07 Daniel Jacobowitz <drow@mvista.com>
9927
9928 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9929 (arm_get_next_pc): Handle BX and BLX.
9930
449e1137
AC
99312004-03-07 Andrew Cagney <cagney@redhat.com>
9932
eded0a31
AC
9933 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9934 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9935 HPPA_SP_REGNUM.
9936 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9937 (hppa_target_read_fp): Delete.
9938 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9939 register_virtual_size, max_register_raw_size,
9940 max_register_virtual_size, register_byte, register_size,
9941 target_read_fp, fp_regnum, and register_bytes. Set register_type
9942 instead of register_virtual_type.
9943 (hppa32_register_type, hppa64_register_type): Replace
9944 hppa32_register_virtual_type and hppa64_register_virtual_type.
9945 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9946 (HPPA_FP_REGNUM): Define.
9947
f5f907e2
AC
9948 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9949
69b4bbe4
AC
9950 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9951 (pa_do_registers_info): Delete.
9952 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9953 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9954 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9955
78161e48
AC
9956 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9957 GDB_TARGET_IS_HPPA code.
9958 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9959 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9960 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9961 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9962 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9963 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9964 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9965 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9966 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9967 (hppa_frameless_function_invocation, hppa64_store_return_value)
9968 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9969 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9970 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9971 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9972 (find_proc_framesize, deposit_21, restore_pc_queue)
9973 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9974 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9975
782eae8b
AC
9976 Unconditionally enable 64-bit frame and ABI code.
9977 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9978 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9979 push_dummy_frame, fix_call_dummy, push_arguments,
9980 call_dummy_location, extract_return_value, use_struct_convention,
9981 store_return_value, store_struct_return, saved_pc_after_call,
9982 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9983 frame_chain, frame_chain_valid, frameless_function_invocation,
9984 frame_saved_pc, and pop_frame.
78161e48 9985
449e1137
AC
9986 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9987 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9988 (hppa_gdbarch_init): Do not set PC_REGNUM.
9989
12507572
MK
99902004-03-06 Mark Kettenis <kettenis@gnu.org>
9991
9992 * config/alpha/tm-fbsd.h: Remove file.
9993 * config/alpha/fbsd.mt: Tweak comment.
9994 (TM_FILE): Set to tm-alpha.h.
9995
c107cc1b
AC
99962004-03-05 Andrew Cagney <cagney@redhat.com>
9997
9998 * infrun.c (step_over_function): When non-legacy code, and no
9999 step_frame_id, use the unwinder to get the caller's frame ID.
10000
f2e7c15d
MK
100012004-03-05 Mark Kettenis <kettenis@gnu.org>
10002
8b0c3633
MK
10003 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10004 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10005 bfd_arch_unknown. Adjust comment.
10006
f2e7c15d
MK
10007 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10008 * i386obsd-tdep.c: Correct spelling in comment.
10009 * i386nbsd-tdep.c: Correct spelling in comment.
10010 * sparc-tdep.c: Correct spelling in comments.
10011
1198ecbe
DC
100122004-03-05 David Carlton <carlton@kealia.com>
10013
10014 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10015 bug.
10016
9eb42ed1
MK
100172004-03-05 Mark Kettenis <kettenis@gnu.org>
10018
10019 * sparc-tdep.c: Fix typo in comment.
10020
52b5e991
JB
100212004-03-04 J. Brobecker <brobecker@gnat.com>
10022
10023 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10024
d8151005
DJ
100252004-03-04 Daniel Jacobowitz <drow@mvista.com>
10026
10027 * dwarf2read.c: Add comment describing memory lifetimes.
10028 (struct dwarf2_pinfo): Update comment.
10029 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10030 (read_enumeration, new_symbol): Don't use obsavestring.
10031
cbeae229
MK
100322004-03-04 Mark Kettenis <kettenis@gnu.org>
10033
722d18c2
MK
10034 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10035 instead of amd64_fill_fxsave.
10036 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10037 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10038
cbeae229
MK
10039 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10040 Reorganize code a bit.
10041
b4206d25
OF
100422004-03-04 Orjan Friberg <orjanf@axis.com>
10043
10044 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10045 when the frame pointer is pushed. Don't set the frame pointer's
10046 address on the stack unless it's actually located there.
b4206d25
OF
10047 Set the SRP's address on the stack correctly when the PC is still in
10048 the prologue.
10049 (cris_return_value): New function.
10050 (cris_gdbarch_init): Clear deprecated store_return_value,
10051 extract_return_value.
10052
49b0b195
JB
100532004-03-02 Jim Blandy <jimb@redhat.com>
10054
10055 * stabsread.c (reg_value_complaint): The maximum register number
10056 is one less than the number of registers.
10057
e9ff708b
AC
100582004-03-02 Andrew Cagney <cagney@redhat.com>
10059
10060 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10061 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10062 trailing comma and redundant assignment of I386_ST0_REGNUM.
10063 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10064 32-bit segment registers.
10065
d4715e41
AC
100662004-03-01 Andrew Cagney <cagney@redhat.com>
10067
10068 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10069 use frame_relative_level and get_next_frame.
10070
3ce2bf18
AC
100712004-02-29 Andrew Cagney <cagney@redhat.com>
10072
10073 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10074 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10075 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10076 Delete macro.
10077
2da6aac3
DJ
100782004-02-29 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * inflow.c (terminal_inferior): Don't give up the terminal if we
10081 previously couldn't get the inferior's terminal state.
10082
6ba34a8d
DJ
100832004-02-29 Daniel Jacobowitz <drow@mvista.com>
10084
10085 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10086 PC_REGNUM.
10087
faae5abe
AC
100882004-02-28 Andrew Cagney <cagney@redhat.com>
10089
10090 * NEWS: Refer to GDB 6.1.
10091 * README: Refer to GDB 6.1.
10092 * PROBLEMS: Refer to GDB 6.1.
10093
2227a3c5
DJ
100942004-02-28 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * thread-db.c (disable_thread_signals): Remove unused function.
10097
80571bff
MK
100982004-02-28 Mark Kettenis <kettenis@gnu.org>
10099
041bd74b
MK
10100 * amd64-nat.c: Include "gdb_string.h".
10101 (amd64_collect_native_gregset): Zero-extend the 32-bit
10102 general-purpose registers and %eip.
10103
3c017e40
MK
10104 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10105 * amd64-tdep.c (amd64_collect_fxsave): New function.
10106 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10107
80571bff
MK
10108 * i387-tdep.h: Update copyright year.
10109 (i387_collect_fxsave): New prototype.
10110 * i387-tdep.c: Update copyright year.
10111 (i387_collect_fxsave): New function containing most of the code
10112 from i387_fill_fxsave.
10113 (i387_fill_fxsave): Call i387_collect_fxsave.
10114
50d71875
AC
101152004-02-28 Andrew Cagney <cagney@redhat.com>
10116
10117 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10118 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10119
4a28816e
MK
101202004-02-28 Mark Kettenis <kettenis@gnu.org>
10121
10122 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10123
dbda9972
AC
101242004-02-28 Andrew Cagney <cagney@redhat.com>
10125
10126 * utils.c: Use "", instead of <>, to include readline.
10127 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10128 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10129 * source.c, solib.c, exec.c, event-top.c: Ditto.
10130 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10131 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10132 * Makefile.in: Update all dependencies.
10133 (readline_tilde_h, readline_history_h): Define.
10134 (readline_headers): Delete.
10135
83277a99
MK
101362004-02-28 Mark Kettenis <kettenis@gnu.org>
10137
91ae4303
MK
10138 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10139 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10140 "config/i386/tm-lx64.h".
10141
83277a99
MK
10142 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10143 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10144 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10145
6e1d7d6c
AC
101462004-02-28 Andrew Cagney <cagney@redhat.com>
10147
ecc9ac84
AC
10148 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10149
6e1d7d6c
AC
10150 * breakpoint.c (_initialize_breakpoint): Use
10151 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10152 Add help to show command.
10153
9671aeef
MK
101542004-02-28 Mark Kettenis <kettenis@gnu.org>
10155
7fa2737c
MK
10156 * i386-nat.c: Reformat to be closer to coding standards.
10157 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10158 `retval'. Make variables `align' and `size' local to while-loop.
10159 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10160 (_initialize_i386_nat): New prototype.
10161
9671aeef
MK
10162 * tui/tui.c: Include <readline/readline.h> instead of
10163 "readline/readline.h". Include it after <term.h> and
10164 "gdb_curses.h".
10165
fca7aa43
AC
101662004-02-27 Andrew Cagney <cagney@redhat.com>
10167
412275d5
AC
10168 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10169 the new frame unwind code.
10170 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10171 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10172 PCOQ_HEAD_REGNUM.
10173
fca7aa43
AC
10174 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10175 "return_value" and "push_dummy_call".
10176 (hppa32_use_struct_convention): Delete unused function.
10177 (hppa32_store_return_value): Delete unused function.
10178 (hppa32_extract_return_value): Delete unused function.
10179 (hppa32_stack_align): Delete function.
10180
e6a8a7d2
EZ
101812004-02-27 Eli Zaretskii <eliz@elta.co.il>
10182
10183 * coffread.c (enter_linenos): Don't let rawptr reference memory
10184 outside linetab[]'s limits.
10185
1797a8f6
AC
101862004-02-27 Andrew Cagney <cagney@redhat.com>
10187
10188 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10189 inferior stack space - the stack needs to grow upwards.
10190 (hppa32_frame_align): New function.
10191 (hppa64_frame_align): Replace hppa_frame_align.
10192 (hppa_gdbarch_init): Update.
10193
2e4b5889
OF
101942004-02-26 Orjan Friberg <orjanf@axis.com>
10195
10196 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10197 (dwarf2-frame.h): Include.
10198 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10199 Remove static variables related to ABI setting.
10200 (struct gdbarch_tdep): Remove cris_abi member.
10201 (struct frame_extra_info): Remove.
10202 (cris_unwind_cache, stack_item): New structs.
10203 (cris_frame_unwind, cris_frame_base): New variables.
10204 (push_stack_item, pop_stack_item)
10205 (cris_frame_unwind_cache, cris_frame_this_id)
10206 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10207 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10208 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10209 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10210 (cris_reg_struct_has_addr): New functions.
10211 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10212 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10213 (cris_store_struct_return, cris_frameless_function_invocation)
10214 (cris_pop_frame, cris_skip_prologue_main)
10215 (cris_abi_original_store_return_value)
10216 (cris_abi_v2_store_return_value)
10217 (cris_abi_original_extract_return_value)
10218 (cris_abi_v2_extract_return_value)
10219 (cris_abi_original_reg_struct_has_addr)
10220 (cris_abi_v2_reg_struct_has_addr)
10221 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10222 (cris_push_return_address, cris_abi_update): Remove.
10223 (_initialize_cris_tdep): Remove ABI command.
10224 (cris_dump_tdep): Ditto.
8718a420 10225 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10226 Set store_return_value, extract_return_value, push_dummy_code,
10227 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10228 frame_unwind_append_sniffer, frame_base_set_default.
10229 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10230 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10231 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10232 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10233 init_extra_frame_info, frameless_function_invocation, frame_chain,
10234 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10235 dummy_write_sp.
8718a420 10236
6b9acc27
JJ
102372004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10238
10239 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10240 * valprint.c (print_hex_chars): Change from static to external.
10241 (print_char_chars): New function.
10242 * printcmd.c (print_scalar_formatted): For integer and enum types
10243 that are longer than LONGEST, perform processing via appropriate
10244 print_*_chars routines.
10245
a431654a
AC
102462004-02-26 Andrew Cagney <cagney@redhat.com>
10247
10248 * Makefile.in: Update dependencies.
10249 Changes from Ulrich Weigand,
10250 * s390-tdep.c: Include "dwarf2-frame.h".
10251 (s390_dwarf2_frame_init_reg): New function.
10252 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10253 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10254
fa8d40ab
JJ
102552004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10256
10257 * breakpoint.c (pending_break_support): New setting variable.
10258 (break_command_1): Account for pending_break_support setting
10259 when creating pending breakpoints.
10260 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10261 (_initialize_breakpoint): Add "set breakpoint pending" and
10262 "show breakpoint pending" commands.
10263
0dcd613f
AC
102642004-02-26 Andrew Cagney <cagney@redhat.com>
10265
10266 Fix PR i18n/1570.
10267 * charset.c (backslashable, backslashed, represented): Remove 'e'
10268 from list of escaped characters, not part of ISO-C.
10269
479272a3
JB
102702004-02-25 J. Brobecker <brobecker@gnat.com>
10271
10272 From Peter Schauer <schauer@pdf.de>:
10273 * tui/tui.c: Move system header includes after local includes.
10274 Fixes a build failure on solaris systems.
10275
7613d933
JB
102762004-02-25 J. Brobecker <brobecker@gnat.com>
10277
10278 * configure.in: Refine the previous change.
10279 * configure: Regenerate.
10280
9c1488cb
MK
102812004-02-25 Mark Kettenis <kettenis@gnu.org>
10282
10283 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10284 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10285 "amd64-tdep.h" instead of "x86-64-tdep.h".
10286 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10287 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10288 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10289 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10290 and "x86-64-tdep.c".
10291 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10292 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10293 and "x86-64-tdep.c".
10294 * amd64bsd-nat.c: Update copyright year.
10295 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10296 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10297 "x86-64-tdep.h".
10298 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10299 "x86-64-tdep.h".
10300 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10301 "x86-64-tdep.h".
10302 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10303 "x86-64-tdep.h".
10304 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10305 "x86-64-tdep.h".
10306 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10307 "x86-64-tdep.h".
8718a420 10308 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10309 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10310 * Makefile.in (amd64_linux_tdep_h): Renamed from
10311 x86_64_linux_tdep_h.
10312 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10313 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10314 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10315 (amd64obsd-tdep.o): Update dependencies.
10316 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10317 dependencies.
10318 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10319 dependencies.
10320 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10321 amd64-linux-nat.c amd64-linux-tdep.c.
10322 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10323 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10324 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10325 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10326 amd64-tdep.o and amd64-linux-tdep.o.
10327 (TM_FILE): Set to tm-linux64.h.
10328 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10329 (NAT_FILE): Set to nm-linux64.h.
10330 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10331 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10332 amd64-tdep.o.
10333 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10334 amd64-tdep.o.
10335 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10336 amd64-tdep.o.
10337
4b8dad4a
RM
103382004-02-25 Roland McGrath <roland@redhat.com>
10339
10340 * remote.c (remote_protocol_qPart_auxv): New variable.
10341 (init_all_packet_configs): Initialize it.
10342 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10343 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10344 (show_remote_cmd): Call it.
10345 (_initialize_remote): Initialize commands.
10346 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10347 service TARGET_OBJECT_AUXV requests.
10348
66745969
JB
103492004-02-25 J. Brobecker <brobecker@gnat.com>
10350
10351 * configure.in: Make sure that the wborder function is available.
10352 Otherwise, search for it in the cur_colr library.
10353 * configure: Regenerate.
10354
79508e1e
AC
103552004-02-25 Andrew Cagney <cagney@redhat.com>
10356
10357 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10358
571ee600
MK
103592004-02-25 Mark Kettenis <kettenis@gnu.org>
10360
10361 * config/i386/tm-x86-64linux.h: Tweak comments.
10362
2b1b322f 103632004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10364
10365 * MAINTAINERS: Add self to write-after-approval list.
10366
4d2acc65
AC
103672004-02-25 Andrew Cagney <cagney@redhat.com>
10368
4b8dad4a 10369 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10370 * cli/cli-script.c (execute_control_command): Unconditionally
10371 install a cleanup. Default "ret" to "invalid_control". Use
10372 "break" instead of "return" to escape from the switch.
10373
4cfcaf21
JB
103742004-02-24 J. Brobecker <brobecker@gnat.com>
10375
10376 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10377 with the lines macro defined in term.h on AiX.
10378 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10379 a collision with the label_width macro defined in term.h on AiX.
10380
54a5c8d8
KB
103812004-02-23 David Mosberger <davidm@hpl.hp.com>
10382
10383 Committed by Kevin Buettner <kevinb@redhat.com>.
10384
10385 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10386 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10387 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10388 instead of ia64_write_pc().
10389 * ia64-linux-tdep.c (regcache.h): Include.
10390 (ia64_linux_write_pc): New function.
4b8dad4a 10391
8a1dac83
RM
103922004-02-23 Roland McGrath <roland@redhat.com>
10393
10394 * auxv.c (info_auxv_command): Fix typos in error messages.
10395
90f90721
MK
103962004-02-23 Mark Kettenis <kettenis@gnu.org>
10397
8a1dac83 10398 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10399 (enum amd64_regnum): New.
10400 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10401 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10402 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10403 (X86_64_XMM1_REGNUM): Removed.
10404 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10405 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10406 prototypes for renamed functions.
10407 * x86-64-tdep.c: Fix typo.
10408 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10409 register numbers.
10410 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10411 Use constants from `enum amd64_regnum' for register numbers.
10412 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10413 (amd64_analyze_prologue, amd64_frame_cache,
10414 amd64_sigtramp_frame_cache): Use constants from `enum
10415 amd64_regnum' for register numbers.
10416 (amd64_supply_fpregset): Adjust for renamed functions.
10417 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10418 `enum amd64_regnum' for register numbers.
10419 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10420 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10421 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10422 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10423 (amd64_linux_fill_gregset): Adjust for renamed macros.
10424 (fetch_core_registers): Adjust for renamed functions.
10425 (amd64_linux_init_abi): Adjust for renamed functions.
10426 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10427 renamed functions.
10428 * amd64-nat.c: Adjust for renamed macros.
10429 * amd64bsd-nat.c (fetch_inferior_registers)
10430 (store_inferior_registers): Use constants from `enum amd64_regnum'
10431 for register numbers. Adjust for renamed variables.
10432 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10433 renamed variables.
10434 (_initialize_amd64fbsd_nat): Use constants from `enum
10435 amd64_regnum' for register numbers.
10436 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10437 `enum amd64_regnum' for register numbers.
10438 (amd64fbsd_init_abi): Adjust for renamed functions.
10439 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10440 `enum amd64_regnum' for register numbers.
10441 (amd64nbsd_init_abi): Adjust for renamed functions.
10442 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10443 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10444 `enum amd64_regnum' for register numbers.
10445 (amd64obsd_init_abi): Adjust for renamed functions.
10446 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10447
d5479188
JJ
104482004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10449
10450 * breakpoint.c (print_one_breakpoint): Do not output spaces
10451 after printing <PENDING> for a pending breakpoint.
10452
81cb7cc9
JJ
104532004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10454
10455 * printcmd.c (print_scalar_formatted): Initialize val_long
10456 to remove compiler warning message.
10457
cbdeadca
JJ
104582004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10459
10460 * defs.h (nquery, yquery): New prototypes.
10461 * breakpoint.c (break_command_1): Use new nquery interface.
10462 * utils.c (defaulted_query, nquery, yquery): New functions.
10463
da6bab63
AC
104642004-02-23 Andrew Cagney <cagney@redhat.com>
10465
2f690297
AC
10466 * hppa-tdep.c (hppa_frame_align): New function.
10467 (hppa32_push_dummy_call): New function.
10468 (hppa64_push_dummy_call): New function.
10469 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10470 disabled.
8a1dac83 10471
da6bab63
AC
10472 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10473 FIX_CALL_DUMMY when push_dummy_call is available.
10474 (call_function_by_hand, push_dummy_code): Ditto.
10475
abf9b42d
AC
104762004-02-22 Andrew Cagney <cagney@redhat.com>
10477
10478 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10479 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10480 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10481 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10482 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10483 call_dummy_location to ON_STACK.
10484
10fc94a4
MK
104852004-02-22 Mark Kettenis <kettenis@gnu.org>
10486
51433e4b
MK
10487 * x86-64-linux-tdep.c: Tweak comment.
10488 (amd64_linux_supply_gregset): Renamed from
10489 x86_64_linux_supply_gresget.
10490 (amd64_linux_fill_gregset): Renamed from
10491 x86_64_linux_fill_gregset.
10492 (fetch_core_registers): Adjust for renamed functions.
10493 (amd64_core_fns): Renamed from x86_64_core_fns.
10494 (amd64_linux_sigtramp_start): Renamed from
10495 x86_64_linux_sigtramp_start.
10496 (amd64_linux_pc_in_sigtramp): Renamed from
10497 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10498 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10499 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10500 (amd64_linux_sigcontext_addr): Renamed from
10501 x86_64_linux_sigcontext_addr.
10502 (amd64_linux_sc_reg_offset): Renamed from
10503 x86_64_linux_sc_reg_offset.
10504 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10505 Adjust for renamed functions and variables.
10506 (_initialize_amd64_linux_tdep): Renamed from
10507 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10508 variables.
10509 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10510 Adjust for renamed functions.
10511
430eaf2e
MK
10512 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10513 from x86_64_linux_gregset64_reg_offset.
10514 (amd64_linux_gregset32_reg_offset): Rename from
10515 x86_64_linux_gregset64_reg_offset.
10516 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10517 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10518 (amd64_linux_dr_set_control): Renamed from
10519 x86_64_linux_dr_set_control. Adjust for renamed functions.
10520 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10521 Adjust for renamed functions.
10522 (amd64_linux_dr_reset_addr): Renamed from
10523 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10524 (amd64_linux_dr_get_status): Renamed from
10525 x86_64_linux_dr_get_status. Adjust for renamed functions.
10526 (_initialize_amd64_linux_nat): Renamed from
10527 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10528 functions.
10529 * config/i386/nm-x86-64linux.h: Update copyright year.
10530 Adjust for renamed functions.
10531
10fc94a4
MK
10532 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10533 amd64fbsd_sigtramp_start.
10534 (amd64fbsd_sigtramp_end_addr): Renamed from
10535 amd64fbsd_sigtramp_end.
10536 (amd64fbsd_init_abi): Adjust for renamed variables.
10537 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10538 variables.
10539 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10540 amd64fbsd_sigtramp_start.
10541 (amd64fbsd_sigtramp_end_addr): Renamed from
10542 amd64fbsd_sigtramp_end.
10543
343af405
AC
105442004-02-22 Andrew Cagney <cagney@redhat.com>
10545
537987fc
AC
10546 * hppa-tdep.c (hppa32_return_value): New function.
10547 (hppa64_return_value): New function.
10548 (hppa_gdbarch_init): Set return_value; keep disabled.
10549
fad850b2
AC
10550 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10551 struct-return and inferior function call methods.
10552
26d08f08
AC
10553 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10554 "frame-base.h".
10555 (struct hppa_frame_cache): Define.
10556 (hppa_frame_cache, hppa_frame_this_id): New functions.
10557 (hppa_frame_prev_register): New function.
10558 (hppa_frame_unwind, hppa_frame_base): New variables.
10559 (hppa_frame_unwind_sniffer): New function.
10560 (hppa_frame_base_address, hppa_unwind_pc): New function.
10561 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10562 sniffer, and frame base sniffer; keep disabled.
10563 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10564 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10565
e7d7bd65
AC
10566 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10567 to predicates for "seriously old code".
10568
e963316f
AC
10569 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10570 runtime if(0).
10571
56132691
AC
10572 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10573 unsigned.
10574 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10575
343af405
AC
10576 * config/pa/tm-hppa.h: Update copyright.
10577 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10578 (deprecated_init_frame_pc_default): Delete declaration.
10579 (hppa_frame_init_saved_regs): Delete declaration.
10580 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10581 * hppa-tdep.c: Include "arch-utils.h".
10582 (hppa_gdbarch_init): Set deprecated init_frame_pc
10583 and deprecated frame_init_saved_regs.
10584 (hppa_frame_init_saved_regs): Make static.
10585
f5859b4d
MK
105862004-02-22 Mark Kettenis <kettenis@gnu.org>
10587
86f6f8e7 10588 Remove old 386BSD support.
cf7c5c23 10589 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10590 * configure.host: Remove i[34567]86-*-bsd*.
10591 * configure.tgt: Remove i[34567]86-*-bsd*.
10592 * i386b-nat.c: Removed.
10593 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10594 (i386b-nat.o): Remove dependencies.
10595
86f6f8e7
MK
10596 * config/i386/i386bsd.mh: Removed.
10597 * config/i386/i386bsd.mt: Removed.
10598 * config/i386/nm-i386bsd.h: Removed.
10599 * config/i386/tm-i386bsd.h: Removed.
10600 * config/i386/xm-i386bsd.h: Removed.
10601
971218cd
MK
10602 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10603
7e654c37
MK
10604 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10605 (amd64fbsd_init_abi): Set link map offsets.
10606 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10607 (amd64nbsd_init_abi): Set link map offsets.
10608 * amd64obsd-tdep.c: Include "solib-svr4.h".
10609 (amd64obsd_init_abi): Set link map offsets.
10610 * i386fbsd-tdep.c: Include "solib-svr4.h".
10611 (i386fbsd_init_abi): Set link map offsets.
10612 * i386nbsd-tdep.c: Include "solib-svr4.h".
10613 (i386nbsdelf_init_abi): Set link map offsets.
10614 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10615 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10616 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10617 solib-legacy.o and core-aout.o. Reformat.
10618 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10619 solib-svr4.o, solib-legacy.o. Reformat.
10620 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10621 * config/i386/nbsdelf.mh: Reformat.
10622 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10623 solib-svr4.o, solib-legacy.o and corelow.o.
10624 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10625 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10626 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10627 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10628 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10629 (TM_FILE): Set to tm-fbsd.h.
10630 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10631 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10632 solib-svr4.o.
10633 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10634 solib-svr4.o.
10635 (TM_FILE): Set to nm-nbsd.h.
10636 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10637 Simplify shared library support. Don't include "elf/common.h".
10638 (SVR4_SHARED_LIBS): Don't define.
10639 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10640 "solib.h".
10641 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10642 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10643 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10644 Don't include "i386/tm-i386.h". Include "solib.h".
10645 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10646 Don't include "i386/tm-i386.h".
10647 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10648 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10649 Include "i386/xm-i386.h".
10650 (HOST_LONG_DOUBLE_FORMAT): Remove.
10651
5d93ae8c
MK
10652 Fix OpenBSD/i386 sigtramp recognition.
10653 * i386-tdep.h: Update copyright year.
10654 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10655 (i386bsd_sigtramp_end): New prototypes.
10656 (i386fbsd_sigtramp_start_addr): Renamed from
10657 i386fbsd_sigtramp_start.
10658 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10659 (i386obsd_sigtramp_start_addr): Renamed from
10660 i386obsd_sigtramp_start.
10661 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10662 * i386bsd-tdep.c: Update copyright year.
10663 (i386bsd_pc_in_sigtramp): Make public.
10664 * i386fbsd-nat.c: Update copyright year.
10665 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10666 * i386fbsd-tdep.c: Update copyright year.
10667 (i386fbsd_sigtramp_start_addr): Renamed from
10668 i386fbsd_sigtramp_start.
10669 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10670 (i386fbsdaout_init_abi): Adjust for renamed variables.
10671 * i386obsd-nat.c: Update copyright year.
10672 (_initialize_i386obsd_nat): Adjust for renamed variables.
10673 * i386obsd-tdep.c: Include "target.h".
10674 (i386obsd_page_size): New variable.
10675 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10676 (i386obsd_sigtramp_end): New functions.
10677 (i386obsd_sigtramp_start_addr): Renamed from
10678 i386obsd_sigtramp_start.
10679 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10680 (i386obsd_init_abi): Adjust for renamed variables. Set
10681 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10682 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10683
84d04465
MK
10684 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10685 trampoline change in OpenBSD kernel.
10686
b053aceb
MK
10687 * amd64-nat.c: Update copyright year.
10688 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10689 architecture from REGCACHE.
10690
f5859b4d
MK
10691 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10692 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10693
e4bbbda8
MK
106942004-02-21 Mark Kettenis <kettenis@gnu.org>
10695
ba361932
MK
10696 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10697 i[34567]86-*-openbsd3.[0-3].
10698 * config/i386/obsdaout.mh: New file.
10699
d3e48264
MK
10700 * config/i386/obsd.mh (MH_FLAGS): Remove.
10701
60a6eeb6
MK
10702 Fix PR build/1549.
10703 * i386obsd-tdep.c: Update copyright years. Include
10704 "solib-svr4.h".
10705 (i386obsd_init_abi): Don't set regset_from_core_section here.
10706 (i386obsd_aout_init_abi): New function. Set
10707 regset_from_core_section here.
10708 (i386obsd_elf_init_abi): New function.
10709 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10710 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10711 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10712 (TM_FILE): Set to tm-nbsd.h.
10713
10714 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10715 solib-sunos.o.
10716
e4bbbda8
MK
10717 * solib-svr4.h: Update copyright year.
10718 (svr4_ilp32_fetch_link_map_offsets)
10719 (svr4_lp64_fetch_link_map_offsets): New prototype.
10720 * solib-svr4.c: Update copyright year.
10721 (svr4_ilp32_fetch_link_map_offsets)
10722 (svr4_lp64_fetch_link_map_offsets): New function.
10723
f6fe98ef
DJ
107242004-02-20 Daniel Jacobowitz <drow@mvista.com>
10725
10726 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10727 to the partial symbol table.
10728
589ca796
JB
107292004-02-20 J. brobecker <brobecker@gnat.com>
10730
10731 * PROBLEMS: Add description of problem documented under gdb/1560.
10732
2031c21a
MK
107332004-02-20 Mark Kettenis <kettenis@gnu.org>
10734
30b344b1
MK
10735 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10736 comments.
10737 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10738 functions.
10739 (amd64obsd_init_abi): Reorder initializations. Use
10740 amd64obsd_r_reg_offset to initialize the general-purpose register
10741 set details. Set regset_from_core_section.
10742 (_initialize_amd64obsd_tdep): Rename from
10743 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10744 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10745 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10746
2031c21a
MK
10747 * NEWS (New native configurations): Mention OpenBSD/alpha.
10748 * configure.tgt: Add alpha*-*-openbsd*.
10749 * configure.host: Add alpha*-*-openbsd*.
10750 * alphanbsd-tdep.c: Update copyright year.
10751 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10752
42471775
AC
107532004-02-20 Andrew Cagney <cagney@redhat.com>
10754
10755 Fix PR tdep/1372.
10756 * configure.tgt: Delete target "none-*-*".
10757 * configure.host: Delete host "none-*-*".
10758 * config/none/none.mh: Delete file.
10759 * config/none/none.mt: Delete file.
10760 * config/none/xm-none.h: Delete file.
10761 * config/none/tm-none.h: Delete file.
10762 * config/none/nm-none.h: Delete file.
10763
960ccd7d
FF
107642004-02-19 Fred Fish <fnf@redhat.com>
10765
10766 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10767 cache->uses_fp prior to setting it.
10768
5f883edd
FF
107692004-02-19 Fred Fish <fnf@redhat.com>
10770
10771 Fix for PR breakpoint/1558.
10772 * sh-tdep.c (IS_JSR): New macro.
10773 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10774
f98c22d5
JB
107752004-02-19 Jim Blandy <jimb@redhat.com>
10776
10777 * findvar.c (value_from_register): Doc fix.
10778
95051d27
JJ
107792004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10780
10781 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10782 type being greater than sizeof of host's LONGEST. Always use
10783 unpack_long() unless format 'f' chosen.
10784
ccefbec3
EZ
107852004-02-19 Joel Brobecker <brobecker@gnat.com>
10786
10787 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10788
ccefbec3
EZ
10789 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10790 contains a symbol wich is the best, non-exact match for the given
10791 pc. Update comments.
10792
107932004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10794
2ede629f
EZ
10795 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10796 macro, which was part of the now removed Mach 3 port.
10797 * utils.c (request_quit): Ditto.
10798
567ee972
MK
107992004-02-18 Mark Kettenis <kettenis@gnu.org>
10800
10801 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10802 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10803
50cca7bb
MK
108042004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10805
10806 Committed by Mark Kettenis <kettenis@gnu.org>.
10807
10808 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10809 Define.
10810
226361c4
AC
108112004-02-18 Andrew Cagney <cagney@redhat.com>
10812
10813 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10814 CONFIG_INSTALL and CONFIG_UNINSTALL.
10815 * configure: Re-generate.
10816 * interps.h (INTERP_TUI): Define.
10817 * Makefile.in: Update dependencies.
10818 (TUI): New macro.
10819 (tui-main.o): Specify dependencies.
10820 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10821 * tui/tui-main.c: New file.
10822
49cfa46f
MK
108232004-02-18 Mark Kettenis <kettenis@gnu.org>
10824
e2879ccb
MK
10825 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10826 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10827 dependencies.
10828 * configure.host: Add x86_64-*-openbsd*.
10829 * configure.tgt: Add x86_64-*-openbsd*.
10830 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10831
c43f4bec
MK
10832 * tui/tui.c: Don't include <malloc.h>.
10833
09ae75b6
MK
10834 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10835 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10836 amd64nbsd-tdep.c.
10837
49cfa46f 10838 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10839 static. Remove extraneous whitespace.
49cfa46f
MK
10840 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10841 static.
10842
05957fdb
JB
108432004-02-17 Jim Blandy <jimb@redhat.com>
10844
10845 * findvar.c (value_from_register): Doc fix.
10846
d0f54f9d
JB
108472004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10848
10849 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10850
8a1dac83 10851 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10852 CORE_ADDR as type for selectors. Correct types for GNU run time
10853 message lookup function to use double indirection.
10854 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10855 * objc-lang.h (lookup_child_selector): Adapt prototype.
10856
9cbd5950
JB
10857 * s390-nat.c (SUBOFF): New macro.
10858 (supply_gregset, fill_gregset): Use it to handle debugging
10859 of 32-bit exectuables running under a 64-bit kernel.
10860 * s390-tdep.c: Include "solib-svr4.h".
10861 (s390_svr4_fetch_link_map_offset): New function.
10862 (s390x_svr_fetch_link_map_offset): Likewise.
10863 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10864 * Makefile.in (s390-tdep.o): Update dependencies.
10865
a8c99f38
JB
10866 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10867 "frame-unwind.h".
10868 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10869 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10870 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10871 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10872 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10873 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10874 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10875 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10876 (struct frame_extra_info): Remove.
10877 (s390_memset_extra_info): Remove.
f73b1eff
JB
10878 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10879 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10880 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10881 (is_rse): Renamed to ...
10882 (is_rsy): ... this. Support long displacements.
10883 (is_rxe): Renamed to ...
10884 (is_rxy): ... this. Support long displacements.
10885 (compute_x_addr): Support long displacements.
10886 (struct s390_prologue_data): New data type.
10887 (s390_on_stack): Change API to use struct s390_prologue_data.
10888 (s390_store): Reimplement.
10889 (s390_load): New function.
10890 (s390_get_signal_frame_info): Remove.
10891 (s390_get_frame_info): Remove, replace by ...
10892 (s390_analyze_prolog): ... this new function.
10893 (s390_check_function_end): Remove.
10894 (s390_function_start): Remove.
10895 (s390_frameless_function_invokation): Remove.
10896 (s390_is_sigreturn): Remove.
10897 (s390_init_frame_pc_first): Remove.
10898 (s390_init_frame_extra_info): Remove.
10899 (s390_frame_init_saved_regs): Remove.
10900 (s390_frame_saved_pc_nofix): Remove.
10901 (s390_frame_saved_pc): Remove.
10902 (s390_frame_chain): Remove.
10903 (s390_fp_regnum, s390_read_fp): Remove.
10904 (s390_pop_frame_regular, s390_pop_frame): Remove.
10905 (s390_saved_pc_after_call): Remove.
10906 (s390_skip_prologue): Reimplement.
10907 (s390_in_function_epilogue_p): Support long displacements.
10908 (struct s390_unwind_cache): New data structure.
10909 (s390_frame_unwind_cache): New function.
10910 (s390_prologue_frame_unwind_cache): Likewise.
10911 (s390_backchain_frame_unwind_cache): Likewise.
10912 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10913 (s390_frame_unwind): Define.
10914 (s390_frame_sniffer): New function.
10915 (struct s390_pltstub_unwind_cache): New data structure.
10916 (s390_pltstub_frame_unwind_cache): New function.
10917 (s390_pltstub_frame_this_id): Likewise.
10918 (s390_pltstub_frame_prev_register): Likewise.
10919 (s390_pltstub_frame_unwind): Define.
10920 (s390_pltstub_frame_sniffer): New function.
10921 (struct s390_sigtramp_unwind_cache): New data structure.
10922 (s390_sigtramp_frame_unwind_cache): New function.
10923 (s390_sigtramp_frame_this_id): Likewise.
10924 (s390_sigtramp_frame_prev_register): Likewise.
10925 (s390_sigtramp_frame_unwind): Define.
10926 (s390_sigtramp_frame_sniffer): New function.
10927 (s390_frame_base_address, s390_local_base_address): New functions.
10928 (s390_frame_base): Define.
10929 (s390_unwind_pc, s390_unwind_sp): New function.
10930 (s390_push_dummy_call): Use new frame base location.
10931 (s390_unwind_dummy_id): Likewise.
10932 (s390_gdbarch_init): Remove calls to:
10933 set_gdbarch_frameless_function_invocation,
10934 set_gdbarch_deprecated_init_frame_pc,
10935 set_gdbarch_deprecated_frame_chain,
10936 set_gdbarch_deprecated_frame_init_saved_regs,
10937 set_gdbarch_deprecated_pop_frame,
10938 set_gdbarch_deprecated_init_extra_frame_info,
10939 set_gdbarch_deprecated_init_frame_pc_first,
10940 set_gdbarch_deprecated_target_read_fp,
10941 set_gdbarch_deprecated_frame_saved_pc,
10942 set_gdbarch_deprecated_saved_pc_after_call,
10943 set_gdbarch_deprecated_fp_regnum.
10944 Add calls to:
10945 set_gdbarch_in_solib_call_trampoline,
10946 frame_unwind_append_sniffer,
10947 frame_base_set_default,
10948 set_gdbarch_unwind_pc,
10949 set_gdbarch_unwind_sp.
10950 * Makefile.in (s390-tdep.o): Update dependencies.
10951
b0cf273e
JB
10952 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10953 (S390_STACK_FRAME_OVERHEAD): Remove.
10954 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10955 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10956 (s390_promote_integer_argument): Remove.
10957 (s390_cannot_extract_struct_value_address): Remove.
10958 (s390_use_struct_convention, s390_store_struct_return): Remove.
10959 (s390_extract_return_value, s390_store_return_value): Remove.
10960 (s390_return_value_convention, s390_return_value): New functions.
10961 (is_float_singleton): Handle typedefs.
8a1dac83 10962 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10963 Remove, replace by ...
10964 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10965 s390_function_arg_integer): ... these new functions.
10966 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10967 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10968 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10969 Fill in tdep->abi.
10970 Remove calls to:
10971 set_gdbarch_deprecated_store_struct_return,
10972 set_gdbarch_deprecated_extract_return_value,
10973 set_gdbarch_deprecated_store_return_value,
10974 set_gdbarch_use_struct_convention,
10975 set_gdbarch_extract_struct_value_address,
10976 set_gdbarch_deprecated_pc_in_call_dummy,
10977 set_gdbarch_deprecated_push_arguments,
10978 set_gdbarch_deprecated_save_dummy_frame_tos,
10979 set_gdbarch_deprecated_push_return_address,
10980 set_gdbarch_deprecated_sizeof_call_dummy_words,
10981 set_gdbarch_deprecated_call_dummy_words,
10982 set_gdbarch_deprecated_dummy_write_sp.
10983 Add calls to:
10984 set_gdbarch_push_dummy_call,
10985 set_gdbarch_unwind_dummy_id,
10986 set_gdbarch_return_value.
8a1dac83 10987
e1457d83
JB
10988 * config/s390/nm-linux.h: Update comments.
10989 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10990 (STOPPED_BY_WATCHPOINT): Redefine.
10991 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10992 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10993 (s390_stopped_by_watchpoint): Likewise.
10994 (watch_area_cnt): Remove.
10995 * s390-nat.c: Update comments.
10996 (watch_area): Remove typedef.
10997 Global replace watch_area by struct watch_area.
10998 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10999 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11000 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11001 (s390_fix_watch_points): Remove pid argument,
11002 use s390_inferior_tid. Recompute area spanned by watchpoints.
11003 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11004 argument. Reimplement.
11005
d0f54f9d
JB
11006 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11007 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11008 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11009 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11010 core-regset.o.
11011 * config/s390/s390x.mt: Remove.
11012 * config/s390/tm-s390.h: Remove.
11013 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11014 (TARGET_ELF64): Remove.
11015 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11016 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11017 s390*-*-* case; always set gdb_target to s390.
11018 * regformats/reg-s390.dat: Remove control registers.
11019 * regformats/reg-s390x.dat: Likewise.
11020 * s390-tdep.h: New file.
8a1dac83 11021 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11022 Include "inferior.h" and "s390-tdep.h".
11023 Remove private definition of offsetof.
11024 (s390_register_u_addr): Remove.
11025 (regmap_gregset, regmap_fpregset): Define.
11026 (supply_gregset, fill_gregset): Reimplement.
11027 (supply_fpregset, fill_fpregset): Likewise.
11028 (s390_inferior_tid): New function.
11029 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11030 (fetch_inferior_registers, store_inferior_registers): Likewise.
11031 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11032 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11033 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11034 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11035 (struct gdbarch_tdep): Define.
11036 (struct s390_register_info): Define.
11037 (s390_register_info): New variable.
11038 (s390_register_name): Reimplement.
11039 (s390_register_type): New function.
11040 (s390_register_raw_size, s390x_register_raw_size): Remove.
11041 (s390_cannot_fetch_register): Remove.
11042 (s390_register_byte): Remove.
11043 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11044 (s390_dwarf_regmap): New variable.
11045 (s390_dwarf_reg_to_regnum): New function.
11046 (s390_stab_reg_to_regnum): Remove.
11047 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11048 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11049 (s390_convert_register_p): Likewise.
11050 (s390_register_to_value, s390_value_to_register): Likewise.
11051 (s390_register_reggroup_p): Likewise.
11052 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11053 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11054 (s390_supply_regset, s390_regset_from_core_section): New functions.
11055 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11056 (S390_FPR_SIZE): Likewise.
11057 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11058 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11059 (S390_NUM_GPRS): Move here from tm-s390.h.
11060 (S390_NUM_FPRS): Likewise.
11061 (s390_in_function_epilogue_p): New function.
11062 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11063 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11064 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11065 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11066 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11067 Remove calls to:
11068 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11069 set_gdbarch_deprecated_max_register_virtual_size,
11070 set_gdbarch_deprecated_register_byte,
d0f54f9d 11071 set_gdbarch_cannot_fetch_register,
8a1dac83 11072 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11073 set_gdbarch_deprecated_register_size,
11074 set_gdbarch_deprecated_register_raw_size,
11075 set_gdbarch_deprecated_register_virtual_size,
11076 set_gdbarch_deprecated_register_virtual_type,
11077 set_gdbarch_deprecated_register_bytes.
11078 Add calls to:
11079 set_gdbarch_num_pseudo_regs,
11080 set_gdbarch_register_type,
11081 set_gdbarch_convert_register_p,
11082 set_gdbarch_register_to_value,
11083 set_gdbarch_value_to_register,
11084 set_gdbarch_register_reggroup_p,
11085 set_gdbarch_regset_from_core_section,
11086 set_gdbarch_pseudo_register_read,
11087 set_gdbarch_pseudo_register_write,
11088 set_gdbarch_in_function_epilogue_p.
11089 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11090 (s390_tdep_h): New variable.
11091
8cfe231d
JB
110922004-02-17 Jim Blandy <jimb@redhat.com>
11093
4589a601
JB
11094 * findvar.c (value_from_register): If the type has no length, just
11095 return an acceptable value --- don't report an internal error.
11096
8cfe231d
JB
11097 * stabsread.c (read_type): If we find any type numbers that are
11098 forward references, complain if the references aren't resolved by
11099 the time we're finished reading.
11100 (cleanup_undefined_types): Make error message more appropriate for
11101 a complaint.
11102
5bf0017e
EZ
111032004-02-17 Elena Zannoni <ezannoni@redhat.com>
11104
9d62932d
EZ
11105 * Makefile.in (defs_h): Remove dependency on progress_h.
11106 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11107 progress.h.
11108 * main.c (captured_main): Delete use of START_PROGRESS and
11109 END_PROGRESS.
11110
111112004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11112
5bf0017e
EZ
11113 * objfiles.c (terminate_minimal_symbol_table): Add back
11114 initialization of MSYMBOL_TYPE.
11115
9fc9f5e2
AC
111162004-02-17 David Mosberger <davidm@hpl.hp.com>
11117
11118 Committed by Andrew Cagney.
11119 * Makefile.in (ia64_tdep_h): New macro.
11120 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11121 (ia64-tdep.o): Likewise.
11122 * ia64-tdep.h: New file.
11123 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11124 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11125 (ia64_aix_sigcontext_register_address): Likewise.
11126 (ia64_linux_getunwind_table): Delete declaration.
11127 * ia64-linux-tdep.c: Likewise.
11128
76cd2bd9
CV
111292004-02-17 Corinna Vinschen <vinschen@redhat.com>
11130
11131 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11132 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11133 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11134
634aa483
AC
111352004-02-17 Andrew Cagney <cagney@redhat.com>
11136
11137 * symtab.c (skip_prologue_using_sal): New function.
11138 * symtab.h (skip_prologue_using_sal): Declare.
11139 * frv-tdep.c: Include "symtab.h".
11140 (skip_prologue_using_sal): Delete function.
11141 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11142 * rs6000-tdep.c (refine_prologue_limit): Mention
11143 skip_prologue_using_sal.
11144 * ia64-tdep.c (refine_prologue_limit): Ditto.
11145 * Makefile.in: Update dependencies.
11146
111472004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11148
39ce7b3f
AC
11149 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11150 START_INFERIOR_TRAPS_EXPECTED.
11151 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11152 START_INFERIOR_TRAPS_EXPECTED.
11153 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11154 Delete macro.
11155 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11156 macro, moved to "nm-osf.h". Update copyright.
11157 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11158 update copyright.
11159
19772a2c
AC
11160 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11161 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11162 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11163 frameless_look_for_prologue.
11164 * frame.h (legacy_frameless_look_for_prologue): Rename
11165 frameless_look_for_prologue.
11166 * gdbarch.h, gdbarch.c: Re-generate.
11167 * sh64-tdep.c (sh64_gdbarch_init): Update.
11168 * sh-tdep.c (sh_gdbarch_init): Update.
11169 * s390-tdep.c (s390_gdbarch_init): Update.
11170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11171 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11172 * m68k-tdep.c (m68k_gdbarch_init): Update.
11173 (delta68_frame_args_address): Update.
11174 * m32r-tdep.c (m32r_gdbarch_init): Update.
11175 * hppa-tdep.c (hppa_gdbarch_init): Update.
11176 * h8300-tdep.c (h8300_gdbarch_init): Update.
11177 * frv-tdep.c (frv_gdbarch_init): Update.
11178 (frv_frameless_function_invocation): Update.
11179 * cris-tdep.c (cris_gdbarch_init): Update.
11180 (cris_frameless_function_invocation): Update.
11181 * avr-tdep.c (avr_gdbarch_init): Update.
11182 * arm-tdep.c (arm_gdbarch_init): Update.
11183 * stack.c (frame_info): Update, call predicate.
11184 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11185 * frame.c (legacy_get_prev_frame): Update, call predicate..
11186 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11187 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11188 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11189 invocation.
11190 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11191 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11192 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11193
11194 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11195 function.
11196
7dcaac91
DJ
111972004-02-16 Daniel Jacobowitz <drow@mvista.com>
11198
11199 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11200 initializations.
11201
88289b6e
AC
112022004-02-16 Andrew Cagney <cagney@redhat.com>
11203
11204 * tui/tui-windata.c: Include "gdb_string.h".
11205 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11206 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11207 * Makefile.in: Update dependencies.
11208
9f976b41
DJ
112092004-02-16 Daniel Jacobowitz <drow@mvista.com>
11210
11211 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11212 * infrun.c: Include "gdb_assert.h".
11213 (singlestep_ptid, saved_singlestep_ptid)
11214 (stepping_past_singlestep_breakpoint): New variables.
11215 (resume): Set singlestep_ptid. Check for singlestep thread
11216 hop.
11217 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11218 (handle_inferior_event): Handle singlestep thread hop.
11219
c324d747
AC
112202004-02-16 Andrew Cagney <cagney@redhat.com>
11221
f090b9b1
AC
11222 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11223 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11224 (dwarf2_frame_init_reg): Ditto.
11225
fd33e6cb
AC
11226 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11227 suggested by Joshua Neuheisel
11228
c324d747
AC
11229 * configure.in: Always check for curses, including pdcurses.
11230 Warn, instead of error, when no curses are found. Enable TUI when
11231 curses is available.
11232 * configure: Re-generate.
11233
b66ba949
CV
112342004-02-16 Corinna Vinschen <vinschen@redhat.com>
11235
11236 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11237 sh_sh4_register_convert_to_virtual.
11238 (sh_register_convert_to_raw): Rename from
11239 sh_sh4_register_convert_to_raw.
11240 (sh_pseudo_register_read): Accomodate above name change.
11241 (sh_pseudo_register_write): Ditto.
11242
b58cbbf2
CV
112432004-02-16 Corinna Vinschen <vinschen@redhat.com>
11244
11245 * sh-tdep.c (sh_generic_register_name): Remove.
11246 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11247
5929a910
AC
112482004-02-15 Andrew Cagney <cagney@redhat.com>
11249
4566dfcf
AC
11250 * configure.in (build_warnings): Add -Wunused-function.
11251 * configure: Re-generate.
11252
db11ed55
AC
11253 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11254 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11255
46ac7a5d
AC
11256 * procfs.c (procfs_init_inferior): Assume that
11257 START_INFERIOR_TRAPS_EXPECTED is defined.
11258 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11259 * config/ns32k/tm-nbsd.h: Delete file,
11260 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11261
ba801595
AC
11262 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11263 * config/vax/tm-vax.h: Delete file.
11264
5929a910
AC
11265 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11266 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11267 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11268 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11269 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11270 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11271 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11272
8f22cb90
MK
112732004-02-15 Mark Kettenis <kettenis@gnu.org>
11274
11275 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11276 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11277 (struct dwarf2_frame_ops): New.
11278 (dwarf2_frame_default_init_reg): New function, based on
11279 dwarf2_frame_init_reg.
11280 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11281 (dwarf2_frame_init_reg): Call architecture-specific function.
11282 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11283 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11284 instead of dwarf2_frame_data.
11285 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11286 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11287
8132723e
AC
112882004-02-15 Andrew Cagney <cagney@redhat.com>
11289
046a4708
AC
11290 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11291 register_gdbarch_swap.
11292 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11293 * f-lang.c (_initialize_f_language): Update, use
11294 DEPRECATED_REGISTER_GDBARCH_SWAP.
11295 * remote.c (_initialize_remote): Ditto.
11296 * regcache.c (_initialize_regcache): Ditto.
11297 * parse.c (_initialize_parse): Ditto.
11298 * infrun.c (_initialize_infrun): Ditto.
11299 * mi/mi-main.c (_initialize_mi_main): Ditto.
11300 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11301
549c1eea
AC
11302 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11303 poking .cacheable directly.
11304 * symfile.c (symfile_bfd_open): Ditto.
11305
0c0b39de
AC
11306 * Makefile.in: Update all dependencies.
11307
8132723e
AC
11308 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11309 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11310 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11311 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11312 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11313
b9d26eb9
AC
113142004-02-14 Andrew Cagney <cagney@redhat.com>
11315
8e1f669a
AC
11316 * arch-utils.c (legacy_convert_register_p): Check
11317 DEPRECATED_REGISTER_CONVERTIBLE_P.
11318 * findvar.c (value_of_register): Ditto.
11319
cd0bfa36
AC
11320 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11321 * gdbarch.h, gdbarch.c: Re-generate.
11322 * arch-utils.c (deprecated_register_convertible_not): Delete.
11323 * arch-utils.h (deprecated_register_convertible_not): Delete.
11324 * mi/mi-main.c (get_register): Update. Update copyright.
11325 * infcmd.c (default_print_registers_info): Update.
11326
b9d26eb9
AC
11327 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11328 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11329 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11330 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11331 * frame.c (deprecated_get_next_frame_hack): Delete function.
11332 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11333 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11334 Update.
11335 * infcall.c (call_function_by_hand): Update.
11336
9ab9195f
EZ
113372004-02-14 Elena Zannoni <ezannoni@redhat.com>
11338
11339 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11340 from here...
9ab9195f
EZ
11341 * objfiles.c (init_entry_point_info, entry_point_address):..to
11342 here.
11343 * symfile.h (init_entry_point_info, entry_point_address): Remove
11344 prototypes.
11345 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11346 prototypes.
9ab9195f
EZ
11347 * cris-tdep.c: Remove include of symfile.h. Add include of
11348 objfiles.h.
11349 * infcall.c: Ditto.
11350 * mcore-tdep.c: Ditto.
11351 * mn10300-tdep.c: Ditto.
11352 * sh64-tdep.c: Ditto.
11353 * v850-tdep.c: Ditto.
11354 * arm-tdep.c: Remove include of symfile.h.
11355 * blockframe.c: Ditto.
11356 * coffread.c: Ditto.
11357 * dbxread.c: Ditto.
11358 * dwarf2read.c: Ditto.
11359 * dwarfread.c: Ditto.
8a1dac83 11360 * frv-tdep.c: Ditto.
9ab9195f
EZ
11361 * ia64-tdep.c: Ditto.
11362 * mdebugread.c: Ditto.
11363 * mipsread.c: Ditto.
8a1dac83 11364 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11365 * s390-tdep.c: Ditto.
11366 * sh-tdep.c: Ditto.
8a1dac83 11367 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11368 * gdbarch.sh: Remove include of symfile.h.
11369 * gdbarch.c: Regenerate.
11370 * solib-irix.c (enable_break): Use entry_point_address().
11371 Add comment about include file.
11372 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11373 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11374 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11375 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11376 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11377 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11378
c4c5b7ba
AC
113792004-02-13 Andrew Cagney <cagney@redhat.com>
11380
11381 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11382 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11383 copyright.
11384 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11385
3e7879de
FF
113862004-02-12 Fred Fish <fnf@redhat.com>
11387
11388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11389 set_gdbarch_store_return_value.
11390
6a7760b6
AC
113912004-02-12 Andrew Cagney <cagney@redhat.com>
11392
11393 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11394 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11395 (interrupt_query): Ditto.
11396 (ofunc): Delete unused variable.
11397 * cris-tdep.c (cris_abi): Delete unused function.
11398 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11399 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11400 (cris_get_asr_quick_shift_steps): Ditto.
11401 (cris_skip_prologue_frameless_p): Ditto.
11402 * arm-tdep.c (arm_push_return_address): Delete unused function.
11403 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11404 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11405 * s390-tdep.c (s390_function_start): Delete unused function.
11406
31687c3c
AC
114072004-02-12 Andrew Cagney <cagney@redhat.com>
11408
11409 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11410 gdbarch.h, gdbarch.c: Re-generate.
11411 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11412 to generic_prologue_frameless_p.
11413 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11414 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11415
6de918a6
DJ
114162004-02-11 Daniel Jacobowitz <drow@mvista.com>
11417
11418 * mips-linux-tdep.c: Include "frame.h".
11419 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11420 (mips_linux_skip_resolver): New functions.
11421 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11422 and set_gdbarch_in_solib_call_trampoline.
11423 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11424 to after set_gdbarch_in_solib_return_trampoline. Only set the
11425 solib hooks to mips16 functions if the OS ABI is unknown.
11426 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11427 including "config/tm-linux.h".
11428 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11429 * Makefile.in (mips-linux-tdep.o): Update.
11430
87b3ede8
DC
114312004-02-11 David Carlton <carlton@kealia.com>
11432
11433 * linespec.c (decode_compound): Only look for a class symbol when
11434 considering all but the rightmost component.
11435
5979bc46
AC
114362004-02-11 Andrew Cagney <cagney@redhat.com>
11437
11438 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11439 abi code are are separatly grouped.
11440
5867a2fb
AC
114412004-02-11 Andrew Cagney <cagney@redhat.com>
11442
11443 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11444 * gdbarch.h, gdbarch.c: Re-generate.
11445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11446 * v850-tdep.c (v850_gdbarch_init): Update.
11447 * sh64-tdep.c (sh64_gdbarch_init): Update.
11448 * sh-tdep.c (sh_gdbarch_init): Update.
11449 * s390-tdep.c (s390_gdbarch_init): Update.
11450 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11451 * mips-tdep.c (mips_gdbarch_init): Update.
11452 * mcore-tdep.c (mcore_gdbarch_init): Update.
11453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11454 * m32r-tdep.c (m32r_gdbarch_init): Update.
11455 * ia64-tdep.c (ia64_gdbarch_init): Update.
11456 * hppa-tdep.c (hppa_gdbarch_init): Update.
11457 * h8300-tdep.c (h8300_gdbarch_init): Update.
11458 * frv-tdep.c (frv_gdbarch_init): Update.
11459 * d10v-tdep.c (d10v_gdbarch_init): Update.
11460 * cris-tdep.c (cris_gdbarch_init): Update.
11461 * avr-tdep.c (avr_gdbarch_init): Update.
11462 * arm-tdep.c (arm_gdbarch_init): Update.
11463 * alpha-tdep.c (alpha_gdbarch_init): Update.
11464
026a72f8
CV
114652004-02-11 Corinna Vinschen <vinschen@redhat.com>
11466
11467 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11468 comma.
11469 (sh_sh4al_dsp_register_name): Ditto.
11470
3903d437
AC
114712004-02-10 Andrew Cagney <cagney@redhat.com>
11472
11473 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11474 (mips_init_frame_pc_first): Delete function.
11475 (mips_frame_saved_pc): Delete function.
11476 (mips_frame_chain): Delete function.
11477 (mips_init_extra_frame_info): Delete function.
11478 (mips_xfer_register): Delete unused variable "reg".
11479 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11480 (mips_n32n64_return_value): Delete unused variable "reg".
11481 (mips_n32n64_return_value): Delete unused variable "pos".
11482 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11483 (mips_o32_return_value): Delete unused variable "pos".
11484 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11485 (mips_print_fp_register): Delete unused variable "namelen"
11486 (mips_print_fp_register): Delete unused variable "flt2"
11487 (get_frame_pointer): Delete function.
11488 (cached_proc_desc): Delete static variable.
11489 (mips_pop_frame): Delete function.
11490 (mips_find_saved_regs): Delete function.
11491 (mips_get_saved_register): Delete function.
11492 (mips_saved_pc_after_call): Delete function.
11493 (SIGFRAME_BASE): Delete macro.
11494 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11495 (SIGFRAME_PC_OFF): Delete macro.
11496 (SIGFRAME_REGSAVE_OFF): Delete macro.
11497 (mips_dump_tdep): Do not print deleted macro definitions.
11498
b9fb98bd
AC
114992004-02-10 Andrew Cagney <cagney@redhat.com>
11500
11501 * Makefile.in (SFILES): Remove explictly listed tui files.
11502 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11503
78ced177 115042004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11505
78ced177
JJ
11506 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11507 to use paddr functions to format ia64 addresses and long values.
11508 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11509 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11510 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11511 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11512 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11513
6a83354a
AC
115142004-02-10 Andrew Cagney <cagney@redhat.com>
11515
11516 * defs.h: Do not include "tui.h".
11517 * gdb_curses.h: New file.
11518 * tui/tui-hooks.h: New file.
11519 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11520 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11521 (tui_initialize_io): Delete declaration.
11522 (tui_initialize_readline: Delete redundant declaration.
11523 (struct tui_point): Delete definition.
11524 * tui/tui-data.h (struct tui_point): Define.
11525 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11526 * utils.c: Include "tui/tui.h".
11527 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11528 * printcmd.c [TUI]: Include "tui/tui.h".
11529 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11530 * tui/tui-command.c: Include "gdb_curses.h".
11531 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11532 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11533 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11534 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11535 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11536 * Makefile.in: Update all dependencies.
11537 (tui_hooks_h, gdb_curses_h): Define.
11538 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11539
997470ef
EZ
115402004-02-10 Elena Zannoni <ezannoni@redhat.com>
11541
11542 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11543 auxf2. Add comments about some other rarely used fields.
11544
4ff2cc4d
AC
115452004-02-10 Andrew Cagney <cagney@redhat.com>
11546
11547 * Makefile.in (init.c): Fix script removing duplicates. Problem
11548 reported by Peter Schauer.
11549
1ab21617
EZ
115502004-02-09 Elena Zannoni <ezannoni@redhat.com>
11551
11552 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11553 obstack_specify_allocation.
11554 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11555 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11556 (allocate_rt_common_objfile): Ditto.
11557 * symfile.c (reread_symbols): Ditto.
11558 * gdb_obstack.h: Add comment.
11559
17763fd9
EZ
115602004-02-09 Elena Zannoni <ezannoni@redhat.com>
11561
11562 * linespec.c (decode_line_1, locate_first_half)
11563 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11564 commented out code.
11565
ec5cdd75
DJ
115662004-02-09 Daniel Jacobowitz <drow@mvista.com>
11567
11568 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11569 obstack_free.
11570
43b54b88
AC
115712004-02-09 Andrew Cagney <cagney@redhat.com>
11572
11573 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11574 fails, try find_pc_section. Fix PR c++/1267.
11575 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11576 instead of find_pc_mapped_section.
11577 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11578 not default to the section containing PC. Fix PR symtab/1519.
11579
edfae063
AC
115802004-02-09 Andrew Cagney <cagney@redhat.com>
11581
11582 * Makefile.in (mips-tdep.o): Update dependencies.
11583 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11584 "trad-frame.h".
11585 (mips_unwind_pc): Return the pseudo PC register.
11586 (mips_unwind_dummy_id): New function.
11587 (mips16_fetch_instruction): New function.
11588 (mips32_fetch_instruction): New function.
11589 (struct mips_frame_cache): Define.
11590 (mips_mdebug_frame_cache): New function.
11591 (mips_mdebug_frame_this_id): New function.
11592 (mips_mdebug_frame_prev_register): New function.
11593 (mips_mdebug_frame_unwind): Define.
11594 (mips_mdebug_frame_sniffer): New function.
11595 (mips_mdebug_frame_base_address): New function.
11596 (mips_mdebug_frame_base): Define.
11597 (mips_mdebug_frame_base_sniffer): New function.
11598 (mips_gdbarch_init): Append unwind and base sniffers. Set
11599 unwind_dummy_id.
11600
defc864c
AC
116012004-02-08 Andrew Cagney <cagney@redhat.com>
11602
6764ddad
AC
11603 * frame.c: Print both the register number and name.
11604
defc864c
AC
11605 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11606 and a sed into a single sed. Make .c and .o patterns more robust.
11607 (OBS): Delete.
11608 (INIT_FILES): Replace OBS with COMMON_OBS.
11609 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11610
645d6d10
MK
116112004-02-08 Mark Kettenis <kettenis@gnu.org>
11612
11613 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11614 the PT_WCOOKIE request.
11615
23e3c3fc
AC
116162004-02-08 Andrew Cagney <cagney@redhat.com>
11617
58dfe9ff
AC
11618 * mips-tdep.c (mips_unwind_pc): New function.
11619 (mips_gdbarch_init): Set mips_unwind_pc.
11620
1152e35e
AC
11621 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11622 (get_frame_id): Allow the UNKNOWN_FRAME.
11623 (frame_register_unwind, get_frame_type): Ditto.
11624
31b75dbf
AC
11625 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11626 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11627 unwind_dummy_id indicates a legacy frame.
11628
3483b318
AC
11629 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11630 * configure: Re-generate.
11631
23e3c3fc
AC
11632 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11633 methods.
11634
33f8ca73
AC
116352004-02-08 Andrew Cagney <cagney@redhat.com>
11636
11637 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11638 makefile macro.
11639 * configure: Re-generate.
11640 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11641 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11642 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11643 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11644 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11645 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11646 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11647 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11648 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11649 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11650
6ba8e26f 116512004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11652
20d286a5
AC
11653 * Makefile.in: Update all dependencies.
11654
d836ee13
AC
11655 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11656 * configure: Re-generate.
11657 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11658 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11659 (COMMON_OBS): Add "main.o" and "annotate.o".
11660 (ANNOTATE_OBS): Delete.
11661 (OBS): Remove ANNOTATE_OBS.
11662 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11663 CONFIG_INITS.
11664 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11665 against CONFIG_OBS and "main.o".
11666 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11667 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11668
d02c80cd
AC
11669 * tui/tui-command.c: Include "gdb_string.h", delete register
11670 attribute, use ISO-C function signatures.
11671 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11672 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11673 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11674 * tui/tui.c: Ditto.
6ba8e26f
AC
11675
11676 * tui/tui-command.c: Change variable and function names to lower
11677 case.
11678 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11679 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11680 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11681 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11682 * tui/tui-winsource.c, tui/tui.c: Ditto.
11683
4a146b47
EZ
116842004-02-07 Elena Zannoni <ezannoni@redhat.com>
11685
11686 * buildsym.c (free_pending_blocks, finish_block)
11687 (record_pending_block, make_blockvector, end_symtab): Replace
11688 symbol_obstack with objfile_obstack.
8a1dac83 11689 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11690 (coff_read_enum_type): Ditto.
8a1dac83 11691 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11692 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11693 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11694 (dwarf2_symbol_mark_computed): Ditto.
11695 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11696 * elfread.c (elf_symtab_read): Ditto.
11697 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11698 (hpread_read_enum_type, hpread_read_function_type)
11699 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11700 Ditto.
8a1dac83 11701 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11702 (java_link_class_type): Ditto.
8a1dac83 11703 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11704 (new_symbol): Ditto.
11705 * minsyms.c (install_minimal_symbols): Ditto.
11706 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11707 (terminate_minimal_symbol_table): Replace symbol_obstack with
11708 objfile_obstack.
11709 (free_objfile): Remove freeing of symbol_obstack.
11710 * objfiles.h: Remove symbol_obstack field.
11711 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11712 objfile_obstack.
11713 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11714 symbol_obstack.
11715 (solib_add_common_symbols): Replace symbol_obstack with
11716 objfile_obstack.
11717 * somsolib.c (som_solib_add): Ditto.
11718 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11719 (common_block_start, common_block_end): Ditto.
11720 * symfile.c (reread_symbols): Remove freeing and init of
11721 symbol_obstack.
11722 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11723 * symfile.h: Update comment.
11724 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11725 stats printing.
11726 * symtab.c (symbol_set_names): Replace symbol_obstack with
11727 objfile_obstack.
11728 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11729 Update comments.
11730 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11731 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11732 objfile_obstack.
11733
6d012f14
AC
117342004-02-07 Andrew Cagney <cagney@redhat.com>
11735
11736 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11737 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11738 fields and variables.
11739 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11740 (m_beInvisible): Delete macro.
11741 * tui/tui-data.h: Fix case case fields and variables.
11742 (m_genWinPtrIsNull): Delete macro.
11743 (tui_win_list): Rename winList.
11744 (TUI_SRC_WIN): Rename srcWin.
11745 (TUI_DISASM_WIN): Rename disassemWin.
11746 (TUI_DATA_WIN): Rename dataWin.
11747 (TUI_CMD_WIN): Rename cmdWin.
11748 (m_genWinPtrNotNull): Delete macro.
11749 (m_winPtrIsNull): Delete macro.
11750 (m_winPtrNotNull): Delete macro.
11751 (tui_win_is_source_type): Replace m_winIsSourceType
11752 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11753 (tui_win_has_locator): Replace m_hasLocator.
11754 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11755 m_setWinHighlightOff.
11756 * tui/tui-data.c: Update references.
11757 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11758 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11759 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11760 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11761 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11762 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11763 * tui/tui-winsource.c, tui/tui.c: Ditto.
11764
7d34766b
MK
117652004-02-07 Mark Kettenis <kettenis@gnu.org>
11766
1c800673
MK
11767 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11768 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11769 StackGhost.
11770
7d34766b
MK
11771 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11772 variable `i6' to `i7'.
11773 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11774
22940a24
AC
117752004-02-07 Andrew Cagney <cagney@redhat.com>
11776
11777 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11778 (TuiPoint, TuiPointPtr): Ditto.
11779 (TuiStatus, TuiStatusPtr): Ditto.
11780 (TuiWinType, TuiWinTypePtr): Ditto.
11781 (struct tui_point): Rename _TuiPoint.
11782 (tui_get_low_disassembly_address): Rename
11783 tuiGetLowDisassemblyAddress.
11784 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11785 (tuiFree): Delete declaration.
11786 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11787 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11788 * tui/tui.c (tuiFree): Delete function.
11789 * cli/cli-cmds.c (disassemble_command): Update references.
11790 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11791 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11792 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11793 * tui/tui-winsource.c: Ditto.
11794
8b92e4d5
EZ
117952004-02-07 Elena Zannoni <ezannoni@redhat.com>
11796
11797 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11798 coffstab_build_psymtabs, elfstab_build_psymtabs)
11799 (stabsect_build_psymtabs): Replace psymbol_obstack with
11800 objfile_obstack.
11801 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11802 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11803 Ditto.
11804 * dwarfread.c (scan_compilation_units): Ditto.
11805 * elfread.c (elfstab_offset_sections): Ditto.
11806 * hppa-tdep.c (read_unwind_info): Ditto.
11807 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11808 (hpread_end_psymtab): Ditto.
11809 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11810 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11811 Ditto.
11812 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11813 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11814 (build_objfile_section_table): Ditto.
11815 (allocate_objfile): Remove init of psymbol_obstack.
11816 (free_objfile): Remove freeing of psymbol_obstack.
11817 * objfiles.h (struct objfile): Remove field
11818 psymbol_obstack. Update comments.
11819 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11820 psymbol_obstack with objfile_obstack.
11821 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11822 psymbol_obstack.
11823 * somread.c (som_symfile_offsets, init_import_symbols)
11824 (init_export_symbols): Replace psymbol_obstack with
11825 objfile_obstack.
11826 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11827 * symfile.c (default_symfile_offsets, syms_from_objfile)
11828 (reread_symbols): Remove freeing and init of psymbol_obstack.
11829 (cashier_psymtab): Update comment.
11830 * symmisc.c (print_objfile_statistics): Don't report stats for
11831 psymbol obstack.
11832 * symtab.h (struct general_symbol_info, struct partial_symtab):
11833 Update comments.
11834 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11835 (xcoff_symfile_offsets): Replace psymbol_obstack with
11836 objfile_obstack.
11837
b99607ea
EZ
118382004-02-07 Elena Zannoni <ezannoni@redhat.com>
11839
11840 * objfiles.h (struct objfile): Add objfile_obstack field.
11841 Remove type_obstack field.
11842
11843 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11844 read_structure_scope read_enumeration, new_symbol): Replace
11845 type_obstack with objfile_obstack.
11846 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11847 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11848 (lookup_fundamental_type): Ditto.
11849 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11850 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11851 (hpread_read_doc_function_type, hpread_read_struct_type)
11852 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11853 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11854 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11855 (java_link_class_type): Ditto.
11856 * mdebugread.c (parse_type): Ditto.
11857 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11858 * solib-sunos.c (solib_add_common_symbols): Ditto.
11859 * stabsread.c (define_symbol, read_type, read_member_functions,
11860 read_cpp_abbrev, read_one_struct_field): Ditto.
11861 * symfile.c (reread_symbols): Ditto.
11862 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11863
2a8854a7
AC
118642004-02-07 Andrew Cagney <cagney@redhat.com>
11865
11866 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11867 (tui_exec_info_content): Rename TuiExecInfoContent.
11868 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11869 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11870 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11871 (TuiList, TuiListPtr): Ditto.
11872 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11873 (TuiDataType, TuiDataTypePtr): Ditto.
11874 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11875 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11876 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11877 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11878 (TuiDataElement, TuiDataElementPtr): Ditto.
11879 (TuiWinElement, TuiWinElementPtr): Ditto.
11880 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11881 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11882 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11883 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11884 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11885 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11886 * tui/tui-command.c, tui/tui-data.c: Update references.
11887 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11888 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11889 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11890 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11891
05cbe71a
MK
118922004-02-07 Mark Kettenis <kettenis@gnu.org>
11893
11894 * dwarf2-frame.h: Update copyright.
11895 (enum dwarf2_frame_reg_rule): New.
11896 (struct dwarf2_frame_state_reg): New.
11897 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11898 * dwarf2-frame.c: Update copyright.
11899 (enum dwarf2_reg_rule): Remove.
11900 (struct dwarf2_frame_state): Remove defenition of `struct
11901 dwarf2_frame_state_reg'.
11902 (read_reg): Call get_frame_arch to get the architecture instead of
11903 using CURRENT_GDBARCH.
11904 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11905 DWARF2_FRAME_.
11906 (dwarf2_frame_init_reg): New function.
11907 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11908 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11909 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11910 tags with DWARF2_FRAME_.
11911 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11912 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11913 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11914
ec7d9e56
AC
119152004-02-06 Andrew Cagney <cagney@redhat.com>
11916
dd1abb8c
AC
11917 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11918 (enum tui_data_type): Rename _TuiDataType.
11919 (struct tui_layout_def): Rename _TuiLayoutDef.
11920 (struct tui_source_element): Rename _TuiSourceElement.
11921 (struct tui_data_element): Rename _TuiDataElement.
11922 (struct tui_command_element): Rename _TuiCommandElement.
11923 (struct tui_locator_element): Rename _TuiLocatorElement.
11924 (union tui_which_element): Define.
11925 (struct tui_win_element): Rename _TuiWinElement.
11926 (struct tui_data_info): Rename _TuiDataInfo.
11927 (struct tui_source_info): Rename _TuiSourceInfo.
11928 (struct tui_command_info): Rename _TuiCommandInfo.
11929 (tui_initialize_static_data): Rename initializeStaticData.
11930 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11931 (tui_alloc_win_info): Rename allocWinInfo.
11932 (tui_init_generic_part): Rename initGenericPart.
11933 (tui_init_win_info): Rename initWinInfo.
11934 (tui_alloc_content): Rename allocContent.
11935 (tui_add_content_elements): Rename addContentElements.
11936 (tui_init_content_element): Rename initContentElement.
11937 (tui_free_window): Rename freeWindow.
11938 (tui_free_win_content): Rename freeWinContent.
11939 (tui_free_data_content): Rename freeDataContent.
11940 (tui_free_all_source_wins_content): Rename
11941 freeAllSourceWinsContent.
11942 (tui_del_window): Rename tuiDelWindow.
11943 (tui_del_data_windows): Rename tuiDelDataWindows.
11944 (tui_partial_win_by_name): Rename partialWinByName.
11945 (tui_win_name): Rename winName.
11946 (tui_current_layout): Rename currentLayout.
11947 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11948 (tui_term_height): Rename termHeight.
11949 (tui_set_term_height_to): Rename setTermHeightTo.
11950 (tui_term_width): Rename termWidth.
11951 (tui_set_term_width_to): Rename setTermWidthTo.
11952 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11953 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11954 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11955 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11956 (tui_source_windows): Rename sourceWindows.
11957 (tui_clear_source_windows): Rename clearSourceWindows.
11958 (tui_clear_source_windows_detail): Rename
11959 clearSourceWindowsDetail.
11960 (tui_clear_win_detail): Rename clearWinDetail.
11961 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11962 (tui_default_tab_len): Rename tuiDefaultTabLen.
11963 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11964 (tui_win_with_focus): Rename tuiWinWithFocus.
11965 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11966 (tui_layout_def): Rename tuiLayoutDef.
11967 (tui_win_resized): Rename tuiWinResized.
11968 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11969 (tui_next_win): Rename tuiNextWin.
11970 (tui_prev_win): Rename tuiPrevWin.
11971 (tui_add_to_source_windows): Rename addToSourceWindows.
11972 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11973 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11974 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11975 * tui/tui.c, tui/tui-data.c: Ditto.
11976 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11977 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11978
a358af15
AC
11979 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11980 (struct symtab): Declare.
11981 (tui_set_source_content): Rename tuiSetSourceContent.
11982 (tui_show_symtab_source): Rename tuiShowSource.
11983 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11984 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11985 * tui/tui-source.c: Update copyright. Update references.
11986 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11987 * tui/tui-stack.c: Update references.
11988
a21fcd8f
AC
11989 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11990 (struct tui_win_info): Declare.
11991 (tui_scroll_forward): Rename tuiScrollForward.
11992 (tui_scroll_backward): Rename tuiScrollBackward.
11993 (tui_scroll_left): Rename tuiScrollLeft.
11994 (tui_scroll_right): Rename tuiScrollRight.
11995 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11996 (tui_resize_all): Rename tuiResizeAll.
11997 (tui_refresh_all_win): Rename tuiRefreshAll.
11998 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11999 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12000 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12001 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12002
edae1ccf
AC
12003 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12004 (tui_erase_data_content): Rename tuiEraseDataContent.
12005 (tui_display_all_data): Rename tuiDisplayAllData.
12006 (tui_check_data_values): Rename tuiCheckDataValues.
12007 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12008 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12009 (tui_first_data_element_no_in_line): Rename
12010 tuiFirstDataElementNoInLine.
12011 (tui_delete_data_content_windows): Rename
12012 tuiDeleteDataContentWindows.
12013 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12014 (tui_display_data_from): Rename tuiDisplayDataFrom.
12015 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12016 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12017 * tui/tui-win.c, tui/tui-regs.c: Update references.
12018 * tui/tui-layout.c, tui/tui.c: Update references.
12019
ec7d9e56
AC
12020 * tui/tui-wingeneral.h: Update copyright.
12021 (m_allBeVisible): Delete macro.
8a1dac83 12022 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12023 (struct tui_gen_win_info): Declare.
12024 (struct tui_win_info): Declare.
12025 (tui_unhighlight_win): Rename unhighlightWin.
12026 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12027 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12028 (tui_make_window): Rename makeWindow.
12029 (tui_copy_win): Rename copyWin.
12030 (tui_box_win): Rename boxWin.
12031 (tui_highlight_win): Rename highlightWin.
12032 (tui_check_and_display_highlight_if_needed): Rename
12033 checkAndDisplayHighlightIfNeeded.
12034 (tui_refresh_all): Rename refreshAll.
12035 (tui_delete_win): Rename tuiDelwin.
12036 (tui_refresh_win): Rename tuiRefreshWin.
12037 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12038 (tui_make_visible, tui_make_invisible): New functions.
12039 (tui_make_all_visible, tui_make_all_invisible): New functions.
12040 (make_all_visible): Rename makeAllVisible.
12041 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12042 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12043 * tui/tui-windata.c, tui/tui-win.c: Update references.
12044 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12045 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12046
1e52e2eb
MK
120472004-02-06 Mark Kettenis <kettenis@gnu.org>
12048
12049 * proc-api.c (write_with_trace): Initialize local variable to
12050 silence compiler warning.
12051
f80bda8e
AC
120522004-02-06 Andrew Cagney <cagney@redhat.com>
12053
12054 * tui/tui-source.h: Do not include "defs.h".
12055 (struct tui_win_info): Declare.
12056 (tui_set_source_content_nil): Declare.
12057 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12058 (union tui_line_or_address): Rename _TuiLineOrAddress.
12059 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12060 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12061 (tui_update_source_window_as_is): Rename
12062 tuiUpdateSourceWindowAsIs.
12063 (tui_update_source_windows_with_addr): Rename
12064 tuiUpdateSourceWindowsWithAddr.
12065 (tui_update_source_windows_with_line): Rename
12066 tuiUpdateSourceWindowsWithLine.
12067 (tui_clear_source_content): Rename tuiClearSourceContent.
12068 (tui_erase_source_content): Rename tuiEraseSourceContent.
12069 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12070 (tui_show_source_content): Rename tuiShowSourceContent.
12071 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12072 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12073 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12074 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12075 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12076 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12077 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12078 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12079 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12080 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12081 (struct tui_win_info): Declare.
12082 * tui/tui-stack.c: Update references.
12083 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12084 * tui/tui-win.c, tui/tui-source.c: Ditto.
12085 * tui/tui.c, tui/tui-disasm.c: Ditto.
12086
9fbfb822
MK
120872004-02-06 Mark Kettenis <kettenis@gnu.org>
12088
12089 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12090 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12091
03cebad2
MK
120922004-02-05 Mark Kettenis <kettenis@gnu.org>
12093
12094 * infrun.c (handle_inferior_event): Allow for breakpoint
12095 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12096 and SIGEMT. Update comments.
12097 * NEWS (Revised SPARC target): Mention support for non-executable
12098 stack.
12099
290281b1
MK
121002004-02-04 Mark Kettenis <kettenis@gnu.org>
12101
12102 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12103 * inftarg.c: Update copyright year.
12104 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12105 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12106 (sparc_xfer_wcookie): New function.
12107 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12108 * Makefile.in (sparc-nat.o): Update dependencies.
12109 * config/sparc/nm-nbsd.h: Include "target.h".
12110 (NATIVE_XFER_WCOOKIE): New define.
12111 (sparc_xfer_wcookie): New prototype.
12112
212161df
AC
121132004-02-04 Andrew Cagney <cagney@redhat.com>
12114
12115 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12116 SYSCALL_TRAP function.
12117 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12118
6e4c6c91
DJ
121192004-02-04 Andrew Cagney <cagney@redhat.com>
12120 Daniel Jacobowitz <drow@mvista.com>
12121
12122 * objfiles.h: Delete comments refering to inside_entry_func and
12123 DEPRECATED_FRAME_CHAIN_VALID.
12124 * defs.h (inside_entry_func): Update prototype..
12125 * blockframe.c (inside_entry_func): Rename to
12126 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12127 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12128
cae688ec
JJ
121292004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12130
12131 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12132 outside of #ifdef SOLIB_ADD region.
12133 (do_restore_lang_radix_cleanup): Ditto.
12134 (resolve_pending_breakpoint): Ditto.
12135
19217676
AC
121362004-02-03 Andrew Cagney <cagney@redhat.com>
12137
12138 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12139 (process_note_abi_tag_sections): Delete unused function.
12140 (ia64_read_fp): Delete unused function.
12141 (gdbarch_extract_struct_value_address): Delete declaration.
12142
876753be
AC
121432004-02-02 Andrew Cagney <cagney@redhat.com>
12144
12145 * vax-tdep.c (vax_frame_chain): Delete call to
12146 deprecated_inside_entry_file.
12147 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12148
d4f10bf2
MK
121492004-02-02 Mark Kettenis <kettenis@gnu.org>
12150
12151 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12152 column that's "empty" or "same value" when eliminating REG_RA
12153 rules.
12154
cae688ec
JJ
121552004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12156
12157 * NEWS: Add information about new pending breakpoint support.
12158
0101ce28
JJ
121592004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12160
12161 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12162 and pending fields for pending breakpoint support.
12163 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12164 (condition_command): Only parse condition if not a pending
12165 breakpoint.
12166 (print_one_breakpoint): Add support for pending breakpoints.
12167 (describe_other_breakpoints): Add checks to verify we are not
12168 dealing with pending breakpoints.
12169 (check_duplicates): Don't check pending breakpoints.
12170 (set_raw_breakpoint): Initialize pending flag.
12171 (do_restore_lang_radix_cleanup): New cleanup routine.
12172 (resolve_pending_breakpoint): New function.
12173 (re_enable_breakpoints_in_shlibs): Try and resolve any
12174 pending breakpoints via resolve_pending_breakpoint.
12175 (mention): Add pending breakpoint support.
12176 (parse_breakpoint_sals): Add new parameter to pass to
12177 decode_line_1 to indicate silent errors when files or functions
12178 are not found. Change all callers.
12179 (do_captured_parse_breakpoint): New function.
12180 (break_command_1): Change prototype to return an rc value and to
12181 take an optional pending breakpoint pointer. Support creating
12182 a pending breakpoint if a "not found" form of error occurs when
12183 parsing the breakpoint. Also support resolving an existing pending
12184 breakpoint and be silent if the resolution fails.
12185 (create_breakpoints): Change prototype to take pending breakpoint
12186 pointer. When resolving a pending breakpoint, use the new pointer
12187 to provide a conditional or commands added by the end-user.
12188 (delete_breakpoint): Add appropriate check for pending.
12189 (breakpoint_re_set_one): Ditto.
12190 (do_enable_breakpoint): Ditto.
12191
8d577d32
DC
121922004-02-02 David Carlton <carlton@kealia.com>
12193
12194 * valops.c (enum oload_classification): New.
12195 (find_overload_match): Break implementation into separate
12196 functions; delete #if 0'd code; look for symbols within
12197 namespaces.
12198 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12199 (find_oload_champ,oload_method_static,classify_oload_match): New.
12200 * cp-support.h: Add declaration for cp_func_name; update
12201 declaration for make_symbol_overload_list.
12202 * cp-support.c (cp_func_name): New.
12203 (overload_list_add_symbol): Fix comment, use
12204 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12205 (make_symbol_overload_list): Take a function name and a namespace
12206 instead of a symbol; change implementation.
12207 (make_symbol_overload_list_using): New.
12208 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12209
22e8e3c7
FF
122102004-02-02 Fred Fish <fnf@redhat.com>
12211
12212 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12213 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12214 * remote-sim.c (gdb_os_write_stderr): Write output to
12215 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12216 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12217 gdb_stderr stream and update copyright years.
22e8e3c7 12218
6b753f60
DJ
122192004-02-01 Daniel Jacobowitz <drow@mvista.com>
12220
12221 * Makefile.in (mips-linux-nat.o): Update dependencies.
12222 * mips-linux-nat.c: Include mips-tdep.h.
12223
122242004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12225
12226 * sol-thread.c (sol_thread_xfer_partial): New function.
12227 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12228 (init_sol_core_ops): Likewise.
12229
12230 * procfs.c (procfs_xfer_partial): New function.
12231 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12232 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12233
12234 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12235 procfs_xfer_auxv function.
12236
12237 * procfs.c (procfs_make_note_section): If we can read
12238 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12239 * linux-proc.c (linux_make_note_section): Likewise.
12240
12241 * auxv.h: New file.
12242 * auxv.c: New file.
12243 * Makefile.in (auxv_h): New variable.
12244 (COMMON_OBS): Add auxv.o here.
12245 (auxv.o): New target.
12246
12247 * corelow.c (core_xfer_partial): New function.
12248 (init_core_ops): Use it for core_ops.to_xfer_partial.
12249
12250 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12251 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12252 macro if that is defined.
12253
fa5281d0
DJ
122542004-02-01 Daniel Jacobowitz <drow@mvista.com>
12255
12256 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12257 and check the specified thread for each breakpoint.
12258 * breakpoint.h (bpstat_stop_status): Update prototype.
12259 * infrun.c (handle_inferior_event): Update calls to
12260 bpstat_stop_status.
12261
26ee262d
DJ
122622004-02-01 Daniel Jacobowitz <drow@mvista.com>
12263
12264 * Makefile.in (cli-cmds.o): Add $(readline_h).
12265
d9b52655
DJ
122662004-02-01 Daniel Jacobowitz <drow@mvista.com>
12267
12268 * cli/cli-cmds.c: Include readline.h.
12269 (complete_command): Pass the start of the last word to
12270 complete_line.
12271
9709f61c
DJ
122722004-01-31 Daniel Jacobowitz <drow@mvista.com>
12273
12274 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12275 argument, and change first argument to a CORE_ADDR.
12276 * breakpoint.h (bpstat_stop_status): Update prototype.
12277 * infrun.c (adjust_pc_after_break): Add a new comment.
12278 (handle_inferior_event): Update calls to bpstat_stop_status.
12279
4f1280bb
DJ
122802004-01-31 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * breakpoint.h: Update copyright years.
12283
4fa8626c
DJ
122842004-01-31 Daniel Jacobowitz <drow@mvista.com>
12285
12286 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12287 (bpstat_stop_status): Don't decrement PC.
12288 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12289 prototype.
12290 * infrun.c (adjust_pc_after_break): New function.
12291 (handle_inferior_event): Call it, early. Remove later references
12292 to DECR_PC_AFTER_BREAK.
12293 (normal_stop): Add commentary.
12294
fad0733a
DJ
122952004-01-31 Daniel Jacobowitz <drow@mvista.com>
12296
12297 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12298 2004-01-27 double-free fix.
12299
42cdca6c
MK
123002004-01-31 Mark Kettenis <kettenis@gnu.org>
12301
12302 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12303 (sparc32_frame_prev_register): Handle StackGhost.
12304 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12305
932d5416
RM
123062004-01-29 Roland McGrath <roland@redhat.com>
12307
12308 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12309 * configure: Regenerated.
12310
12311 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12312 * Makefile.in (procfs.o): Add dep.
12313
47d3492a
AC
123142004-01-28 Andrew Cagney <cagney@redhat.com>
12315
12316 * tui/tui-stack.h: Update copyright.
12317 (struct frame_info): Add opaque declaration.
12318 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12319 (tui_show_locator_content): Rename tuiShowLocatorContent.
12320 (tui_show_frame_info): Rename tuiShowFrameInfo.
12321 * tui/tui-stack.c: Update copyright. Update references.
12322 * tui/tui-winsource.c: Update references.
12323 * tui/tui-win.c: Update references.
12324 * tui/tui-layout.c: Update references.
12325 * tui/tui-hooks.c: Update copyright, update references.
12326 * tui/tui.c: Update copyright, update references.
12327 * tui/tui-disasm.c: Update references.
12328
5d51ca54
DC
123292004-01-28 David Carlton <carlton@kealia.com>
12330
12331 * dwarf2read.c (add_partial_structure): Use demangled name if
12332 namespace equals "".
12333
086ed43d
JB
123342004-01-27 Jim Blandy <jimb@redhat.com>
12335
12336 Clean up misapplied patch:
12337 * dwarf2read.c (determine_prefix): Change one of the two forward
12338 declarations for 'determine_prefix_aux' to a declaration for this.
12339 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12340 argument to 'die_specification'.
12341
2a35147e
JB
12342 * dwarf2read.c (read_func_scope): Re-indent comment.
12343
a355c7de 123442004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12345
a355c7de
AC
12346 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12347 b->exp to NULL after freeing so that error during re-parsing or
12348 evaluation of expressions associated with breakpoint don't
12349 eventually lead to re-freeing of storage.
12350 Committed by Andrew Cagney.
12351
63ff5125
AC
123522004-01-27 Andrew Cagney <cagney@redhat.com>
12353
12354 * source.c (ambiguous_line_spec): Delete undefined declaration.
12355 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12356 (m32r_set_server_address, m32r_set_download_path): Ditto.
12357 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12358
e142c38c
DJ
123592004-01-27 Daniel Jacobowitz <drow@mvista.com>
12360
12361 * dwarf2read.c: Update calls to changed and renamed functions, and
12362 references to moved variables.
12363
12364 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12365 language, language_defn, list_in_scope, and ftypes members.
12366 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12367 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12368 (baseaddr): Remove globals.
12369
12370 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12371 (set_cu_language, die_is_declaration, die_specification)
12372 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12373 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12374 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12375 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12376
12377 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12378 cu.list_in_scope. Don't initialize cu_header_offset.
12379 (add_partial_symbol): Add local baseaddr.
12380 (psymtab_to_symtab_1): Add local baseaddr. Use
12381 objfile->section_offsets for consistency. Don't initialize
12382 cu_header_offset; do initialize cu.header.offset and
12383 cu.list_in_scope.
12384 (read_file_scope, read_func_scope, read_lexical_block_scope)
12385 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12386
c6e06ede
MC
123872004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12388
fb328ecc 12389 * PROBLEMS: Add gdb/1516.
c6e06ede 12390
48184fd4
AC
123912003-12-29 Robert Millan <robertmh@gnu.org>
12392
12393 Patch committed by Andrw Cagney.
12394 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12395 * configure.tgt: Match knetbsd*-gnu.
12396
c1321b30
AC
123972004-01-26 Andrew Cagney <cagney@redhat.com>
12398
f3699be3
AC
12399 * breakpoint.c (catch_command_1): Delete #ifdef code.
12400 (catch_fork_command_1): Delete #ifdef wrapper.
12401 (catch_exec_command_1): Ditto.
12402 (catch_load_command_1): Ditto.
12403 (catch_unload_command_1): Ditto.
12404
c1321b30
AC
12405 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12406 (catch_breakpoint): Delete #if0ed function.
12407 (disable_catch_breakpoint): Ditto.
12408 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12409 (disable_catch, enable_catch, delete_catch): Ditto.
12410
b4501125
AC
124112004-01-26 Andrew Cagney <cagney@redhat.com>
12412
12413 * remote.c (echo_check, quit_flag): Delete variables.
12414 (cisco_kernel_mode): Delete variable.
12415 (minitelnet_return, tty_input, escape_count): Delete variables.
12416 (remote_cisco_mode): Delete variable.
12417 (remote_cisco_open, remote_cisco_close): Delete function.
12418 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12419 (init_remote_cisco_ops): Delete function.
12420 (_initialize_remote): Do not install "remote cisco" code.
12421 (read_frame): Delete cisco specific code.
12422 (remote_info_process): Delete function.
12423 (remote_wait): Delete cisco specific code.
12424 (remote_cisco_section_offsets): Delete function.
12425 (remote_cisco_objfile_relocate): Delete function.
12426 (remote_async_wait): Delete cisco specific code.
12427 (minitelnet, readtty, readsocket): Delete function.
12428
74055713
AC
124292004-01-26 Andrew Cagney <cagney@redhat.com>
12430
12431 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12432 comments mentioning extract_returned_value_address.
12433 * infcmd.c (print_return_value): Update. Add comments on
12434 extract_returned_value_address.
12435 * stack.c (return_command): Add comments on
12436 extract_returned_value_address.
12437 * values.c: Update comment.
12438 * m32r-tdep.c: Update comment.
12439 * sparc-tdep.c: Update comment.
12440 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12442 * sh64-tdep.c (sh64_gdbarch_init): Update.
12443 * sh-tdep.c (sh_gdbarch_init): Update.
12444 * s390-tdep.c (s390_gdbarch_init): Update.
12445 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12446 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12447 * m68k-tdep.c (m68k_gdbarch_init): Update.
12448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12449 * m32r-tdep.c (m32r_gdbarch_init): Update.
12450 * ia64-tdep.c (ia64_gdbarch_init): Update.
12451 * h8300-tdep.c (h8300_gdbarch_init): Update.
12452 * frv-tdep.c (frv_gdbarch_init): Update.
12453 * arm-tdep.c (arm_gdbarch_init): Update.
12454 * alpha-tdep.c (alpha_gdbarch_init): Update.
12455
a67af2b9
AC
124562004-01-26 Andrew Cagney <cagney@redhat.com>
12457
12458 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12459 SYMBOL_LOCATION_FUNCS
12460 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12461 "struct symbol_ops".
12462 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12463 type to "struct symbol_ops".
12464 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12465 (struct symbol): Replace ".aux_value.loc.funcs" and
12466 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12467 (SYMBOL_OBJFILE): Delete macro.
12468 (SYMBOL_LOCATION_FUNCS): Delete macro.
12469 (SYMBOL_LOCATION_BATON): Update.
12470 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12471 intead of SYMBOL_LOCATION_FUNCS.
12472 * ax-gdb.c (gen_var_ref): Ditto.
12473 * printcmd.c (address_info): Ditto.
12474 * findvar.c (read_var_value): Ditto.
12475 (symbol_read_needs_frame): Ditto.
12476
c034e007
AC
124772004-01-26 Andrew Cagney <cagney@redhat.com>
12478
12479 * dwarf2read.c (read_func_scope): Document frame-base hack.
12480
bb472c1e
MK
124812004-01-25 Mark Kettenis <kettenis@gnu.org>
12482
12483 * infcmd.c (print_return_value): Plug memory leak; delete
12484 ui_stream object. Rename argument `structure_return' to
12485 `struct_return'.
12486
c8e737d5
MK
124872004-01-25 Mark Kettenis <kettenis@gnu.org>
12488
f941662f
MK
12489 * infcmd.c (print_return_value): Wrap long lines.
12490 (finish_command_continuation, finish_command): Remove unused
12491 variable `funcaddr'. Fix some coding-standards problems.
12492
c558d81a 12493 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12494 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12495 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12496 TDEP->fpregset to zero.
12497
bf1e5861 12498 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12499 floating-point registers for traditional NetBSD core files.
12500 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12501 TDEP->sizeof_fpregset here.
12502
4c72d57a
MK
125032004-01-25 Mark Kettenis <kettenis@gnu.org>
12504
566626fa
MK
12505 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12506 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12507 function with code split out from
12508 sparc32nbsd_sigcontext_frame_cache.
12509 (sparc32nbsd_sigcontext_frame_cache): Use
12510 sparc32nbsd_sigcontext_saved_regs.
12511 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12512 OpenBSD.
12513 * sparcobsd-tdep.c: New file.
12514 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12515 (sparcobsd-tdep.o): New dependency.
12516 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12517 * config/sparc/obsd.mt: New file.
12518
4c72d57a
MK
12519 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12520 TDEP->fpregset to be initialized to enable core file register
12521 sets.
12522
7e5e9f88
MK
125232004-01-24 Mark Kettenis <kettenis@gnu.org>
12524
f0f207fd 12525 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12526 Add opaque declarations.
12527 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12528 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12529 function with code split out from
12530 sparc64nbsd_sigcontext_frame_cache.
12531 (sparc64nbsd_sigcontext_frame_cache): Use
12532 sparc64nbsd_sigcontext_saved_regs.
12533 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12534 OpenBSD.
12535 * sparc64obsd-tdep.c: New file.
12536 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12537 (sparc64obsd-tdep.o): New dependency.
12538 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12539 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12540 * config/sparc/obsd64.mt: New file.
12541
690668cc
MK
12542 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12543 read the instruction at PC.
12544
7e5e9f88
MK
12545 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12546 value of GDB_OSABI_DEFAULT.
12547 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12548 instead of GDB_OSABI_NETBSD_AOUT.
12549
68b6dce9
NR
125502004-01-24 Nick Roberts <nick@nick.uklinux.net>
12551
12552 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12553 copyright.
12554
080ce8c0
AC
125552004-01-23 Andrew Cagney <cagney@redhat.com>
12556
12557 * printcmd.c (display_command): Replace tui_set_display call with
12558 tui_set_layout_for_display_command.
12559 * tui/tui.h (enum tui_win_type): Define.
12560 (tui_set_layout): Delete declaration.
12561 (tui_set_layout_for_display_command): Rename set_tui_layout.
12562 * tui/tui-data.h (enum tui_layout_type): Define.
12563 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12564 "tui.h".
12565 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12566 (tui_default_win_height): Rename tuiDefaultWinHeight.
12567 (tui_default_win_viewport_height): Rename
12568 tuiDefaultWinViewportHeight.
12569 (tui_set_layout): RenametuiSetLayout.
12570 * tui/tui-layout.c: Update references.
12571 * tui/tui.c: Update references.
12572 * tui/tui-disasm.c: Update references.
12573
b368761e
DC
125742004-01-23 David Carlton <carlton@kealia.com>
12575
12576 Partial workaround for PR c++/1511:
12577 * cp-namespace.c: Include frame.h.
12578 (cp_lookup_transparent_type): New
12579 (cp_lookup_transparent_type_loop): New.
12580 * cp-support.h: Declare cp_lookup_transparent_type.
12581 * symtab.c (basic_lookup_transparent_type): Renamed from
12582 lookup_transparent_type.
12583 (lookup_transparent_type): Replace old body by a call to
12584 current_language->la_lookup_transparent_type.
12585 * symtab.h: Update copyright. Declare
12586 basic_lookup_transparent_type.
12587 * language.h: Update copyright.
12588 (struct language_defn): Add la_lookup_transparent_type.
12589 * language.c: Update copyright.
12590 (unknown_language_defn): Add basic_lookup_transparent_type.
12591 (auto_language_defn): Add basic_lookup_transparent_type.
12592 (local_language_defn): Add basic_lookup_transparent_type.
12593 * ada-lang.c: Update copyright.
12594 (ada_language_defn): Add basic_lookup_transparent_type.
12595 * c-lang.c: Update copyright.
12596 (c_language_defn): Add basic_lookup_transparent_type.
12597 (cplus_language_defn): Add basic_lookup_transparent_type.
12598 (asm_language_defn): Add basic_lookup_transparent_type.
12599 (minimal_language_defn): Add basic_lookup_transparent_type.
12600 * f-lang.c: Update copyright.
12601 (f_language_defn): Add basic_lookup_transparent_type.
12602 * jv-lang.c: Update copyright.
12603 (java_language_defn): Add basic_lookup_transparent_type.
12604 * m2-lang.c: Update copyright.
12605 (m2_language_defn): Add basic_lookup_transparent_type.
12606 * objc-lang.c: Update copyright.
12607 (objc_language_defn): Add basic_lookup_transparent_type.
12608 * p-lang.c: Update copyright.
12609 (p_language_defn): Add basic_lookup_transparent_type.
12610 * scm-lang.c: Update copyright.
12611 (scm_language_defn): Add basic_lookup_transparent_type.
12612 * Makefile.in (cp-namespace.o): Depend on frame.h.
12613
fdde2d81
DC
126142004-01-23 David Carlton <carlton@kealia.com>
12615
12616 Patch for PR c++/1520:
12617 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12618 properly if we have a specification die.
12619 (determine_prefix_aux): Rename from determine_prefix.
12620 (determine_prefix): Like the old determine_prefix, but never
12621 returns NULL.
12622
5b828b6b
TR
126232004-01-23 Theodore A. Roth <troth@openavr.org>
12624
12625 * avr-tdep.c: Update copyright.
12626 (avr_iaddr_p): Delete unused function.
12627 (avr_saddr_p): Delete unused function.
12628
a1b8c067
DC
126292004-01-23 David Carlton <carlton@kealia.com>
12630
12631 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12632 Fix for PR symtab/1534.
12633
f2cab569
MK
126342004-01-23 Mark Kettenis <kettenis@gnu.org>
12635
12636 * NEWS (New native configurations): Mention OpenBSD/sparc and
12637 OpenBSD/sparc64.
12638 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12639 * configure.host: Likewise.
12640 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12641 handler for OpenBSD.
12642 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12643
642d8300
MK
126442004-01-22 Mark Kettenis <kettenis@gnu.org>
12645
89aac506
MK
12646 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12647 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12648
36662fde
MK
12649 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12650 * cli/cli-cmds.c (shell_escape): Likewise.
12651
642d8300
MK
12652 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12653 OpenBSD .note.openbsd.ident sections.
12654
fae299cd
DC
126552004-01-22 David Carlton <carlton@kealia.com>
12656
12657 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12658 get_scope_pc_bounds.
12659 (read_file_scope): Ditto.
12660 (get_scope_pc_bounds): New function, produced by extracting code
12661 from the above two functions, consolidating it, and adding support
12662 for DW_TAG_namespace.
12663
a49d618c
MK
126642004-01-22 Mark Kettenis <kettenis@gnu.org>
12665
12666 * osabi.c (MAX_NOTESZ): New define.
12667 (check_note): New function.
12668 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12669 check_note.
12670
fe61caab
RM
126712004-01-21 Roland McGrath <roland@redhat.com>
12672
12673 * MAINTAINERS (write after approval): Add myself.
12674
ec145965
EZ
126752004-01-21 Eli Zaretskii <eliz@gnu.org>
12676
12677 * utils.c (init_page_info): Move declarations of `rows' and
12678 `cols' before the __GO32__-specific code. Move the closing brace
12679 outside the #ifdef __GO32__..#endif block.
12680 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12681
877522db
PB
126822004-01-21 Paul Brook <paul@codesourcery.com>
12683
12684 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12685 BPSTAT_WHAT_CHECK_SHLIBS.
12686
dbf5be1c
PB
126872004-01-21 Paul Brook <paul@codesourcery.com>
12688
12689 * MAINTAINERS: Add myself to write-after-approval.
12690
81f08b92
AC
126912004-01-20 Andrew Cagney <cagney@redhat.com>
12692
5a1efed7
AC
12693 * ax-gdb.c (print_axs_value): Delete unused function.
12694 * jv-lang.c (java_lookup_type): Delete unused function.
12695 * cli/cli-dump.c (dump_filetype): Delete unused function.
12696 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12697 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12698 (mips_getstring): Delete unused function.
12699 (pmon_insert_breakpoint): Delete #if0ed function.
12700 (PMON_MAX_BP): Delete #if0ed MACRO.
12701 (mips_pmon_bp_info): Delete #if0ed variable.
12702 (pmon_remove_breakpoint): Delete #if0ed function.
12703 * monitor.c (monitor_write_even_block): Delete unused function.
12704 (monitor_write_memory_block): Delete #if0ed code.
12705 * dink32-rom.c (dink32_load): Delete unused function.
12706 (_initialize_dink32_rom): Delete #if0ed code.
12707 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12708
b0a30fce
AC
12709 * tui/tui-command.c: Update references.
12710 * tui/tui-io.c: Update references.
12711 * tui/tui-command.h: Update copyright.
12712 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12713
81f08b92
AC
12714 * source.c (ambiguous_line_spec): Delete never-defined function.
12715 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12716 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12717 * cli/cli-cmds.c (validate_comname): Ditto.
12718
65f05602
AC
12719 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12720 "tui-data.h".
12721 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12722 (tui_show_disassem): Rename tuiShowDisassem.
12723 (tui_show_disassem_and_update_source): Rename
12724 tuiVerticalDisassemScroll.
12725 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12726 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12727 * tui/tui.h: Update copyright.
12728 (enum tui_status): Define.
12729 * tui/tui-data.h (enum tui_scroll_direction): Define.
12730 * tui/tui-disasm.c: Update copyright. Update references.
12731 * tui/tui-winsource.c: Update copyright. Update references.
12732 * tui/tui-win.c: Update references.
12733 * tui/tui-layout.c: Update references.
12734
6bb0384f
AC
127352004-01-20 Andrew Cagney <cagney@redhat.com>
12736
12737 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12738 sym2 to start of block.
12739
9175c9a3
MC
127402004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12741
12742 * MAINTAINERS: Delete mmalloc.
12743 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12744 * NEWS: Mention removal of --with-malloc.
12745 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12746 * config.in: Regenerate.
12747 * configure: Regenerate.
6bb0384f
AC
12748 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12749 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12750 * gdbinit.in: Remove mmalloc.
12751 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12752 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12753 * config/i386/go32.mh: Likewise.
12754 * config/i386/interix.mh: Likewise.
12755 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12756
4fcef00a
JJ
127572004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12758
12759 * linespec.c (decode_variable, symtab_from_filename): Call
12760 error_silent with error message instead of throwing an exception
12761 directly.
12762 * defs.h (error_silent, error_output_message): Add prototypes.
12763 (catch_exceptions_with_msg): Ditto.
12764 * utils.c (error_silent, error_output_message): New functions.
12765 * top.c (catch_exceptions_with_msg): New function.
12766
8e94b928
NR
127672004-01-20 Nick Roberts <nick@nick.uklinux.net>
12768
12769 * mi/mi-cmds.h (enum print_values): Add definition.
12770
12771 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12772 type and value for simple data types and just the name and type
12773 for complex ones, if required.
12774
12775 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12776 children, if required.
12777
a02d6af8
KB
127782004-01-19 Kevin Buettner <kevinb@redhat.com>
12779
12780 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12781 unused declarations.
12782
78a4a9b9
AC
127832004-01-19 Andrew Cagney <cagney@redhat.com>
12784
12785 * top.h (mapped_symbol_files): Delete declaration.
12786 * main.c (captured_main): Delete option "m" and "mapped".
12787 * objfiles.c (mapped_symbol_files): Delete variable.
12788 * symfile.c (symbol_file_command): Delete mmap code.
12789 (symbol_file_add_with_addrs_or_offsets): Ditto.
12790 (add_symbol_file_command, reread_separate_symbols): Ditto.
12791 * objfiles.h (OBJF_MAPPED): Delete.
12792 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12793 (free_objfile) [USE_MMALLOC]: Ditto.
12794 (open_existing_mapped_file): Delete function.
12795 (open_mapped_file): Delete function.
12796 (map_to_file): Delete function.
12797
2dbd5e30
KB
127982004-01-19 Kevin Buettner <kevinb@redhat.com>
12799
12800 * infrun.c (step_into_function): Account for possible breakpoint
12801 adjustment when computing ``stop_func_start''.
12802
437b434f
KB
128032004-01-19 Kevin Buettner <kevinb@redhat.com>
12804
12805 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12806 the region size against the size of a pointer, not the size of
12807 a register as given by DEPRECATED_REGISTER_SIZE.
12808
55fb0713
AC
128092004-01-19 Andrew Cagney <cagney@redhat.com>
12810
12811 * tui/tui-regs.h: Include "tui-data.h".
12812 (tuiFirstRegElementNoInLine): Delete declaration.
12813 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12814 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12815 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12816 (tui_calculate_regs_column_count): Rename
12817 tuiCalculateRegsColumnCount.
12818 (tui_check_register_values): Rename tuiCheckRegisterValues.
12819 (tui_show_registers): Rename tuiShowRegisters.
12820 (tui_display_registers_from_line): Rename
12821 tuiDisplayRegistersFromLine.
12822 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12823 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12824 (tui_first_reg_element_no_inline): Rename
12825 tuiFirstRegElementNoInLine.
12826 * tui/tui-data.h: Update copyright.
12827 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12828 * tui/tui-windata.c: Update copyright, update references.
12829 * tui/tui-regs.c: Update copyright, update references.
12830 * tui/tui-win.c: Update copyright, update references.
12831 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12832
cebe9500
AC
128332004-01-18 Andrew Cagney <cagney@redhat.com>
12834
bcdf1568
AC
12835 * tui/tui-io.c: Update copyright.
12836 (key_is_end_sequence, key_is_backspace): New functions.
12837 (key_is_command_char, key_is_start_sequence): New function.
12838 (tui_getc): Update references.
12839 * tui/tui-io.h: Update copyright.
12840 (m_tuiStartNewLine): Delete macro.
12841 (m_isBackspace, m_isDeleteChar): Delete macros.
12842 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12843 (m_isNextPage, m_isPrevPage): Delete macros.
12844 (m_isLeftArrow, m_isRightArrow): Delete macros.
12845 (m_isXdbStyleCommandChar): Delete macro.
12846 (key_is_start_sequence): Declare, replace m_isStartSequence.
12847 (key_is_end_sequence): Declare, replace m_isEndSequence.
12848 (key_is_backspace): Declare ,replace m_isBackspace.
12849 (key_is_command_char): Declare, replace m_isCommandChar.
12850 * tui/tui-command.c: Update copyright.
12851 (tuiDispatchCtrlChar): Update references.
12852
130d87e6
AC
12853 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12854 tuiSourceWin.h.
12855
d7b2e967
AC
12856 * tui/tui-command.c: Rename tui/tuiCommand.c.
12857 * tui/tui-command.h: Rename tui/tuiCommand.h.
12858 * tui/tui-data.c: Rename tui/tuiData.c.
12859 * tui/tui-data.h: Rename tui/tuiData.h.
12860 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12861 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12862 * tui/tui-io.c: Rename tui/tuiIO.c.
12863 * tui/tui-io.h: Rename tui/tuiIO.h.
12864 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12865 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12866 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12867 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12868 * tui/tui-source.c: Rename tui/tuiSource.c.
12869 * tui/tui-source.h: Rename tui/tuiSource.h.
12870 * tui/tui-stack.c: Rename tui/tuiStack.c.
12871 * tui/tui-stack.h: Rename tui/tuiStack.h.
12872 * tui/tui-win.c: Rename tui/tuiWin.c.
12873 * tui/tui-win.h: Rename tui/tuiWin.h.
12874 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12875 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12876 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12877 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12878 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12879 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12880 * tui/tui-file.c: Update includes.
12881 * tui/tui-hooks.c: Update includes.
12882 * tui/tui-interp.c: Update includes.
12883 * tui/tui.c: Update includes.
12884 * Makefile.in: Update all tui/ dependencies.
12885 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12886
b2100910
AC
12887 * Makefile.in: Update copyright. Update dependencies.
12888
cebe9500
AC
12889 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12890 problem.
12891
c6f0559b
AC
128922004-01-18 Andrew Cagney <cagney@redhat.com>
12893
43e9390b
AC
12894 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12895 instead of register_gdbarch_init.
12896
c6f0559b
AC
12897 * remote-sds.c (tohex): Delete unused function. Update copyright.
12898 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12899 * v850-tdep.c (v850_register_virtual_size): Ditto.
12900 * target.c (normal_target_post_startup_inferior): Ditto.
12901 * source.c (ambiguous_line_spec): Ditto.
12902 * remote.c (adapt_remote_get_threadinfo): Ditto.
12903 * mi/mi-out.c (out_field_fmt): Ditto.
12904 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12905 (output_control_change_notification): Ditto.
12906 * m68k-tdep.c (m68k_register_byte): Ditto.
12907 (m68k_remote_breakpoint_from_pc): Ditto.
12908 * ui-out.c (init_ui_out_state): Delete unused declaration.
12909 * stabsread.c (search_value): Ditto.
12910 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12911 * maint.c (print_section_table): Ditto.
12912 * infrun.c (set_follow_fork_mode_command): Ditto.
12913
a8504492
MK
129142004-01-18 Mark Kettenis <kettenis@gnu.org>
12915
12916 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12917 DW_CFA_def_cfa_exporession. Add support for
12918 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12919 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12920
0bd8997e
AC
129212004-01-18 Andrew Cagney <cagney@redhat.com>
12922
12923 * ocd.c: Update copyright.
12924 (bdm_read_register_command): Delete unused function.
12925 (_initialize_remote_ocd): Delete commented out reference.
12926 (get_quoted_char, reset_packet): Delete #if0ed function.
12927 (output_packet, put_quoted_char): Delete #if0ed function.
12928 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12929 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12930 (BDM_BREAKPOINT): Delete #if0ed macro.
12931 (remote_timeout): Delete #if0ed variable.
12932
31bb40e4
MK
129332004-01-18 Mark Kettenis <kettenis@gnu.org>
12934
12935 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12936 (core-sol2.o): Remove dependency.
12937 * core-sol2.c: Remove file.
12938
887432a5
AC
129392004-01-17 Andrew Cagney <cagney@redhat.com>
12940
12941 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12942 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12943 enums.
12944
29182b13
DJ
129452004-01-17 Daniel Jacobowitz <drow@mvista.com>
12946
12947 * remote.c: Update copyright years.
12948
2963ee1d
DJ
129492004-01-17 Daniel Jacobowitz <drow@mvista.com>
12950
12951 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12952
79d45cd4
AC
129532004-01-17 Andrew Cagney <cagney@redhat.com>
12954
ee300cd4
AC
12955 * mdebugread.c: Update copyright.
12956 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12957 (parse_type, parse_procedure): Ditto.
12958 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12959
fcacc9c2
AC
12960 * cris-tdep.c (cris_store_struct_return): Put back accidently
12961 deleted function.
12962
79d45cd4
AC
12963 * gdbarch.sh: Update copyright year.
12964 * gdbarch.h, gdbarch.c: Re-generate.
12965
b263358a
DJ
129662004-01-17 Daniel Jacobowitz <drow@mvista.com>
12967
12968 Suggested by George Anzinger.
12969 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12970 correct stack offset. Include unknown opcode numbers in the error
12971 message.
12972
931aecf5
AC
129732004-01-17 Andrew Cagney <cagney@redhat.com>
12974
12975 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12976 extract_struct_value_address, i386 does not set it.
12977 * sparc64-tdep.c (sparc64_init_abi): Do not set
12978 extract_struct_value_address, never called.
12979 (sparc64_extract_struct_value_address): Delete function.
12980 * m68hc11-tdep.c: Update copyright.
12981 (m68hc11_gdbarch_init): Delete redundant assignment of
12982 extract_struct_value_address.
12983 * i386-tdep.c: Update copyright.
12984 (i386_gdbarch_init): Do not set extract_struct_value_address,
12985 never called.
12986 (i386_extract_struct_value_address): Delete function.
12987 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12988 extract_struct_value_address, never called.
12989 (sparc32_extract_struct_value_address): #if 0 function. Add
12990 comments explaining its future.
12991
756fe439
DJ
129922004-01-17 Daniel Jacobowitz <drow@mvista.com>
12993
12994 * arm-tdep.c (arm_write_pc): New function.
12995 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12996
e74f0f02
DJ
129972004-01-17 Daniel Jacobowitz <drow@mvista.com>
12998
12999 * breakpoint.c (must_shift_inst_regs): Delete.
13000 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13001 and SHIFT_INST_REGS.
13002 * infcmd.c (step_1, step_1_continuation): Delete references to
13003 SHIFT_INST_REGS.
13004 * infrun.c (keep_going): Likewise.
13005 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13006 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13007
b6cb9035
AC
130082004-01-17 Andrew Cagney <cagney@redhat.com>
13009
444a1e2e
AC
13010 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13011 * gdbarch.h, gdbarch.c: Re-generate.
13012 * infcmd.c (print_return_value): Delete reference to
13013 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13014
def7e6ed
AC
13015 * cris-tdep.c (cris_gdbarch_init): Do not set
13016 deprecated_extract_struct_value_address.
13017
07be497a
AC
13018 * xstormy16-tdep.c: Update copyright.
13019 (xstormy16_extract_struct_value_address): Update to current
13020 extract struct value address interface.
13021 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13022 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13023 current extract struct value address interface.
13024 (sh64_gdbarch_init): Set extract_struct_value_address.
13025
6b4d5c91
AC
13026 * cris-tdep.c: Update copyright.
13027 (cris_extract_struct_value_address): Delete function.
13028 (struct_return_address): Delete variable.
13029 (cris_store_struct_return): Do not set struct_return_address.
13030
464e0365
AC
13031 * mcore-tdep.c: Update copyright.
13032 (mcore_extract_struct_value_address): Delete function. Update
13033 comments.
13034 (mcore_gdbarch_init): Update.
13035 * mn10300-tdep.c: Update copyright.
13036 (mn10300_extract_struct_value_address): Delete function.
13037 (mn10300_gdbarch_init): Update.
13038 * v850-tdep.c: Update copyright.
13039 (v850_extract_struct_value_address): Delete.
13040 (v850_gdbarch_init): Update.
13041 * ns32k-tdep.c: Update copyright.
13042 (ns32k_extract_struct_value_address): Delete.
13043 (ns32k_gdbarch_init): Update.
13044 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13045 (hppa_gdbarch_init): Update.
13046 * vax-tdep.c: Update copyright.
13047 (vax_extract_struct_value_address): Delete.
13048 (vax_gdbarch_init): Update.
13049
afb18d0f
AC
13050 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13051 * gdbarch.h, gdbarch.c: Re-generate.
13052 * procfs.c (procfs_fetch_registers): Delete reference to
13053 DEPRECATED_NPC_REGNUM.
13054 (procfs_store_registers): Ditto.
13055 * regcache.c (generic_target_write_pc): Simplify.
13056 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13057
a698f53e
AC
13058 * core-sol2.c (fetch_core_registers): Replace
13059 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13060
adc11376
AC
13061 * hppa-tdep.c: Update copyright year.
13062 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13063 NPC_REGNUM.
13064 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13065
b6cb9035
AC
13066 * mips-tdep.c (mips_write_pc): New function.
13067 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13068 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13069 (mips_find_saved_regs, mips_software_single_step: Ditto.
13070 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13071 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13072
6d82d43b
AC
130732004-01-17 Andrew Cagney <cagney@redhat.com>
13074
13075 * mips-tdep.c: Re-indent. Group functions by ABI.
13076
71bd6bd4
AC
130772004-01-17 Andrew Cagney <cagney@redhat.com>
13078
13079 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13080 * gdbarch.c: Re-generate.
13081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13082 DECR_PC_AFTER_BREAK to zero.
13083 * vax-tdep.c (vax_gdbarch_init): Ditto.
13084 * v850-tdep.c (v850_gdbarch_init): Ditto.
13085 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13086 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13087 * sh-tdep.c (sh_gdbarch_init): Ditto.
13088 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13089 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13090 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13091 * mips-tdep.c (mips_gdbarch_init): Ditto.
13092 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13094 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13095 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13096 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13097 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13098 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13099 * frv-tdep.c (frv_gdbarch_init): Ditto.
13100 * cris-tdep.c (cris_gdbarch_init): Ditto.
13101 * avr-tdep.c (avr_gdbarch_init): Ditto.
13102 * arm-tdep.c (arm_gdbarch_init): Ditto.
13103 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13104
a02abb62
JB
131052004-01-17 J. Brobecker <brobecker@gnat.com>
13106
13107 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13108 Delete, no longer used.
13109 (read_subrange_type): New function, mostly extracted from
13110 read_array_type().
13111 (read_array_type): Replace extracted code by call to
13112 read_subrange_type().
13113 (dwarf2_get_attr_constant_value): New function.
13114 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13115 (add_partial_symbol): Likewise.
13116 (process_die): Likewise.
13117 (new_symbol): Likewise.
13118 (read_type_die): Likewise.
13119
cf5b2f1b
AC
131202004-01-16 Andrew Cagney <cagney@redhat.com>
13121
13122 * symfile.c: Update copyright year.
13123 (compare_symbols): Delete unused function.
13124 * stabsread.c: Update copyright year.
13125 (lrs_general_complaint): Delete unused function.
13126 (ref_search_value): Ditto.
13127 (get_substring): Delete declaration.
13128 * sh64-tdep.c: Update copyright year.
13129 (sh64_get_gdb_regnum): Delete unused function.
13130 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13131 Delete unused function.
13132
d33b9831
MK
131332004-01-17 Mark Kettenis <kettenis@gnu.org>
13134
13135 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13136 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13137
7aea86e6
AC
131382004-01-16 Andrew Cagney <cagney@redhat.com>
13139
13140 Changes from Peter Schauer.
13141 * rs6000-tdep.c: Update copyright year.
13142 (rs6000_push_dummy_call): Update the stack pointer before
13143 accessing the corresponding stack region.
13144 * rs6000-nat.c: Update copyright year.
13145 (set_host_arch): Set "info.abfd" to "exec_bfd".
13146
26b0da32
MK
131472004-01-15 Mark Kettenis <kettenis@gnu.org>
13148
13149 * blockframe.c: Update copyright year.
13150 (inside_entry_func): Don't treat a zero PC specially.
13151
86fbe6cc
EZ
131522004-01-14 Elena Zannoni <ezannoni@redhat.com>
13153
13154 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13155 variable.
13156 (gcore_create_callback): Ditto. Skip any memory segment that has
13157 no permissions set.
13158
63d06c5c
DC
131592004-01-14 David Carlton <carlton@kealia.com>
13160
13161 Change symbols for C++ nested types to contain the fully qualified
13162 name, if possible. (At least in the DWARF-2 case.) Partial fix
13163 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13164 c++/895.
13165 * c-exp.y (qualified_type): Handle types nested within classes.
13166 * cp-namespace.c: Update comments.
13167 (cp_set_block_scope): Delete #if 0.
13168 (cp_lookup_nested_type): Handle types nested within classes.
13169 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13170 when appropriate.
13171 (add_partial_symbol): Add the name of the enclosing namespace to
13172 types.
13173 (pdi_needs_namespace): New.
13174 (add_partial_namespace): Tweak comment.
13175 (add_partial_structure): New.
13176 (psymtab_to_symtab_1): Initialize processing_current_prefix
13177 here...
13178 (process_die): instead of here.
13179 (read_structure_scope): Try to figure out the name of the class or
13180 namespace that the structure might be defined within.
13181 (read_enumeration): Generate fully-qualified names, if possible.
13182 (read_namespace): Don't set name to NULL.
13183 (die_specification): New.
13184 (new_symbol): Generate fully-qualified names for types.
13185 (read_type_die): Determine appropriate prefix.
13186 (determine_prefix): New.
13187 (typename_concat): New.
13188 (class_name): New.
13189 * valops.c (value_aggregate_elt): Pass NOSIDE to
13190 value_struct_elt_for_reference.
13191 (value_struct_elt_for_reference): Make static, add NOSIDE
13192 parameter, call value_maybe_namespace_elt as a last resort.
13193 (value_namespace_elt): Break out code into
13194 value_maybe_namespace_elt.
13195 (value_maybe_namespace_elt): New.
13196
87783b8b
AC
131972004-01-12 Andrew Cagney <cagney@redhat.com>
13198
13199 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13200 cooked floating-point registers.
13201 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13202 and value_to_register.
13203
6503b91e
AC
132042004-01-13 Andrew Cagney <cagney@redhat.com>
13205
13206 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13207 * gdbarch.c: Re-generate.
13208 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13209 FUNCTION_START_OFFSET.
13210 * v850-tdep.c (v850_gdbarch_init): Ditto.
13211 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13212 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13213 * sh-tdep.c (sh_gdbarch_init): Ditto.
13214 * s390-tdep.c (s390_gdbarch_init): Ditto.
13215 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13216 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13217 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13218 * mips-tdep.c (mips_gdbarch_init): Ditto.
13219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13220 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13222 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13223 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13224 * i386-tdep.c (i386_gdbarch_init): Ditto.
13225 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13226 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13227 * frv-tdep.c (frv_gdbarch_init): Ditto.
13228 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13229 * cris-tdep.c (cris_gdbarch_init): Ditto.
13230 * avr-tdep.c (avr_gdbarch_init): Ditto.
13231 * arm-tdep.c (arm_gdbarch_init): Ditto.
13232 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13233
ea1dd7bc
DJ
132342004-01-13 Daniel Jacobowitz <drow@mvista.com>
13235
13236 * infrun.c (follow_fork_mode_ask): Remove.
13237 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13238 (follow_fork): Simplify and remove internal error for
13239 follow_fork_mode_ask.
13240 (_initialize_infrun): Update "set follow-fork-mode" help text.
13241
0f0cffd2
AC
132422004-01-13 Andrew Cagney <cagney@redhat.com>
13243
13244 * configure.in: Update copyright year.
13245 (build_warnings): Add -Wunused-label.
13246 * configure: Re-generate.
13247
de38af99
AC
132482004-01-12 Andrew Cagney <cagney@redhat.com>
13249
954a7fba
AC
13250 * exec.h (exec_ops): Make "extern".
13251
de38af99
AC
13252 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13253 the function is void.
13254 (mips_pseudo_register_write): Ditto.
13255
1a111ce3
AC
132562004-01-12 Andrew Cagney <cagney@redhat.com>
13257
13258 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13259 call. Never defined.
13260 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13261 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13262 (struct sparc_gregset, struct regcache): Ditto.
13263 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13264
48efe704
AC
132652004-01-12 Andrew Cagney <cagney@redhat.com>
13266
13267 * mi/ChangeLog: Delete file. Renamed to ...
13268 * mi/ChangeLog-1999-2003: New file.
13269 * tui/ChangeLog: Delete file. Renamed to ...
13270 * tui/ChangeLog-1998-2003: New file.
fe61caab 13271
a54124c5
MK
132722004-01-11 Mark Kettenis <kettenis@gnu.org>
13273
2ca62865
MK
13274 * sparc64nbsd-tdep.c: Include "regset.h".
13275 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13276 Remove variables.
13277 (fetch_core_registers): Remove function.
13278 (sparc64nbsd_core_fns): Remove variable.
13279 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13280 functions.
13281 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13282 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13283 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13284
ca9d58e9
MK
13285 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13286 sparc_extract_struct_value_address.
13287 (sparc32_gdbarch_init): Set extract_struct_value_address.
13288 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13289 function.
13290 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13291 return_value_on_stack.
13292
3cc87ec0
MK
13293 * NEWS: Mention that %cs and %ss have been added to the AMD64
13294 configurations
13295
5bf00f29
MK
13296 * frame.c: Update copyright year.
13297 (get_prev_frame): Improve comment.
13298
4f7ec84e
MK
13299 * sparc64fbsd-tdep.c: Include "regset.h".
13300 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13301 Remove variables.
13302 (fetch_core_registers): Remove function.
13303 (sparc64fbsd_core_fns): Remove variable.
13304 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13305 functions.
13306 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13307 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13308 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13309
4e7b0cd3
MK
13310 * sparcnbsd-tdep.c: Include "regset.h".
13311 (fetch_core_registers): Remove function.
13312 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13313 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13314 functions.
13315 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13316 TDEP->fpregset.
46b58ce9 13317 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13318
a54124c5
MK
13319 * sparc-tdep.h (struct regset): Provide opaque declaration.
13320 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13321 fpregset and sizeof_fpregset members.
13322 * sparc-tdep.c (struct regset): Provide opaque declaration.
13323 (sparc_regset_from_core_section): New function.
13324 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13325 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13326 Set regset_from_core_section when appropriate.
13327
29ff87c5
MK
133282004-01-10 Mark Kettenis <kettenis@gnu.org>
13329
79b1ab3d
MK
13330 * x86-64-tdep.c (amd64_non_pod_p): New function.
13331 (amd64_classify_aggregate): Return class memory for non-POD
13332 C++ structure types.
13333
6470d250
MK
13334 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13335 argument. Use it to reserve a register if necessary.
13336 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13337 amd64_push_arguments.
13338
562c50c2
MK
13339 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13340
af233647
MK
13341 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13342 register numbers in comments.
13343 * x86-64-tdep.h: Update copyright year.
13344 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13345 Adjust for addition of %cs and %ss.
13346 * amd64fbsd-nat.c: Update copyright year.
13347 (reg_offset): Add register offsets for %cs and %ss.
13348 * amd64fbsd-tdep.c: Update copyright year.
13349 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13350 (amd64fbsd_sc_reg_offset): Likewise.
13351 * x86-64-linux-nat.c: Update copyright year.
13352 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13353 and %ss.
13354 * amd64nbsd-nat.c: Update copyright year.
13355 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13356 * amd64nbsd-tdep.c: Update copyright year.
13357 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13358 * x86-64-linux-tdep.c: Update copyright year.
13359 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13360 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13361 * regformats/reg-x86-64.dat: Add %cs and %ss.
13362
29ff87c5
MK
13363 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13364 variables to prevent long lines. Update comments to reflect
13365 reality.
13366
38d518c9
EZ
133672004-01-09 David Carlton <carlton@kealia.com>
13368
13369 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13370 * dwarf2read.c (read_namespace): Pull out name-generating code
13371 into namespace_name. Rename previous_namespace to previous_prefix
13372 and processing_current_namespace to processing_current_prefix..
13373 (namespace_name): New function.
13374 (add_partial_symbol): Substitute uses of pdi->name with
13375 actual_name.
13376 * cp-support.h: Rename processing_current_namespace to
13377 processing_current_prefix.
13378 Update copyright year.
13379 * cp-namespace.c: Rename processing_current_namespace to
13380 processing_current_prefix.
13381 Update copyright year.
fe61caab 13382
1e4728e7
AC
133832004-01-09 Andrew Cagney <cagney@redhat.com>
13384
13385 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13386
c77c642a
MK
133872004-01-09 Mark Kettenis <kettenis@gnu.org>
13388
13389 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13390 complaining.
13391 (process_one_symbol): Deal with N_PATCH stabs.
13392
b44e9041
EZ
133932004-01-09 Elena Zannoni <ezannoni@redhat.com>
13394
13395 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13396 ifdeffed code.
13397 Update copyright year.
38d518c9 13398
eccfb640
MC
133992004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13400
13401 * config/pa/tm-hppa.h: Update extern declarations for
13402 hppa32_hpux_frame_saved_pc_in_sigtramp,
13403 hppa32_hpux_frame_base_before_sigtramp, and
13404 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13405
848c5feb
MC
134062004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13407
13408 * config/pa/tm-hppah.h: Update copyright years.
13409
3cc5d663
AC
134102004-01-08 Andrew Cagney <cagney@redhat.com>
13411
13412 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13413 (mips_o32_reg_struct_has_addr): Delete function.
13414 (mips_gdbarch_init): Update.
13415 (mips_extract_struct_value_address): Delete function.
13416
bfec0b41
JJ
134172004-01-08 David Mosberger <davidm@hpl.hp.com>
13418
13419 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13420 reality.
13421
16e109ca
AC
134222004-01-07 Andrew Cagney <cagney@redhat.com>
13423
6214a8a1
AC
13424 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13425 architecture's elf flags (when available).
13426
8d5838b5
AC
13427 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13428 FPU to the start, check the MIPS FPU when looking for an old
13429 architecture.
13430 (set_mipsfpu_single_command): Update the architecture.
13431 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13432
480d3dd2
AC
13433 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13434 (mips_mask_address_p): Add "tdep" parameter.
13435 (show_mask_address, mips_addr_bits_remove): Update.
13436 (mips_dump_tdep): Update.
13437 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13438 (MIPS_STACK_ARGSIZE): Delete macro.
13439 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13440 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13441 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13442 (mips_dump_tdep): Update.
13443 (MIPS_SAVED_REGSIZE): Delete macro.
13444 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13445 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13446 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13447 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13448 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13449 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13450 (mips_pop_frame, return_value_location): Update.
13451 (mips_n32n64_return_value, mips_dump_tdep): Update.
13452
ec03c1ac
AC
13453 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13454 MIPS ABI.
13455
16e109ca
AC
13456 * mips-tdep.c: Update copyright.
13457 (mips_gdbarch_init): Merge two code blocks handling the register
13458 name and number layout.
13459
15255275
MS
134602004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13461
13462 * tracepoint.c (validate_actionline): Fix segv at EOF
13463
9f9057da
MC
134642004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13465
13466 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13467 properly for static fields.
13468
0127c0d3 134692004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13470 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13471
13472 * disasm.c: Update copyright to include 2004.
13473 (do_mixed_source_and_assembly): For uiout asm list
13474 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13475 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13476 the tuple/list. Move check for whether to close off the
fe61caab 13477 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13478 on each loop iteration.
13479
5269965e
AC
134802004-01-05 Andrew Cagney <cagney@redhat.com>
13481
54f1137d
AC
13482 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13483 should be a switch case and not a label.
13484 * mips-tdep.c (mips32_next_pc): Delete unused labels
13485 "greater_equal_branch" and "less_zero_branch".
13486 * jv-valprint.c (java_print_value_fields): Delete unused label
13487 "flush_it".
13488
5269965e
AC
13489 * target.c (unpush_target): Only close a target that is in the
13490 target stack.
13491
dbc22fa1
MK
134922004-01-05 Mark Kettenis <kettenis@gnu.org>
13493
9515395e
MK
13494 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13495 address from [sp + 64] instead of %o2.
13496
dbc22fa1
MK
13497 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13498 fixes PR backtrace/1476.
13499
5439edaa
AC
135002004-01-05 Andrew Cagney <cagney@redhat.com>
13501
13502 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13503 move to start of file.
13504 * i386-tdep.h (struct regcache): Add opaque declaration.
13505 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13506 declaration.
13507 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13508 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13509 * win32-nat.c (fake_create_process): Use ISO C style definition.
13510 * stabsread.c (define_symbol): Delete #ifndef
13511 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13512 stabs_argument_has_addr call, macro never defined.
13513
19061abe
MC
135142004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13515
13516 * op50-rom.c: Delete.
13517 * w89k-rom.c: Delete.
13518 * Makefile.in: Remove references.
13519
e53bef9f
MK
135202004-01-04 Mark Kettenis <kettenis@gnu.org>
13521
13522 * x86-64-tdep.c: Update copyright year.
13523 (struct amd64_register_info): Rename from x86_64_register_info.
13524 (amd64_register_info): Rename from x86_64_register_info.
13525 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13526 (amd64_register_name): Rename from x86_64_register_name.
13527 (amd64_register_type): Rename from x86_64_register_type.
13528 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13529 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13530 (amd64_dwarf_reg_to_regnum): Rename from
13531 x86_64_dwarf_reg_to_regnum.
13532 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13533 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13534 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13535 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13536 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13537 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13538 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13539 (amd64_frame_cache): Rename from x86_64_frame_cache.
13540 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13541 (amd64_frame_prev_register): Rename from
13542 x86_64_frame_prev_register.
13543 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13544 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13545 (amd64_sigtramp_frame_cache): Rename from
13546 x86_64_sigtramp_frame_cache.
13547 (amd64_sigtramp_frame_prev_register): Rename from
13548 x86_64_sigtramp_frame_prev_register.
13549 (amd64_sigtramp_frame_unwind): Rename from
13550 x86_64_sigtramp_frame_unwind.
13551 (amd64_sigtramp_frame_sniffer): Rename from
13552 x86_64_sigtramp_frame_sniffer.
13553 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13554 (amd64_frame_base): Rename from x86_64_frame_base.
13555 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13556 (amd64_frame_align): Rename from x86_64_frame_align.
13557 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13558 (amd64_regset_from_core_section): Rename from
13559 x86_64_regset_from_core_section.
13560 (x86_64_init_abi): Update comments.
13561
fca6aa58
NR
135622004-01-04 Nick Roberts <nick@nick.uklinux.net>
13563
13564 * MAINTAINERS (write after approval): Add myself.
13565
8ada74e3
MK
135662004-01-04 Mark Kettenis <kettenis@gnu.org>
13567
13568 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13569 `float' arguments.
13570
5154b0cd
MK
135712004-01-04 Mark Kettenis <kettenis@gnu.org>
13572
13573 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13574 such that it mentions a specific version of GCC that exhibits this
13575 bug.
13576
fb316966
MK
135772004-01-03 Mark Kettenis <kettenis@gnu.org>
13578
200cc553
MK
13579 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13580 structure that has a single `float' member, store it in %f1 in
13581 addition to %f0.
13582
e226a4a0
MK
13583 * sparc-sol2-nat.c: Add missing '\'.
13584
b9d4c5ed
MK
13585 * sparc-tdep.c (sparc32_return_value): New function.
13586 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13587 Remove functions.
13588 (sparc32_gdbarch_init): Set return_value, don't set
13589 extract_return_value, store_return_value, use_struct_convention
13590 and return_value_on_stack.
13591
fb316966
MK
13592 * sparc-sol2-nat.c: Add missing ')'.
13593
1af510a8
JB
135942004-01-03 J. Brobecker <brobecker@gnat.com>
13595
13596 * infrun.c (handle_step_into_function): New function.
13597 (handle_inferior_event): Extract out some code into the new
13598 function above.
13599
5cf4d23a
JB
136002004-01-03 J. Brobecker <brobecker@gnat.com>
13601
13602 * infrun.c (handle_inferior_event): Move the declaration of
13603 real_stop_pc inside the if blocks where it is used.
13604
60af1db2
MK
136052004-01-03 Mark Kettenis <kettenis@gnu.org>
13606
13607 * sparc64-tdep.c (sparc64_16_byte_align_p)
13608 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13609 Use check_typedef to get subtypes of structures and unions.
13610 (sparc64_store_return_value): Fix calculation of the appropriate
13611 offset into VALBUF when storing a structure or union.
13612 (sparc64_return_value): New function.
13613 (sparc64_use_struct_convention): Remove function.
13614 (sparc64_init_abi): Set return_value, don't set
13615 extract_return_value, store_return_value and
13616 use_struct_convention.
13617
1a901d3f
EZ
136182004-01-03 Eli Zaretskii <eliz@elta.co.il>
13619
13620 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13621 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13622 gdb/config/alpha/xm-alphaosf.h,
13623 gdb/config/powerpc/tm-ppcle-eabi.h,
13624 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13625 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13626 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13627 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13628 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13629 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13630 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13631 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13632 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13633 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13634 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13635 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13636 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13637 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13638 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13639 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13640 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13641 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13642 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13643 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13644 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13645 Remove lines for .cvsignore files.
13646
ef52e463
JB
136472004-01-03 J. Brobecker <brobecker@gnat.com>
13648
13649 * infrun.c: Back out the previous change.
13650
cb1bf9dc
MK
136512004-01-03 Mark Kettenis <kettenis@gnu.org>
13652
f0424ef6
MK
13653 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13654 sparc-*-sunos4* to the list of REMOVED configurations.
13655
cb1bf9dc
MK
13656 * configure.tgt: Add back sparc-*-vxworks*.
13657 * remote-vxsparc.c: Remove all includes except for "defs.h",
13658 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13659 Include "sparc-tdep.h".
13660 (SPARC_R_G1): New define.
13661 (vxsparc_gregset): New variable.
13662 (ext_format_sparc): Remove extern declaration.
13663 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13664 sparc32_supply_fpregset.
13665 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13666 sparc_collect_rwindow and sparc32_collect_fpregset.
13667 * config/sparc/tm-vxworks.h: New file, based on recently removed
13668 tm-vxsparc.h.
13669 * config/sparc/vxworks.mt: New file, based on recently removed
13670 vxworks.mt.
fe61caab 13671
5e938f9f
JB
136722004-01-03 J. Brobecker <brobecker@gnat.com>
13673
13674 * infrun.c (handle_step_into_function): New function.
13675 (handle_inferior_event): Extract out some code into the new
13676 function above.
13677
386c036b
MK
136782004-01-02 Mark Kettenis <kettenis@gnu.org>
13679
13680 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13681 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13682 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13683 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13684 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13685 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13686 (sparc_nat_h): New variable.
13687 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13688 (tm-sun4os4.h): Remove dependency.
13689 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13690 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13691 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13692 sparc-tdep.o): Update dependencies.
13693 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13694 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13695 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13696 dependencies.
13697 * configure.host: Remove existing sparc-*-lynxos*,
13698 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13699 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13700 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13701 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13702 triplets.
13703 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13704 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13705 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13706 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13707 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13708 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13709 sparc64-*-solaris2* and sparc64-*-* triplets.
13710 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13711 "symtab.h" and "objfiles.h".
13712 (BIAS): Remove define.
13713 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13714 (X_DISP19): Remove macros.
13715 (sparc_fetch_instruction): Remove function.
13716 (struct gdbarch_tdep): Remove definition.
13717 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13718 (sparc_breakpoint_from_pc): Remove function.
13719 (struct sparc64_frame_cache): Remove definition.
13720 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13721 sparc64_unwind_pc): Remove functions.
13722 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13723 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13724 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13725 (sparc64_frame_cache): Change return type to `struct
13726 sparc_frame_cache *'. Simply call sparc_frame_cache.
13727 (sparc64_frame_this_id, sparc64_frame_prev_register,
13728 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13729 instead of `struct sparc64_frame_cache.
13730 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13731 sparc_analyze_control_transfer, sparc_software_single_step,
13732 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13733 _initialize_sparc64_tdep): Remove functions.
13734 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13735 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13736 macros.
13737 (sparc64_supply_gregset, sparc64_collect_gregset,
13738 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13739 (sparc64_init_abi): New function.
13740 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13741 inclusion guard. Include "sparc-tdep.h".
13742 (BIAS): Define.
13743 (r_tstate_offset, r_fprs_offset): New defines.
13744 (enum sparc_regnum): Remove defenition.
13745 (enum sparc64_regnum): Reformat.
13746 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13747 (sparc64_init_abi, sparc64_supply_gregset,
13748 sparc64_collect_gregset, sparc64_supply_fpregset,
13749 sparc64_collect_fpregset): New prototypes.
13750 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13751 Add extern declarations.
13752 (sparc64_sol2_init_abi): New prototype.
13753 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13754 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13755 prototypes.
13756 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13757 "sparnbsd-nat.h".
13758 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13759 functions.
13760 (_initialize_sparc64fbsd_nat): Remove initialization of
13761 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13762 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13763 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13764 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13765 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13766 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13767 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13768 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13769 (sparc64fbsd_r_y_offset): Remove variables.
13770 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13771 Make static and const.
13772 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13773 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13774 functions.
13775 (sparc64fbsd_gregset): New variable.
13776 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13777 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13778 and sparc64_supply_fpregset.
13779 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13780 (sparc64fbsd_sigtramp_frame_this_id)
13781 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13782 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13783 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13784 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13785 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13786 * sparcnbsd-tdep.c: Update copyright year. Include
13787 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13788 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13789 "value.h" and "sparcnbsd-tdep.h".
13790 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13791 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13792 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13793 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13794 defines.
13795 (sparcnbsd_gregset): New variable.
13796 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13797 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13798 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13799 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13800 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13801 variables.
13802 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13803 (sparc32nbsd_sigcontext_frame_this_id)
13804 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13805 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13806 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13807 (sparcnbsd_get_longjmp_target_32,
13808 sparcnbsd_get_longjmp_target_64): Remove functions.
13809 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13810 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13811 sparcnbsd_init_elf): Remove.
13812 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13813 (sparcnbsd_elf_init_abi): New functions.
13814 (_initialize_sparcnbsd_tdep): New prototype.
13815 (_initialize_sparnbsd_tdep): Update.
13816 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13817 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13818 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13819 * config/sparc/linux.mh: Update comment.
13820 (XM_FILE, HOST_IPC): Remove variables.
13821 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13822 sparc-linux-nat.o.
13823 * config/sparc/linux.mt: Update comment.
13824 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13825 * config/sparc/nbsd.mt: Reformat.
13826 * config/sparc/nbsd64.mh: Update comment.
13827 (NATDEPFILES): Add sparc-nat.o.
13828 * config/sparc/nbsd64.mt: Update comment.
13829 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13830 (TM_FILE): Set to tm-nbsd.h.
13831 * config/sparc/nbsdelf.mh: Update comment.
13832 (NATDEPFILES): Add sparc-nat.o.
13833 (XM_FILE): Delete.
13834 * config/sparc/nbsdaout.mh: Update comment.
13835 (NATDEPFILES): Add sparc-nat.o
13836 (XM_FILE): Delete.
13837 * config/sparc/nm-linux.h: Update copyright year. Don't include
13838 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13839 inclusion.
13840 (KERNEL_U_SIZE): Remove define.
13841 (kernel_u_size): Remove prototype.
13842 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13843 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13844 "regcache.h".
13845 (CHILD_PREPARE_TO_STORE): Remove define.
13846 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13847 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13848 sparcnbsd-nat.c: Rewrite files.
13849 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13850 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13851 sparcnbsd-tdep.h: Remove files.
13852 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13853 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13854 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13855 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13856 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13857 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13858 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13859 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13860 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13861 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13862 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13863 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13864 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13865 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13866 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13867 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13868 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13869 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13870 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13871
ee84457a
AC
138722004-01-02 Andrew Cagney <cagney@redhat.com>
13873
13874 From 2003-12-18 Kazuhiro Inaoka:
13875 * configure.host: Add m32r-linux target.
13876
0bc2134e
MC
138772004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13878
13879 * top.c (print_gdb_version): Update year to 2004.
13880
89a72f9c
MM
138812004-01-02 Mark Mitchell <mark@codesourcery.com>
13882
13883 * MAINTAINERS: Add myself to the write-after-approval category.
13884
86b013ed
DJ
138852004-01-02 Daniel Jacobowitz <drow@mvista.com>
13886
13887 From Bernardo Innocenti <bernie@develer.com>:
13888 * configure.tgt: Add uClinux target.
13889
e42c9534
AC
138902004-01-02 Andrew Cagney <cagney@redhat.com>
13891
13892 * utils.c (do_my_cleanups): Make static, add forward declaration.
13893 * defs.h (do_my_cleanups): Delete declaration.
13894
162467d3
EZ
138952004-01-02 Eli Zaretskii <eliz@elta.co.il>
13896
13897 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13898 bfd/ChangeLog-0203.
13899
78434e59
MK
139002004-01-02 Mark Kettenis <kettenis@gnu.org>
13901
13902 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13903 in <machine/reg.h>.
13904 * configure, config.in: Regenerate.
13905
48efe704
AC
13906For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13907tui/ChangeLog-1998-2003.
c906108c
SS
13908\f
13909Local Variables:
13910mode: change-log
13911left-margin: 8
13912fill-column: 74
13913version-control: never
13914End:
This page took 1.539037 seconds and 4 git commands to generate.